/* ==========================================================================
   Baby Tech Reviews — main.css
   "The Tech Dad sticker chart": cream notebook paper, navy ink outlines with a
   hard offset shadow (to match the mascot's cartoon line), sunflower-gold stars.
   Bump ASSET_VERSION in includes/globals.php whenever this file changes.
   ========================================================================== */

:root {
    --paper: #FBF7EF;
    --paper-2: #F4EDE0;
    --paper-3: #EAE0CE;
    --card: #FFFFFF;
    --ink: #1C2640;
    --ink-2: #434D69;
    --ink-3: #6B7390;
    --line: #E2D8C6;
    --gold: #F6B61E;
    --gold-soft: #FFF1C4;
    --gold-deep: #9A6800;
    --denim: #3F6496;
    --denim-soft: #E4EDF8;
    --coral: #F0643C;
    --coral-deep: #C4441D;
    --sage: #2F8F63;
    --sage-soft: #E1F2E8;
    --brick: #C2412D;
    --brick-soft: #FBE6E0;
    --berry: #C73D70;
    --sky: #3F86C9;

    --band-top: #2A8A5C;
    --band-great: #43A36F;
    --band-good: #3F86C9;
    --band-ok: #D08A00;
    --band-meh: #C2412D;

    --r: 18px;
    --r-sm: 10px;
    --pop: 3px 3px 0 var(--ink);
    --pop-sm: 2px 2px 0 var(--ink);
    --soft: 0 1px 2px rgba(28, 38, 64, 0.06), 0 10px 28px -14px rgba(28, 38, 64, 0.28);
    --border: 1.5px solid var(--ink);

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
    --font-hand: 'Caveat', 'Bradley Hand', cursive;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: radial-gradient(rgba(28, 38, 64, 0.075) 1px, transparent 1.3px);
    background-size: 22px 22px;
    font: 400 17px/1.62 var(--font-body);
    overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: var(--denim); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--gold); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; }
h1, h2 {
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    font-weight: 750;
    letter-spacing: -0.015em;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font: 700 1.15rem/1.25 var(--font-body); }
p { margin: 0 0 1em; }

.display { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.025em; }
.lede { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 44rem; }
.muted { color: var(--ink-3); }
.hand { font-family: var(--font-hand); font-weight: 700; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--gold); color: var(--ink); padding: 10px 16px; border: var(--border); border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

.kicker {
    display: inline-block;
    font: 700 1.55rem/1 var(--font-hand);
    color: var(--coral-deep);
    transform: rotate(-2deg);
    margin: 0 0 0.35em;
}

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--band { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 40rem; }
.section-head__link { font-weight: 700; white-space: nowrap; }

/* ---------- Icons ---------- */

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }

/* ---------- Top bar & header ---------- */

