/* ==========================================================================
   What2Buy – base stylesheet, light theme, mobile-first, no framework.
   Base layer. The "Happy Bag" brand (design/brand/BRAND.md) is applied by brand.css, loaded after this file:
   it re-points the variables below and overrides the component colours.
   ========================================================================== */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0b1220;
  --text: #1e293b;
  --muted: #5b6678;
  --border: #e3e8ef;
  --border-strong: #cfd7e3;
  --brand: #4338ca;
  --brand-hover: #3730a3;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --cta: #f59e0b;
  --cta-hover: #fbbf24;
  --cta-ink: #1a1203;
  --good: #047857;
  --bad: #b91c1c;
  --warn-bg: #fff7e6;
  --warn-border: #f5c46b;
  --warn-ink: #6b4400;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 20px rgba(15,23,42,.06);
  --shadow-lg: 0 2px 4px rgba(15,23,42,.05), 0 16px 40px rgba(15,23,42,.10);
  /* type scale (1.25) */
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem;
  --fs-lg: 1.25rem; --fs-xl: 1.5rem; --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --fs-3xl: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Anchor offset: header + 16px; + 64px at 900–1179px where the sticky jumpnav sits under the header */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (min-width: 900px) and (max-width: 1179px) { html { scroll-padding-top: calc(var(--header-h) + 64px); } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-base)/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 800; }
h3 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--brand-50); color: var(--brand-hover); padding: .1em .35em; border-radius: 4px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2rem, 780px); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }

