/* The Education pages (education.html, education-te.html, education-hi.html). Builds on site.css tokens. */

/* Telugu and Devanagari: their own faces, and taller lines so vowel signs and conjuncts don't clip. */
:root:lang(te) { --font: "Noto Sans Telugu", "Inter", system-ui, sans-serif; --display: "Noto Sans Telugu", "Space Grotesk", sans-serif; }
:root:lang(hi) { --font: "Noto Sans Devanagari", "Inter", system-ui, sans-serif; --display: "Noto Sans Devanagari", "Space Grotesk", sans-serif; }
:lang(te) body, :lang(hi) body { line-height: 1.8; }
:lang(te) h1, :lang(te) h2, :lang(te) h3, :lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.45; letter-spacing: 0; }
:lang(te) .eyebrow, :lang(hi) .eyebrow { letter-spacing: .02em; text-transform: none; font-size: .9rem; }

/* Language switch in the nav and the hero */
.langs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); }
.langs a { color: #c4d1e3; text-decoration: none; font-size: .88rem; padding: 6px 10px; border-radius: 7px; line-height: 1.2; }
.langs a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
.langs a:hover { color: #fff; }
.langs a[lang="te"] { font-family: "Noto Sans Telugu", sans-serif; }
.langs a[lang="hi"] { font-family: "Noto Sans Devanagari", sans-serif; }

/* Hero: the copy beside a TV showing a checkpoint question */
.edu-hero .hero__grid { grid-template-columns: 1fr 1.05fr; }
.edu-hero .lede { max-width: 34em; }
.edu-hero .langs { margin-top: 22px; }
@media (max-width: 900px) { .edu-hero .hero__grid { grid-template-columns: 1fr; } }

.tvwrap { margin: 0; }
.tv {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 10px solid #1c2735;
  background: linear-gradient(160deg, #0d1a2b, #081220);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .05);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 3.2cqw 3.6cqw;
  gap: 2cqw;
  color: #e6edf6;
  font-size: 12px;
  font-size: clamp(8px, 2.3cqw, 15px);
  line-height: 1.35;
}
.tv__bar { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; color: #9fb1c9; }
.tv__bar b { color: #fff; font-weight: 600; }
.tv__dots { display: inline-flex; gap: .8cqw; }
.tv__dots i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.tv__dots i.on { background: var(--teal-400); }
.tv__body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3cqw; align-items: center; }
.tv__fig { margin: 0; background: rgba(255, 255, 255, .04); border-radius: 1.6cqw; padding: 1.5cqw; }
.tv__fig svg { display: block; width: 100%; height: auto; }
.tv__q { display: grid; gap: 1.3cqw; }
.tv__q p { margin: 0; color: #fff; font-weight: 600; font-size: 1.12em; }
.tv__q ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1cqw; }
.tv__q li { display: flex; align-items: center; gap: 1.6cqw; padding: 1.1cqw 1.6cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, .06); border: 1px solid transparent; }
.tv__q li.focus { border-color: var(--amber-400); background: rgba(251, 191, 36, .12); box-shadow: 0 0 0 .4cqw rgba(251, 191, 36, .15); }
.key { flex: none; width: 2.2cqw; height: 2.2cqw; min-width: 7px; min-height: 7px; border-radius: 50%; }
.key--red { background: #ef4444; } .key--green { background: #22c55e; } .key--yellow { background: #facc15; } .key--blue { background: #3b82f6; }
.tv__hints { display: flex; flex-wrap: wrap; gap: .6cqw 2.4cqw; color: #9fb1c9; font-size: .92em; }
.tv__hints span { display: inline-flex; align-items: center; gap: .8cqw; }
.tv__hints kbd { font: 600 .9em/1 var(--font); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: .8cqw; padding: .4cqw .9cqw; }
.tvwrap figcaption { font-size: .82rem; color: #8ea1bb; margin-top: 12px; }

/* Facts under the hero use the site's .facts strip; these cells hold longer text. */
.edu-hero .fact b { font-size: 1.55rem; }
.edu-hero .fact span { display: block; line-height: 1.45; }

/* Sections */
.lead-in { max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.card h3 { margin-bottom: .45em; }
.card--list { margin-top: 20px; }
.card__tag { display: inline-block; font: 600 .74rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 9px; border-radius: 7px; margin-bottom: 14px; }
:lang(te) .card__tag, :lang(hi) .card__tag { text-transform: none; letter-spacing: 0; font-size: .82rem; }

/* The remote's key map */
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keys li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.keys .k { display: inline-flex; align-items: center; gap: 8px; font: 600 .86rem/1.2 var(--font); }
.keys .k .key { width: 12px; height: 12px; }
.keys li span:last-child { color: var(--muted); font-size: .94rem; }
@media (max-width: 480px) { .keys li { grid-template-columns: 1fr; gap: 4px; } }

.interactions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.interactions div { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.interactions b { display: block; font-family: var(--display); font-weight: 600; margin-bottom: 4px; }
.interactions span { color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) { .interactions { grid-template-columns: 1fr; } }

/* What we ask, and what the State gets */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ask .card ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.ask .card li { color: var(--text); font-weight: 600; }
.ask .card li span { display: block; color: var(--muted); font-size: .93rem; font-weight: 400; margin-top: 2px; }
.ask .card--give { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #e6edf6; border-color: transparent; }
.ask .card--give h3 { color: #fff; }
.ask .card--give li { color: #fff; }
.ask .card--give li span { color: #b8c6da; }
.ask .card--give .card__tag { background: rgba(45, 212, 191, .14); color: var(--teal-400); }
@media (max-width: 860px) { .ask { grid-template-columns: 1fr; } }

/* Timeline, by school term */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.timeline li { position: relative; padding: 18px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; border-top: 3px solid var(--accent); }
.timeline li.opt { border-top-style: dashed; }
.timeline time { display: block; font: 600 .8rem/1.3 var(--font); color: var(--accent); margin-bottom: 8px; }
.timeline b { display: block; font-family: var(--display); font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.timeline span { font-size: .9rem; color: var(--muted); }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

.status-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; }
.sources { font-size: .86rem; color: var(--muted); padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.sources a { word-break: break-word; }
