/* ============================================================
   cosaregalarea — Public site stylesheet
   Combined port of docs/design_handoff_cosaregalarea/design_files/css/{tokens,app}.css
   Tokens first, components after. See M3 plan §8.
   ============================================================ */

/* ---------- Web fonts (self-hosted) ----------
   Manrope + Source Serif 4, the same variable woff2 subsets Google
   Fonts serves (latin + latin-ext, split by unicode-range so the
   browser only fetches what the page needs). Self-hosting removes
   the render-blocking cross-origin stylesheet from the critical
   path and the third-party request from every page view. Licensed
   under the SIL OFL 1.1 — see static/fonts/OFL-*.txt. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/static/fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/static/fonts/source-serif-4-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/source-serif-4-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/source-serif-4-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---- Brand gradient (logo / brand mark ONLY) ---- */
  --brand-grad: linear-gradient(160deg, #916DD5 0%, #D89CF6 100%);
  --brand-grad-soft: linear-gradient(150deg, #EBE3FB 0%, #F6ECFB 100%);

  /* ---- Neutrals (cool-neutral, hue ~285) ---- */
  --bg:        oklch(0.976 0.004 286);
  --surface:   #ffffff;
  --surface-2: oklch(0.985 0.004 290);
  --ink:       oklch(0.28 0.045 282);
  --ink-2:     oklch(0.43 0.030 284);
  --ink-3:     oklch(0.50 0.020 286);   /* muted text: AA (4.5:1) on every site background, WS6t d */
  --ink-4:     oklch(0.70 0.015 288);   /* decoration only (placeholder hatch): never a text colour */
  --line:      oklch(0.905 0.008 286);
  --line-2:    oklch(0.945 0.006 288);

  /* ---- Primary accent: violet ---- */
  --accent:        oklch(0.55 0.17 292);
  --accent-deep:   oklch(0.46 0.155 290);
  --accent-soft:   oklch(0.955 0.022 296);
  --accent-soft-2: oklch(0.93 0.035 296);
  --accent-line:   oklch(0.86 0.05 296);

  /* ---- Secondary accent: warm clay ---- */
  --warm:        oklch(0.58 0.115 52);
  --warm-deep:   oklch(0.48 0.105 48);
  --warm-soft:   oklch(0.955 0.022 70);
  --warm-line:   oklch(0.86 0.05 62);

  /* ---- Typography ---- */
  --font-ui:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-prose: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --fs-display: clamp(2.4rem, 1.7rem + 3.1vw, 3.6rem);
  --fs-h1:      clamp(2rem, 1.55rem + 2vw, 2.85rem);
  --fs-h2:      clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  --fs-h3:      clamp(1.18rem, 1.08rem + 0.45vw, 1.4rem);
  --fs-lg:      1.1875rem;
  --fs-md:      1.125rem;    /* 18 — product row title */
  --fs-body:    1.0625rem;
  --fs-base:    1rem;        /* 16 — product row note */
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  --lh-tight: 1.12;
  --lh-snug:  1.28;
  --lh-body:  1.62;

  --tracking-eyebrow: 0.16em;
  --tracking-wide:    0.04em;

  /* ---- Spacing (4px base) ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* ---- Radii ---- */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(44,41,80,.05), 0 1px 1px rgba(44,41,80,.03);
  --shadow-md: 0 6px 20px -6px rgba(44,41,80,.12), 0 2px 6px -2px rgba(44,41,80,.06);
  --shadow-lg: 0 22px 52px -16px rgba(44,41,80,.22), 0 6px 16px -8px rgba(44,41,80,.10);

  /* ---- Layout ---- */
  /* Two alignment edges only (WS6t a): the page container (--maxw:
     header, footer, lists, hubs) and the prose measure (--maxw-prose).
     --maxw-wide used to be a third, 1320px edge; it now equals --maxw
     so every page keeps its content under the header's edge. */
  --maxw:       1200px;
  --maxw-wide:  var(--maxw);
  --maxw-prose: 720px;
  --gutter:     clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --header-h:   76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Font pairing variants (Tweaks) — DROPPED per M3 §8 / §16 decision. ----
   To re-enable: uncomment the three blocks below, add the four extra font
   families back to the Google Fonts <link> in the templ, and set
   <html data-type="..."> from a small editor script. That's the whole re-enable. ----

:root[data-type="warm"] {
  --font-ui:    'Sora', system-ui, sans-serif;
  --font-prose: 'Newsreader', Georgia, serif;
}
:root[data-type="grotesk"] {
  --font-ui:    'Schibsted Grotesk', system-ui, sans-serif;
  --font-prose: 'Hanken Grotesk', system-ui, sans-serif;
}
*/

/* ============================================================
   Components & Layout (ported from app.css)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent-soft-2); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  color: var(--ink);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide  { max-width: var(--maxw-wide); }
.container--prose { max-width: var(--maxw-prose); }

.section { padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 1.2rem + 3vw, 3.5rem); }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-block;
}
.eyebrow--warm { color: var(--warm-deep); }
.eyebrow--muted { color: var(--ink-3); }

.lead { font-family: var(--font-prose); font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); }

/* Section header row (title + "see all" link) */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head .eyebrow { margin-bottom: var(--sp-2); }

/* ---------- Links / arrow link ---------- */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--fs-sm); font-weight: 700; color: var(--accent-deep);
  letter-spacing: var(--tracking-wide);
}
.arrow-link svg { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link--ink { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: var(--tracking-wide);
  padding: 0.85em 1.4em; border-radius: var(--r-pill);
  border: 1.5px solid transparent; min-height: 46px;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 8px 22px -8px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn-ghost { background: var(--surface); color: var(--accent-deep); border-color: var(--accent-line); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- Chips / badges / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tracking-wide);
  padding: 0.4em 0.75em; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid color-mix(in oklab, var(--accent-line) 70%, transparent);
}
.chip--warm { background: var(--warm-soft); color: var(--warm-deep); border-color: color-mix(in oklab, var(--warm-line) 70%, transparent); }
.chip--ghost { background: transparent; }
.chip .count { color: var(--accent-deep); font-variant-numeric: tabular-nums; }

/* count badge (square, like sketches) */
.count-badge {
  font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--accent-deep); background: var(--accent-soft);
  border-radius: var(--r-sm); padding: 0.2em 0.5em; min-width: 2.1em; text-align: center;
}

