/* ============================================================
   comparemadhoney.com — design system
   Pattern: Trust & Authority + Comparison Table
   Type: Lora (headings) / Inter (body, tabular figures)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg: #FBF8F2;
  --surface: #FFFFFF;
  --surface-2: #F5F0E6;
  --surface-3: #EFE8DA;

  /* ink */
  --fg: #1A1611;
  --fg-2: #453E33;
  --fg-muted: #6E6455;

  /* brand */
  --honey: #B45309;
  --honey-ink: #8A4008;
  --honey-soft: #FDF3E0;
  --honey-line: #E9C98F;

  /* semantic */
  --trust: #1E3A5F;
  --good: #1F5D45;
  --good-soft: #E7F2EC;
  --warn: #8A5B0B;
  --warn-soft: #FBF0DA;
  --bad: #A22019;
  --bad-soft: #FBEBEA;

  --border: #E3D9C7;
  --border-strong: #CDBFA6;
  --ring: #B45309;

  --shadow-1: 0 1px 2px rgba(26, 22, 17, .05), 0 1px 3px rgba(26, 22, 17, .04);
  --shadow-2: 0 2px 4px rgba(26, 22, 17, .04), 0 8px 24px -8px rgba(26, 22, 17, .12);
  --shadow-3: 0 12px 40px -12px rgba(26, 22, 17, .22);

  /* space scale (density 5/10 — standard) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;

  --shell: 1180px;
  --measure: 68ch;

  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --dur: 200ms;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --z-nav: 40; --z-sticky: 30; --z-overlay: 100;
}

html[data-theme="dark"] {
  --bg: #14120E;
  --surface: #1C1915;
  --surface-2: #23201A;
  --surface-3: #2C2822;

  --fg: #F3EEE4;
  --fg-2: #D6CEC0;
  --fg-muted: #A79C8B;

  --honey: #E7A94A;
  --honey-ink: #F3C57E;
  --honey-soft: #2A2116;
  --honey-line: #5C4526;

  --trust: #9DBBDD;
  --good: #7BC9A4;
  --good-soft: #16261F;
  --warn: #E0B457;
  --warn-soft: #2A2214;
  --bad: #F08C84;
  --bad-soft: #2C1917;

  --border: #35302A;
  --border-strong: #4A433A;
  --ring: #E7A94A;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 8px 24px -10px rgba(0, 0, 0, .6);
  --shadow-3: 0 16px 44px -14px rgba(0, 0, 0, .7);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #14120E; --surface: #1C1915; --surface-2: #23201A; --surface-3: #2C2822;
    --fg: #F3EEE4; --fg-2: #D6CEC0; --fg-muted: #A79C8B;
    --honey: #E7A94A; --honey-ink: #F3C57E; --honey-soft: #2A2116; --honey-line: #5C4526;
    --trust: #9DBBDD; --good: #7BC9A4; --good-soft: #16261F; --warn: #E0B457; --warn-soft: #2A2214;
    --bad: #F08C84; --bad-soft: #2C1917;
    --border: #35302A; --border-strong: #4A433A; --ring: #E7A94A;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 8px 24px -10px rgba(0,0,0,.6);
    --shadow-3: 0 16px 44px -14px rgba(0,0,0,.7);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
/* inline icons default to a fixed box; components override where needed */
svg { display: block; width: 18px; height: 18px; flex: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--fg); line-height: 1.22; margin: 0 0 var(--s-3); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.12; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem); margin-top: var(--s-7); }
h3 { font-size: clamp(1.13rem, 1.02rem + .5vw, 1.35rem); margin-top: var(--s-5); }
h4 { font-size: 1.02rem; margin-top: var(--s-4); }
p { margin: 0 0 var(--s-4); }
a { color: var(--honey-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--honey); }
strong { font-weight: 650; }
small { font-size: .84rem; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15em; }
li { margin-bottom: var(--s-2); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-7) 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--honey-line); color: #1A1611; }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--s-5); }
@media (max-width: 640px) { .shell { padding-inline: var(--s-4); } }
.stack > * + * { margin-top: var(--s-4); }
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.section + .section { border-top: 1px solid var(--border); }
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-overlay);
  background: var(--surface); color: var(--fg); padding: var(--s-3) var(--s-4);
  border: 2px solid var(--honey); border-radius: var(--r-md); font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-3); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--fg); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--fg); }
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--honey); }
.brand__sub { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-muted); font-weight: 500; margin-top: -2px; }
.nav__links { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--r-md); color: var(--fg-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--surface-2); color: var(--fg); }
.nav__link[aria-current="page"] { color: var(--honey-ink); background: var(--honey-soft); }
.nav__toggle, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; border: 1px solid var(--border);
  background: var(--surface); color: var(--fg-2); border-radius: var(--r-md); cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__toggle:hover, .theme-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); }
