:root {
  --navy: #1F2A6B; --navy-2: #2E3A85; --teal: #3D4FB0; --teal-d: #2E3A85; --teal-l: #E8EAF7;
  --coral: #F4A623; --coral-d: #A86400; --coral-l: #FFF3DC; --sun: #F4A623; --sun-l: #FFF6E0; --amber-hover: #E89512;
  --leaf: #4CB944; --leaf-l: #E8F7E6; --cream: #F6F7FB; --bg: #FBFBFE; --card: #FFFFFF;
  --ink: #1B2147; --muted: #6B7094; --line: #E3E5F0; --red: #D93A2B; --red-l: #FDECEA;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(35,48,91,.06), 0 6px 20px rgba(35,48,91,.06);
  --font-head: 'Montserrat', 'Nunito', system-ui, sans-serif; --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; margin-top: 1em; }
a { color: var(--teal-d); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--coral-d); }
img { max-width: 100%; }
code { background: var(--cream); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .mt { margin-top: .75rem; } .grow { flex: 1; min-width: 0; }
.pre { white-space: pre-wrap; } .good { color: #2E8B2A; } .warn { color: #C0532A; } .yes { color: #2E8B2A; font-weight: 700; } .no { color: var(--muted); }
.req { color: var(--coral-d); }

/* ---------- header / footer ---------- */
.demo-banner { background: var(--sun-l); border-bottom: 1px solid #F3DE9F; padding: 8px 16px; font-size: .85rem; text-align: center; }
.site-header { background: rgba(251,251,254,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 500; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; } .brand img { height: 40px; width: auto; display: block; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav-links a:not(.btn):hover, .nav-links a.active { background: var(--teal-l); color: var(--teal-d); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }
@media (max-width: 760px) {
  .brand img { height: 32px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-open .nav-links { display: flex; }
}
.site-footer { background: var(--navy); color: #D7DCF0; margin-top: 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
.site-footer a { color: #fff; } .muted-light { color: #9AA3C7; }

/* ---------- layout ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 28px 16px; }
.page.narrow { max-width: 860px; } .page.wide { max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 800; color: var(--coral-d); margin: 0 0 4px; }
.back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.highlight { border-color: #F7D98A; background: linear-gradient(180deg, #FFFDF5, #fff); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .grid2, .grid3, .grid-2-1 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-end { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.sticky { position: sticky; top: 80px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid transparent; border-radius: 999px; padding: 10px 18px; font: 800 .95rem var(--font); cursor: pointer; text-decoration: none; transition: transform .08s, background .15s; line-height: 1.2; white-space: nowrap; }
.btn:active { transform: translateY(1px); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #3647A1, #151C54); color: #FFFFFF; box-shadow: 0 3px 0 #0E1440; }
.btn-primary:hover { background: linear-gradient(135deg, #4053B3, #1B2360); color: #FFFFFF; }
.btn-primary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.btn-primary:disabled { opacity: .7; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-d); }
.btn-danger-ghost { background: #fff; color: var(--red); border-color: #F3C6C0; } .btn-danger-ghost:hover { background: var(--red-l); color: var(--red); }
.btn-sm { padding: 6px 12px; font-size: .85rem; } .btn-lg { padding: 14px 26px; font-size: 1.05rem; } .btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--teal-d); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 1.2rem; cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--red); border-color: #F3C6C0; }
.spin { width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; justify-content: center; padding: 80px; color: var(--teal); } .loading .spin { width: 32px; height: 32px; }

/* ---------- forms ---------- */
.form .card h2 { margin-bottom: 14px; }
label { display: block; font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--font); color: var(--ink); background: #fff; border: 1.5px solid #D3D7E6; border-radius: var(--radius-sm); padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); }
input[type=checkbox], input[type=radio] { width: auto; display: inline; margin: 0; accent-color: var(--teal); }
input[type=range] { padding: 0; border: 0; accent-color: var(--coral); }
input[type=range]:focus { box-shadow: none; }
input[type=file] { padding: 10px; background: var(--cream); border-style: dashed; }
textarea { resize: vertical; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; } label.check input { margin-top: 4px; }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; } label.inline select { margin: 0; width: auto; padding: 6px 10px; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; margin: 4px 0 10px; display: block; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 800; color: var(--navy); padding: 0; margin-bottom: 6px; font-size: .95rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 8px 0 24px; }
.file-have { background: var(--leaf-l); padding: 8px 12px; border-radius: var(--radius-sm); font-size: .9rem; }
.tag { display: inline-block; background: var(--sun); color: var(--navy); font: 800 .7rem var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.yn { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; } .yn > span { font-weight: 700; color: var(--navy); margin-right: auto; font-size: .92rem; }
.seg { margin: 0; } .seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 7px 18px; border: 1.5px solid #D3D7E6; border-radius: 999px; cursor: pointer; font-weight: 700; background: #fff; }
.seg input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--teal-l); }
.rep-row { display: grid; gap: 8px; margin-bottom: 8px; align-items: center; }
.rep-row input, .rep-row select { margin: 0; }
.lang-row { grid-template-columns: 1fr 1fr auto; }
.exp-row { grid-template-columns: 1.4fr 1fr .6fr .6fr auto; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.exp-row .span-all { grid-column: 1 / -1; }
@media (max-width: 600px) { .exp-row { grid-template-columns: 1fr 1fr; } .exp-row .icon-btn { grid-column: 2; justify-self: end; grid-row: 1; } }
.chip-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick { margin: 0; font-weight: 600; } .chip-pick input { position: absolute; opacity: 0; }
.chip-pick span { display: inline-block; padding: 6px 12px; border: 1.5px solid #D3D7E6; border-radius: 999px; cursor: pointer; background: #fff; font-size: .9rem; }
.chip-pick input:checked + span { background: var(--coral-l); border-color: var(--coral); color: var(--coral-d); }
.chip-pick input:checked + span::before { content: '✓ '; }
.chip-pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--teal-l); }
.chip-picks.small .chip-pick span { padding: 4px 10px; font-size: .8rem; }

/* location picker */
.loc-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.loc-search { display: flex; gap: 6px; flex: 1; min-width: 220px; } .loc-search input { margin: 0; }
.loc-map { height: 280px; border-radius: var(--radius-sm); border: 1.5px solid #D3D7E6; z-index: 0; }
.loc-results { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; max-height: 200px; overflow: auto; font-size: .88rem; }
.loc-result { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; cursor: pointer; font: inherit; }
.loc-result:hover { background: var(--teal-l); }
.loc-status { font-size: .85rem; color: var(--muted); margin: 0; } .loc-status.ok { color: #2E8B2A; font-weight: 700; }
.pin { background: none; border: 0; }
.pin span { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pin-school span { background: var(--coral); } .pin-teacher span { background: var(--teal); }
.leaflet-container { font-family: var(--font); }

/* ---------- notes / badges / chips ---------- */
.note { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: .95rem; border: 1px solid; }
.note-info { background: var(--teal-l); border-color: #BDE7E5; } .note-warn { background: var(--sun-l); border-color: #F3DE9F; }
.note-error { background: var(--red-l); border-color: #F3C6C0; } .note-ok { background: var(--leaf-l); border-color: #C5E8C1; }
.badge { display: inline-block; font: 800 .72rem var(--font); letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.badge-pending, .badge-invited { background: var(--sun-l); color: #8A6200; } .badge-approved, .badge-open, .badge-hired { background: var(--leaf-l); color: #2E7A2A; }
.badge-rejected, .badge-withdrawn { background: var(--red-l); color: var(--red); } .badge-closed { background: #EEE; color: #666; }
.badge-applied { background: var(--teal-l); color: var(--teal-d); } .badge-shortlisted, .badge-interview { background: #EEE8FF; color: #5B3FC4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: #F3EFE6; color: var(--navy); font-weight: 600; }
.chip small { color: var(--muted); font-weight: 600; } .chip-skill { background: var(--coral-l); color: var(--coral-d); } .chip-match { background: var(--leaf-l); color: #2E7A2A; outline: 1.5px solid #9FD99A; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-l); color: var(--teal-d); font: 700 1rem var(--font-head); flex: none; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; } .avatar-sm { width: 32px; height: 32px; font-size: .8rem; }
.avatar-school { background: var(--coral-l); }

/* ---------- auth ---------- */
.auth { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.auth-foot { text-align: center; font-size: .9rem; margin: 16px 0 0; }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.role-tab { display: flex; gap: 10px; align-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.role-tab small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; } .role-tab strong { color: var(--navy); }
.role-tab.active { border-color: var(--coral); background: var(--coral-l); }
.role-ico { font-size: 1.6rem; }
@media (max-width: 480px) { .role-tabs { grid-template-columns: 1fr; } }
.big-ico { font-size: 2.6rem; margin-bottom: 6px; }

/* ---------- hero / home ---------- */
.hero { background: radial-gradient(circle at 85% 20%, var(--sun-l), transparent 45%), radial-gradient(circle at 10% 90%, var(--teal-l), transparent 40%), var(--cream); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 56px 16px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 { isolation: isolate; }
.hl { color: var(--navy); position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; background: var(--sun); opacity: .8; z-index: -1; border-radius: 4px; }
.lead { font-size: 1.12rem; color: #474C6B; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cta { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 18px; text-decoration: none; color: #fff; min-width: 220px; box-shadow: 0 4px 0 rgba(0,0,0,.15); transition: transform .1s; }
.cta:hover { transform: translateY(-2px); color: #fff; } .cta small { display: block; opacity: .9; font-weight: 600; } .cta strong { font-size: 1.1rem; }
.cta-school { background: var(--navy); } .cta-teacher { background: var(--coral); color: var(--navy); } .cta-teacher:hover { color: var(--navy); } .cta-ico { font-size: 1.8rem; }
.hero-art { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.hero-mark { width: min(300px, 70%); filter: drop-shadow(0 12px 24px rgba(35,48,91,.15)); }
.float { position: absolute; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: .9rem; color: var(--navy); box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.f1 { top: 6%; left: 4%; } .f2 { top: 18%; right: 0; animation-delay: -1s; } .f3 { bottom: 20%; left: 0; animation-delay: -2s; } .f4 { bottom: 4%; right: 8%; animation-delay: -3s; background: var(--teal); color: #fff; } .f5 { top: 50%; right: -2%; animation-delay: -4s; } .f6 { top: 40%; left: -4%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }
@media (max-width: 760px) { .hero-inner { grid-template-columns: 1fr; padding: 36px 16px; } .hero-art { min-height: 240px; } .f5 { right: 0; } .f6 { left: 0; top: 36%; } .f3 { bottom: 2%; } }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.how-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps { padding-left: 1.2em; margin: 0; } .steps li { margin-bottom: 10px; } .steps li::marker { color: var(--coral); font-weight: 800; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.feature { background: var(--cream); border-radius: var(--radius); padding: 20px; } .feature > span { font-size: 1.8rem; } .feature p { margin: 0; color: #474C6B; font-size: .95rem; }
@media (max-width: 760px) { .how, .features { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* ---------- dashboards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font: 700 1.8rem var(--font-head); color: var(--navy); } .stat span { color: var(--muted); font-size: .88rem; font-weight: 700; }
.stat-warn { background: var(--sun-l); border-color: #F3DE9F; }
.job-rows { display: flex; flex-direction: column; }
.job-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .job-row:last-child { border-bottom: 0; }
.job-title { font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--navy); }
.job-row-count { text-align: center; min-width: 50px; } .job-row-count b { display: block; font: 700 1.3rem var(--font-head); color: var(--coral); } .job-row-count small { color: var(--muted); font-size: .75rem; }
.activity { list-style: none; padding: 0; margin: 0; } .activity li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .activity li:last-child { border: 0; }
.empty { text-align: center; padding: 24px; color: var(--muted); }
.meter { height: 12px; background: #F3EFE6; border-radius: 999px; overflow: hidden; } .meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--leaf)); border-radius: 999px; }
.checklist { list-style: none; padding: 0; margin: 8px 0 16px; } .checklist li { padding: 4px 0; color: var(--muted); } .checklist li.ok { color: #2E7A2A; font-weight: 700; }
.plain { padding-left: 1.2em; }

/* ---------- tabs / finder ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 16px; font: 800 .95rem var(--font); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--coral-d); border-bottom-color: var(--coral); }
.count { background: var(--coral-l); color: var(--coral-d); border-radius: 999px; padding: 1px 8px; font-size: .78rem; }
.finder { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.filters { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
.filters label { font-size: .88rem; } .filters input, .filters select { padding: 8px 10px; }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr; } .filters { position: static; max-height: none; } }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .results-head p { margin: 0; }
.result-map { height: 340px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 12px; z-index: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tcard, .jcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.jcard { text-decoration: none; color: var(--ink); transition: transform .1s, border-color .1s; } .jcard:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--ink); }
.jcard h3 { margin: 0; font-size: 1.05rem; } .jcard p { margin: 0; }
.tcard-top, .jcard-top { display: flex; gap: 10px; align-items: center; }
.tname { font-weight: 800; font-size: 1.05rem; color: var(--navy); text-decoration: none; } .tname:hover { color: var(--coral-d); }
.dist { background: var(--teal-l); color: var(--teal-d); font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tfacts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; font-weight: 700; }
.jcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.quote { background: var(--cream); border-radius: var(--radius-sm); padding: 8px 12px; margin: 0; font-style: italic; }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 16px; align-items: center; } .profile-head h1 { margin-bottom: 4px; } .profile-head p { margin: 0 0 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 520px) { .profile-head { flex-direction: column; align-items: flex-start; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; } .kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 8px 0 8px 16px; border-left: 3px solid var(--teal-l); margin-bottom: 4px; }
.video, .video-full { width: 100%; border-radius: var(--radius-sm); background: #000; max-height: 420px; }
.video-embed { position: relative; padding-top: 56.25%; } .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }
.mini-map { height: 220px; border-radius: var(--radius-sm); z-index: 0; }
.proof-img { max-height: 360px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* ---------- admin ---------- */
.toolbar { justify-content: space-between; margin-bottom: 12px; } .toolbar input { max-width: 300px; margin: 0; }
.seg-group { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg-group button { background: #fff; border: 0; padding: 7px 14px; font: 700 .88rem var(--font); cursor: pointer; color: var(--muted); }
.seg-group button.active { background: var(--navy); color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(31,36,64,.45); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow: auto; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 520px; padding: 24px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-wide { max-width: 860px; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.8rem; color: var(--muted); cursor: pointer; line-height: 1; }
.confirm-msg { font-size: 1.05rem; margin-top: 8px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 700; animation: pop .2s ease-out; transition: opacity .3s; }
.toast-error { background: var(--red); } .toast.out { opacity: 0; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }

/* ---------- opening animation (new logo builds itself, then the page appears) ---------- */
html.intro-on, html.intro-on body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 3000; background: #FFFFFF; display: grid; place-items: center; cursor: pointer; transition: opacity .55s ease, visibility .55s; }
.intro.out { opacity: 0; visibility: hidden; }
.intro svg { width: min(82vw, 720px); height: auto; overflow: visible; }
.intro .ring { fill: none; stroke: url(#dtiR); stroke-width: 10; stroke-dasharray: 233; stroke-dashoffset: 233; animation: dt-draw .8s cubic-bezier(.6,0,.3,1) .2s forwards; }
.intro .handle { stroke: url(#dtiR); stroke-width: 15; stroke-linecap: round; stroke-dasharray: 34; stroke-dashoffset: 34; animation: dt-draw .35s ease-out .9s forwards; }
.intro .head { fill: url(#dtiA); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: dt-pop .45s cubic-bezier(.3,1.6,.5,1) 1.15s forwards; }
.intro .pg { fill: url(#dtiA); transform-box: fill-box; transform: scaleX(0); animation: dt-unfold .5s cubic-bezier(.2,.9,.3,1.2) 1.3s forwards; }
.intro .pl { transform-origin: right center; } .intro .pr { transform-origin: left center; }
.intro .mark { transform: translateX(205px) scale(1.35); transform-box: view-box; transform-origin: 76px 68px; animation: dt-settle .8s cubic-bezier(.7,0,.2,1) 1.9s forwards; }
.intro .lens { transform-box: fill-box; transform-origin: center; animation: dt-nudge .5s ease-in-out 3.6s; }
.intro .wm { opacity: 0; clip-path: inset(0 100% 0 0); animation: dt-reveal .8s cubic-bezier(.2,.8,.2,1) 2.3s forwards; }
@keyframes dt-reveal { to { opacity: 1; clip-path: inset(0 0 0 0); } }
.intro .ink { fill: #1F2A6B; } .intro .amb { fill: #F4A623; }
@keyframes dt-draw { to { stroke-dashoffset: 0; } }
@keyframes dt-pop { to { transform: scale(1); } }
@keyframes dt-unfold { to { transform: scaleX(1); } }
@keyframes dt-settle { to { transform: none; } }
@keyframes dt-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes dt-nudge { 50% { transform: rotate(-8deg); } }

/* ---------- work types / browse teachers ---------- */
.work-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.work-pick { margin: 0; } .work-pick input { position: absolute; opacity: 0; }
.work-pick span { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; background: #fff; }
.work-pick b { font-size: 1.5rem; }
.work-pick input:checked + span { border-color: var(--coral); background: var(--coral-l); }
.work-pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--teal-l); }
@media (max-width: 600px) { .work-picks { grid-template-columns: 1fr; } .work-pick span { flex-direction: row; align-items: center; } }
.chip-work { background: var(--navy); color: #fff; }
.chip-type-event { background: #FDE7F3; color: #A3246B; } .chip-type-extracurricular { background: var(--teal-l); color: var(--teal-d); }
.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mode-tab { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: 800 .92rem var(--font); color: var(--navy); cursor: pointer; }
.mode-tab[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.near { display: flex; gap: 6px; } .near input { margin: 0; }
.limited-note { font-size: .85rem; }
.fee { font-weight: 800; color: #2E7A2A; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.work-picks-4 { grid-template-columns: repeat(4, 1fr); } @media (max-width: 760px) { .work-picks-4 { grid-template-columns: 1fr 1fr; } }
.extra-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; background: var(--navy); color: #E6E9F7; border-radius: 22px; padding: 28px; margin-bottom: 32px; }
.extra-band h2 { color: #fff; font-size: 1.5rem; } .extra-band .eyebrow { color: var(--sun); } .extra-band p { margin: 0 0 16px; }
.act-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.act-tile { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 8px; text-align: center; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.act-tile span { font-size: 1.6rem; } .act-tile:hover { background: var(--sun); color: var(--navy); }
@media (max-width: 760px) { .extra-band { grid-template-columns: 1fr; padding: 20px; } .act-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .act-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- branded loader (Discover Teachers Loader artwork) ---------- */
.dt-loader { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 16px; text-align: center; }
.dt-loader-compact { min-height: 0; padding: 32px 16px; }
.dtl-mark { width: 96px; height: 96px; overflow: visible; --dtl-ink: url(#dtlR); --dtl-acc: url(#dtlA); }
.dt-loader-compact .dtl-mark { width: 56px; height: 56px; }
.dtl-msg { margin: 0; font: 600 .95rem var(--font-head); color: var(--navy); }
.dtl-msg::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dtl-dots 1.6s steps(4) infinite; }
.dtl-ring { fill: none; stroke: var(--dtl-ink); stroke-width: 10; }
.dtl-handle { stroke: var(--dtl-ink); stroke-width: 15; stroke-linecap: round; }
.dtl-head, .dtl-pg { fill: var(--dtl-acc); }
.dtl-orbit, .dtl-up { transform-origin: 60px 60px; animation: dtl-spin 1.6s linear infinite; }
.dtl-up { animation-direction: reverse; }
.dtl-pg { transform-box: fill-box; animation: dtl-flapL 1.6s ease-in-out infinite; }
.dtl-pl { transform-origin: right center; } .dtl-pr { transform-origin: left center; animation-name: dtl-flapR; }
.dtl-head { transform-box: fill-box; transform-origin: center; animation: dtl-bob .8s ease-in-out infinite alternate; }
@keyframes dtl-spin { to { transform: rotate(360deg); } }
@keyframes dtl-flapL { 0%, 50%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.5); } }
@keyframes dtl-flapR { 0%, 50%, 100% { transform: scaleX(1); } 75% { transform: scaleX(.5); } }
@keyframes dtl-bob { to { transform: translateY(-2.5px); } }
@keyframes dtl-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
/* In buttons: ring follows the button text colour; reader is white on amber, amber on light buttons */
.dtl-btn { width: 22px; height: 22px; margin: -4px 2px -4px -4px; --dtl-ink: currentColor; }
.btn-primary .dtl-btn { --dtl-ink: #FFFFFF; --dtl-acc: url(#dtlA); }
/* On dark backgrounds */
.on-dark .dtl-mark { --dtl-ink: #FFFFFF; } .on-dark .dtl-msg { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .dtl-orbit, .dtl-up, .dtl-pg { animation-duration: 4s; } .dtl-head { animation: none; }
  .dtl-msg::after { animation: none; content: '…'; }
}

/* ---------- home v2: audiences first, fewer words ---------- */
.hero-v2 .hero-inner { padding-bottom: 88px; }
.aud-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.aud-pills a { text-decoration: none; font: 800 .8rem var(--font); letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.aud-pills a:nth-child(1) { border-color: #C9CEEA; } .aud-pills a:nth-child(2) { border-color: #F6D59A; } .aud-pills a:nth-child(3) { border-color: #F3C2DD; }
.aud-pills a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero-v2 .lead { font-size: 1.2rem; }
.home { padding-top: 0; }
.aud-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -64px; position: relative; }
.aud-card { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 2px 4px rgba(31,42,107,.05), 0 14px 36px rgba(31,42,107,.10); border-top: 6px solid var(--navy); display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s; scroll-margin: 120px; }
.aud-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,42,107,.05), 0 20px 44px rgba(31,42,107,.14); }
.aud-card h2 { margin: 0; font-size: 1.45rem; } .aud-card p { margin: 0; color: var(--muted); font-weight: 700; }
.aud-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; background: var(--teal-l); }
.aud-teacher { border-top-color: var(--sun); } .aud-teacher .aud-ico { background: var(--sun-l); }
.aud-event { border-top-color: #D9468F; } .aud-event .aud-ico { background: #FDE7F3; }
.aud-chips { list-style: none; padding: 0; margin: 4px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.aud-chips li { font-size: .82rem; font-weight: 700; background: #F3F4FA; color: var(--navy); padding: 5px 10px; border-radius: 999px; }
.aud-actions { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aud-alt { font-weight: 800; text-decoration: none; }
.aud-card.flash { animation: aud-flash 1.2s ease; }
@keyframes aud-flash { 30% { box-shadow: 0 0 0 4px var(--sun), 0 14px 36px rgba(31,42,107,.10); } }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0; background: var(--navy); border-radius: 20px; overflow: hidden; }
.stat-strip a { text-decoration: none; color: #C9CEEA; padding: 18px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat-strip a:last-child { border-right: 0; } .stat-strip a:hover { background: rgba(255,255,255,.06); color: #fff; }
.stat-strip b { display: block; font: 800 2rem var(--font-head); color: var(--sun); line-height: 1.1; }
.stat-strip span { font-weight: 700; font-size: .88rem; }
.steps-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 36px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 130px; text-align: center; }
.step span { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 4px; }
.step b { color: var(--navy); } .step small { color: var(--muted); font-weight: 600; }
.steps-row > i { flex: 0 1 80px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--sun) 0 8px, transparent 8px 14px); margin-top: -36px; }
.act-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 36px; }
.act-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: .85rem; text-align: center; transition: transform .12s, border-color .12s; }
.act-chip span { font-size: 1.9rem; } .act-chip:hover { transform: translateY(-2px); border-color: var(--sun); color: var(--navy); }
@media (max-width: 900px) { .aud-cards { grid-template-columns: 1fr; margin-top: -48px; } .act-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: 1fr 1fr; } .stat-strip a:nth-child(2) { border-right: 0; } .stat-strip a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .steps-row { gap: 4px; } .step { min-width: 0; flex: 1; } .step small { font-size: .72rem; } .steps-row > i { flex: 0 0 18px; }
  .hero-v2 .hero-art { min-height: 200px; } .hero-v2 .hero-mark { width: 150px; }
}
.cards > .dt-loader { grid-column: 1 / -1; }
.radius-field { margin-top: 18px; } .radius-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.within-badge { font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--leaf-l); color: #2E7A2A; } .beyond-badge { font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #FDF0E6; color: #B4561C; }
.jcard:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.jcard-more { font-weight: 800; font-size: .85rem; color: var(--navy); opacity: .55; transition: opacity .15s, transform .15s; white-space: nowrap; }
.jcard:hover .jcard-more, .jcard:focus-visible .jcard-more { opacity: 1; transform: translateX(2px); color: var(--coral-d); }
.jcard-foot .beyond-badge { white-space: nowrap; }
.jcard { transition: transform .15s, border-color .15s, box-shadow .15s; } .jcard:hover { box-shadow: 0 2px 4px rgba(31,42,107,.05), 0 12px 28px rgba(31,42,107,.12); }

/* ---------- new brand chrome (gradient navy from the brand artwork) ---------- */
.site-footer { background: linear-gradient(160deg, #28368C, #161D55); }
.stat-strip { background: linear-gradient(120deg, #28368C, #161D55); }
.brand img { height: 40px; width: auto; }
@media (max-width: 760px) { .brand img { height: 32px; } }
.site-footer .footer-inner img { height: 32px; width: auto; }
