/* The Genius Project: teen readability layer.
   Loaded AFTER style.css / hub.css / course.css on every teen course page.
   Goal: easy scanning on phones and tablets. Montserrat for headings and
   UI, Arial for body text, larger sizes, taller line-height, shorter line
   lengths, and touch-friendly controls. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');

/* ---------- Base type ---------- */
body {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 18px;
}
h1, h2, h3, h4, h5,
.lesson-title, .section-title, .ch-inner h1,
.callout-head, .mc-body h3, .hub-card h3,
.mc-kicker, .section-label, .lesson-eyebrow, .hub-week,
.big-btn, .btn, .mark-done-btn {
  font-family: 'Montserrat', Arial, sans-serif !important;
}

/* ---------- Lesson pages ---------- */
.lesson-title { font-size: clamp(32px, 5.5vw, 44px); line-height: 1.15; }
.lesson-lede { font-size: 19px; line-height: 1.8; max-width: 64ch; }
.lesson-meta span { font-size: 15.5px; }
.lesson-main p, .lesson-main li {
  font-size: 18px;
  line-height: 1.85;
  max-width: 68ch;
}
.lesson-main h2 { font-size: 28px; margin-top: 44px; margin-bottom: 12px; }
.lesson-main h3 { font-size: 22px; }
.lesson-main p { margin-bottom: 16px; }
.lesson-main li { margin-bottom: 8px; }

.word-box .wb-def, .callout p, .callout li { font-size: 17px; line-height: 1.8; }
.howto li { font-size: 17px; line-height: 1.8; margin-bottom: 10px; }
.flow-box p { font-size: 15.5px !important; line-height: 1.7 !important; }
.flow-box .fb-sub { font-size: 14.5px; line-height: 1.65; }
.formula { font-size: 19px; }

/* Quiz + CYU: bigger targets */
.cyu .cyu-q { font-size: 18px; line-height: 1.75; }
.cyu .cyu-opt { font-size: 17px; line-height: 1.6; padding: 15px 17px; min-height: 54px; border-radius: 14px; }
.cyu .cyu-explain { font-size: 16.5px; line-height: 1.75; }
.quiz-q { font-size: 19.5px !important; line-height: 1.65 !important; }
.quiz-opts button, #quiz-opts button, #qzc-opts button {
  font-size: 17.5px !important;
  line-height: 1.55 !important;
  padding: 15px 17px !important;
  min-height: 54px;
  border-radius: 14px !important;
}
.quiz-explain { font-size: 16.5px !important; line-height: 1.75 !important; }

/* Buttons and inputs: tablet-friendly */
.big-btn, .btn, .mark-done-btn, .lab-btn, .lesson-gate-btn {
  font-size: 17px !important;
  padding: 14px 26px !important;
  min-height: 54px;
  border-radius: 14px !important;
}
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  font-size: 17px !important;
  padding: 13px 15px !important;
  min-height: 52px;
}
input[type="range"] { height: 40px; cursor: pointer; }
.lab-status { font-size: 16px; line-height: 1.7; }

/* Code stays monospace but bigger */
.code-block pre, .code-block code { font-size: 15px; line-height: 1.7; }

/* Sidebar outline */
.course-outline a { font-size: 15.5px; padding-top: 9px; padding-bottom: 9px; }
.sidebar-toggle { font-size: 16px; min-height: 48px; }

/* ---------- 3D game shells ---------- */
.vox-hud .vh-item { font-size: 17px !important; padding: 9px 15px !important; }
.vox-msg { font-size: 17px !important; line-height: 1.7; padding: 15px 17px !important; }
.sentence-band { font-size: 21px !important; line-height: 1.6; }
.pick-row button { font-size: 19px !important; min-height: 60px !important; border-radius: 16px !important; }
.lr-row .lr-val { font-size: 26px !important; }
.lr-row { padding: 16px 18px !important; }
.vox-controls .big-btn { flex: 1; min-width: 160px; }

