/* Edurora Academy portal - same palette and type as www.eduroraacademy.com */
:root {
  --navy: #141C5E; --night: #0A0F33; --ember: #F07A1A; --gold: #FBC85A;
  --paper: #F5F6FA; --surface: #FFFFFF; --fg: #0F1542; --muted: #535A80; --line: #E1E4EF; --chip: #EEF0F8;
  --accent-text: #B0500C; --on-dark: #F4F5FB; --on-dark-muted: #C2C7E4;
  --ok: #1D7A4E; --ok-bg: #E5F4EC; --warn: #8A5300; --warn-bg: #FFF3DC; --err: #B42318; --err-bg: #FDECEA;
  --shadow: 0 18px 44px -26px rgba(10,15,51,.35);
  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-brand: "Montserrat", "Figtree", "Segoe UI", sans-serif;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #070B24; --surface: #0E1436; --fg: #E8EBF8; --muted: #A0A7CC; --line: #222A57; --chip: #161D45;
  --accent-text: #FFA45A; --ok: #5BD69A; --ok-bg: #0F2E22; --warn: #FFC970; --warn-bg: #33270C; --err: #FF8A80; --err-bg: #3A1514;
  --shadow: 0 18px 44px -26px rgba(0,0,0,.7); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --paper: #070B24; --surface: #0E1436; --fg: #E8EBF8; --muted: #A0A7CC; --line: #222A57; --chip: #161D45;
  --accent-text: #FFA45A; --ok: #5BD69A; --ok-bg: #0F2E22; --warn: #FFC970; --warn-bg: #33270C; --err: #FF8A80; --err-bg: #3A1514; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--fg); font: 400 1rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
h1, h2, h3, .h3, .h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.h3 { font-size: 1.5rem; margin-top: 1.4em; }
.h4 { font-size: 1.2rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ember); color: var(--night); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.page { padding-block: 40px 72px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; }
.err-text { color: var(--err); display: block; }

/* Header */
.bar { background: var(--night); color: var(--on-dark); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.08); }
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; margin-right: auto; }
.brand span { display: flex; flex-direction: column; font-family: var(--f-brand); line-height: 1.1; }
.brand b { font-weight: 500; letter-spacing: .24em; font-size: 1.05rem; }
.brand small { font-size: .62rem; letter-spacing: .26em; color: var(--on-dark-muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .link-btn { color: var(--on-dark); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav .link-btn:hover { background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.12); }
.nav form { margin: 0; }
.link-btn { background: none; border: 0; font: inherit; cursor: pointer; }
.nav .link-btn { color: var(--on-dark-muted); }
main .link-btn { color: var(--accent-text); padding: 0; text-decoration: underline; }
.link-btn.danger { color: var(--err); }
.bell { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bell .count { background: var(--ember); color: var(--night); font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.2); color: var(--on-dark); border-radius: 10px; width: 44px; height: 44px; place-items: center; cursor: pointer; }
.menu-btn svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a, .nav .link-btn { padding: 12px; border-radius: 10px; text-align: left; width: 100%; }
  .bell span { position: static !important; width: auto; height: auto; clip: auto; }
  .nav .btn { margin-top: 8px; text-align: center; }
}

/* Buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ember); color: var(--night); border: 2px solid var(--ember); border-radius: 999px; padding: 11px 22px; font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(240,122,26,.7); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ember); box-shadow: none; }
.btn-sm { padding: 7px 16px; font-size: .9rem; }
.nav .btn { color: var(--night); }
.btn-block { width: 100%; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--chip); color: var(--muted); white-space: nowrap; }
.pill-lg { font-size: .9rem; padding: 6px 14px; }
.pill-open, .pill-paid, .pill-accepted, .pill-manual { background: var(--ok-bg); color: var(--ok); }
.pill-warn, .pill-awaiting_payment, .pill-payment_submitted, .pill-submitted, .pill-soon, .pill-upcoming { background: var(--warn-bg); color: var(--warn); }
.pill-closed, .pill-cancelled, .pill-rejected { background: var(--err-bg); color: var(--err); }

/* Flash */
.flashes { padding-top: 20px; }
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 12px; background: var(--chip); border-left: 4px solid var(--navy); }
.flash-ok { background: var(--ok-bg); border-color: var(--ok); }
.flash-error { background: var(--err-bg); border-color: var(--err); }
.flash-warn { background: var(--warn-bg); border-color: var(--warn); }
.flash-info { background: var(--chip); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -20%, rgba(240,122,26,.25), transparent 60%), linear-gradient(160deg, var(--navy), var(--night)); color: var(--on-dark); padding: 56px 0 64px; }
.hero-sm { padding: 36px 0 44px; }
.hero h1 { max-width: 20ch; }
.hero .lead { color: var(--on-dark-muted); max-width: 60ch; }
.eyebrow { font-family: var(--f-brand); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px; }
.eyebrow.on-dark { color: var(--gold); }
.kicker { font-family: var(--f-brand); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 4px; }
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 14px; }
.hero .crumbs, .hero .crumbs a { color: var(--on-dark-muted); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 820px; }
.steps li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; font-weight: 500; }
.steps b { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ember); color: var(--night); display: grid; place-items: center; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card > :last-child { margin-bottom: 0; }
.section-head { margin: 8px 0 18px; }
.section-head + .cards { margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.prog-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; margin: 0; }
.prog-card:hover { transform: translateY(-3px); border-color: var(--ember); }
.prog-card img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; height: auto; }
.pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { margin-bottom: 6px; }
.pc-body .meta { margin: auto 0 0; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; color: var(--muted); }
.empty { color: var(--muted); }
.card.empty { text-align: center; }
.card.center { text-align: center; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-left: 5px solid var(--navy); }
.callout p { margin: 0; }
.callout.warn { border-left-color: var(--ember); }
.callout.ok { border-left-color: var(--ok); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }

