/* ============================================================================
   mylifethai — 泰國生活入口網
   Editorial design system. Restraint over trend; see research/03 §5.2.
   Tokens come from theme.json; this file maps them to short locals and
   implements components. Light-first, dark via prefers-color-scheme + toggle.
   ========================================================================== */

:root {
  --c-paper:        var(--wp--preset--color--paper);
  --c-surface:      var(--wp--preset--color--surface);
  --c-sand-100:     var(--wp--preset--color--sand-100);
  --c-sand-200:     var(--wp--preset--color--sand-200);
  --c-line:         var(--wp--preset--color--line);
  --c-line-strong:  var(--wp--preset--color--line-strong);
  --c-ink:          var(--wp--preset--color--ink);
  --c-muted:        var(--wp--preset--color--ink-muted);
  --c-b950:         var(--wp--preset--color--brand-950);
  --c-b900:         var(--wp--preset--color--brand-900);
  --c-b800:         var(--wp--preset--color--brand-800);
  --c-b700:         var(--wp--preset--color--brand-700);
  --c-b600:         var(--wp--preset--color--brand-600);
  --c-b500:         var(--wp--preset--color--brand-500);
  --c-b300:         var(--wp--preset--color--brand-300);
  --c-b100:         var(--wp--preset--color--brand-100);
  --c-b50:          var(--wp--preset--color--brand-50);
  --c-clay:         var(--wp--preset--color--clay);
  --c-clay-50:      var(--wp--preset--color--clay-50);
  --c-official:     var(--wp--preset--color--official);
  --c-official-50:  var(--wp--preset--color--official-50);
  --c-merchant:     var(--wp--preset--color--merchant);
  --c-merchant-50:  var(--wp--preset--color--merchant-50);
  --c-verified:     var(--wp--preset--color--verified);
  --c-verified-50:  var(--wp--preset--color--verified-50);
  --c-danger:       var(--wp--preset--color--danger);

  --r-sm: 4px;  --r-md: 8px;  --r-lg: 12px;  --r-pill: 999px;
  --tap: 44px;                 /* WCAG 2.5.8 floor is 24px; this audience gets 44 */
  --dur: 150ms;
  --shadow-hover: 0 2px 4px rgba(5,44,47,.05), 0 8px 24px rgba(5,44,47,.08);
  --shadow-pop:   0 4px 8px rgba(5,44,47,.06), 0 16px 40px rgba(5,44,47,.12);

  --wrap: 1320px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --text-scale: 1;             /* driven by the A / A+ / A++ control */
}

/* ---- Text-size control. Older users often don't know browser zoom exists. -- */
html { font-size: calc(100% * var(--text-scale)); scroll-behavior: smooth; }
html[data-textsize="lg"]  { --text-scale: 1.125; }
html[data-textsize="xl"]  { --text-scale: 1.28; }

/* ---- Thai script: the three things Latin-tuned CSS gets wrong.
        Thai stacks vowels + tone marks above AND below the baseline, and has
        no inter-word spaces (browsers break it with a dictionary).
        See research/01 §2.                                                  -- */
:lang(th) { line-height: 1.9; }
:lang(th), :lang(th) * {
  word-break: normal;
  overflow-wrap: normal;
  line-break: normal;
  hyphens: none;
}
:lang(zh), :lang(zh-TW), :lang(zh-CN) { line-height: 1.75; }

/* Never clip tone marks inside pills/chips/buttons: size them with min-height
   and flex centring, never with a tight line-height. */
.ml-chip, .ml-badge, .ml-btn, .ml-pill {
  line-height: 1.45;
  white-space: nowrap;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
}

*, *::before, *::after { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
:where(a):focus-visible,
:where(button):focus-visible,
:where(input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--c-b700);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.ml-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-b900); color: #fff; padding: .85rem 1.25rem;
  border-radius: 0 0 var(--r-md) 0; font-weight: 600; text-decoration: none;
}
.ml-skip:focus { left: 0; }

