/* ========================================================================
   LISA Academy · Parent–Teacher Conference
   Same look as the Staff (Data) Portal and the Parent Portal:
   ink, paper and LISA red; Bricolage Grotesque for display,
   Instrument Serif italics for accents, JetBrains Mono for labels,
   Inter for body text. Shared by index.html (families) and
   teacher.html (staff), whose inline styles use the legacy token
   names below — they are mapped onto the new palette.
   ======================================================================== */

:root {
  /* LISA palette */
  --ink:      #0b0b0b;
  --ink-2:    #161514;
  --paper:    #f2eee7;
  --paper-2:  #e6dfd3;
  --lisa-red: #da251d;
  --line:     rgba(11, 11, 11, 0.12);
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif:   "Instrument Serif", Georgia, serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;
  --f-body:    "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4.5vw, 64px);

  /* legacy tokens (used by teacher.html / teacher.js / admin.js) */
  --red:       #da251d;
  --red-soft:  #ff5a51;
  --red-deep:  #b31d16;
  --blue:      #0b0b0b;
  --blue-soft: #6f6a63;
  --blue-deep: #0b0b0b;
  --yellow:    #e0a526;
  --green:     #2f7d4f;
  --ok:        #2f7d4f;

  --bg:        #f2eee7;
  --surface:   #ffffff;
  --surface-2: #f2eee7;
  --text:      #0b0b0b;
  --text-soft: #3d3a36;
  --muted:     #6f6a63;

  --sh-out:    0 0 0 1px rgba(11,11,11,.08), 0 18px 40px -24px rgba(11,11,11,.35);
  --sh-out-md: 0 0 0 1px rgba(11,11,11,.08), 0 12px 28px -20px rgba(11,11,11,.3);
  --sh-out-sm: 0 0 0 1px rgba(11,11,11,.08);
  --sh-in:     inset 0 0 0 1px rgba(11,11,11,.1);
  --sh-in-sm:  inset 0 0 0 1px rgba(11,11,11,.08);

  --r-xl:  26px;
  --r-lg:  20px;
  --r-md:  16px;
  --r-sm:  12px;
  --r-pill: 999px;

  --font: var(--f-body);
  --font-display: var(--f-display);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; }
/* lock sideways panning on phones (body alone is not enough); clip keeps sticky bars working */
html { overflow-x: clip; }

body {
  font: 16px/1.5 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
button { font-family: inherit; }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 500; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.kick, .eyebrow, .step-index, .hero-eyebrow, .signin-info-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.kick::before, .eyebrow::before, .step-index::before, .signin-info-eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--red); flex-shrink: 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(218,37,29,.6); } 70% { box-shadow: 0 0 0 8px rgba(218,37,29,0); } 100% { box-shadow: 0 0 0 0 rgba(218,37,29,0); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Old decorative blobs — retired. */
.bg-blobs, .blob { display: none !important; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  background: var(--ink); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; min-width: 0; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: left; text-decoration: none; }
.crest { width: 40px; height: auto; display: block; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(218,37,29,.25)); transition: transform .6s var(--ease); }
.brand:hover .crest { transform: rotate(-6deg) scale(1.06); }
.brand-t { display: flex; flex-direction: column; white-space: nowrap; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.12); }
.brand-t b { font: 700 16px/1.05 var(--f-display); letter-spacing: -.025em; }
.brand-t em { font-size: 19px; line-height: 1.05; color: var(--red-soft); margin-top: 1px; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.chip .dot, .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.chip .dot { animation: pulse 2s infinite; }

.back-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 10px; border-radius: var(--r-pill);
  background: transparent; color: #fff; text-decoration: none;
  font: 600 13px var(--f-display);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transition: background-color .25s, color .25s;
}
.back-chip:hover { background: #fff; color: var(--ink); }

.social-icons-group { display: flex; align-items: center; gap: 2px; }
.nav-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none;
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.nav-icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; transform: rotate(-8deg); }

