
/* H1 Claude Edition — built to Claude's (senior UI/UX architect) implementation spec.
   Self-hosted fonts (Archivo + Inter variable woff2, external files in assets/fonts/). Near-monochrome,
   one orange accent reserved for purchase buttons and the active filter chip. */
@font-face{font-family:'Archivo';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/archivo-var.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/inter-var.woff2) format('woff2')}
:root{
  --paper:#FCFAF6; --surface:#FFFFFF; --ink:#111827; --muted:#3A3D42;
  --line:#E4E2DC; --tile:#ECEAE4; --bar:#111827;
  --accent:#E4572E; --accent-hov:#EC6B45; --accent-text:#111214;
  --yellow:#FACC15; --yellow-dark:#EAB308; --purple:#7C3AED; --purple-dark:#6D28D9;
  --gold:#FFF3D6; --gold-deep:#FFE9B8;
  --foot:#C9CBCF;
  --radius:10px; --radius-lg:16px; --radius-card:16px;
  --shadow:0 1px 2px rgba(17,18,20,.06);
  --shadow-lg:0 16px 48px rgba(17,18,20,.22);
  /* ---- Phase 2 design-system tokens (2026-11-22) — one scale per
     component family, measured from the Phase 1 audit (21 inconsistencies).
     Breakpoints are documented here but CANNOT be used inside @media
     (CSS custom properties do not work in media queries); the queries
     below still use the literal values. ---- */
  /* Typography */
  --font-display:'Archivo',sans-serif; --font-body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --text-xs:12px; --text-sm:13px; --text-base:15px; --text-lg:17px; --text-xl:20px; --text-2xl:26px; --text-3xl:34px;
  --weight-bold:700; --weight-xbold:800; --weight-black:900;
  /* Spacing */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px; --space-6:24px; --space-8:32px;
  /* Radius + shadow */
  --radius-sm:8px; --radius-pill:999px;
  --shadow-md:0 6px 16px rgba(17,18,20,.10);
  /* Layout */
  --container-max:1200px;
  /* Icons — box vs optical glyph size (audit A-03): the 26px tile box is
     shared; sparse glyphs get a larger rendered size so all icons read
     the same visual weight. */
  --icon-box:26px; --icon-glyph:22px;
  --icon-btn:18px; --icon-nav:18px; --icon-tab:24px;
  /* Buttons — ONE height for every purchase button (audit E-04) */
  --btn-h:44px;
  /* Cover-size scale — ONE scale, growing with the viewport (audit B-02/C-01):
     grid covers, hero covers, detail covers, FR tier covers. */
  --cover-grid-w-sm:150px; /* horizontal grid cards, 641–767px */
  --cover-grid-w:180px; /* horizontal grid cards ≥768px (was 150px — smaller than mobile) */
  --cover-grid-w-lg:200px; /* horizontal grid cards ≥1024px */
  --cover-hero-w:200px; /* hero slide cover (was fixed 140px at every width) */
  --cover-hero-w-lg:220px;
  --cover-detail-w:260px; /* detail cover card, mobile + tablet */
  /* Aspect ratios */
  --ar-cover:3/4; --ar-hero:600/849; --ar-fan:4/3; --ar-thumb-43:4/3; --ar-thumb-169:16/9; --ar-square:1/1; --ar-mockup:4/5;
  --cover-tier-ar:3/4; /* FR tier covers (portrait variant) */
  /* Breakpoints (documentation only — see note above) */
  --bp-mobile:640px; --bp-tablet:768px; --bp-desktop:1024px; --bp-wide:1280px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--paper);color:var(--ink);font-size:16px;line-height:1.55;-webkit-text-size-adjust:100%}
a{color:var(--ink);text-decoration:none}
/* [hidden] must win over display rules on buttons etc. (Load more fix) */
[hidden]{display:none !important}
a:hover{text-decoration:underline}
h1,h2,h3{font-family:'Archivo',sans-serif;color:var(--ink);font-weight:800;line-height:1.12;letter-spacing:-.02em}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.wrap{max-width:1200px;margin:0 auto;padding:0 32px}
section.block{scroll-margin-top:80px}
img{display:block;max-width:100%}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:10px 16px;z-index:200;border-radius:0 0 8px 0}
.skip-link:focus{left:0;color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--btn-h);padding:12px 20px;border-radius:9px;font-family:'Archivo',sans-serif;font-weight:700;font-size:15px;line-height:1.2;border:1px solid transparent;text-decoration:none;text-align:center;white-space:nowrap;transition:background .18s ease,border-color .18s ease,transform .12s ease,box-shadow .18s ease}
/* Phase 2 brand logos (audit E-01–E-03): crisp inline SVG marks on purchase
   buttons — Amazon smile, Ko-fi cup, Gumroad G — one 18px mark, vertically
   centred by the button's flex gap. The logo span is aria-hidden; the
   button text stays the accessible label. */