/* Forms */
.auth { max-width: 460px; margin-inline: auto; }
.auth.wide { max-width: 720px; }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 18px; }
.fields .full, .fields .flash { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; font: inherit; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; min-height: 46px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 3px rgba(240,122,26,.2); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ember); flex: none; }
.help { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
.err { color: var(--err); font-size: .86rem; margin: 6px 0 0; font-weight: 600; }
.req { color: var(--err); }
.static { margin: 6px 0 0; }
.split { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: .92rem; }
.photo-field { display: flex; gap: 16px; align-items: center; }
.photo-field img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* Registration */
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .reg-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 88px; }
.lead-body { font-size: 1.08rem; }
.choose { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.choice { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color .15s; }
.choice:has(input:checked) { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(240,122,26,.15); }
.choice.is-off { opacity: .8; background: var(--chip); }
.choice > label { display: flex; gap: 14px; cursor: pointer; }
.choice.is-off > label { cursor: default; }
.choice input { width: 22px; height: 22px; accent-color: var(--ember); margin-top: 4px; flex: none; }
.tick-off { width: 22px; height: 22px; flex: none; }
.ch-body { display: flex; flex-direction: column; gap: 2px; }
.ch-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ch-top .kicker { margin: 0; }
.ch-title { font-size: 1.05rem; }
.ch-when { font-weight: 600; font-size: .92rem; margin-top: 4px; }
.choice .people { margin: 10px 0 0 36px; }
.choice > a { margin-left: 36px; display: inline-block; margin-top: 6px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tier { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.tier:has(input:checked) { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(240,122,26,.15); }
.tier input { accent-color: var(--ember); width: 20px; height: 20px; margin-top: 3px; }
.tier span { display: flex; flex-direction: column; }
.tier span span { color: var(--muted); font-size: .9rem; }
.sum { margin: 0 0 14px; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; text-align: right; }
.sum .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.2rem; }
.sum .total dt { color: var(--fg); font-weight: 600; }
.offer { background: var(--warn-bg); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.price { font-family: var(--f-display); font-size: 2rem; margin: 0 0 12px; }
.prose ul.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.modules { padding-left: 1.3em; }
.modules li { margin: 10px 0; }
.modules li b, .modules li span { display: block; }
.pull { font-family: var(--f-display); font-size: 1.4rem; font-style: italic; border-left: 4px solid var(--ember); padding-left: 16px; }
.people { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.people li { display: flex; gap: 12px; align-items: center; }
.people img, .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--navy); color: var(--on-dark); font-weight: 600; }
.people div { display: flex; flex-direction: column; line-height: 1.35; }

/* Dashboard */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .dash { grid-template-columns: 1fr; } }
.dash .h3:first-child { margin-top: 0; }
.session { display: flex; gap: 18px; }
.date-tile { width: 64px; height: 70px; flex: none; border-radius: 12px; background: var(--navy); color: var(--on-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-tile b { font-family: var(--f-display); font-size: 1.8rem; font-weight: 400; }
.date-tile span { font-family: var(--f-brand); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.session-body { min-width: 0; flex: 1; }
.session-body h3 a { color: inherit; text-decoration: none; }
.session-body h3 a:hover { text-decoration: underline; }
.zoom { background: var(--chip); border-radius: 12px; padding: 14px; margin: 10px 0; }
.zoom dl, .bank { display: grid; gap: 6px; margin: 12px 0; }
.zoom dl div, .bank div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.zoom dt, .bank dt { color: var(--muted); }
.zoom dd, .bank dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.list { list-style: none; padding: 0; margin: 0 0 18px; }
.card.list { padding: 6px 18px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li > a, .list li > span:first-child { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; }
.list.plain { margin-bottom: 8px; }
.notes li.unread b { color: var(--accent-text); }
.note-body { display: block; margin: 2px 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Footer */
.foot { background: var(--night); color: var(--on-dark-muted); padding: 32px 0; font-size: .92rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.foot-brand { font-family: var(--f-brand); font-weight: 500; letter-spacing: .2em; color: var(--on-dark); }
.foot p { margin: 4px 0 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--on-dark); }
.foot .small { width: 100%; margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.list li > span:last-child, .list li > .pill { white-space: nowrap; flex: none; }
[id], .section-head { scroll-margin-top: 88px; }
.mini-h { font-family: var(--f-brand); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 14px 0 6px; font-weight: 600; }
.materials ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.materials li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.info-box { background: var(--warn-bg); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.info-box p { margin: 0; }
.done .row-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.cert-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ok-bg); border-radius: 12px; padding: 10px 14px; margin: 8px 0; flex-wrap: wrap; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pill-hc-requested, .pill-hc-awaiting_fee { background: var(--warn-bg); color: var(--warn); }
.pill-hc-printing, .pill-hc-dispatched { background: var(--chip); color: var(--fg); }
.pill-hc-delivered, .pill-hc-collected { background: var(--ok-bg); color: var(--ok); }
.pill-hc-cancelled { background: var(--err-bg); color: var(--err); }
.pre { white-space: pre-line; }
.guest { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 8px; }
.reg-guest .guest { border: 0; margin: 0; padding: 0; }
.verify { text-align: left; max-width: 520px; margin: 18px auto 0; }