/* ---------- Hub / course-home pages ---------- */
.ch-inner p { font-size: 17.5px; line-height: 1.75; max-width: 66ch; }
/* fix dark-on-dark bold text inside the hero band */
.course-hero .ch-stat b { color: #fff; }
.course-hero .ch-inner p strong, .course-hero .ch-inner p b { color: #ffd75e; }
.ch-stat b { font-size: 25px; }
.outcomes-grid .outcome p { font-size: 16.5px; line-height: 1.7; }
.mc-body p { font-size: 16px; line-height: 1.7; }
.mc-body h3 { font-size: 20px; }
.hub-card p { font-size: 16px; line-height: 1.7; }
.hub-card li { font-size: 15.5px; line-height: 1.65; margin-bottom: 7px; }

/* ---------- Mobile / tablet ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .lesson-main p, .lesson-main li { font-size: 17px; }
  .vox-controls, .pick-row { gap: 12px; }
}

/* ---------- Ordered week path (hub navigation) ---------- */
.week-path { display: flex; flex-direction: column; gap: 16px; max-width: 920px; }
.wp-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 2px solid var(--line-strong); border-radius: 20px;
  padding: 22px; text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.wp-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,27,75,.10); }
.wp-num {
  flex: none; width: 62px; height: 62px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff; background: #0d1b4b;
}
.wp-body { flex: 1; min-width: 0; }
.wp-kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: 4px; }
.wp-body h3 { margin: 0 0 6px; font-size: 21px; color: var(--ink); }
.wp-body > p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-mid); }
.wp-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wp-links span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--line-strong); border-radius: 999px;
  padding: 9px 15px; font-size: 14.5px; font-weight: 700; color: var(--ink);
  background: var(--bg-2, #f6f7fb);
}
.wp-links .wp-open { background: #0d1b4b; border-color: #0d1b4b; color: #fff; }
@media (max-width: 640px) {
  .wp-card { flex-direction: column; gap: 12px; }
  .wp-num { width: 52px; height: 52px; font-size: 22px; }
}

/* ---------- Week page quick links + previous/next ---------- */
.wk-quicklinks { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 14px; }
.wk-quicklinks a {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--line-strong); border-radius: 16px;
  background: #fff; color: var(--ink); text-decoration: none;
  padding: 14px 20px; font-size: 16px; font-weight: 700; min-height: 54px;
  transition: transform .12s ease, border-color .12s ease;
}
.wk-quicklinks a:hover { transform: translateY(-2px); border-color: #0d1b4b; }
.week-nav { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 26px; }
.week-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; font-size: 15px; font-weight: 700;
  background: var(--bg-2, #f6f7fb); border: 2px solid var(--line-strong);
  color: var(--ink); text-decoration: none; min-height: 48px;
}
.week-nav a:hover { border-color: #0d1b4b; }

/* ---------- Animated teen visualisations (js/teen-viz.js) ---------- */
.teen-viz { margin: 30px 0; }
.tv-shell {
  background: #0b1443;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 14px 36px rgba(10,16,48,.35);
}
.tv-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px; font-weight: 800; letter-spacing: .01em;
  color: #fff; margin-bottom: 12px;
}
.tv-canvas {
  display: block; width: 100%; height: auto;
  background: #060c2a; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.tv-caption {
  font-family: 'Arial', sans-serif; font-size: 13.5px; line-height: 1.6;
  color: #aab4dd; margin: 12px 2px 0;
}
.tv-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.tv-btn {
  font-family: 'Montserrat', Arial, sans-serif; font-size: 13.5px; font-weight: 700;
  color: #cfe0ff; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(142,201,255,.4); border-radius: 100px;
  padding: 9px 18px; cursor: pointer; min-height: 42px; transition: all .15s;
}
.tv-btn:hover { border-color: #2bf0c8; color: #fff; }
.tv-btn.on { background: #2bf0c8; border-color: #2bf0c8; color: #06121f; }
.tv-slider-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: 100%; }
.tv-slider-label { font-family: 'Montserrat', Arial, sans-serif; font-size: 13.5px; font-weight: 700; color: #cfe0ff; }
.tv-slider-label b { color: #ffc800; }
.tv-slider { flex: 1; min-width: 180px; accent-color: #2bf0c8; height: 34px; cursor: pointer; }
@media (max-width: 640px) {
  .tv-shell { padding: 16px 14px 14px; }
  .tv-btn { font-size: 13px; padding: 9px 14px; }
}