/* ---------- Aspect ratios ----------
   The design's striped image placeholders (.ph) are gone (WS6u e):
   the public site never emits one. A card without an image is a
   text card (.tile--text). Guide cards, feature cards, product rows
   and product cards are always text-only: no retailer image reaches
   the public site (WS6y A). */
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-219 { aspect-ratio: 21 / 9; }

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header__bar {
  height: var(--header-h); display: flex; align-items: center; gap: var(--sp-6);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark {
  --bm-size: 15px;
  display: grid; row-gap: 0;
  font-family: var(--font-ui); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.005em;
  font-size: var(--bm-size); line-height: 0.86;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  width: max-content;
}
.brand-mark__l3 { justify-self: end; }
.brand-mark--lg { --bm-size: 17px; margin-bottom: var(--sp-4); }
.brand__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav { display: flex; align-items: center; gap: var(--sp-2); margin-inline-start: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  padding: 0.6em 0.85em; border-radius: var(--r-pill);
  transition: color .18s, background .18s;
}
.nav__link:hover, .nav__item:focus-within .nav__link { color: var(--accent-deep); background: var(--accent-soft); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link .caret { width: 0.7em; height: 0.7em; transition: transform .2s var(--ease); opacity: .7; }
.nav__item:hover .nav__link .caret, .nav__item:focus-within .nav__link .caret { transform: rotate(180deg); }

/* dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 460px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--sp-5); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown--right { left: auto; right: 0; }
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 1.5rem; }
.dropdown__head { font-size: var(--fs-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 0 .6rem .5rem; grid-column: 1 / -1; }
.dropdown__link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 0.6rem 0.6rem; border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  transition: background .16s, color .16s;
}
.dropdown__link:hover { background: var(--accent-soft); color: var(--accent-deep); }
.dropdown__link small { font-weight: 600; color: var(--ink-3); font-size: var(--fs-xs); }
.dropdown__foot { grid-column: 1 / -1; margin-top: .6rem; padding-top: .9rem; border-top: 1px solid var(--line-2); }

.header-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
  color: var(--ink-2); background: transparent; border: none; transition: background .18s, color .18s;
}
.header-icon:hover { background: var(--accent-soft); color: var(--accent-deep); }
.header-icon svg { width: 20px; height: 20px; }

.nav-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--surface); padding: var(--sp-5) var(--gutter) var(--sp-8);
  overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu__group { border-bottom: 1px solid var(--line-2); padding-block: var(--sp-4); }
.mobile-menu__group h3 { font-size: var(--fs-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-3); }
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a { display: flex; justify-content: space-between; padding: 0.7rem 0; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.mobile-menu__links a small { color: var(--ink-3); font-weight: 600; }
.mobile-search { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.mobile-search input { flex: 1; }

/* ============================================================
   AFFILIATE DISCLOSURE
   ============================================================ */
.disclosure-bar {
  background: var(--accent-soft); border-bottom: 1px solid color-mix(in oklab, var(--accent-line) 60%, transparent);
}
.disclosure-bar__inner {
  display: flex; align-items: center; gap: 0.6em; justify-content: center;
  padding-block: 0.6rem; font-size: var(--fs-xs); color: var(--accent-deep); letter-spacing: 0.01em; text-align: center;
}
.disclosure-bar__inner svg { width: 15px; height: 15px; flex-shrink: 0; }
.disclosure-bar a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }

.disclosure-inline {
  display: flex; gap: 0.7em; align-items: flex-start;
  font-size: var(--fs-sm); color: var(--ink-3); font-style: italic;
  border-left: 2px solid var(--accent-line); padding: 0.2em 0 0.2em 1em; margin-block: var(--sp-5);
}

.disclosure-footer {
  font-size: var(--fs-xs); color: var(--ink-3); padding-block: var(--sp-4);
  border-top: 1px solid var(--line-2); line-height: 1.55;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5em; font-size: var(--fs-xs); color: var(--ink-3); padding-block: var(--sp-5) 0; }
.breadcrumb a { font-weight: 600; transition: color .16s; }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb .sep { color: var(--ink-3); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); }

