/* Bright themes (DRAFT, references/design/BRAND.md section 3). Loaded after library.css / make-shell.css on both pages.
   html[data-theme=pop]     A "Bright Pop": saturated blocks, Fredoka, rounded shapes, confetti.
   html[data-theme=picture] B "Bright Illustrated": picture-book scenes, Nunito, soft painted colour, pen doodles.
   html[data-theme=field] (or none) keeps the Field Map look untouched.
   Name-agnostic: nothing here depends on the brand string. Everything is inside @media screen, so a printed page or
   a rendered PDF never sees a theme (worksheets keep styles.css only). The first block of each theme holds its
   --pp-* tokens; scripts/check-site-contrast.cjs reads those blocks and checks every pair per theme. */

@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

@media screen {

/* ======================= tokens ======================= */
html[data-theme=pop] {
  --pp-ground: #FFFFFF;
  --pp-paper: #FFFFFF;
  --pp-ink: #1A1A40;
  --pp-muted: #4A4E6E;
  --pp-line: #868AA8;
  --pp-sky: #BDEBFF;
  --pp-canola: #FFD23F;
  --pp-canola-deep: #F5B700;
  --pp-math: #C81D3A;   --pp-math-field: #FF9E8F; --pp-math-field-2: #FFD1C9;
  --pp-eng: #2D4FCC;    --pp-eng-field: #9DB6FF;  --pp-eng-field-2: #D3DEFF;
  --pp-ar: #0B7552;     --pp-ar-field: #6FE0B4;   --pp-ar-field-2: #C2F4DF;
  --pp-member: #7A3DC6;
  --pp-g0: #FF6B6B; --pp-g1: #FFA23A; --pp-g2: #FFD23F; --pp-g3: #4CD995; --pp-g4: #38CBEF; --pp-g5: #7FA2FF; --pp-g6: #B58CFF;
  --pp-pink: #FF5DA2; --pp-orange: #FF9F1C; --pp-band: #FFB74A; --pp-foot: #2A1F6B;
}
html[data-theme=picture] {
  --pp-ground: #FFFFFF;
  --pp-paper: #FFFFFF;
  --pp-ink: #22223B;
  --pp-muted: #4C5070;
  --pp-line: #878BA6;
  --pp-sky: #CFEBFF;
  --pp-canola: #FFC93C;
  --pp-canola-deep: #F2AE00;
  --pp-math: #C2253C;   --pp-math-field: #FFAE9A; --pp-math-field-2: #FFC8B9;
  --pp-eng: #2B5BD7;    --pp-eng-field: #A8C2FF;  --pp-eng-field-2: #C9D8FF;
  --pp-ar: #0E7A55;     --pp-ar-field: #8EE3BF;   --pp-ar-field-2: #B8EDD5;
  --pp-member: #7A3DC6;
  --pp-g0: #FF8A80; --pp-g1: #FFB65C; --pp-g2: #FFD95E; --pp-g3: #7FDDA4; --pp-g4: #6FD3F2; --pp-g5: #9DB8FF; --pp-g6: #C7A6FF;
  --pp-pink: #FF7BB0; --pp-orange: #FFB65C; --pp-band: #FFE07A; --pp-foot: #24305E;
  /* darkest point of each watercolour wash (field x 0.74, images/site/wash-texture.webp); checked against ink */
  --pp-wash-math: #BC8071; --pp-wash-eng: #7C8FBC; --pp-wash-ar: #69A78D;
}

/* ======================= shared by both bright themes ======================= */
html[data-theme=pop], html[data-theme=picture] { --pp-rule: 2px solid var(--pp-ink); }
html[data-theme=pop] body, html[data-theme=picture] body { background: #fff; }
html[data-theme=pop] .pp-hdr, html[data-theme=picture] .pp-hdr { background: #fff; border-bottom: 0; }
/* a colour stripe under the header: one band per grade colour, the colours kids learn to navigate by */
html[data-theme=pop] .pp-hdr::after, html[data-theme=picture] .pp-hdr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; pointer-events: none;
  background: linear-gradient(90deg, var(--pp-g0) 0 14.3%, var(--pp-g1) 0 28.6%, var(--pp-g2) 0 42.9%, var(--pp-g3) 0 57.2%, var(--pp-g4) 0 71.5%, var(--pp-g5) 0 85.8%, var(--pp-g6) 0);
}
html[data-theme=pop] .pp-hdr { box-shadow: 0 6px 0 0 transparent; }
/* grade colours on the map's numeral headers, the search grade strip and the footer numerals */
html[data-theme=pop] .map .gh:nth-child(2), html[data-theme=picture] .map .gh:nth-child(2) { --gc: var(--pp-g0); }
html[data-theme=pop] .map .gh:nth-child(3), html[data-theme=picture] .map .gh:nth-child(3) { --gc: var(--pp-g1); }
html[data-theme=pop] .map .gh:nth-child(4), html[data-theme=picture] .map .gh:nth-child(4) { --gc: var(--pp-g2); }
html[data-theme=pop] .map .gh:nth-child(5), html[data-theme=picture] .map .gh:nth-child(5) { --gc: var(--pp-g3); }
html[data-theme=pop] .map .gh:nth-child(6), html[data-theme=picture] .map .gh:nth-child(6) { --gc: var(--pp-g4); }
html[data-theme=pop] .map .gh:nth-child(7), html[data-theme=picture] .map .gh:nth-child(7) { --gc: var(--pp-g5); }
html[data-theme=pop] .map .gh:nth-child(8), html[data-theme=picture] .map .gh:nth-child(8) { --gc: var(--pp-g6); }
html[data-theme=pop] .strip button:nth-child(2), html[data-theme=picture] .strip button:nth-child(2) { --gc: var(--pp-g0); }
html[data-theme=pop] .strip button:nth-child(3), html[data-theme=picture] .strip button:nth-child(3) { --gc: var(--pp-g1); }
html[data-theme=pop] .strip button:nth-child(4), html[data-theme=picture] .strip button:nth-child(4) { --gc: var(--pp-g2); }
html[data-theme=pop] .strip button:nth-child(5), html[data-theme=picture] .strip button:nth-child(5) { --gc: var(--pp-g3); }
html[data-theme=pop] .strip button:nth-child(6), html[data-theme=picture] .strip button:nth-child(6) { --gc: var(--pp-g4); }
html[data-theme=pop] .strip button:nth-child(7), html[data-theme=picture] .strip button:nth-child(7) { --gc: var(--pp-g5); }
html[data-theme=pop] .strip button:nth-child(8), html[data-theme=picture] .strip button:nth-child(8) { --gc: var(--pp-g6); }
html[data-theme=pop] .pp-fgrades li:nth-child(1) a, html[data-theme=picture] .pp-fgrades li:nth-child(1) a { color: var(--pp-g0); }
html[data-theme=pop] .pp-fgrades li:nth-child(2) a, html[data-theme=picture] .pp-fgrades li:nth-child(2) a { color: var(--pp-g1); }
html[data-theme=pop] .pp-fgrades li:nth-child(3) a, html[data-theme=picture] .pp-fgrades li:nth-child(3) a { color: var(--pp-g2); }
html[data-theme=pop] .pp-fgrades li:nth-child(4) a, html[data-theme=picture] .pp-fgrades li:nth-child(4) a { color: var(--pp-g3); }
html[data-theme=pop] .pp-fgrades li:nth-child(5) a, html[data-theme=picture] .pp-fgrades li:nth-child(5) a { color: var(--pp-g4); }
html[data-theme=pop] .pp-fgrades li:nth-child(6) a, html[data-theme=picture] .pp-fgrades li:nth-child(6) a { color: var(--pp-g5); }
html[data-theme=pop] .pp-fgrades li:nth-child(7) a, html[data-theme=picture] .pp-fgrades li:nth-child(7) a { color: var(--pp-g6); }
/* the prairie drawings are the Manitoba skin of the Field Map look; the bright themes bring their own art */
html[data-theme=pop] .pp-fstrip, html[data-theme=picture] .pp-fstrip { display: none; }
html[data-theme=pop] .pp-fstrip + .pp-ftr, html[data-theme=picture] .pp-fstrip + .pp-ftr { margin-top: 64px; }
html[data-theme=pop] .horizon > *, html[data-theme=picture] .horizon > * { display: none; }
/* footer: one deep colour block */
html[data-theme=pop] .pp-ftr, html[data-theme=picture] .pp-ftr { background: var(--pp-foot); color: #fff; }
html[data-theme=pop] .pp-ftr li a, html[data-theme=picture] .pp-ftr li a, html[data-theme=pop] .pp-ftr .pp-logo, html[data-theme=picture] .pp-ftr .pp-logo { color: #fff; }
html[data-theme=pop] .pp-ftr p, html[data-theme=picture] .pp-ftr p, html[data-theme=pop] .pp-fbase, html[data-theme=picture] .pp-fbase { color: #E4E2F5; }
/* hover tints that were cream */
html[data-theme=pop] .pp-btn:hover, html[data-theme=picture] .pp-btn:hover, html[data-theme=pop] .strip button:hover, html[data-theme=picture] .strip button:hover { background: #F3F6FF; }
/* stickers: "New!" on the newest-sheets heading (tilted, like a label on a book cover) */
html[data-theme=pop] #h-new::after, html[data-theme=picture] #h-new::after {
  content: "New!"; display: inline-block; margin-left: 12px; padding: 4px 10px 3px; transform: rotate(-6deg) translateY(-4px);
  background: var(--pp-pink); color: var(--pp-ink); font: 700 .95rem/1.1 var(--pp-sans); vertical-align: middle; border-radius: 999px;
  box-shadow: 2px 2px 0 var(--pp-ink);
}
/* ages under the grade numerals (a parent's question, a kid's "that's me") */
html[data-theme=pop] .map .gh small, html[data-theme=picture] .map .gh small { color: var(--pp-ink); }
html[data-theme=pop] .map .gh, html[data-theme=picture] .map .gh { position: relative; }
html[data-theme=pop] .map .gh[data-age]::after, html[data-theme=picture] .map .gh[data-age]::after {
  content: "Ages " attr(data-age); position: absolute; right: 6px; top: 6px; padding: 2px 7px 1px; border-radius: 999px;
  background: #fff; color: var(--pp-ink); font: 700 .68rem/1.3 var(--pp-sans); letter-spacing: 0; transform: rotate(4deg);
  box-shadow: 0 0 0 1.5px var(--pp-ink);
}
@media (max-width: 1000px) { html[data-theme=pop] .map .gh[data-age]::after, html[data-theme=picture] .map .gh[data-age]::after { display: none; } }
/* theme switch (draft comparison only) */
.pp-theme-switch {
  position: fixed; left: 12px; bottom: 12px; z-index: 300; display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 6px 8px; background: #fff; border: 2px solid #1A1A40; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
  font: 600 12px/1.2 "Atkinson Next", system-ui, sans-serif; color: #1A1A40;
}
.pp-theme-switch span { padding: 0 4px; font-weight: 700; }
.pp-theme-switch button { min-height: 32px; padding: 0 10px; border: 1.5px solid #1A1A40; border-radius: 8px; background: #fff; color: #1A1A40; font: inherit; cursor: pointer; }
.pp-theme-switch button[aria-pressed=true] { background: #1A1A40; color: #fff; }
.pp-theme-switch button:focus-visible { outline: 3px solid #1A1A40; outline-offset: 2px; }
@media (max-width: 560px) { .pp-theme-switch { left: 6px; right: 6px; bottom: 6px; justify-content: center; } .pp-theme-switch span { display: none; } }

/* ======================= A: Bright Pop ======================= */
html[data-theme=pop] { --pp-display: "Fredoka", "Atkinson Next", sans-serif; }
html[data-theme=pop] .disp, html[data-theme=pop] h1, html[data-theme=pop] h2, html[data-theme=pop] .pp-logo,
html[data-theme=pop] .map .gh, html[data-theme=pop] .strip button, html[data-theme=pop] .ledger .big { font-weight: 600; letter-spacing: -.01em; }
html[data-theme=pop] .pp-logo .pp-mark path:nth-child(2) { fill: var(--pp-pink); }
html[data-theme=pop] .pp-logo .pp-shim { color: var(--pp-pink); }
html[data-theme=pop] .pp-ftr .pp-shim { color: var(--pp-g2); }
/* buttons, inputs and chips: pills with a chunky outline and a coloured offset */
html[data-theme=pop] .pp-btn, html[data-theme=pop] .find, html[data-theme=pop] .pp-search, html[data-theme=pop] .topic,
html[data-theme=pop] .badge, html[data-theme=pop] .pill-note, html[data-theme=pop] .fit-partial { border-radius: 999px; }
html[data-theme=pop] .find { overflow: hidden; box-shadow: 5px 5px 0 var(--pp-pink); border-width: 2.5px; }
html[data-theme=pop] .pp-search { overflow: hidden; }
html[data-theme=pop] .pp-btn-go { box-shadow: 4px 4px 0 var(--pp-pink); }
html[data-theme=pop] .pp-navlink .pp-dot { border-radius: 50%; }
/* hero: sunny sky with confetti shapes in place of the horizon drawing */
html[data-theme=pop] .hero { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%201400%20460%27%20preserveAspectRatio%3D%27xMidYMid%20slice%27%3E%3Cg%20stroke%3D%27%231A1A40%27%20stroke-width%3D%273%27%20stroke-linejoin%3D%27round%27%20stroke-linecap%3D%27round%27%3E%3Ccircle%20cx%3D%2738%27%20cy%3D%2760%27%20r%3D%2711%27%20fill%3D%27%23FF5DA2%27%2F%3E%3Cpath%20d%3D%27M84%20150l18%2030H66z%27%20fill%3D%27%23FFD23F%27%2F%3E%3Crect%20x%3D%2724%27%20y%3D%27250%27%20width%3D%2722%27%20height%3D%2722%27%20rx%3D%275%27%20transform%3D%27rotate(18%2035%20261)%27%20fill%3D%27%234CD995%27%2F%3E%3Cpath%20d%3D%27M96%20330l6%2013%2014%201-11%209%204%2014-13-7-13%207%204-14-11-9%2014-1z%27%20fill%3D%27%237FA2FF%27%2F%3E%3Cpath%20d%3D%27M20%20410c9-11%2018%2011%2027%200s18%2011%2027%200%27%20fill%3D%27none%27%20stroke%3D%27%23FF9F1C%27%20stroke-width%3D%276%27%2F%3E%3Ccircle%20cx%3D%271362%27%20cy%3D%2754%27%20r%3D%279%27%20fill%3D%27%23B58CFF%27%2F%3E%3Cpath%20d%3D%27M1300%20120l6%2013%2014%201-11%209%204%2014-13-7-13%207%204-14-11-9%2014-1z%27%20fill%3D%27%23FFD23F%27%2F%3E%3Cpath%20d%3D%27M1330%20230c9-11%2018%2011%2027%200s18%2011%2027%200%27%20fill%3D%27none%27%20stroke%3D%27%23FF5DA2%27%20stroke-width%3D%276%27%2F%3E%3Crect%20x%3D%271350%27%20y%3D%27320%27%20width%3D%2722%27%20height%3D%2722%27%20rx%3D%275%27%20transform%3D%27rotate(-14%201361%20331)%27%20fill%3D%27%2338CBEF%27%2F%3E%3Cpath%20d%3D%27M1290%20400l18%2030h-36z%27%20fill%3D%27%23FF6B6B%27%2F%3E%3Ccircle%20cx%3D%27640%27%20cy%3D%27440%27%20r%3D%277%27%20fill%3D%27%234CD995%27%2F%3E%3Cpath%20d%3D%27M760%2018l14%2024h-28z%27%20fill%3D%27%23FF9F1C%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / cover no-repeat, var(--pp-sky); }
html[data-theme=pop] .hero h1 em { background: var(--pp-canola); border-radius: 14px; padding: 0 .12em; box-shadow: 4px 4px 0 var(--pp-ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-theme=pop] .hero .label { display: inline-block; padding: 6px 12px; background: var(--pp-ink); color: #fff; border-radius: 999px; transform: rotate(-2deg); }
html[data-theme=pop] .hero .cols > div:last-child { padding: 22px 24px 8px; background: #fff; border: 2.5px solid var(--pp-ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--pp-ink); }
html[data-theme=pop] .horizon { height: 64px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V40c60-26 120-26 180 0s120 26 180 0 120-26 180 0 120 26 180 0 120-26 180 0 120 26 180 0 120-26 180 0 60 13 60 13v11z' fill='%23fff' stroke='%231A1A40' stroke-width='3'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
/* map: rounded tiles with gaps, solid bold fills with a dot pattern, grade-colour headers */
html[data-theme=pop] .map { gap: 8px; border: 0; margin-top: 18px; }
html[data-theme=pop] .map > * { border: 2.5px solid var(--pp-ink); border-radius: 16px; overflow: hidden; }
html[data-theme=pop] .map .corner { border-color: transparent; background: none; }
html[data-theme=pop] .map .gh { background: var(--gc, #fff); }
html[data-theme=pop] .map .sh { background: #fff; }
html[data-theme=pop] .cell svg { display: none; }
html[data-theme=pop] a.cell { background-image: radial-gradient(rgba(255,255,255,.55) 2.2px, transparent 2.6px); background-size: 16px 16px; }
html[data-theme=pop] .cell.fallow, html[data-theme=pop] .cell.none { border-style: dashed; }
html[data-theme=pop] .cell .n { border-radius: 999px; border-width: 2px; }
html[data-theme=pop] a.cell:hover .n, html[data-theme=pop] a.cell:focus-visible .n { box-shadow: 3px 3px 0 var(--pp-pink); }
html[data-theme=pop] .legend i { border-radius: 6px; }
/* cards: rounded, separated, a chunky outline and a bright plot */
html[data-theme=pop] .grid { gap: 18px; border: 0; }
html[data-theme=pop] .card { border: 2.5px solid var(--pp-ink); border-radius: 20px; overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s; }
html[data-theme=pop] .card:hover { transform: translateY(-3px); box-shadow: 5px 6px 0 var(--pp-ink); }
html[data-theme=pop] .plot { background-image: radial-gradient(rgba(255,255,255,.5) 2.2px, transparent 2.6px); background-size: 16px 16px; border-bottom-width: 2.5px; }
html[data-theme=pop] .plot img, html[data-theme=pop] .plot .placeholder { border-radius: 6px; }
html[data-theme=pop] .plot .tag { left: 10px; bottom: 10px; border-radius: 999px; transform: rotate(-3deg); }
/* section heads: a squiggle instead of the dotted leader */
html[data-theme=pop] .sec-h .fill { border: 0; height: 12px; transform: none; align-self: center; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6c5-6 10-6 15 0s10 6 15 0 10-6 15 0' fill='none' stroke='%23FF5DA2' stroke-width='3'/%3E%3C/svg%3E") left center / 40px 12px repeat-x; }
/* make band: an orange block with confetti; ledger: three coloured panels */
html[data-theme=pop] .make-band { background-color: var(--pp-band); border-block-width: 2.5px; }
html[data-theme=pop] .make-band .feed img { border-radius: 8px; }
html[data-theme=pop] .ledger { gap: 14px; border: 0; }
html[data-theme=pop] .ledger > div { border: 2.5px solid var(--pp-ink); border-radius: 20px; background: var(--f2, #fff); }
html[data-theme=pop] .ledger p { color: var(--pp-ink); }
/* browse/search */
html[data-theme=pop] .bhead h1 q { background: var(--pp-canola); border-radius: 12px; padding: 0 .1em; }
html[data-theme=pop] .strip { gap: 8px; border: 0; }
html[data-theme=pop] .strip button { border: 2.5px solid var(--pp-ink); border-radius: 16px; background: var(--gc, #fff); }
html[data-theme=pop] .strip button[aria-pressed=true] { background: var(--pp-ink); color: #fff; box-shadow: 4px 4px 0 var(--pp-pink); }
html[data-theme=pop] .strip button.zero { background: #fff; }
html[data-theme=pop] .filters { border-radius: 20px; overflow: hidden; border-width: 2.5px; }
html[data-theme=pop] .empty { border-radius: 20px; }
/* resource */
html[data-theme=pop] .res { border-radius: 24px; overflow: hidden; border-width: 2.5px; }
html[data-theme=pop] .levels a, html[data-theme=pop] .levels span { border-radius: 14px; }
/* make.html */
html[data-theme=pop] .landing-shell { background: #fff; }
html[data-theme=pop] .quick-access { gap: 14px; border: 0; }
html[data-theme=pop] .quick-card, html[data-theme=pop] .quick-card[class*=accent-] { border: 2.5px solid var(--pp-ink); border-radius: 20px; background: #fff; }
html[data-theme=pop] .quick-card:nth-child(7n+1) .quick-icon { background: var(--pp-g0); }
html[data-theme=pop] .quick-card:nth-child(7n+2) .quick-icon { background: var(--pp-g1); }
html[data-theme=pop] .quick-card:nth-child(7n+3) .quick-icon { background: var(--pp-g2); }
html[data-theme=pop] .quick-card:nth-child(7n+4) .quick-icon { background: var(--pp-g3); }
html[data-theme=pop] .quick-card:nth-child(7n+5) .quick-icon { background: var(--pp-g4); }
html[data-theme=pop] .quick-card:nth-child(7n+6) .quick-icon { background: var(--pp-g5); }
html[data-theme=pop] .quick-card:nth-child(7n+7) .quick-icon { background: var(--pp-g6); }
html[data-theme=pop] .quick-card .quick-icon { border-radius: 14px; border-width: 2px; }
html[data-theme=pop] .landing-badges span { border-radius: 999px; }
html[data-theme=pop] .subject-nav { background: #fff; }

/* ======================= B: Bright Illustrated ======================= */
html[data-theme=picture] { --pp-display: "Nunito", "Atkinson Next", sans-serif; }
html[data-theme=picture] .disp, html[data-theme=picture] h1, html[data-theme=picture] h2, html[data-theme=picture] .pp-logo,
html[data-theme=picture] .map .gh, html[data-theme=picture] .strip button, html[data-theme=picture] .ledger .big { font-weight: 900; letter-spacing: -.015em; }
html[data-theme=picture] .pp-logo .pp-mark path:nth-child(2) { fill: var(--pp-canola); }
html[data-theme=picture] .pp-logo .pp-mark path:nth-child(4), html[data-theme=picture] .pp-logo .pp-mark path:nth-child(5) { stroke: #2C7BE5; }
html[data-theme=picture] .pp-logo .pp-shim { color: #2C7BE5; }
html[data-theme=picture] .pp-ftr .pp-shim { color: var(--pp-canola); }
/* soft rounded shapes, no hard offsets */
html[data-theme=picture] .pp-btn, html[data-theme=picture] .find, html[data-theme=picture] .pp-search, html[data-theme=picture] .topic,
html[data-theme=picture] .badge, html[data-theme=picture] .pill-note { border-radius: 14px; }
html[data-theme=picture] .find { overflow: hidden; box-shadow: 0 6px 0 rgba(43, 91, 215, .25); }
html[data-theme=picture] .pp-search { overflow: hidden; }
html[data-theme=picture] .pp-btn-go { box-shadow: 0 4px 0 var(--pp-canola-deep); }
html[data-theme=picture] .pp-navlink .pp-dot { border-radius: 50%; }
/* hero: white page with soft painted washes; the picture-book scene sits where the horizon was */
html[data-theme=picture] .hero {
  background:
    radial-gradient(38% 60% at 8% 18%, rgba(255, 201, 60, .38), transparent 70%),
    radial-gradient(30% 50% at 92% 12%, rgba(255, 123, 176, .26), transparent 70%),
    radial-gradient(60% 80% at 70% 70%, rgba(111, 211, 242, .36), transparent 72%),
    #fff;
}
html[data-theme=picture] .hero .label { color: var(--pp-ink); }
html[data-theme=picture] .hero .label::before { content: ""; display: inline-block; width: 22px; height: 14px; margin-right: 8px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M2 7c4-6 7 6 11 0s5-4 7-1' fill='none' stroke='%23C2253C' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
/* the picture-book scene (user-approved 2026-11-19: assets/illustrations/brand/kids-hero-gemini-color.png, Gemini edit; web copy images/site/kids-hero.webp; previous copy kids-hero-prev.webp):
   kids are the heroes; it sits where the Field Map's horizon strip was and draws its own ground line */
html[data-theme=picture] .horizon { height: clamp(96px, 16vw, 218px); margin-top: 0; background: url("images/site/kids-hero.webp") center bottom / contain no-repeat; mix-blend-mode: multiply; }
/* map: rounded painted tiles, coloured hatching (the subject's strong colour), grade-colour numerals on a paint dab */
html[data-theme=picture] .map { gap: 6px; border: 0; margin-top: 14px; }
html[data-theme=picture] .map > * { border: 0; border-radius: 18px; overflow: hidden; }
html[data-theme=picture] .map .corner, html[data-theme=picture] .map .sh { background: #fff; }
html[data-theme=picture] .map .gh { position: relative; background: #fff; z-index: 0; }
html[data-theme=picture] .map .gh::before { content: ""; position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; z-index: -1; border-radius: 52% 48% 45% 55% / 55% 45% 55% 45%; background: var(--gc, #eee); }
/* watercolour washes instead of the Field Map's ruled hatching: the field colour multiplied by one shared painted
   texture (pigment pools, granulation, paper grain, a darker drying edge), clipped by an uneven painted edge.
   Two small files (images/site/wash-texture.webp, wash-mask.png) serve every subject and grade. */
html[data-theme=picture] .cell svg { display: none; }
html[data-theme=picture] .map > .cell { border-radius: 0; overflow: visible; }
/* !important: the map writes its tile colour as an inline background shorthand, which would clear the texture */
html[data-theme=picture] a.cell, html[data-theme=picture] .plot, html[data-theme=picture] .viewer {
  background-image: url("images/site/wash-texture.webp") !important; background-size: 100% 100% !important; background-repeat: no-repeat !important;
  background-blend-mode: multiply;
}
html[data-theme=picture] a.cell:nth-child(even) { background-size: 140% 130% !important; background-position: 70% 30% !important; }
html[data-theme=picture] .card .plot::before { display: none; } /* the cards' ruled hatch layer */
html[data-theme=picture] a.cell {
  -webkit-mask: url("images/site/wash-mask.png") 0 0 / 100% 100% no-repeat; mask: url("images/site/wash-mask.png") 0 0 / 100% 100% no-repeat;
}
html[data-theme=picture] a.cell:focus-visible { -webkit-mask: none; mask: none; border-radius: 18px; }
html[data-theme=picture] .plot { background-color: var(--f); background-position: center; }
html[data-theme=picture] .plot.t2 { background-color: var(--f2); }
html[data-theme=picture] .legend span:nth-child(2) { display: none; } /* "closer rows" means nothing without rows */
/* subject cue that does not rely on colour: a small mark in every tile and beside every row name
   (Math: plus and minus; English: Aa; Arabic: the letter alif-ba), once per row; the row header sits beside its
   tiles at every width, so a per-tile badge is not needed (greyscale check, polish round) */
html[data-theme=picture] .map .sh b::before {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--pp-ink);
  box-shadow: 0 0 0 1.5px var(--pp-ink); font: 800 13px/1 var(--pp-sans);
}
html[data-theme=picture] .map .sh b::before { margin-right: 8px; vertical-align: 3px; }
html[data-theme=picture] .map .sh[data-s=math] b::before { content: "+−"; }
html[data-theme=picture] .map .sh[data-s=english] b::before { content: "Aa"; }
html[data-theme=picture] .map .sh[data-s=arabic] b::before { content: "اب"; font-family: var(--pp-arabic); font-size: 14px; }

html[data-theme=picture] .cell.fallow, html[data-theme=picture] .cell.none { background: #F6F8FC; }
html[data-theme=picture] .cell .n { border-radius: 12px; border-width: 2px; }
html[data-theme=picture] a.cell:hover .n, html[data-theme=picture] a.cell:focus-visible .n { box-shadow: 0 4px 0 var(--pp-canola-deep); }
/* cards: white, soft corners, a painted plot; the sheet still the only thing with a paper shadow */
html[data-theme=picture] .grid { gap: 20px; border: 0; }
html[data-theme=picture] .card { border: 2px solid #E3E6F2; border-radius: 22px; overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
html[data-theme=picture] .card:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 10px 22px -10px rgba(34, 34, 59, .35); }
html[data-theme=picture] .plot { border-bottom: 0; }
html[data-theme=picture] .plot .tag { left: 10px; bottom: 10px; border-radius: 10px; }
/* section heads: a pen arrow doodle instead of the dotted leader */
html[data-theme=picture] .sec-h .fill { border: 0; height: 16px; transform: none; align-self: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 9c40-5 80 3 130-1s90-4 160 0' fill='none' stroke='%232B5BD7' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='1 7'/%3E%3C/svg%3E") left center / 100% 16px no-repeat; }
/* make band: a sunny painted wash with the cast as wayfinders */
html[data-theme=picture] .make-band { background: radial-gradient(70% 120% at 80% 40%, rgba(255, 182, 92, .55), transparent 70%), var(--pp-band); border: 0; border-radius: 0; }
html[data-theme=picture] .make-band .feed img { border-radius: 6px; }
/* characters as wayfinders: the hedgehog carries the stack into the Make band; the pair laughs in empty states */
html[data-theme=picture][data-dev-view] .make-band .feed::before { content: ""; position: absolute; left: -96px; bottom: 0; z-index: 2; width: 170px; height: 140px;
  background: url("images/site/cast-carry.webp") left bottom / contain no-repeat; mix-blend-mode: multiply; }
html[data-theme=picture][data-dev-view] .empty { padding-right: 190px; min-height: 170px; }
html[data-theme=picture][data-dev-view] .empty::after { content: ""; position: absolute; right: 18px; bottom: 10px; width: 150px; height: 160px;
  background: url("images/site/cast-laugh.webp") right bottom / contain no-repeat; mix-blend-mode: multiply; }
@media (max-width: 760px) {
  html[data-theme=picture] .make-band .feed::before { display: none; }
  html[data-theme=picture][data-dev-view] .empty { padding-right: 28px; padding-bottom: 150px; }
  html[data-theme=picture][data-dev-view] .empty::after { width: 120px; height: 130px; }
}
html[data-theme=picture] .ledger { gap: 16px; border: 0; }
html[data-theme=picture] .ledger > div { border: 0; border-radius: 22px; background: var(--f2, #fff); }
html[data-theme=picture] .ledger p { color: var(--pp-ink); }
/* browse/search */
html[data-theme=picture] .strip { gap: 6px; border: 0; }
html[data-theme=picture] .strip button { border: 0; border-radius: 16px; background: #F6F8FC; box-shadow: inset 0 -6px 0 var(--gc, transparent); }
html[data-theme=picture] .strip button[aria-pressed=true] { background: var(--pp-ink); color: #fff; }
html[data-theme=picture] .filters { border-radius: 22px; overflow: hidden; border: 2px solid #E3E6F2; }
html[data-theme=picture] .filters-head { background: var(--pp-ink); }
html[data-theme=picture] .empty { border-radius: 22px; border-color: var(--pp-eng); background: #F3F7FF; }
/* resource */
html[data-theme=picture] .res { border-radius: 26px; overflow: hidden; border: 2px solid #E3E6F2; }
html[data-theme=picture] .levels a, html[data-theme=picture] .levels span { border-radius: 14px; }
/* make.html */
html[data-theme=picture] .landing-shell { background: #fff; }
html[data-theme=picture] .quick-access { gap: 14px; border: 0; }
html[data-theme=picture] .quick-card, html[data-theme=picture] .quick-card[class*=accent-] { border: 2px solid #E3E6F2; border-radius: 22px; background: #fff; }
html[data-theme=picture] .quick-card:nth-child(7n+1) .quick-icon { background: var(--pp-g0); }
html[data-theme=picture] .quick-card:nth-child(7n+2) .quick-icon { background: var(--pp-g1); }
html[data-theme=picture] .quick-card:nth-child(7n+3) .quick-icon { background: var(--pp-g2); }
html[data-theme=picture] .quick-card:nth-child(7n+4) .quick-icon { background: var(--pp-g3); }
html[data-theme=picture] .quick-card:nth-child(7n+5) .quick-icon { background: var(--pp-g4); }
html[data-theme=picture] .quick-card:nth-child(7n+6) .quick-icon { background: var(--pp-g5); }
html[data-theme=picture] .quick-card:nth-child(7n+7) .quick-icon { background: var(--pp-g6); }
html[data-theme=picture] .quick-card .quick-icon { border: 0; border-radius: 50% 46% 52% 48%; }
html[data-theme=picture] .landing-badges span { border-radius: 12px; }
html[data-theme=picture] .subject-nav { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  html[data-theme=pop] .card, html[data-theme=picture] .card { transition: none; }
  html[data-theme=pop] .card:hover, html[data-theme=picture] .card:hover { transform: none; }
}
} /* @media screen */

@media print { .pp-theme-switch { display: none !important; } }

@media screen {
  html[data-theme=pop] .hero .cols > div:last-child { padding: 20px 18px 6px; }
  @media (max-width: 1000px) {
    html[data-theme=pop] .find { border-radius: 22px; }
    html[data-theme=pop] .horizon { height: 34px; }
  }
}

/* B: the drawn mark (DRAFT, assets/illustrations/brand/mark-primary-color-draft.png; web copy images/site/mark.webp)
   replaces the code-drawn page mark in the header and footer. The wordmark stays live text from site-config.js. */
@media screen {
  html[data-theme=picture] .pp-logo .pp-mark { display: none; }
  html[data-theme=picture] .pp-logo::before { content: ""; flex: none; width: 46px; height: 46px; margin: -6px -2px -6px 0; background: url("images/site/mark.webp") center / contain no-repeat; }
  @media (max-width: 760px) { html[data-theme=picture] .pp-hdr .pp-logo::before { width: 34px; height: 34px; margin: -4px 0; } }
}

/* polish round: a shorter hero so the map's first row shows above the fold at 1366x900; a search field wide enough
   for its placeholder in both bright themes */
@media screen {
  html[data-theme=picture] .hero { padding-top: 30px; }
  html[data-theme=picture] .hero .lead { margin-bottom: 14px; }
  html[data-theme=picture] .hero .try { margin-bottom: 8px; }
  html[data-theme=pop] .find input, html[data-theme=picture] .find input { padding: 0 12px; font-size: 1.02rem; }
  html[data-theme=pop] .hero .find-grade select, html[data-theme=picture] .hero .find-grade select { max-width: 124px; }
  html[data-theme=pop] .hero .find button, html[data-theme=picture] .hero .find button { padding: 0 16px; }
}
@media screen and (min-width: 1001px) {
  html[data-theme=pop] .hero .find-grade select { max-width: 116px; padding-left: 10px; font-size: .95rem; }
  html[data-theme=pop] .hero .find button { padding: 0 11px; }
}

/* Languages (main's menu, references/LANGUAGES_PLAN.md) in theme B: the same soft white cards as the quick cards */
html[data-theme=picture] .lang-card { border: 2px solid #E3E6F2; border-radius: 22px; background: #fff; transition: border-color .15s, box-shadow .15s; }
html[data-theme=picture] a.lang-card:hover { border-color: #7FCFA6; box-shadow: 0 10px 22px -10px rgba(34, 34, 59, .35); }
html[data-theme=picture] .lang-card b { font-weight: 900; }
html[data-theme=picture] .mega-grid.lang-grid .mega-col h3, html[data-theme=picture] .mega-grid.lang-grid .mega-col b { font-weight: 900; }

/* Cast crops (cast-carry, cast-laugh) are drafts: dev view only (html[data-dev-view], set by site-config.js), with a Draft label. */
html[data-dev-view] .make-band .feed::after, html[data-dev-view] .empty::before { content: "Draft"; position: absolute; z-index: 3; font: 700 11px/1 sans-serif; color: #000; background: #fff; border: 1px solid #000; border-radius: 3px; padding: 2px 5px; pointer-events: none; }
html[data-dev-view] .make-band .feed::after { left: 10px; bottom: 4px; }
html[data-dev-view] .empty::before { right: 24px; bottom: 4px; }
@media print { html[data-dev-view] .make-band .feed::after, html[data-dev-view] .empty::before { display: none; } }
