/* Rising Maple free worksheet pages (/worksheets, written at build time by scripts/seo/worksheets.ts from
   src/worksheets/publicPages.ts and handwritingPages.ts). Loaded after /landing/home.css only (the site's
   header, footer, buttons and type); everything else the pages show is here. The look ("Shelf of sheets",
   2026-11-25): every list shows what a sheet looks like (thumbnails drawn from the sheet's own questions,
   src/worksheets/sheetThumb.ts), big grade tiles on the index, topic cards with their lesson list inside,
   and on a sheet's page the paper sheet with its actions beside it (a bottom dock on phones).
   The sheet's own style is /worksheets/sheet.css (the app's worksheet style kept inside .ws).
   Light only, like every other public page (owner, 2026-11-27: no dark theme on the site); the tokens
   below. Printing shows only the sheet and its answer key. Mobile first; nothing scrolls sideways but a shelf inside itself. */

/* ---- tokens -------------------------------------------------------------------------------- */
.worksheets {
  --link: #1b65b3; --wash: #f3f8ff; --desk: #e3eefc; --sheet: #ffffff; --sheet-edge: #cfdcf5; --shadow: rgba(18, 54, 110, 0.1); --tip-line: #f6cdb4;
  --math-bg: #fff0cc; --math-ink: #7a4f00; --math-dot: #f5b400;
  --reading-bg: #ffe7df; --reading-ink: #8f3f1b; --reading-dot: #ee6a20;
  --writing-bg: #e2f5ff; --writing-ink: #154f9e; --writing-dot: #2f9bff;
  --science-bg: #e0f6e9; --science-ink: #147a43; --science-dot: #2e8a4d;
  --social-bg: #f0e6ff; --social-ink: #5b3fa0; --social-dot: #8b6fd6;
  color-scheme: light;
  background: linear-gradient(180deg, var(--sky) 0, var(--wash) 420px, var(--cream) 100%);
}

/* ---- the site's pieces, on these pages ----------------------------------------------------------- */
/* The sticky header is SOLID here (it was 94% white: a big heading showed through as it scrolled under).
   No backdrop blur: it repaints on every scroll frame on low-power phones. Anchors clear the header. */