.lang-switch { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.lang-btn { height: 28px; min-width: 36px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: transparent; color: rgba(255,255,255,.55); font: 500 11px var(--f-mono); letter-spacing: .06em; cursor: pointer; transition: background-color .2s, color .2s; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: #fff; color: var(--ink); font-weight: 700; }
.lang-divider { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  background: #fff; color: var(--ink);
  font: 700 14.5px var(--f-display); letter-spacing: -.01em;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .25s, color .25s, box-shadow .3s, transform .35s var(--ease);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink), 4px 4px 0 0 var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn-primary:hover:not(:disabled) { box-shadow: 4px 4px 0 0 var(--red); }
.btn-blue { background: var(--ink); color: #fff; box-shadow: none; }
.btn-ghost { background: transparent; }
.btn-xl { height: 58px; padding: 0 8px 0 24px; font-size: 16px; }
.btn-xl:not(:has(.btn-date:empty)) { padding-left: 8px; }
.btn-date {
  display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--red); color: #fff; font: 600 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.btn-date:empty { display: none; }
.btn-xl > span:last-child { padding-right: 16px; }

/* ── Page frame ──────────────────────────────────────────────────────── */
.container { max-width: 1500px; margin: 0 auto; padding: 0 var(--pad) 48px; }
.container > .topbar { margin: 0 calc(-1 * var(--pad)) 28px; }
.stage { display: block; }
.wrap { max-width: 1500px; margin: 0 auto; padding: 0 var(--pad); }

.footer {
  max-width: 1500px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 26px;
  padding: 18px var(--pad) 26px; border-top: 1px solid var(--line); color: var(--muted);
}
.footer a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer a:hover { color: var(--red); }
.footer i { color: var(--red); }
.heart { color: var(--red); }

/* ── Hero (landing) ──────────────────────────────────────────────────── */
.hero { position: relative; min-height: clamp(460px, 72vh, 680px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: zoom 2.4s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.25) 55%, rgba(11,11,11,.95) 100%),
              linear-gradient(90deg, rgba(11,11,11,.65) 0%, transparent 65%); }
.hero-content { padding: 96px var(--pad) clamp(28px, 5vh, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); align-items: end; gap: clamp(24px, 3vw, 48px); }
.hero-text { container-type: inline-size; min-width: 0; }
.hero .kick { color: rgba(255,255,255,.72); animation: fadeUp .9s var(--ease) both; }
.hero h1 { margin: 0; font: 800 clamp(44px, 13cqi, 150px)/.88 var(--f-display); letter-spacing: -.055em; animation: fadeUp 1s var(--ease) .05s both; }
.hero h1 em { color: var(--red-soft); font-size: 1.04em; letter-spacing: -.03em; }
.hero-aside { display: grid; gap: 18px; padding-bottom: 6px; animation: fadeUp 1s var(--ease) .3s both; }
.hero .lead { margin: 0; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.82); }
.hero .btn-primary { background: #fff; color: var(--ink); justify-self: start; }
.hero .btn-primary:hover:not(:disabled) { box-shadow: 5px 5px 0 0 var(--red); }

/* ── Section heads ───────────────────────────────────────────────────── */
.sec-head, .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(20px, 4vw, 64px); padding: clamp(44px, 6vw, 88px) 0 26px; }
.sec-head h2, .section-head h2, .neo-cal-text h2 { margin: 0; font: 800 clamp(34px, 4.6vw, 68px)/.95 var(--f-display); letter-spacing: -.045em; }
.sec-head h2 em, .section-head h2 em, .neo-cal-text h2 em { color: var(--red); font-size: 1.04em; }
.stats-lead { margin: 0; max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.section-rule { display: none; }

/* ── Research stats ──────────────────────────────────────────────────── */
.stats-charts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat-chart-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: var(--r-lg); background: #fff;
  box-shadow: inset 0 0 0 1px rgba(11,11,11,.07);
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.stat-chart-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--ink), 6px 6px 0 0 var(--red); }
.stat-chart-num { font: 800 clamp(40px, 4vw, 56px)/1 var(--f-display); letter-spacing: -.05em; color: var(--ink); }
.stat-chart-card:nth-child(2n) .stat-chart-num { color: var(--red); }
.stat-chart-label { font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-chart-wrap { margin: 10px 0 4px; }
.stat-chart-wrap svg { display: block; width: 100%; height: 110px; }
.stat-chart-caption { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-soft); }
.stats-source { margin: 18px 0 0; color: var(--muted); }
.stats-source a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--red); }
.stats-source a:hover { color: var(--red); }

