@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-wdth.woff2") format("woff2-variations"), url("/assets/fonts/archivo-latin-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-next-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-next-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-next-700.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-600.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-700.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("/assets/fonts/atkinson-mono-500.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* drlewicki.com
   Layout: a lyric sheet. Navy like the music videos; yellow for actions and timestamps;
   one color per subject (teal science, yellow math, purple ELA). Dark first, light for light-mode visitors. */
:root {
  --bg: #0b1426; --band: #0f1a31; --surface: #15213c; --surface-2: #1b2948; --line: #283a62;
  --fg: #eef1fa; --muted: #aab4cf; --faint: #7f8bab;
  --btn: #ffd23f; --on-btn: #1a1500; --stamp: #ffd23f; --now: #1f3157;
  --sci: #3fd6d0; --math: #ffd23f; --ela: #ab9bff; --link: #8fe7e3;
  --focus: #ffd23f;
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --f-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb; --band: #edf0f8; --surface: #ffffff; --surface-2: #f0f2f9; --line: #d4daea;
    --fg: #0f1a33; --muted: #4c5775; --faint: #6b7592;
    --btn: #ffd23f; --on-btn: #1a1500; --stamp: #7a5600; --now: #fff4c7;
    --sci: #0a7a75; --math: #8a6200; --ela: #5b3fd1; --link: #0a6a66;
    --focus: #5b3fd1; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f7fb; --band: #edf0f8; --surface: #ffffff; --surface-2: #f0f2f9; --line: #d4daea;
  --fg: #0f1a33; --muted: #4c5775; --faint: #6b7592;
  --btn: #ffd23f; --on-btn: #1a1500; --stamp: #7a5600; --now: #fff4c7;
  --sci: #0a7a75; --math: #8a6200; --ela: #5b3fd1; --link: #0a6a66;
  --focus: #5b3fd1; color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.6 var(--f-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 108%; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.2rem); font-weight: 820; font-stretch: 112%; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem); font-weight: 780; }
h3 { font-size: 1.15rem; font-weight: 720; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--f-display); font-stretch: 125%; font-weight: 650; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--fg); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--on-btn); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-pic { width: 52px; height: 52px; border-radius: 50%; flex: none; display: block; }
@media (max-width: 560px) { .brand-pic { width: 46px; height: 46px; } }
.brand b { display: block; font-family: var(--f-display); font-stretch: 118%; font-weight: 820; font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1.1; }
.brand b small { font-size: 0.72em; font-weight: 700; letter-spacing: 0; }
.brand-text { display: grid; }
.brand-sub { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 4px 6px; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--surface-2); }
.nav a.nav-cta { background: var(--btn); color: var(--on-btn); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--btn); color: var(--on-btn); border: 2px solid var(--btn); cursor: pointer; font: 700 1rem/1.2 var(--f-body); }
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ext::after { content: "↗"; font-size: 0.85em; margin-left: 2px; }

/* subject marks */
.subj { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.92rem; }
.subj::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.subj.sci { color: var(--sci); } .subj.math { color: var(--math); } .subj.ela { color: var(--ela); }

/* sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { color: var(--muted); max-width: 52ch; }
.band { background: var(--band); border-block: 1px solid var(--line); }

/* home hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.hero h1 em { font-style: normal; color: var(--btn); }
:root[data-theme="light"] .hero h1 em { color: var(--fg); background: linear-gradient(transparent 62%, var(--btn) 62%); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hero h1 em { color: var(--fg); background: linear-gradient(transparent 62%, var(--btn) 62%); } }
.hero-copy { display: grid; gap: 20px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.95rem; list-style: none; padding: 0; margin: 0; }
.hero-facts li::before { content: "✓ "; color: var(--sci); font-weight: 700; }
.now-card { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.now-card a.thumb { border-radius: 10px; overflow: hidden; }
.now-card .meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; padding-inline: 4px; }
.now-card h2 { font-size: 1.35rem; }
.sheet { display: grid; gap: 2px; padding: 4px; border-top: 1px dashed var(--line); padding-top: 12px; }
.sheet .ln { display: grid; grid-template-columns: 4.2ch minmax(0, 1fr); gap: 10px; font-size: 0.95rem; color: var(--muted); }
.sheet .ln .mono { color: var(--stamp); }
.sheet .ln.hi { color: var(--fg); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* song cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px 20px; }
.card { display: grid; gap: 10px; align-content: start; color: var(--fg); text-decoration: none; min-width: 0; }
.card .thumb { border-radius: 10px; overflow: hidden; outline: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { font-size: 1.12rem; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card .topic { color: var(--muted); font-size: 0.95rem; }
.card .dur { color: var(--faint); font-size: 0.85rem; }
.card[hidden] { display: none; }

/* subject index on home */
.subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.watch-media > * { flex: none; }
.subject-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; align-content: start; }
.subject-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.subject-col li a { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--fg); padding: 6px 0; border-bottom: 1px solid var(--line); }
.subject-col li a span:last-child { color: var(--muted); font-size: 0.92rem; text-align: right; }
.subject-col li a:hover span:first-child { text-decoration: underline; }
@media (max-width: 860px) { .subjects { grid-template-columns: minmax(0, 1fr); } }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.how li { display: grid; gap: 8px; align-content: start; }
.how .k { font-family: var(--f-mono); color: var(--stamp); font-size: 0.95rem; }
@media (max-width: 760px) { .how { grid-template-columns: minmax(0, 1fr); } }

