/* =========================================================
   ISAT 2026 · Infinity Scholars Hub
   Shared stylesheet for all pages.
   Fonts: Anek Latin (display) + Hind Vadodara (body).
   Both families have Gujarati siblings, so a Gujarati
   version of the site can keep the same look.
   ========================================================= */

:root {
  --ink: #2338a8;          /* ballpoint blue: brand + links */
  --ink-deep: #17246e;     /* hover / dark panels */
  --ink-tint: #eef1fb;     /* soft blue background */
  --haldi: #f2b705;        /* marigold accent: deadlines, highlights */
  --haldi-soft: #fff4cc;
  --text: #1a1f36;
  --muted: #555c78;
  --line: #d6dbef;
  --paper: #ffffff;
  --ok: #1f8a5b;
  --error: #b42318;

  --font-display: "Anek Latin", "Arial Narrow", Arial, sans-serif;
  --font-body: "Hind Vadodara", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1120px;
  --radius-sm: 6px;
  --radius-lg: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-deep); }

:focus-visible {
  outline: 3px solid var(--haldi);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-stretch: 87.5%; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-stretch: 87.5%; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Deadline strip ---------- */
.deadline-strip {
  background: var(--haldi);
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  padding: 0.45rem 1rem;
}
.deadline-strip strong { font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  line-height: 1.1;
}
.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 1.35rem;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.main-nav a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.98rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.login-link { font-size: 0.95rem; text-decoration: none; font-weight: 500; }

/* Mobile nav: a scrollable strip, never hidden behind a menu icon */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-nav ul { gap: 1.1rem; padding-bottom: 0.35rem; white-space: nowrap; }
  .login-link { display: none; }
}
@media (max-width: 440px) {
  .brand small { display: none; }
  .hero-lede { margin-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.75rem 1.3rem; border-radius: var(--radius-sm);
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink-tint); color: var(--ink-deep); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section[id] { scroll-margin-top: 90px; }
.section-tint { background: var(--ink-tint); }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(var(--paper), rgba(255,255,255,0.85)),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; column-gap: clamp(2rem, 5vw, 4rem); align-items: start;
  grid-template-areas: "copy card" "facts card";
}
.hero-copy { grid-area: copy; }
.hero-facts { grid-area: facts; }
.hero-grid .admit-card { grid-area: card; }
.hero-lede { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.8rem; }

/* Key facts written like a filled-in form: label on the left, "ink" answer on the right */
.facts { margin: 0 0 1.8rem; padding: 0; border-top: 1px solid var(--line); max-width: 520px; }
.facts div {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: 0.98rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; font-family: var(--font-display); font-size: 1.15rem; }

.founder-note { font-size: 0.98rem; color: var(--muted); }
.founder-note strong { color: var(--text); }

/* The admit card: the one bold element on the page */
.admit-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.6rem 1.5rem 1.4rem;
}
.admit-card-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-bottom: 1.4rem; padding-bottom: 1rem;
  border-bottom: 2px dashed var(--line); /* perforated tear line */
}
.admit-card-top h2 { font-size: 1.55rem; margin: 0; }
.admit-card-top span { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 0.65rem 0.8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--ink-tint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; gap: 0.6rem; }
.field .choice {
  flex: 1; display: flex; margin: 0; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem; cursor: pointer; font-weight: 500;
}
.field .choice:has(input:checked) { border-color: var(--ink); background: var(--ink-tint); }
.field .choice input { width: auto; margin: 0; accent-color: var(--ink); }
.field legend { padding: 0; }
.field-error { color: var(--error); font-size: 0.88rem; margin: 0.25rem 0 0; }
.field-error:empty { display: none; }
.field.invalid input, .field.invalid select { border-color: var(--error); }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0.8rem 0 0; }

.form-success {
  text-align: left; padding: 0.5rem 0;
}
.form-success h3 { color: var(--ok); }
.form-success[hidden] { display: none; }

/* ---------- Why ISAT ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
}
.why-item { border-left: 4px solid var(--haldi); padding-left: 1rem; }
.why-item h3 { margin-bottom: 0.3rem; }
.why-item p { color: var(--muted); margin: 0; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.95rem; }
tbody tr:last-child td { border-bottom: 0; }
td.big { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }

.scholar-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.scholar-layout h3 { margin-top: 0; }
.extras { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem 1.4rem; }
.extras ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.extras li { margin-bottom: 0.5rem; }
.small-print { font-size: 0.9rem; color: var(--muted); }

/* ---------- Exam details ---------- */
.details-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.detail { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail dt { color: var(--muted); font-size: 0.92rem; }
.detail dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 1.08rem; }

.venue { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; margin-top: 2.5rem; align-items: stretch; }
.venue iframe { width: 100%; min-height: 260px; border: 0; border-radius: var(--radius-sm); }