/* ── Conference dates + calendar ─────────────────────────────────────── */
.neo-cal-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(56px, 7vw, 104px); }
.neo-cal-text p { margin: 18px 0 0; max-width: 560px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.neo-cal-dates { display: grid; gap: 10px; margin: 26px 0; max-width: 560px; }
.neo-cal-date-item { display: grid; gap: 3px; padding: 16px 20px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px rgba(11,11,11,.07); }
.neo-cal-date-item.is-next { background: var(--ink); color: #fff; box-shadow: 6px 6px 0 0 var(--red); }
.neo-cal-date-badge { color: var(--red-soft); }
.neo-cal-date-val { font: 700 22px/1.15 var(--f-display); letter-spacing: -.025em; }
.neo-cal-date-sub { font-size: 13.5px; color: var(--muted); }
.is-next .neo-cal-date-sub { color: rgba(255,255,255,.65); }

/* status: past / open / upcoming */
.neo-cal-date-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.st-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.neo-cal-date-item.is-past { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.neo-cal-date-item.is-past .neo-cal-date-val { color: rgba(11,11,11,.38); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.neo-cal-date-item.is-past .neo-cal-date-sub { color: rgba(11,11,11,.38); }
.neo-cal-date-item.is-past .neo-cal-date-badge { color: rgba(11,11,11,.4); }
.neo-cal-date-item.is-upcoming .neo-cal-date-badge { color: var(--ink); }
.neo-cal-date-item.is-upcoming.is-next { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 0 var(--paper-2); }
.neo-cal-date-item.is-upcoming.is-next .neo-cal-date-sub { color: var(--muted); }
.neo-cal-date-item.is-open { background: var(--ink); color: #fff; box-shadow: 6px 6px 0 0 var(--red); }
.neo-cal-date-item.is-open .neo-cal-date-badge { color: var(--red-soft); }
.neo-cal-date-item.is-open .st-dot { background: var(--red); animation: pulse 2s infinite; }
.neo-cal-date-item.is-open .neo-cal-date-sub { color: rgba(255,255,255,.65); }

.neo-cal-date-lock { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--ink); }
.neo-cal-date-lock i { margin-top: 3px; font-size: 11px; color: var(--red); }
.neo-cal-date-lock.is-open { color: #fff; border-top-color: rgba(255,255,255,.14); }
.neo-cal-date-lock.is-open i { color: var(--red-soft); }
.neo-cal-date-item.is-upcoming:not(.is-next) .neo-cal-date-lock { display: none; }
.neo-cal-date-item.is-tba .neo-cal-date-val { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 26px; }

.neo-cal-grid span.gone { color: rgba(11,11,11,.28); }
.neo-cal-grid span.today { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; }
.neo-cal-badge-open.is-upcoming { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.neo-cal-badge-open.is-upcoming .dot { background: var(--muted); animation: none; }
.neo-cal-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 10px; text-align: center; color: var(--muted); }
.neo-cal-empty i { font-size: 34px; color: var(--ink); }
.neo-cal-empty p { margin: 0; font-size: 15px; }

.chip.is-closed .dot { background: rgba(255,255,255,.4); animation: none; }

.btn.is-locked, .btn.is-locked:hover { opacity: 1; background: transparent !important; color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor !important; transform: none; cursor: not-allowed; }
.hero .btn.is-locked { color: #fff; }
.btn.is-locked .btn-date { background: rgba(255,255,255,.14); }
.btn.is-locked::before { content: "\f023"; font: 900 12px/1 "Font Awesome 6 Free"; margin-left: 4px; }

.neo-cal-widget { display: flex; justify-content: center; }
.neo-cal-card { width: 100%; max-width: 420px; padding: 26px; border-radius: var(--r-xl); background: #fff; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--red); transition: box-shadow .5s var(--ease); }
.neo-cal-card:hover { box-shadow: 14px 14px 0 var(--red); }
.neo-cal-header { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.neo-cal-month-num { font: 800 34px/1 var(--f-display); letter-spacing: -.045em; }
.neo-cal-month-num em { color: var(--red); }
.neo-cal-title { color: var(--muted); }
.neo-cal-dow-row, .neo-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.neo-cal-dow-row { color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.neo-cal-grid { gap: 4px; }
.neo-cal-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font: 500 14px var(--f-body); font-variant-numeric: tabular-nums; }
.neo-cal-grid span.out { visibility: hidden; }
.neo-cal-grid span.hi { background: var(--red); color: #fff; font: 800 15px var(--f-display); box-shadow: 0 0 0 4px rgba(218,37,29,.15); }
.neo-cal-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.neo-cal-dayname { font: 700 15px var(--f-display); letter-spacing: -.015em; }
.neo-cal-badge-open { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
.neo-cal-badge-open .dot { animation: pulse 2s infinite; }

/* ── Campus ──────────────────────────────────────────────────────────── */
.campus { padding-bottom: clamp(48px, 6vw, 96px); }
.campus-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.campus-image { position: relative; min-height: 420px; border-radius: 22px; overflow: hidden; background: var(--ink); }
.campus-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.campus-image:hover img { transform: scale(1.04); }
.campus-copy { padding: clamp(24px, 3vw, 40px); border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11,11,11,.07); }
.campus-copy h3 { margin: 0; font: 800 clamp(26px, 2.6vw, 38px)/1 var(--f-display); letter-spacing: -.04em; }
.campus-copy > p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.campus-grid-inner { margin-top: 28px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.cg-title { margin: 0 0 16px; font: 700 19px/1.2 var(--f-display); letter-spacing: -.02em; }

.campus-dropdown { position: relative; }
.cd-trigger {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 54px; padding: 0 20px;
  border: 0; border-radius: var(--r-pill); background: var(--paper); color: var(--ink);
  font: 600 15px var(--f-display); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .25s, background-color .25s, color .25s;
}
.cd-trigger:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cd-trigger[aria-expanded="true"] { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 0 var(--red); }
.cd-ic { color: var(--red); font-size: 14px; }
.cd-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.cd-value.chosen, .cd-trigger[aria-expanded="true"] .cd-value { color: inherit; }
.cd-chevron { font-size: 11px; opacity: .55; transition: transform .35s var(--ease); }
.cd-trigger[aria-expanded="true"] .cd-chevron { transform: rotate(180deg); }
.cd-panel { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; right: 0; max-height: min(400px, 60vh); overflow-y: auto; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(11,11,11,.1), 0 24px 48px -16px rgba(11,11,11,.35); animation: pop .28s var(--ease) both; }
.cd-panel[hidden] { display: none; }
.cd-group + .cd-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.cd-group-label { display: block; padding: 8px 10px 4px; font: 500 10px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cd-item { display: block; width: 100%; padding: 10px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); font: 500 14px var(--f-body); text-align: left; cursor: pointer; transition: background-color .2s; }
.cd-item:hover { background: var(--paper); }
.cd-item.selected { font-weight: 700; background: var(--paper); box-shadow: inset 3px 0 0 var(--red); }

.campus-addr-reveal {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 14px 14px 14px;
  border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none;
  animation: fadeUp .5s var(--ease) both; transition: transform .4s var(--ease), box-shadow .3s;
}
.campus-addr-reveal[hidden] { display: none; }
.campus-addr-reveal:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 0 var(--red); }
.car-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--red); font-size: 15px; }
.car-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.car-text strong { font: 700 15px/1.2 var(--f-display); letter-spacing: -.01em; }
.car-text span { font-size: 13px; color: rgba(255,255,255,.65); }
.car-cta { flex-shrink: 0; color: var(--red-soft); }

/* ── Booking steps (cards) ───────────────────────────────────────────── */
.card.step { max-width: 1160px; margin: clamp(28px, 4vw, 56px) auto clamp(40px, 6vw, 80px); padding: 0 var(--pad); animation: fadeUp .7s var(--ease) both; }
.step-head { margin-bottom: clamp(22px, 3vw, 34px); }
.step-head h1 { margin: 0; font: 800 clamp(40px, 6vw, 84px)/.9 var(--f-display); letter-spacing: -.05em; }
.step-head h1 em { color: var(--red); }
.step-head .muted { margin: 14px 0 0; font-size: 16px; line-height: 1.55; max-width: 640px; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.row.end { justify-content: flex-end; }

.grid { display: grid; gap: 10px; }
.grid.children { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.teachers { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 170px; padding: 20px; border-radius: var(--r-lg);
  background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(11,11,11,.07);
  transition: background-color .3s, color .3s, transform .5s var(--ease), box-shadow .3s;
}
.tile::after { content: "\f061"; position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 900 12px/1 "Font Awesome 6 Free"; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.tile:hover { background: var(--ink); color: #fff; transform: translateY(-4px); box-shadow: 6px 6px 0 0 var(--red); }
.tile:hover::after { background: var(--red); color: #fff; transform: rotate(-45deg); }
.tile .avatar {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 24px;
  background: var(--paper); color: var(--ink);
  transition: background-color .3s, color .3s;
}
.tile .avatar.child-initials { border-radius: 50%; background: var(--red); color: #fff; font: 800 18px var(--f-display); letter-spacing: -.02em; }
.tile .avatar.subject-emoji { box-shadow: inset 0 -3px 0 var(--subject-color, var(--red)); }
.tile:hover .avatar.subject-emoji { background: rgba(255,255,255,.12); }
.tile .title { margin-top: 18px; font: 700 20px/1.15 var(--f-display); letter-spacing: -.025em; }
.tile .sub { font-size: 13.5px; line-height: 1.45; color: var(--muted); transition: color .3s; }
.tile:hover .sub { color: rgba(255,255,255,.6); }
.tile .chip { margin-top: 10px; height: 26px; padding: 0 11px; background: var(--paper); color: var(--ink); box-shadow: none; font-size: 10px; }
.tile .chip.is-booked { background: var(--green); color: #fff; }
.tile:hover .chip { background: rgba(255,255,255,.14); color: #fff; }

/* Scheduled list */
.scheduled { margin-top: clamp(32px, 4vw, 52px); }
.scheduled-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.scheduled-head h2 { margin: 0; font: 700 clamp(22px, 2.2vw, 30px)/1.05 var(--f-display); letter-spacing: -.03em; }
.count-pill { min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--red); color: #fff; font: 800 15px var(--f-display); }
.scheduled-list { display: grid; }
.sched-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sched-time { font: 800 22px/1.1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sched-title { font: 700 17px/1.25 var(--f-display); letter-spacing: -.015em; }
.sched-meta { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.sched-flag { display: inline-flex; align-items: center; margin-top: 8px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font: 500 10px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.sched-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sched-action-btn { height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: #fff; color: var(--ink); font: 600 12.5px var(--f-display); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, color .25s, box-shadow .25s; }
.sched-action-btn:hover { background: var(--ink); color: #fff; box-shadow: none; }
.sched-action-cancel { color: var(--red); }
.sched-action-cancel:hover { background: var(--red); }

/* Slots */
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend .dot.available { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.legend .dot.taken { background: var(--paper-2); }
.legend .dot.break { background: repeating-linear-gradient(45deg, var(--paper-2) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--line); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.slot {
  height: 56px; border: 0; border-radius: var(--r-md); background: #fff; color: var(--ink);
  font: 700 16px var(--f-display); letter-spacing: -.015em; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgba(11,11,11,.1); cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .35s var(--ease);
}
.slot:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink), 4px 4px 0 0 var(--red); }
.slot.selected { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 0 var(--red); }
.slot.taken, .slot:disabled { background: var(--paper-2); color: rgba(11,11,11,.32); box-shadow: none; text-decoration: line-through; cursor: not-allowed; }
.slot.suggested { background: var(--red); color: #fff; box-shadow: none; }
.slot.break { background: repeating-linear-gradient(45deg, var(--paper-2) 0 4px, transparent 4px 9px); color: var(--muted); cursor: default; }

/* Form */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: #fff; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--red); }
.field, .sf-cell { display: grid; gap: 7px; }
.field.full, .row.full { grid-column: 1 / -1; }
.field > span, .sf-cell > span { font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .sf-cell input {
  width: 100%; min-height: 50px; padding: 14px 18px; border: 0; border-radius: 14px; outline: 0;
  background: var(--paper); color: var(--ink); font: 15px var(--f-body);
  transition: box-shadow .25s, background-color .25s;
}
.field input[readonly] { font-weight: 600; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .sf-cell input:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), 3px 3px 0 0 var(--red); outline: 0; }
.field input::placeholder, .field textarea::placeholder, .sf-cell input::placeholder { color: rgba(11,11,11,.38); }
.form-grid .row { margin-top: 10px; }

.check { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper); cursor: pointer; font-size: 14.5px; transition: background-color .2s; }
.check:hover { background: var(--paper-2); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(11,11,11,.3); display: grid; place-items: center; transition: background-color .2s, box-shadow .2s; }
.check-box::after { content: "\f00c"; font: 900 11px/1 "Font Awesome 6 Free"; color: #fff; transform: scale(0); transition: transform .3s var(--ease); }
.check input:checked + .check-box { background: var(--red); box-shadow: none; }
.check input:checked + .check-box::after { transform: scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--red); outline-offset: 3px; }

/* Summary */
.summary { display: grid; gap: 10px; }
.summary-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px rgba(11,11,11,.07); }
.summary-item:first-child { border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.summary-item .num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 18px var(--f-display); }
.summary-item .time { font: 700 18px/1.2 var(--f-display); letter-spacing: -.02em; }
.summary-item .meta { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.summary-item .meta strong { color: var(--ink); }
.summary-item .tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--green); color: #fff; font: 600 10.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

/* Old sign-in step (demo) */
.signin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.signin-left { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: #fff; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--red); }
.signin-title { margin: 0; font: 800 clamp(36px, 4vw, 56px)/.92 var(--f-display); letter-spacing: -.045em; }
.signin-form { display: grid; gap: 14px; margin-top: 22px; }
.sf-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signin-cta { width: 100%; }
.signin-info-panel { height: 100%; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.signin-info-eyebrow { color: rgba(255,255,255,.6); }
.signin-info-title { margin: 0; font: 800 clamp(30px, 3vw, 44px)/.95 var(--f-display); letter-spacing: -.04em; }
.signin-info-title em { color: var(--red-soft); }
.signin-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 4px; }
.signin-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.ssi-num { font: 500 11px var(--f-mono); color: var(--red-soft); padding-top: 3px; }
.signin-step strong { font: 700 15px var(--f-display); }
.signin-step p { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.6); }

/* ── Toasts + confirm modal (shared) ─────────────────────────────────── */
.toasts { position: fixed; z-index: 1200; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; width: min(520px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 100%; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; font: 500 14px/1.45 var(--f-body); box-shadow: 0 18px 40px -14px rgba(11,11,11,.6); opacity: 0; transform: translateY(18px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast > i { color: var(--red-soft); flex-shrink: 0; }
.toast.error { background: var(--red); }
.toast.error > i { color: #fff; }
.toast button { margin-left: auto; padding: 2px 4px; border: 0; background: transparent; color: rgba(255,255,255,.6); font-size: 11px; cursor: pointer; }

.ptc-modal-back { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgba(11,11,11,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeUp .25s ease both; }
.ptc-modal { width: min(440px, 100%); padding: 26px; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 12px 12px 0 0 var(--red); animation: fadeUp .45s var(--ease) both; }
.ptc-modal-ic { width: 52px; height: 52px; margin-bottom: 16px; border-radius: 16px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 19px; }
.ptc-modal h3 { margin: 0; font: 800 26px/1.05 var(--f-display); letter-spacing: -.04em; }
.ptc-modal p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ptc-modal .btn:focus-visible { outline-color: var(--ink); }
.ptc-modal-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.btn.red { background: var(--red); color: #fff; box-shadow: none; }
.btn.red:hover:not(:disabled) { background: var(--ink); box-shadow: 4px 4px 0 0 var(--red); }

.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--red); animation: spin .8s linear infinite; }
.btn.is-busy > * { visibility: hidden; }

/* ── Scrollbars ──────────────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: rgba(11,11,11,.22) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(11,11,11,.2); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-charts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 22px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .neo-cal-section { grid-template-columns: 1fr; }
  .campus-band { grid-template-columns: 1fr; }
  .campus-image { min-height: 260px; }
  .signin-layout { grid-template-columns: 1fr; }
  .social-icons-group { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; gap: 10px; }
  .crest { width: 34px; }
  .brand-t { display: none; }
  .topbar .chip { height: 28px; padding: 0 10px; font-size: 9.5px; }
  .hero { min-height: 520px; }
  .hero-content { padding-top: 80px; }
  .btn-xl { width: 100%; justify-content: space-between; }
  .stats-charts-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-chart-card { padding: 14px; }
  .stat-chart-num { font-size: 34px; }
  .stat-chart-wrap svg { height: 80px; }
  .stat-chart-caption { font-size: 12.5px; }
  .neo-cal-card { box-shadow: 7px 7px 0 var(--red); padding: 20px; }
  .form-grid { grid-template-columns: 1fr; box-shadow: 7px 7px 0 var(--red); }
  .sched-item { grid-template-columns: 1fr; gap: 6px; }
  .summary-item { grid-template-columns: 40px minmax(0, 1fr); }
  .summary-item .num { width: 40px; height: 40px; font-size: 15px; }
  .summary-item .tag { grid-column: 2; justify-self: start; }
  .row.end { justify-content: stretch; }
  .row.end .btn { flex: 1; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .grid.children, .grid.teachers { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .sf-row.two { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .stats-charts-row { grid-template-columns: 1fr; }
  .topbar .chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
