/* Evergreen Facts — K-12 grade-band themes and pathway UI.
   Bands are set on <html data-band> and <body class="band-*"> by js/k12/bands.js.
   k2 = big and simple; g35 = playful (site default); g68/g912 = sleeker, calmer, not babyish. */

/* ---------- K-2: big, simple, minimal reading ---------- */
html[data-band="k2"] body { font-size: 1.2rem; }
html[data-band="k2"] #prompt { font-size: clamp(1.6rem, 6vw, 2.4rem); }
html[data-band="k2"] .choice, html[data-band="k2"] .k12-pad button, html[data-band="k2"] .primary { min-height: 64px; font-size: 1.4rem; }
html[data-band="k2"] .choice { text-align: center; }
html[data-band="k2"] .k12-answer .fine, html[data-band="k2"] .k12-practice .intro-card .fine { display: none; }
html[data-band="k2"] .k12-map .std { display: none; }
html[data-band="k2"] .k12-icons { font-size: 2.6rem; }

/* ---------- 3-5: playful (inherits the forest look) ---------- */
html[data-band="g35"] .k12-now { background: linear-gradient(180deg, #fff7d6, #fff); }

/* ---------- 6-8 and 9-12: sleeker, not babyish ---------- */
html[data-band="g68"], html[data-band="g912"] {
  --paper: #f4f6f8; --paper-2: #e8edf2; --ink: #17202a; --ink-soft: #4a5866;
  --cedar: #1f4e79; --cedar-deep: #12304d; --gold: #9ecbff; --gold-deep: #5b9bd5; --sky: #d6e6f5; --sky-deep: #1f4e79;
  --radius: 12px; --shadow: 0 6px 18px rgba(18, 48, 77, 0.08);
  --font: -apple-system, "Segoe UI", "Inter", system-ui, sans-serif;
  --display: -apple-system, "Segoe UI", "Inter", system-ui, sans-serif;
}
html[data-band="g912"] {
  --paper: #0f1720; --paper-2: #18232f; --card: #1b2733; --ink: #e8eef4; --ink-soft: #a9b8c6; --line: rgba(232, 238, 244, 0.14);
  --cedar: #4aa3ff; --cedar-deep: #9fd0ff; --gold: #2d4b66; --gold-deep: #4aa3ff; --sky: #22384d; --sky-deep: #7cc0ff;
}
html[data-band="g68"] body, html[data-band="g912"] body { background: var(--paper); font-size: 1rem; }
html[data-band="g912"] .picker-card, html[data-band="g912"] .panel, html[data-band="g912"] .page-card, html[data-band="g912"] .game-card,
html[data-band="g912"] .feature-card, html[data-band="g912"] .info-card, html[data-band="g912"] .play-main, html[data-band="g912"] .intro-card,
html[data-band="g912"] .break-card, html[data-band="g912"] .suggest-list, html[data-band="g912"] .alt-card { background: var(--card); color: var(--ink); }
html[data-band="g912"] .choice, html[data-band="g912"] .grade-btn, html[data-band="g912"] .diff-btn, html[data-band="g912"] input,
html[data-band="g912"] .k12-pad button, html[data-band="g912"] .secondary, html[data-band="g912"] .sound-btn, html[data-band="g912"] .stat,
html[data-band="g912"] .suggest-item { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
html[data-band="g912"] a { color: var(--cedar-deep); }
html[data-band="g912"] .primary { background: var(--cedar); color: #07121c; }
html[data-band="g68"] h1, html[data-band="g912"] h1 { letter-spacing: -0.02em; font-weight: 700; }
html[data-band="g68"] .brand-mark, html[data-band="g912"] .brand-mark { filter: grayscale(0.4); }
html[data-band="g68"] .choice, html[data-band="g912"] .choice { border-radius: 10px; }
html[data-band="g68"] #prompt, html[data-band="g912"] #prompt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; font-size: 1.35rem; }

/* ---------- Pathway UI ---------- */
.k12-badge { display: inline-block; font-size: 0.75rem; font-weight: 800; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.k12-ok { background: #d9f5e5; color: #145236; }
.k12-warn { background: #fff0c9; color: #6b4a00; }
.k12-std { background: #e3ecf7; color: #1f3d5c; }
.k12-now { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0 20px; background: var(--card, #fff); }
.k12-guess { font-size: 1.15rem; margin: 4px 0 8px; }
.k12-map { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; counter-reset: none; }
.k12-unit a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; text-decoration: none; color: inherit;
  border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--card, #fff); }
.k12-unit a:hover, .k12-unit a:focus { border-color: var(--cedar); }
.k12-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--paper-2); }
.k12-unit.now .k12-num { background: var(--gold); }
.k12-unit.saved a { border-color: var(--cedar); }
.k12-unit.past { opacity: 0.85; }
.k12-name .std { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.k12-tag { font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.k12-unit.now .k12-tag, .k12-unit.saved .k12-tag { color: var(--cedar-deep); }
.k12-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.k12-quick .k12-play { font-weight: 800; }
.k12-courses-label { margin-top: 4px; }
.k12-q { font-size: 1.2rem; font-weight: 700; }
.k12-input, #answer-input { font-size: 1.3rem; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); min-width: 9ch; max-width: 14ch; }
.k12-pad { display: grid; grid-template-columns: repeat(7, minmax(40px, 1fr)); gap: 6px; margin-top: 10px; max-width: 520px; }
.k12-pad button { padding: 10px 0; font-weight: 800; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); font-size: 1.1rem; }
.k12-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 2rem; max-width: 520px; }
.k12-icons b { padding: 0 10px; }
.k12-tenframe { display: grid; grid-template-columns: repeat(5, 44px); gap: 4px; }
.k12-tenframe span { width: 44px; height: 44px; border: 2px solid #1c2b24; border-radius: 6px; background: #fffaf1; }
.k12-tenframe span.on { background: radial-gradient(circle, #e85d4c 55%, #fffaf1 58%); }
.k12-svg { width: min(320px, 80vw); height: auto; margin: 0 auto; }
.k12-shape { width: 140px; }
.k12-unitline { color: var(--ink-soft); font-weight: 700; font-size: 0.9rem; text-align: center; margin: 0 0 6px; }
.k12-unitnav { margin-top: 10px; }
/* Keep the hidden attribute working on flex/grid rows. */
#just-play-grades[hidden], #k12-grade-hint[hidden], #k12-warmup[hidden], .k12-practice [hidden] { display: none !important; }