/* ============================================================
   PRODUCT CARD — the key reusable component
   ============================================================ */
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--line); transform: translateY(-3px); }
/* Text-only (WS6y A): no retailer image, so no media block. */
.product-card__rank {
  font-family: var(--font-ui); font-weight: 800; font-size: var(--fs-sm);
  background: var(--surface-2); color: var(--ink); width: 34px; height: 34px;
  border-radius: var(--r-pill); display: grid; place-items: center; border: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
}
.product-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.product-card__cat { color: var(--ink-3); }
.product-card__title { font-size: var(--fs-h3); font-weight: 700; }
.product-card__desc { font-family: var(--font-prose); font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.product-card__foot { margin-top: auto; padding-top: var(--sp-2); }
.product-card__retailer { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; margin-top: var(--sp-3); }

/* ============================================================
   GUIDE PAGE — the signed editorial list (WS6y B)
   Per docs/design/guide-no-photos.html: no retailer image anywhere
   (WS6y A). The curator's colour arrives as the --curator custom
   property on .guide (and on every guide card); the fallback is the
   site accent. It colours the hero tint, the numerals, the group
   titles, the index titles, the pull quote and the featured label.
   CTA buttons keep the site accent.
   One article column (WS6t a, WS6u d): hero content, intro, index,
   groups and conclusion all sit in the prose measure.
   ============================================================ */
.guide { --curator: var(--accent-deep); }
.guide-hero {
  /* The hero's tint: the curator's colour mixed at 8% into the page background. */
  background: color-mix(in srgb, var(--curator) 8%, var(--bg));
  padding-block: var(--sp-3) clamp(2rem, 1.4rem + 2vw, 2.75rem);
}
.guide-hero .chip { background: var(--surface); }
.guide-byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin-top: var(--sp-5); }
.guide-byline__avatar { width: 56px; height: 56px; font-size: var(--fs-h3); }
.guide-byline__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-byline__who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: 0.9375rem; color: var(--ink); }
.guide-byline__meta { display: flex; flex-wrap: wrap; gap: 0.2em 0.5em; font-size: var(--fs-sm); color: var(--ink-3); }
.guide-byline__meta .dot { color: var(--ink-3); }
.guide-body { display: flex; flex-direction: column; gap: clamp(2rem, 1.6rem + 1.4vw, 2.5rem); padding-block: clamp(2rem, 1.6rem + 1.4vw, 2.5rem) clamp(3rem, 2rem + 3vw, 4.5rem); }
.guide-body > .disclosure-inline { margin-block: 0; }