.nav__toggle { display: none; }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  html:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; margin-left: var(--s-2); }
  .theme-toggle { margin-left: auto; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--s-3) var(--s-4) var(--s-5); box-shadow: var(--shadow-2);
    max-height: calc(100dvh - 120px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  }
  .nav__links[data-open="true"] { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { min-height: 48px; font-size: 1rem; }
  .nav__links .btn { margin-top: var(--s-3); justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 46px; padding: 0 var(--s-5); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: .96rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--honey); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--honey-ink); color: #fff; box-shadow: var(--shadow-2); }
html[data-theme="dark"] .btn--primary { color: #1A1611; }
html[data-theme="dark"] .btn--primary:hover { background: var(--honey-ink); color: #1A1611; }
.btn--ghost { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn--sm { min-height: 38px; padding: 0 var(--s-4); font-size: .88rem; }
@media (pointer: coarse) { .btn--sm { min-height: 44px; } }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Badges & pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 5px var(--s-3); border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--border);
}
.pill svg { width: 13px; height: 13px; }
.pill--honey { background: var(--honey-soft); color: var(--honey-ink); border-color: var(--honey-line); }
.pill--good { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.pill--warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.pill--bad  { background: var(--bad-soft);  color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

.eyebrow {
  font-size: .76rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--honey-ink); margin: 0 0 var(--s-3);
}

/* ---------- Score ---------- */
.score {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 62px; padding: var(--s-2) var(--s-3); border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.score__num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--fg); }
.score__den { font-size: .66rem; color: var(--fg-muted); margin-top: 3px; letter-spacing: .04em; }
.score--top { background: var(--honey-soft); border-color: var(--honey-line); }
.score--top .score__num { color: var(--honey-ink); }
.score--lg { min-width: 92px; padding: var(--s-4); }
.score--lg .score__num { font-size: 2.6rem; }

.rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: none; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--fg-2);
  font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.rank--1 { background: var(--honey); color: #fff; }
html[data-theme="dark"] .rank--1 { color: #1A1611; }

/* meter */
.meter { display: block; width: 100%; height: 7px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.meter__fill { display: block; height: 100%; border-radius: inherit; background: var(--honey); width: 0; transition: width 900ms var(--ease); }
.meter__fill--good { background: var(--good); }
.meter__fill--warn { background: var(--warn); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.card, .card--link { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card--link:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); transform: translateY(-2px); color: inherit; }
.card__title { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; margin: 0 0 var(--s-2); }
.card__meta { font-size: .85rem; color: var(--fg-muted); margin: 0; }

.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: var(--s-8) var(--s-6); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 380px at 78% -10%, color-mix(in srgb, var(--honey) 16%, transparent), transparent 70%),
    radial-gradient(700px 320px at 5% 0%, color-mix(in srgb, var(--trust) 9%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-7); align-items: start; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: var(--s-6); } }
.hero__lede { font-size: clamp(1.03rem, .98rem + .35vw, 1.2rem); color: var(--fg-2); max-width: 60ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; margin-top: var(--s-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* winner panel */
.winner {
  background: var(--surface); border: 1px solid var(--honey-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.winner__head svg { width: 15px; height: 15px; }
.winner__head {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5); background: var(--honey-soft); border-bottom: 1px solid var(--honey-line);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--honey-ink);
}
.winner__body { padding: var(--s-5); }
.winner__row { display: flex; align-items: center; gap: var(--s-4); }
.winner__name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; margin: 0; }
.winner__list { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.winner__list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .93rem; color: var(--fg-2); }
.winner__list svg { width: 17px; height: 17px; flex: none; color: var(--good); margin-top: 3px; }

/* ---------- Answer box (GEO: answer-first) ---------- */
.answer {
  border-left: 3px solid var(--honey); background: var(--honey-soft);
  padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 0 0 var(--s-5);
}
.answer > :last-child { margin-bottom: 0; }
.answer__label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--honey-ink); margin-bottom: var(--s-2);
}
.callout {
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.callout--good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 28%, transparent); }
.callout__title { display: flex; align-items: center; gap: var(--s-2); font-weight: 650; margin-bottom: var(--s-2); font-family: var(--font-body); font-size: .96rem; }
.callout__title svg { width: 17px; height: 17px; flex: none; }

