/*! DennoDojo stylesheet */

/* =====================================================================
   1. DESIGN TOKENS: change the whole look of the site here
   ===================================================================== */
:root {
  /* Colour: light */
  --paper: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede7;
  --ink: #16171a;
  --ink-2: #3a3c41;
  --muted: #5f6167;
  --line: #e2dfd6;
  --line-strong: #cfcbc0;
  --accent: #0a6aa8;          /* the one accent colour: light blue family (text-safe shade) */
  --accent-strong: #08568a;   /* darker shade for hover */
  --accent-fill: #4db3f0;     /* light blue used for buttons, highlights and the logo seal */
  --accent-fill-strong: #2f9fe3;
  --accent-soft: #e3f2fc;
  --on-accent: #0b2233;       /* text on light blue fills */
  --danger: #b3261e;          /* form errors */
  --good: #1f7a4d;
  --focus: #2458d6;
  --overlay: rgba(18, 18, 20, .42);

  /* Type */
  --font-display: "Lora", "Iowan Old Style", "Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-md: clamp(1.1rem, 1.04rem + .3vw, 1.25rem);
  --fs-lg: clamp(1.3rem, 1.18rem + .6vw, 1.6rem);
  --fs-xl: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.55rem + 2.2vw, 3.25rem);
  --fs-3xl: clamp(2.3rem, 1.6rem + 3.4vw, 4.25rem);
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Space */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(3rem, 2rem + 4vw, 6rem);
  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --container: 1280px;
  --container-wide: 1320px;
  --narrow: 760px;

  /* Shape */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 24, .06), 0 1px 1px rgba(20, 20, 24, .04);
  --shadow-md: 0 10px 30px -12px rgba(20, 20, 24, .22), 0 4px 10px -6px rgba(20, 20, 24, .12);
  --shadow-lg: 0 30px 60px -20px rgba(20, 20, 24, .32), 0 10px 24px -12px rgba(20, 20, 24, .18);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.5, .64, 1);
  --t-fast: .18s; --t-med: .35s; --t-slow: .7s;

  --header-h: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #111214; --surface: #1a1b1f; --surface-2: #222429; --ink: #f1efe9; --ink-2: #cfccc5; --muted: #a2a4aa;
  --line: #2d2f35; --line-strong: #3d4047; --accent: #7cc8f8; --accent-strong: #a5daff; --accent-fill: #5bbcf2; --accent-fill-strong: #86cff7; --accent-soft: #12324a; --on-accent: #0b2233; --danger: #ff8a80;
  --good: #58c28b; --focus: #8fb0ff; --overlay: rgba(0, 0, 0, .6);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111214; --surface: #1a1b1f; --surface-2: #222429; --ink: #f1efe9; --ink-2: #cfccc5; --muted: #a2a4aa;
    --line: #2d2f35; --line-strong: #3d4047; --accent: #7cc8f8; --accent-strong: #a5daff; --accent-fill: #5bbcf2; --accent-fill-strong: #86cff7; --accent-soft: #12324a; --on-accent: #0b2233; --danger: #ff8a80;
    --good: #58c28b; --focus: #8fb0ff; --overlay: rgba(0, 0, 0, .6);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* =====================================================================
   2. FONTS
   ===================================================================== */
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-italic-var.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

/* =====================================================================
   3. BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; outline: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); margin: 0; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
::selection { background: var(--accent-fill); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.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; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: calc(var(--container-wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: calc(var(--narrow) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section) 0; }
.section-tight { padding-block: var(--s-6) 0; }
.band { background: var(--surface-2); padding-block: var(--section); margin-top: var(--section); }
.band + .section { padding-top: var(--section); }
.skip-link { position: absolute; left: var(--s-4); top: var(--s-3); z-index: 200; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); transform: translateY(-160%); transition: transform var(--t-fast) var(--ease); }
.skip-link:focus { transform: none; }
.eyebrow { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-2); }

/* Underline sweep for text links */
.prose a, .footer-nav a, .section-link, .trend-title, .np-all, .see-more, .acc-all, .byline a, .breadcrumbs a, .ab-name a, .form-note a, .footer-note a, .lf-title a, .standfirst a, .empty-note a, .disclosure a {
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size var(--t-med) var(--ease), color var(--t-fast);
}
.prose a:hover, .footer-nav a:hover, .section-link:hover, .trend-title:hover, .np-all:hover, .see-more:hover, .acc-all:hover, .byline a:hover, .breadcrumbs a:hover, .ab-name a:hover, .form-note a:hover, .footer-note a:hover, .lf-title a:hover, .standfirst a:hover, .empty-note a:hover, .disclosure a:hover { background-size: 100% 1px; }

/* =====================================================================
   4. BUTTONS, CHIPS, ICON BUTTONS
   ===================================================================== */