/* The selection heading ("12 idee per la mamma") and, under it, the index. */
.guide-selection { display: flex; flex-direction: column; gap: var(--sp-4); }
.guide-selection__title { font-size: var(--fs-h2); }

/* "In questa guida": the groups, with an anchor link to each product. */
.guide-index {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5) clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: var(--sp-4);
}
.guide-index__label { font-size: var(--fs-xs); font-weight: 800; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-3); }
.guide-index__groups { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-6); }
.guide-index__group { flex: 1 1 180px; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.guide-index__title { font-size: var(--fs-sm); font-weight: 800; color: var(--curator); }
.guide-index__list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.guide-index__list a { display: block; padding-block: 0.3em; font-size: 0.9375rem; color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.guide-index__list a:hover { color: var(--accent); }

/* A group: a 2px rule, the title in the curator's colour, the rows. */
.guide-group { display: flex; flex-direction: column; }
.guide-group__title {
  margin-bottom: var(--sp-2); padding-top: 0.9rem; border-top: 2px solid var(--ink);
  font-size: var(--fs-sm); font-weight: 800; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  line-height: var(--lh-snug); color: var(--curator);
}

/* A product: a row without a box and without an image — the numeral in
   the curator's colour, the brand eyebrow, the name, the note at prose
   size, the CTA. Rows are separated by a hairline. */
.product-row {
  display: flex; gap: var(--sp-5); padding: 1.6rem var(--sp-5);
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}
.product-row + .product-row { border-top: 1px solid var(--line); }
.product-row__rank {
  flex: 0 0 3rem; font-family: var(--font-ui); font-size: 2.75rem; font-weight: 800; line-height: 1;
  color: var(--curator); font-variant-numeric: tabular-nums;
}
.product-row__body { flex: 1 1 0; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.product-row__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
/* Brand eyebrow (WS6w g): the trusted brand's name, above the title. */
.product-row__brand {
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-3);
}
.product-row__title {
  font-family: var(--font-ui); font-size: 1.375rem; font-weight: 700; line-height: 1.25;
  letter-spacing: 0; text-wrap: pretty;
}
.product-row__note { font-family: var(--font-prose); font-size: var(--fs-md); line-height: 1.65; color: var(--ink-2); }
.product-row__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin-top: var(--sp-1); }
/* The featured product: a 7% tint of the curator's colour and the
   label "La scelta di <curator>". No hairline around the tint. */
.product-row--featured {
  background: color-mix(in srgb, var(--curator) 7%, var(--surface));
  border-radius: var(--r-lg); margin-block: var(--sp-3);
}
.product-row--featured, .product-row--featured + .product-row, .product-row.product-row--featured + .product-row { border-top: 0; }
.product-row--featured .product-row__title { font-size: 1.5rem; }
.product-row__pick {
  font-family: var(--font-ui); font-size: 0.6875rem; font-weight: 800; letter-spacing: var(--tracking-wide);
  padding: 0.3em 0.9em; border-radius: var(--r-pill); color: #fff; background: var(--curator);
}

/* The pull quote: a sentence of one of the notes, between two groups. */
.pull-quote { margin: 0; padding: 1.75rem var(--sp-5); border-block: 1px solid var(--line); }
.pull-quote blockquote {
  margin: 0; font-family: var(--font-prose); font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); line-height: 1.35; color: var(--curator);
}