.ml-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ml-prose { max-width: 66ch; }
.ml-vis-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ============================ Utility bar ================================= */
.ml-utility {
  background: var(--c-b950);
  color: #DCE9EA;
  font-size: 1rem;
}
.ml-utility__in {
  max-width: var(--wrap); margin-inline: auto; padding: .25rem var(--gutter);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  justify-content: space-between; min-height: 46px;
}
.ml-utility a { color: #DCE9EA; text-decoration: none; }
.ml-utility a:hover { color: #fff; text-decoration: underline; }
.ml-utility__group { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.ml-utility__label { color: #9BB6B9; margin-right: .15rem; }

.ml-lang {
  font: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: .15rem .6rem; border-radius: var(--r-pill);
  border: 1px solid transparent; line-height: 1.5; text-decoration: none;
}
.ml-lang:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.ml-lang[aria-current="true"] { background: #fff; color: var(--c-b950); font-weight: 600; }

.ml-textsize { display: inline-flex; align-items: center; gap: .2rem; }
.ml-textsize button {
  min-width: 34px; min-height: 34px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.28); background: transparent;
  color: #DCE9EA; cursor: pointer; font-family: inherit; font-weight: 600;
}
.ml-textsize button[aria-pressed="true"] { background: #fff; color: var(--c-b950); border-color: #fff; }
.ml-textsize button:nth-child(1) { font-size: .9rem; }
.ml-textsize button:nth-child(2) { font-size: 1.05rem; }
.ml-textsize button:nth-child(3) { font-size: 1.2rem; }

/* ============================== Header ==================================== */
.ml-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 60;
}
.ml-header__in {
  max-width: var(--wrap); margin-inline: auto; padding: .75rem var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem;
}
.ml-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--c-ink); }
.ml-logo:hover { text-decoration: none; }
.ml-logo__mark { width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto; }
.ml-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.ml-logo__name { font-size: 1.32rem; font-weight: 700; letter-spacing: -.015em; }
.ml-logo__name em { font-style: normal; color: var(--c-b700); }
.ml-logo__tag { font-size: .875rem; color: var(--c-muted); font-weight: 400; letter-spacing: .01em; }

.ml-nav { display: flex; justify-content: center; }
.ml-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.ml-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0 .85rem; border-radius: var(--r-md);
  color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
}
.ml-nav a:hover { background: var(--c-b50); color: var(--c-b800); text-decoration: none; }
.ml-nav a[aria-current="page"] { color: var(--c-b700); box-shadow: inset 0 -3px 0 var(--c-b700); border-radius: 0; }

.ml-header__actions { display: flex; align-items: center; gap: .5rem; }

.ml-burger { display: none; }

@media (max-width: 620px) {
  .ml-header__in { grid-template-columns: 1fr; row-gap: .6rem; }
  .ml-header__actions {
    grid-column: 1 / -1; order: 2;
    justify-content: space-between; width: 100%;
  }
  .ml-header__actions .ml-btn { flex: 1 1 auto; justify-content: center; }
  .ml-nav { order: 3; }
  .ml-search--hero .ml-search__submit { padding-inline: 1rem; }
  .ml-search--hero input[type="search"] { font-size: 1.0625rem; }
}

@media (max-width: 1080px) {
  .ml-header__in { grid-template-columns: auto 1fr; }
  .ml-nav {
    grid-column: 1 / -1; order: 3;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    overflow-x: auto; justify-content: flex-start;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .ml-nav ul { flex-wrap: nowrap; }
  .ml-nav a { white-space: nowrap; }
  .ml-logo__tag { display: none; }
}

/* ---- Region switcher ---------------------------------------------------- */
.ml-region {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: var(--tap); padding: 0 .9rem;
  border: 1px solid var(--c-line-strong); border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-ink);
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
}
.ml-region:hover { border-color: var(--c-b700); color: var(--c-b800); }
.ml-region svg { flex: 0 0 auto; }
.ml-region__menu {
  position: absolute; z-index: 70; margin-top: .35rem;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
  padding: .4rem; min-width: 240px;
}
.ml-region__menu[hidden] { display: none; }
.ml-region__menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  min-height: var(--tap); padding: 0 .75rem; border: 0; border-radius: var(--r-md);
  background: transparent; font: inherit; color: var(--c-ink); cursor: pointer; text-align: start;
}
.ml-region__menu button:hover { background: var(--c-b50); }
.ml-region__menu button[aria-current="true"] { background: var(--c-b100); font-weight: 600; }
.ml-region__soon { font-size: .9rem; color: var(--c-muted); font-weight: 400; }
.ml-region__menu button:disabled { color: var(--c-muted); cursor: not-allowed; }
.ml-region__menu button:disabled:hover { background: transparent; }