/* ---------- Steps (a real sequence, so numbers are earned) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  /* styled as a filled OMR bubble */
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 0 0 5px var(--ink-tint);
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Resources ---------- */
.resource-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.paper-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line); }
.paper-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.report-preview {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem;
}
.report-preview h3 { margin-bottom: 0.2rem; }
.report-preview .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.bar-row { display: grid; grid-template-columns: 7.5rem 1fr 3rem; align-items: center; gap: 0.7rem; margin-bottom: 0.65rem; font-size: 0.95rem; }
.bar { height: 10px; background: var(--ink-tint); border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.bar-row b { text-align: right; font-weight: 600; }
.mentor-note { margin-top: 1rem; background: var(--haldi-soft); border-radius: var(--radius-sm); padding: 0.8rem 1rem; font-size: 0.95rem; }

/* ---------- Programmes ---------- */
.programme-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.programme { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); }
.programme:last-child { border-right: 0; }
.programme .grade { color: var(--muted); font-size: 0.92rem; }
.programme h3 { margin: 0.15rem 0 0.35rem; color: var(--ink); }
.programme p { font-size: 0.93rem; color: var(--muted); margin: 0; }
@media (max-width: 700px) {
  .programme { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.proof {
  border-top: 3px solid var(--ink); padding-top: 1rem;
}
.proof .photo {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ink-tint);
  display: grid; place-items: center; color: var(--ink); font-weight: 700; margin-bottom: 0.8rem;
}
.proof .result { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.2rem; }
.proof .who { color: var(--muted); font-size: 0.93rem; margin-bottom: 0.6rem; }
.proof blockquote { margin: 0; font-size: 0.98rem; }
.rating-line { margin-top: 2rem; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; position: relative;
  font-weight: 600; font-size: 1.07rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 0.75rem;
  font-size: 1.6rem; color: var(--ink); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--ink); color: #fff; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #d9def7; }
.final-cta .btn { background: var(--haldi); border-color: var(--haldi); color: var(--text); }
.final-cta .btn:hover { background: #ffd033; border-color: #ffd033; }
.final-cta .btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.countdown { display: flex; gap: 1rem; margin: 1.5rem 0 0.5rem; }
.countdown div { text-align: center; min-width: 4.2rem; }
.countdown b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.countdown span { font-size: 0.85rem; color: #d9def7; }

/* ---------- Footer ---------- */
.site-footer { background: #10194f; color: #c9cfee; padding-block: 3rem 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.85rem; }

/* ---------- WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.wa-float:hover { background: #1ebe5b; color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Sub-page bits ---------- */
.page-hero { background: var(--ink-tint); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero p { color: var(--muted); font-size: 1.12rem; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 0.8rem; }
.breadcrumb a { text-decoration: none; }

.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.tab {
  font: inherit; font-weight: 600; padding: 0.55rem 1rem; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm); color: var(--text);
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-panel[hidden] { display: none; }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem 2rem; }
.subject h3 { border-bottom: 2px solid var(--haldi); padding-bottom: 0.3rem; }
.subject ul { padding-left: 1.2rem; margin: 0; }
.subject li { margin-bottom: 0.3rem; }
.panel-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose ol, .prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }

.portal-card { max-width: 440px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: 8px 8px 0 var(--ink); }
.portal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.notice { background: var(--haldi-soft); border-left: 4px solid var(--haldi); padding: 0.9rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem; }
.notice[hidden] { display: none; }

.topper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.topper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem; }
.topper .photo { width: 100%; aspect-ratio: 1; background: var(--ink-tint); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }
.topper h3 { margin-bottom: 0.15rem; font-size: 1.15rem; }
.topper .result { color: var(--ink); font-weight: 700; }
.topper .who { color: var(--muted); font-size: 0.9rem; }

/* Grid children may shrink below their content width (keeps tables scrolling inside their box) */
.hero-grid > *, .scholar-layout > *, .resource-layout > *, .venue > *, .portal-layout > * { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-areas: "copy" "card" "facts"; row-gap: 2rem; }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .scholar-layout, .resource-layout, .venue, .portal-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .facts div { grid-template-columns: 8.5rem 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .field-row { grid-template-columns: 1fr; row-gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .admit-card { box-shadow: 5px 5px 0 var(--ink); }
  .countdown b { font-size: 2rem; }
}

/* =========================================================
   v2 additions: walk-in focus, Bigin form, OTP gate
   ========================================================= */

/* OTP gate + form embed inside the admit card */
.step-label { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.9rem; }
.otp-inline { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: end; }
.otp-inline .field { margin: 0; }
.otp-code {
  letter-spacing: 0.5em; font-size: 1.3rem !important; font-family: var(--font-display) !important;
  text-align: center;
}
.otp-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; margin-top: 0.5rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.linklike:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.verified-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #e5f5ec; color: var(--ok); font-weight: 600; font-size: 0.9rem;
  padding: 0.3rem 0.7rem; border-radius: 99px; margin-bottom: 0.8rem;
}
.demo-note { background: var(--haldi-soft); font-size: 0.85rem; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); margin: 0 0 1rem; }
.demo-note[hidden], .otp-step[hidden], .form-embed[hidden] { display: none; }
.form-embed iframe { width: 100%; min-height: 720px; border: 0; display: block; }
.embed-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center;
  color: var(--muted); font-size: 0.95rem;
}