.btn .btn-logo{width:var(--icon-btn);height:var(--icon-btn);flex:none;display:inline-flex}
.btn .btn-logo svg{width:100%;height:100%;display:block}
.btn:hover{text-decoration:none}
.btn-accent{background:var(--ink);color:#fff}
.btn-ink{background:var(--ink);color:#fff}
/* Ink buttons that are NOT affiliate Buy buttons (Download, Play, View,
   Subscribe, Apply filters) carry a subtle 3D bottom edge + crisp shadow,
   like the Amazon gold buttons. The affiliate "Buy" buttons also
   use .btn-ink but carry data-affiliate, so they keep the old flat look
   exactly — Buy buttons are never restyled. */
.btn-ink:not([data-affiliate]){box-shadow:0 2px 0 #000,0 4px 10px rgba(17,18,20,.20)}
.btn-ghost{background:#fff;border:1px solid var(--line);color:var(--ink);box-shadow:0 1px 0 rgba(17,18,20,.10),0 2px 6px rgba(17,18,20,.06)}
/* Primary / outline action buttons (2026-11-20): .btn-primary and
   .btn-outline are used by Download / View / Print / Email buttons on
   resource detail pages, book pages and articles, but had no definition
   in this stylesheet — they rendered as bare bold text. Coral primary
   matches the games' own coral action buttons; outline matches the
   ghost family. Same tactile treatment as the Amazon gold buttons:
   3D bottom edge, lift + glow on hover, press-in on click. */
.btn-primary{background:#FF6B6B;color:var(--ink);border:1px solid #E85A5A;box-shadow:0 2px 0 #D94F4F,0 4px 10px rgba(255,107,107,.28)}
.btn-outline{background:#fff;border:1px solid var(--ink);color:var(--ink);box-shadow:0 1px 0 rgba(17,18,20,.10),0 2px 6px rgba(17,18,20,.06)}
/* Buttons — tactile hover/active (2026-11-20): a small lift + soft shadow on
   hover, a pressed state on tap/click. Hover is gated to (hover:hover) so
   touch devices never get a stuck hover state; :active gives the press.
   .btn-accent (Gumroad/Ko-fi Buy) and .btn-ink[data-affiliate] (affiliate Buy)
   keep their original hover/active exactly — Buy buttons are never restyled. */
@media (hover:hover){
  .btn-accent:hover{background:#000;transform:translateY(-2px);box-shadow:0 8px 18px rgba(17,18,20,.20)}
  .btn-ink[data-affiliate]:hover{background:#000;transform:translateY(-2px);box-shadow:0 8px 18px rgba(17,18,20,.20)}
  .btn-ink:not([data-affiliate]):hover{background:#000;transform:translateY(-2px);box-shadow:0 4px 0 #000,0 10px 22px rgba(17,18,20,.22),0 0 0 1px rgba(228,87,46,.18)}
  .btn-ghost:hover{border-color:var(--ink);transform:translateY(-2px);box-shadow:0 2px 0 rgba(17,18,20,.12),0 8px 18px rgba(17,18,20,.14),0 0 0 1px rgba(228,87,46,.18)}
  .btn-primary:hover{background:#FF7D7D;transform:translateY(-2px);box-shadow:0 4px 0 #D94F4F,0 10px 22px rgba(255,107,107,.32),0 0 0 1px rgba(255,107,107,.45)}
  .btn-outline:hover{transform:translateY(-2px);box-shadow:0 2px 0 rgba(17,18,20,.12),0 8px 18px rgba(17,18,20,.14),0 0 0 1px rgba(228,87,46,.18)}
}
.btn-accent:active,.btn-ink[data-affiliate]:active{transform:translateY(0) scale(.98)}
.btn-ghost:active,.btn-outline:active{transform:translateY(1px);box-shadow:0 1px 0 rgba(17,18,20,.08),0 1px 4px rgba(17,18,20,.06)}
.btn-ink:not([data-affiliate]):active{transform:translateY(1px);box-shadow:0 1px 0 #000,0 2px 6px rgba(17,18,20,.14)}
.btn-primary:active{transform:translateY(1px);box-shadow:0 1px 0 #D94F4F,0 2px 6px rgba(255,107,107,.22)}
/* Amazon buttons — bold Amazon-inspired gold (2026-11-20): a warm amber
   gradient with a dark 3D bottom edge and crisp shadow, so the paperback
   option reads as a real buy button instead of a plain white ghost. Applies
   to every a[data-amazon] — the kit page button and all card Amazon buttons.
   Destination and buy_now_click behaviour are unchanged. */
a[data-amazon]{background:linear-gradient(180deg,#FFD07A,#F5A623);color:var(--ink);border-color:#D18A00;box-shadow:0 2px 0 #B97A00,0 4px 10px rgba(17,18,20,.14)}
@media (hover:hover){
  a[data-amazon]:hover{background:linear-gradient(180deg,#FFD98F,#F7B733);transform:translateY(-2px);box-shadow:0 4px 0 #B97A00,0 10px 22px rgba(17,18,20,.20),0 0 0 1px rgba(245,166,35,.45)}
}
a[data-amazon]:active{transform:translateY(1px);box-shadow:0 1px 0 #B97A00,0 2px 6px rgba(17,18,20,.14)}
.btn-sm{min-height:var(--btn-h);padding:10px 16px;font-size:14px}
/* ---------- header ---------- */
header.site{position:sticky;top:0;z-index:70;background:rgba(252,250,246,.97);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.hd{max-width:1200px;margin:0 auto;padding:0 32px;height:72px;display:flex;align-items:center;gap:16px}
.logo{display:inline-flex;align-items:center;gap:10px;font-family:'Archivo',sans-serif;font-size:24px;font-weight:800;color:var(--ink);white-space:nowrap;flex:none;line-height:1.1;transition:transform .12s ease,filter .18s ease}
.logo:hover{text-decoration:none}
/* Brand logo hover (2026-11-20): a subtle lift + glow on the mark, gated
   to hover-capable devices; a press returns it to rest. */
@media (hover:hover){
  .logo:hover{transform:translateY(-1px)}
  .logo:hover .logo-mark{filter:drop-shadow(0 4px 8px rgba(17,18,20,.20))}
}
.logo:active{transform:translateY(0)}
.logo-mark{height:40px;width:auto;display:block;border-radius:8px;flex:none}
.search{flex:1;display:flex;height:44px;border:1.5px solid var(--line);border-radius:9px;overflow:hidden;background:#fff;min-width:180px;max-width:560px;margin:0 auto;position:relative;transition:border-color .18s ease,box-shadow .18s ease}
.search input{flex:1;border:0;padding:0 14px;font-size:16px;min-width:0;color:var(--ink);font-family:inherit;background:transparent}
.search input:focus{outline:none}
.search:focus-within{border-color:var(--ink);box-shadow:0 0 0 1px rgba(228,87,46,.35),0 4px 14px rgba(17,18,20,.10)}
.search button{border:0;background:var(--ink);color:#fff;font-family:'Archivo',sans-serif;font-weight:700;font-size:15px;padding:0 18px;min-width:48px;min-height:44px;transition:background .18s ease,transform .12s ease}
.search button:hover{background:#000}
.search button:active{transform:scale(.97)}
.search-icon-btn{display:none;background:#fff;border:1.5px solid var(--line);border-radius:9px;color:var(--ink);font-size:22px;line-height:1;width:44px;height:44px;flex:none;align-items:center;justify-content:center;transition:background .18s ease,border-color .18s ease,transform .12s ease,box-shadow .18s ease}
/* Header search polish (2026-11-20): the bar glows on focus and lifts its
   border on hover (not while focused, so the focus glow always wins); the
   search trigger and the mobile search icon press in on click. Hover is
   gated to hover-capable devices. */
@media (hover:hover){
  .search:not(:focus-within):hover{border-color:var(--ink);box-shadow:0 1px 0 rgba(17,18,20,.08),0 2px 8px rgba(17,18,20,.07)}
  .search-icon-btn:hover{border-color:var(--ink);transform:translateY(-1px);box-shadow:0 2px 0 rgba(17,18,20,.10),0 6px 14px rgba(17,18,20,.12)}
}
.search-icon-btn:active{transform:translateY(0) scale(.97)}
.suggest{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-lg);z-index:80;display:none;max-height:320px;overflow-y:auto;text-align:left}
.suggest.open{display:block}
.suggest .sg-group{padding:10px 14px 4px;font-family:'Archivo',sans-serif;font-weight:700;font-size:13px;color:var(--muted)}
.suggest .sg-item{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;background:none;border:0;padding:10px 14px;font-size:15px;color:var(--ink);min-height:44px;align-items:center}
.suggest .sg-item:hover,.suggest .sg-item:focus-visible{background:var(--paper)}
.suggest .sg-item .sg-type{font-size:13px;color:var(--muted);white-space:nowrap}
.suggest .sg-none{padding:14px;font-size:15px;color:var(--muted)}
/* mobile search overlay */
.search-overlay{position:fixed;top:0;left:0;right:0;z-index:85;background:#fff;border-bottom:1px solid var(--line);padding:calc(10px + env(safe-area-inset-top)) 16px 12px;display:none}
.search-overlay.open{display:block}
.search-overlay .so-row{display:flex;gap:10px;align-items:center}
.search-overlay .search{flex:1;max-width:none;margin:0}
.search-overlay .so-close{background:#fff;border:1.5px solid var(--line);border-radius:9px;width:44px;height:44px;font-size:18px;color:var(--ink);flex:none}
.search-overlay .suggest{position:static;box-shadow:none;border:0;border-top:1px solid var(--line);border-radius:0;max-height:60vh;margin-top:10px}
/* ---------- department bar ---------- */
/* Phase 1 (2026-11-21): the dept bar is sticky directly under the header
   (header is 72px desktop / 56px mobile), so Home / Shop / Our Products /
   Free resources / Games & Play / Blog never scroll away or disappear. */
.dept{position:sticky;top:72px;z-index:65;background:var(--bar)}
.dept .wrap{display:flex;gap:2px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:0 26px}
.dept .wrap::-webkit-scrollbar{display:none}
.dept a{color:#fff;font-family:'Archivo',sans-serif;font-size:15px;font-weight:700;white-space:nowrap;padding:10px 14px;min-height:44px;margin:4px 0;display:inline-flex;align-items:center;scroll-snap-align:start;border-radius:999px;transition:background .18s ease,color .18s ease,transform .12s ease,box-shadow .18s ease}
 /* White hover is for top-level dept-bar links only (dark bar). Flyout links
   live on a light background — their own rule below keeps them dark. */
.dept .wrap > a:hover,.dept .wrap > .has-fly > a:hover{background:rgba(255,255,255,.12);color:#fff;text-decoration:none}
.dept .wrap > a.on,.dept .wrap > .has-fly > a.on{background:rgba(255,255,255,.20);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.dept .wrap > a:active,.dept .wrap > .has-fly > a:active{background:rgba(255,255,255,.24);color:#fff;transform:translateY(0)}
/* Dept-bar hover lift (2026-11-20): the highlight brightens and the link
   lifts 1px on hover-capable devices; touch keeps the plain highlight. */
@media (hover:hover){
  .dept .wrap > a:hover,.dept .wrap > .has-fly > a:hover{background:rgba(255,255,255,.16);transform:translateY(-1px)}
  .dept .wrap > a.on:hover,.dept .wrap > .has-fly > a.on:hover{background:rgba(255,255,255,.24)}
}
.dept a:focus-visible{outline-color:#fff}
/* ---------- hero ---------- */
.hero{padding:44px 0 52px;border-bottom:1px solid var(--line)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.hero h1{font-size:56px;font-weight:900;line-height:1.05;letter-spacing:-.02em;margin-bottom:14px}
.hero p.lede{font-size:18px;max-width:34ch;margin-bottom:22px;color:var(--ink)}
.hero .cta-row{display:flex;gap:12px;flex-wrap:wrap}
.hero .trust{margin-top:20px;font-size:14px;color:var(--muted);display:grid;gap:2px}
.hero .trust b{color:var(--ink);font-weight:600}
/* bundle spotlight */
.spot{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow);display:flex;gap:20px;align-items:flex-start}
.spot .cover{flex:none;width:var(--cover-hero-w);aspect-ratio:var(--ar-hero);background:var(--tile);border-radius:10px;overflow:hidden}
@media (min-width:1280px){.spot .cover{width:var(--cover-hero-w-lg)}}
.spot .cover img{width:100%;height:100%;object-fit:contain}
/* FIX #3 (2026-11-22) — Slide 3 fan collage. The single 9:16 colouring page
   sat alone in a wide white frame (its art is a centred column with baked-in
   white margins). Three printable sheets fanned at slight angles fill the
   frame with paper instead. Sheets are existing live thumbs only (colouring
   + planner + worksheet); no image file was created, cropped or re-exported.
   Each sheet keeps its natural portrait ratio with object-fit:contain, so
   nothing is cropped or stretched. */
.hero-carousel .spot .cover.spot-fan-cover{width:260px;aspect-ratio:var(--ar-fan);background:#F8F5EE}
.spot-fan{position:relative;width:100%;height:100%}
.spot-fan .fan-sheet{position:absolute;width:40%;aspect-ratio:600/849;background:#fff;border-radius:3px;box-shadow:0 3px 10px rgba(17,24,39,.20);overflow:hidden}
.spot-fan .fan-sheet img{width:100%;height:100%;object-fit:contain;display:block}
.spot-fan .fan-left{left:4%;top:9%;transform:rotate(-7deg)}
.spot-fan .fan-mid{left:30%;top:2%;transform:rotate(0deg);z-index:2}
.spot-fan .fan-right{left:56%;top:9%;transform:rotate(7deg)}
.spot .sbody{flex:1;min-width:0}
.spot .tag{display:inline-block;background:var(--ink);color:var(--paper);font-family:'Archivo',sans-serif;font-size:13px;font-weight:700;padding:4px 10px;border-radius:999px;margin-bottom:8px}
.spot h2{font-size:22px;margin-bottom:4px}
.spot .smeta{font-size:14px;color:var(--muted);margin-bottom:10px}
.spot .sprice{font-family:'Archivo',sans-serif;font-size:20px;font-weight:800;color:var(--ink)}
.spot .sprice s{font-family:'Inter',sans-serif;font-size:14px;color:var(--muted);font-weight:400;margin-left:8px}
.spot .ssave{font-size:13px;color:var(--muted);margin:4px 0 12px}
.spot .btn{width:100%}
.spot .btn + .btn{margin-top:8px}
.spot .bp-link{display:inline-block;margin-top:12px;font-weight:600}
/* Hero carousel (2026-11-20, preview) — auto-sliding showcase in the hero's
   right column. Slides stack in one grid cell: the tallest slide sets the
   height, so the page never jumps on auto-advance; only the active slide is
   visible (visibility:hidden also keeps inactive slides out of the tab order
   and pointer events). Dots sit below the slides. */
.hero-carousel{min-width:0}
.hslides{display:grid}
.hslide{grid-area:1/1;visibility:hidden;opacity:0;transition:opacity .45s ease,visibility 0s linear .45s}
.hslide.is-active{visibility:visible;opacity:1;transition:opacity .45s ease}
.hdots{display:flex;justify-content:center;gap:8px;padding-top:14px}
.hdot{width:10px;height:10px;border-radius:999px;border:0;background:var(--line);cursor:pointer;padding:0;transition:background .18s ease,transform .12s ease}
.hdot.is-active{background:var(--ink);transform:scale(1.25)}
.hdot:active{transform:scale(.85)}
@media (hover:hover){
  .hdot:hover{background:var(--muted)}
}
/* ---------- sections ---------- */
section.block{padding:64px 0;border-bottom:1px solid var(--line)}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:8px}
.sec-head h2{font-size:32px;font-weight:800}
.sec-head .more{font-size:14px;font-weight:700;white-space:nowrap;padding-bottom:6px;font-family:'Archivo',sans-serif}
.sec-sub{font-size:16px;color:var(--muted);max-width:640px;margin-bottom:26px}
/* filter rail */
.rail{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:14px}
.chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.chip{border:1.5px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:10px 16px;font-family:'Archivo',sans-serif;font-size:14px;font-weight:700;min-height:44px;box-shadow:0 1px 0 rgba(17,18,20,.08),0 2px 6px rgba(17,18,20,.05);transition:background .18s ease,color .18s ease,border-color .18s ease,transform .12s ease,box-shadow .18s ease}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:0 2px 0 #000,0 4px 10px rgba(17,18,20,.18)}
.chip:hover{border-color:var(--ink);background:var(--paper)}
.chip[aria-pressed="true"]:hover{background:#000;border-color:#000}
.chip:active{transform:translateY(1px);box-shadow:0 1px 0 rgba(17,18,20,.06),0 1px 4px rgba(17,18,20,.05)}
.chip[aria-pressed="true"]:active{box-shadow:0 1px 0 #000,0 2px 6px rgba(17,18,20,.14)}
/* Filter-chip hover lift (2026-11-20): the chip lifts 2px with a soft glow
   on hover-capable devices; touch keeps the plain highlight. */
@media (hover:hover){
  .chip:hover{transform:translateY(-2px);box-shadow:0 2px 0 rgba(17,18,20,.10),0 8px 16px rgba(17,18,20,.12),0 0 0 1px rgba(228,87,46,.16)}
  .chip[aria-pressed="true"]:hover{transform:translateY(-2px);box-shadow:0 2px 0 #000,0 10px 20px rgba(17,18,20,.22),0 0 0 1px rgba(228,87,46,.18)}
}
.chip:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.chip[aria-pressed="true"]:focus-visible{outline-offset:3px}
a.chip{text-decoration:none}
.want-more{text-align:center}
.age-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:20px}
.age-row .age-label{font-size:14px;font-weight:600;color:var(--muted);margin-right:2px}
.sort{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--muted)}
.sort select{border:1.5px solid var(--line);border-radius:8px;background:#fff;font-family:'Archivo',sans-serif;font-size:14px;font-weight:700;color:var(--ink);padding:10px 34px 10px 12px;min-height:44px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23111214' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px;transition:border-color .18s ease,box-shadow .18s ease,transform .12s ease}
/* Sort-control polish (2026-11-20): the same tactile depth, hover lift
   and focus glow as the filter pills; hover is gated to hover-capable
   devices. */
@media (hover:hover){
  .sort select:hover{border-color:var(--ink);transform:translateY(-2px);box-shadow:0 2px 0 rgba(17,18,20,.10),0 8px 16px rgba(17,18,20,.12),0 0 0 1px rgba(228,87,46,.16)}
}
.sort select:focus-visible{border-color:var(--ink);box-shadow:0 0 0 1px rgba(228,87,46,.35),0 4px 14px rgba(17,18,20,.10)}
.count{font-size:14px;color:var(--muted);margin:0 0 18px}
.empty{display:none;border:1.5px dashed var(--line);border-radius:var(--radius);padding:32px;text-align:center;color:var(--muted);font-size:15px;margin-bottom:8px}
.empty.show{display:block}

/* ---------- product grid + cards (static HTML first) ---------- */
.pgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;cursor:pointer}
/* Cards — hover lift + soft shadow + faint Warm Sunrise glow (2026-11-20).
   Hover is gated to (hover:hover) so touch devices never get a stuck hover
   state; :active gives a small press instead. .soon cards are not clickable,
   so they keep their flat look. */
@media (hover:hover){
  .card:not(.soon):hover{transform:translateY(-4px);border-color:var(--ink);box-shadow:0 12px 28px rgba(17,18,20,.14),0 0 0 1px rgba(228,87,46,.18)}
  .card:not(.soon):hover .cover img{transform:scale(1.03)}
}
.card:not(.soon):active{transform:translateY(-1px)}
.card.soon{cursor:default}
/* FIX #3 (2026-11-22): product covers are portrait (600x849, ratio 0.707) —
   a 1:1 frame cropped them. 3/4 + contain on a warm-cream stage shows 100%
   of every cover with zero sliced-off edges. */
.card .cover{aspect-ratio:3/4;background:#F8F5EE;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.card .cover img{width:100%;height:100%;object-fit:contain;transition:transform .3s ease}
/* The cover image sits inside an <a>: the anchor must fill the tile or the
   image's 100% height resolves against an auto-sized box and clips. */
.card .cover a{display:block;width:100%;height:100%}
.card .badge{position:absolute;top:10px;left:10px;background:var(--ink);color:var(--paper);font-family:'Archivo',sans-serif;font-size:13px;font-weight:700;padding:4px 10px;border-radius:999px;z-index:2}
/* FIX #3b (2026-11-22): badges moved OUT of the cover image into the card
   body (above the title). The absolute badge sat on top of the cover art and
   hid the titles on the Christmas ("Col-") and Reset Kit ("Begin") covers —
   the paperback badge (158px) covered "Begin" almost entirely. In the body
   the badge is a static pill that can never cover any art. */
.card .body .badge{position:static;align-self:flex-start;flex:none}
.card .body{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1}
.card h3{font-size:18px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.af-card h3{display:block;overflow:visible}
.card h3 a{color:var(--ink)}
.card .meta{font-size:14px;color:var(--muted)}
.card .price-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.card .price{font-family:'Archivo',sans-serif;font-size:20px;font-weight:800;color:var(--ink)}
.card .price s{font-family:'Inter',sans-serif;font-size:14px;color:var(--muted);font-weight:400}
/* 10% OFF PILL (2026-11-22): shown next to a discounted price on cards and
   detail pages. Yellow (brand CTA) with dark ink text, so it reads as a
   promotion and stays distinct from the purple card badge. */
.off-pill{display:inline-flex;align-items:center;background:var(--yellow);color:var(--ink);font-family:'Archivo',sans-serif;font-size:12px;font-weight:800;padding:2px 8px;border-radius:999px;white-space:nowrap;line-height:1.5;vertical-align:middle}
.card .actions{margin-top:auto;padding-top:8px}
.card .actions .btn{width:100%;min-height:var(--btn-h)}
/* Second button in a card (e.g. the Paperback on Amazon option): gap it from the primary Buy button. */
.card .actions .btn + .btn{margin-top:8px}
.card.soon{border-style:dashed;background:transparent;box-shadow:none}
.card.soon .cover{background:var(--paper)}
.card.soon .cover .soon-init{font-family:'Archivo',sans-serif;font-size:32px;font-weight:800;color:var(--muted)}
.card.soon h3{font-size:18px}
.card.soon .body p{font-size:14px;color:var(--muted)}
.card[hidden]{display:none}
/* ---------- affiliate cards (same tokens, same voice) ---------- */
.af-card .tag{font-family:'Archivo',sans-serif;font-size:13px;font-weight:700;color:var(--ink)}
.af-note{font-size:13px;color:var(--muted);margin-top:8px}
.af-label{font-weight:700;color:var(--ink)}
/* ---------- affiliate showcase (2026-11-21) — Creative Fabrica + Impact ----------
   Mobile-first: the trial banner stacks on small screens, cards use the
   site's responsive .pgrid (2 cols on mobile). Buttons are min 44px tall. */
.af-hero{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px;margin-bottom:32px;box-shadow:var(--shadow)}
.af-hero .af-hero-copy h2{font-size:26px;line-height:1.2;margin:0 0 8px}
.af-hero .af-hero-copy p{margin:0 0 12px;color:var(--muted);font-size:15px;line-height:1.55}
.af-hero .af-hero-price{font-family:'Archivo',sans-serif;font-size:32px;font-weight:800;line-height:1;color:var(--ink)}
.af-hero .af-hero-price small{font-size:15px;font-weight:700;color:var(--muted)}
.af-hero .af-hero-cta{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.af-hero .af-hero-cta .btn{width:100%}
.af-section{margin-bottom:36px}
.af-section>h2{font-size:22px;margin:0 0 6px}
.af-section>.af-section-intro{color:var(--muted);font-size:15px;line-height:1.55;margin:0 0 16px;max-width:640px}
.af-card .af-price-note{font-size:13px;color:var(--muted);margin-top:4px}
.af-card .af-desc{font-size:14px;color:var(--muted);line-height:1.5;margin:8px 0 0}
/* Brand tile for Impact cards (no product photo — the brand name is the cover) */
.af-card .cover .af-brand{font-family:'Archivo',sans-serif;font-size:26px;font-weight:800;line-height:1.15;color:var(--ink);text-align:center;padding:20px}
.af-card .cover .af-brand small{display:block;font-size:14px;font-weight:700;color:var(--muted);margin-top:6px}
.af-disclosure{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;font-size:14px;line-height:1.6;color:var(--muted);margin-top:8px}
.af-disclosure strong{color:var(--ink)}
.btn[aria-disabled="true"]{opacity:.65;cursor:not-allowed}
@media (max-width:640px){
  .af-hero{grid-template-columns:1fr;gap:16px;padding:20px}
  .af-hero .af-hero-copy h2{font-size:22px}
  .af-hero .af-hero-price{font-size:28px}
}
/* ---------- free resources ---------- */
.taster{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px;margin-bottom:24px;box-shadow:var(--shadow)}
.taster .art{min-height:200px;border-radius:var(--radius);background:var(--tile);color:var(--ink);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:24px;text-align:center}
.taster .art .big{font-family:'Archivo',sans-serif;font-size:32px;font-weight:800;line-height:1.15}
.taster .art img{width:100%;max-height:280px;object-fit:contain;background:var(--tile);border-radius:var(--radius);display:block}
.taster .art span:last-child{font-size:14px;color:var(--muted)}
.taster h3{font-size:26px;margin-bottom:8px}
.taster p{margin-bottom:16px}
/* Real Books promo: the book cover is the point — let it stand taller than the free-taster thumb. */
.taster.promo .art img{max-height:420px}
/* Phase 2 (audit B-03): the mockup SVG is a 600×750 (4:5) render. The old
   width:100% + max-height let the img box stretch to 614×420 @768 vs
   475×420 @1280 — same height, different widths, letterboxed whitespace.
   A fixed 4:5 box at 420px tall renders the mockup identically (336×420)
   at every width. */
.taster.promo .art img{width:auto;height:420px;max-height:420px;aspect-ratio:var(--ar-mockup);max-width:100%;margin:0 auto}
/* Let the promo grid columns shrink below their content width — the tall
   cover's min-content width would otherwise force the grid wider than the
   page on narrow screens (scrollW 382 at 360px before this rule). */
.taster.promo > *{min-width:0}
/* Paperback detail page subtitle (below the h1). */
.dsub{font-size:17px;color:var(--muted);margin:0 0 10px}
/* Blog book-promo block: a compact recommendation card at the end of an
   article. Mockup on the left, text on the right; stacks on mobile. */
.book-promo{display:flex;gap:20px;align-items:center;background:var(--tile);border:1px solid var(--line);border-radius:var(--radius-lg);padding:20px;margin:28px 0}
.book-promo .bp-img{width:120px;height:auto;flex:none;border-radius:6px}
.book-promo h3{margin:0 0 6px;font-size:19px}
.book-promo p{margin:0 0 8px}
.book-promo .bp-price{font-weight:700;color:var(--ink)}
.book-promo .bp-price s{font-family:'Inter',sans-serif;font-size:14px;color:var(--muted);font-weight:400;margin-left:4px}
.book-promo .bp-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:10px}
.book-promo .bp-link{font-weight:600}
@media (max-width:640px){.book-promo{flex-direction:column;align-items:flex-start;padding:16px}.book-promo .bp-img{width:140px}}
/* Kit-page FAQ cards — one subtle card per Q&A so each answer is scannable.
   Same tile/border/radius language as .book-promo; answers stay visible
   (no accordion) so AI crawlers and FAQ rich results still read them. */
.faq-item{background:var(--tile);border:1px solid var(--line);border-radius:var(--radius-lg);padding:18px 20px;margin:0 0 14px}
.faq-item h3{margin:0 0 6px;font-size:18px;line-height:1.3}
.faq-item p{margin:0}
@media (max-width:640px){.faq-item{padding:16px}}
/* Phase 2 — kit page: flip-through preview, email capture, reader quotes */
.flip-preview{max-width:600px;margin:20px auto 8px}
.flip-preview video{width:100%;height:auto;display:block;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--tile)}
.flip-cap{font-size:14px;color:var(--muted);margin:8px 0 0;text-align:center}
.email-capture{background:var(--tile);border:1px solid var(--line);border-radius:var(--radius-lg);padding:20px;margin:18px 0 0}
.email-capture h3{margin:0 0 6px;font-size:18px;line-height:1.3}
.email-capture p{margin:0 0 12px;font-size:14px;color:var(--muted)}
.email-capture form{display:flex;flex-wrap:wrap;gap:10px}
.email-capture input[type="email"]{flex:1 1 220px;min-height:44px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;font:inherit;background:var(--surface);color:var(--ink)}
.email-capture .fine{margin:12px 0 0;font-size:13px}
/* Gumroad subscribe embed: its own <style> sets the black button + white input;
   the button text colour and padding come from its (unresolved) utility classes,
   so set them here to keep it readable on this site. */
.email-capture #gumroad-follow-form-embed{flex-wrap:wrap}
.email-capture #gumroad-follow-form-embed-button{color:#fff;padding:12px 20px;font:inherit;font-weight:700;min-height:44px}
.email-capture #gumroad-follow-form-embed-input{padding:12px 14px;min-height:44px;font:inherit;color:var(--ink)}
.quotes{margin:18px 0 0}
.quotes h3{margin:0 0 6px;font-size:18px;line-height:1.3}
.quotes .quotes-empty{font-size:14px;color:var(--muted);margin:0}
.quote-card{background:var(--tile);border:1px solid var(--line);border-radius:var(--radius-lg);padding:18px 20px;margin:0 0 14px}
.quote-card blockquote{margin:0;font-size:16px;line-height:1.5}
.quote-card cite{display:block;margin-top:10px;font-size:14px;color:var(--muted);font-style:normal}
@media (max-width:640px){.email-capture{padding:16px}}
.res-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.res-item{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:0;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);position:relative;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;cursor:pointer}
/* Whole-card link (stretched over the card; the visible "View & download" text is a span, not a nested link) */
.card-link{position:absolute;inset:0;z-index:1}
.res-item .rthumb{aspect-ratio:4/3;background:var(--tile);overflow:hidden;flex:none}
.res-item .rthumb img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .3s ease}
.res-item .rbody{padding:18px;display:flex;flex-direction:column;gap:6px;flex:1}
.res-item .tag{font-family:'Archivo',sans-serif;font-size:13px;font-weight:700;color:var(--ink)}
.res-item h3{font-size:17px;line-height:1.3}
.res-item p{font-size:14px;color:var(--muted)}
.res-item .rbody .go{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:14px;font-weight:700;font-family:'Archivo',sans-serif;text-decoration:none;box-shadow:0 1px 0 rgba(17,18,20,.10),0 2px 6px rgba(17,18,20,.06);transition:transform .12s ease,box-shadow .18s ease,border-color .18s ease}
.res-item[hidden]{display:none}
html.js .res-item.extra{display:none}
html.js .res-grid.expanded .res-item.extra{display:flex}
.see-all-row{text-align:center;margin-top:22px}
#seeAllBtn{display:none}
html.js #seeAllBtn{display:inline-flex}
/* ---------- games ---------- */
.ggrid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.gcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.gcard .gthumb{aspect-ratio:16/9;background:var(--tile);border-radius:8px;overflow:hidden}
.gcard .gthumb img{width:100%;height:100%;object-fit:contain;transition:transform .3s ease}
.gcard h3{font-size:16px}
.gcard a{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:14px;font-weight:700;font-family:'Archivo',sans-serif;text-decoration:none;box-shadow:0 1px 0 rgba(17,18,20,.10),0 2px 6px rgba(17,18,20,.06);transition:transform .12s ease,box-shadow .18s ease,border-color .18s ease}
/* ---------- blog ---------- */
.bgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.bcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);position:relative;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;cursor:pointer}
.bcard .bcover{aspect-ratio:16/9;overflow:hidden;background:var(--tile)}
.bcard .bcover img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
/* Blog, game & free-resource cards — the same hover lift as product cards
   (2026-11-20): translateY(-4px), soft shadow, faint Warm Sunrise glow,
   image zoom. Gated to (hover:hover) so touch never gets a stuck hover. */
@media (hover:hover){
  .res-item:hover,.gcard:hover,.bcard:hover{transform:translateY(-4px);border-color:var(--ink);box-shadow:0 12px 28px rgba(17,18,20,.14),0 0 0 1px rgba(228,87,46,.18)}
  .res-item:hover .rthumb img,.gcard:hover .gthumb img,.bcard:hover .bcover img{transform:scale(1.03)}
}
.res-item:active,.gcard:active,.bcard:active{transform:translateY(-1px)}
/* Card action pills — Read / Play / View & download (2026-11-20): the card
   action text is now a compact tactile button with the same 3D edge, lift
   + glow and press-in as the ghost buttons. The pill lifts with the card
   on hover (the stretched .card-link sits above the text on blog/resource
   cards, so the lift is tied to the card hover); on game cards the pill
   is the link itself, so it lifts on its own hover and presses on click. */
@media (hover:hover){
  .bcard:hover .read,.res-item:hover .rbody .go,.gcard a:hover{transform:translateY(-2px);border-color:var(--ink);text-decoration:none;box-shadow:0 2px 0 rgba(17,18,20,.12),0 8px 18px rgba(17,18,20,.14),0 0 0 1px rgba(228,87,46,.18)}
}
.gcard a:active{transform:translateY(1px);box-shadow:0 1px 0 rgba(17,18,20,.08),0 1px 4px rgba(17,18,20,.06)}
.bcard .body{padding:16px;display:flex;flex-direction:column;gap:6px;flex:1}
.bcard .tag{font-family:'Archivo',sans-serif;font-size:13px;font-weight:700;color:var(--muted)}
.bcard h3{font-size:17px;line-height:1.3}
.bcard h3 a{color:var(--ink)}
.bcard p{font-size:14px;color:var(--muted)}
.bcard .read{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:14px;font-weight:700;font-family:'Archivo',sans-serif;text-decoration:none;box-shadow:0 1px 0 rgba(17,18,20,.10),0 2px 6px rgba(17,18,20,.06);transition:transform .12s ease,box-shadow .18s ease,border-color .18s ease}
/* ---------- about / faq / newsletter ---------- */
.about p{max-width:70ch;margin-bottom:12px}
.about ul{list-style:none;display:grid;gap:6px;margin:16px 0;max-width:70ch}
.about ul li::before{content:"✓ ";color:var(--ink);font-weight:700}
.faq details{border-bottom:1px solid var(--line);max-width:760px}
.faq summary{font-family:'Archivo',sans-serif;font-size:17px;font-weight:800;color:var(--ink);padding:16px 0;cursor:pointer;list-style:none;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;font-weight:400;color:var(--muted);flex:none}
.faq details[open ] summary::after{content:"–"}
.faq details p{padding:0 0 18px;font-size:16px;color:var(--ink);max-width:70ch}
.newsletter .nl-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px;max-width:640px;box-shadow:var(--shadow)}
.newsletter .nl-box h2{font-size:24px;margin-bottom:6px}
.newsletter .nl-box p{font-size:15px;color:var(--muted);margin-bottom:16px}
.nl-form{display:flex;gap:10px;flex-wrap:wrap}
.nl-form input{flex:1;min-width:220px;height:48px;border:1.5px solid var(--line);border-radius:9px;padding:0 14px;font-size:16px;font-family:inherit;color:var(--ink);background:#fff}
.nl-form input:focus{outline:none;border-color:var(--ink)}
.nl-note{font-size:13px;color:var(--muted);margin-top:12px}
/* ---------- footer ---------- */
footer.site{background:var(--ink);color:var(--foot);padding:48px 0 28px}
footer.site .fgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;margin-bottom:32px}
footer.site h3{color:#fff;font-size:19px;margin-bottom:12px}
footer.site h4{color:#fff;font-size:14px;margin-bottom:12px}
footer.site a{color:var(--foot);font-size:14px;display:block;padding:4px 0}
footer.site a:hover{color:#fff}
footer.site a:focus-visible{outline-color:#fff}
footer.site a.pin-link{display:inline-flex;align-items:center;gap:8px}
.pin-icon{width:19px;height:19px;flex:none}
footer.site p{font-size:14px}
footer.site .fine{border-top:1px solid #26282C;padding-top:20px;font-size:13px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
/* ---------- bottom tab bar (mobile only) ---------- */
.tabbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:70;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
/* Phase 2 (audit F-02): the bar was 70px @390 vs 59px @768 because the
   two-line labels ("Our Products", "Free resources") stretched it on the
   phone. The labels are shortened in the markup (Products / Resources)
   and the bar now has ONE fixed height at every width, with the links
   vertically centred — 64px + safe-area, matching the body's
   padding-bottom so no content hides under it. */
.tabbar{height:calc(64px + env(safe-area-inset-bottom))}
.tabbar nav{display:grid;grid-template-columns:repeat(6,1fr);height:100%}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-family:'Archivo',sans-serif;font-size:12px;line-height:1.15;text-align:center;font-weight:700;color:var(--muted);padding:6px 0;min-height:0;height:100%;position:relative}
.tabbar a .ti{font-size:24px;line-height:1}
.tabbar a.on{color:var(--ink)}
.tabbar a.on::before{content:"";position:absolute;top:0;left:22%;right:22%;height:3px;background:var(--ink)}
.tabbar a:hover{text-decoration:none}
body.tab-hidden .tabbar{display:none}
/* ---------- product detail modal ---------- */
.modal-back{position:fixed;inset:0;background:rgba(17,18,20,.55);z-index:90;display:none;align-items:flex-start;justify-content:center;padding:40px 16px;overflow-y:auto}
.modal-back.open{display:flex}
.modal{background:#fff;border-radius:var(--radius-lg);max-width:960px;width:100%;box-shadow:var(--shadow-lg);overflow:hidden;position:relative}
.modal .x{position:absolute;top:12px;right:12px;z-index:2;width:44px;height:44px;border-radius:50%;border:1.5px solid var(--line);background:#fff;font-size:20px;color:var(--ink)}
.mgrid{display:grid;grid-template-columns:380px 1fr}
.modal .mcover{background:var(--tile);min-height:420px;display:flex;align-items:center;justify-content:center;padding:24px}
.modal .mcover img{width:100%;height:100%;object-fit:contain;max-height:480px}
.modal .mbody{padding:28px}
.modal .mbody h2{font-size:27px;margin-bottom:6px}
.modal .fmt{font-family:'Archivo',sans-serif;font-size:14px;font-weight:700;color:var(--ink)}
.modal .mprice{font-family:'Archivo',sans-serif;font-size:26px;font-weight:800;color:var(--ink);margin:12px 0 2px}
.modal .mprice s{font-family:'Inter',sans-serif;font-size:15px;color:var(--muted);font-weight:400;margin-left:8px}
.modal .msave{color:var(--ink);font-weight:700;font-size:14px}
.modal .mbody p{font-size:15px;margin:10px 0}
.modal .mbody h3{font-size:16px;margin:18px 0 6px}
.modal .get{list-style:none;font-size:14px;display:grid;gap:5px;margin:6px 0}
.modal .get li::before{content:"✓ ";color:var(--ink);font-weight:700}
.modal .macts{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.modal .sample-note{font-size:14px;color:var(--muted);background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px}
.modal .rel{border-top:1px solid var(--line);padding:18px 28px 24px}
.modal .rel h3{font-size:16px;margin-bottom:10px}
.modal .rel .chips{margin-bottom:0}
.modal .rel .page-link{display:inline-block;margin-top:14px;font-size:14px;font-weight:700;font-family:'Archivo',sans-serif}
.msticky{display:none}
/* ---------- responsive ---------- */
@media (max-width:1024px){
  .pgrid,.res-grid{grid-template-columns:repeat(3,1fr)}
  .ggrid{grid-template-columns:repeat(3,1fr)}
  .bgrid{grid-template-columns:repeat(3,1fr)}
  .hero .wrap{gap:32px}
  .hero h1{font-size:48px}
  .sec-head h2{font-size:28px}
  .wrap{padding:0 24px}
  .hd{padding:0 24px}
  .dept .wrap{padding:0 18px}
}
@media (max-width:820px){
  .hero .wrap{grid-template-columns:1fr;gap:28px}
  .hero{padding:36px 0 44px}
  /* Hero carousel first on mobile (2026-11-20, preview): the visual showcase
     sits above the headline on touchscreens, so the first screen is visual,
     not text-only. DOM order is unchanged (headline first for SEO/readers). */
  .hero-carousel{order:-1}
  .taster{grid-template-columns:1fr}
  .modal .mgrid{grid-template-columns:1fr}
  .modal .mcover{min-height:240px}
  .modal .mcover img{max-height:280px}
  footer.site .fgrid{grid-template-columns:1fr 1fr}
  .pgrid,.res-grid,.bgrid{grid-template-columns:repeat(2,1fr)}
  .ggrid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){
  .tabbar{display:block}
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  section.block{padding:48px 0}
}
@media (max-width:640px){
  section.block{scroll-margin-top:64px}
  .wrap{padding:0 16px}
  .hd{padding:0 16px;height:56px;gap:10px}
  .logo{font-size:20px}
  .logo-mark{height:34px}
  .search{display:none}
  .search-icon-btn{display:inline-flex}
  .dept{top:56px}
  .dept .wrap{padding:0 10px}
  .hero h1{font-size:26px;margin-bottom:6px}
  .hero{padding:8px 0 16px}
  .hero p.lede{font-size:16px;line-height:1.45;margin-bottom:10px}
  .hero .trust{margin-top:8px;font-size:13px;line-height:1.4}
  .hero .cta-row .btn{flex:1 1 0;padding:10px 12px;font-size:14px;white-space:nowrap}
  .spot{padding:10px 12px;gap:10px}
  .spot .cover{width:96px}
  /* Carousel covers on mobile (Phase 2, 2026-11-22): the showcase visual
     follows the FIX 2b vertical rule below (full width, max 200px) — the
     old fixed 140px made the cover smaller on mobile than the slide it
     sits in and froze it at one size on every width (audit C-01). */
  .hero-carousel .spot .cover{width:100%;max-width:var(--cover-hero-w)}
  .spot .tag{margin-bottom:2px}
  .spot .smeta{margin-bottom:6px}
  .spot .ssave{margin:2px 0 4px}
  .spot h2{font-size:18px}
  .spot .sprice{font-size:18px}
  .sec-head h2{font-size:24px}
  .pgrid{grid-template-columns:repeat(2,1fr);gap:12px}
  .card .body{padding:8px 10px;gap:4px}
  .card h3{font-size:16px;line-height:1.2}
  .card .price{font-size:18px;line-height:1.2}
  .card .actions .btn{min-height:48px}
  .res-grid,.bgrid{grid-template-columns:repeat(2,1fr);gap:12px}
  /* Games use the same two-column grid on mobile — no horizontal slider */
  .ggrid{grid-template-columns:repeat(2,1fr);gap:12px}
  .taster{padding:20px}
  .modal-back{padding:0;align-items:stretch}
  .modal{border-radius:0;min-height:100dvh;display:flex;flex-direction:column}
  .modal .mbody{padding:20px 20px 24px}
  .modal .macts .btn-accent{display:none}
  .msticky{display:flex;position:sticky;bottom:0;z-index:3;background:#fff;border-top:1px solid var(--line);padding:10px 16px calc(10px + env(safe-area-inset-bottom));gap:12px;align-items:center;justify-content:space-between}
  .msticky .msticky-price{font-family:'Archivo',sans-serif;font-size:20px;font-weight:800;color:var(--ink)}
  .msticky .msticky-price s{font-family:'Inter',sans-serif;font-size:13px;color:var(--muted);font-weight:400;margin-left:6px}
  .msticky .btn{min-height:56px;flex:1;max-width:260px}
  footer.site .fgrid{grid-template-columns:1fr}
}
@media (max-width:380px){
  .hero h1{font-size:24px}
  .chip{padding:9px 13px}
  .spot .cover{width:88px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important;animation:none !important}
}

/* ================= Round 2 additions (same tokens, same voice) ================= */
/* Breadcrumbs */
.crumbs{font-size:13px;color:var(--muted);margin:0 0 10px}
.crumbs a{display:inline-block;color:var(--muted);transition:color .16s ease,transform .12s ease}
.crumbs a:hover{color:var(--ink)}
/* Breadcrumb hover lift (2026-11-20): crumbs lift 1px + go ink on hover,
   gated to hover-capable devices; a press returns them to rest. */
@media (hover:hover){
  .crumbs a:hover{transform:translateY(-1px)}
}
.crumbs a:active{transform:translateY(0)}
.crumbs .sep{margin:0 6px}
/* Listing page head */
.page-head{padding:34px 0 6px}
.page-head h1{font-family:'Archivo',sans-serif;font-weight:900;font-size:34px;line-height:1.05;letter-spacing:-.02em}
.page-head .lede{margin-top:10px;max-width:68ch}
.page-head .cat-note{margin-top:14px;color:var(--muted);font-size:15px;max-width:68ch}
/* Desktop department flyout (only when a department has 2+ live categories) */
.dept .has-fly{position:relative}
.flyout{display:none;position:absolute;top:100%;left:0;z-index:75;background:var(--surface);border:1px solid var(--line);border-radius:0 0 10px 10px;box-shadow:var(--shadow-lg);padding:10px 0;min-width:230px}
.flyout a{display:flex;color:var(--ink);font-size:15px;font-weight:700;padding:11px 18px;min-height:44px;align-items:center;white-space:nowrap;transition:background .16s ease,transform .16s ease}
.flyout a:hover{background:var(--tile);color:var(--ink);text-decoration:none}
/* Dropdown selected state (2026-11-20): the current category in a header
   flyout was unmarked — now it is solid ink with white text, unmistakable.
   It comes after :hover so the selected state wins over the hover tint. */
.flyout a.on{background:var(--ink);color:#fff}
.flyout a.on:hover{background:#000;color:#fff}
@media (hover:hover){
  .flyout a:hover{transform:translateX(3px)}
}
.flyout a.viewall{color:var(--muted);border-top:1px solid var(--line)}
.dept .has-fly:hover .flyout,.dept .has-fly:focus-within .flyout{display:block;animation:fly-in .16s ease}
@keyframes fly-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
/* Facet bar + active filters */
.facet-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:6px 0 16px}
.facet-bar label{font-family:'Archivo',sans-serif;font-weight:700;font-size:14px;color:var(--muted);display:inline-flex;align-items:center;gap:8px}
.facet-bar select{font:inherit;font-size:15px;padding:10px 12px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.active-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.active-filters:empty{display:none}
.af-chip{display:inline-flex;align-items:center;gap:8px;font-family:'Archivo',sans-serif;font-weight:700;font-size:14px;background:var(--ink);color:var(--paper);border-radius:999px;padding:8px 8px 8px 14px;min-height:36px}
.af-chip button{background:none;border:0;color:var(--paper);font-size:16px;line-height:1;cursor:pointer;min-width:28px;min-height:28px;border-radius:50%}
.af-chip button:hover{background:rgba(255,255,255,.2)}
.af-chip button:focus-visible{outline-color:#fff}
/* Pagination + load more */
.pager{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:28px 0 8px}
.pager a,.pager span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-family:'Archivo',sans-serif;font-weight:700;font-size:15px;color:var(--ink);background:#fff}
.pager a:hover{border-color:var(--ink);text-decoration:none}
.pager span.cur{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.pager span.dis{color:var(--muted);border-color:var(--line);background:var(--paper)}
.loadmore-wrap{text-align:center;margin:24px 0 8px}
/* Mobile filter sheet: the facet bar itself becomes a bottom sheet */
.filters-btn{display:none}
.sheet-apply{display:none}
/* Search results page */
.search-page .sres{margin-top:8px}
.sres-group{margin:22px 0}
.sres-group h2{font-size:20px;margin-bottom:10px}
.sres-item{padding:12px 0;border-bottom:1px solid var(--line)}
.sres-item h3{font-size:17px}
.sres-item p{color:var(--muted);font-size:15px;margin-top:4px}
.sres-item .tag{font-size:13px}
/* Detail pages (book / resource / article / game / legal) */
.detail{padding:30px 0 10px}
.detail .dgrid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:36px;align-items:start}
/* FIX #4 (2026-11-22) — detail-page horizontal overflow / zoom-out on mobile.
   ROOT CAUSE (measured at 390px): the "You may also like" / "More in …"
   .chips row inside the second .dgrid column is forced to flex-wrap:nowrap
   with flex:none chips at ≤640px, so its min-content width is the full
   unwrapped row (up to ~3100px). The ≤820px rule used grid-template-columns:1fr
   (auto minimum = min-content), so the single track expanded to the chips'
   min-content — 735px on the Reset Kit page, 970px on ABC, up to 1105px on
   free-resource details — and the phone zoomed out to fit, leaving the
   content on the left half with a white gap on the right. Hiding the .chips
   row alone restores 390px; minmax(0,1fr) alone restores 390px. Both are
   applied here, plus min-width:0 on the grid items and max-width:100% on
   the .chips row so it scrolls internally instead of expanding its parent.
   Sweep of all 139 detail pages: 86 overflowed before this fix (all 9 books,
   all 8 shop details, 69 free-resource details); blog (39) and games (11)
   were clean. The html/body overflow-x rule below is a safety net only,
   never a substitute for the grid fix above. PHASE 2 (2026-11-22): the
   safety net was overflow-x:hidden, which broke the sticky header on ALL
   pages at ALL widths (header top −800px after scrolling 800px — hidden
   makes html/body a scroll container, and position:sticky stops working).
   Reworked to overflow-x:clip — clip prevents horizontal overflow WITHOUT
   creating a scroll container, so sticky keeps working (probe-verified:
   header top = 0 after scrolling 800px on home / Reset Kit / Shop at 390
   and 1280, scrollWidth still == viewport). If clip ever misbehaves, the
   grid fix alone holds 390px — the net can be dropped outright. */
.detail .dgrid>*{min-width:0}
.detail .chips{max-width:100%}
html,body{max-width:100%;overflow-x:clip}
@media (max-width:640px){
  /* Detail CTAs stack full-width on mobile: easy to tap, never wider than
     the screen. The Gumroad button is already vibrant yellow #FACC15 on
     mobile (existing .btn-accent override); no colour change here. */
  .detail .dbuy{flex-direction:column;align-items:stretch}
  .detail .dbuy .btn{width:100%}
}
.detail .dcover img{width:100%;height:auto;display:block;border-radius:var(--radius-lg);border:1px solid var(--line)}
.detail h1{font-family:'Archivo',sans-serif;font-weight:900;font-size:30px;line-height:1.1;letter-spacing:-.02em}
.detail .dmeta{color:var(--muted);margin-top:8px}
.detail .dprice{font-family:'Archivo',sans-serif;font-weight:800;font-size:22px;margin:16px 0 4px}
.detail .dprice s{font-family:'Inter',sans-serif;font-weight:400;font-size:15px;color:var(--muted);margin-left:8px}
.detail .dsave{color:var(--muted);font-size:15px}
.detail .dbuy{margin:18px 0 6px;display:flex;flex-wrap:wrap;gap:10px}
.detail .dnote{font-size:14px;color:var(--muted);margin-top:10px}
/* Buyer-promise tile — kit page + About page. Wording mirrors the refund
   policy exactly: defective/corrupt files and accidental duplicates are
   covered; digital downloads are otherwise non-refundable. */
.guarantee{background:var(--tile);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;font-size:14px;color:var(--ink);margin:14px 0 0}
.detail h2{font-family:'Archivo',sans-serif;font-weight:800;font-size:22px;margin:26px 0 10px}
.detail ul.tight{margin:0 0 8px 20px}
.detail ul.tight li{margin-bottom:6px}
.article-body{max-width:72ch}
.article-body h2{font-family:'Archivo',sans-serif;font-weight:800;font-size:24px;line-height:1.2;margin:30px 0 12px}
.article-body h3{font-family:'Archivo',sans-serif;font-weight:800;font-size:19px;margin:24px 0 10px}
.article-body p{margin:0 0 14px}
.article-body ul,.article-body ol{margin:0 0 14px 22px}
.article-body li{margin-bottom:6px}
.article-body img{max-width:100%;height:auto;border-radius:var(--radius)}
.article-body .breadcrumb{font-size:13px;color:var(--muted);margin-bottom:18px}
.article-body .breadcrumb a{color:var(--muted)}
.legal-body{max-width:72ch}
.legal-body h2{font-family:'Archivo',sans-serif;font-weight:800;font-size:22px;margin:26px 0 10px}
.legal-body h3{font-family:'Archivo',sans-serif;font-weight:800;font-size:18px;margin:20px 0 8px}
.legal-body p{margin:0 0 12px}
.legal-body ul{margin:0 0 12px 22px}
.legal-body li{margin-bottom:6px}
/* Coming-soon note under the shop grid */
.coming-note{margin-top:18px;color:var(--muted);font-size:14px}
/* Category intro + moved content */
.cat-intro{max-width:68ch;color:var(--muted);margin-top:10px}
.moved-note{margin-top:18px}
/* "New" badge uses the existing black .badge pill; position it like other badges */
.card .cover .badge.new{left:10px}
/* Count line is hidden unless a filter or search is active (showCounts off) */
.count[hidden]{display:none}
/* Footer tagline */
.fine .tagline{display:block;margin-top:6px}
@media (max-width:820px){
  .detail .dgrid{grid-template-columns:minmax(0,1fr);gap:20px}
  /* FIX #4 — cover card: a clean, centred, well-proportioned card, 260px on
     phones/tablets, rounded corners (base rule) + soft shadow, instead of a
     tiny shrunken thumbnail. Applies to every detail template (book, shop,
     free-resource): the cover is a card, never full-bleed, never wider than
     the screen. Phase 2 (audit G-01): width:100% makes the width explicit,
     so the card holds 260px even if its image fails to load (margin:0 auto
     alone let the card collapse to its content). */
  .detail .dcover{width:100%;max-width:var(--cover-detail-w);margin:0 auto}
  .detail .dcover img{box-shadow:0 10px 28px rgba(17,18,20,.16)}
  /* Kit page only: the cover is 260px like every other detail cover (FIX #4,
     owner brief 22 Nov 2026), replacing the 140px thumbnail from the Nov 2026
     bounce fix. Trade-off, stated plainly: the taller cover pushes the buy
     buttons below the first viewport on the kit page; the owner explicitly
     asked for the larger, well-proportioned cover instead of the tiny
     thumbnail. The section padding, detail padding and breadcrumb are still
     trimmed on this page only. */
  .detail.kit-hero .dcover{width:100%;max-width:var(--cover-detail-w);margin:0 auto}
  .detail.kit-hero{padding-top:8px}
  .detail.kit-hero .dbuy{margin-top:12px}
  .block.kit-top{padding-top:20px}
  .block.kit-top .crumbs{display:none}
  .page-head h1{font-size:30px}
}
@media (max-width:640px){
  .filters-btn{display:inline-flex;margin-bottom:14px}
  .facet-bar{display:none}
  .facet-bar.open{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;background:#fff;border-top:1px solid var(--line);border-radius:16px 16px 0 0;box-shadow:var(--shadow-lg);padding:18px 20px calc(18px + env(safe-area-inset-bottom));max-height:82dvh;overflow-y:auto;flex-direction:column;align-items:stretch;margin:0}
  .facet-bar.open label{justify-content:space-between}
  .facet-bar.open .sheet-apply{display:block;width:100%;margin-top:14px}
  .page-head{padding:24px 0 4px}
  .page-head h1{font-size:28px}
}
/* Dept flyout needs visible overflow on desktop (bar only scrolls on small screens) */
@media (min-width:1024px){.dept .wrap{overflow:visible}}
/* Phase 2 (audit F-03): the dept bar is a horizontal scroll strip below
   1024px — the 4th tab was cut mid-label ("Fr…") with no hint that more
   tabs exist. A right-edge fade shows there is more to scroll; site.js
   also scrolls the active tab into view on load. */
@media (max-width:1023px){
  .dept .wrap{-webkit-mask-image:linear-gradient(to right,#000 88%,transparent 100%);mask-image:linear-gradient(to right,#000 88%,transparent 100%)}
}
/* Mobile: dropdowns are disabled where the dept bar scrolls (below 1024px).
   Tapping a parent link navigates directly instead of opening its flyout:
   an open flyout extends the bar's scrollable area and shifts the bar, so
   the tapped link slides out from under the finger and the tap is lost
   (seen on Blog at 390px). Desktop keeps the hover/focus flyout. */
@media (max-width:1023px){
  .dept .has-fly:hover .flyout,.dept .has-fly:focus-within .flyout{display:none}
}
/* Print: resource pages print the content only */
@media print{
  header.site,.dept,.tabbar,footer.site,.search-overlay,.modal-back,.skip-link,.filters-btn,.facet-bar,.pager,.loadmore-wrap{display:none !important}
  body{background:#fff}
  .detail{padding:0}
}

/* Article tables (AI Tools & Online Business articles use comparison/cost
   tables; no earlier article used <table>). Scoped to .article-body only. */
.article-body table{display:block;overflow-x:auto;width:100%;border-collapse:collapse;margin:0 0 14px;font-size:15px}
.article-body th,.article-body td{padding:8px 10px;border:1px solid var(--line);text-align:left;vertical-align:top}
.article-body th{background:var(--tile);font-family:'Archivo',sans-serif;font-weight:800}

/* ---------- Wallpapers Hub (2026-11-20) ---------- */
/* Dedicated Free Resources search bar — separate from the header search. */
.wp-search{display:flex;gap:10px;margin:20px 0 4px}
.wp-search input{flex:1;min-width:0;height:52px;padding:0 16px;font-size:16px;font-family:inherit;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:9px;transition:border-color .18s ease,box-shadow .18s ease}
.wp-search input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 1px rgba(228,87,46,.35),0 4px 14px rgba(17,18,20,.10)}
.wp-search input::placeholder{color:var(--muted)}
.wp-search .btn{min-height:52px}
/* Board / sub-category grid + cards (1:1 square covers — browse by image). */
.wp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:20px}
.wp-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);position:relative;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;cursor:pointer}
.wp-cover{aspect-ratio:var(--ar-square);background:var(--tile);overflow:hidden;flex:none}
.wp-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
/* Phase 2 portrait variant (audit B-01): tier covers whose artwork is a
   portrait page (colouring tiers, 2550×3300) get a 3/4 frame with contain
   on the cream stage — 100% visible instead of ~23% cropped by the
   square cover frame. Wallpaper board covers keep the square frame. */
.wp-cover--portrait{aspect-ratio:var(--cover-tier-ar);background:#F8F5EE}
.wp-cover--portrait img{object-fit:contain}
.wp-body{padding:16px;display:flex;flex-direction:column;gap:4px;flex:1}
.wp-body h3{font-size:17px;line-height:1.3}
.wp-count{font-size:14px;color:var(--muted)}
/* Wallpaper cards (9:16 portrait thumbs, View + Download side by side). */
.wp-item{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);position:relative;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.wp-thumb{aspect-ratio:9/16;background:var(--tile);overflow:hidden;flex:none}
.wp-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.wp-item .wp-body{padding:14px 16px 10px}
.wp-item h3{font-size:16px;line-height:1.3}
.wp-meta{font-size:13px;color:var(--muted)}
.wp-actions{display:flex;gap:10px;padding:0 16px 16px}
.wp-actions .btn{flex:1;min-width:0;padding:12px 8px;font-size:14px;white-space:nowrap}
.wp-download[disabled]{opacity:.55;cursor:not-allowed}
.wp-coming{display:inline-block;font-size:12px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:2px 8px;margin-left:6px;vertical-align:middle}
/* Desktop hover: same lift + glow + image zoom as resource cards. */
@media (hover:hover){
  .wp-card:hover,.wp-item:hover{transform:translateY(-4px);border-color:var(--ink);box-shadow:0 12px 28px rgba(17,18,20,.14),0 0 0 1px rgba(228,87,46,.18)}
  .wp-card:hover .wp-cover img,.wp-item:hover .wp-thumb img{transform:scale(1.03)}
}
.wp-card:active,.wp-item:active{transform:translateY(-1px)}
/* Search results + section titles. */
.wp-section-title{font-size:22px;margin:32px 0 4px}
.wp-results{margin-top:20px}
.wp-results h2{font-size:20px;margin-bottom:12px}
.wp-noresults{color:var(--muted);margin:12px 0}
/* Lightbox (View = full-resolution preview). */
.wp-lightbox{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;background:rgba(17,18,20,.88);padding:20px}
.wp-lightbox[hidden]{display:none}
.wp-lb-fig{max-width:min(92vw,560px);max-height:88vh;display:flex;flex-direction:column;gap:12px}
.wp-lb-fig img{max-width:100%;max-height:72vh;object-fit:contain;border-radius:10px;background:#000}
.wp-lb-cap{color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.wp-lb-cap h3{color:#fff;font-size:17px}
.wp-lb-cap .btn{flex:none}
.wp-lb-close{position:absolute;top:14px;right:14px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(17,18,20,.6);color:#fff;font-size:20px;cursor:pointer}
.wp-lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(17,18,20,.6);color:#fff;font-size:22px;cursor:pointer}
.wp-lb-prev{left:14px}
.wp-lb-next{right:14px}
.wp-lb-note{color:rgba(255,255,255,.75);font-size:14px}
/* Responsive: same column steps as the resource grid. */
@media (max-width:1024px){
  .wp-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:820px){
  .wp-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){
  .wp-grid{gap:12px}
  .wp-search{flex-direction:column}
  .wp-search .btn{width:100%}
}
@media (max-width:640px){
  .wp-actions .btn{font-size:13px;padding:10px 6px}
}

/* Colouring Pages (2026-11-21) — mirrors the Wallpapers Hub cards.
   Tier covers reuse the first page's PNG at 1:1; page thumbs are Letter
   portrait (8.5:11). Card actions are two rows: View full-width, then
   Download PDF + Download PNG side by side — clean on mobile and desktop. */
.cl-thumb{aspect-ratio:8.5/11}
.wp-actions.cl-actions{padding:0 16px 10px}
.wp-actions.cl-actions-dl{padding:0 16px 16px}
/* The stretched .card-link (z-index:1) covers the whole card for navigation;
   the action rows must sit above it or the View/Download buttons are unclickable. */
.cl-item .wp-actions{position:relative;z-index:2}
.wp-lb-actions{display:flex;gap:10px;flex-wrap:wrap}
.cl-detail{display:grid;grid-template-columns:minmax(0,420px) 1fr;gap:28px;align-items:start;margin-top:20px}
.cl-detail-preview img{width:100%;height:auto;border-radius:var(--radius);box-shadow:var(--shadow);display:block}
.cl-detail-body{display:flex;flex-direction:column;gap:14px}
.cl-detail-body .wp-actions{padding:0}
@media (max-width:820px){
  .cl-detail{grid-template-columns:1fr;gap:20px}
}

/* Mobile 3D depth (2026-11-20, preview) — on touchscreens there is no :hover,
   so cards and the primary Buy button carry a subtle resting elevation, and
   taps get a crisp press/scale. Desktop hover-gated rules are untouched;
   Affiliate Buy buttons ([data-affiliate]) are excluded, as before. */

/* Book detail sample pages (Helpers 3-5 + Christmas, 21 Nov 2026) */
/* Phase 2 fix (22 Nov): the Reset Kit samples sit OUTSIDE its .detail hero
   container, so the old `.detail .samples` selector never matched them and
   they stacked 1-column. Unscoped to plain `.samples` — used on 3 book
   pages only, all of which want this grid. */
.samples{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0}
.samples img{width:100%;height:auto;display:block;border-radius:var(--radius);border:1px solid var(--line)}
/* Phase 2 (audit G-03): the Reset Kit "Look inside" samples used page-inline
   CSS and rendered 1-column on mobile; they now use this shared grid, so
   every book's samples are 3-col desktop / 2-col mobile. Figures keep
   their captions via these shared rules. */
.samples figure{margin:0}
.samples figcaption{font-size:14px;color:var(--muted);margin-top:8px;text-align:center}
@media (max-width:640px){.samples{grid-template-columns:repeat(2,1fr)}}
.btn[disabled]{opacity:.6;cursor:not-allowed}

@media (hover:none){
  .card:not(.soon),.res-item,.gcard,.bcard,.spot,.wp-card,.wp-item,.cl-item{box-shadow:0 6px 16px rgba(17,18,20,.10),0 0 0 1px rgba(228,87,46,.10)}
  .btn-accent{box-shadow:0 2px 0 #000,0 4px 10px rgba(17,18,20,.18)}
  .card:not(.soon):active,.res-item:active,.gcard:active,.bcard:active,.wp-card:active,.wp-item:active,.cl-item:active{transform:translateY(1px) scale(.98)}
  .btn-ghost:active,.btn-ink:not([data-affiliate]):active,.btn-primary:active,.btn-outline:active,.chip:active{transform:translateY(1px) scale(.98)}
  .logo:active{transform:translateY(0) scale(.98)}
}

/* InVideo AI logo is white-on-transparent — dark cover so it stays visible. */
article[data-id="invideo-ai"] .cover{background:#101828}

.af-hero-thumbs{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:4px}
.af-hero-thumb{display:block;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#fff}
.af-hero-thumb img{display:block;width:100%;height:140px;object-fit:contain;background:#fff}
.af-hero-thumb:hover img{transform:scale(1.03)}
.af-hero-thumb img{transition:transform .25s ease}
@media (max-width:640px){.af-hero-thumbs{grid-template-columns:repeat(2,1fr);gap:10px}.af-hero-thumb img{height:110px}}

.sub-browse .sub-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px}
.sub-browse .sub-cat{font-family:'Archivo',sans-serif;font-weight:800;font-size:14px;min-width:110px;color:var(--ink)}
.sub-browse .chip{text-decoration:none}
@media (max-width:640px){.sub-browse .sub-cat{min-width:100%;margin-bottom:2px}}

/* Contextual sub-category row on the Free Resources index: appears under
   the main category chips only when a category is tapped. */
.sub-cat-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 2px;flex-basis:100%}
.sub-cat-row[hidden]{display:none}
.sub-cat-row .sub-cat-label{font-size:13px;font-weight:700;color:var(--muted);margin-right:2px}

/* ================= Free Resources redesign (owner screenshot, 21 Nov 2026) =================
   Scoped to body.fr-redesign (the /free-resources/ index ONLY) — no other page changes.
   Premium Etsy-grade mobile aesthetic: cream background, single-row scrollable
   category bars, full-bleed 2-column grid, no letterboxing. */
body.fr-redesign{background:#FCFAF6}
body.fr-redesign .page-head{padding:38px 0 10px}
body.fr-redesign .page-head h1{color:#111214}
body.fr-redesign .lede{color:#111214;line-height:1.6;margin-bottom:26px}
/* The listing rows sit outside .wrap in this page's markup, so give them the
   same centred 1200px column as the heading (otherwise the filter area sits
   flush to the viewport edge while the heading is centred). Padding matches
   .wrap at each breakpoint. */
body.fr-redesign .rail,
body.fr-redesign .facet-bar,
body.fr-redesign .active-filters,
body.fr-redesign .count,
body.fr-redesign .res-grid,
body.fr-redesign .empty,
body.fr-redesign .pager,
body.fr-redesign .want-more{max-width:1200px;margin-left:auto;margin-right:auto;padding-left:32px;padding-right:32px}
@media (max-width:1024px){
  body.fr-redesign .rail,
  body.fr-redesign .facet-bar,
  body.fr-redesign .active-filters,
  body.fr-redesign .count,
  body.fr-redesign .res-grid,
  body.fr-redesign .empty,
  body.fr-redesign .pager,
  body.fr-redesign .want-more{padding-left:24px;padding-right:24px}
}
@media (max-width:640px){
  body.fr-redesign .rail,
  body.fr-redesign .facet-bar,
  body.fr-redesign .active-filters,
  body.fr-redesign .count,
  body.fr-redesign .res-grid,
  body.fr-redesign .empty,
  body.fr-redesign .pager,
  body.fr-redesign .want-more{padding-left:16px;padding-right:16px}
}
/* Listing grid: 2 columns on every viewport (matches the reference image) */
body.fr-redesign .res-grid{grid-template-columns:repeat(2,1fr)}
/* The rail stacks full-width (no flex wrap) so each row is its own line */
body.fr-redesign .rail{display:block;margin-bottom:20px}
body.fr-redesign .fr-cat-head{font-family:'Archivo',sans-serif;font-weight:800;font-size:21px;line-height:1.2;letter-spacing:-.01em;color:#111214;margin:26px 0 12px}
body.fr-redesign .fr-cat-head:first-child{margin-top:6px}
body.fr-redesign .fr-sub-head{margin-top:22px}
/* Category row: ONE single horizontally scrollable line, never wraps */
body.fr-redesign #listingChips{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:10px;align-items:center;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
body.fr-redesign #listingChips::-webkit-scrollbar{display:none}
body.fr-redesign #listingChips .chip{flex:none;scroll-snap-align:start;padding:11px 18px;font-size:15px}
body.fr-redesign #listingChips .chip[aria-pressed="true"]{background:#111214;color:#fff;border-color:#111214}
/* Sub-category row: same single-line scroll treatment */
body.fr-redesign .sub-cat-row{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:10px;align-items:center;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;margin:0}
body.fr-redesign .sub-cat-row::-webkit-scrollbar{display:none}
body.fr-redesign .sub-cat-row[hidden]{display:none}
body.fr-redesign .sub-cat-row .chip{flex:none;scroll-snap-align:start;padding:11px 18px;font-size:15px}
body.fr-redesign .sub-cat-row .chip[aria-pressed="true"]{background:#111214;color:#fff;border-color:#111214}
/* Controls row: contextual breadcrumb on its own line, Sort + Filters together below */
body.fr-redesign .fr-controls{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:18px 0 4px}
body.fr-redesign .fr-crumbs{font-family:'Archivo',sans-serif;font-size:16px;font-weight:700;color:#111214}
body.fr-redesign .fr-crumbs[hidden]{display:none}
body.fr-redesign .fr-sort-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
body.fr-redesign .fr-controls .sort{font-family:'Archivo',sans-serif;font-size:15px;font-weight:700;color:#111214}
body.fr-redesign .fr-controls .filters-btn{margin-left:0;margin-bottom:0}
/* Listing grid: generous breathing room; 2 cols on mobile (existing), 4 on desktop */
body.fr-redesign .res-grid{gap:20px;margin-top:18px}
body.fr-redesign .res-item{background:#fff;border:1px solid #E7E3DA;border-radius:16px;box-shadow:0 2px 10px rgba(17,18,20,.07)}
body.fr-redesign .res-item .rthumb{aspect-ratio:4/3;background:#fff}
body.fr-redesign .res-item .rthumb img{object-fit:cover}
body.fr-redesign .res-item .rbody{padding:18px 18px 20px;gap:8px}
body.fr-redesign .res-item .tag{font-size:13px;font-weight:700;color:#111214}
body.fr-redesign .res-item h3{font-size:19px;line-height:1.25;font-weight:800;color:#111214}
body.fr-redesign .res-item .rbody .go{background:#F6F1E7;border-color:#E7E3DA;color:#111214;font-size:14px;font-weight:700;padding:9px 15px;border-radius:999px;box-shadow:0 1px 2px rgba(17,18,20,.06)}
body.fr-redesign .res-item .rbody .go:hover{border-color:#111214}
body.fr-redesign .count{color:#111214}
body.fr-redesign .active-filters{margin-top:6px;margin-bottom:2px}
@media (max-width:640px){
  body.fr-redesign .res-grid{gap:14px}
  body.fr-redesign .res-item .rbody{padding:14px 14px 16px}
  body.fr-redesign .res-item h3{font-size:17px}
  body.fr-redesign .fr-cat-head{font-size:19px}
  body.fr-redesign .page-head h1{font-size:30px}
}

/* ============ FR Phase 2 — Free Resources redesign (owner reference image) ============
   Scoped to body.fr-phase2 (the /free-resources/ index ONLY) — no other page changes.
   Appended AFTER the fr-redesign section so equal-specificity rules win. */
body.fr-phase2{background:#FCFAF6}
/* --- Hero banner --- */
body.fr-phase2 .fr-hero{display:flex;align-items:stretch;gap:12px;margin:14px 0 14px;padding:18px 0 18px 18px;border-radius:20px;background:linear-gradient(115deg,#2A0E5C 0%,#4B1E8E 48%,#6D28D9 100%);color:#fff;overflow:hidden;position:relative}
body.fr-phase2 .fr-hero-copy{flex:1 1 auto;min-width:0;position:relative;z-index:2;align-self:center}
body.fr-phase2 .fr-hero h1{font-size:26px;line-height:1.08;margin:0 0 8px;color:#fff;font-weight:800;letter-spacing:-.01em}
body.fr-phase2 .fr-hero-y{color:#FFD60A;position:relative;display:inline-block;white-space:nowrap}
body.fr-phase2 .fr-hero-swoosh{position:absolute;left:-2px;bottom:-5px;width:calc(100% + 4px);height:9px}
body.fr-phase2 .fr-hero p{color:rgba(255,255,255,.93);font-size:13px;line-height:1.55;margin:0}
body.fr-phase2 .fr-hero p strong{color:#FFD60A;font-weight:700}
body.fr-phase2 .fr-hero-art{flex:0 0 150px;width:150px;aspect-ratio:3/2;position:relative;align-self:center}
body.fr-phase2 .fr-hero-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 26%);mask-image:linear-gradient(to right,transparent 0,#000 26%)}
body.fr-phase2 .fr-hero-dl{position:absolute;right:10px;bottom:8px;width:42px;height:42px;border-radius:50%;background:#7C3AED;border:3px solid rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.35);z-index:3}
/* --- Pill search --- */
body.fr-phase2 .fr-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #E4E2DC;border-radius:999px;padding:6px 6px 6px 16px;margin:0 0 8px;box-shadow:0 2px 10px rgba(17,18,20,.06)}
body.fr-phase2 .fr-search-ic{flex:0 0 auto;display:flex;color:#111214}
body.fr-phase2 .fr-search input{flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:#111214}
body.fr-phase2 .fr-search input::placeholder{color:#8A8D93}
body.fr-phase2 .fr-search button{flex:0 0 auto;border:0;border-radius:999px;background:#7C3AED;color:#fff;font-family:inherit;font-weight:700;font-size:15px;padding:11px 18px;cursor:pointer}
body.fr-phase2 .fr-search button:hover{background:#6D28D9}
/* --- Section headings + View All --- */
body.fr-phase2 .fr-sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 14px}
body.fr-phase2 .fr-cat-head{margin:0;font-size:20px}
body.fr-phase2 .fr-cat-head:first-child{margin-top:0}
body.fr-phase2 .fr-cat-head .fr-h-ic{display:inline-flex;flex:0 0 auto}
body.fr-phase2 .fr-view-all{border:0;background:none;color:#7C3AED;font-family:inherit;font-weight:700;font-size:14px;cursor:pointer;padding:4px 0;white-space:nowrap}
body.fr-phase2 .fr-view-all:hover{text-decoration:underline}
/* --- Browse Categories: pastel icon tiles (5x2 mobile, single row desktop) --- */
body.fr-phase2 #listingChips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;overflow:visible;padding-bottom:0}
body.fr-phase2 #listingChips .chip{flex:none;padding:0}
body.fr-phase2 #listingChips .cat-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:14px 4px 12px;border-radius:16px;border:1.5px solid transparent;background:var(--tile-bg,#EDE9FE);box-shadow:0 1px 3px rgba(17,18,20,.05);cursor:pointer;min-height:92px;min-width:0}
body.fr-phase2 #listingChips .cat-tile[data-filter="all"]{--tile-bg:#EDE9FE}
body.fr-phase2 #listingChips .cat-tile[data-filter="coloring"]{--tile-bg:#FCE7F3}
body.fr-phase2 #listingChips .cat-tile[data-filter="learn-to-draw"]{--tile-bg:#D1FAE5}
body.fr-phase2 #listingChips .cat-tile[data-filter="worksheets"]{--tile-bg:#DBEAFE}
body.fr-phase2 #listingChips .cat-tile[data-filter="planners"]{--tile-bg:#FFEDD5}
body.fr-phase2 #listingChips .cat-tile[data-filter="printables"]{--tile-bg:#ECFCCB}
body.fr-phase2 #listingChips .cat-tile[data-filter="wallpapers"]{--tile-bg:#E0E7FF}
body.fr-phase2 #listingChips .cat-tile[data-filter="ai"]{--tile-bg:#CFFAFE}
body.fr-phase2 #listingChips .cat-tile[data-filter="stickers"]{--tile-bg:#FEF3C7}
body.fr-phase2 #listingChips .cat-tile[data-filter="games"]{--tile-bg:#F3E8FF}
body.fr-phase2 #listingChips .cat-tile .cat-ic{position:relative;width:26px;height:26px;display:flex;flex:0 0 auto}
body.fr-phase2 #listingChips .cat-tile .cat-ic svg{width:100%;height:100%}
body.fr-phase2 #listingChips .cat-tile[data-filter="all"] .cat-ic{color:#7C3AED}
body.fr-phase2 #listingChips .cat-tile[data-filter="coloring"] .cat-ic{color:#EC4899}
body.fr-phase2 #listingChips .cat-tile[data-filter="learn-to-draw"] .cat-ic{color:#0E9F7A}
body.fr-phase2 #listingChips .cat-tile[data-filter="worksheets"] .cat-ic{color:#2563EB}
body.fr-phase2 #listingChips .cat-tile[data-filter="planners"] .cat-ic{color:#F97316}
body.fr-phase2 #listingChips .cat-tile[data-filter="printables"] .cat-ic{color:#4D7C0F}
body.fr-phase2 #listingChips .cat-tile[data-filter="wallpapers"] .cat-ic{color:#4F46E5}
body.fr-phase2 #listingChips .cat-tile[data-filter="ai"] .cat-ic{color:#0E7490}
body.fr-phase2 #listingChips .cat-tile[data-filter="stickers"] .cat-ic{color:#B45309}
body.fr-phase2 #listingChips .cat-tile[data-filter="games"] .cat-ic{color:#6D28D9}
body.fr-phase2 #listingChips .cat-tile .cat-label{display:block;font-size:12px;font-weight:700;line-height:1.2;text-align:center;color:#111214;overflow-wrap:break-word;max-width:100%}
/* Phase 2 optical icon sizing (audit A-03): the 26px .cat-ic box is shared,
   but the glyphs fill their 24×24 viewBox unevenly — the gamepad is a flat
   wide shape (21.7×11.9px), the document narrow (17.3px), the pencil and
   chip sparse diagonals. Each sparse glyph renders larger so all ten icons
   read the same visual weight; the box stays 26×26, so tile layout is
   untouched. Measured after the change in test-phase2.py. */
body.fr-phase2 #listingChips .cat-tile[data-filter="games"] .cat-ic svg{width:32px;height:32px}
body.fr-phase2 #listingChips .cat-tile[data-filter="worksheets"] .cat-ic svg{width:29px;height:29px}
body.fr-phase2 #listingChips .cat-tile[data-filter="wallpapers"] .cat-ic svg{width:29px;height:29px}
body.fr-phase2 #listingChips .cat-tile[data-filter="planners"] .cat-ic svg{width:29px;height:29px}
body.fr-phase2 #listingChips .cat-tile[data-filter="learn-to-draw"] .cat-ic svg{width:30px;height:30px}
body.fr-phase2 #listingChips .cat-tile[data-filter="ai"] .cat-ic svg{width:30px;height:30px}
body.fr-phase2 #listingChips .chip[aria-pressed="true"]{background:var(--tile-bg,#EDE9FE);border-color:#111214;color:#111214;box-shadow:0 0 0 2px #fff,0 0 0 4px #7C3AED}
body.fr-phase2 #listingChips .cat-tile[aria-pressed="true"] .cat-ic::after{content:"\2713";position:absolute;top:-9px;right:-9px;width:17px;height:17px;border-radius:50%;background:#7C3AED;color:#fff;font-size:11px;font-weight:800;line-height:17px;text-align:center;border:2px solid #fff}
/* --- Sub-Categories: icon cards in a horizontal scroll row --- */
body.fr-phase2 .sub-cat-row{gap:10px}
body.fr-phase2 .sub-cat-row .sub-chip{flex:0 0 auto;width:88px;min-height:98px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 6px;background:#fff;border:1px solid #E7E3DA;border-radius:16px;box-shadow:0 1px 3px rgba(17,18,20,.05);cursor:pointer}
body.fr-phase2 .sub-cat-row .sub-chip .sub-ic{width:26px;height:26px;display:flex;color:var(--sub-ic,#7C3AED)}
body.fr-phase2 .sub-cat-row .sub-chip .sub-ic svg{width:100%;height:100%}
body.fr-phase2 .sub-cat-row .sub-chip .sub-label{font-size:12px;font-weight:700;line-height:1.2;text-align:center;color:#111214}
body.fr-phase2 .sub-cat-row .chip[aria-pressed="true"]{background:#fff;border-color:#7C3AED;color:#111214;box-shadow:0 0 0 1px #7C3AED}
body.fr-phase2 .sub-cat-row.expanded{flex-wrap:wrap;overflow-x:visible}
/* --- Filter bar: 3 pill dropdowns in one row --- */
body.fr-phase2 .fr-sort-row{display:flex;align-items:stretch;gap:10px;flex-wrap:nowrap;margin:20px 0 4px}
body.fr-phase2 .pill-select{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #E7E3DA;border-radius:16px;padding:8px 11px;cursor:pointer;box-shadow:0 1px 3px rgba(17,18,20,.04)}
body.fr-phase2 .pill-select .ps-ic{flex:0 0 auto;display:flex;color:#111214}
body.fr-phase2 .pill-select .ps-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
body.fr-phase2 .pill-select .ps-label{font-size:11px;color:#8A8D93;font-weight:600;line-height:1.25}
body.fr-phase2 .pill-select select{appearance:none;-webkit-appearance:none;border:0;background:transparent;font:inherit;font-size:13px;font-weight:700;color:#111214;padding:0;margin:0;outline:0;width:100%;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
body.fr-phase2 .pill-select .ps-chev{flex:0 0 auto;display:flex;color:#111214}
/* --- Section header (breadcrumb) + grid --- */
body.fr-phase2 .fr-section-head{font-family:'Archivo',sans-serif;font-size:20px;font-weight:800;line-height:1.25;color:#111214;display:flex;align-items:center;gap:9px;max-width:1200px;margin:24px auto 4px;padding-left:32px;padding-right:32px}
body.fr-phase2 .fr-section-head .fr-crumb-ic{display:inline-flex;width:26px;height:26px;flex:0 0 auto}
body.fr-phase2 .fr-section-head .fr-crumb-ic svg{width:100%;height:100%}
@media (min-width:1025px){
  body.fr-phase2 #listingChips{grid-template-columns:repeat(10,minmax(0,1fr))}
  body.fr-phase2 .res-grid{grid-template-columns:repeat(4,1fr)}
  body.fr-phase2 .fr-hero{padding:24px 0 24px 28px;gap:20px;margin-top:18px}
  body.fr-phase2 .fr-hero h1{font-size:40px}
  body.fr-phase2 .fr-hero p{font-size:16px;max-width:52ch}
  body.fr-phase2 .fr-hero-art{flex-basis:300px;width:300px}
  body.fr-phase2 .fr-hero-dl{width:52px;height:52px;right:16px;bottom:14px}
  body.fr-phase2 .fr-search input{font-size:16px}
  body.fr-phase2 .fr-cat-head{font-size:22px}
  body.fr-phase2 .pill-select select{font-size:14px}
}
@media (max-width:1024px){
  body.fr-phase2 .fr-section-head{padding-left:24px;padding-right:24px}
}
@media (max-width:640px){
  body.fr-phase2 .fr-section-head{padding-left:16px;padding-right:16px;font-size:18px}
  body.fr-phase2 .fr-hero{margin-top:10px}
  body.fr-phase2 .fr-cat-head{font-size:19px}
  body.fr-phase2 .pill-select .ps-ic{display:none}
  body.fr-phase2 .pill-select{padding:8px 9px;gap:5px}
  body.fr-phase2 .pill-select select{font-size:12px}
  body.fr-phase2 .fr-sort-row{gap:8px}
  body.fr-phase2 #listingChips{gap:8px}
  body.fr-phase2 #listingChips .cat-tile{min-height:86px;padding:12px 3px 10px}
  /* Phase 2 (audit A-01/A-02): with equal minmax(0,1fr) tracks the longest
     single-word labels ("Worksheets", "Printables", ~70px at 12px) would
     overflow their ~59px tile at 360px. 11px labels fit the equal tracks
     without mid-word breaks at every mobile width. */
  body.fr-phase2 #listingChips .cat-tile .cat-label{font-size:11px}
}
/* Phase 2 (audit A-01/A-02, label-break fix 2026-11-22): below 450px five
   equal columns are too narrow for the longest single-word labels —
   "Worksheets" (62px at 11px) broke mid-word ("Worksheet / s") in a 57px
   label box. Four columns give ~77px tiles at 390px, so every label fits
   at the readable 11px (no tiny 9px text) and every tile stays the same
   86px height — "Learn to draw" still wraps, but cleanly between words. */
@media (max-width:449px){
  body.fr-phase2 #listingChips{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* ================= DESIGN SYSTEM 2026-11-21 (site-wide overhaul) =================
   Unified tokens: cream #FCFAF6, white 16px cards, #111827 ink, yellow #FACC15
   primary CTAs / active pills, purple #7C3AED prices / badges, pastel icons.
   Appended last so these rules win at equal specificity. The Free Resources
   Phase 2 rules (body.fr-phase2) are more specific and keep their own look. */

/* --- Primary buttons: yellow (mockups). Buy buttons, hero CTAs, modal Buy. --- */
.btn-accent{background:var(--yellow);color:var(--ink)}
.btn-primary{background:var(--yellow);color:var(--ink);border:1px solid var(--yellow-dark);box-shadow:0 2px 0 var(--yellow-dark),0 4px 10px rgba(250,204,21,.28)}
@media (hover:hover){
  .btn-accent:hover{background:var(--yellow-dark);transform:translateY(-2px);box-shadow:0 8px 18px rgba(17,24,39,.20)}
  .btn-primary:hover{background:#FDE047;transform:translateY(-2px);box-shadow:0 4px 0 var(--yellow-dark),0 10px 22px rgba(250,204,21,.32)}
}
.btn-accent:active{transform:translateY(0) scale(.98)}
.btn-primary:active{transform:translateY(1px);box-shadow:0 1px 0 var(--yellow-dark),0 2px 6px rgba(250,204,21,.22)}

/* --- Active filter chips: yellow pill, dark text --- */
.chip[aria-pressed="true"]{background:var(--yellow);color:var(--ink);border-color:var(--yellow);box-shadow:0 2px 0 var(--yellow-dark),0 4px 10px rgba(250,204,21,.22)}
.chip[aria-pressed="true"]:hover{background:var(--yellow-dark);border-color:var(--yellow-dark)}
.chip svg{width:18px;height:18px;flex:none}
.chip{display:inline-flex;align-items:center;gap:7px}
@media (hover:hover){
  .chip[aria-pressed="true"]:hover{transform:translateY(-2px);box-shadow:0 2px 0 var(--yellow-dark),0 10px 20px rgba(250,204,21,.28)}
}

/* --- Prices + badges: purple --- */
.card .price{color:var(--purple)}
.card .badge{background:var(--purple);color:#fff}
.spot .sprice{color:var(--purple)}
.modal .mprice{color:var(--purple)}
.sec-head .more{color:var(--purple)}
.sec-ic{display:inline-flex;width:28px;height:28px;vertical-align:-6px;margin-right:8px;color:var(--purple)}
.sec-ic svg{width:100%;height:100%}

/* --- Department bar: dark pill with icon tabs, yellow active tab --- */
.dept{background:transparent}
.dept .wrap{background:var(--bar);border-radius:18px;margin:10px auto;padding:6px 10px;max-width:1200px}
.dept a{gap:7px}
.dept a svg{width:18px;height:18px;flex:none}
.dept .wrap > a.on,.dept .wrap > .has-fly > a.on{background:var(--yellow);color:var(--ink);box-shadow:none}
.dept .wrap > a.on svg,.dept .wrap > .has-fly > a.on svg{color:var(--ink)}
@media (hover:hover){
  .dept .wrap > a.on:hover,.dept .wrap > .has-fly > a.on:hover{background:var(--yellow-dark);color:var(--ink)}
}
@media (max-width:640px){
  .dept .wrap{margin:8px 12px;padding:5px 8px;border-radius:16px}
  .dept a{font-size:14px;padding:9px 12px}
  .dept a svg{width:17px;height:17px}
}

/* --- Bottom tab bar: 6 items, yellow underline on the active tab --- */
.tabbar nav{grid-template-columns:repeat(6,1fr)}
.tabbar a .ti svg{width:24px;height:24px}
.tabbar a.on{color:var(--ink)}
.tabbar a.on::before{top:auto;bottom:0;left:22%;right:22%;height:3px;background:var(--yellow);border-radius:3px 3px 0 0}

/* --- Homepage hero: warm golden-cream, orange accent on "free resources" --- */
.hero{background:linear-gradient(180deg,#FFF7E0 0%,#FDEECB 100%)}
.hero h1 .hl{color:var(--accent)}
.hero .trust span{display:inline-flex;align-items:center;gap:8px}
.hero .trust svg{width:18px;height:18px;flex:none;color:var(--ink)}

/* --- Product grids: 2 columns, horizontal cards (cover left, details right) --- */
.pgrid{grid-template-columns:repeat(2,1fr);gap:16px}
.pgrid .card,#listingGrid .card{flex-direction:row;border-radius:var(--radius-card);overflow:hidden}
.pgrid .card .cover,#listingGrid .card .cover{flex:0 0 var(--cover-grid-w-sm);aspect-ratio:var(--ar-cover);align-self:center;background:#F8F5EE}
.pgrid .card .cover img,#listingGrid .card .cover img{object-fit:contain}
.pgrid .card .body,#listingGrid .card .body{padding:12px;gap:5px}
.pgrid .card h3,#listingGrid .card h3{font-size:15px}
.pgrid .card .meta,#listingGrid .card .meta{font-size:12px}
.pgrid .card .price,#listingGrid .card .price{font-size:18px}
.pgrid .card .actions .btn,#listingGrid .card .actions .btn{min-height:var(--btn-h);padding:10px 12px;font-size:13px}
.pgrid .card .badge,#listingGrid .card .badge{top:8px;left:8px;font-size:11px;padding:3px 8px}
/* Card secondary Amazon pill: white (mockup), not gold — primary Buy stays yellow */
.pgrid .card .actions a[data-amazon].btn-ghost,#listingGrid .card .actions a[data-amazon].btn-ghost{background:#fff;border:1.5px solid var(--line);color:var(--ink);box-shadow:none}
@media (hover:hover){
  .pgrid .card .actions a[data-amazon].btn-ghost:hover,#listingGrid .card .actions a[data-amazon].btn-ghost:hover{border-color:var(--ink);transform:translateY(-2px);box-shadow:0 2px 0 rgba(17,24,39,.10),0 8px 16px rgba(17,24,39,.12)}
}
@media (min-width:768px){
  .pgrid{gap:20px}
  .pgrid .card .cover,#listingGrid .card .cover{flex-basis:var(--cover-grid-w)}
  .pgrid .card h3,#listingGrid .card h3{font-size:17px}
  .pgrid .card .meta,#listingGrid .card .meta{font-size:14px}
  .pgrid .card .price,#listingGrid .card .price{font-size:20px}
  .pgrid .card .body,#listingGrid .card .body{padding:16px}
}
/* Phase 2 cover scale (audit B-02): grid covers keep growing with the
   viewport — 180px at tablet, 200px at desktop — so they are never
   smaller than the mobile cover again. */
@media (min-width:1024px){
  .pgrid .card .cover,#listingGrid .card .cover{flex-basis:var(--cover-grid-w-lg)}
}

/* --- Sort pills (homepage Our Products) --- */
.sort-pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.sort-pills .sort-label{font-size:14px;font-weight:700;color:var(--muted);margin-right:2px;display:inline-flex;align-items:center;gap:6px}
.sort-pills .sort-label svg{width:16px;height:16px}
#shop .rail{flex-direction:column;align-items:flex-start;gap:10px}

/* --- Kids Books showcase (homepage) --- */
.kb-show{margin-top:6px}
.kb-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-card);overflow:hidden;display:flex;box-shadow:var(--shadow)}
/* FIX #3 (2026-11-22): the cover box used to stretch to the card height
   (min-height 260px), leaving grey bands above/below the 600x849 cover.
   Now the wrapper is exactly the cover's natural ratio (600/849), capped at
   220px wide, centred against the body — zero letterbox bars, top or bottom. */
.kb-cover{flex:0 0 40%;max-width:220px;aspect-ratio:600/849;min-height:0;align-self:center;background:#F8F5EE;position:relative;overflow:hidden}
.kb-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.kb-body{flex:1;min-width:0;padding:18px;display:flex;flex-direction:column;gap:6px}
.kb-body h3{font-size:20px;line-height:1.25}
.kb-list{font-size:14px;color:var(--ink)}
.kb-price{font-family:'Archivo',sans-serif;font-size:20px;font-weight:800;color:var(--purple)}
.kb-note{font-size:13px;color:var(--muted)}
.kb-body .btn{align-self:flex-start;margin-top:6px}
@media (max-width:640px){
  .kb-body{padding:14px}
  .kb-body h3{font-size:17px}
  .kb-list{font-size:13px}
  .kb-price{font-size:18px}
  .kb-body .btn{min-height:var(--btn-h);padding:10px 14px;font-size:13px}
}

/* --- Generic listing page-head: rounded warm banner --- */
.page-head{background:linear-gradient(135deg,#FFF6E0,#FFEFC2);border:1px solid #F3E3B3;border-radius:var(--radius-card);padding:28px;margin-top:18px}
.page-head h1{font-size:34px}
.page-head .lede{margin-top:10px;max-width:68ch}
/* Fix #5 (22 Nov 2026): breathing room between the cream listing banner and the
   filter pill row below it. Adjacent-sibling only, so it touches nothing else:
   .rail directly under .page-head on Games, Blog and Free Resources
   category/sub-category pages (260 files). Shop's pills already sit 32px below
   its affiliate hero, and Our Products' chips already carry an 18px inline
   margin, so those two need no change. Applies at every width. */
.page-head + .rail{margin-top:16px}
@media (max-width:640px){
  .page-head{padding:20px 16px;margin-top:12px}
  .page-head h1{font-size:28px}
}

/* --- Shop hero (own-products): illustrated golden banner --- */
.ds-shop-hero{position:relative;background:linear-gradient(135deg,#FFF6E0,#FFE9B8);border:1px solid #F3E3B3;border-radius:var(--radius-card);padding:28px 150px 28px 140px;margin-top:18px;overflow:hidden;min-height:132px;display:flex;align-items:center}
.ds-shop-hero h1{font-size:36px}
.ds-shop-hero .lede{margin-top:8px;max-width:56ch}
.ds-shop-bag{position:absolute;left:8px;bottom:0;width:128px;height:128px;object-fit:cover;object-position:center 62%;border-radius:12px}
.ds-shop-cat{position:absolute;right:8px;bottom:0;width:136px;height:136px;object-fit:cover;object-position:center 22%;border-radius:12px}
@media (max-width:640px){
  .ds-shop-hero{padding:20px 104px 20px 96px;margin-top:12px;min-height:118px}
  .ds-shop-hero h1{font-size:28px}
  .ds-shop-bag{width:88px;height:88px;left:4px}
  .ds-shop-cat{width:96px;height:96px;right:4px}
}

/* --- Pill dropdown row (Sort / Format / Topic) — same pattern as FR Phase 2 --- */
.pill-select{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #E7E3DA;border-radius:16px;padding:8px 11px;cursor:pointer;box-shadow:0 1px 3px rgba(17,24,39,.04)}
.pill-select .ps-ic{flex:0 0 auto;display:flex;color:var(--ink)}
.pill-select .ps-ic svg{width:18px;height:18px}
.pill-select .ps-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.pill-select .ps-label{font-size:11px;color:#8A8D93;font-weight:600;line-height:1.25}
.pill-select select{appearance:none;-webkit-appearance:none;border:0;background:transparent;font:inherit;font-size:13px;font-weight:700;color:var(--ink);padding:0;margin:0;outline:0;width:100%;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.pill-select .ps-chev{flex:0 0 auto;display:flex;color:var(--ink)}
.pill-select .ps-chev svg{width:14px;height:14px}
.ds-filter-row{display:flex;align-items:stretch;gap:10px;flex-wrap:nowrap;margin:16px 0 4px}
@media (max-width:640px){
  .pill-select{padding:8px 9px;gap:5px}
  .pill-select .ps-ic{display:none}
  .pill-select select{font-size:12px}
  .ds-filter-row{gap:8px}
}
@media (min-width:1025px){
  .pill-select select{font-size:14px}
}

/* --- Games + Blog cards join the system --- */
.gcard,.bcard{border-radius:var(--radius-card)}
.gcard h3{font-size:17px}
.gcard a{color:var(--purple);font-weight:700}
.bcard .read{color:var(--purple)}
.bcard .tag{color:var(--purple)}
.res-item{border-radius:var(--radius-card)}
.taster{border-radius:var(--radius-card)}
.spot{border-radius:var(--radius-card)}

/* --- Mobile density fixes (from screenshot review, 21 Nov) --- */
@media (max-width:640px){
  /* Product cards: narrower cover so the body has room; smaller type so
     titles fit; 4-line clamp so long titles show in full. */
  .pgrid{gap:12px}
  .pgrid .card .cover,#listingGrid .card .cover{flex-basis:60px}
  .pgrid .card .body,#listingGrid .card .body{padding:10px;gap:4px}
  .pgrid .card h3,#listingGrid .card h3{font-size:12px;-webkit-line-clamp:4}
  .pgrid .card .meta,#listingGrid .card .meta{font-size:11px}
  .pgrid .card .price,#listingGrid .card .price{font-size:16px}
  .pgrid .card .actions .btn,#listingGrid .card .actions .btn{min-height:var(--btn-h);padding:10px 12px;font-size:13px}
  .pgrid .card .badge,#listingGrid .card .badge{font-size:10px;padding:2px 7px;top:6px;left:6px}
  /* Shop hero: smaller illustrations, vertically centred, wider text column */
  .ds-shop-hero{padding:18px 92px 18px 84px;min-height:124px}
  .ds-shop-hero h1{font-size:28px}
  .ds-shop-hero .lede{font-size:14px}
  .ds-shop-bag{width:74px;height:74px;left:4px;top:50%;bottom:auto;transform:translateY(-50%)}
  .ds-shop-cat{width:84px;height:84px;right:4px;top:50%;bottom:auto;transform:translateY(-50%)}
  /* Tab bar labels: tighter so fewer wrap to two lines */
  .tabbar a{font-size:11px}
}

/* FIX #2 (2026-11-21): mobile-only utility. Elements with .mob-only are
   hidden on desktop and shown only inside the ≤640px media query below
   (the show rules live in the MOBILE FIXES block, appended last). */
.mob-only{display:none}

/* ================= MOBILE FIXES 2026-11-21 (owner review of preview) =================
   Mobile-only. Every rule below lives inside a max-width media query and is
   appended last so it wins on small screens. Desktop is untouched. */

/* FIX 2a — homepage hero: headline first on mobile. The original ≤820px rule
   (.hero-carousel{order:-1}) put the rotating kit card above the H1;
   neutralise it so DOM order (copy first) wins on small screens. */
@media (max-width:820px){
  .hero-carousel{order:0}
}

@media (max-width:640px){
  /* FIX 1 — vertical product cards in 2-col mobile grids. The design-system
     horizontal card (60px cover + 111px body) crushed titles into 4 lines
     and left big empty gaps. Stack: cover on top (full width, square,
     cover-fit), then 2-line title, price, full-width CTA below.
     FIX #1 (2026-11-21): the grid STRETCHES cards to equal height per row
     (default align-items) and the CTA is pushed to the bottom with
     margin-top:auto, so every card in a row ends at the same line with its
     single button aligned — no empty gap below a shorter card. */
  .pgrid .card,#listingGrid .card{flex-direction:column}
  /* FIX #3 (2026-11-22): the 1:1 + cover-fit frame sliced portrait book
     covers top and bottom. 3/4 + contain on the warm-cream stage shows the
     whole cover; equal heights + bottom-aligned CTA (Fix #1) are unchanged. */
  .pgrid .card .cover,#listingGrid .card .cover{flex:none;width:100%;aspect-ratio:3/4;background:#F8F5EE}
  .pgrid .card .cover img,#listingGrid .card .cover img{object-fit:contain}
  .pgrid .card .body,#listingGrid .card .body{padding:12px 12px 6px;gap:5px;width:100%}
  .pgrid .card h3,#listingGrid .card h3{font-size:13px;-webkit-line-clamp:2}
  .pgrid .card .meta,#listingGrid .card .meta{font-size:12px}
  .pgrid .card .price,#listingGrid .card .price{font-size:17px}
  .pgrid .card .actions,#listingGrid .card .actions{margin-top:auto}
  .pgrid .card .actions .btn,#listingGrid .card .actions .btn{min-height:var(--btn-h);padding:10px 12px;font-size:13px;width:100%}
  .pgrid .card .badge,#listingGrid .card .badge{top:8px;left:8px;font-size:11px;padding:3px 8px}
  /* Affiliate titles had their 2-line clamp removed (display:block); restore
     it on mobile so long titles (Watercolor…) don't run to 4+ lines. */
  .pgrid .card.af-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

  /* FIX 2b — hero carousel slides go vertical on mobile. A 182px-wide body
     made the slide ~500px tall with the buttons stranded at the bottom.
     Cover centred on top (portrait book cover, fully visible), body full
     width below so text wraps far less and the card hugs its content. */
  .spot{flex-direction:column;gap:12px;padding:16px 16px 6px}
  .spot .cover{width:100%;max-width:200px;margin:0 auto;aspect-ratio:600/849}
  .spot h2{font-size:19px}
  .spot .sbody{width:100%}
  /* Kids Books showcase: tighten the body padding so the card hugs its
     content (the 14px bottom padding read as wasted space). */
  .kb-body{padding:14px 14px 6px}

  /* FIX 3 — Free Resources hero + thumbnails, mobile hardening. The hero
     already renders at 390px (verified by probe: display:flex, 201px tall);
     give it an explicit floor so it can never collapse, and pin the
     thumbnail ratio/fit on mobile. */
  body.fr-phase2 .fr-hero{min-height:150px}
  body.fr-phase2 .res-item .rthumb{aspect-ratio:4/3}
  body.fr-phase2 .res-item .rthumb img{object-fit:cover}

  /* FIX 4 — filter chip rows: one single horizontally scrollable row on
     mobile, never wrapping. Covers the shop/own-products chips, the homepage
     Our Products filter chips + sort pills, and every other .chips row.
     (FR category tiles stay a 5x2 grid: body.fr-phase2 #listingChips is
     display:grid at higher specificity, so it is unaffected.) */
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;min-width:0}
  .chips::-webkit-scrollbar{display:none}
  .chips .chip{flex:none}
  /* Phase 2 mobile compaction (audit D-01): filter chips were 44px tall
     with desktop padding at every width — the 5-chip row ran ~628px in a
     358px viewport. Smaller on mobile so more chips are visible per swipe.
     FR tiles and sub-chips keep their own sizing (more specific rules). */
  .chip{padding:8px 13px;font-size:13px;min-height:38px}
  /* A .chips row inside a .rail is a flex item: without an explicit flex
     basis it keeps its content width (484px) and overflows the rail instead
     of scrolling. Force it to fill the rail line and scroll internally. */
  .rail .chips,.rail .sort-pills{flex:1 1 0;min-width:0;max-width:100%}
  .sort-pills{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;min-width:0}
  .sort-pills::-webkit-scrollbar{display:none}
  .sort-pills .chip{flex:none}

  /* FIX #2 (2026-11-21) — homepage carousel slides 2 & 3 + Real books, mobile.
     All rules here are ≤640px only; desktop is untouched. */
  /* Mobile-only content: hidden on desktop by the .mob-only base rule above. */
  .mob-only{display:block}
  a.mob-only{display:inline-flex}
  /* Carousel: the slide body fills the slide height (the grid stretches all
     slides to the tallest one) and the first button pins itself to the bottom
     with margin-top:auto — the same pattern as Fix #1's grid cards. On the
     tallest slide the auto margin resolves to zero, so Slide 1 is unchanged.
     NOTE: space-between on the whole slide was deliberately NOT used — it
     would detach the text block from the cover and spread the text apart;
     margin-top:auto keeps the text block coherent and pins only the buttons. */
  .hero-carousel .spot .sbody{display:flex;flex-direction:column}
  .hero-carousel .spot .sbody > a.btn:first-of-type{margin-top:auto}
  /* FIX #3 (2026-11-22) — Slide 3 fan collage, mobile: wider than the
     200px single-cover cap so the three fanned sheets read clearly. */
  .hero-carousel .spot .cover.spot-fan-cover{width:100%;max-width:280px;aspect-ratio:4/3}
  /* Slide 2 & 3 highlight details (mobile-only): verified facts only. */
  .hero-carousel .spot-hl{list-style:none;margin:2px 0 12px;padding:0;display:flex;flex-direction:column;gap:3px}
  .hero-carousel .spot-hl li{font-size:13px;line-height:1.35;color:var(--ink)}
  .hero-carousel .spot-hl li::before{content:"✓";color:var(--purple);font-weight:800;margin-right:6px}
  /* Real books: hide the tall desktop showcase on mobile and show the
     compact summary card instead. */
  #real-books .taster.promo{display:none}
  #real-books .rb-compact{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:14px;box-shadow:var(--shadow)}
  #real-books .rb-compact .rb-cover{flex:none;width:110px;aspect-ratio:600/849;border-radius:8px;overflow:hidden;background:var(--tile)}
  #real-books .rb-compact .rb-cover img{width:100%;height:100%;object-fit:cover;display:block}
  #real-books .rb-compact .rb-body{flex:1;min-width:0}
  #real-books .rb-compact h3{font-size:17px;line-height:1.25;margin-bottom:4px}
  #real-books .rb-compact p{font-size:13px;line-height:1.45;color:var(--muted);margin-bottom:8px}
  #real-books .rb-compact .rb-badge{font-size:12px;font-weight:700;color:var(--ink);margin-bottom:10px}
  #real-books .rb-compact .btn{width:100%;min-height:44px;padding:10px 12px;font-size:13px}
  #real-books .rb-compact .btn + .btn{margin-top:8px}
}