.worksheets .header { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 6px 18px var(--shadow); }
.worksheets [id] { scroll-margin-top: 84px; }
.worksheets .nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--amber); border-radius: 12px 12px 0 0; }
.worksheets .footer { background: #12264f; padding-bottom: 48px; }
.worksheets a { color: var(--link); text-underline-offset: 3px; }
.worksheets .header a, .worksheets .footer a { color: inherit; }
.worksheets .header .login, .worksheets .header .nav a, .worksheets .logo { color: var(--heading); }
.worksheets .logo-light, .worksheets .footer nav a { color: #fff; }
.worksheets .btn, .worksheets .header .btn { color: #fff; }
.worksheets .btn-ghost { color: var(--heading); box-shadow: 0 0 0 1.5px var(--line) inset, 0 4px 0 var(--edge); }
.worksheets button.btn { border: 0; cursor: pointer; }
.worksheets h2 { font-size: 1.5rem; text-align: left; text-wrap: wrap; }
.worksheets h2::after { content: none; }
.worksheets .wrap { max-width: 1180px; padding: 0 16px; }
.worksheets .wrap.narrow { max-width: 900px; }
.worksheets .fine { margin-top: 14px; font-size: 0.875rem; color: var(--muted); max-width: 70em; }
.worksheets .lead { margin-top: 8px; font-size: 1.0625rem; max-width: 46em; }
.worksheets .eyebrow { display: block; margin-top: 12px; padding: 0; border-radius: 0; background: none; box-shadow: none; font: 800 0.75rem/1.2 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--maple-ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.art { display: block; object-fit: contain; flex: none; }
.sub { color: var(--muted); margin-top: 4px; }
.pl { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.sd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--math-dot); }
.sd.s-reading { background: var(--reading-dot); } .sd.s-writing { background: var(--writing-dot); } .sd.s-science { background: var(--science-dot); } .sd.s-social { background: var(--social-dot); }

/* ---- header band ----------------------------------------------------------------------------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 0.875rem; font-weight: 700; }
.crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.worksheets .crumbs a { color: var(--heading); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); }
.ws-hero { padding: 12px 0 22px; background: linear-gradient(180deg, var(--sky-deep), transparent); }
.ws-hero h1 { font-size: clamp(1.7rem, 7.4vw, 2.9rem); margin-top: 10px; text-wrap: balance; letter-spacing: -0.02em; }
.ws-hero .eyebrow + h1 { margin-top: 6px; }
.goal { margin-top: 10px; max-width: 46em; }
.standards { display: inline-block; margin-top: 8px; padding: 2px 12px; border-radius: 999px; background: var(--paper); font-size: 0.875rem; font-weight: 700; color: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.standards a { font-weight: 800; }
.ws-ticks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-weight: 700; font-size: 0.9375rem; color: var(--heading); }
.ws-ticks li::before { content: "✓"; margin-right: 6px; color: var(--science-dot); font-weight: 800; }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.jump > span { font-weight: 800; font-size: 0.8125rem; color: var(--muted); margin-right: 2px; }
.worksheets .jump a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 13px; background: var(--paper); color: var(--heading); font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 var(--edge); }
.jump a i:last-child { font-style: normal; font-weight: 700; color: var(--muted); margin-left: 5px; }
.worksheets .jump a.std { background: none; box-shadow: none; text-decoration: underline; padding: 0 6px; color: var(--link); }
.gh { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 8px; }
.gh .art { width: 56px; height: 56px; }
.gh h1 { margin-top: 0; }

/* ---- shared cards ---------------------------------------------------------------------------- */
.list { padding: 6px 0 40px; }
.card { background: var(--paper); border-radius: 20px; padding: 16px 18px; box-shadow: 0 4px 0 var(--edge); }
.worksheets .card h2, .worksheets .tip h2 { font-size: 1.1875rem; margin-bottom: 6px; }
/* A note for grown-ups: soft tint, faint outline, a lightbulb badge beside the heading (no stripe, owner 2026-11-27) */
.tip { background: var(--maple-wash); border: 1px solid var(--tip-line); border-radius: 20px; padding: 16px 18px; }
.worksheets .tip h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tip h2::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--paper) var(--i-bulb) center / 22px no-repeat; box-shadow: 0 3px 0 var(--tip-line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.worksheets .chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 16px; border-radius: 999px; background: var(--paper); color: var(--heading); font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 var(--edge); }
.chips a:hover { text-decoration: underline; }
.worksheets .h-more { margin-top: 30px; }

/* "Want fresh questions?": the one free-account box (publicPages.ts signUpBox), the same words everywhere */
.signup-cta { display: grid; gap: 12px; background: var(--paper); border-radius: 22px; padding: 18px; box-shadow: 0 0 0 2px var(--amber) inset, 0 4px 0 var(--edge); }
.worksheets .signup-cta h2 { font-size: 1.3125rem; margin-bottom: 4px; }
.worksheets .signup-cta .fine { margin-top: 6px; }
.signup-cta .btn { justify-self: start; }
.signup-cta.wide { margin: 26px 0; }

/* ---- "Get free worksheets every week" (src/worksheets/mailBox.ts) ------------------------------- */
.mail-cta { display: grid; gap: 10px; background: var(--paper); border-radius: 22px; padding: 18px; box-shadow: 0 0 0 2px var(--teal) inset, 0 4px 0 var(--edge); }
.worksheets .mail-cta h2 { font-size: 1.3125rem; margin-bottom: 0; }
.mail-cta.wide { margin: 26px 0; }
.mail-cta .wm { display: grid; gap: 10px; }
.mail-cta .wm-f { display: grid; gap: 4px; }
.mail-cta label { font-weight: 800; color: var(--heading); font-size: 0.9375rem; }
.mail-cta input, .mail-cta select { box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--wash); color: var(--ink); font: 600 1rem var(--body); box-shadow: 0 0 0 1.5px var(--line) inset; }
.mail-cta input:focus-visible, .mail-cta select:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.mail-cta .btn { justify-self: start; min-height: 48px; }
.mail-cta .btn:disabled { opacity: 0.7; cursor: progress; }
.mail-cta .wm-hp { display: none; }
/* The safety check (Turnstile, interaction-only): takes no room unless Cloudflare asks for a click. */
.mail-cta .wm-ts:empty { display: none; }
.mail-cta .wm-msg { margin: 0; font-weight: 700; color: var(--heading); min-height: 1.4em; }
.mail-cta .wm-msg:empty { min-height: 0; }
.mail-cta .fine { margin: 0; }

/* ---- sheet thumbnails (sheetThumb.ts): always paper, fixed ink ------------------------------- */
.th { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 3px 0 var(--sheet-edge), 0 8px 16px var(--shadow); }
.th text { font-family: var(--body); }
.th .t { font: 600 10.5px var(--display); fill: #12224d; }
.th .i { fill: #fff0cc; } .th .j { font-weight: 800; font-size: 5px; letter-spacing: 0.4px; fill: #7a4f00; }
.th.s-reading .i { fill: #ffe7df; } .th.s-reading .j { fill: #8f3f1b; } .th.s-writing .i { fill: #e2f5ff; } .th.s-writing .j { fill: #154f9e; }
.th.s-science .i { fill: #e0f6e9; } .th.s-science .j { fill: #147a43; } .th.s-social .i { fill: #f0e6ff; } .th.s-social .j { fill: #5b3fa0; }
.th .q { font-weight: 700; font-size: 6.4px; fill: #33415f; }
.th .e, .th .e2, .th .k { font: 500 12px var(--display); fill: #12224d; } .th .e2 { font-size: 8.5px; } .th .k { font-size: 10px; text-anchor: end; }
.th .c { font-weight: 600; font-size: 6.4px; fill: #33415f; }
.th .l { stroke: #9fb0d8; stroke-width: 0.8; fill: none; } .th .m { stroke: #c9d5ee; stroke-width: 0.7; stroke-dasharray: 3 2; fill: none; }
.th .g { stroke: #c3cee6; stroke-width: 3; stroke-linecap: round; fill: none; }
.th .f { fill: none; stroke: #33415f; stroke-width: 0.8; stroke-linecap: round; }
.th .r, .th .y, .th .z { fill: none; stroke: #f08a6c; stroke-width: 4.6; stroke-linecap: round; } .th .y { stroke: #ffc93c; } .th .z { stroke: #c9d0df; }
.th .b { fill: #fff; stroke: #9fb0d8; stroke-width: 0.7; } .th .w { font: 600 8px var(--display); fill: #12224d; text-anchor: middle; }
.th .h { font: 500 24px var(--display); fill: #12224d; } .th .hd { fill: none; stroke: #7f8fb5; stroke-width: 0.6; stroke-dasharray: 1.6 1.4; }

/* ---- index: grade tiles, shelves, good places to start, other ways in --------------------------------- */
.gtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.worksheets .gt { display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; background: var(--paper); border-radius: 20px; box-shadow: 0 4px 0 var(--edge); text-decoration: none; text-align: center; }
.gt b { font: 600 1.0625rem/1.2 var(--display); color: var(--heading); }
.gt span { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.gt .art { width: 56px; height: 56px; }
.gt:hover b, .scard:hover b, .st-c:hover b, .ways a:hover b { text-decoration: underline; }
.shelf { margin-top: 26px; }
.shelf-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.worksheets .shelf-h h2 a { color: inherit; text-decoration: none; }
.shelf-h h2 a::after { content: " ›"; color: var(--leaf); }
.shelf-h h2 a:hover { text-decoration: underline; }
.shelf-h p { color: var(--muted); font-weight: 700; font-size: 0.9375rem; }
/* A shelf scrolls sideways inside itself on phones (the page never does); the next card peeks in. */
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 12px 16px 16px; margin: 0 -16px; scrollbar-width: thin; border-bottom: 6px solid var(--edge); border-radius: 0 0 10px 10px; background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--edge) 35%, transparent)); }
.shelf-row li { scroll-snap-align: start; scroll-margin-left: 16px; }
.worksheets .scard { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.sc-t { display: grid; gap: 1px; }
.sc-t b { font: 600 1.0625rem/1.2 var(--display); color: var(--heading); justify-self: start; box-shadow: inset 0 -0.45em 0 var(--math-bg); }
.s-reading .sc-t b { box-shadow: inset 0 -0.45em 0 var(--reading-bg); } .s-writing .sc-t b { box-shadow: inset 0 -0.45em 0 var(--writing-bg); } .s-science .sc-t b { box-shadow: inset 0 -0.45em 0 var(--science-bg); } .s-social .sc-t b { box-shadow: inset 0 -0.45em 0 var(--social-bg); }
.sc-t em { font-style: normal; font-weight: 700; font-size: 0.8125rem; color: var(--muted); }
.sc-t small { font-size: 0.75rem; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.starts, .ways { margin-top: 34px; }
.st-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-top: 12px; }
.worksheets .st-c { display: grid; gap: 6px; text-decoration: none; align-content: start; }
.st-c b { display: block; font: 600 0.9375rem/1.2 var(--display); color: var(--heading); overflow-wrap: anywhere; }
.st-c em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.ways ul { display: grid; gap: 10px; margin-top: 12px; }
.worksheets .ways a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: center; background: var(--paper); border-radius: 18px; padding: 12px 16px; box-shadow: 0 3px 0 var(--edge); text-decoration: none; }
.ways .art { grid-row: span 2; width: 40px; height: 40px; }
.ways b { font: 600 1.125rem var(--display); color: var(--heading); }
.ways span { font-size: 0.875rem; color: var(--muted); }
/* The featured season (src/worksheets/seasonal/seasonalPages.ts seasonBanner): a band of its sheets on the index
   and the grade pages, only while the season is in its window. */
.season { margin-top: 24px; background: var(--paper); border-radius: 22px; padding: 16px 16px 8px; box-shadow: 0 0 0 2px var(--writing-bg) inset, 0 4px 0 var(--edge); }
.season-h h2 { font-size: 1.3125rem; }
.worksheets .season-h h2 a { color: var(--heading); text-decoration: none; }
.season-h h2 a:hover { text-decoration: underline; }
.season-h p { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.season .st-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- grade and subject pages: topic cards with their lesson list ------------------------------------ */
.subj { margin-top: 30px; }
.subj-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: center; }
.subj-h .art { grid-row: span 2; width: 44px; height: 44px; }
.worksheets .subj-h h2 a { color: inherit; text-decoration: none; }
.subj-h h2 a:hover { text-decoration: underline; }
.subj-h p { color: var(--muted); font-size: 0.9375rem; }
.tgrid { display: grid; gap: 12px; margin-top: 14px; align-items: start; }
.tcard { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; background: var(--paper); border-radius: 20px; padding: 12px 14px 6px 12px; box-shadow: 0 4px 0 var(--edge); }
.tcard h3 { font-size: 1.125rem; }
.worksheets .tcard h3 a { color: var(--heading); text-decoration: none; }
.tcard h3 a:hover { text-decoration: underline; }
.tc-n { font-size: 0.8125rem; font-weight: 800; color: var(--muted); margin-top: 2px; }
.tc-l { font-size: 0.875rem; margin-top: 4px; color: var(--muted); }
.tp { margin-top: 6px; }
.tp summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 800; font-size: 0.9375rem; color: var(--link); }
.tp summary::-webkit-details-marker { display: none; }
.tp summary::after { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wash); color: var(--heading); font-size: 1.1rem; box-shadow: 0 0 0 1px var(--line); }
.tp[open] summary::after { content: "–"; }
.lsl li { border-top: 1px solid var(--line); padding: 4px 0; }
.lsl a { display: flex; align-items: center; min-height: 44px; font-weight: 800; }
.lsl span { display: block; margin-top: -6px; padding-bottom: 6px; font-size: 0.875rem; color: var(--muted); }
.lsl .lc { font-weight: 800; color: var(--heading); }
.stabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; margin-top: 16px; max-width: 620px; }
.worksheets .stabs a { display: grid; justify-items: center; gap: 1px; padding: 8px 2px; border-radius: 16px; background: var(--paper); box-shadow: 0 3px 0 var(--edge); text-decoration: none; text-align: center; min-width: 0; }
.stabs b { font: 600 0.75rem/1.15 var(--display); color: var(--heading); overflow-wrap: anywhere; }
.stabs span { font-size: 0.75rem; font-weight: 800; color: var(--muted); }
.stabs .art { width: 34px; height: 34px; }
.worksheets .stabs a[aria-current] { box-shadow: 0 0 0 2.5px var(--heading) inset, 0 3px 0 var(--edge); background: var(--math-bg); }
.stabs a[aria-current].s-reading { background: var(--reading-bg); } .stabs a[aria-current].s-writing { background: var(--writing-bg); } .stabs a[aria-current].s-science { background: var(--science-bg); } .stabs a[aria-current].s-social { background: var(--social-bg); }
.pn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 30px; }
.pn a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }

/* ---- standards pages --------------------------------------------------------------------------- */
.std { margin-top: 28px; }
.std-text { margin-top: 8px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--outline-soft); border-radius: 12px; color: var(--muted); }
.std-note { margin-top: 6px; color: var(--muted); }
.srows { display: grid; gap: 10px; margin-top: 12px; }
.srows li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 12px; align-items: center; background: var(--paper); border-radius: 18px; padding: 10px 14px 6px 10px; box-shadow: 0 3px 0 var(--edge); }
.srows .sr-th { grid-row: span 2; align-self: start; }
.worksheets .srows div a { display: block; font: 600 1.0625rem/1.25 var(--display); color: var(--heading); text-decoration: none; }
.srows div a:hover { text-decoration: underline; }
.worksheets .srows div a { padding: 5px 0 1px; }
.covers b a, .facts dd a, .nextup a { display: inline-block; padding: 4px 0; }
.srows div span { font-size: 0.875rem; color: var(--muted); }
.srows .pl { grid-column: 2; }
.dlist { display: grid; gap: 10px; margin-top: 12px; }
.dlist li { background: var(--paper); border-radius: 18px; padding: 10px 16px 12px; box-shadow: 0 3px 0 var(--edge); }
.worksheets .dlist li > a { display: inline-flex; align-items: center; min-height: 44px; font: 600 1.125rem/1.25 var(--display); color: var(--heading); text-decoration: none; }
.dlist li > a:hover { text-decoration: underline; }
.codes { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 0.875rem; }
.codes a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; }
.fw-cards { display: grid; gap: 14px; margin-top: 18px; }
.fw { background: var(--paper); border-radius: 22px; padding: 18px; box-shadow: var(--card); }
.fw .art { width: 56px; height: 56px; margin-bottom: 6px; }
.worksheets .fw h2 a { color: var(--heading); text-decoration: none; }
.fw h2 a:hover { text-decoration: underline; }
.count { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; font-weight: 700; }
.worksheets .fw .chips a { background: var(--wash); box-shadow: 0 0 0 1px var(--line); min-height: 44px; }

/* ---- a sheet's page: the paper sheet, its actions, the rail beside it ----------------------------------- */
.sheet-band { padding: 4px 0 8px; }
.lp { display: grid; gap: 22px; }
.lp-main { min-width: 0; }
.lp-rail { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sheet-tools { display: flex; flex-wrap: wrap; gap: 12px; }
.fine-print { margin-top: 10px; font-size: 0.875rem; color: var(--muted); max-width: 46em; }
.paper-bg { background: var(--desk); border-radius: 22px; padding: 12px 8px 16px; margin-top: 14px; }
.worksheets .ws { background: none; padding: 0; overflow-x: auto; border-radius: 0; }
@media screen {
  .worksheets .ws .sheet, .worksheets .ws .key { background: var(--sheet); border-color: var(--sheet-edge); box-shadow: 0 3px 0 var(--sheet-edge), 0 10px 22px var(--shadow); }
  .worksheets .ws .key { margin-bottom: 0; }
  .worksheets .ws .foot { margin: 10px 0 0; color: var(--muted); }
  /* The answer key stays closed on screen until "Show the answer key" (the page's script); it always prints. */
}
@media screen { .ws.key-closed .key { display: none; } }
.worksheets .ws.key-closed .sheet:last-of-type { margin-bottom: 0; }
.app-r { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.app-qr { display: none; flex: none; width: 88px; height: 88px; border-radius: 8px; background: #fff; padding: 2px; }
.app .btn { width: 100%; }
.covers { display: grid; margin-top: 8px; }
.covers li { padding: 8px 0; border-top: 1px solid var(--line); }
.covers b { display: block; font-weight: 800; color: var(--heading); }
.covers span { display: block; font-size: 0.875rem; color: var(--muted); }
.nextup li { padding: 7px 0; border-top: 1px solid var(--line); }
.nextup li:first-child, .covers li:first-child { border-top: 0; }
.nextup a { display: flex; align-items: center; min-height: 32px; font-weight: 800; }
.nextup span { display: block; font-size: 0.875rem; color: var(--muted); }
.facts { margin: 0; background: var(--paper); border-radius: 18px; padding: 4px 16px; box-shadow: 0 3px 0 var(--edge); }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; }
.facts dt { font-weight: 800; color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.more { padding: 22px 0 40px; }
.pn2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.worksheets .pn2 a { background: var(--paper); border-radius: 16px; padding: 10px 14px; box-shadow: 0 3px 0 var(--edge); text-decoration: none; min-height: 60px; }
.pn2 a[rel="next"] { text-align: right; grid-column: 2; }
.pn2 small { display: block; font-weight: 800; color: var(--muted); }
.pn2 b { font: 600 1rem/1.25 var(--display); color: var(--heading); overflow-wrap: anywhere; }
.pn2 a:hover b { text-decoration: underline; }
/* Phones: the sheet's two actions stay in reach at the bottom (sticky, solid background). */
.ws-dock { position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--line), 0 -8px 20px var(--shadow); }
.ws-dock .btn { min-width: 0; padding: 0 10px; }
.ws-dock .btn:only-child { grid-column: 1 / -1; }

/* ---- wider screens ---------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .gtiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gt .art { width: 72px; height: 72px; } .worksheets .gt { padding: 18px 8px 14px; } .gt b { font-size: 1.25rem; }
  .shelf-row { grid-auto-columns: 150px; }
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .season .st-row { grid-template-columns: repeat(4, minmax(0, 150px)); }
  .ways ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stabs b { font-size: 0.9375rem; } .stabs .art { width: 44px; height: 44px; }
  .srows li { grid-template-columns: 56px minmax(0, 1fr) auto; padding-bottom: 10px; } .srows .sr-th { grid-row: auto; align-self: center; } .srows .pl { grid-column: auto; }
  .paper-bg { padding: 22px 18px; }
  .gh .art { width: 72px; height: 72px; }
  .app-qr { display: block; }
  .fw-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .worksheets .wrap { padding: 0 28px; }
  .ws-hero { padding: 20px 0 30px; }
  .signup-cta.wide { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 22px 26px; }
  .mail-cta.wide { padding: 22px 26px; }
  .mail-cta.wide .wm { grid-template-columns: minmax(0, 1fr) 180px auto; align-items: end; }
  .mail-cta.wide .wm-msg { grid-column: 1 / -1; }
  .shelf-row { margin: 0 -28px; padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 860px) {
  .gt b { font-size: 1.0625rem; }
  .shelf-row { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; overflow: visible; margin: 0; padding: 16px 18px 20px; }
  .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tcard { grid-template-columns: 96px minmax(0, 1fr); }
  .st-row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .ways ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ws-dock { display: none; }
}
@media (min-width: 940px) { .worksheets .lead { font-size: 1.125rem; } }
@media (min-width: 980px) {
  .lp { grid-template-columns: minmax(0, 1fr) 330px; }
}

/* ---- print: only the sheet and its answer key (sheet.css starts the key on a new page) ------------- */
@media print {
  body.worksheets { background: #fff !important; }
  .skip, .header, .footer, .ws-hero, .defs, .sheet-tools, .fine-print, .signup-cta, .mail-cta, .lp-rail, .more, .ws-dock { display: none !important; }
  .sheet-band, .paper-bg { padding: 0; margin: 0; background: none; border-radius: 0; }
  .worksheets .sheet-band .wrap { max-width: none; padding: 0; display: block; }
  .worksheets .ws { overflow: visible; }
}

/* Phones: the paper sheet uses the whole width (its print margins are for paper). */
@media screen and (max-width: 560px) {
  .worksheets .ws .sheet, .worksheets .ws .key { padding: 16px 14px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .shelf-row { scroll-snap-type: none; } }