/* ---------- Draft bar ---------- */
.draft-bar { background: #1e1b4b; color: #e0e7ff; text-align: center; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; padding: .4rem 1rem; }
.draft-bar strong { color: #fcd34d; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.header-search { display: none; }
.header-links { display: none; }
.cat-nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .8rem; color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a:hover { color: var(--ink); }
.cat-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.soon-pill { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #92400e; background: #fef3c7; border-radius: 999px; padding: .1rem .45rem; flex: none; }
@media (max-width: 899px) { .cat-nav { display: none; } }

/* ---------- Mobile header: search + menu panels (SPEC §3.3; < 900px only) ---------- */
.hdr-pop { position: static; }                       /* panels anchor to .site-header */
.hdr-pop > summary { list-style: none; cursor: pointer; }
.hdr-pop > summary::-webkit-details-marker { display: none; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--w2b-radius);
  background: var(--w2b-cream-200); color: var(--w2b-navy); }
.nav-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem;
  border-radius: var(--w2b-radius); background: var(--w2b-navy); color: #fff; font-weight: 700; border: 0; font-size: var(--fs-sm); }
.nav-toggle span { display: inline-flex; align-items: center; gap: .45rem; }
.hdr-menu:not([open]) .when-open, .hdr-menu[open] .when-closed { display: none; }
.header-inner { gap: .5rem; }
.hdr-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 55; background: var(--w2b-surface);
  border-top: 1px solid var(--w2b-border); box-shadow: var(--w2b-shadow-lg);
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.search-row { --cancel-w: 4.75rem; display: flex; align-items: flex-start; gap: .5rem; }
.search-row .link-btn { flex: none; width: var(--cancel-w); min-height: 48px; padding: 0; }
.search-row .search-results { width: calc(100% + var(--cancel-w) + .5rem); max-height: none; }  /* results run full width, under Cancel */
.search-row .search { flex: 1; min-width: 0; }
.search-sheet .search-field { min-height: 48px; border: 1.5px solid var(--w2b-input-border); border-radius: var(--w2b-radius); background: var(--w2b-surface-2); }
.search-sheet input { font-size: 1rem; }               /* ≥16px stops iOS zoom */
.search-sheet .search-results { position: static; margin-top: .5rem; box-shadow: none; border: 0; padding: 0; }
.mm-label { margin: 1rem 0 .4rem; font: 800 .6875rem/1 var(--w2b-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--w2b-muted); }
.mm-hubs { list-style: none; margin: 0; padding: 0; }
.mobile-menu summary { display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .4rem .5rem; border-radius: var(--w2b-radius); color: var(--w2b-navy); font-weight: 700; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu details[open] > summary { background: var(--w2b-teal-50); }
.mobile-menu summary .tile-icon { width: 36px; height: 36px; margin: 0; border-radius: 10px; flex: none; }
.mobile-menu summary .mm-name { flex: 1; min-width: 0; }
.mobile-menu summary .mm-count { flex: none; font-size: .75rem; font-weight: 600; color: var(--w2b-muted); }
.mobile-menu summary .chev { display: inline-flex; color: var(--w2b-muted); transition: transform .15s; }
.mobile-menu details[open] summary .chev { transform: rotate(180deg); }
.mm-sub { list-style: none; margin: .25rem 0 .5rem; padding: 0; }
.mm-sub li + li { border-top: 1px solid var(--w2b-border); }
.mm-sub a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; padding: 0 .5rem 0 3.25rem; color: var(--w2b-text); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.mm-sub a:hover { color: var(--w2b-teal-ink); }
.mm-sub .count { min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 999px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--w2b-teal-50); color: var(--w2b-teal-ink); }
.mm-sub .mm-all { color: var(--w2b-teal-ink); font-weight: 700; justify-content: flex-start; gap: .35rem; }
.mm-soon { margin: 1rem 0; padding: .75rem 1rem; border-radius: var(--w2b-radius); background: var(--w2b-surface-2); color: var(--w2b-muted); font-size: .875rem; }
.mm-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.mm-card { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .9rem; border-radius: var(--w2b-radius); background: var(--w2b-surface-2); border: 1px solid var(--w2b-border); color: var(--w2b-navy); font-weight: 600; text-decoration: none; font-size: .9375rem; }
.mm-card svg { color: var(--w2b-coral-ink); }
.mm-wide { grid-column: 1 / -1; min-height: 48px; justify-content: center; }
.link-btn { min-height: 44px; padding: 0 .5rem; background: none; border: 0; color: var(--w2b-coral-ink); font: inherit; font-weight: 700; cursor: pointer; }
.try-chips { margin-top: .5rem; }
.try-chips[hidden] { display: none; }
body.pop-open { overflow: hidden; }                    /* set by JS only */
@media (min-width: 900px) {
  .hdr-pop { display: none; }
  .header-search { display: block; flex: 0 1 420px; }
  .header-links { display: flex; gap: 1.25rem; margin-left: 1rem; }
  .header-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
  .header-links a:hover { color: var(--ink); }
}

/* ---------- Search ---------- */
.search { position: relative; }
.search-field { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 .35rem 0 1rem; transition: border-color .15s, box-shadow .15s; }
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.search-field svg { color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: .6rem .6rem; outline: none; }
.search input::placeholder { color: #8a94a6; }
.search button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: .35rem; z-index: 60; text-align: left; }
.search-results[hidden] { display: none; }
.search-results { max-height: min(70vh, 520px); overflow-y: auto; }
.search-results .sr-group { padding: .6rem .6rem .3rem; font: 800 .6875rem/1 var(--w2b-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--w2b-muted); }
.search-results [role="option"] a { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .4rem .6rem; border-radius: var(--w2b-radius); color: var(--w2b-navy); text-decoration: none; }
.search-results [role="option"].active a, .search-results [role="option"] a:hover { background: var(--w2b-teal-50); }
.search-results .sr-thumb { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; }
.search-results .sr-thumb img { width: 44px; height: 44px; display: block; }
.search-results .sr-txt { flex: 1; min-width: 0; display: grid; }
.search-results .sr-txt b { font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.search-results .sr-txt small { font-size: .75rem; color: var(--w2b-muted); }
.search-results mark { background: var(--w2b-coral-100); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-results [role="option"] .icon { flex: none; color: var(--w2b-muted); }
.search-results .empty-result { padding: .75rem; color: var(--w2b-muted); font-size: var(--fs-sm); }
/* /search/ page */
.search-all { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.search-all a { display: flex; align-items: center; gap: .75rem; min-height: 60px; padding: .5rem .75rem; border-radius: var(--w2b-radius); background: var(--w2b-surface); border: 1px solid var(--w2b-border); color: var(--w2b-navy); text-decoration: none; }
.search-all a:hover { border-color: var(--w2b-teal); }
.search-all img { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.search-all span { flex: 1; min-width: 0; display: grid; }
.search-all small { color: var(--w2b-muted); font-size: .8125rem; }
.search-group[hidden], .search-all li[hidden], .search-none[hidden] { display: none; }
.search-group .block-title .tile-icon { margin: 0; width: 36px; height: 36px; border-radius: 10px; }
.page-search .search-page-form { margin-top: 1rem; max-width: 620px; }
.search-lg .search-field { padding: .35rem .4rem .35rem 1.25rem; box-shadow: var(--shadow); }
.search-lg input { font-size: var(--fs-md); padding: .65rem .75rem; }
@media (max-width: 480px) { .search-lg .search-field { padding-left: .9rem; } .search-lg input { font-size: 1rem; padding: .65rem .4rem; } .search-lg button { padding: .75rem 1.05rem; } }
.search-lg button { background: var(--brand); color: #fff; border-radius: 999px; padding: .8rem 1.3rem; }
.search-lg button:hover { background: var(--brand-hover); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-weight: 700; font-size: var(--fs-base); line-height: 1.2; text-decoration: none; padding: .8rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { border-color: var(--border-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-amazon { background: var(--cta); color: var(--cta-ink); box-shadow: 0 1px 0 rgba(0,0,0,.08), inset 0 -2px 0 rgba(0,0,0,.08); }
.btn-amazon:hover { background: var(--cta-hover); color: var(--cta-ink); }
.btn-sm { padding: .55rem .85rem; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ---------- Common bits ---------- */
.section { padding: 3rem 0 0; }
.section:last-of-type { padding-bottom: 3rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; font-size: var(--fs-xl); }
.section-head p { margin: .25rem 0 0; color: var(--muted); }
.section-head a { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.kicker { display: inline-flex; align-items: center; gap: .4rem; text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); font-weight: 700; color: var(--brand); margin: 0 0 .5rem; }
.kicker a { color: inherit; text-decoration: none; }
.standfirst { font-size: var(--fs-md); color: var(--muted); max-width: 46rem; }
.breadcrumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: var(--fs-sm); color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 .45rem 0 .2rem; color: #a3adbf; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .9rem; border: 1.5px solid var(--w2b-border-strong); border-radius: var(--w2b-radius-pill); color: var(--w2b-navy); text-decoration: none; font-size: .875rem; font-weight: 600; background: var(--w2b-surface); }
.chip:hover { border-color: var(--w2b-teal); color: var(--w2b-teal-ink); }
.try-chips .chip { margin: 0 .4rem .4rem 0; }
.chip-sm { min-height: 32px; font-size: .8125rem; padding: 0 .75rem; }

/* ---------- Notices ---------- */
.notice { border-radius: var(--radius-sm); padding: .85rem 1.1rem; font-size: var(--fs-sm); margin: 1rem 0; border: 1px solid var(--border); background: var(--surface); display: flex; gap: .65rem; align-items: flex-start; }
.notice svg { margin-top: .15rem; }
.notice-draft { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }
.notice-disclosure { color: var(--muted); }
.notice-disclosure strong { color: var(--ink); }

/* ---------- Home hero ---------- */
.hero { background: radial-gradient(800px 360px at 85% -20%, #e0e7ff, transparent 70%), radial-gradient(700px 300px at 0% 120%, #fef3c7, transparent 70%), var(--surface); border-bottom: 1px solid var(--border); }
.hero-inner { padding: 3rem 0 2.75rem; text-align: center; max-width: 760px; margin-inline: auto; }
.hero h1 { margin-bottom: .6rem; }
.hero h1 .accent { color: var(--brand); }
.lede { font-size: var(--fs-md); color: var(--muted); margin: 0 auto 1.75rem; max-width: 38rem; }
.hero .search { max-width: 620px; margin: 0 auto; }
.popular { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.trust-row { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.5rem; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.trust-row li { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row svg { color: var(--good); }
@media (min-width: 900px) { .hero-inner { padding: 4.5rem 0 4rem; } }
/* ---------- Home hero with illustration (design/hero) ----------
   Illustration: /assets/img/hero.svg (>= 900px) and hero-mobile.svg (< 900px), see design/hero/HERO.md. */
.hero-art { margin: 0 auto .75rem; width: min(100%, 400px); }
.hero-art img { display: block; width: 100%; height: auto; }
@media (max-width: 899.98px) {
  .hero-inner { padding-top: 1.25rem; }
  .hero .kicker { margin-bottom: .35rem; }
}
@media (max-width: 480px) {
  .hero .lede { font-size: 1rem; line-height: 1.6; margin-bottom: 1.25rem; }
}
@media (min-width: 900px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 1.5rem;
    max-width: none; text-align: left; padding: 3rem 0 3.25rem; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-art { grid-column: 2; grid-row: 1; width: auto; max-width: none; margin: 0; }
  .hero .lede { margin-left: 0; max-width: 34rem; }
  .hero .search { margin: 0; max-width: 600px; }
  .hero .popular, .hero .trust-row { justify-content: flex-start; }
  .hero .trust-row { margin-top: 1.5rem; column-gap: 1.25rem; }
}
@media (min-width: 1200px) { .hero-art { margin-right: -1.5rem; } }  /* bleed into the wide-screen gutter only */

/* ---------- Category tiles ---------- */
.tile-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tile-grid { grid-template-columns: repeat(5, 1fr); } }
.tile { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tile-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: .4rem; }
.tile-name { font-weight: 750; color: var(--ink); line-height: 1.3; }
.tile-count { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.tone-audio { background: #ccfbf1; color: #0f766e; }
.tone-pc-peripherals { background: #E6F7F5; color: #0A6F66; }
.tone-streaming-creator-gear { background: #fce7f3; color: #be185d; }
.tone-consoles-accessories { background: #fef3c7; color: #b45309; }
.tone-smart-home { background: #dbeafe; color: #1d4ed8; }

/* ---------- Post cards ---------- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; position: relative; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-media img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--surface-2); }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: var(--fs-md); margin-bottom: .4rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--brand); }
.card .kicker a { position: relative; z-index: 1; }
.card-desc { font-size: var(--fs-sm); color: var(--muted); margin-bottom: .9rem; }
.card-top { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .7rem; margin-bottom: .9rem; color: var(--text); }
.card-top b { color: var(--ink); }
.card-top .rank-dot { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 6px; background: var(--brand); color: #fff; font-size: var(--fs-xs); font-weight: 800; flex: none; }
.card-meta { margin: auto 0 0; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; display: flex; gap: .75rem; flex-wrap: wrap; }
.card-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card-flag { position: absolute; top: .75rem; left: .75rem; background: var(--ink); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }

/* ---------- Latest list ---------- */
.latest-list { display: grid; gap: .75rem; }
@media (min-width: 800px) { .latest-list { grid-template-columns: 1fr 1fr; } }
.latest-item { display: flex; gap: 1rem; align-items: center; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); }
.latest-item:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--text); }
.latest-item img { width: 88px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; flex: none; }
.latest-item .kicker { margin: 0 0 .1rem; }
.latest-title { display: block; font-weight: 700; color: var(--ink); line-height: 1.35; }
.latest-meta { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: .2rem; }

/* ---------- How we pick ---------- */
.how { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.how h2 { font-size: var(--fs-xl); margin: 0; }
.how-item { display: flex; gap: .85rem; align-items: flex-start; }
.how-item .tile-icon { margin: 0; background: var(--brand-50); color: var(--brand); }
.how-item h3 { margin: 0 0 .15rem; font-size: var(--fs-base); }
.how-item p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 900px) { .how { grid-template-columns: 1.1fr 1fr 1fr 1fr; align-items: start; padding: 2rem; gap: 2rem; } }

/* ---------- Page / post header ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.5rem 0 2rem; }
.hub-title { display: flex; align-items: center; gap: .9rem; }
.hub-title h1 { margin: 0; }
.hub-title .tile-icon { margin: 0; width: 52px; height: 52px; }
.post-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.5rem 0 1.75rem; }
.post-header h1 { max-width: 30ch; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--muted); font-size: var(--fs-sm); margin-top: 1rem; }
.meta-row .author { display: inline-flex; align-items: center; gap: .5rem; }
.meta-row img { border-radius: 50%; }
.meta-row a { color: var(--ink); font-weight: 600; }
.meta-row .meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.meta-row svg { color: var(--brand); }

/* ---------- Post body ---------- */
.post-body { padding-bottom: 3rem; }
.post-body.top { padding-bottom: 0; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1.25rem 0; padding: .75rem 1rem; border-left: 3px solid var(--warn-border); background: var(--warn-bg); color: var(--warn-ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin: 0; }
mark.joe, .joe { background: #fff3c4; color: #6b4400; border-radius: 4px; padding: 0 .3em; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.intro { margin: 1.75rem 0 0; font-size: var(--fs-md); }
.block-title { font-size: var(--fs-xl); margin: 2.5rem 0 1rem; display: flex; align-items: center; gap: .5rem; }

/* Quick picks (SPEC §4.2): replaces the old top-picks cards */
.qp { background: var(--w2b-surface); border: 1px solid var(--w2b-border); border-radius: var(--w2b-radius-card); box-shadow: var(--w2b-shadow); padding: 1.25rem; margin: 1.5rem 0; }
.qp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.qp-title { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: var(--w2b-fs-h3); }
.qp-bolt { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--w2b-coral-50); color: var(--w2b-coral-ink); }
.qp-jobs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.qp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.qp-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: .7rem .9rem .7rem .7rem; border: 1.5px solid var(--w2b-border); border-radius: var(--w2b-radius); background: var(--w2b-surface); }
.qp-row.is-top { border-color: var(--w2b-coral); box-shadow: 0 0 0 3px var(--w2b-coral-50), var(--w2b-shadow-sm); }
.qp-body { min-width: 0; }
.qp-body .badges { margin-bottom: .15rem; }
.qp-body .ribbon { margin: 0; }
.qp-name { margin: .2rem 0 .1rem; font-size: 1rem; line-height: 1.3; }
.qp-name a { color: var(--w2b-navy); text-decoration: none; }
.qp-name a:hover { color: var(--w2b-teal-ink); text-decoration: underline; }
.qp-for { margin: 0; font-size: .875rem; color: var(--w2b-muted); }
.qp-cta { white-space: nowrap; min-height: 44px; }
.qp-more { margin-top: .6rem; }
.qp-more > summary { list-style: none; display: flex; align-items: center; gap: .35rem; width: max-content; margin: .25rem auto 0; min-height: 44px; cursor: pointer; }
.qp-more > summary::-webkit-details-marker { display: none; }
.qp-more[open] > summary { display: none; }
@media (max-width: 559px) {
  .qp { padding: 1rem; }
  .qp-row { grid-template-columns: auto 1fr; gap: .75rem; }
  .qp-row.is-top .qp-cta { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .qp-row:not(.is-top) .qp-cta { grid-column: 2; justify-self: start; }
}

/* Guide two-column grid + "On this page" sidebar (SPEC §4.3, ≥ 1180px) */
.post-aside { display: none; }
@media (min-width: 1180px) {
  .post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: start; }
  .post-aside { display: block; position: sticky; top: calc(var(--header-h) + 1rem); margin-top: 1.5rem; max-height: calc(100vh - var(--header-h) - 2rem); max-height: calc(100dvh - var(--header-h) - 2rem); overflow-y: auto; overscroll-behavior: contain; }
}
.toc { background: var(--w2b-surface); border: 1px solid var(--w2b-border); border-radius: var(--w2b-radius-card); padding: 1rem; box-shadow: var(--w2b-shadow-sm); }
.toc-title { margin: 0 0 .5rem; font: 800 .9375rem/1.2 var(--w2b-font-head); color: var(--w2b-navy); }
.toc-picks { list-style: none; margin: 0; padding: 0; }
.toc-picks a { display: flex; align-items: center; gap: .55rem; min-height: 36px; padding: .25rem .5rem; border-radius: var(--w2b-radius-sm); color: var(--w2b-text); font-size: .875rem; line-height: 1.3; text-decoration: none; }
.toc-picks a b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--w2b-surface-2); border: 1px solid var(--w2b-border); font-size: .75rem; }
.toc-picks a:hover { background: var(--w2b-surface-2); }
.toc a.is-active { background: var(--w2b-coral-50); color: var(--w2b-coral-ink); font-weight: 700; }
.toc-picks a.is-active b { background: var(--w2b-coral); border-color: var(--w2b-coral); color: var(--w2b-navy); }
.toc-more a.is-active { border-color: var(--w2b-coral); }
.toc-more { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .75rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--w2b-border); }
.toc-how { margin-top: 1rem; padding: 1rem; border-radius: var(--w2b-radius-card); background: var(--w2b-navy); color: var(--w2b-footer-text); font-size: .875rem; }
.toc-how p { margin: 0 0 .6rem; }
.toc-how p:last-child { margin: 0; }
.toc-how .toc-how-title { display: flex; align-items: center; gap: .45rem; color: #fff; font: 800 .9375rem/1.2 var(--w2b-font-head); }
.toc-how .toc-how-title .icon { color: var(--w2b-teal); }
.toc-how a { color: #FF8A7D; font-weight: 700; }
.toc-note { display: flex; gap: .4rem; margin: .75rem .25rem 0; font-size: .75rem; color: var(--w2b-muted); }
.toc-note .icon { flex: none; margin-top: .15rem; }

/* Mobile sticky pick bar (SPEC §4.4, < 900px; JS shows it) */
.pickbar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .5rem; min-height: 64px; padding: 8px 8px 8px 10px; background: var(--w2b-surface); border: 1px solid var(--w2b-border); border-radius: 18px; box-shadow: var(--w2b-shadow-lg); transform: translateY(calc(100% + 24px)); transition: transform .2s ease; }
.pickbar.is-on { transform: none; }
.pickbar[hidden] { display: none; }
.pickbar-jump { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; min-height: 48px; color: var(--w2b-navy); text-decoration: none; }
.pickbar-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--w2b-surface-2); border: 1px solid var(--w2b-border); }
.pickbar-txt { min-width: 0; display: grid; }
.pickbar-txt small { font: 800 .6875rem/1.2 var(--w2b-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--w2b-coral-ink); }
.pickbar-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; }
.pickbar-cta { flex: none; min-height: 48px; }
body.has-pickbar .site-footer { padding-bottom: 96px; }
@media (min-width: 900px) { .pickbar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .pickbar { transition: none; } }

/* Ribbons */
.ribbon { max-width: 100%; display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .65rem; border-radius: 999px; white-space: normal; line-height: 1.25; }
.ribbon svg { width: 13px; height: 13px; flex: none; }
.ribbon-gold { background: #fef3c7; color: #92400e; box-shadow: inset 0 0 0 1px #fcd34d; }
.ribbon-green { background: #d1fae5; color: #065f46; box-shadow: inset 0 0 0 1px #6ee7b7; }
.ribbon-brand { background: var(--brand-50); color: var(--brand-hover); box-shadow: inset 0 0 0 1px #c7d2fe; }

/* Score badge */
.score { display: inline-grid; place-items: center; align-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--brand); text-align: center; flex: none; }
.score-num { font-size: 1.3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.score-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .15rem; }
.score-tbc { box-shadow: none; border: 2px dashed var(--border-strong); background: var(--surface-2); }
.score-tbc .score-num { font-size: .85rem; color: var(--muted); }

/* Sticky jump nav: middle widths only (900–1179px). Below 900px the pick bar replaces it; ≥ 1180px the sidebar does. */
.jumpnav { display: none; }
@media (min-width: 900px) and (max-width: 1179px) {
  .jumpnav { display: block; position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,246,236,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--w2b-border); margin: 2rem 0 0; }
}
.jumpnav ul { list-style: none; margin: 0; padding: .55rem 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.jumpnav ul::-webkit-scrollbar { display: none; }
.jumpnav a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; min-height: 36px; padding: .3rem .8rem .3rem .4rem; border-radius: var(--w2b-radius-pill); background: var(--w2b-surface); border: 1.5px solid var(--w2b-border-strong); color: var(--w2b-navy); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.jumpnav a:hover { border-color: var(--w2b-teal); color: var(--w2b-teal-ink); }
.jumpnav a b { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.45rem; border-radius: 999px; background: var(--w2b-coral); color: var(--w2b-navy); font-size: var(--fs-xs); }
.jumpnav a.plain { padding-left: .8rem; }

/* Comparison table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--fs-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.compare th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.compare td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td { background: #fafbff; }
.compare .c-rank b { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; background: var(--brand-50); color: var(--brand); font-weight: 800; }
.compare .c-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
.compare .c-name a:hover { color: var(--brand); }
.compare .c-name .ribbon { margin-left: .4rem; font-size: .65rem; padding: .2rem .5rem; }
.compare .c-cta { text-align: right; }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare { background: none; border: 0; box-shadow: none; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .compare tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .85rem 1rem .9rem 3.4rem; margin-bottom: .6rem; position: relative; box-shadow: var(--shadow-sm); }
  .compare td { border: 0; padding: .1rem 0; }
  .compare tbody tr:hover td { background: none; }
  .compare td[data-label]:not(.c-name):not(.c-rank)::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
  .compare .c-rank { position: absolute; top: .85rem; left: 1rem; width: auto; }
  .compare .c-name { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; margin-bottom: .2rem; }
  .compare .c-name .ribbon { margin: 0; }
  .compare .c-cta { text-align: left; padding-top: .5rem; }
}

/* Product card */
.product { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin: 2.25rem 0 0; }  /* anchor offset comes from html scroll-padding-top (a scroll-margin here would add to it) */
.product-rank { position: absolute; top: -14px; left: 1.25rem; display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .5rem; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: var(--fs-md); box-shadow: 0 4px 12px rgba(67,56,202,.3); }
.product-top { display: grid; gap: .9rem; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: start; padding-top: .9rem; }
.product-title .ribbon { margin-bottom: .45rem; }
.product-title h2 { font-size: var(--fs-lg); margin: 0 0 .2rem; }
.product-title .brand { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.product-cta { grid-column: 1 / -1; display: grid; gap: .4rem; }
.product-cta .btn { width: 100%; padding: .9rem 1rem; }
.cta-note { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin: 0; }
.product-who { margin: 1.1rem 0 0; display: flex; gap: .6rem; align-items: flex-start; background: var(--brand-50); color: var(--ink); border-radius: var(--radius-sm); padding: .75rem .9rem; font-size: var(--fs-sm); }
.product-who svg { color: var(--brand); margin-top: .15rem; }
.verdict { margin: 1rem 0 0; font-size: var(--fs-base); color: var(--text); }
.verdict strong { color: var(--ink); }
.pros-cons { display: grid; gap: 1rem; margin-top: 1.1rem; }
.pros-cons h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .55rem; }
.pros h3 { color: var(--good); } .cons h3 { color: var(--bad); }
.pros-cons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: var(--fs-sm); }
.pros-cons li { display: flex; gap: .55rem; align-items: flex-start; }
.pros-cons li svg { margin-top: .2rem; width: 16px; height: 16px; }
.pros li svg { color: var(--good); } .cons li svg { color: var(--bad); }
.specs { margin-top: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.specs summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.specs summary::-webkit-details-marker { display: none; }
.specs summary .chev { transition: transform .15s; color: var(--muted); }
.specs[open] summary .chev { transform: rotate(180deg); }
.specs dl { margin: 0; padding: 0 .9rem .5rem; }
.specs dl > div { display: grid; grid-template-columns: minmax(110px, 36%) 1fr; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); }
.spec-src { margin: 0; padding: .1rem .9rem .8rem; font-size: var(--fs-xs); color: var(--muted); }
.spec-src a { color: var(--muted); }
@media (min-width: 760px) {
  .product { padding: 1.75rem; }
  .product-top { grid-template-columns: 168px minmax(0, 1fr) auto 250px; gap: 1.5rem; align-items: center; padding-top: .5rem; }
  .product-title h2 { font-size: var(--fs-xl); }
  .product-cta { grid-column: auto; }
  .pros-cons { grid-template-columns: 1fr 1fr; }
}

/* Buying guide / FAQ / trust */
.buying-guide { margin-top: 3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); max-width: none; }
.buying-guide > * { max-width: 46rem; }
.buying-guide h2 { margin-top: 0; }
@media (min-width: 760px) { .buying-guide { padding: 2rem 2.25rem; } }
.faq { margin-top: 3rem; max-width: 46rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .6rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: .95rem 1.1rem; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details .prose { padding: 0 1.1rem .4rem; color: var(--muted); }
.author-box { display: grid; gap: 1rem; margin-top: 3rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.author-box img { border-radius: 50%; }
.author-box h2 { font-size: var(--fs-xl); }
.trust-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .6rem; font-size: var(--fs-sm); color: var(--muted); }
.trust-list li { display: flex; gap: .6rem; align-items: flex-start; }
.trust-list svg { color: var(--brand); margin-top: .2rem; width: 16px; height: 16px; flex: none; }
.trust-list strong { color: var(--ink); }
@media (min-width: 760px) { .author-box { grid-template-columns: 88px 1fr; padding: 2rem; } }

/* ---------- Category page ---------- */
.empty { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 1.25rem; color: var(--muted); }
.empty strong { color: var(--ink); }
.planned { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.planned li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .85rem 1rem; color: var(--text); font-weight: 600; font-size: var(--fs-sm); display: flex; align-items: center; gap: .6rem; }
.planned li span { font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #92400e; background: #fef3c7; border-radius: 999px; padding: .15rem .5rem; }

/* ---------- Static pages ---------- */
.static-page .wrap.narrow { padding-bottom: 3rem; }
.static-page .prose { margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); max-width: none; }
@media (min-width: 760px) { .static-page .prose { padding: 2rem 2.5rem; } }
.static-page .prose h2:first-child { margin-top: 0; }
.contact-form { display: grid; gap: 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .65rem .75rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: inline-flex; align-items: center; margin-bottom: .5rem; }
.site-footer p { color: #94a3b8; font-size: var(--fs-sm); }
.site-footer a { color: #e2e8f0; }
.footer-heading { font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: #94a3b8 !important; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer ul a { text-decoration: none; font-size: var(--fs-sm); }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid #1e293b; padding-top: 1.25rem; margin-top: 2rem; font-size: var(--fs-xs) !important; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.product-title .job { margin: 0 0 .15rem; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.job-index { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.price-note { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); margin: 1rem 0 0; }
.price-note svg { color: var(--brand); margin-top: .15rem; }

.tile.tile-soon { background: var(--surface-2); box-shadow: none; }
.tile.tile-soon .tile-count { color: #92400e; }
.soon-box { display: flex; gap: 1rem; align-items: flex-start; border-style: solid; }
.soon-box .tile-icon { margin: 0; flex: none; }
.soon-title { margin: 0 0 .25rem; }
/* Single featured guide: wide horizontal card */
@media (min-width: 760px) {
  .card-grid.single { grid-template-columns: 1fr; }
  .card-grid.single .card { display: grid; grid-template-columns: minmax(280px, 40%) 1fr; }
  .card-grid.single .card-media img { height: 100%; aspect-ratio: auto; }
  .card-grid.single .card-body { padding: 1.6rem 1.8rem; justify-content: center; }
  .card-grid.single .card h3 { font-size: var(--fs-xl, 1.5rem); }
}

/* ==========================================================================
   Structure: hubs, sub-categories, mega-menu, author, gift guides, vs pages
   ========================================================================== */
.tone-gaming { background: #ede9fe; color: #6d28d9; }
.tone-office { background: #dcfce7; color: #15803d; }
.tone-gifts { background: #ffe4e6; color: #be123c; }
.tone-grooming { background: #cffafe; color: #0e7490; }

/* Desktop hub nav with drop-down panels */
.cat-nav .chev { display: inline-flex; opacity: .55; margin-left: -.15rem; }
@media (min-width: 900px) {
  .cat-nav ul.hub-nav { overflow: visible; justify-content: flex-start; }
  .has-mega { position: relative; }
  .mega { display: none; position: absolute; top: 100%; left: 0; z-index: 60; width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem; }
  /* opens left-aligned under its item; main.js nudges it back inside the viewport if it would overflow */
  .mega { max-width: calc(100vw - 2rem); transform: translateX(var(--mega-shift, 0px)); }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
  .has-mega:hover > a, .has-mega:focus-within > a { color: var(--ink); }
  .mega-head { padding: 0 .25rem .75rem; margin-bottom: .5rem; border-bottom: 1px solid var(--border); }
  .mega-head a { display: inline-flex; padding: 0; border: 0; color: var(--ink); font-size: var(--fs-base); gap: .4rem; }
  .mega-head a:hover { color: var(--brand); }
  .mega-head p { margin: .25rem 0 0; font-size: var(--fs-sm); color: var(--muted); white-space: normal; }
  .cat-nav .mega ul { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; overflow: visible; }
  .cat-nav .mega li a { display: flex; align-items: center; gap: .6rem; padding: .5rem; border: 0; border-radius: var(--radius-sm); color: var(--text); white-space: normal; }
  .cat-nav .mega li a:hover { background: var(--surface-2); color: var(--ink); }
  .mega .tile-icon { width: 32px; height: 32px; margin: 0; border-radius: 8px; flex: none; }
  .mega b { display: block; font-weight: 650; line-height: 1.25; }
  .mega small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
}

/* Home hub tiles + sub-category tiles */
.tile-subs, .tile-desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.tile-count { margin-top: auto; padding-top: .35rem; }
.sub-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .sub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sub-grid { grid-template-columns: repeat(4, 1fr); } }

/* Hub hero */
.hub-kicker { margin: 0 0 .15rem; }
.hub-kicker a { color: inherit; text-decoration: none; }
.hub-intro { margin-top: .9rem; max-width: 760px; }
.hub-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.hub-meta > * { display: inline-flex; align-items: center; gap: .4rem; }
.hub-meta img { border-radius: 50%; }
.hub-meta svg { color: var(--brand); }

/* Post meta + kicker links */
.post-header .kicker a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.post-header .kicker a:hover { text-decoration: underline; }
.meta-link { color: var(--muted); text-decoration: none; }
.meta-link:hover { color: var(--brand); text-decoration: underline; }

/* Related guides */
.related { margin-top: 2.5rem; }
.related .latest-list { margin-bottom: 1rem; }
.related-up { margin-top: .25rem; }

/* Author box buttons */
.author-box-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.author-box-links .btn { display: inline-flex; align-items: center; gap: .4rem; }

/* Author page */
.author-head { display: flex; align-items: center; gap: 1.25rem; margin-top: .5rem; }
.author-head img { border-radius: 50%; flex: none; width: 96px; height: 96px; }
.author-head h1 { margin: 0; }
.author-sub { margin: .35rem 0 0; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.author-bio p { font-size: var(--fs-md); }
.author-points { margin-bottom: 1rem; }
@media (max-width: 520px) { .author-head { flex-direction: column; align-items: flex-start; } .author-head img { width: 80px; height: 80px; } }

/* Gift guides */
.gift-facts { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.gift-facts li { display: inline-flex; align-items: center; gap: .55rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .45rem .8rem; font-weight: 650; color: var(--ink); font-size: var(--fs-sm); }
.gift-facts li svg { color: var(--brand); }
.gift-facts small { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.gift-jump { margin-top: 1.25rem; }
.gift-jump .chip b { font-size: var(--fs-xs); color: var(--muted); }
.gift-group { margin-top: 2.25rem; }
.gift-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gift-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.gift-media { position: relative; }
.gift-num { position: absolute; top: .75rem; left: .75rem; display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; }
.gift-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.gift-body h3 { margin: .2rem 0 0; }
.gift-body .brand { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.gift-why p { margin: .25rem 0; font-size: var(--fs-sm); }
.gift-for { display: flex; gap: .45rem; font-size: var(--fs-sm); margin: .25rem 0 .5rem; }
.gift-for svg { color: var(--brand); margin-top: .2rem; }
.gift-body .btn { margin-top: auto; }
.gift-guide-link { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-sm); font-weight: 600; margin-top: .4rem; }

/* vs pages */
.vs-summary { font-size: var(--fs-md); }
.vs-pair { position: relative; display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 700px) { .vs-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; } }
.vs-card { display: flex; flex-direction: column; gap: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; }
.vs-card h3 { margin: 0; }
.vs-card .brand { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.vs-card .for { font-size: var(--fs-sm); margin: 0 0 .5rem; }
.vs-card .btn { margin-top: auto; }
.vs-badge { align-self: center; justify-self: center; display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.vs-table th[scope="row"] { text-align: left; color: var(--ink); font-weight: 700; white-space: nowrap; }
.vs-table td.edge { background: #f0fdf4; }
.edge-tag { display: inline-flex; align-items: center; gap: .2rem; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--good); background: #dcfce7; border-radius: 999px; padding: .1rem .45rem; margin-left: .25rem; vertical-align: .1em; }
.vs-choose .pros-cons > div { display: flex; flex-direction: column; }
.vs-choose .cons-h { margin-top: 1rem; color: var(--bad); }
.vs-choose .btn { margin-top: auto; }
.vs-choose ul + .btn, .vs-choose .cons + .btn { margin-top: 1rem; }
.vs-verdict { margin-top: 2rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.vs-verdict h2 { font-size: var(--fs-xl); }
.vs-choose .pros-cons > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.vs-choose .pros-cons h3 { font-size: var(--fs-base); text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.vs-choose .pros-cons h3.cons-h { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--bad); }
.vs-choose .pros li svg { color: var(--good); } .vs-choose .cons li svg { color: var(--bad); }
.how-link { grid-column: 1 / -1; margin: .5rem 0 0; font-weight: 600; font-size: var(--fs-sm); }
.how-link a { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Product images (SPEC §2): same square slot for photo and branded fallback tile ---------- */
.pimg { display: block; margin: 0; width: 100%; min-width: 0; position: relative; }
.pimg-box { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff;
  border: 1px solid var(--w2b-border); border-radius: var(--w2b-radius); padding: 0; overflow: hidden; }
.pimg-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pimg-credit { margin-top: .3rem; font-size: .6875rem; line-height: 1.3; color: var(--w2b-muted); text-align: center; overflow-wrap: anywhere; }
/* Branded fallback tile: tone tint + faint dot grid + white halo + job icon + Happy Bag corner mark */
.ph-tile { position: relative; display: grid; place-items: center; align-content: center; gap: .4rem;
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--w2b-radius);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  background-image: radial-gradient(color-mix(in srgb, currentColor 16%, transparent) 1.2px, transparent 1.5px);
  background-size: 12px 12px; background-position: 6px 6px; }   /* background-color comes from .tone-* */
.ph-halo { display: grid; place-items: center; width: 52%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.6); }
.ph-halo .icon { width: 56%; height: 56%; stroke-width: 1.75; }
.ph-tile small { font: 800 .625rem/1 var(--w2b-font-body); letter-spacing: .1em; text-transform: uppercase; }
.ph-mark { position: absolute; right: 7%; bottom: 7%; width: 18%; min-width: 18px; max-width: 34px; height: auto;
  padding: 3%; background: #fff; border-radius: 50%; box-shadow: var(--w2b-shadow-sm); }
/* Rank sticker (guides only) */
.pimg-rank { position: absolute; left: 6px; top: 6px; z-index: 1; display: grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 9px; font: 800 .8125rem/1 var(--w2b-font-head);
  background: var(--w2b-navy); color: #fff; }
.pimg-rank.is-top { background: var(--w2b-coral); color: var(--w2b-navy); }
/* Sizes */
.pimg-thumb { width: 64px; flex: none; }                    /* quick picks rows, search */
.pimg-thumb .ph-tile small, .pimg-thumb .ph-mark { display: none; }
.pimg-thumb .pimg-rank { left: 4px; top: 4px; min-width: 22px; height: 22px; font-size: .75rem; border-radius: 7px; }
.pimg-product { width: 96px; }
@media (min-width: 760px) { .pimg-product { width: 168px; } }
@media (max-width: 559px) { .pimg-thumb { width: 56px; } }
/* gift guides + vs pages */
.gift-media { display: flex; justify-content: center; padding: 1rem 1rem 0; }
.pimg-gift, .pimg-vs { width: min(100%, 200px); }
.pimg-vs { align-self: center; margin-bottom: .5rem; }
.hub-intro-long { max-width: 760px; margin-top: 1rem; font-size: var(--fs-base); color: var(--text); }
.hub-intro-long p { margin: 0 0 .85em; }
.hub-intro.standfirst p { margin: 0; }
.tile.tile-sub .tile-subs { color: var(--muted); }

/* ---------- Alcohol: 18+ badge, responsible-drinking box, age gate ---------- */
.badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.age-badge { display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.45rem; padding: 0 .4rem; border-radius: 999px; background: #111827; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .02em; vertical-align: middle; flex: none; }
.product-title .age-badge { margin-left: .35rem; }
.notice-drink { display: flex; gap: .65rem; align-items: flex-start; margin-top: .9rem; background: #f8fafc; border: 1px solid var(--border-strong); border-left: 4px solid #111827; border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: var(--fs-sm); color: var(--ink); }
.notice-drink .age-badge { margin-top: .05rem; }
.notice-drink.compact { margin: .9rem 0 0; padding: .55rem .75rem; font-size: var(--fs-xs); }
.age-noscript { margin: 0; background: #111827; color: #fff; text-align: center; padding: .6rem 1rem; font-weight: 600; font-size: var(--fs-sm); }
html.age-gate-open, html.age-gate-open body { overflow: hidden; }
.age-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; background: rgba(11,18,32,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.age-gate[hidden] { display: none; }
.age-gate-box { width: min(100%, 420px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.75rem 1.5rem 1.5rem; text-align: center; }
.age-gate-badge { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #111827; color: #fff; font-weight: 800; margin-bottom: .75rem; }
.age-gate-box h2 { font-size: var(--fs-xl); margin-bottom: .35rem; }
.age-gate-box p { color: var(--muted); }
.age-gate-actions { display: grid; gap: .6rem; margin-top: 1.1rem; }
@media (min-width: 420px) { .age-gate-actions { grid-template-columns: 1fr 1fr; } }
.age-gate-actions .btn { justify-content: center; width: 100%; }
.how-chose-line { margin: .6rem 0 0; font-size: var(--fs-sm); color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .9rem; }
.how-chose-line a { white-space: nowrap; }