/* The conclusion, signed. */
.guide-outro { display: flex; flex-direction: column; gap: var(--sp-4); padding-top: 0.9rem; border-top: 2px solid var(--ink); }
.guide-outro h2 { font-size: var(--fs-h2); }
.guide-signature { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.guide-signature__avatar { width: 36px; height: 36px; font-size: var(--fs-sm); }
.guide-signature__name { font-family: var(--font-prose); font-style: italic; font-size: var(--fs-md); color: var(--ink); }
.guide-signature__link { font-size: var(--fs-sm); color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.guide-signature__link:hover { color: var(--accent); }
@media (max-width: 720px) {
  .product-row { gap: var(--sp-4); padding-inline: var(--sp-3); }
  .product-row__rank { flex-basis: 2.25rem; font-size: 2.1rem; }
  .product-row__title { font-size: 1.25rem; }
  .product-row__foot .btn { width: 100%; }
}

/* ============================================================
   EDITORIAL / GUIDE-LINK CARD
   A text-only card (WS6y B 9): a 6px top band in the colour of the
   guide's curator (--curator, set on the card), the curator's avatar
   and name, the title, "N idee · occasione". Never an image.
   ============================================================ */
.guide-card {
  --curator: var(--accent-deep);
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line);
  border-top: 6px solid var(--curator); border-radius: var(--r-lg);
  padding: var(--sp-5); transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.guide-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.guide-card__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.guide-card:hover .guide-card__title { color: var(--accent-deep); }
.guide-card__desc { font-family: var(--font-prose); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.guide-card__meta { margin-top: auto; font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.guide-card__avatar { width: 28px; height: 28px; font-size: var(--fs-xs); }

/* card grids */
.card-grid { display: grid; gap: var(--sp-6); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   HUB TILES (recipient / occasion / collection)
   ============================================================ */
.tile {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tile__media { position: relative; }
.tile__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,26,55,.55) 0%, rgba(30,26,55,.05) 55%, transparent 100%);
}
.tile__label {
  position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); z-index: 1;
}
.tile__label h3 { color: #fff; font-size: var(--fs-h3); }
.tile__count { background: rgba(255,255,255,.92); color: var(--accent-deep); font-weight: 700; font-size: var(--fs-xs); padding: 0.25em 0.6em; border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.tile--warm .tile__count { color: var(--warm-deep); }
/* Text tile (WS6u e): no image, so no label over a photo — the title
   in ink on the surface, the count on the accent tint. */
.tile--text { border: 1px solid var(--line-2); }
.tile--text .tile__label { position: static; padding: var(--sp-5); }
.tile--text .tile__label h3 { color: var(--ink); }
.tile--text .tile__count { background: var(--accent-soft); }
.tile--text.tile--warm .tile__count { background: var(--warm-soft); }

/* compact tag tiles (theme list) */
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-3); }
.tag-pill {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0.85rem 1.1rem; font-weight: 600; color: var(--ink); font-size: var(--fs-sm);
  transition: border-color .18s, background .18s, color .18s;
}
.tag-pill:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.tag-pill .count-badge { background: var(--accent-soft); }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(130% 120% at 6% -12%, oklch(0.62 0.17 302 / .95), transparent 52%),
    radial-gradient(120% 120% at 100% 4%, oklch(0.66 0.13 338 / .75), transparent 56%),
    radial-gradient(110% 130% at 70% 118%, oklch(0.46 0.15 286 / .8), transparent 60%),
    linear-gradient(150deg, oklch(0.50 0.17 292), oklch(0.57 0.15 316));
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: url(#duo-soft);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to bottom, transparent 52%, var(--bg) 100%),
    linear-gradient(100deg, oklch(0.30 0.12 290 / .86) 0%, oklch(0.33 0.13 292 / .56) 42%, oklch(0.42 0.13 300 / .12) 76%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  opacity: .55; z-index: 0;
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%); }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem); }
.hero__eyebrow { color: #fff; opacity: .95; }
.hero__title { color: #fff; font-size: var(--fs-display); max-width: 16ch; letter-spacing: -0.02em; }
.hero__sub { color: rgba(255,255,255,.92); font-family: var(--font-prose); font-size: var(--fs-lg); max-width: 46ch; margin-top: var(--sp-4); }

/* recipient quick-pick row */
.persona-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.persona-pill {
  display: inline-flex; align-items: center; gap: 0.5em; background: rgba(255,255,255,.94); white-space: nowrap;
  color: var(--ink); font-weight: 600; font-size: var(--fs-sm); padding: 0.7em 1.15em; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s;
}
.persona-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--accent-deep); }