.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); }
@media (max-width: 700px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* songs page */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 700 0.95rem/1 var(--f-body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.search { flex: 1 1 240px; display: flex; }
.search input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; }
.count { color: var(--muted); font-size: 0.95rem; }
.subject-block + .subject-block { margin-top: 48px; }
.subject-block h2 { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.subject-block h2 .subj, .subject-col h3.subj { font-size: inherit; }
.subject-block h2 .subj::before { width: 14px; height: 14px; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* song page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.song-head { display: grid; gap: 14px; padding-block: 18px 30px; }
.song-head .tagline { font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); color: var(--btn); max-width: 40ch; line-height: 1.3; }
:root[data-theme="light"] .song-head .tagline { color: var(--fg); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .song-head .tagline { color: var(--fg); } }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.facts div { display: grid; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; }

.watch { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 48px; }
.watch-media { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow: auto; padding-bottom: 4px; }
@media (max-width: 980px) { .watch { grid-template-columns: minmax(0, 1fr); } .watch-media { position: static; max-height: none; overflow: visible; } }
.player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer; color: inherit; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player .play { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit; font: inherit; }
.player a.play { text-decoration: none; }
.player .play i { width: 76px; height: 76px; border-radius: 50%; background: var(--btn); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: transform .15s; }
.player .play i::after { content: ""; border-left: 24px solid var(--on-btn); border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.player:hover .play i { transform: scale(1.06); }
.player .note { position: absolute; left: 12px; bottom: 10px; right: 12px; color: #fff; font-size: 0.82rem; text-align: left; text-shadow: 0 1px 3px #000; }
.player iframe, .player .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.where { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 0.95rem; }
.where .muted { font-size: 0.88rem; }
details.parts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.parts > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
details.parts > summary::-webkit-details-marker { display: none; }
details.parts > summary::after { content: "+"; font-family: var(--f-mono); color: var(--muted); }
details.parts[open] > summary::after { content: "–"; }
.parts ol { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.parts li button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 4.6ch minmax(0, 1fr); gap: 10px; width: 100%; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.parts li button:hover, .parts li button:focus-visible { background: var(--surface-2); }
.parts li button.is-now { background: var(--now); }
.t { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--stamp); font-size: 0.9rem; }

.lyrics { display: grid; gap: 22px; min-width: 0; }
.lyrics-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.follow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.follow input { width: 18px; height: 18px; accent-color: var(--btn); }
.lyr-sec { display: grid; gap: 2px; }
.lyr-sec h3 { font-family: var(--f-display); font-stretch: 125%; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.lyr-line, .lyr-repeat { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 4.6ch minmax(0, 1fr); gap: 12px; padding: 5px 8px; border-radius: 8px; cursor: pointer; line-height: 1.5; }
.lyr-line:hover, .lyr-repeat:hover, .lyr-line:focus-visible, .lyr-repeat:focus-visible { background: var(--surface); }
.lyr-line.is-now, .lyr-repeat.is-now { background: var(--now); }
.lyr-line.is-now .tx { font-weight: 700; }
.lyr-repeat { color: var(--muted); font-style: italic; }
.lyr-note { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.teach { padding-block: 48px; }
.teach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 860px) { .teach-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel h3 { font-size: 1.1rem; }
.panel.wide { grid-column: 1 / -1; }
.q { font-size: 1.15rem; font-weight: 700; }
details.answer summary { cursor: pointer; color: var(--link); font-weight: 700; width: max-content; max-width: 100%; }
details.answer p { margin-top: 10px; }
.terms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.terms li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.95rem; }
.stds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stds li { display: grid; grid-template-columns: 9.5ch minmax(0, 1fr); gap: 12px; font-size: 0.97rem; }
.stds li .mono { font-weight: 600; color: var(--fg); font-size: 0.9rem; padding-top: 2px; }
.pack-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pack-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 0.97rem; }
.pack-items li span { color: var(--muted); }
.small { font-size: 0.88rem; color: var(--muted); }

/* prose pages */
.prose { max-width: 68ch; display: grid; gap: 18px; padding-block: 28px 64px; }
.prose h1 { margin-bottom: 4px; }
.prose h2 { font-size: 1.4rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.paper { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; }
.paper .t2 { font-weight: 700; }
.request-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 36px; align-items: start; padding-block: 28px 64px; }
@media (max-width: 900px) { .request-grid { grid-template-columns: minmax(0, 1fr); } }
.request-copy { display: grid; gap: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 12px; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.form-frame { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.form-frame iframe { display: block; width: 100%; height: 1500px; border: 0; }
.form-link { padding: 28px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; padding-block: 32px 40px; align-items: start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot a { color: var(--fg); }
.site-foot .social a { color: var(--muted); }
.site-foot p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }

/* preview banner (preview build only) */
.preview-bar { background: var(--btn); color: var(--on-btn); font-size: 0.92rem; }
.preview-bar .wrap { padding-block: 8px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .watch-media, .filters, .follow { display: none !important; } body { background: #fff; color: #000; } }
/* All links page (Oct 27): big tap targets, then the QR to show */
.links-page .link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-btn { width: 100%; justify-content: space-between; flex-wrap: wrap; text-align: left; min-height: 58px; padding: 12px 20px; }
.link-btn span { font-weight: 400; opacity: .85; font-size: .95rem; }
.links-qr { margin: 8px 0 0; display: grid; justify-items: start; gap: 8px; }
.links-qr .qr-box { width: min(240px, 70vw); background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--line); }
.links-qr .qr-box svg { width: 100%; height: auto; display: block; }
.links-qr figcaption { color: var(--muted); font-size: .95rem; }

/* email sign-up (Kit) */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 36px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); }
.signup-copy { display: grid; gap: 10px; }
.signup-copy h2 { margin: 0; }
.signup-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.signup .fld { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.signup .fld input, .signup .fld select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: 400 1rem/1.3 var(--f-body); }
.signup .fld input:focus-visible, .signup .fld select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.signup .chk { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.signup .chk input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--btn); }
.signup .btn { grid-column: 1 / -1; justify-self: start; }
.signup .small { grid-column: 1 / -1; margin: 0; }
.prose .signup { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
@media (max-width: 760px) { .signup { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .signup-fields { grid-template-columns: minmax(0, 1fr); } .signup .btn { justify-self: stretch; } }

/* ===== Color pass (Nov 17, 2026; Daniel: "Give the website more color") =====
   Same navy-first look, more of the brand colors: a rainbow rule, colored hero glow,
   every subject has its own color (cards, chips, columns, song headers), colored panels and term pills.
   --c is the color of the subject in scope; --on-c is text that sits on it. */
:root {
  --ss: #ff9f45; --sel: #ff7eb6; --sky: #5fb8ff; --green: #7ee081; --pink: #ff7eb6; --orange: #ff9f45;
  --rainbow: linear-gradient(90deg, #ffd23f, #ff9f45, #ff7eb6, #ab9bff, #5fb8ff, #3fd6d0, #7ee081);
  --on-c: #0b1426; --tint: 13%; --glow: .30;
  --c: var(--btn);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --ss: #b5520a; --sel: #c2185b; --sky: #1565c0; --green: #2e7d32; --pink: #c2185b; --orange: #b5520a;
    --rainbow: linear-gradient(90deg, #f5b800, #ff8a1f, #ff4f9a, #7b5cff, #2f8cff, #10a8a2, #3fb950);
    --on-c: #ffffff; --tint: 9%; --glow: .18; }
}
:root[data-theme="light"] { --ss: #b5520a; --sel: #c2185b; --sky: #1565c0; --green: #2e7d32; --pink: #c2185b; --orange: #b5520a;
  --rainbow: linear-gradient(90deg, #f5b800, #ff8a1f, #ff4f9a, #7b5cff, #2f8cff, #10a8a2, #3fb950);
  --on-c: #ffffff; --tint: 9%; --glow: .18; }

[data-subject="science"] { --c: var(--sci); }
[data-subject="math"] { --c: var(--math); }
[data-subject="ela"] { --c: var(--ela); }
[data-subject="social-studies"] { --c: var(--ss); }
[data-subject="sel"] { --c: var(--sel); }
.subj.ss { color: var(--ss); } .subj.sel { color: var(--sel); }
/* yellow is too light to carry white text in light mode, so math keeps dark text on its chip */
:root[data-theme="light"] [data-subject="math"] { --on-c: #ffffff; }

/* rainbow rules on the header and footer */
.site-head { border-bottom: 0; position: relative; }
.site-head::after, .site-foot::before { content: ""; display: block; height: 5px; background: var(--rainbow); }
.site-foot { border-top: 0; }
.nav a:nth-child(5n+1):hover { background: color-mix(in srgb, var(--sci) 22%, transparent); }
.nav a:nth-child(5n+2):hover { background: color-mix(in srgb, var(--ela) 24%, transparent); }
.nav a:nth-child(5n+3):hover { background: color-mix(in srgb, var(--pink) 22%, transparent); }
.nav a:nth-child(5n+4):hover { background: color-mix(in srgb, var(--orange) 22%, transparent); }
.nav a:nth-child(5n):hover { background: color-mix(in srgb, var(--sky) 22%, transparent); }
.nav a.nav-cta:hover { background: var(--btn); }

/* home hero: soft color glows behind the words, gradient on the key word */
.hero { background:
  radial-gradient(55% 75% at 8% 10%, color-mix(in srgb, var(--ela) 30%, transparent), transparent 70%),
  radial-gradient(45% 65% at 96% 18%, color-mix(in srgb, var(--sci) 26%, transparent), transparent 70%),
  radial-gradient(34% 42% at 55% 62%, color-mix(in srgb, var(--pink) 18%, transparent), transparent 70%); }
.hero h1 em { background: linear-gradient(90deg, #ffd23f, #ff9f45 45%, #ff7eb6); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .hero h1 em { color: var(--fg); -webkit-background-clip: border-box; background-clip: border-box;
  background: linear-gradient(transparent 58%, color-mix(in srgb, #ff7eb6 55%, transparent) 58%, color-mix(in srgb, #ffd23f 75%, transparent)); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hero h1 em { color: var(--fg); -webkit-background-clip: border-box; background-clip: border-box;
  background: linear-gradient(transparent 58%, color-mix(in srgb, #ff7eb6 55%, transparent) 58%, color-mix(in srgb, #ffd23f 75%, transparent)); } }
.hero-facts li:nth-child(1)::before { color: var(--sci); }
.hero-facts li:nth-child(2)::before { color: var(--btn); }
.hero-facts li:nth-child(3)::before { color: var(--pink); }
.now-card { border: 2px solid transparent; background:
  linear-gradient(var(--surface), var(--surface)) padding-box, var(--rainbow) border-box;
  box-shadow: 0 14px 40px rgba(0,0,0,var(--glow)); }

/* tinted bands */
.band { background: linear-gradient(135deg, color-mix(in srgb, var(--ela) 14%, var(--band)), var(--band) 45%, color-mix(in srgb, var(--sci) 14%, var(--band))); }

/* song cards wear their subject color */
.card { background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line));
  border-top: 5px solid var(--c); border-radius: 14px; padding: 10px 10px 14px; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px color-mix(in srgb, var(--c) 35%, transparent); }
.card .thumb { outline: 0; }
.card h3, .card .row, .card .subj { padding-inline: 4px; }

/* subject columns on the home page */
.subject-stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.subject-col { background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); border-top: 6px solid var(--c); }
.subject-col li a { border-bottom-color: color-mix(in srgb, var(--c) 25%, var(--line)); }
.subject-block h2 { padding-bottom: 10px; border-bottom: 3px solid color-mix(in srgb, var(--c) 70%, transparent); }

/* subject chips on the songs page */
.chip[data-subject] { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); }
.chip[data-subject][aria-pressed="true"] { background: var(--c); color: var(--on-c); border-color: var(--c); }
.chip[data-subject-chip="all"][aria-pressed="true"] { background: var(--rainbow); color: #0b1426; border-color: transparent; }
:root[data-theme="light"] .chip[data-subject="math"][aria-pressed="true"] { color: #1a1500; background: #ffd23f; border-color: #e0b400; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .chip[data-subject="math"][aria-pressed="true"] { color: #1a1500; background: #ffd23f; border-color: #e0b400; } }
.search input { border-color: color-mix(in srgb, var(--ela) 45%, var(--line)); }

/* "how to use" steps and the request band */
.how li { background: var(--surface); border-radius: var(--radius); padding: 18px; border-left: 5px solid var(--k, var(--btn)); }
.how li:nth-child(1) { --k: var(--sci); } .how li:nth-child(2) { --k: var(--ela); } .how li:nth-child(3) { --k: var(--orange); }
.how li .k { color: var(--k); }
.cta-band { border: 2px solid transparent; background:
  linear-gradient(120deg, color-mix(in srgb, var(--ela) 22%, var(--surface)), color-mix(in srgb, var(--pink) 16%, var(--surface)) 55%, color-mix(in srgb, var(--orange) 18%, var(--surface))) padding-box,
  var(--rainbow) border-box; }
.signup { border: 2px solid color-mix(in srgb, var(--sci) 55%, var(--line)); background: color-mix(in srgb, var(--sci) 8%, var(--surface)); }

/* song pages: a colored header in the song's subject color */
.song-head[data-subject] { margin-top: 12px; padding: 22px clamp(16px, 3vw, 28px) 26px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 24%, var(--surface)), color-mix(in srgb, var(--c) 6%, var(--surface)) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-left: 8px solid var(--c); }
.song-head[data-subject] .eyebrow { color: var(--c); }
.song-head[data-subject] + .watch { margin-top: 26px; }
.panel { border-top: 5px solid var(--p, var(--sci)); }
.teach-grid > .panel:nth-child(5n+1) { --p: var(--sci); }
.teach-grid > .panel:nth-child(5n+2) { --p: var(--btn); }
.teach-grid > .panel:nth-child(5n+3) { --p: var(--ela); }
.teach-grid > .panel:nth-child(5n+4) { --p: var(--pink); }
.teach-grid > .panel:nth-child(5n) { --p: var(--orange); }
.panel h3 { color: var(--p, var(--fg)); }
.terms li:nth-child(5n+1) { background: color-mix(in srgb, var(--sci) 18%, var(--surface)); border-color: color-mix(in srgb, var(--sci) 60%, var(--line)); }
.terms li:nth-child(5n+2) { background: color-mix(in srgb, var(--ela) 18%, var(--surface)); border-color: color-mix(in srgb, var(--ela) 60%, var(--line)); }
.terms li:nth-child(5n+3) { background: color-mix(in srgb, var(--pink) 18%, var(--surface)); border-color: color-mix(in srgb, var(--pink) 60%, var(--line)); }
.terms li:nth-child(5n+4) { background: color-mix(in srgb, var(--orange) 18%, var(--surface)); border-color: color-mix(in srgb, var(--orange) 60%, var(--line)); }
.terms li:nth-child(5n) { background: color-mix(in srgb, var(--sky) 18%, var(--surface)); border-color: color-mix(in srgb, var(--sky) 60%, var(--line)); }
.lyr-sec h3 { color: var(--sky); }
.lyr-sec:nth-child(even) h3 { color: var(--pink); }
details.parts { border-color: color-mix(in srgb, var(--ela) 45%, var(--line)); }
.where.alt { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--orange) 12%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--orange) 60%, var(--line)); }
.steps li:nth-child(1)::before { background: var(--sci); color: var(--on-c); border-color: var(--sci); }
.steps li:nth-child(2)::before { background: var(--ela); color: var(--on-c); border-color: var(--ela); }
.steps li:nth-child(3)::before { background: var(--pink); color: var(--on-c); border-color: var(--pink); }
.steps li:nth-child(4)::before { background: var(--orange); color: var(--on-c); border-color: var(--orange); }
.paper { border-left: 5px solid var(--ela); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
@media print { .site-head::after, .site-foot::before { display: none; } .song-head[data-subject], .card { background: none; } }

/* ===== Two parts of the site (Nov 17): doors on the home page, the K-2 kids look ===== */
.btn-kids { background: #ff5fa2; border-color: #ff5fa2; color: #fff; }
.soon { font-weight: 700; color: var(--orange); }

/* home: pick a grade */
.doors { padding-block: clamp(18px, 3vw, 30px) 0; }
.doors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .doors-grid { grid-template-columns: minmax(0, 1fr); } }
.door { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; text-decoration: none; border-radius: 22px; padding: 16px; min-width: 0; transition: transform .18s ease, box-shadow .18s ease; }
.door:hover { transform: translateY(-3px); }
@media (max-width: 460px) { .door { grid-template-columns: minmax(0, 1fr); } }
.door-pics { position: relative; display: block; aspect-ratio: 16 / 11; min-width: 0; }
.door-pics img { position: absolute; width: 72%; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.door-pics img:nth-child(1) { left: 0; top: 0; transform: rotate(-5deg); }
.door-pics img:nth-child(2) { right: 0; top: 12%; transform: rotate(4deg); }
.door-pics img:nth-child(3) { left: 14%; bottom: 0; transform: rotate(-1deg); z-index: 1; }
.door-txt { display: grid; gap: 6px; align-content: center; }
.door-txt b { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.05; }
.door-tag { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.door-go { font-weight: 800; margin-top: 4px; }
.door-kids { background: linear-gradient(160deg, #5cc8ff, #8fe3ff 55%, #b8f0c8); color: #13244a; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(92,200,255,.35); }
.door-kids b { font-family: "Fredoka", var(--f-display); font-weight: 700; color: #13244a; text-shadow: 0 2px 0 #fff; }
.door-kids .door-tag { color: #c2185b; } .door-kids .door-go { color: #c2185b; }
.door-big { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--rainbow) border-box; border: 3px solid transparent; color: var(--fg); }
.door-big b { font-family: var(--f-display); font-stretch: 112%; font-weight: 820; }
.door-big .door-tag { color: var(--sci); } .door-big .door-go { color: var(--btn); }
.door-big:hover { box-shadow: 0 10px 30px rgba(171,155,255,.3); }

/* kid cards (home strip, /kids/, kids related songs) */
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px 18px; }
.kcard { display: grid; gap: 8px; align-content: start; text-decoration: none; background: #fff; color: #13244a; border-radius: 22px; padding: 10px 10px 14px; border: 4px solid var(--kc, #5cc8ff); box-shadow: 0 6px 0 color-mix(in srgb, var(--kc, #5cc8ff) 70%, #13244a); transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.kcard:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 10px 0 color-mix(in srgb, var(--kc, #5cc8ff) 70%, #13244a); }
.kcard .thumb { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #e8f6ff; }
.kcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.kname { font-family: "Fredoka", var(--f-display); font-weight: 700; font-size: 1.22rem; line-height: 1.15; padding-inline: 4px; }
.krow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-inline: 4px; }
.kpill { background: var(--kc, #5cc8ff); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.kdur { font-family: var(--f-mono); color: #4c5775; font-size: .85rem; }
.kcard[hidden] { display: none; }
[data-subject="reading"] { --kc: #7b5cff; --c: #7b5cff; }
[data-subject="math"].kcard, .kids [data-subject="math"] { --kc: #ff8a1f; --c: #ff8a1f; }
[data-subject="science"].kcard, .kids [data-subject="science"] { --kc: #22b14c; --c: #22b14c; }
[data-subject="feelings"] { --kc: #ff4f9a; --c: #ff4f9a; }
[data-subject="community"] { --kc: #2f8cff; --c: #2f8cff; }
.kids-strip { background: linear-gradient(180deg, #8fe3ff, #c9f3ff 60%, #e9fbff); color: #13244a; border-block: 4px solid #fff; }
.kids-strip h2 { font-family: "Fredoka", var(--f-display); font-weight: 700; color: #13244a; }
.kids-strip .section-head a { color: #c2185b; font-weight: 800; }

/* the K-2 look: bright sky, white cards, round Fredoka type, always light */
body.kids {
  --bg: #e9f8ff; --band: #d8f2ff; --surface: #ffffff; --surface-2: #f2fbff; --line: #b9e3f7;
  --fg: #13244a; --muted: #3f5274; --faint: #5f7192; --link: #1565c0; --stamp: #c2185b; --now: #fff1a8;
  --btn: #ffd23f; --on-btn: #13244a; --focus: #ff4f9a; --sci: #138a3a; --ela: #6a4ce0; --math: #c25e00; --pink: #e0347e; --orange: #d86a00; --sky: #1f7ae0;
  --f-display: "Fredoka", "Archivo", Arial, sans-serif; --radius: 20px; color-scheme: light;
  background: linear-gradient(180deg, #7fd3ff 0, #bdeeff 340px, #e9f8ff 760px) no-repeat, #e9f8ff;
}
body.kids h1, body.kids h2, body.kids h3 { font-stretch: 100%; letter-spacing: 0; font-weight: 700; }
body.kids .site-head { background: rgba(255,255,255,.75); }
body.kids .brand-sub { color: #3f5274; }
body.kids .nav a:hover { background: #fff; }
body.kids .site-foot { background: #ffffff; }
.k-hero { padding-block: clamp(26px, 5vw, 56px) clamp(18px, 3vw, 30px); position: relative; overflow: hidden; }
.k-hero::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #fff27a 0 38%, rgba(255,214,10,.35) 39% 60%, transparent 61%); }
.k-hero .wrap { position: relative; display: grid; gap: 14px; }
.k-hero h1 { font-family: "Fredoka", var(--f-display); font-size: clamp(2.6rem, 1.8rem + 4vw, 4.8rem); color: #fff; text-shadow: 0 4px 0 #13244a, 0 0 0 #13244a; -webkit-text-stroke: 2px #13244a; paint-order: stroke fill; }
.k-tag { display: inline-block; justify-self: start; background: #ff8a1f; color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 #b85a00; }
.k-hero .lead { color: #13244a; font-size: 1.2rem; max-width: 56ch; }
.k-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.k-facts li { background: #fff; color: #13244a; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 3px solid #22b14c; }
.k-facts li:nth-child(2) { border-color: #ff4f9a; } .k-facts li:nth-child(3) { border-color: #7b5cff; }
body.kids .filters { background: #fff; border-radius: 22px; padding: 14px; border: 3px solid #b9e3f7; }
body.kids .chip { font-family: "Fredoka", var(--f-body); font-weight: 600; font-size: 1rem; }
body.kids .chip[data-subject] { border: 3px solid var(--kc); color: #13244a; background: color-mix(in srgb, var(--kc) 14%, #fff); }
body.kids .chip[data-subject][aria-pressed="true"] { background: var(--kc); color: #fff; }
body.kids .search input { background: #f2fbff; border: 3px solid #b9e3f7; }
body.kids .subject-block h2 { font-family: "Fredoka", var(--f-display); color: var(--kc); border-bottom: 4px dotted var(--kc); }
body.kids .subject-block .small { margin: -8px 0 14px; }
.k-older { margin-top: 40px; font-weight: 700; }
body.kids .song-head[data-subject] { background: #fff; border: 4px solid var(--kc); border-left-width: 4px; box-shadow: 0 8px 0 color-mix(in srgb, var(--kc) 55%, #13244a); }
body.kids .song-head[data-subject] .eyebrow { color: var(--kc); font-family: var(--f-body); letter-spacing: .08em; }
body.kids .song-head h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); }
body.kids .song-head .tagline { color: #13244a; font-family: var(--f-body); font-weight: 700; }
body.kids .player { border: 5px solid #fff; box-shadow: 0 8px 24px rgba(31,122,224,.25); }
body.kids .player .play i { width: 92px; height: 92px; background: #ff4f9a; }
body.kids .player .play i::after { border-left-color: #fff; }
body.kids .lyr-line, body.kids .lyr-repeat { font-size: 1.12rem; }
body.kids .lyr-sec h3 { font-family: var(--f-body); }
body.kids .teach.band { background: #d8f2ff; }
body.kids .panel { border-radius: 20px; }
body.kids .btn-ghost { background: #fff; border-color: #13244a; color: #13244a; }
body.kids .card, body.kids .now-card { background: #fff; }

/* ===== Song page header with cover art, plays and likes, catalog, help and details (Nov 17) ===== */
.song-hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
@media (max-width: 860px) { .song-hero { grid-template-columns: minmax(0, 1fr); } }
.song-hero .cover { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); aspect-ratio: 16 / 9; }
.song-hero .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.song-hero .cover:hover img { transform: scale(1.03); }
.hero-info { display: grid; gap: 12px; min-width: 0; align-content: start; }
.song-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.byline { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); }
.byline b { color: var(--fg); }
.by-pic { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.desc { color: var(--fg); max-width: 62ch; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); color: var(--fg); font: 700 .95rem/1 var(--f-body); }
.stat i { font-style: normal; color: var(--c); }
button.stat { cursor: pointer; }
a.stat { text-decoration: none; }
a.stat:hover { border-color: var(--c); }
button.stat:hover { border-color: var(--c); }
.stat.like[aria-pressed="true"] { background: #ff4f9a; border-color: #ff4f9a; color: #fff; }
.stat.like[aria-pressed="true"] i { color: #fff; }
.stats.no-counts .stat:first-child, .stats.no-counts .like { display: none; }
.catalog { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; }
.cat-label { color: var(--muted); font-weight: 700; margin-right: 2px; }
.cat { padding: 5px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); }
a.cat[data-subject] { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
body.kids a.cat[data-subject] { border: 2px solid var(--kc, var(--c)); color: #13244a; background: color-mix(in srgb, var(--kc, var(--c)) 14%, #fff); }
.cat-plain { color: var(--muted); }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.help-list a { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); }
.help-list a:hover { border-color: var(--pink); }
.help-list b { color: var(--link); }
.help-list span { color: var(--muted); font-size: .92rem; }
.dlist { display: grid; gap: 8px; margin: 0; }
.dlist div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.dlist dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.dlist dd { margin: 0; font-size: .97rem; }
@media (max-width: 480px) { .dlist div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
body.kids .song-hero .cover { border: 5px solid #fff; box-shadow: 0 8px 0 color-mix(in srgb, var(--kc) 55%, #13244a); }
body.kids .stat { background: color-mix(in srgb, var(--kc) 14%, #fff); border: 2px solid var(--kc); color: #13244a; }
body.kids .stat i { color: var(--kc); }
body.kids .help-list a { background: #f2fbff; border: 2px solid #b9e3f7; }
body.kids .help-list b { color: #c2185b; }

/* ---------- the lesson under the song (pilot, Nov 17): textbook notes with the video's own drawings ---------- */
.lesson { padding-block: 52px 40px; }
.lesson .wrap { display: grid; gap: 22px; }
.lesson-head { display: grid; gap: 12px; max-width: 78ch; }
.lesson-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.lesson .goals ul, .lteach ul, .lteach ol { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; }
.lesson .goals { --p: var(--sci); }
.lesson .goals li::marker { color: var(--sci); font-weight: 800; }
.lparts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: none; }
.lpart { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lpart:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.lpart:nth-child(even) .lfig { order: 2; }
@media (max-width: 860px) { .lpart, .lpart:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .lpart:nth-child(even) .lfig { order: 0; } }
.lfig { margin: 0; display: grid; gap: 10px; }
.lfig img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #0b1426; }
.lfig img.lsp { height: auto; object-fit: cover; }
.lfig.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lfig.many.odd img:first-child { grid-column: 1 / -1; }
.lfig.many figcaption { grid-column: 1 / -1; }
.lfig figcaption { color: var(--muted); font-size: .92rem; }
.ltext { display: grid; gap: 10px; align-content: start; }
.ltext h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); display: flex; align-items: center; gap: 12px; }
.lnum { flex: none; display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--c, var(--sci)); color: #0b1426; font-size: .8em; font-weight: 800; }
.lpart:nth-child(5n+2) { --c: var(--btn); } .lpart:nth-child(5n+3) { --c: var(--ela); } .lpart:nth-child(5n+4) { --c: var(--pink); } .lpart:nth-child(5n) { --c: var(--orange); }
.lpart { border-left: 5px solid var(--c, var(--sci)); }
.hear { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--c, var(--sci)); background: color-mix(in srgb, var(--c, var(--sci)) 14%, var(--surface)); color: var(--fg); font: 700 .95rem/1.2 var(--f-body); cursor: pointer; }
.hear i { font-style: normal; color: var(--c, var(--sci)); }
.hear:hover { background: color-mix(in srgb, var(--c, var(--sci)) 26%, var(--surface)); }
.lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 860px) { .lesson-grid { grid-template-columns: minmax(0, 1fr); } }
.lesson .words { --p: var(--ela); } .lesson .try { --p: var(--btn); } .lesson .quizset { --p: var(--pink); } .lesson .lteach { --p: var(--sci); } .lesson .lres { --p: var(--orange); }
.wlist { margin: 0; display: grid; gap: 8px; }
.wlist div { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.wlist dt { font-weight: 800; color: var(--fg); }
.wlist dd { margin: 0; color: var(--muted); font-size: .97rem; }
.lesson h4 { font: 800 1rem/1.3 var(--f-body); margin: 6px 0 0; }
/* sort game */
.sort { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sort-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--line); }
.sort-item .emo { font-size: 1.9rem; line-height: 1; }
.sort-item .what { font-weight: 800; font-size: 1.05rem; }
.sort-item .pick { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sort-item .pick button, .mcq .opt { font: 700 .98rem/1.2 var(--f-body); padding: 9px 14px; min-height: 44px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.sort-item .pick button:hover, .mcq .opt:hover { border-color: var(--fg); }
.sort-item .why { grid-column: 1 / -1; font-size: .95rem; }
.sort-item.ok { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--surface)); }
.sort-item.no { border-color: var(--orange); }
.sort-item button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sort-item .emo { min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.sort-item.many { grid-template-columns: minmax(0, 1fr) auto; }
.sort-item.many .emo { grid-column: 1 / -1; font-size: 1.6rem; }
@media (max-width: 520px) { .sort-item { grid-template-columns: minmax(0, 1fr); } .sort-item .emo { max-width: none; font-size: 1.6rem; } .sort-item .pick { justify-content: flex-start; } }
/* strand practice */
.strands { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
.strand-item { display: grid; gap: 8px; }
.strand-item label { display: grid; gap: 6px; }
.strand-item .given { font-size: 1.15rem; letter-spacing: .08em; color: var(--sci); font-weight: 700; }
.strand-item input { font: 700 1.1rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface-2); color: var(--fg); width: 100%; max-width: 22ch; }
.strand-item .btn { justify-self: start; min-height: 40px; padding: 6px 16px; }
.res { font-weight: 700; min-height: 1.2em; }
.res.good { color: var(--green); } .res.bad { color: var(--orange); }
/* quiz */
.mcqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mcq { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.mcq .q { font-weight: 700; font-size: 1.05rem; }
.mcq .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mcq .opt.right { background: color-mix(in srgb, var(--green) 22%, var(--surface)); border-color: var(--green); }
.mcq .opt.wrong { background: color-mix(in srgb, var(--orange) 18%, var(--surface)); border-color: var(--orange); text-decoration: line-through; }
.js .mcq details.answer, .js .strand-item details.answer { display: none; }
.js .strand-item.tried details.answer { display: block; }
.score { font-weight: 800; color: var(--pink); }
.res-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lres .stds { margin: 0; }
/* kids: big, bright and read-aloud friendly */
body.kids .lesson { background: linear-gradient(180deg, #fff7d6, #fffdf3 220px, #fffdf3); border-block: 4px solid #fff; }
body.kids .lesson-head h2 { font-family: "Fredoka", var(--f-display); color: #13244a; }
body.kids .lesson .lead { font-size: 1.22rem; }
body.kids .lpart { border: 4px solid var(--c, #22b14c); border-radius: 24px; box-shadow: 0 6px 0 color-mix(in srgb, var(--c, #22b14c) 50%, #13244a); }
body.kids .lpart:nth-child(5n+1) { --c: #22b14c; } body.kids .lpart:nth-child(5n+2) { --c: #1f7ae0; } body.kids .lpart:nth-child(5n+3) { --c: #7b5cff; }
body.kids .lpart:nth-child(5n+4) { --c: #ff8a1f; } body.kids .lpart:nth-child(5n) { --c: #ff4f9a; }
body.kids .lfig img { background: #e9f8ff; border: 3px solid #fff; border-radius: 16px; }
body.kids .ltext p { font-size: 1.2rem; line-height: 1.55; }
body.kids .ltext h3 { font-family: "Fredoka", var(--f-display); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
body.kids .lnum { color: #fff; }
body.kids .hear { background: #ff4f9a; border-color: #ff4f9a; color: #fff; font-size: 1.05rem; padding: 10px 18px; box-shadow: 0 4px 0 #b3165a; }
body.kids .hear i { color: #fff; }
body.kids .sort-item { background: #fff; border-width: 3px; }
body.kids .sort-item .pick button, body.kids .mcq .opt { font-size: 1.08rem; border-width: 3px; }
body.kids .mcq .q { font-size: 1.2rem; }
body.kids .lesson .panel { border-width: 3px; }
body.kids .lesson .try { --p: #c25e00; }
body.kids .lesson .goals { --p: #138a3a; }
/* print just the lesson */
@media print {
  html.print-lesson body > *:not(main), html.print-lesson main > *:not(.lesson), html.print-lesson .lesson-head .btn-row, html.print-lesson .hear, html.print-lesson .lres .res-links:first-of-type li:last-child { display: none !important; }
  html.print-lesson .lesson { padding: 0; background: #fff !important; }
  html.print-lesson .lpart, html.print-lesson .panel { break-inside: avoid; box-shadow: none !important; }
  html.print-lesson .lesson-grid { grid-template-columns: 1fr 1fr; }
  html.print-lesson details.answer { display: none !important; }
}

/* ---------- UX pass (Doc, Nov 18): "free" up top, K-2 first, grade buttons, sticky filters, player on top, readable colors, smaller phone header ---------- */
.freebar { background: var(--btn); color: var(--on-btn); font-size: .86rem; line-height: 1.3; text-align: center; padding: 5px 0; font-weight: 600; }
.freebar b { font-weight: 850; letter-spacing: .02em; text-transform: uppercase; }
body.kids .freebar { background: #ffd60a; color: #13244a; }
/* "Request a song" is a quiet outline link now, not the brightest thing in the header */
.nav a.nav-cta, .nav a.nav-cta:hover { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 560px) {
  .site-head .wrap { padding-block: 6px; gap: 4px 10px; flex-wrap: nowrap; }
  .brand { gap: 8px; }
  .brand-pic { width: 34px; height: 34px; }
  .brand b { font-size: .92rem; }
  .brand-sub { display: none; }
  .nav { flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 8px; font-size: .86rem; white-space: nowrap; }
  .nav a.nav-cta { display: none; }
  .freebar { font-size: .8rem; padding: 4px 8px; }
}
/* home: compact hero on phones so "free" and the headline show on the first screen */
@media (max-width: 560px) {
  .hero .wrap { padding-block: 16px 24px; gap: 18px; }
  .hero-copy { gap: 12px; }
  .hero h1 { font-size: clamp(1.7rem, 1.2rem + 3vw, 2.2rem); }
  .hero .lead { font-size: 1rem; }
  .hero-facts { display: none; }
  .hero .btn-row .btn { width: 100%; }
}
.kgroups { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.kgroups a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: #13244a; background: color-mix(in srgb, var(--kc, #5cc8ff) 18%, #fff); border: 3px solid var(--kc, #5cc8ff); }
.kgroups a b { font-family: "Fredoka", var(--f-display); font-size: 1.05rem; }
.kgroups a span { font-size: .88rem; }
.topic-list > summary { cursor: pointer; list-style: none; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.topic-list > summary::-webkit-details-marker { display: none; }
.topic-list > summary::before { content: "▸"; transition: transform .15s; }
.topic-list[open] > summary::before { transform: rotate(90deg); }
/* readable in light mode: the grades 6-9 door link (was yellow on white) and the K-2 grade tag (was white on orange) */
:root[data-theme="light"] .door-big .door-go { color: #6b4e00; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .door-big .door-go { color: #6b4e00; } }
.k-tag { background: #ffd08a; color: #13244a; box-shadow: 0 3px 0 #e0902f; }
.kpill { color: #13244a; background: color-mix(in srgb, var(--kc, #5cc8ff) 26%, #fff); box-shadow: inset 0 0 0 2px var(--kc, #5cc8ff); }
/* grades 6-9 cards: the lesson topic is the big text, the song title under it */
.card .card-topic { font-size: 1.16rem; line-height: 1.2; }
.card .card-name { color: var(--muted); font-size: .9rem; }
/* K-2 page: search and grade buttons first, and the bar stays at the top while scrolling */
.filters-sticky { position: sticky; top: 0; z-index: 30; box-shadow: 0 6px 18px rgba(19,36,74,.12); }
body.kids .filters-sticky { margin-top: 6px; }
.filters-sticky .search { flex: 1 1 260px; }
.chips-grade { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-grade[aria-pressed="true"] { background: #13244a; color: #fff; border-color: #13244a; }
.more-chips > summary { cursor: pointer; list-style: none; font: 700 .95rem/1 var(--f-body); padding: 10px 16px; border-radius: 999px; border: 1px dashed var(--line); display: inline-block; }
.more-chips > summary::-webkit-details-marker { display: none; }
.more-chips[open] > summary { display: none; }
.more-chips { flex-basis: 100%; }
@media (max-width: 560px) {
  .k-hero { padding-block: 14px 6px; }
  .k-hero::before { display: none; }
  .k-hero .wrap { gap: 8px; }
  .k-hero h1 { font-size: 2.2rem; }
  .k-hero .lead { font-size: 1rem; }
  body.kids .filters { padding: 10px; gap: 8px; border-radius: 16px; }
  .chips-grade { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips-grade .chip { white-space: nowrap; padding: 8px 12px; }
  .more-chips[open] > summary { display: inline-block; }
}
/* song pages: the player is the header picture (on wide screens the script moves it beside the lyrics) */
.song-hero .cover-player { overflow: hidden; }
.song-hero .cover-player .player { border-radius: 0; height: 100%; }
body.kids .song-hero .cover-player .player { border: 0; box-shadow: none; }
.kgroups [data-subject="math"] { --kc: #ff8a1f; } .kgroups [data-subject="science"] { --kc: #22b14c; }
[data-subject="longer"].kcard, .kids [data-subject="longer"] { --kc: #0aa5a5; --c: #0aa5a5; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); }
@media (max-width: 560px) {
  .fb-x { display: none; }
  .brand b { white-space: nowrap; font-size: .9rem; }
  .brand b small { display: none; }
  .filters-sticky { flex-wrap: wrap; }
  .filters-sticky .search { flex-basis: 100%; }
  .filters-sticky .chips-grade { flex: 1 1 0; min-width: 0; }
  .filters-sticky .more-chips { flex: 0 0 auto; }
  .filters-sticky .more-chips[open] { flex-basis: 100%; }
  .filters-sticky .count { display: none; }
  .more-chips > summary { padding: 8px 12px; }
}
.l-short { display: none; }
@media (max-width: 560px) { .l-long { display: none; } .l-short { display: inline; } }

/* album pages (Nov 24): each track row = play-from-here button + its song page link on the right */
.parts li.alb-tk { display: flex; align-items: center; gap: 10px; }
.parts li.alb-tk > button, .parts li.alb-tk > span:first-child { flex: 1 1 auto; min-width: 0; }
.parts li.alb-tk .alb-song { flex: none; white-space: nowrap; }

/* Streaming links (Nov 27, 2026) */
.listen-line .listen-label{font-weight:600}
.listen-line a.ext{white-space:nowrap}
.doors .listen-line{margin:14px 0 0}

/* Dog Breed Songs (Nov 29, 2026) */
.dog-promo { margin: 14px 0 0; }
.dog-promo a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.dog-promo a:hover { background: var(--surface-2); }
.card.dog-soon { cursor: default; }
.card.dog-soon .thumb img { filter: saturate(0.85); }
.dog-types ul { columns: 2 260px; column-gap: 28px; display: block; }
.dog-types li { break-inside: avoid; }
.dog-az { list-style: none; margin: 12px 0 0; padding: 0; columns: 2 320px; column-gap: 32px; }
.dog-az li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dog-az li[hidden] { display: none; }
.dog-q { font: inherit; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); width: min(100%, 340px); margin-top: 6px; }
.dog-class { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.dog-lyr { margin: 0; line-height: 1.55; padding: 2px 8px; }
.dog-chap { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 2px; }
.dog-chap a { display: flex; gap: 12px; padding: 5px 8px; border-radius: 8px; color: var(--fg); text-decoration: none; }
.dog-chap a:hover { background: var(--surface); }
.tbl-wrap { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 700; }
@media (max-width: 760px) { .nav a[href="/dogs/"] { display: none; } }

/* Dog breed pages, Nov 29 (profiles, at a glance, premieres) */
.dog-glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; margin: 6px 0 0; }
.dog-glance div { border-bottom: 1px solid var(--line); padding: 4px 0 8px; }
.dog-glance dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.dog-glance dd { margin: 2px 0 0; }
.dog-sec p { line-height: 1.6; }
.dog-facts { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 8px; line-height: 1.55; }
.dog-facts a, .dog-src a { white-space: normal; }
.dog-premiere { margin: 8px 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.dog-poster img { display: block; width: 100%; height: auto; border-radius: inherit; }
.dog-noimg { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--surface); font-size: 1.6rem; font-weight: 700; }
.dog-prevnext { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 0; }
.dog-prevnext a { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; }
.dog-prevnext a:hover { background: var(--surface-2); }
.dog-src { display: grid; gap: 4px; padding-left: 1.2em; }
.dog-cta { border-width: 2px; }

/* Custom dog song order page (Nov 29) */
.cs-price { border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--surface); margin: 14px 0; }
.cs-price p { margin: 4px 0; }
.cs-form { display: grid; gap: 16px; margin: 10px 0 24px; }
.cs-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 16px; display: grid; gap: 12px; margin: 0; }
.cs-form legend { font-weight: 700; padding: 0 6px; }
.cs-form label { display: grid; gap: 4px; font-weight: 600; }
.cs-form input:not([type=checkbox]), .cs-form select, .cs-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); width: 100%; box-sizing: border-box; }
.cs-form .cs-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.cs-form .cs-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.cs-form [aria-invalid="true"] { border-color: #e5484d !important; }
.cs-faq dt { font-weight: 700; margin-top: 12px; }
.cs-faq dd { margin: 4px 0 0; }