/* ---------- Tables ---------- */
.table-wrap {
  position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-1);
}
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { text-align: left; padding: var(--s-4) var(--s-5) 0; color: var(--fg-muted); font-size: .85rem; }
th, td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
thead th {
  position: sticky; top: 0; z-index: 2; background: var(--surface-2);
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted);
  white-space: nowrap; border-bottom: 1px solid var(--border-strong);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--dur) var(--ease); }
tbody tr:hover { background: var(--surface-2); }
tbody tr.is-highlight { background: var(--honey-soft); }
tbody tr.is-highlight:hover { background: color-mix(in srgb, var(--honey-soft) 80%, var(--honey-line)); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-brand { display: flex; align-items: center; gap: var(--s-3); min-width: 190px; }
.t-brand__name { font-weight: 600; color: var(--fg); text-decoration: none; }
.t-brand__name:hover { color: var(--honey-ink); text-decoration: underline; }
tbody td:last-child a { white-space: nowrap; }
.t-brand__sub { display: block; font-size: .78rem; color: var(--fg-muted); font-weight: 400; }
.t-scroll-hint { display: none; font-size: .8rem; color: var(--fg-muted); margin-top: var(--s-2); }
@media (max-width: 780px) { .t-scroll-hint { display: block; } }

.yes, .no, .partial { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.yes { color: var(--good); } .no { color: var(--bad); } .partial { color: var(--warn); }
.yes svg, .no svg, .partial svg { width: 15px; height: 15px; flex: none; }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: var(--s-8); align-items: start; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; gap: var(--s-6); } }
.prose { max-width: var(--measure); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul li::marker { color: var(--honey); }
.prose blockquote {
  margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--honey-line);
  background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-head); font-size: 1.05rem; color: var(--fg-2);
}
.prose blockquote cite { display: block; margin-top: var(--s-3); font-family: var(--font-body); font-size: .84rem; font-style: normal; color: var(--fg-muted); }
.prose figure { margin: var(--s-5) 0; }
.prose figcaption { font-size: .84rem; color: var(--fg-muted); margin-top: var(--s-2); }