.topbar { background: var(--ink); color: #F4EDE0; font-size: 13.5px; }
.topbar__inner p { margin: 0; padding: 7px 0; text-align: center; }
.topbar a { color: var(--gold); }

.site-header { background: var(--card); border-bottom: var(--border); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__face {
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--gold-soft); border: var(--border); box-shadow: var(--pop-sm);
    display: grid; place-items: end center; overflow: hidden;
}
.brand__face svg { width: 44px; height: 48px; margin-bottom: -2px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 800 1.45rem/1 var(--font-display); font-variation-settings: 'SOFT' 100; letter-spacing: -0.02em; }
.brand__name em { font-style: italic; color: var(--coral-deep); }
.brand__by { font: 700 1.2rem/1 var(--font-hand); color: var(--denim); transform: rotate(-3deg); transform-origin: left; margin-top: 3px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.site-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 999px;
    font-weight: 650; font-size: 15.5px; color: var(--ink); text-decoration: none;
}
.site-nav a:hover { background: var(--paper-2); }
.site-nav a[aria-current] { background: var(--paper-2); box-shadow: inset 0 -3px 0 var(--gold); }
.site-nav__stars a { background: var(--gold); border: var(--border); box-shadow: var(--pop-sm); margin-left: 6px; }
.site-nav__stars a:hover { background: #FFC93D; }
.site-nav__stars .icon { fill: var(--ink); stroke: none; }

@media (max-width: 1060px) {
    .site-header__inner { flex-wrap: wrap; gap: 6px 20px; padding-top: 10px; }
    .site-nav { width: 100%; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 12px; width: calc(100% + 32px); scrollbar-width: none; }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav ul { flex-wrap: nowrap; }
    .site-nav a { white-space: nowrap; background: var(--paper-2); }
}
@media (max-width: 520px) {
    .brand__name { font-size: 1.2rem; }
    .brand__face { width: 46px; height: 46px; }
    .brand__face svg { width: 38px; height: 42px; }
}

/* ---------- Breadcrumbs ---------- */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; font-size: 14.5px; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 750 15.5px/1.1 var(--font-body); color: var(--ink); text-decoration: none;
    padding: 13px 20px; border-radius: 999px; border: var(--border); box-shadow: var(--pop-sm);
    background: var(--card); cursor: pointer; white-space: nowrap;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--amazon { background: var(--gold); }
.btn--amazon:hover { background: #FFC93D; }
.btn--ink { background: var(--ink); color: #FFF; }
.btn--ink:hover { color: #FFF; }
.btn--ghost { background: var(--card); }
.btn--small { padding: 10px 15px; font-size: 14.5px; }
.btn--tiny { padding: 7px 11px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }
.btn .icon { width: 1.15em; height: 1.15em; }

.aff-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); margin: 12px 0 0; }
.aff-note .icon { margin-top: 2px; }

/* ---------- Stickers (award badges) ---------- */

.sticker { display: block; overflow: visible; filter: drop-shadow(1px 2px 0 rgba(28, 38, 64, 0.25)); }
.sticker--sm { width: 88px; height: 88px; }
.sticker--md { width: 124px; height: 124px; }
.sticker--lg { width: 170px; height: 170px; }
.sticker__arc { font: 800 12.5px var(--font-body); letter-spacing: 0.2em; }
.sticker__name { font: 900 11px var(--font-body); letter-spacing: 0.08em; }
.sticker__name.is-long { font-size: 9.5px; letter-spacing: 0.05em; }

.award-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font: 750 12.5px/1 var(--font-body); letter-spacing: 0.02em;
    padding: 5px 9px 5px 7px; border-radius: 999px; border: 1px solid rgba(28, 38, 64, 0.45);
    background: var(--gold); color: var(--ink); white-space: nowrap;
}
.award-chip .icon { fill: currentColor; stroke: none; width: 13px; height: 13px; }
.award-chip--value { background: #A6E3C4; }
.award-chip--splurge { background: #F6B3CB; }
.award-chip--special { background: #AFD3F2; }

/* ---------- Score dial, stars, report card ---------- */

.dial { position: relative; display: inline-grid; place-items: center; width: 66px; height: 66px; flex: none; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial__track { stroke: var(--paper-3); }
.dial__bar { stroke: var(--band-good); }
.dial--top .dial__bar { stroke: var(--band-top); }
.dial--great .dial__bar { stroke: var(--band-great); }
.dial--ok .dial__bar { stroke: var(--band-ok); }
.dial--meh .dial__bar { stroke: var(--band-meh); }
.dial__num { position: relative; font: 800 1.3rem/1 var(--font-display); letter-spacing: -0.02em; }
.dial--sm { width: 56px; height: 56px; }
.dial--sm .dial__num { font-size: 1.1rem; }
.dial--lg { width: 132px; height: 132px; }
.dial--lg .dial__num { font-size: 2.6rem; }
.dial-wrap { display: inline-flex; align-items: center; gap: 14px; }
.dial-label { display: flex; flex-direction: column; gap: 2px; }
.dial-label__k { font: 700 12px var(--font-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
.dial-label__v { font: 700 1.9rem/1 var(--font-hand); color: var(--coral-deep); }

.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars__s { width: 18px; height: 18px; }
.stars__s path { fill: var(--paper-3); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.stars__s--full path { fill: var(--gold); }
.stars__s--half .stars__half { fill: var(--gold); stroke: none; }

.report { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.report__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.report__label { font-weight: 700; }
.report__weight { font-size: 13px; color: var(--ink-3); margin-right: auto; }
.report__score { font: 800 1.15rem/1 var(--font-display); }
.report__bar { display: block; width: 100%; height: 10px; }
.report__track { fill: var(--paper-3); }
.report__fill { fill: var(--band-good); }
.report__fill--top, .report__score--top { fill: var(--band-top); color: var(--band-top); }
.report__fill--great, .report__score--great { fill: var(--band-great); color: var(--band-great); }
.report__score--good { color: var(--band-good); }
.report__fill--ok, .report__score--ok { fill: var(--band-ok); color: var(--band-ok); }
.report__fill--meh, .report__score--meh { fill: var(--band-meh); color: var(--band-meh); }
.report__note { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Cards ---------- */

.card { background: var(--card); border: var(--border); border-radius: var(--r); box-shadow: var(--pop); padding: clamp(18px, 3vw, 28px); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 30px 26px; }

.pcard {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    background: var(--card); border: var(--border); border-radius: var(--r); box-shadow: var(--pop);
    padding: 22px 22px 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pcard:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.pcard--awarded { padding-top: 26px; }
.pcard--gold { background: linear-gradient(180deg, var(--gold-soft), var(--card) 42%); }
.pcard__sticker { position: absolute; top: -26px; right: -14px; transform: rotate(9deg); transition: transform 0.2s ease; }
.pcard:hover .pcard__sticker { transform: rotate(-4deg) scale(1.06); }
.pcard__top { padding-right: 64px; }
.pcard__brand, .pcard__cat { font: 700 12.5px var(--font-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); text-decoration: none; }
.pcard__cat:hover { color: var(--denim); }
.pcard__name { font: 780 1.35rem/1.15 var(--font-display); font-variation-settings: 'SOFT' 100; margin: 6px 0 8px; }
.pcard__name a { color: var(--ink); text-decoration: none; }
.pcard__name a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.pcard__tagline { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.pcard__meta { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-block: 1.5px dashed var(--line); }
.pcard__facts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pcard__band { font: 700 1.35rem/1 var(--font-hand); color: var(--coral-deep); }
.pcard__price { font-size: 14.5px; color: var(--ink-2); }
.pcard__price strong { color: var(--ink); font-size: 16px; }
.pcard__for { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.pcard__for span { font-weight: 750; color: var(--ink); }
.pcard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.pcard__actions .btn { flex: 1 1 auto; }

/* ---------- Home hero ---------- */

.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .scribble { position: relative; white-space: nowrap; }
.hero h1 .scribble::after {
    content: ''; position: absolute; left: -4px; right: -4px; bottom: 0.02em; height: 0.34em;
    background: var(--gold); z-index: -1; border-radius: 6px; transform: rotate(-1.2deg);
}
.hero__lede { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem); color: var(--ink-2); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--ink-2); }
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof .icon { color: var(--sage); }
.hero__art { position: relative; justify-self: center; width: min(420px, 100%); }
.hero__frame {
    position: relative; aspect-ratio: 1 / 1.04; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
    background: radial-gradient(circle at 50% 38%, #FFF7DD 0 38%, var(--gold-soft) 39% 100%);
    border: var(--border); border-radius: 50% 50% 46% 54% / 55% 52% 48% 45%; box-shadow: var(--pop);
}
.hero__frame .mascot { width: 94%; height: auto; display: block; margin-bottom: -6%; }
.hero__sticker { position: absolute; left: -8%; bottom: 6%; transform: rotate(-12deg); animation: wobble 6s ease-in-out infinite; }
.hero__note {
    position: absolute; right: -4%; top: 2%;
    background: var(--card); border: var(--border); border-radius: 14px; box-shadow: var(--pop-sm);
    font: 700 1.3rem/1.1 var(--font-hand); padding: 10px 14px; transform: rotate(4deg); max-width: 190px;
}

@keyframes wobble { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(-4deg) scale(1.04); } }

@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art { width: min(340px, 86%); }
}

/* ---------- Hubs ---------- */

.hubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 26px; }
.hub-tile {
    position: relative; display: grid; grid-template-columns: 1fr 110px; gap: 8px 12px;
    background: var(--card); border: var(--border); border-radius: var(--r); box-shadow: var(--pop);
    padding: 22px 16px 18px 22px; overflow: hidden;
}
.hub-tile h3 { font: 780 1.5rem/1.1 var(--font-display); font-variation-settings: 'SOFT' 100; margin: 0 0 6px; }
.hub-tile h3 a { color: var(--ink); text-decoration: none; }
.hub-tile h3 a::after { content: ''; position: absolute; inset: 0; }
.hub-tile p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.hub-tile .mascot { width: 118px; height: auto; align-self: end; margin-bottom: -22px; }
.hub-tile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; position: relative; z-index: 1; }
.hub-tile li a, .chip {
    display: inline-block; font-size: 13.5px; font-weight: 650; color: var(--ink); text-decoration: none;
    background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.hub-tile li a:hover, .chip:hover { border-color: var(--ink); background: var(--gold-soft); }
.hub-tile:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.hub-tile { transition: transform 0.15s ease, box-shadow 0.15s ease; }

/* ---------- Page heads (category, hub, review) ---------- */

.page-head { padding: clamp(26px, 4vw, 48px) 0 clamp(26px, 4vw, 40px); }
.page-head__grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; }
.page-head .mascot { width: clamp(150px, 18vw, 220px); height: auto; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14.5px; color: var(--ink-3); margin-top: 16px; }
.page-head__meta .method { font-size: 14px; }
@media (max-width: 720px) {
    .page-head__grid { grid-template-columns: 1fr; }
    .page-head .mascot { display: none; }
}

.method { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); }
.method--hands { background: var(--sage-soft); border-color: var(--sage); color: #1E6B49; }
.method--research:hover { border-color: var(--ink); color: var(--ink); }

/* Quick picks: the award winners at the top of a category */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; margin: 8px 0 0; }
.pick {
    position: relative; display: flex; gap: 14px; align-items: center;
    background: var(--card); border: var(--border); border-radius: var(--r); box-shadow: var(--pop-sm);
    padding: 14px 16px 14px 12px; text-decoration: none; color: var(--ink);
}
.pick:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.pick .sticker { width: 74px; height: 74px; flex: none; transform: rotate(-6deg); }
.pick__name { display: block; font: 780 1.12rem/1.15 var(--font-display); }
.pick__line { display: block; font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.pick__score { display: block; font-size: 13.5px; font-weight: 700; margin-top: 6px; }

/* ---------- Layout with a sticky side column ---------- */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.layout__side { position: sticky; top: 20px; display: grid; gap: 22px; }
@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .layout__side { position: static; }
}

.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
.side-title { font: 700 12.5px var(--font-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin: 0 0 10px; }

/* ---------- Prose ---------- */

.prose { font-size: 17.5px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose > *:first-child { margin-top: 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--gold); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-2); }
.static-prose { max-width: 46rem; padding-bottom: 56px; }

.block { margin: 0 0 clamp(36px, 5vw, 56px); scroll-margin-top: 20px; }
.block > h2 { display: flex; align-items: center; gap: 12px; }

/* ---------- Comparison tables ---------- */

.table-scroll {
    overflow-x: auto; background: var(--card); border: var(--border); border-radius: var(--r); box-shadow: var(--soft);
    -webkit-overflow-scrolling: touch;
}
.compare, .versus { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare { min-width: 820px; }
.compare th, .compare td { padding: 12px 12px; text-align: center; border-bottom: 1.5px solid var(--line); vertical-align: middle; }
.compare thead th { background: var(--paper-2); font: 750 12px/1.25 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.compare thead th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.compare thead th button::after { content: '↕'; opacity: 0.35; font-size: 12px; }
.compare thead th[aria-sort='descending'] button::after { content: '↓'; opacity: 1; }
.compare thead th[aria-sort='ascending'] button::after { content: '↑'; opacity: 1; }
.compare thead th button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover > * { background: #FFFBEF; }
.compare__product { text-align: left !important; position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 190px; box-shadow: 1.5px 0 0 var(--line); }
thead .compare__product { background: var(--paper-2); z-index: 2; }
.compare__product a { display: block; font-weight: 750; color: var(--ink); text-decoration: none; margin-bottom: 4px; }
.compare__product a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.compare__overall { display: inline-block; min-width: 46px; font: 800 1.1rem/1 var(--font-display); padding: 8px 6px; border-radius: 10px; background: var(--card); }
.compare__overall--top { background: #CDEEDB; }
.compare__overall--great { background: #DDF3E6; }
.compare__overall--good { background: var(--denim-soft); }
.compare__overall--ok { background: #FCEBC4; }
.compare__overall--meh { background: var(--brick-soft); }
.pip { display: inline-block; min-width: 38px; font-weight: 750; padding: 4px 6px; border-radius: 8px; }
.pip--top { background: #CDEEDB; color: #155B39; }
.pip--great { background: #E3F4EA; color: #1E6B49; }
.pip--good { background: var(--denim-soft); color: #2A4F7F; }
.pip--ok { background: #FCEBC4; color: #7A5000; }
.pip--meh { background: var(--brick-soft); color: #8E2A1A; }
.table-hint { font-size: 13.5px; color: var(--ink-3); margin: 10px 0 0; }

.versus th, .versus td { padding: 12px 16px; border-bottom: 1.5px solid var(--line); text-align: left; vertical-align: top; }
.versus thead th { background: var(--paper-2); border-bottom: 1px solid var(--line); font: 780 1.05rem/1.2 var(--font-display); }
.versus thead th a { color: var(--ink); }
.versus tbody th { font-weight: 650; color: var(--ink-2); width: 30%; }
.versus td.is-winner { background: #EAF6EF; font-weight: 700; }
.versus td.is-winner::after { content: ' ★'; color: var(--gold-deep); }
.versus__overall th, .versus__overall td { font-size: 1.1rem; }
.versus tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Review page ---------- */

.review-head { padding: clamp(24px, 4vw, 44px) 0 clamp(30px, 4vw, 44px); }
.review-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px 48px; align-items: start; }
.review-head__brand { font: 700 13px var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin: 0 0 8px; }
.review-head h1 { margin-bottom: 14px; }
.review-head__tagline { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--font-hand); color: var(--coral-deep); margin: 0 0 18px; }
.verdict-card { position: relative; background: var(--card); border: var(--border); border-radius: var(--r); box-shadow: var(--pop); padding: 24px; }
.verdict-card--gold { background: linear-gradient(180deg, var(--gold-soft), var(--card) 55%); }
.verdict-card__sticker { position: absolute; top: -34px; right: -20px; transform: rotate(10deg); }
.verdict-card .dial-wrap { margin-bottom: 14px; }
.verdict-card__stars { margin-bottom: 16px; }
.verdict-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1.5px dashed var(--line); margin-bottom: 14px; }
.verdict-card__price strong { font: 800 1.6rem/1 var(--font-display); }
.verdict-card__price span { font-size: 13.5px; color: var(--ink-3); text-align: right; }
.verdict-card .btn { width: 100%; }
.card__cta { margin-top: 16px; }
.fit { display: grid; gap: 12px; margin: 20px 0 0; }
.fit__row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15.5px; }
.fit__row strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.fit__row .icon { width: 24px; height: 24px; }
.fit__row--yes .icon { color: var(--sage); }
.fit__row--no .icon { color: var(--brick); }
@media (max-width: 900px) { .review-head__grid { grid-template-columns: 1fr; } .verdict-card { max-width: 440px; } }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proscons__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.proscons__col--pro { background: linear-gradient(180deg, var(--sage-soft), var(--card) 60%); }
.proscons__col--con { background: linear-gradient(180deg, var(--brick-soft), var(--card) 60%); }
.proscons h3 { font: 700 1.6rem/1 var(--font-hand); margin: 0 0 12px; }
.proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.proscons li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15.5px; }
.proscons li .icon { width: 20px; height: 20px; margin-top: 2px; }
.proscons__col--pro .icon { color: var(--sage); }
.proscons__col--con .icon { color: var(--brick); }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }

.specs { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.specs__row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; }
.specs__row + .specs__row { border-top: 1.5px solid var(--line); }
.specs dt { background: var(--paper-2); padding: 11px 16px; font-weight: 700; font-size: 15px; }
.specs dd { margin: 0; padding: 11px 16px; font-size: 15px; }

.sources { font-size: 14.5px; color: var(--ink-2); padding-left: 1.3em; margin: 0; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }

/* Tech Dad speech bubble */
.says { display: grid; grid-template-columns: clamp(96px, 14vw, 150px) 1fr; gap: 6px 18px; align-items: end; margin: 0 0 clamp(36px, 5vw, 56px); }
.says__dad { width: 100%; height: auto; }
.says__bubble { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--soft); padding: 20px 24px; margin-bottom: 26px; }
.says__bubble::before {
    content: ''; position: absolute; left: -14px; bottom: 26px; width: 22px; height: 22px;
    background: var(--card); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg);
}
.says__title { font: 700 1.55rem/1 var(--font-hand); color: var(--coral-deep); margin: 0 0 8px; }
.says__bubble p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
    .says { grid-template-columns: 1fr; }
    .says__dad { width: 120px; order: 2; }
    .says__bubble { margin-bottom: 0; }
    .says__bubble::before { left: 40px; bottom: -13px; transform: rotate(-45deg); }
}

.safety { display: grid; grid-template-columns: 34px 1fr; gap: 14px; background: var(--denim-soft); border: 1px solid #C7D7EC; border-radius: var(--r); padding: 18px 22px; margin: 0 0 clamp(30px, 4vw, 44px); }
.safety__icon { width: 30px; height: 30px; color: var(--denim); }
.safety__title { font-weight: 800; margin: 0 0 6px; }
.safety p { font-size: 15.5px; }
.safety p:last-child { margin-bottom: 0; }

/* FAQs */
.faqs { display: grid; gap: 12px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq[open] { border-color: var(--ink-3); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
    background: var(--gold); border: 1.5px solid var(--ink); font-weight: 800; line-height: 1;
}
.faq[open] summary::after { content: '–'; }
.faq__a { padding: 0 20px 6px; font-size: 16px; color: var(--ink-2); }

/* Buying guide sections */
.guide-sections { counter-reset: gs; display: grid; gap: 26px; }
.guide-sections section { position: relative; padding-left: 58px; }
.guide-sections section::before {
    counter-increment: gs; content: counter(gs);
    position: absolute; left: 0; top: -2px; width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--gold); border: var(--border); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink);
    font: 800 1.1rem/1 var(--font-display);
}
.guide-sections h3 { font: 780 1.3rem/1.2 var(--font-display); margin: 0 0 8px; }

/* ---------- Versus tiles ---------- */

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.vtile {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
    background: var(--card); border: var(--border); border-radius: var(--r); box-shadow: var(--pop-sm);
    padding: 18px; text-decoration: none; color: var(--ink); font-weight: 750; line-height: 1.2;
}
.vtile:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.vtile__b { text-align: right; }
.vtile__vs { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #FFF; border: var(--border); font: 800 0.95rem/1 var(--font-display); transform: rotate(-8deg); }
.vtile__cat { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }

.versus-head { text-align: center; padding: clamp(26px, 4vw, 48px) 0 24px; }
.versus-head__pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; max-width: 820px; margin: 24px auto 0; }
.versus-head__side { background: var(--card); border: var(--border); border-radius: var(--r); box-shadow: var(--pop); padding: 18px; display: grid; justify-items: center; gap: 10px; }
.versus-head__side a { font: 780 1.15rem/1.2 var(--font-display); color: var(--ink); text-decoration: none; }
.versus-head__vs { font: 800 1.4rem/1 var(--font-display); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #FFF; border: var(--border); box-shadow: var(--pop-sm); transform: rotate(-8deg); }
@media (max-width: 560px) { .versus-head__pair { grid-template-columns: 1fr; } .versus-head__vs { margin: 0 auto; } }

/* ---------- Gold Stars (sticker chart) ---------- */

.chart-hub { margin-bottom: clamp(40px, 6vw, 70px); }
.chart-hub > h2 { display: flex; align-items: center; gap: 12px; }
.chart-cat { margin: 0 0 30px; }
.chart-cat h3 { font: 780 1.3rem/1.2 var(--font-display); margin: 0 0 16px; }
.chart-cat h3 a { color: var(--ink); }

/* ---------- Guides list ---------- */

.glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.gcard { position: relative; background: var(--card); border: var(--border); border-radius: var(--r); box-shadow: var(--pop); padding: 22px; display: grid; gap: 8px; align-content: start; }
.gcard h3 { font: 780 1.35rem/1.2 var(--font-display); margin: 0; }
.gcard h3 a { color: var(--ink); text-decoration: none; }
.gcard h3 a::after { content: ''; position: absolute; inset: 0; }
.gcard p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.gcard:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.gcard { transition: transform 0.15s ease, box-shadow 0.15s ease; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #E9E3D6; margin-top: clamp(40px, 6vw, 80px); border-top: 4px solid var(--gold); font-size: 15px; }
.site-footer a { color: #FFF; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; padding: 48px 0 30px; }
.site-footer__about p { color: #CFC8B8; max-width: 26rem; }
.site-footer__dad { width: 120px; height: auto; margin-bottom: 4px; }
.site-footer__hand { font: 700 1.4rem/1 var(--font-hand) !important; color: var(--gold) !important; transform: rotate(-2deg); }
.site-footer__head { font-weight: 800; color: #FFF; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { color: #CFC8B8; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 22px 0 34px; font-size: 13.5px; color: #B8B0A0; }
.site-footer__legal p { margin: 0 0 6px; }
.site-footer__legal strong { color: #FFF; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

/* ---------- Misc ---------- */

.notice { background: var(--gold-soft); border: var(--border); border-radius: var(--r); padding: 16px 20px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.empty { text-align: center; padding: 40px 0; }
.empty .mascot { width: 180px; height: auto; }

/* Staggered entrance for grids */
@media (prefers-reduced-motion: no-preference) {
    .pgrid > *, .hubs > *, .picks > *, .vgrid > *, .glist > * { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .pgrid > :nth-child(2), .hubs > :nth-child(2), .picks > :nth-child(2), .vgrid > :nth-child(2), .glist > :nth-child(2) { animation-delay: 0.06s; }
    .pgrid > :nth-child(3), .hubs > :nth-child(3), .picks > :nth-child(3), .vgrid > :nth-child(3), .glist > :nth-child(3) { animation-delay: 0.12s; }
    .pgrid > :nth-child(4), .hubs > :nth-child(4), .picks > :nth-child(4), .vgrid > :nth-child(4), .glist > :nth-child(4) { animation-delay: 0.18s; }
    .pgrid > :nth-child(n+5), .hubs > :nth-child(n+5), .vgrid > :nth-child(n+5), .glist > :nth-child(n+5) { animation-delay: 0.24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
    .topbar, .site-header, .site-footer, .btn, .aff-note { display: none !important; }
    body { background: #FFF; }
}

.cta-row--center { justify-content: center; }
.chart-hub h2 a, .chart-cat h3 a, .block > h2 a, .section-head h2 a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.chart-hub h2 a:hover, .chart-cat h3 a:hover, .block > h2 a:hover, .section-head h2 a:hover { text-decoration-color: var(--coral); }

/* Google Tag Manager's noscript iframe (Google's snippet uses an inline style, which the CSP blocks) */
.gtm-ns { display: none; visibility: hidden; }

/* ---------- Analytics consent ---------- */

.consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    max-width: 720px; margin-inline: auto;
    background: var(--card); border: var(--border); border-radius: var(--r);
    box-shadow: var(--pop); padding: 18px 22px;
}
.consent[hidden] { display: none; }
.consent__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.consent__inner > div:first-child { flex: 1 1 300px; }
.consent__title { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin: 0 0 4px; }
.consent__text { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__actions .btn { cursor: pointer; font-family: inherit; }
@media (max-width: 560px) {
    .consent__actions { width: 100%; }
    .consent__actions .btn { flex: 1; }
}