/* occasion quick-pick row (ported from design index.html inline styles) */
.axis-switch { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.axis-switch__label { color: rgba(255,255,255,.9); font-size: var(--fs-sm); font-weight: 600; }
.axis-chip { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; font-size: var(--fs-sm); font-weight: 600; padding: 0.5em 1em; border-radius: var(--r-pill); transition: background .18s, border-color .18s; }
.axis-chip:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.home-seasonal { margin-top: calc(-1 * clamp(2rem, 4vw, 4rem)); position: relative; z-index: 2; }

/* seasonal strip */
.season-banner {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  min-height: 230px; display: flex; align-items: center;
}
.season-banner { background: var(--warm-soft); }
.season-banner__panel {
  position: relative; z-index: 1; background: var(--surface); margin: var(--sp-5);
  padding: var(--sp-5) var(--sp-6); border-radius: var(--r-md); box-shadow: var(--shadow-md); max-width: 420px;
}
.season-banner__panel h3 { font-size: var(--fs-h2); display: flex; align-items: center; gap: var(--sp-3); }

/* ============================================================
   PROSE (editorial article body)
   ============================================================ */
.prose { font-family: var(--font-prose); color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-ui); font-size: var(--fs-h2); color: var(--ink); margin-top: 1.6em; }
.prose h3 { font-family: var(--font-ui); font-size: var(--fs-h3); color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote { border-left: 3px solid var(--accent-line); padding-left: 1.1em; color: var(--ink); font-style: italic; }

/* ============================================================
   PAGE HEADER block (hubs / collection / search)
   ============================================================ */
.page-head { padding-block: clamp(1.75rem, 1rem + 3vw, 3rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
/* The breadcrumb of a page head sits inside the head's container
   (site.PageHead), so its left edge is the <h1>'s at every width. */
.page-head > .breadcrumb { padding-block: 0 var(--sp-5); }
.page-head__title { font-size: var(--fs-h1); margin-top: var(--sp-3); }
.page-head__intro { font-family: var(--font-prose); font-size: var(--fs-lg); color: var(--ink-2); max-width: 60ch; margin-top: var(--sp-4); }
.page-head__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }

/* ============================================================
   SEARCH
   ============================================================ */
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 1rem; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.input {
  width: 100%; font-family: var(--font-ui); font-size: var(--fs-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 0.85em 1.2em; min-height: 48px; transition: border-color .18s, box-shadow .18s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-field .input { padding-left: 2.9rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.filter-chip {
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.5em 1em; transition: all .16s;
}
.filter-chip:hover { border-color: var(--accent-line); color: var(--accent-deep); }
.filter-chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.result-row {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--sp-5); align-items: center;
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--line-2);
}
.result-row--text { grid-template-columns: 1fr; }
.result-row__meta { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }

/* ============================================================
   NEWSLETTER + FOOTER
   ============================================================ */
.newsletter-block { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-8); align-items: start; }
.newsletter__form { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); max-width: 440px; }
.newsletter__form .input { flex: 1; }
.consent { display: flex; align-items: center; gap: 0.6em; margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-3); }
.consent input { width: 16px; height: 16px; accent-color: var(--accent); }
.socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.social-btn { width: 42px; height: 42px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--accent); color: #fff; transition: background .18s, transform .18s; }
.social-btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: var(--sp-8); }
.footer-nav { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); padding-block: var(--sp-8) var(--sp-7); }
.footer-col__title { font-size: var(--fs-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-4); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { font-size: var(--fs-sm); color: var(--ink-2); transition: color .16s; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-brand .brand-mark--lg { margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); color: var(--ink-3); max-width: 32ch; }
.footer-legal {
  border-top: 1px solid var(--line-2); padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: var(--ink-3);
}
.footer-legal__links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-legal a:hover { color: var(--accent-deep); }

/* ============================================================
   RELATED / "Potrebbero interessarti"
   ============================================================ */
.related { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.related .guide-card { background: var(--bg); }

/* ============================================================
   STATIC PAGE (disclosure, privacy, cookie, about, contact)
   One column on the prose measure, left-aligned with the <h1>; with a
   table of contents (.support-layout--toc) 220px sticky TOC + prose.
   The head gives up its bottom padding and the body opens closer:
   half the space the generic head + section pair leaves.
   ============================================================ */
.page-head--support { padding-bottom: 0; }
.support-body { padding-top: clamp(1.75rem, 1.1rem + 2.5vw, 3rem); }
.support-layout { display: block; }
.support-layout--toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
.toc h4 { font-size: var(--fs-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-3); }
.toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; border-left: 1px solid var(--line); }
.toc a { display: block; font-size: var(--fs-sm); color: var(--ink-3); padding: 0.45rem 0 0.45rem 1rem; margin-left: -1px; border-left: 2px solid transparent; transition: color .16s, border-color .16s; }
.toc a:hover { color: var(--accent-deep); border-color: var(--accent-line); }
.support-content { max-width: 680px; }
.support-content .prose { font-size: var(--fs-body); }

/* ============================================================
   FEATURE CARD (hub hero card)
   ============================================================ */
/* Text-only, like every guide card (WS6y B 9): the top band is the
   colour of the guide's curator. */
.feature-card {
  --curator: var(--accent-deep);
  display: grid; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line-2); border-top: 6px solid var(--curator); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); align-self: center; }