.aside { position: sticky; top: 84px; display: grid; gap: var(--s-4); }
@media (max-width: 1000px) { .aside { position: static; } }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); }
.toc__title { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 var(--s-3); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 7px var(--s-3); border-left: 2px solid var(--border);
  font-size: .88rem; color: var(--fg-2); text-decoration: none; line-height: 1.4;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.toc a:hover { color: var(--fg); background: var(--surface-2); }
.toc a.is-active { color: var(--honey-ink); border-left-color: var(--honey); font-weight: 600; }

/* ---------- Breadcrumbs / meta ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: .84rem; color: var(--fg-muted); margin-bottom: var(--s-4); padding: 0; list-style: none; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: var(--s-2); }
.crumbs a { color: var(--fg-muted); text-decoration: none; }
.crumbs a:hover { color: var(--honey-ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; color: var(--border-strong); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: .86rem; color: var(--fg-muted); margin: var(--s-4) 0 0; }
.byline strong { color: var(--fg-2); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); min-height: 56px; cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--fg); list-style: none;
  transition: background var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex: none; border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq__body { padding: 0 var(--s-5) var(--s-5); color: var(--fg-2); max-width: var(--measure); }
.faq__body > :last-child { margin-bottom: 0; }

/* ---------- Pros / cons ---------- */
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s-4); margin: var(--s-5) 0; }
.proscons__col { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); background: var(--surface); }
.proscons__col h3 { margin: 0 0 var(--s-3); font-size: 1rem; font-family: var(--font-body); font-weight: 700; display: flex; align-items: center; gap: var(--s-2); }
.proscons__col ul { list-style: none; padding: 0; margin: 0; }
.proscons__col li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .93rem; color: var(--fg-2); }
.proscons__col svg { width: 16px; height: 16px; flex: none; margin-top: 4px; }
.proscons--pro h3 { color: var(--good); } .proscons--pro svg { color: var(--good); }
.proscons--con h3 { color: var(--bad); } .proscons--con svg { color: var(--bad); }

/* ---------- Verdict / CTA blocks ---------- */
.verdict {
  border: 1px solid var(--honey-line); background: var(--honey-soft);
  border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); margin: var(--s-6) 0;
}
.verdict h2, .verdict h3 { margin-top: 0; }
.verdict > :last-child { margin-bottom: 0; }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); padding: var(--s-5) var(--s-6); box-shadow: var(--shadow-1);
}
.cta-band__text { max-width: 60ch; }
.cta-band__text p { margin: 0; color: var(--fg-2); font-size: .95rem; }
.cta-band__text strong { display: block; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--fg); margin-bottom: 4px; }

/* ---------- Criterion weights ---------- */
.criteria { display: grid; gap: var(--s-4); }
.criterion { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4); align-items: baseline; padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.criterion:last-child { border-bottom: 0; }
.criterion__name { font-family: var(--font-head); font-size: 1.06rem; font-weight: 600; margin: 0; }
.criterion__weight { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--honey-ink); font-size: 1rem; }
.criterion__desc { grid-column: 1 / -1; margin: 0; color: var(--fg-2); font-size: .93rem; max-width: var(--measure); }
.criterion__bar { grid-column: 1 / -1; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--s-4); }
.stat { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); background: var(--surface); }
.stat__num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; color: var(--honey-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__label { font-size: .85rem; color: var(--fg-muted); margin-top: var(--s-1); }

/* ---------- Disclosure ---------- */
.disclosure {
  display: flex; gap: var(--s-3); align-items: flex-start;
  border: 1px dashed var(--border-strong); border-radius: var(--r-md);
  background: var(--surface-2); padding: var(--s-3) var(--s-4);
  font-size: .86rem; color: var(--fg-2); margin: var(--s-5) 0;
}
.disclosure svg { width: 17px; height: 17px; flex: none; color: var(--fg-muted); margin-top: 2px; }
.disclosure a { color: var(--honey-ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); margin-top: var(--s-9); padding-block: var(--s-7) var(--s-6); }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } }
.footer__col h3 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 var(--s-3); }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: var(--s-2); }
.footer__col a { color: var(--fg-2); text-decoration: none; font-size: .92rem; }
.footer__col a:hover { color: var(--honey-ink); text-decoration: underline; }
.footer__legal { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--border); font-size: .84rem; color: var(--fg-muted); }
.footer__legal p { max-width: 90ch; }

