/* Homeschool Corral: the 2026 look for every course (Keys of the Kingdom, Number Our Days, SAT Prep, Toda Lengua,
   Psalms in Spanish, the Creeds, both catechisms, Physics: Drone Design). Loaded after each course's own styles,
   so it only re-sets the shared variables and a few common parts (buttons, tabs, headings). Game logic is untouched.
   Added to the course pages by src/pages/theme_courses.py. */
:root {
  --bg: #FFFFFF; --panel: #FFFFFF; --panel2: #F6F7F9; --ink: #1D2330; --muted: #5C6170; --line: #CDD3DB;
  --gold: #9A5424; --gold-soft: #F1DDC9; --crimson: #A3322A; --accent: #1B2A41; --accent2: #4F6A8F;
  --terra: #A3592A; --terra-soft: #F3DECF;
  --good: #2F6B3A; --good-bg: #E1EEDF; --bad: #A3322A; --bad-bg: #F6DEDA; --lock: #A0A6B0;
  --shadow: 0 1px 2px rgba(36, 28, 18, .06), 0 10px 24px -12px rgba(36, 28, 18, .28);
  --serif: 'Besley', 'Iowan Old Style', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
[data-theme="dark"] {
  --bg: #111A29; --panel: #1A2537; --panel2: #23314A; --ink: #F0E9DB; --muted: #A8AFBC; --line: #33415A;
  --gold: #E7A57A; --gold-soft: #4A3424; --crimson: #EE8E7E; --accent: #9FB7DA; --accent2: #A9B8D6;
  --terra: #E7A57A; --terra-soft: #4A3424;
  --good: #7CC08F; --bad: #EE8E7E; --bad-bg: #432722; --lock: #56607A;
  --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 16px 32px -16px rgba(0, 0, 0, .6);
}
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.01em; }
/* primary buttons: copper, pill-shaped, with a little lift */
.btn { border-radius: 999px; background: linear-gradient(180deg, #A95E2B, var(--gold) 60%, #8C4B1F); color: #fff; letter-spacing: .01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 8px 18px -8px rgba(147, 80, 31, .65); transition: transform .16s cubic-bezier(.2,.7,.2,1), box-shadow .28s, filter .16s; }
[data-theme="dark"] .btn { background: linear-gradient(180deg, #F0B48C, var(--gold)); color: #1A1209; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.ghost { background: var(--panel); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
[data-theme="dark"] .btn.ghost { background: var(--panel2); color: var(--ink); }
.btn.small { border-radius: 999px; }
nav button { border-radius: 999px; }
nav button.on { background: var(--accent); color: #FFFFFF; }
[data-theme="dark"] nav button.on { background: var(--gold); color: #1A1209; }
input, select, textarea { font-family: var(--sans); }
:focus-visible { outline: 3px solid #2F6FB2; outline-offset: 2px; }
[data-theme="dark"] :focus-visible { outline-color: #E7A57A; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
/* the site header (/hc-header.css) sits on top of every course; the course's own bar is its section bar under it */
.hc-sub-wrap > header { position: relative !important; top: auto !important; z-index: 20; }
.hc-sub-wrap > header .homelink { display: none !important; }
.hc-sub-wrap > header .logo { font-family: var(--serif); text-decoration: none; }
.hc-sub-wrap > header { min-height: 58px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px -16px rgba(36, 28, 18, .35);
  padding-left: max(clamp(1rem, .6rem + 2vw, 2.5rem), calc((100% - 1240px) / 2 + clamp(1rem, .6rem + 2vw, 2.5rem))) !important;
  padding-right: max(clamp(1rem, .6rem + 2vw, 2.5rem), calc((100% - 1240px) / 2 + clamp(1rem, .6rem + 2vw, 2.5rem))) !important; }
.hc-sub-wrap > header .logo { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 650; font-size: 1.2rem; letter-spacing: -.01em; background: none; border: 0; }
.hc-sub-wrap > header .logo .hc-sub-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--panel2); color: var(--gold); flex: none; }
.hc-sub-wrap > header .logo .hc-sub-ic svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .hc-sub-wrap > header .logo { font-size: 1.08rem; white-space: nowrap; } .hc-sub-wrap > header .logo small { display: none; } }