.feature-card__title { font-size: var(--fs-h2); }
.feature-card__desc { font-family: var(--font-prose); color: var(--ink-2); }

/* ============================================================
   GUIDE PAGE (article hero, meta row, lead media, tip)
   Ported from design_files/guida.html's inline <style>, amended by
   WS6t a: the hero lives inside the prose container (it had its own
   980px edge), so breadcrumb, chips, H1, byline, intro, disclosure
   and conclusion share one left edge, and the H1 uses the full
   measure (it was capped at 20ch: three lines for a 60-char title).
   ============================================================ */
.article-tags { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); flex-wrap: wrap; }
.article-title { font-size: var(--fs-h1); margin-top: var(--sp-4); }
.tip {
  background: var(--surface); border: 1px solid var(--accent-line); border-left: 4px solid var(--accent);
  border-radius: var(--r-md); padding: var(--sp-5); margin-block: var(--sp-6); font-family: var(--font-ui);
}
.tip h4 { font-size: var(--fs-sm); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent-deep); margin-bottom: var(--sp-2); }
.tip p { font-size: var(--fs-sm); color: var(--ink-2); }

/* ============================================================
   CURATORS (M4): byline, AI badge, avatar, author card, curator page
   ============================================================ */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; object-fit: cover; background: var(--accent-soft); }
.avatar--ph { color: var(--accent-deep); font-weight: 800; font-family: var(--font-ui); border: 1px solid var(--accent-line); }
.byline__name { font-weight: 700; color: var(--ink); }
.byline__name:hover { color: var(--accent-deep); }
.ai-badge {
  display: inline-flex; align-items: center; line-height: 1;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 800; letter-spacing: var(--tracking-wide);
  padding: 0.3em 0.5em; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--accent-line);
  text-decoration: none; vertical-align: middle;
}
a.ai-badge:hover { background: var(--accent-line); }
.ai-badge--inline { font-size: 0.62rem; }
.guide-card__byline { display: flex; align-items: center; gap: 0.6em; font-size: var(--fs-sm); color: var(--ink-3); }
.author-card {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.author-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.author-card__avatar { width: 64px; height: 64px; font-size: var(--fs-h3); }
.author-card__body { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.author-card__name { font-size: var(--fs-h3); font-weight: 700; display: flex; align-items: center; gap: 0.4em; flex-wrap: wrap; }
.author-card__tagline { font-family: var(--font-prose); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.author-card__count { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* The avatar sits above the name at every width: the <h1> keeps the
   breadcrumb's left edge (WS6aa). */
.author-head { display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }
.author-head__avatar { width: 96px; height: 96px; font-size: var(--fs-h1); }
.author-head .page-head__title { display: flex; align-items: center; gap: 0.4em; flex-wrap: wrap; }
.author-head .page-head__title .ai-badge { font-size: 0.85rem; }
.author-note { font-size: var(--fs-sm); margin-top: var(--sp-5); }
@media (max-width: 640px) {
  .author-head__avatar { width: 80px; height: 80px; }
}

/* ============================================================
   UTIL
   ============================================================ */
.divider { height: 1px; background: var(--line); border: 0; }
.mt-0{margin-top:0}.center{text-align:center}
.stack-sm > * + *{margin-top:var(--sp-3)}
.stack > * + *{margin-top:var(--sp-5)}
.muted { color: var(--ink-3); }

/* reveal on load */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(14px); }
  [data-reveal].in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dropdown { min-width: 380px; }
}
@media (max-width: 860px) {
  .support-layout--toc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header-icon.desktop-only { display: none; }
  .nav-toggle { display: inline-grid; }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter-block { grid-template-columns: 1fr; gap: var(--sp-6); }
  .feature-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card-grid--3, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .result-row { grid-template-columns: 88px 1fr; gap: var(--sp-4); }
  .result-row--text { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .brand-mark { --bm-size: 13px; }
}