/* ---------- Draft ribbon ---------- */
.draft-banner {
  background: var(--warn-soft); border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  color: var(--warn); font-size: .84rem; padding: var(--s-2) 0;
}
.draft-banner--info { background: var(--surface-2); border-bottom-color: var(--border); color: var(--fg-muted); }
.draft-banner--info strong { color: var(--fg-2); }
.draft-banner--info a { color: var(--honey-ink); }
.draft-banner .shell { display: flex; gap: var(--s-3); align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; }
.draft-banner svg { width: 16px; height: 16px; flex: none; }

/* ---------- Motion (tier: standard) ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
[data-reveal].is-in[style*="--d"] { transition-delay: var(--d); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .meter__fill { transition: none; }
}

/* ---------- Utilities ---------- */
.u-center { text-align: center; }
.u-muted { color: var(--fg-muted); }
.u-lead { font-size: 1.08rem; color: var(--fg-2); }
.u-mt-0 { margin-top: 0; } .u-mb-0 { margin-bottom: 0; }
.u-mt-5 { margin-top: var(--s-5); } .u-mt-6 { margin-top: var(--s-6); }
.u-narrow { max-width: var(--measure); }
.u-flex { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section-head { max-width: var(--measure); margin-bottom: var(--s-5); }
.section-head p { color: var(--fg-2); margin-bottom: 0; }
@media print {
  .site-header, .site-footer, .aside, .cta-band, .draft-banner { display: none; }
  body { background: #fff; color: #000; }
}

/* key/value certificate table */
.table--kv th[scope="row"] {
  width: 34%; min-width: 170px; font-weight: 600; color: var(--fg-2);
  background: var(--surface-2); vertical-align: top; font-size: .88rem;
}
.table--kv td { vertical-align: top; }
@media (max-width: 600px) {
  .table--kv, .table--kv tbody, .table--kv tr, .table--kv th, .table--kv td { display: block; width: 100%; }
  .table--kv th[scope="row"] { border-bottom: 0; padding-bottom: 4px; }
  .table--kv td { padding-top: 0; }
}

/* ---------- Charts (see charts.py; palette validated for both surfaces) ---------- */
:root {
  --chart-accent: #B45309;
  --chart-mute: #9A8F7E;
  --chart-surface: var(--surface);
}
html[data-theme="dark"] { --chart-accent: #E7A94A; --chart-mute: #8A8073; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) { --chart-accent: #E7A94A; --chart-mute: #8A8073; }
}

.chart {
  margin: var(--s-5) 0; padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow-x: auto;
}
.chart figcaption { margin-top: var(--s-3); font-size: .84rem; color: var(--fg-muted); max-width: 62ch; }
.cv { width: 100%; height: auto; min-width: 460px; display: block; font-family: var(--font-body); }
.cv-bar { fill: var(--chart-mute); }
.cv-bar--accent { fill: var(--chart-accent); }
.cv-dot { fill: var(--chart-mute); stroke: var(--chart-surface); stroke-width: 2; }
.cv-dot--accent { fill: var(--chart-accent); stroke: var(--chart-surface); stroke-width: 2; }
.cv-grid { stroke: var(--border); stroke-width: 1; }
.cv-label { fill: var(--fg-2); font-size: 13px; font-weight: 500; }
.cv-value { fill: var(--fg); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cv-tick { fill: var(--fg-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.cv-axis { fill: var(--fg-muted); font-size: 11px; letter-spacing: .04em; }
.cv-point-label { fill: var(--fg-2); font-size: 12px; }

/* ---------- Page art (original SVG illustrations; see illustrations.py) ---------- */
.page-art { margin: 0 0 var(--s-6); }
.page-art img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--honey-soft), transparent 70%);
  border: 1px solid var(--border);
}
.page-art figcaption { margin-top: var(--s-3); font-size: .84rem; color: var(--fg-muted); }
.page-art--hero { margin-bottom: 0; }
.page-art--hero img { border: 0; background: none; }
.prose > .page-art { margin-block: var(--s-6); }
@media (max-width: 640px) { .page-art img { border-radius: var(--r-md); } }