.btn {
  --bg: var(--surface); --fg: var(--ink); --bd: var(--line-strong);
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.2rem; border-radius: var(--r-pill); border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-med) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform var(--t-med) var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn-primary { --bg: var(--accent-fill); --fg: var(--on-accent); --bd: var(--accent-fill); }
.btn-primary:hover { --bg: var(--accent-fill-strong); --bd: var(--accent-fill-strong); }
.btn-ghost { --bg: transparent; }
.btn-ghost:hover { --bg: var(--surface); --bd: var(--ink); }
.btn-sm { min-height: 36px; padding: .4rem .9rem; font-size: var(--fs-xs); }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: var(--fs-base); }
.icon-btn {
  position: relative; overflow: hidden; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.9); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .35rem .9rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease), background-color var(--t-fast);
}
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip:active { transform: scale(.96); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-n { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.is-active .chip-n { color: inherit; opacity: .7; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .02em; }
:root[data-theme="dark"] .badge { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: var(--accent); } }

/* Ripple (added by JS) */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .18; transform: scale(0); animation: ripple .6s var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* =====================================================================
   5. LOGO
   ===================================================================== */
.logo { position: relative; display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-size: 1.55rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); padding: .35rem 0; -webkit-tap-highlight-color: transparent; transition: transform var(--t-fast) var(--ease); }
.lg-word { display: inline-flex; }
.lg-l { display: inline-block; transition: transform var(--t-med) var(--ease-spring), color var(--t-fast); transition-delay: calc(var(--i) * 18ms); }
.lg-a { font-weight: 500; }
.lg-b { font-weight: 700; }
.lg-seal { width: .3em; height: .3em; margin-left: .06em; background: var(--accent-fill); border-radius: 2px; align-self: flex-end; margin-bottom: .14em; transition: transform var(--t-med) var(--ease-spring); }
.lg-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-fill); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.logo:hover .lg-l, .logo:focus-visible .lg-l { transform: translateY(-2px); }
.logo:hover .lg-b, .logo:focus-visible .lg-b { color: var(--accent); }
.logo:hover .lg-seal, .logo:focus-visible .lg-seal { transform: rotate(45deg) scale(1.15); }
.logo:hover .lg-line, .logo:focus-visible .lg-line { transform: scaleX(1); }
.logo:active { transform: scale(.95); }
.logo.is-pressed .lg-seal { transform: rotate(225deg) scale(1.3); }
.js .logo.is-intro .lg-l { animation: lg-in .7s var(--ease-out) both; animation-delay: calc(80ms + var(--i) * 45ms); }
.js .logo.is-intro .lg-seal { animation: lg-seal .6s var(--ease-spring) .62s both; }
.js .logo.is-intro .lg-line { animation: lg-line 1.1s var(--ease) .8s both; }
@keyframes lg-in { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@keyframes lg-seal { from { opacity: 0; transform: scale(0) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes lg-line { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.1% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.logo--footer { font-size: 1.8rem; }

/* =====================================================================
   6. HEADER + DESKTOP NAV
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t-med), box-shadow var(--t-med); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.site-header.is-compact { box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .35); }
.site-header.is-compact .logo--header { transform: scale(.92); transform-origin: left center; }
.logo--header { transition: transform var(--t-med) var(--ease); }
.menu-toggle { display: none; margin-left: -10px; }
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: .3rem; height: 44px; padding: 0 .85rem; border-radius: var(--r-pill); font-size: .95rem; font-weight: 560; color: var(--ink-2); transition: color var(--t-fast), background-color var(--t-fast); }
.nav-link .chev, .nav-caret .chev { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease); }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"], .nav-link.is-current { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-expanded="true"] .chev, .nav-caret[aria-expanded="true"] .chev { transform: rotate(180deg); }
.is-split .nav-link { padding-right: .35rem; border-radius: var(--r-pill) 0 0 var(--r-pill); }
.nav-caret { display: inline-grid; place-items: center; height: 44px; width: 32px; border-radius: 0 var(--r-pill) var(--r-pill) 0; color: var(--ink-2); transition: background-color var(--t-fast); }
.nav-caret:hover, .nav-caret[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .15rem; margin-left: var(--s-2); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; } }
.theme-toggle svg { transition: transform var(--t-slow) var(--ease-spring); }
.theme-toggle.is-flipping svg { transform: rotate(180deg) scale(.6); }

.nav-panel { position: absolute; top: calc(100% + 10px); left: 50%; width: min(420px, 92vw); transform: translate(-50%, 8px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med); z-index: 70; }
.nav-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.is-split .nav-panel { left: auto; right: -40px; transform: translateY(8px) scale(.98); }
.is-split .nav-panel.is-open { transform: none; }
.nav-panel-inner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--s-4); max-height: calc(100vh - 110px); overflow: auto; overscroll-behavior: contain; }
.np-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-1) var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); margin-bottom: var(--s-2); }
.np-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.np-all { min-height: 32px; display: inline-flex; align-items: center; gap: .3rem; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.np-all svg, .see-more svg, .acc-all svg, .section-link svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease); }
.np-all:hover svg, .see-more:hover svg, .acc-all:hover svg, .section-link:hover svg { transform: translateX(3px); }

/* =====================================================================
   7. COLLAPSIBLE CATEGORY NAVIGATOR
   ===================================================================== */
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-trigger { position: relative; overflow: hidden; display: flex; align-items: center; width: 100%; gap: .6rem; min-height: 48px; padding: .6rem .5rem; text-align: left; font-weight: 600; border-radius: var(--r-sm); transition: background-color var(--t-fast), color var(--t-fast); -webkit-tap-highlight-color: transparent; }
.acc-trigger:hover { background: var(--surface-2); }
.acc-label { flex: 1; }
.acc-main > .acc-trigger { font-family: var(--font-display); font-size: 1.15rem; }
.acc-sub > .acc-trigger { font-size: .98rem; color: var(--ink-2); }
.acc-sub > .acc-trigger[aria-expanded="true"] { color: var(--ink); }
.acc-count { min-width: 1.6rem; padding: .05rem .45rem; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.acc-trigger .chev { width: 18px; height: 18px; flex: none; transition: transform var(--t-med) var(--ease); }
.acc-trigger[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.acc-inner { overflow: hidden; }
.js .acc-panel { height: 0; overflow: hidden; visibility: hidden; transition: height var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
.js .acc-panel.is-auto { height: auto; }
.js .acc-panel > .acc-inner { opacity: 0; transform: translateY(-6px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.js .acc-item.is-open > .acc-panel { visibility: visible; transition: height var(--t-med) var(--ease), visibility 0s; }
.js .acc-item.is-open > .acc-panel > .acc-inner { opacity: 1; transform: none; }
.acc-main > .acc-panel > .acc-inner { padding-left: .6rem; }
.acc-main.is-open > .acc-panel > .acc-inner { padding-bottom: .6rem; }
.acc-sub.is-open > .acc-panel > .acc-inner { padding-bottom: .4rem; }
.acc-posts { display: grid; gap: .1rem; padding: .2rem 0 .3rem; }
.mini-post { position: relative; overflow: hidden; display: flex; align-items: center; gap: .75rem; padding: .45rem .5rem; border-radius: var(--r-sm); transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.mini-post:hover { background: var(--surface-2); }
.mini-post:active { transform: scale(.98); }
.mini-thumb { flex: none; width: 64px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-text { display: grid; gap: .1rem; min-width: 0; }
.mini-title { font-size: var(--fs-sm); font-weight: 580; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-meta { font-size: var(--fs-xs); color: var(--muted); }
.see-more, .acc-all { min-height: 32px; display: inline-flex; align-items: center; gap: .35rem; margin: .25rem .5rem .35rem; font-size: var(--fs-sm); font-weight: 650; color: var(--accent); }
.acc-all { margin-top: .6rem; }
.acc--flat .acc-posts { padding-top: 0; }

/* =====================================================================
   8. MOBILE + TABLET MENU
   ===================================================================== */
.burger { position: relative; width: 22px; height: 16px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-med) var(--ease), opacity var(--t-fast); }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 7px; } .burger i:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 55; }
.mobile-menu[hidden] { display: none; }
.mm-backdrop { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.mm-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); padding-top: var(--header-h); box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .45s var(--ease-out); }
.mm-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) var(--gutter) var(--s-7); }
.mobile-menu.is-open .mm-backdrop { opacity: 1; }
.mobile-menu.is-open .mm-panel { transform: none; }
.mm-scroll > * { opacity: 0; transform: translateX(-14px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.mm-links li, .mm-label, .mm-acc { --d: 0; }
.mobile-menu.is-open .mm-scroll > * { opacity: 1; transform: none; transition-delay: calc(.12s + var(--d, 0) * 45ms); }
.mm-scroll > .mm-links:nth-child(1) { --d: 0; } .mm-scroll > .mm-label { --d: 2; } .mm-scroll > .mm-acc { --d: 3; } .mm-scroll > .mm-links--small { --d: 5; }
.mm-links a { position: relative; overflow: hidden; display: block; padding: .7rem .5rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; border-radius: var(--r-sm); transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.mm-links a:hover { background: var(--surface-2); }
.mm-links a:active { transform: scale(.98); }
.mm-label { margin: var(--s-5) .5rem var(--s-1); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mm-acc { border-block: 1px solid var(--line); padding-block: .25rem; }
.mm-links--small { margin-top: var(--s-4); display: grid; grid: auto-flow / 1fr 1fr; }
.mm-links--small a { font-family: var(--font-body); font-size: 1rem; font-weight: 560; color: var(--ink-2); padding: .6rem .5rem; }
body.is-locked { overflow: hidden; }
@media (max-width: 1099.98px) {
  .menu-toggle { display: inline-grid; }
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-inner { gap: var(--s-2); }
  :root { --header-h: 64px; }
}

/* =====================================================================
   9. SEARCH OVERLAY
   ===================================================================== */
.search-overlay { position: fixed; inset: 0; z-index: 90; }
.search-overlay[hidden] { display: none; }
.so-backdrop { position: absolute; inset: 0; background: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.so-sheet { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; transform: translateY(-24px) scale(.985); opacity: 0; transform-origin: top center; transition: transform .45s var(--ease-out), opacity var(--t-med) var(--ease); }
.search-overlay.is-open .so-backdrop { opacity: 1; }
.search-overlay.is-open .so-sheet { transform: none; opacity: 1; }
.so-inner { padding-block: var(--s-4) var(--s-6); }
.so-bar { position: relative; display: flex; align-items: center; gap: .75rem; border-bottom: 2px solid var(--ink); padding: .4rem 0; }
.so-bar > svg { width: 26px; height: 26px; flex: none; color: var(--muted); }
.so-bar input { flex: 1; min-width: 0; height: 60px; border: 0; background: transparent; font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); outline: none; -webkit-appearance: none; appearance: none; }
.so-bar input::-webkit-search-cancel-button { display: none; }
.so-hint, .page-search .so-hint { position: absolute; left: 2.6rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 7rem); transition: opacity var(--t-fast), transform var(--t-fast); }
.has-value .so-hint { opacity: 0; transform: translate(8px, -50%); }
.so-kbd { padding: .15rem .45rem; border: 1px solid var(--line-strong); border-radius: 6px; font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-body); }
.so-results { margin-top: var(--s-4); display: grid; gap: .15rem; }
.so-status { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-3); }
.so-status:empty { display: none; }
.so-idle { margin-top: var(--s-5); }
.so-idle[hidden] { display: none; }
.sr-item { position: relative; overflow: hidden; display: grid; grid: auto-flow / 72px 1fr auto; align-items: center; gap: .9rem; padding: .6rem .7rem; border-radius: var(--r-md); cursor: pointer; opacity: 0; transform: translateY(6px); animation: sr-in .32s var(--ease-out) forwards; animation-delay: calc(var(--n, 0) * 28ms); transition: background-color var(--t-fast); }
@keyframes sr-in { to { opacity: 1; transform: none; } }
.sr-item:hover, .sr-item[aria-selected="true"] { background: var(--surface-2); }
.sr-item[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.sr-thumb { width: 72px; height: 50px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-thumb svg { width: 22px; height: 22px; }
.sr-text { min-width: 0; }
.sr-cat { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.sr-title { font-weight: 620; line-height: 1.3; display: block; }
.sr-snip { font-size: var(--fs-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sr-go svg { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t-fast) var(--ease); }
.sr-item:hover .sr-go svg, .sr-item[aria-selected="true"] .sr-go svg { transform: translateX(3px); color: var(--ink); }
mark { background: color-mix(in srgb, var(--accent-fill) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 .08em; }
.sr-group { margin: var(--s-4) .7rem .3rem; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sr-all { margin: var(--s-3) .7rem 0; }
.sr-empty { padding: var(--s-6) var(--s-2) var(--s-3); text-align: center; animation: sr-in .4s var(--ease-out) both; }
.sr-empty-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--s-2); }
.sr-empty p.muted { margin-bottom: var(--s-4); }
.sr-empty .chip-row { justify-content: center; }
.sr-suggest { margin-top: var(--s-5); text-align: left; }
@media (max-width: 599.98px) { .so-kbd { display: none; } .sr-item { grid: auto-flow / 56px 1fr; } .sr-thumb { width: 56px; height: 42px; } .sr-go { display: none; } }

/* =====================================================================
   10. SECTION HEADS, GRIDS, CARDS
   ===================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); padding-bottom: var(--s-3); border-bottom: 1px solid var(--ink); }
.section-head .eyebrow { margin-bottom: .3rem; }
.section-head.is-sub { border-bottom-color: var(--line); margin-bottom: var(--s-4); }
.section-title { font-size: var(--fs-xl); }
.section-link { min-height: 32px; display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.grid { display: grid; gap: clamp(1.25rem, .8rem + 1.5vw, 2rem); }
.grid-2 { grid: auto-flow / repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid: auto-flow / repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid: auto-flow / repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1024px) { .grid-2 { grid: auto-flow / repeat(2, 1fr); } .grid-3 { grid: auto-flow / repeat(3, 1fr); } .grid-4 { grid: auto-flow / repeat(4, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med); -webkit-tap-highlight-color: transparent; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:active { transform: translateY(-2px) scale(.99); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: var(--s-4) var(--s-4) var(--s-5); flex: 1; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.kicker-cat { position: relative; z-index: 2; color: var(--accent); transition: color var(--t-fast); }
a.kicker-cat:hover { color: var(--ink); }
.kicker-format { color: var(--muted); }
.kicker-format::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin-right: .5rem; vertical-align: middle; }
.kicker-cat:empty + .kicker-format::before { display: none; }
.card-title { font-size: 1.22rem; line-height: 1.25; }
.card-title a { transition: color var(--t-fast); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--accent-strong); }
:root[data-theme="dark"] .card:hover .card-title a { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card:hover .card-title a { color: var(--accent); } }
.card-excerpt { color: var(--ink-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: .35rem; display: flex; flex-wrap: wrap; gap: .45rem; font-size: var(--fs-xs); color: var(--muted); }
.card-score { position: absolute; left: .75rem; top: .75rem; z-index: 2; display: grid; place-items: center; min-width: 2.7rem; height: 2.7rem; padding: 0 .4rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-md); }
.meta-score { font-weight: 650; color: var(--ink-2); }
.card--hero { border: 0; background: transparent; border-radius: 0; overflow: visible; }
.card--hero:hover { transform: none; box-shadow: none; }
.card--hero .card-media { border-radius: var(--r-lg); aspect-ratio: 16 / 10; }
.card--hero .card-body { padding: var(--s-5) 0 0; }
.card--hero .card-title { font-size: var(--fs-2xl); line-height: 1.08; }
.card--hero .card-excerpt { font-size: var(--fs-md); -webkit-line-clamp: 4; }
.card--compact { flex-direction: row; align-items: flex-start; gap: var(--s-4); background: transparent; border: 0; border-radius: var(--r-md); padding: var(--s-3); overflow: visible; }
.card--compact:hover { transform: none; box-shadow: none; background: var(--surface); }
.card--compact .card-media { flex: none; width: clamp(96px, 30%, 150px); aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.card--compact .card-body { padding: 0; gap: .35rem; }
.card--compact .card-title { font-size: 1.05rem; }
.card--compact .card-score { width: 2rem; min-width: 2rem; height: 2rem; font-size: .75rem; left: .35rem; top: .35rem; }
.card-num { font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1; }

/* Reveal on scroll (JS adds .is-in) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--rd, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in { transition: opacity var(--t-slow) var(--ease-out), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med); transition-delay: 0ms; }

/* =====================================================================
   11. HOME
   ===================================================================== */
.home-hero { padding-top: var(--s-5); }
.hero-grid { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .hero-grid { grid: auto-flow / minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; } }
.hero-side { display: grid; gap: .25rem; align-content: start; }
@media (min-width: 1024px) { .hero-side { border-left: 1px solid var(--line); padding-left: var(--s-5); } }
.parallax img { will-change: transform; transform: scale(1.08) translateY(var(--py, 0px)); }
.card--hero:hover .parallax img { transform: scale(1.1) translateY(var(--py, 0px)); }
.js .home-hero .card--hero .card-body > * { animation: rise .8s var(--ease-out) both; }
.js .home-hero .card--hero .card-body > *:nth-child(2) { animation-delay: .08s; }
.js .home-hero .card--hero .card-body > *:nth-child(3) { animation-delay: .16s; }
.js .home-hero .card--hero .card-body > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.split-grid { display: grid; gap: var(--s-7); }
@media (min-width: 1100px) { .split-grid { grid: auto-flow / minmax(0, 1fr) 340px; } }
.trend-list { counter-reset: t; display: grid; }
.trend-list li { display: flex; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.trend-n { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; font-weight: 500; color: var(--line-strong); min-width: 1.6rem; transition: color var(--t-med); }
.trend-list li:hover .trend-n { color: var(--accent); }
.trend-title { display: inline; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.trend-list .kicker { margin-bottom: .3rem; }
.listing-feature { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .listing-feature { grid: auto-flow / 1.1fr 1fr; } }
.lf-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; box-shadow: var(--shadow-md); }
.lf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.listing-feature:hover .lf-media img { transform: scale(1.04); }
.lf-body { display: grid; gap: var(--s-4); justify-items: start; }
.lf-title { font-size: var(--fs-2xl); }
.lf-body > p:not(.eyebrow) { color: var(--ink-2); font-size: var(--fs-md); }
.lf-body > .eyebrow { margin-bottom: -.5rem; }
.lf-picks { display: grid; gap: .5rem; width: 100%; }
.lf-picks li { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; padding: .55rem 0; border-bottom: 1px solid var(--line-strong); }
.lf-picks span { font-family: var(--font-display); color: var(--accent); font-weight: 600; }
.lf-picks a { font-weight: 620; }
.lf-picks a:hover { color: var(--accent); }
.lf-picks em { font-style: normal; font-size: var(--fs-xs); color: var(--muted); margin-left: auto; }
.browse { display: grid; gap: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, .8rem + 2vw, 2.75rem); }
@media (min-width: 900px) { .browse { grid: auto-flow / 1fr 1.4fr; } }
.browse-intro p:not(.eyebrow) { color: var(--ink-2); margin-top: var(--s-3); max-width: 38ch; }
.acc--home .acc-main > .acc-trigger { font-size: 1.35rem; min-height: 60px; }

/* =====================================================================
   12. PAGE HEROES, BREADCRUMBS, CATEGORY
   ===================================================================== */
.page-hero { padding-top: var(--s-6); max-width: calc(var(--container) + var(--gutter) * 2); }
.page-hero .page-title, .page-head .page-title { font-size: var(--fs-3xl); margin-bottom: var(--s-3); }
.page-hero .standfirst { max-width: 60ch; }
.page-head { padding-top: var(--s-6); }
.page-updated { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.breadcrumbs { margin-bottom: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-hero .sub-chips { margin-top: var(--s-5); }
.lead-grid { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .lead-grid { grid: auto-flow / minmax(0, 1.6fr) minmax(0, 1fr); } .lead-side { border-left: 1px solid var(--line); padding-left: var(--s-5); } }
.lead-side { display: grid; align-content: start; gap: .25rem; }
[data-more] { display: none; }
.no-js [data-more] { display: flex; }
.js [data-more].is-shown { display: flex; animation: rise .6s var(--ease-out) both; }
.load-more-wrap { display: grid; justify-items: center; gap: .6rem; margin-top: var(--s-6); }
.empty-note { padding: var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; color: var(--ink-2); }
.author-hero .ah-row { display: flex; gap: var(--s-5); align-items: flex-start; }
.desk-card { position: relative; display: flex; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.desk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.desk-name { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.desk-card p:not(.eyebrow) { color: var(--ink-2); }

/* Reviews page */
.reviews-top { display: grid; gap: clamp(1.25rem, .8rem + 1.5vw, 2rem); grid: auto-flow / repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 1024px) {
  .reviews-top { grid: auto-flow / repeat(4, 1fr); }
  .reviews-top > :first-child { grid-column: span 2; grid-row: span 2; }
  .reviews-top > :first-child .card-title { font-size: var(--fs-xl); }
  .reviews-top > :first-child .card-media { aspect-ratio: 16 / 11; }
}
.review-group + .review-group { margin-top: var(--s-4); }
.rg-head { margin-bottom: var(--s-5); padding-bottom: var(--s-3); border-bottom: 1px solid var(--ink); }
.rg-sub + .rg-sub { margin-top: var(--s-7); }
.rg-title { font-size: var(--fs-lg); }
.rg-title span { color: var(--muted); }

/* Features */
.picks-grid { display: grid; gap: clamp(1.25rem, .8rem + 1.5vw, 2rem); }
@media (min-width: 900px) { .picks-grid { grid: auto-flow / repeat(3, 1fr); } .picks-grid > .card--hero { grid-column: 1 / -1; display: grid; grid: auto-flow / 1.4fr 1fr; gap: var(--s-6); align-items: center; } .picks-grid > .card--hero .card-body { padding: 0; } }

/* =====================================================================
   13. ARTICLE
   ===================================================================== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent-fill); transform-origin: left; transform: scaleX(var(--p, 0)); }
.article-head { padding-top: var(--s-6); }
.article-title { font-size: var(--fs-3xl); line-height: 1.06; margin: var(--s-3) 0 var(--s-4); }
.standfirst { font-size: var(--fs-md); line-height: 1.5; color: var(--ink-2); }
.js .article-head > *, .js .page-head > *, .js .page-hero > * { animation: rise .7s var(--ease-out) both; }
.js .article-head > :nth-child(2), .js .page-head > :nth-child(2), .js .page-hero > :nth-child(2) { animation-delay: .05s; }
.js .article-head > :nth-child(3), .js .page-head > :nth-child(3), .js .page-hero > :nth-child(3) { animation-delay: .1s; }
.js .article-head > :nth-child(4), .js .page-head > :nth-child(4), .js .page-hero > :nth-child(4) { animation-delay: .15s; }
.js .article-head > :nth-child(5), .js .page-head > :nth-child(5), .js .page-hero > :nth-child(5) { animation-delay: .2s; }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.byline-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: var(--fs-sm); color: var(--muted); }
.byline-meta a { color: var(--ink); font-weight: 600; }
.byline-meta .rt { display: inline-flex; align-items: center; gap: .3rem; }
.byline-meta svg { width: 15px; height: 15px; }
.copy-link svg { width: 16px; height: 16px; }
.copy-link.is-done { --bd: var(--good); color: var(--good); }
.article-hero { margin-top: var(--s-6); }
.hero-frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.article-hero figcaption, .media figcaption { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.credit { font-size: var(--fs-xs); letter-spacing: .02em; opacity: .85; }
.article-grid { display: grid; gap: var(--s-7); margin-top: var(--s-7); }
.article-body { width: 100%; max-width: var(--narrow); margin-inline: auto; min-width: 0; }
@media (min-width: 1200px) {
  .article-grid.has-rail { grid: auto-flow / minmax(0, 1fr) 260px; max-width: calc(var(--narrow) + 260px + var(--s-7) + var(--gutter) * 2); }
  .article-grid.has-rail .article-body { margin-inline: 0; }
  .toc-mobile { display: none; }
}
.article-rail { display: none; }
@media (min-width: 1200px) { .article-rail { display: block; } .article-rail .toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.toc { font-size: var(--fs-sm); }
.toc-title { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: .35rem 0 .35rem var(--s-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); line-height: 1.35; transition: color var(--t-fast), border-color var(--t-fast); }
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.prose .toc li + li { margin-top: 0; }
.toc-inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; }

/* Prose */
.prose { font-size: clamp(1.02rem, .98rem + .25vw, 1.125rem); line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .75em; }
.prose a { color: var(--accent-strong); font-weight: 560; background-size: 100% 1px; background-image: linear-gradient(color-mix(in srgb, currentColor 35%, transparent), color-mix(in srgb, currentColor 35%, transparent)); }
.prose a:hover { background-image: linear-gradient(currentColor, currentColor); }
:root[data-theme="dark"] .prose a { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prose a { color: var(--accent); } }
.prose > ul:not([class]), .prose > ol:not([class]), .faq-a ul { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }
.pull-quote { margin: 2em 0; padding: var(--s-2) 0 var(--s-2) var(--s-5); border-left: 3px solid var(--accent); }
.pull-quote p { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); line-height: 1.4; }
.pull-quote cite { display: block; margin-top: var(--s-3); font-style: normal; font-size: var(--fs-sm); color: var(--muted); }
.pull-quote cite::before { content: "— "; }
.callout { display: flex; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: .98rem; line-height: 1.6; }
.callout > svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: .15rem; }
.callout-title { font-weight: 700; margin-bottom: .2rem; }
.tone-warning { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.tone-note > svg { color: var(--focus); }
.disclosure { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); margin-bottom: var(--s-5); }
.disclosure svg { flex: none; width: 18px; height: 18px; margin-top: .15rem; color: var(--muted); }
.disclosure a { color: var(--ink); font-weight: 600; background-size: 100% 1px; }

/* Media blocks */
.media { margin-block: 2em; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); }
.media img, .media video { width: 100%; }
.media.has-ratio .media-frame { aspect-ratio: var(--ar); }
.media.has-ratio .media-frame img, .media.has-ratio .media-frame video { height: 100%; }
.media.fit-cover img { object-fit: cover; }
.media.fit-contain img { object-fit: contain; }
.media .media-frame img { max-height: var(--mh, none); }
.media.fit-contain .media-frame img { margin-inline: auto; width: auto; max-width: 100%; }
.pos-center { max-width: var(--mw, 100%); margin-inline: auto; }
.pos-left { max-width: var(--mw, 100%); margin-right: auto; }
.pos-right { max-width: var(--mw, 100%); margin-left: auto; }
.pos-wide { width: min(100vw - var(--gutter) * 2, 1100px); margin-left: 50%; transform: translateX(-50%); }
.pos-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.pos-full .media-frame { border-radius: 0; }
.pos-full figcaption { padding-inline: var(--gutter); }
@media (min-width: 700px) {
  .pos-float-left { float: left; width: var(--mw, 45%); margin: .35em 1.75em 1em 0; }
  .pos-float-right { float: right; width: var(--mw, 45%); margin: .35em 0 1em 1.75em; }
}
.prose h2, .prose h3, .prose .verdict-box, .prose .faq, .prose .product-card { clear: both; }
.kind-infographic .zoom-link { display: block; cursor: zoom-in; }
.kind-gif img { image-rendering: auto; }
.video-facade { position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; background: #0e0f11; color: #fff; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity var(--t-med), transform .8s var(--ease); }
.video-facade:hover img { opacity: 1; transform: scale(1.03); }
.play-btn { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); box-shadow: var(--shadow-lg); transition: transform var(--t-med) var(--ease-spring); }
.play-btn svg { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.video-facade:hover .play-btn { transform: scale(1.1); }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Product card */
.product-card { position: relative; display: grid; gap: var(--s-5); padding: var(--s-5); margin-block: 2em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); scroll-margin-top: calc(var(--header-h) + 1.5rem); transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med); }
.product-card:hover { box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .product-card { grid: auto-flow / 200px 1fr; } }
.pc-rank { position: absolute; top: -.9rem; left: var(--s-5); z-index: 2; padding: .1rem .6rem; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.pc-media { border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; align-self: start; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-body { display: grid; gap: .55rem; align-content: start; font-size: 1rem; line-height: 1.6; }
.pc-body .badge { justify-self: start; }
.pc-name { font-size: var(--fs-lg); margin: 0 !important; }
.pc-brand { font-size: var(--fs-sm); color: var(--muted); }
.pc-rating { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: 650; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: .35rem; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.price-note { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.product-card.is-target { animation: target-glow 2.4s var(--ease) 1; }
@keyframes target-glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 15%, 60% { box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg); } }
.stars { --pct: calc(var(--rating) / 5 * 100%); display: inline-block; width: 5.4em; height: 1em; font-size: 1rem;
  background: linear-gradient(90deg, var(--accent-fill-strong) var(--pct), var(--line-strong) var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3 6.1 20.5l1.3-6.5L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") left center / 1.08em 1em repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3 6.1 20.5l1.3-6.5L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") left center / 1.08em 1em repeat-x; }

/* Pros and cons */
.proscons { display: grid; gap: var(--s-4); }
@media (min-width: 560px) { .proscons { grid: auto-flow / 1fr 1fr; } }
.pc-col { padding: var(--s-4); border-radius: var(--r-md); background: var(--surface-2); }
.pc-title { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: var(--fs-sm); margin-bottom: .5rem; }
.pc-title svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; }
.pc-pros .pc-title svg { background: var(--good); color: #fff; }
.pc-cons .pc-title svg { background: var(--muted); color: var(--surface); }
.pc-col ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; line-height: 1.5; }
.pc-col li { position: relative; padding-left: 1rem; }
.pc-col li + li { margin-top: .35rem; }
.pc-col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.proscons.is-mini .pc-col { padding: var(--s-3); }
.proscons.is-mini ul { font-size: var(--fs-sm); }

/* Score + verdict */
.score-ring { --size: 76px; position: relative; flex: none; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-fill) calc(var(--score) * 10%), var(--line) 0); }
.score-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.score-ring.is-big { --size: 118px; }
.score-ring.is-big::before { inset: 8px; }
.score-ring.is-big span { font-size: 2.4rem; }
.verdict-box { display: flex; gap: var(--s-5); align-items: flex-start; padding: var(--s-5) var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-lg); margin-top: 2.5em !important; }
.verdict-body h2 { font-size: var(--fs-lg) !important; margin: 0 0 .5rem !important; }
.verdict-icon { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.verdict-icon svg { width: 30px; height: 30px; }
@media (max-width: 520px) { .verdict-box { flex-direction: column; } }
.review-box { display: grid; gap: var(--s-5); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--s-6); box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .review-box { grid: auto-flow / auto 1fr; } .review-box .proscons, .review-box .specs { grid-column: 1 / -1; } }
.rb-score { display: grid; justify-items: center; gap: .3rem; }
.rb-scale { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.rb-main { display: grid; gap: .6rem; align-content: center; }
.rb-product { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); line-height: 1.2; }
.rb-product span { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-left: .35rem; }
.rb-verdict { font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); }
.rb-main .badge { justify-self: start; }
.specs dl { display: grid; margin: 0; }
.specs dl > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
div.specs:not(.review-box .specs) { padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }

/* Comparison */
.glance { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.gl-grid { display: grid; grid: auto-flow / 1fr auto 1fr; gap: var(--s-4); align-items: center; margin-top: var(--s-2); }
.gl-side { display: grid; gap: .35rem; justify-items: center; text-align: center; padding: var(--s-4) var(--s-3); border-radius: var(--r-md); border: 1px solid var(--line); height: 100%; align-content: center; transition: transform var(--t-med) var(--ease); }
.gl-side.is-winner { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.gl-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); line-height: 1.2; }
.gl-score { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; line-height: 1; }
.gl-score span { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.gl-best { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
.gl-vs { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); color: var(--muted); }
.gl-summary { margin-top: var(--s-4); font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.win-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: var(--r-pill); background: var(--accent-fill); color: var(--on-accent); font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.win-badge svg { width: 13px; height: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; min-width: 480px; }
.compare-table caption { text-align: left; padding: var(--s-4) var(--s-4) 0; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.compare-table th, .compare-table td { padding: .8rem var(--s-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.compare-table tbody th { font-weight: 600; color: var(--ink-2); width: 30%; }
.compare-table .col-win { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.compare-table .cell-win { font-weight: 650; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.compare-table .cell-win::after { content: " ✓"; color: var(--accent); }
.round { padding-top: .25rem; }
.round-winner { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-sm); }
.round-winner svg { width: 17px; height: 17px; color: var(--accent); }

/* Quick picks */
.quick-picks { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.quick-picks ol { list-style: none; margin: 0; padding: 0; display: grid; }
.quick-picks li + li { border-top: 1px solid var(--line); }
.quick-picks a { display: flex; align-items: center; gap: var(--s-3); padding: .7rem .25rem; border-radius: var(--r-sm); transition: background-color var(--t-fast), transform var(--t-med) var(--ease); background-image: none !important; color: var(--ink) !important; font-weight: 400 !important; }
.quick-picks a:hover { background: var(--surface-2) !important; transform: translateX(4px); }
.qp-n { display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: var(--fs-sm); }
.qp-text { display: grid; flex: 1; line-height: 1.35; font-size: 1rem; }
.qp-text span { font-size: var(--fs-sm); color: var(--muted); }
.quick-picks a svg { width: 18px; height: 18px; color: var(--muted); }

/* FAQ */
.faq { margin-top: 2em; }
.faq h2 { margin-bottom: .6em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 1rem .25rem; cursor: pointer; list-style: none; font-weight: 620; font-size: 1.05rem; line-height: 1.4; transition: color var(--t-fast); -webkit-tap-highlight-color: transparent; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-strong); }
.faq-item summary .chev { flex: none; width: 20px; height: 20px; transition: transform var(--t-med) var(--ease); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-a { padding: 0 .25rem 1.1rem; color: var(--ink-2); }
.faq-item[open] .faq-a { animation: faq-in var(--t-med) var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Article footer + author */
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: var(--s-7) !important; padding-top: var(--s-5); border-top: 1px solid var(--line); clear: both; }
.article-foot .chip-row { list-style: none; padding: 0; }
.article-foot li + li { margin-top: 0; }
.author-box { display: flex; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: var(--s-5) !important; }
.ab-mark { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; }
.ab-mark.is-lg { width: 84px; height: 84px; font-size: 1.5rem; }
.ab-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); }
.ab-name a { background-size: 0 1px; }
.ab-bio { font-size: .95rem; line-height: 1.6; color: var(--ink-2); margin-top: .3rem; }
.author-box .eyebrow { margin-bottom: .1rem; }
.related { padding-bottom: 0; }

/* =====================================================================
   14. FORMS, SEARCH PAGE, 404
   ===================================================================== */
.contact-form { display: grid; gap: var(--s-5); padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 620; font-size: var(--fs-sm); }
.field input, .field textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper); font-size: 1rem; line-height: 1.5; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); animation: shake .35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field-error { min-height: 1.2em; font-size: var(--fs-sm); color: var(--danger); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-note { font-size: var(--fs-sm); color: var(--muted); }
.form-note a { color: var(--ink); font-weight: 600; background-size: 100% 1px; }
.form-status { font-size: var(--fs-sm); color: var(--danger); }
.form-status:empty { display: none; }
.contact-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
.contact-form.is-sent > :not(.form-success) { display: none; }
.form-success { text-align: center; padding: var(--s-6) 0; display: grid; justify-items: center; gap: var(--s-3); animation: rise .6s var(--ease-out) both; }
.form-success h2 { margin: 0 !important; }
.success-mark { width: 84px; height: 84px; }
.success-mark circle { stroke: var(--good); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) .1s forwards; }
.success-mark path { stroke: var(--good); stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .7s forwards; }
.success-mark.is-static { margin-bottom: var(--s-4); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.page-search { position: relative; display: flex; align-items: center; gap: .6rem; max-width: 640px; margin-top: var(--s-5); padding: .35rem .35rem .35rem 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.page-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.page-search > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.page-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; outline: none; font-size: 1.05rem; -webkit-appearance: none; appearance: none; }
.page-search .so-hint { left: 2.9rem; font-family: var(--font-body); font-size: 1.05rem; max-width: calc(100% - 9rem); }
.search-page-results .sr-item { animation-delay: calc(var(--n, 0) * 20ms); }
.nf { text-align: center; padding-top: var(--s-8); display: grid; grid: auto-flow / minmax(0, 1fr); justify-items: center; }
.nf > * { max-width: 100%; }
.nf .standfirst { max-width: 52ch; margin-inline: auto; }
.nf .page-title { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.nf-code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: .9; font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--accent); letter-spacing: -.04em; animation: rise 1s var(--ease-out) both; }
.nf .page-search { width: 100%; margin-inline: auto; }
.nf-links { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }

/* =====================================================================
   15. FOOTER, BACK TO TOP, TOAST
   ===================================================================== */
.site-footer { margin-top: var(--section); padding-top: var(--s-8); border-top: 1px solid var(--line); background: var(--surface); }
.footer-top { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); }
@media (min-width: 900px) { .footer-top { grid: auto-flow / 1fr 1.6fr; } }
.footer-brand p { margin-top: var(--s-4); max-width: 42ch; color: var(--ink-2); }
.footer-nav { display: grid; grid: auto-flow / repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-6); }
.footer-h { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li + li { margin-top: .55rem; }
.footer-nav a { color: var(--ink-2); font-weight: 520; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.footer-note { max-width: 60ch; }
.footer-note a { color: var(--ink-2); font-weight: 600; background-size: 100% 1px; }
.to-top { position: fixed; right: max(var(--s-4), env(safe-area-inset-right)); bottom: max(var(--s-4), env(safe-area-inset-bottom)); z-index: 50; width: 48px; height: 48px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease-spring), background-color var(--t-fast); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-fill); color: var(--on-accent); }
.toast { position: fixed; left: 50%; bottom: var(--s-6); z-index: 100; padding: .7rem 1.2rem; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease-spring); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { visibility: hidden; }

/* =====================================================================
   16. SMALL SCREENS
   ===================================================================== */
@media (max-width: 599.98px) {
  .card--hero .card-title { font-size: var(--fs-xl); }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .gl-grid { grid: auto-flow / 1fr; }
  .gl-vs { text-align: center; }
  .byline { flex-direction: column; align-items: flex-start; }
  .author-hero .ah-row { flex-direction: column; }
  .mm-links--small { grid: auto-flow / 1fr; }
  .product-card { padding: var(--s-4); }
  .pc-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 359.98px) { .logo--header { font-size: 1.3rem; } .header-actions .icon-btn { width: 40px; } }
@media (min-width: 1800px) { :root { --container: 1440px; --container-wide: 1500px; --narrow: 800px; } html { font-size: 106%; } }
@media (min-width: 2400px) { :root { --container: 1640px; --container-wide: 1700px; --narrow: 860px; } html { font-size: 118%; } }

/* Contents links inside articles stay neutral in both themes */
:root .prose .toc a { background-image: none; color: var(--ink-2); font-weight: 500; }
:root .prose .toc a:hover, :root .prose .toc a.is-active { color: var(--ink); }
:root .prose .toc a.is-active { font-weight: 650; }

/* =====================================================================
   17. REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .parallax img { transform: none !important; }
  .card:hover, .btn:hover, .desk-card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}

/* =====================================================================
   18. PRINT
   ===================================================================== */
@media print {
  :root { --paper: #fff; --surface: #fff; --surface-2: #f3f3f3; --ink: #000; --ink-2: #222; --muted: #555; --line: #ccc; }
  .site-header, .site-footer, .mobile-menu, .search-overlay, .to-top, .toast, .read-progress, .copy-link, .article-rail, .toc-inline, .related, .skip-link, .disclosure a, .breadcrumbs, .pc-foot .btn, .video-facade .play-btn { display: none !important; }
  body { font-size: 11.5pt; line-height: 1.5; }
  .article-grid, .article-body { display: block; max-width: none; margin: 0; }
  .article-title { font-size: 24pt; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .card, .product-card, .review-box, .verdict-box, .glance, .callout, .faq-item { break-inside: avoid; box-shadow: none !important; }
  .prose a { color: #000; background: none; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .faq-a { display: block !important; }
  .hero-frame { aspect-ratio: auto; max-height: 9cm; }
  @page { margin: 1.8cm; }
}