/* Test day: two tracks running at the same time */
.tracks { display: grid; grid-template-columns: 6rem 1fr 1fr; border-top: 2px solid var(--ink); }
.tracks .th { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
.tracks .time { padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.tracks .cell { padding: 1rem; border-bottom: 1px solid var(--line); }
.tracks .cell b { display: block; }
.tracks .cell span { color: var(--muted); font-size: 0.95rem; }
.tracks .parent { background: var(--haldi-soft); }
.tracks .span2 { grid-column: 2 / 4; background: var(--ink-tint); }
@media (max-width: 700px) {
  .tracks { grid-template-columns: 4.2rem 1fr; }
  .tracks .th.student-h, .tracks .th.parent-h { display: none; }
  .tracks .th.blank { display: none; }
  .tracks .time { grid-row: span 2; }
  .tracks .span2 { grid-column: 2; }
  .tracks .time.single { grid-row: span 1; }
  .tracks .cell::before { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.15rem; }
  .tracks .student::before { content: "Student"; }
  .tracks .parent::before { content: "Parent"; }
}

/* Directions */
.directions { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.directions li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.directions b { display: inline-block; min-width: 7rem; }

/* Visit page */
.hours { margin: 0; padding: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }

/* Thank-you page */
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: ns; max-width: 720px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.next-steps li::before {
  content: counter(ns); width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.next-steps h3 { margin-bottom: 0.25rem; }
.next-steps p { margin: 0 0 0.6rem; color: var(--muted); }
.big-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; margin-bottom: 1rem; }

/* Aegis line */
.aegis { font-size: 0.9rem; color: #c9cfee; margin-top: 0.4rem; }
.aegis strong { color: #fff; font-weight: 600; }
.hero-aegis { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }

.step-label[hidden], .verified-pill[hidden] { display: none; }

/* =========================================================
   Photos. Any photo crops to its frame (object-fit), so staff
   can upload whatever they shoot. Missing files show a labelled
   placeholder describing the shot needed.
   ========================================================= */
.ph { margin: 0; }
.ph img, .ph-missing {
  display: block; width: 100%;
  aspect-ratio: var(--r, 4 / 3);
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--ink-tint);
}
.ph-4x3 { --r: 4 / 3; }
.ph-3x2 { --r: 3 / 2; }
.ph-1x1 { --r: 1 / 1; }
.ph-16x9 { --r: 16 / 9; }
.ph figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.45rem; }
.ph-missing {
  display: grid; place-content: center; gap: 0.35rem; text-align: center;
  padding: 1rem; border: 2px dashed #b9c2e6; color: var(--muted); font-size: 0.85rem; line-height: 1.35;
}
.ph-missing svg { width: 28px; height: 28px; margin: 0 auto; color: var(--ink); }
.ph-missing b { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.ph-missing code { font-size: 0.8rem; color: var(--ink); word-break: break-all; }

/* Band of three photos right after the hero */
.photo-band { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.mosaic { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
.mosaic .ph:first-child { grid-row: 1 / 3; display: flex; flex-direction: column; }
.mosaic .ph:first-child img, .mosaic .ph:first-child .ph-missing { flex: 1; aspect-ratio: auto; min-height: 300px; }
.mosaic .ph:not(:first-child) img, .mosaic .ph:not(:first-child) .ph-missing { aspect-ratio: 16 / 9; }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }

/* Founder portrait beside the note */
.founder { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: center; margin-bottom: 0.4rem; }
.founder .ph img, .founder .ph-missing { border-radius: 50%; padding: 0; }
.founder .ph-missing b, .founder .ph-missing code { display: none; }
.founder .founder-note { margin: 0; }

.proof-photo { width: 88px; margin-bottom: 0.9rem; }
.proof-photo img, .proof-photo .ph-missing { border-radius: 50%; padding: 0; }
.proof-photo .ph-missing b, .proof-photo .ph-missing code { display: none; }

.topper .ph { margin-bottom: 0.9rem; }
.venue .ph, .ph-inline { margin: 0.4rem 0 1.2rem; max-width: 460px; }

@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mosaic .ph:first-child { grid-row: auto; grid-column: 1 / 3; }
  .mosaic .ph:first-child img, .mosaic .ph:first-child .ph-missing { aspect-ratio: 4 / 3; min-height: 0; }
  .mosaic .ph:not(:first-child) img, .mosaic .ph:not(:first-child) .ph-missing { aspect-ratio: 1 / 1; }
  .photo-row { grid-template-columns: 1fr; }
}