/* ============================ Buttons ===================================== */
.ml-btn {
  padding: 0 1.25rem; border-radius: var(--r-md); font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font-family: inherit; font-size: 1.0625rem; transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.ml-btn:hover { text-decoration: none; }
.ml-btn--primary { background: var(--c-b700); color: #fff; border-color: var(--c-b700); }
.ml-btn--primary:hover { background: var(--c-b800); border-color: var(--c-b800); color: #fff; }
.ml-btn--ghost { background: transparent; color: var(--c-b800); border-color: var(--c-line-strong); }
.ml-btn--ghost:hover { border-color: var(--c-b700); background: var(--c-b50); color: var(--c-b900); }
.ml-btn--on-dark { background: #fff; color: var(--c-b900); border-color: #fff; }
.ml-btn--on-dark:hover { background: var(--c-b100); color: var(--c-b950); border-color: var(--c-b100); }
.ml-btn--line { background: #06C755; color: #fff; border-color: #06C755; }
.ml-btn--line:hover { background: #05A948; border-color: #05A948; color: #fff; }
.ml-btn--block { display: flex; width: 100%; }
.ml-btn--sm { min-height: 38px; padding: 0 .85rem; font-size: 1rem; }

/* ============================ Search ====================================== */
.ml-search { position: relative; }
.ml-search__form { display: flex; gap: .5rem; }
.ml-search__field { position: relative; flex: 1 1 auto; }
.ml-search__field svg { position: absolute; inset-block: 0; inset-inline-start: 1rem; margin: auto; color: var(--c-muted); pointer-events: none; }
.ml-search input[type="search"] {
  width: 100%; min-height: 56px; padding: 0 1rem 0 3rem;
  border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md);
  background: var(--c-surface); color: var(--c-ink);
  font-family: inherit; font-size: 1.125rem;
}
.ml-search input[type="search"]::placeholder { color: var(--c-muted); }
.ml-search input[type="search"]:focus { border-color: var(--c-b700); }
.ml-search__submit { min-height: 56px; padding-inline: 1.6rem; }
.ml-search--hero input[type="search"] { min-height: 64px; font-size: 1.1875rem; }
.ml-search--hero .ml-search__submit { min-height: 64px; }

/* Cross-type filter chips — 全部 / 新聞 / 活動 / 商家 / 服務 / 指南 */
.ml-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .85rem; }
.ml-chip {
  padding: 0 1rem; border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong); background: var(--c-surface);
  color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 1rem;
  cursor: pointer; font-family: inherit;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.ml-chip:hover { border-color: var(--c-b700); background: var(--c-b50); text-decoration: none; }
.ml-chip[aria-pressed="true"], .ml-chip.is-active {
  background: var(--c-b700); border-color: var(--c-b700); color: #fff;
}
.ml-chip__count { font-weight: 400; opacity: .75; font-size: .95em; }

/* ============================ Badges ====================================== */
/* Three provenance states, distinguished by colour + icon + border style —
   never by colour alone. Research/00b §5. */
.ml-badge {
  padding: 0 .7rem; min-height: 30px; border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 600; letter-spacing: .005em;
  border: 1px solid; white-space: nowrap;
}
.ml-badge svg { flex: 0 0 auto; }
.ml-badge--official { background: var(--c-official-50); color: var(--c-official); border-color: #C6D3E6; }
.ml-badge--editorial { background: var(--c-b50); color: var(--c-b700); border-color: var(--c-b300); }
.ml-badge--merchant { background: var(--c-merchant-50); color: var(--c-merchant); border-color: #D8CDB8; border-style: dashed; }
.ml-badge--verified { background: var(--c-verified-50); color: var(--c-verified); border-color: #B7D8C4; }
.ml-badge--sponsored { background: var(--c-clay-50); color: var(--c-clay); border-color: #E8C7B4; }
.ml-badge--sample { background: #FFF6DC; color: #6B5200; border-color: #E4CE8E; border-style: dashed; }
.ml-badge--sm { min-height: 26px; font-size: .9375rem; padding: 0 .5rem; }

/* Sample-data notice — the 招商 build is seeded; nobody may mistake it for live */
.ml-sample-notice {
  background: #FFF6DC; border-block: 1px solid #E4CE8E; color: #5A4500;
}
.ml-sample-notice__in {
  max-width: var(--wrap); margin-inline: auto; padding: .7rem var(--gutter);
  display: flex; gap: .65rem; align-items: center; font-size: 1rem; flex-wrap: wrap;
}
.ml-sample-notice strong { font-weight: 700; }
.ml-sample-notice a { color: #5A4500; }

/* ============================== Cards ===================================== */
/* 1px border, no resting shadow — elevation stacks read as SaaS, not editorial */
.ml-card {
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur), box-shadow var(--dur);
  height: 100%;
}
.ml-card:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-hover); }
.ml-card:focus-within { border-color: var(--c-b700); }
.ml-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--c-sand-100); overflow: hidden; }
.ml-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-card__media--sq { aspect-ratio: 1 / 1; }
.ml-card__flag { position: absolute; top: .6rem; inset-inline-start: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.ml-card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; flex: 1 1 auto; }
.ml-card__eyebrow {
  font-size: 1rem; font-weight: 600; color: var(--c-b700);
  letter-spacing: .01em; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.ml-card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -.005em; }
.ml-card__title a { color: var(--c-ink); text-decoration: none; }
.ml-card__title a:hover { color: var(--c-b800); text-decoration: underline; text-underline-offset: 3px; }
/* Clamp by line count, never a fixed px height — Thai clusters are taller */
.ml-card__title--clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ml-card__excerpt {
  color: var(--c-muted); font-size: 1rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ml-card__meta {
  margin-top: auto; padding-top: .5rem;
  display: flex; gap: .5rem 1rem; flex-wrap: wrap; align-items: center;
  font-size: 1rem; color: var(--c-muted);
}
.ml-card__meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.ml-card__badges { display: flex; gap: .4rem; flex-wrap: wrap; }
/* Freshness is a trust signal — visible, not metadata. research/00b §4.3 */
.ml-card__updated { font-size: 1rem; color: var(--c-muted); }

/* Card grid.
   auto-fill is right for an archive (unknown, usually large item count) and
   wrong for a homepage rail: with four cards in a container wide enough for
   five tracks it leaves a hole. Rails therefore get explicit column counts. */
.ml-grid { display: grid; gap: 1.25rem; }
.ml-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.ml-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 278px), 1fr)); }
.ml-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

.ml-grid--fixed3, .ml-grid--fixed4 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .ml-grid--fixed3, .ml-grid--fixed4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .ml-grid--fixed3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ml-grid--fixed4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Horizontal rail — curated collections, the anti-cold-start feature */
.ml-sectors { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 560px)  { .ml-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ml-sectors { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ml-sectors .ml-card__body { gap: .4rem; }

.ml-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 288px);
  gap: 1rem; overflow-x: auto; padding-bottom: .75rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.ml-rail > * { scroll-snap-align: start; }
@media (min-width: 900px) { .ml-rail { margin-inline: 0; padding-inline: 0; } }

/* ======================== Section furniture =============================== */
.ml-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ml-section--tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.ml-section--sand { background: var(--c-sand-100); }
.ml-section--brand { background: var(--c-b950); color: #E6F1F2; }
.ml-section--brand h2, .ml-section--brand h3 { color: #fff; }
.ml-section--brand a { color: #A9D8DC; }

.ml-sechead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.ml-sechead__text { max-width: 62ch; }
.ml-sechead h2 { margin: 0 0 .35rem; font-size: clamp(1.625rem, 3vw, 2.125rem); letter-spacing: -.015em; }
.ml-sechead p { margin: 0; color: var(--c-muted); font-size: 1.0625rem; }
.ml-section--brand .ml-sechead p { color: #A9C4C6; }
.ml-sechead__more {
  display: inline-flex; align-items: center; gap: .35rem; min-height: var(--tap);
  font-weight: 600; text-decoration: none; color: var(--c-b700); white-space: nowrap;
}
.ml-sechead__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================== Hero ====================================== */
.ml-hero {
  position: relative; background: var(--c-b950); color: #fff; overflow: hidden;
  border-bottom: 1px solid var(--c-b900);
}
.ml-hero__bg { position: absolute; inset: 0; }
.ml-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ml-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,44,47,.96) 0%, rgba(5,44,47,.90) 38%, rgba(5,44,47,.55) 72%, rgba(5,44,47,.38) 100%);
}
.ml-hero__in {
  position: relative; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.75rem) var(--gutter) clamp(2rem, 5vw, 3.25rem);
}
.ml-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  font-size: 1rem; font-weight: 600; color: #A9D8DC; letter-spacing: .02em;
}
.ml-hero h1 {
  margin: 0 0 .75rem; color: #fff; max-width: 20ch;
  font-size: clamp(2.125rem, 5.2vw, 3.5rem); line-height: 1.14; letter-spacing: -.02em;
}
.ml-hero__sub { margin: 0 0 1.75rem; max-width: 52ch; font-size: clamp(1.125rem, 2vw, 1.3125rem); color: #C9DEE0; }
.ml-hero__search { max-width: 780px; }
.ml-hero__search input[type="search"] { border-color: transparent; }
.ml-hero .ml-chip { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); color: #E6F1F2; }
.ml-hero .ml-chip:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.5); }
.ml-hero__stats { display: flex; gap: 2.25rem; flex-wrap: wrap; margin-top: 2rem; }
.ml-hero__stat b { display: block; font-size: 1.75rem; line-height: 1.2; color: #fff; }
.ml-hero__stat span { font-size: 1rem; color: #9BB6B9; }

/* ========================= Today strip (bento) ============================ */
/* Bento is a layout device for unequal-weight tiles, not a visual identity. */
.ml-today { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.ml-tile {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 1.15rem 1.25rem;
  display: flex; flex-direction: column; gap: .5rem; min-height: 140px;
  grid-column: span 12;
}
.ml-tile__label {
  font-size: 1rem; font-weight: 600; color: var(--c-muted);
  display: flex; align-items: center; gap: .4rem;
}
.ml-tile__value { font-size: clamp(1.75rem, 4vw, 2.375rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.ml-tile__note { font-size: 1rem; color: var(--c-muted); margin-top: auto; }
.ml-tile--wide { grid-column: span 12; }
.ml-tile--accent { background: var(--c-b900); border-color: var(--c-b800); color: #E6F1F2; }
.ml-tile--accent .ml-tile__label { color: #9BB6B9; }
.ml-tile--accent .ml-tile__value, .ml-tile--accent a { color: #fff; }
.ml-tile__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ml-tile__list a { color: inherit; text-decoration: none; font-weight: 600; display: block; }
.ml-tile__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ml-tile__row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.ml-tile__row + .ml-tile__row { border-top: 1px solid var(--c-line); padding-top: .5rem; }
.ml-tile--accent .ml-tile__row + .ml-tile__row { border-color: rgba(255,255,255,.14); }
.ml-tile__rate { font-variant-numeric: tabular-nums; font-weight: 700; }

@media (min-width: 640px) {
  .ml-tile { grid-column: span 6; }
  .ml-tile--wide { grid-column: span 12; }
}
@media (min-width: 1000px) {
  .ml-tile { grid-column: span 3; }
  .ml-tile--wide { grid-column: span 6; }
  .ml-tile--full { grid-column: span 12; }
}

/* ============================== Ad slots ================================== */
/* Space is reserved at every breakpoint and never collapses — zero CLS. */
.ml-ad {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  margin-inline: auto;
}
.ml-ad__label {
  align-self: flex-start; font-size: .875rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-muted); font-weight: 600;
}
.ml-ad__frame {
  width: 100%; background: var(--c-sand-100);
  border: 1px dashed var(--c-line-strong); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.ml-ad__frame a, .ml-ad__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ml-ad__frame--filled { border-style: solid; background: var(--c-surface); }
.ml-ad__placeholder {
  color: var(--c-muted); font-size: 1rem; text-align: center; padding: 1rem;
  display: flex; align-items: center; justify-content: center; height: 100%;
}
.ml-ad__frame > a { display: flex; align-items: center; justify-content: center; }
/* Reserved boxes, per research/03 §3.2 */
.ml-ad--leaderboard { max-width: 728px; }
.ml-ad--billboard   { max-width: 970px; }
.ml-ad--mpu         { max-width: 300px; }
.ml-ad--halfpage    { max-width: 300px; }
.ml-ad--mobile      { max-width: 320px; }
.ml-ad--leaderboard .ml-ad__frame { aspect-ratio: 728 / 90; }
.ml-ad--billboard  .ml-ad__frame { aspect-ratio: 970 / 250; }
.ml-ad--mpu        .ml-ad__frame { aspect-ratio: 300 / 250; }
.ml-ad--halfpage   .ml-ad__frame { aspect-ratio: 300 / 600; }
.ml-ad--mobile     .ml-ad__frame { aspect-ratio: 320 / 100; }
@media (max-width: 767px) {
  .ml-ad--leaderboard, .ml-ad--billboard { max-width: 320px; }
  .ml-ad--leaderboard .ml-ad__frame,
  .ml-ad--billboard .ml-ad__frame { aspect-ratio: 320 / 100; }
}

/* ========================= Listing detail page ============================ */
.ml-detail { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 1024px) { .ml-detail { grid-template-columns: minmax(0, 1fr) 340px; } }

.ml-detail__header { border-bottom: 1px solid var(--c-line); padding-bottom: 1.5rem; margin-bottom: 1.75rem; }
.ml-detail__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .85rem; }
.ml-detail h1 { margin: 0 0 .5rem; letter-spacing: -.02em; }
.ml-detail__tagline { font-size: 1.25rem; color: var(--c-muted); margin: 0; }

.ml-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ml-facts li {
  display: grid; grid-template-columns: minmax(96px, 132px) 1fr; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--c-line); align-items: start;
}
.ml-facts dt, .ml-facts__k { color: var(--c-muted); font-weight: 600; font-size: 1rem; }
.ml-facts__v { font-weight: 400; }
.ml-facts__v a { overflow-wrap: anywhere; }

.ml-actions { display: flex; flex-direction: column; gap: .6rem; }
.ml-aside {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 1.25rem;
}
.ml-aside + .ml-aside { margin-top: 1.25rem; }
.ml-aside h2, .ml-aside h3 { margin: 0 0 .85rem; font-size: 1.1875rem; }
@media (min-width: 1024px) { .ml-detail__aside { position: sticky; top: 96px; } }

/* Reviewer attribution — named person + date beats an anonymous badge */
.ml-vetted {
  background: var(--c-verified-50); border: 1px solid #B7D8C4;
  border-radius: var(--r-lg); padding: 1rem 1.15rem;
  display: flex; gap: .85rem; align-items: flex-start;
}
.ml-vetted__icon { color: var(--c-verified); flex: 0 0 auto; margin-top: .15rem; }
.ml-vetted__body { font-size: 1rem; }
.ml-vetted__body strong { display: block; color: var(--c-verified); font-size: 1.0625rem; margin-bottom: .15rem; }
.ml-vetted__body span { color: #3A5C48; }

/* Map façade — a static image until the user asks for the interactive map.
   Spec §6.2 forbids loading Maps globally. */
.ml-mapfacade {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--c-line); background: var(--c-sand-100);
  aspect-ratio: 16 / 10; display: block; width: 100%; padding: 0; cursor: pointer;
}
.ml-mapfacade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-mapfacade__cta {
  position: absolute; inset-block-end: .75rem; inset-inline: .75rem;
  background: var(--c-surface); border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md); padding: .6rem .9rem; font-weight: 600; font-size: 1rem;
  color: var(--c-ink); display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: var(--tap);
}
.ml-mapfacade:hover .ml-mapfacade__cta { border-color: var(--c-b700); color: var(--c-b800); }
.ml-mapfacade__empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--c-muted); text-align: center; padding: 1rem; }

/* Restricted medical template notice — DoHSS field set only */
.ml-restricted {
  background: var(--c-official-50); border: 1px solid #C6D3E6; color: #1B3050;
  border-radius: var(--r-lg); padding: 1rem 1.15rem; font-size: 1rem;
}
.ml-restricted strong { display: block; margin-bottom: .25rem; color: var(--c-official); }

/* ============================ Merchant CTA ================================ */
.ml-cta {
  background: var(--c-b900); color: #E6F1F2;
  background-image: radial-gradient(1100px 340px at 88% -12%, rgba(127,194,201,.20), transparent 62%);
}
.ml-cta__in {
  max-width: var(--wrap); margin-inline: auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 900px) { .ml-cta__in { grid-template-columns: 1.25fr 1fr; } }
.ml-cta h2 { color: #fff; margin: 0 0 .65rem; font-size: clamp(1.75rem, 3.4vw, 2.375rem); letter-spacing: -.02em; }
.ml-cta p { margin: 0 0 1.5rem; color: #B9D2D4; font-size: 1.125rem; max-width: 52ch; }
.ml-cta__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.ml-cta__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ml-cta__points li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1.0625rem; }
.ml-cta__points svg { flex: 0 0 auto; color: #7FC2C9; margin-top: .3rem; }

/* ============================== Steps ===================================== */
.ml-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .ml-steps { grid-template-columns: repeat(4, 1fr); } }
.ml-steps li { counter-increment: s; position: relative; padding-top: 3.25rem; }
.ml-steps li::before {
  content: counter(s); position: absolute; top: 0; inset-inline-start: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-b100); color: var(--c-b800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.25rem;
}
.ml-steps h3 { margin: 0 0 .35rem; font-size: 1.1875rem; }
.ml-steps p { margin: 0; color: var(--c-muted); font-size: 1.0625rem; }

/* ============================ Price table ================================= */
.ml-prices { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .ml-prices { grid-template-columns: repeat(3, 1fr); } }
.ml-price {
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  background: var(--c-surface); padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem;
}
.ml-price--featured { border-color: var(--c-b700); border-width: 2px; }
.ml-price__name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.ml-price__amount { font-size: 2.125rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.ml-price__amount small { font-size: 1rem; font-weight: 400; color: var(--c-muted); letter-spacing: 0; }
.ml-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: 1.0625rem; }
.ml-price li { display: flex; gap: .55rem; align-items: flex-start; }
.ml-price li svg { flex: 0 0 auto; color: var(--c-b700); margin-top: .3rem; }
.ml-price .ml-btn { margin-top: auto; }

/* ============================== Forms ===================================== */
.ml-form { display: grid; gap: 1.25rem; max-width: 720px; }
.ml-field { display: grid; gap: .4rem; }
.ml-field > label { font-weight: 600; font-size: 1.0625rem; }
.ml-field__hint { font-size: 1rem; color: var(--c-muted); }
.ml-field input, .ml-field select, .ml-field textarea {
  width: 100%; min-height: var(--tap); padding: .65rem .85rem;
  border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md);
  background: var(--c-surface); color: var(--c-ink);
  font-family: inherit; font-size: 1.0625rem; line-height: 1.6;
}
.ml-field textarea { min-height: 140px; resize: vertical; }
.ml-field input:focus, .ml-field select:focus, .ml-field textarea:focus { border-color: var(--c-b700); }
.ml-field--req > label::after { content: " *"; color: var(--c-danger); }
.ml-field__error { color: var(--c-danger); font-size: 1rem; font-weight: 600; }
.ml-fieldrow { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .ml-fieldrow--2 { grid-template-columns: 1fr 1fr; } }
.ml-consent {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  background: var(--c-sand-100); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 1rem;
}
.ml-consent input[type="checkbox"] { width: 24px; height: 24px; min-height: 24px; margin-top: .2rem; accent-color: var(--c-b700); }
.ml-consent label { font-size: 1rem; line-height: 1.65; }
.ml-notice {
  border-radius: var(--r-md); padding: 1rem 1.15rem; font-size: 1.0625rem;
  border: 1px solid; display: flex; gap: .7rem; align-items: flex-start;
}
.ml-notice--ok { background: var(--c-verified-50); border-color: #B7D8C4; color: #234A33; }
.ml-notice--err { background: #FBEDED; border-color: #E5BDBD; color: #7A1A1A; }
.ml-notice--info { background: var(--c-b50); border-color: var(--c-b300); color: var(--c-b900); }

/* ============================== Footer ==================================== */
.ml-footer { background: var(--c-b950); color: #C6DCDE; padding-block: clamp(2.5rem, 5vw, 3.75rem) 2rem; }
.ml-footer a { color: #C9DEE0; text-decoration: none; }
.ml-footer a:hover { color: #fff; text-decoration: underline; }
.ml-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px)  { .ml-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1060px) { .ml-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ml-footer h2 { color: #fff; font-size: 1.0625rem; margin: 0 0 .85rem; letter-spacing: .02em; }
.ml-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.ml-footer li a { display: inline-flex; align-items: center; min-height: 38px; }
.ml-footer__brand { max-width: 34ch; }
.ml-footer__brand p { font-size: 1rem; margin: .85rem 0 0; color: #AFC8CA; }
.ml-footer__legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; gap: 1rem 1.75rem; flex-wrap: wrap; justify-content: space-between;
  font-size: 1rem; color: #AFC8CA;
}
.ml-footer__legal a { color: #C6DCDE; }

/* ============================ Consent banner ============================== */
/* PDPA: blocking, granular, Accept and Reject at equal prominence, nothing pre-ticked */
.ml-consent-banner {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 200;
  background: var(--c-surface); border-top: 2px solid var(--c-b700);
  box-shadow: 0 -8px 40px rgba(5,44,47,.18);
}
.ml-consent-banner[hidden] { display: none; }
.ml-consent-banner__in {
  max-width: var(--wrap); margin-inline: auto; padding: 1.25rem var(--gutter);
  display: grid; gap: 1rem;
}
@media (min-width: 900px) { .ml-consent-banner__in { grid-template-columns: 1fr auto; align-items: center; } }
.ml-consent-banner h2 { margin: 0 0 .35rem; font-size: 1.1875rem; }
.ml-consent-banner p { margin: 0; font-size: 1rem; color: var(--c-muted); max-width: 74ch; }
.ml-consent-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.ml-consent-banner__actions .ml-btn { flex: 1 1 auto; min-width: 150px; }
.ml-consent-opts { display: grid; gap: .6rem; margin-top: .85rem; }
.ml-consent-opts label { display: flex; gap: .6rem; align-items: center; font-size: 1rem; }
.ml-consent-opts input { width: 22px; height: 22px; accent-color: var(--c-b700); }

/* ============================== Empty state =============================== */
.ml-empty {
  border: 1px dashed var(--c-line-strong); border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3rem); text-align: center; background: var(--c-sand-100);
}
.ml-empty h2 { margin: 0 0 .5rem; font-size: 1.375rem; }
.ml-empty p { margin: 0 auto 1.25rem; color: var(--c-muted); max-width: 52ch; }

/* ============================== Breadcrumb ================================ */
.ml-crumbs { font-size: 1rem; color: var(--c-muted); padding-block: 1rem; }
.ml-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.ml-crumbs a { color: var(--c-muted); text-decoration: none; }
.ml-crumbs a:hover { color: var(--c-b700); text-decoration: underline; }
.ml-crumbs li + li::before { content: "/"; margin-inline-end: .4rem; color: var(--c-line-strong); }

/* ============================== Pagination ================================ */
.ml-pager { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }
.ml-pager a, .ml-pager span {
  min-width: var(--tap); min-height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center;
  padding-inline: .75rem; border: 1px solid var(--c-line); border-radius: var(--r-md);
  text-decoration: none; color: var(--c-ink); font-weight: 600; background: var(--c-surface);
}
.ml-pager a:hover { border-color: var(--c-b700); background: var(--c-b50); color: var(--c-b800); }
.ml-pager .current { background: var(--c-b700); border-color: var(--c-b700); color: #fff; }

/* =========================== Facet sidebar ================================ */
.ml-browse { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); align-items: start; }
@media (min-width: 1000px) { .ml-browse { grid-template-columns: 268px minmax(0, 1fr); } }
.ml-facets { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .ml-facets { position: sticky; top: 96px; } }
.ml-facet { border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); }
.ml-facet > summary {
  list-style: none; cursor: pointer; padding: .85rem 1rem; font-weight: 700; font-size: 1.0625rem;
  display: flex; align-items: center; justify-content: space-between; min-height: var(--tap);
}
.ml-facet > summary::-webkit-details-marker { display: none; }
.ml-facet > summary::after { content: "−"; color: var(--c-muted); font-size: 1.25rem; }
.ml-facet:not([open]) > summary::after { content: "+"; }
.ml-facet__body { padding: 0 1rem 1rem; display: grid; gap: .1rem; }
.ml-facet__opt {
  display: flex; align-items: center; gap: .6rem; min-height: var(--tap);
  font-size: 1.0625rem; cursor: pointer;
}
.ml-facet__opt input { width: 22px; height: 22px; accent-color: var(--c-b700); flex: 0 0 auto; }
.ml-facet__opt span:last-child { margin-inline-start: auto; color: var(--c-muted); font-size: 1rem; }
.ml-toolbar {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  justify-content: space-between; margin-bottom: 1.25rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--c-line);
}
.ml-toolbar__count { color: var(--c-muted); font-size: 1.0625rem; }
.ml-toolbar__count b { color: var(--c-ink); }

/* ============================== Micro-site ================================ */
/* Per-tenant branding is design tokens on the record, injected as custom
   properties on this wrapper. One codebase, 400k possible tenants. */
.ml-micro { --mc: var(--c-b700); --mc-dark: var(--c-b900); --mc-tint: var(--c-b50); }
.ml-micro__hero { background: var(--mc-dark); color: #fff; position: relative; overflow: hidden; }
.ml-micro__hero .ml-hero__bg::after { background: linear-gradient(105deg, color-mix(in srgb, var(--mc-dark) 94%, transparent) 0%, color-mix(in srgb, var(--mc-dark) 70%, transparent) 100%); }
.ml-micro__nav { background: var(--mc); }
.ml-micro__nav ul { display: flex; gap: .25rem; list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); flex-wrap: wrap; }
.ml-micro__nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1rem;
  color: #fff; text-decoration: none; font-weight: 600;
}
.ml-micro__nav a:hover { background: rgba(0,0,0,.16); }
.ml-micro .ml-btn--primary { background: var(--mc); border-color: var(--mc); }
.ml-micro__powered {
  background: var(--c-sand-100); border-top: 1px solid var(--c-line);
  padding: 1rem var(--gutter); font-size: 1rem; color: var(--c-muted); text-align: center;
}

/* ============================== Dark mode ================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-paper: #0B1214; --c-surface: #121B1D; --c-sand-100: #172224; --c-sand-200: #1E2B2E;
    --c-line: #253437; --c-line-strong: #35494D;
    --c-ink: #E8EFF0; --c-muted: #9FB2B5;
    --c-b700: #7FC2C9; --c-b800: #A9D8DC; --c-b900: #C9E7EA; --c-b950: #060E10;
    --c-b100: #17393D; --c-b50: #102A2D; --c-b300: #2E585E;
    --c-clay: #E0916C; --c-clay-50: #2A1A12;
    --c-official: #9FC0EC; --c-official-50: #131E2E;
    --c-merchant: #CDBB99; --c-merchant-50: #221C13;
    --c-verified: #86D3A4; --c-verified-50: #12261A;
    --c-danger: #F0908E;
    --shadow-hover: 0 2px 4px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.4);
    --shadow-pop: 0 4px 8px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.5);
  }
  :root:not([data-theme="light"]) .ml-btn--primary { color: #06181A; }
  :root:not([data-theme="light"]) .ml-btn--primary:hover { background: var(--c-b800); color: #06181A; }
  :root:not([data-theme="light"]) .ml-chip[aria-pressed="true"],
  :root:not([data-theme="light"]) .ml-chip.is-active { color: #06181A; }
  :root:not([data-theme="light"]) .ml-hero,
  :root:not([data-theme="light"]) .ml-section--brand,
  :root:not([data-theme="light"]) .ml-footer { background: #060E10; }
  :root:not([data-theme="light"]) .ml-utility { background: #060E10; }
  :root:not([data-theme="light"]) .ml-sample-notice { background: #2A2411; color: #F0DFA6; border-color: #574A1E; }
  :root:not([data-theme="light"]) .ml-sample-notice a { color: #F0DFA6; }
  :root:not([data-theme="light"]) .ml-badge--sample { background: #2A2411; color: #F0DFA6; border-color: #574A1E; }
  :root:not([data-theme="light"]) .ml-steps li::before { color: #06181A; }
  :root:not([data-theme="light"]) .ml-tile--accent { background: #0C1A1C; border-color: #21383B; }
}
:root[data-theme="dark"] {
  --c-paper: #0B1214; --c-surface: #121B1D; --c-sand-100: #172224; --c-sand-200: #1E2B2E;
  --c-line: #253437; --c-line-strong: #35494D;
  --c-ink: #E8EFF0; --c-muted: #9FB2B5;
  --c-b700: #7FC2C9; --c-b800: #A9D8DC; --c-b900: #C9E7EA; --c-b950: #060E10;
  --c-b100: #17393D; --c-b50: #102A2D; --c-b300: #2E585E;
  --c-clay: #E0916C; --c-clay-50: #2A1A12;
  --c-official: #9FC0EC; --c-official-50: #131E2E;
  --c-merchant: #CDBB99; --c-merchant-50: #221C13;
  --c-verified: #86D3A4; --c-verified-50: #12261A;
  --c-danger: #F0908E;
}
:root[data-theme="dark"] .ml-btn--primary { color: #06181A; }
:root[data-theme="dark"] .ml-btn--primary:hover { background: var(--c-b800); color: #06181A; }
:root[data-theme="dark"] .ml-chip[aria-pressed="true"],
:root[data-theme="dark"] .ml-chip.is-active { color: #06181A; }
:root[data-theme="dark"] .ml-hero,
:root[data-theme="dark"] .ml-section--brand,
:root[data-theme="dark"] .ml-footer,
:root[data-theme="dark"] .ml-utility { background: #060E10; }
:root[data-theme="dark"] .ml-sample-notice { background: #2A2411; color: #F0DFA6; border-color: #574A1E; }
:root[data-theme="dark"] .ml-sample-notice a { color: #F0DFA6; }
:root[data-theme="dark"] .ml-badge--sample { background: #2A2411; color: #F0DFA6; border-color: #574A1E; }
:root[data-theme="dark"] .ml-steps li::before { color: #06181A; }
:root[data-theme="dark"] .ml-tile--accent { background: #0C1A1C; border-color: #21383B; }

/* ============================ Reduced motion ============================== */
/* Opacity-only reveals; transforms are what trigger vestibular discomfort. */
.ml-reveal { opacity: 0; animation: ml-fade 150ms ease-out forwards; }
@keyframes ml-fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .ml-reveal { opacity: 1; }
}

/* ================================ Print =================================== */
@media print {
  .ml-utility, .ml-nav, .ml-ad, .ml-consent-banner, .ml-cta, .ml-footer__grid { display: none !important; }
  .ml-header { position: static; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
}
