/* Bengal Education & Cultural Trust — site styles
   Day and night themes share one set of components; colours are tokens. */

:root {
  --primary: #011D4C;          /* buttons, headings accent (brand colour from admin) */
  --primary-ink: #FFFFFF;
  --accent: #011D4C;           /* eyebrow text, links */
  --accent-hover: #2B4A86;
  --gold: #F9BB12;
  --gold-ink: #011D4C;
  --ink: #14161A;
  --muted: #4A5160;
  --muted-2: #596070;
  --faint: #8A909C;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --card: #FFFFFF;
  --line: #E4E7EC;
  --line-2: #C9CED6;
  --row-line: #EEF0F3;
  --seg: #EEF0F3;
  --tint: #E6EBF4;
  --tint-ink: #2E4470;
  --gold-soft: #FFF4D6;
  --gold-soft-ink: #6B4E00;
  --green-soft: #E3F3EA;
  --green-soft-ink: #17603C;
  --red-soft: #FCE8E6;
  --red-soft-ink: #A1261B;
  --footer: #00183F;
  --footer-ink: #C9CDD4;
  --footer-line: #1C3566;
  --input-bg: #FFFFFF;
  --shadow: 0 12px 32px rgba(20, 22, 26, 0.06);
  --radius: 10px;
  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #23468F;
  --primary-ink: #FFFFFF;
  --accent: #F6C445;
  --accent-hover: #FAD77F;
  --gold-ink: #011D4C;
  --ink: #E8ECF4;
  --muted: #B0B8C8;
  --muted-2: #97A0B3;
  --faint: #6B7488;
  --bg: #0A1222;
  --bg-soft: #0E1729;
  --card: #111B2E;
  --line: #22304A;
  --line-2: #33415E;
  --row-line: #1A2438;
  --seg: #0A1222;
  --tint: #1A2B4F;
  --tint-ink: #C6D3EE;
  --gold-soft: #3A2E0C;
  --gold-soft-ink: #F6D27A;
  --green-soft: #123524;
  --green-soft-ink: #7FD3A4;
  --red-soft: #3D1714;
  --red-soft-ink: #F3A39B;
  --footer: #050B17;
  --footer-ink: #B0B8C8;
  --footer-line: #1A2438;
  --input-bg: #0A1222;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; } .gap-16 { gap: 16px; } .gap-18 { gap: 18px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-28 { gap: 28px; } .gap-32 { gap: 32px; }
.center { align-items: center; }
.between { justify-content: space-between; }
.end { align-items: flex-end; }
.grow { flex: 1 1 0; min-width: 0; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 13px; }
.mt-auto { margin-top: auto; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 800; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 700; border-radius: 9px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { color: var(--primary-ink); filter: brightness(1.15); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { color: var(--ink); border-color: var(--muted-2); }
.btn-outline-brand { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline-brand:hover { color: var(--accent); background: var(--tint); }
.btn-danger { background: transparent; color: var(--red-soft-ink); border-color: var(--red-soft-ink); }
.btn-danger:hover { background: var(--red-soft); color: var(--red-soft-ink); }
.btn-link { background: none; border: 0; padding: 8px 0; min-height: 0; color: var(--accent); font-weight: 800; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.link-strong { font-weight: 800; padding: 8px 0; display: inline-block; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 700; }
.hint { font-size: 13px; color: var(--muted-2); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  font: inherit; font-size: 16px; color: var(--ink); background: var(--input-bg);
}
textarea.input { padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.5; }
select.input { padding-right: 36px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23596070' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input[type=file].input { padding: 10px 12px; min-height: 48px; font-size: 14px; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.input-lg { min-height: 52px; font-size: 17px; padding: 0 16px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form > .field { flex: 1 1 200px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Flash messages ---------- */
.flashes { display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 14px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.flash-success { background: var(--green-soft); color: var(--green-soft-ink); }
.flash-error { background: var(--red-soft); color: var(--red-soft-ink); }
.flash-info { background: var(--tint); color: var(--tint-ink); }
.flash-warn { background: var(--gold-soft); color: var(--gold-soft-ink); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge-gold { background: var(--gold-soft); color: var(--gold-soft-ink); }
.badge-green { background: var(--green-soft); color: var(--green-soft-ink); }
.badge-blue { background: var(--tint); color: var(--accent); }
.badge-red { background: var(--red-soft); color: var(--red-soft-ink); }
.badge-gray { background: var(--seg); color: var(--muted); }

/* ---------- Public header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .bar { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand strong { font-size: 17px; font-weight: 800; }
.brand small { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav > a:not(.btn):not(.icon-btn) { padding: 12px 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
.main-nav > a:not(.btn):not(.icon-btn):hover { color: var(--ink); }
.main-nav > a[aria-current="page"] { color: var(--accent) !important; font-weight: 800 !important; }
.main-nav .icon-btn, .main-nav .btn { margin-left: 6px; min-height: 44px; }
.main-nav .btn { padding: 0 16px; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .panel {
  position: absolute; right: 0; top: 54px; z-index: 30; width: 290px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(20,22,26,.14);
  padding: 8px; display: flex; flex-direction: column;
}
.mobile-nav .panel > a { padding: 12px 14px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 16px; }
.mobile-nav .panel > a[aria-current="page"] { color: var(--accent); font-weight: 800; }
.mobile-nav .panel-foot { border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 6px 4px; display: flex; gap: 8px; align-items: center; }
.mobile-nav .panel-foot .btn { flex: 1; min-height: 44px; padding: 0 10px; }
@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
}

/* ---------- Sections ---------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.display { font-size: 54px; line-height: 1.06; letter-spacing: -.025em; }
.title-xl { font-size: 46px; line-height: 1.1; letter-spacing: -.02em; }
.title-lg { font-size: 36px; line-height: 1.15; letter-spacing: -.015em; }
.title-md { font-size: 28px; line-height: 1.2; }
.title-sm { font-size: 22px; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 640px; }
.body-lg { font-size: 17px; line-height: 1.7; color: var(--muted); }
.prose p + p { margin-top: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-center { align-items: center; gap: 48px; }

/* Hero */
.hero { padding-top: 64px; padding-bottom: 56px; }
.hero-photo, .ph {
  border-radius: 20px; background: var(--tint); color: var(--tint-ink); overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 15px;
}
.hero-photo { aspect-ratio: 5 / 4; }
.hero-photo img, .ph img, .cover img { width: 100%; height: 100%; object-fit: cover; }

/* Result strip */
.result-strip { background: var(--tint); }
.result-strip .container { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.result-strip .intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; }
.result-strip .intro p { font-size: 14px; color: var(--tint-ink); }
.lookup { flex: 1 1 480px; min-width: 0; display: flex; gap: 10px; }
.lookup .input { flex: 1 1 auto; min-width: 0; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; background: var(--card); }
.stat strong { font-size: 34px; font-weight: 800; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted-2); font-weight: 600; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card-sm { border-radius: 14px; padding: 24px; }
.card-tight { border-radius: 12px; padding: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.prog-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.prog-card:hover { color: var(--ink); border-color: var(--line-2); }
.prog-card p { font-size: 15px; line-height: 1.6; color: var(--muted-2); }
.prog-card .more { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--accent); }

/* Notices & events */
.notice-list { display: flex; flex-direction: column; }
.notice { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; }
.notice .date { font-size: 13px; font-weight: 700; color: var(--muted-2); min-width: 76px; }
.notice .text { font-size: 16px; font-weight: 600; }
.event { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); }
.event .cal { width: 60px; height: 60px; flex-shrink: 0; border-radius: 12px; background: #011D4C; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.event .cal strong { font-size: 20px; color: var(--gold); }
.event .cal span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.empty { padding: 20px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted-2); font-size: 15px; text-align: center; }

/* Gallery */
.g-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.g-grid > .g-item { flex: 0 1 calc((100% - 40px) / 3); min-width: 0; }
@media (max-width: 900px) { .g-grid > .g-item { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .g-grid > .g-item { flex-basis: 100%; } }
.tile { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tone-blue { background: var(--tint); color: var(--accent); }
.tone-gold { background: var(--gold-soft); color: var(--gold-soft-ink); }
.tone-green { background: var(--green-soft); color: var(--green-soft-ink); }
.album-tile { aspect-ratio: 4 / 3; border-radius: 14px; display: flex; align-items: flex-end; padding: 16px; font-weight: 700; font-size: 15px; position: relative; overflow: hidden; }
.album-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album-tile span { position: relative; background: rgba(1, 29, 76, .82); color: #FFFFFF; padding: 6px 12px; border-radius: 999px; }
figure { margin: 0; }
figcaption strong { font-size: 15px; }
figcaption span { font-size: 13px; color: var(--muted-2); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.pill:hover { color: var(--ink); border-color: var(--muted-2); }
.pill[aria-current="true"] { background: var(--footer); color: #FFFFFF; border-color: var(--footer); }
[data-theme="dark"] .pill[aria-current="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* Support band */
.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.support > div { border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.support .dark { background: var(--footer); color: #FFFFFF; }
.support .dark p { color: var(--footer-ink); font-size: 16px; line-height: 1.6; }
.support .light { border: 1px solid var(--line); background: var(--card); }
.support .light p { color: var(--muted-2); font-size: 16px; line-height: 1.6; }

/* Page intro */
.page-intro { padding-top: 64px; padding-bottom: 24px; }
.page-intro .stack { max-width: 760px; }

/* Definition lists */
.deflist { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 15px; }
.deflist dt { color: var(--muted-2); font-weight: 600; }
.deflist dd { margin: 0; font-weight: 700; word-break: break-word; }
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 700; background: var(--card); }
.doc-link:hover { color: var(--ink); border-color: var(--line-2); }
.doc-link span { font-size: 13px; color: var(--accent); white-space: nowrap; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.person { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Programmes */
.prog-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.prog-row > * { flex: 1 1 400px; min-width: 0; }
.prog-row .ph { aspect-ratio: 16 / 11; }
.prog-row.reverse { flex-direction: row-reverse; }
.cta-band { background: var(--footer); color: #FFFFFF; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band p { color: var(--footer-ink); }

/* Exams */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.fact { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 4px; background: var(--card); }
.fact span { font-size: 13px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.fact strong { font-size: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.6; }
.steps .n { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--accent); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.chip form { display: inline; }
.chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; min-width: 24px; min-height: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); line-height: 1.7; }
.lookup-card { background: var(--tint); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table th { text-align: left; color: var(--muted-2); font-size: 13px; font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 8px; border-bottom: 1px solid var(--row-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.strong { font-weight: 600; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
.table-input { width: 110px; min-height: 42px; }

/* Donate */
.amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.amounts legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.amount-pill { position: relative; }
.amount-pill input { position: absolute; opacity: 0; pointer-events: none; }
.amount-pill span { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 16px; cursor: pointer; }
.amount-pill input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.amount-pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.tier { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; background: var(--card); }
.tier strong { font-size: 24px; color: var(--accent); }
.tier span { font-size: 14px; color: var(--muted-2); }

/* Newsletter */
.issues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.issue { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.issue .when { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.issue p { color: var(--muted-2); font-size: 15px; line-height: 1.6; }

/* Footer */
.site-footer { background: var(--footer); color: var(--footer-ink); }
.site-footer .container { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols h2 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.footer-cols a { padding: 4px 0; color: var(--footer-ink); font-size: 15px; }
.footer-cols a:hover { color: #FFFFFF; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand strong { font-size: 17px; color: #FFFFFF; line-height: 1.25; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.footer-bottom a { color: var(--footer-ink); }

/* ---------- Auth pages (sign in, result password) ---------- */
.auth-page { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
.auth-header { background: var(--card); border-bottom: 1px solid var(--line); }
.auth-header .bar { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 64px 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 520px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--seg); border-radius: 12px; }
.segmented a, .segmented button { min-height: 44px; border: 0; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); padding: 0 12px; }
.segmented [aria-current="true"], .segmented [aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20,22,26,.12); }
.roll-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--tint); }
.roll-box .k { font-size: 12px; font-weight: 700; color: var(--tint-ink); text-transform: uppercase; letter-spacing: .06em; }
.roll-box .v { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.note-box { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; color: var(--muted); }

/* ---------- Portals (student / teacher / admin) ---------- */
.portal { background: var(--bg-soft); min-height: 100vh; }
.portal-header { background: var(--card); border-bottom: 1px solid var(--line); }
.portal-header .bar { padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.portal-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.portal-brand:hover { color: var(--ink); }
.portal-brand img { width: 36px; height: 36px; object-fit: contain; }
.role-tag { padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 700; }
.portal-user { display: flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.portal-user .who { color: var(--muted); }
.portal-body { display: flex; flex-wrap: wrap; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 24px; }
.portal-body.wide { max-width: 1320px; }
.side-nav { flex: 1 1 200px; max-width: 100%; display: flex; flex-direction: column; gap: 4px; align-self: flex-start; }
.side-nav.admin { flex-basis: 230px; gap: 18px; }
.side-nav .group { display: flex; flex-direction: column; gap: 2px; }
.side-nav .group-label { font-size: 12px; font-weight: 800; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; padding: 0 14px 6px; }
.side-nav a { padding: 11px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 15px; border: 1px solid transparent; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-nav a:hover { color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--card); border-color: var(--line); color: var(--ink); font-weight: 700; }
.side-nav .count { background: var(--gold); color: var(--gold-ink); border-radius: 999px; font-size: 12px; font-weight: 800; padding: 1px 8px; }
.portal-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 18px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.page-head h1 { font-size: 28px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.kpi strong { font-size: 18px; }
.kpi.big strong { font-size: 30px; }
.attention { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--row-line); font-size: 15px; font-weight: 600; }
.attention:last-child { border-bottom: 0; }
.list-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--row-line); }
.list-row:last-child { border-bottom: 0; }
.list-row .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.list-row form { display: inline; }
.sub-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--seg); border-radius: 12px; }
.sub-tabs a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.sub-tabs a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20,22,26,.12); }
.switch-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--row-line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .t { display: flex; flex-direction: column; gap: 2px; }
.switch-row .t span { font-size: 14px; color: var(--muted-2); }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #B8BEC8; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.sec-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.sec-row .num { font-size: 13px; font-weight: 800; color: var(--muted-2); width: 26px; }
.sec-row .lbl { font-weight: 700; font-size: 15px; }
.sec-row.off .lbl { color: var(--faint); }
.sec-row .ctl { display: flex; gap: 6px; align-items: center; }
.sec-row .ctl .icon-btn { width: 40px; height: 40px; }
.item-card { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; align-items: flex-start; }
.item-card .thumb { width: 120px; aspect-ratio: 4/3; border-radius: 10px; background: var(--tint); color: var(--accent); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-card .body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.photo-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.photo-card .tile { border-radius: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatch input:checked + span { border-color: var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.sw-011D4C { background: #011D4C; } .sw-0F6B5C { background: #0F6B5C; } .sw-7A2E8E { background: #7A2E8E; } .sw-B4441E { background: #B4441E; } .sw-1F4E9C { background: #1F4E9C; }
.logo-preview { width: 96px; height: 96px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 8px; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; background: var(--gold-soft); color: var(--gold-soft-ink); border-radius: 12px; font-weight: 700; }
.secret code { font-size: 20px; letter-spacing: .06em; background: var(--card); color: var(--ink); padding: 6px 12px; border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.dropzone { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; text-align: center; padding: 28px 16px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--bg-soft); cursor: pointer; }
.dropzone strong { font-size: 16px; }
.dropzone span { font-size: 14px; color: var(--muted-2); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding-top: 8px; font-size: 14px; color: var(--muted-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.toolbar .field { flex: 1 1 220px; }
.cred-table code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; }

/* Marksheet */
.marksheet { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.marksheet .ms-head { background: #011D4C; color: #FFFFFF; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.marksheet .ms-org { display: flex; align-items: center; gap: 14px; }
.marksheet .ms-org img { width: 64px; height: 64px; object-fit: contain; background: #FFFFFF; border-radius: 50%; padding: 2px; }
.marksheet .ms-org .k { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.marksheet .ms-org h1 { font-size: 22px; color: #FFFFFF; }
.marksheet .ms-org .s { font-size: 13px; color: #C9CDD4; }
.result-tag { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.result-tag.pass { background: #E3F3EA; color: #17603C; }
.result-tag.fail { background: #FCE8E6; color: #A1261B; }
.marksheet .ms-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.ms-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.ms-info div { display: flex; flex-direction: column; gap: 2px; }
.ms-info span { font-size: 12px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.ms-info strong { font-size: 16px; }
.ms-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.ms-totals div { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ms-totals span { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.ms-totals strong { font-size: 22px; }
.ms-totals small { font-size: 14px; color: var(--muted-2); font-weight: 600; }
.ms-foot { font-size: 13px; color: var(--muted-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 40px; }
  .display, .title-xl { font-size: 34px; line-height: 1.15; }
  .title-lg { font-size: 26px; }
  .title-md { font-size: 23px; }
  .split { gap: 32px; }
  .support > div, .cta-band, .lookup-card { padding: 24px; }
  .card { padding: 22px; }
  .lookup { flex-direction: column; }
  .stat strong { font-size: 28px; }
  .deflist { grid-template-columns: 1fr; gap: 2px 0; }
  .deflist dd { margin-bottom: 10px; }
  .portal-body { padding: 16px; }
  .side-nav, .side-nav.admin { flex-direction: row; overflow-x: auto; gap: 6px; flex-basis: 100%; padding-bottom: 4px; }
  .side-nav .group { flex-direction: row; gap: 6px; }
  .side-nav .group-label { display: none; }
  .side-nav a { white-space: nowrap; flex-shrink: 0; }
  .auth-card { padding: 24px; }
  .marksheet .ms-head, .marksheet .ms-body { padding: 20px; }
  .bk-x { display: none; }
  .portal-user .who { display: none; }
}
@media (max-width: 960px) and (min-width: 641px) {
  .side-nav, .side-nav.admin { flex-direction: row; flex-wrap: wrap; flex-basis: 100%; gap: 6px; }
  .side-nav .group { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-nav .group-label { display: none; }
}

/* ---------- Print: only the marksheet ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #FFFFFF !important; color: #000000; }
  .no-print, .portal-header, .side-nav, .site-header, .site-footer, .auth-header, .flashes { display: none !important; }
  .portal, .auth-page { background: #FFFFFF !important; }
  .portal-body, .auth-main { padding: 0 !important; display: block; }
  .marksheet { border: 1px solid #999; border-radius: 0; }
  .marksheet .ms-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ms-totals div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table { min-width: 0; }
  a { color: #000; }
}
.flash-bar { padding-top: 20px; }
.section-tail { padding-bottom: 88px; } @media (max-width: 640px) { .section-tail { padding-bottom: 56px; } }
.gap-56 { gap: 56px; } .on-dark { color: #FFFFFF; border-color: rgba(255,255,255,.4); } .on-dark:hover { color: #FFFFFF; border-color: #FFFFFF; }
.section-pad-sm { padding-top: 24px; padding-bottom: 24px; } .narrow { max-width: 860px; }
.eyebrow-sm { font-size: 13px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.contact-list { margin: 0; }
.contact-list dd { margin: 0; font-size: 16px; line-height: 1.6; }
.strong { font-weight: 700; }
.form-soft { background: var(--bg-soft); }
.center-text { text-align: center; align-items: center; } .maint-logo { width: 120px; height: 120px; object-fit: contain; }
.result-wrap { width: 100%; max-width: 900px; }
.exam-pick { flex: 0 1 360px; }
.csv-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; } .csv-box summary { cursor: pointer; padding: 4px 0; } .csv-box[open] summary { margin-bottom: 12px; }
.sub-panel { border-top: 1px solid var(--line); padding-top: 18px; }
.title-xs { font-size: 16px; }
.grade-name { width: 76px; flex: 0 0 76px; text-align: center; font-weight: 800; }
.nowrap-row { flex-wrap: nowrap; }
.state-text { width: 52px; } .sec-row { flex-wrap: wrap; }
.thumb.round { width: 72px; aspect-ratio: 1; border-radius: 50%; font-weight: 800; font-size: 22px; } .add-card { border-style: dashed; }
.album-name { flex: 1 1 200px; min-height: 42px; } .album-tone { width: 120px; min-height: 42px; flex: 0 0 120px; }
.message { padding: 16px; border: 1px solid var(--line); border-left-width: 1px; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.message:not(.read) { background: var(--tint); border-color: transparent; }
.message p { line-height: 1.6; }
.message + .message { margin-top: 10px; }
.status-select { min-height: 40px; width: 140px; }
fieldset.plain { border: 0; padding: 0; margin: 0; } .custom-hex { flex-direction: row; align-items: center; gap: 8px; } .custom-hex .input { width: 120px; min-height: 44px; } .switch-row .t { cursor: pointer; }
.lookup .btn { white-space: nowrap; } .stats { align-content: start; }
.faq > div { max-width: 860px; }

/* =====================================================================
   BECT look (design update): cream page, Oswald uppercase headings,
   gold marker, pill buttons, floating header & footer.
   ===================================================================== */
:root { --page: #F5F2E9; --band: #ECE7D8; --navy: #00183F; --brand-ink: #011D4C; --header-glass: rgba(245, 242, 233, 0.72); --kicker: #6B4E00; }
[data-theme="dark"] { --page: #0A1222; --band: #0E182B; --navy: #111D36; --brand-ink: #E8ECF4; --header-glass: rgba(10, 18, 34, 0.72); --kicker: #F6D27A; }

body.pub { background: var(--page); }
.pub h1, .pub h2 { font-family: Oswald, Manrope, sans-serif; text-transform: uppercase; letter-spacing: 0.005em; font-weight: 700; line-height: 1.06; text-wrap: balance; }
.pub h3 { font-family: Oswald, Manrope, sans-serif; font-weight: 600; letter-spacing: 0.01em; text-wrap: balance; }
.mk { background: linear-gradient(transparent 78%, #F9BB12 78%, #F9BB12 96%, transparent 96%); padding: 0 0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pub .btn { border-radius: 999px; }
.pub .input:not(textarea):not([type=file]) { border-radius: 999px; padding-left: 20px; padding-right: 20px; }
.pub select.input { padding-right: 40px; }
.pub textarea.input { border-radius: 18px; padding: 14px 18px; }
.pub .card, .pub .stat, .pub .fact, .pub .issue, .pub .tier, .pub .person, .pub .event, .pub .doc-link, .pub .lookup-card, .pub .tile, .pub .album-tile { border-radius: 22px; }
.pub .card, .pub .stat, .pub .fact, .pub .issue, .pub .tier, .pub .person, .pub .doc-link { border-color: transparent; }
.pub .icon-btn { border-radius: 50%; border-color: var(--line-2); }
.pub .pill { border-radius: 999px; }
.pub .eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; }
.pub .page-intro .title-xl, .pub .title-xl { font-size: 48px; }

/* Header: sticky frosted glass */
.pub .site-header { background: var(--header-glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 0; position: sticky; top: 0; z-index: 50; }
.pub .site-header .bar { max-width: 1232px; }
.pub .brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-name { font-family: Oswald, Manrope, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; color: var(--brand-ink); }
.pub .mobile-nav .panel { border-radius: 20px; }
@media (max-width: 1080px) { .main-nav { display: none; } .mobile-nav { display: block; } }

/* Intro band on inner pages */
.band { background: var(--band); border-bottom: 1px solid var(--line); }
.band .page-intro { padding-top: 72px; padding-bottom: 56px; }
.band-top { background: var(--band); border-top: 1px solid var(--line); }

/* Footer: floating navy box */
.site-footer { background: transparent; color: var(--footer-ink); padding: 24px; }
.footer-box { max-width: 1232px; margin: 0 auto; background: var(--footer); color: #C9D2E3; border-radius: 28px; padding: 56px 48px 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-box .footer-cols { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); align-items: start; }
.footer-cols h2 { font-family: Oswald, Manrope, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.06em; }
.footer-cols a, .footer-cols .addr { color: #C9D2E3; font-size: 15px; line-height: 1.6; }
.footer-cols .break { word-break: break-all; }
.footer-donate { background: var(--gold); color: #011D4C; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.footer-donate strong { font-family: Oswald, Manrope, sans-serif; font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.footer-donate span { font-size: 14px; font-weight: 600; }
.footer-donate .btn { align-self: flex-start; }
.btn-navy { background: #011D4C; color: #FFFFFF; }
.btn-navy:hover { color: #FFFFFF; filter: brightness(1.3); }
.footer-box .footer-bottom { border-top: 1px solid #1C3566; padding-top: 24px; align-items: center; gap: 16px; }
.footer-box .footer-brand { gap: 14px; align-items: center; }
.footer-box .footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-box .footer-brand strong { font-family: Oswald, Manrope, sans-serif; font-size: 24px; color: var(--gold); text-transform: uppercase; line-height: 1.1; }
.footer-box .footer-brand span { font-size: 13px; }
.footer-box .footer-bottom > a { color: #C9D2E3; font-size: 13px; }

/* ---- Home ---- */
.hero-wrap { padding: 8px 24px 0; }
.hero-box { max-width: 1232px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #00183F; color: #FFFFFF; position: relative; height: min(calc(100svh - 100px), 760px); min-height: 460px; display: flex; align-items: center; }
.hero-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 24, 63, 0.94) 0%, rgba(0, 24, 63, 0.78) 45%, rgba(0, 24, 63, 0.2) 100%); z-index: 1; }
.hero-copy { position: relative; z-index: 2; padding: 64px 56px; max-width: 720px; display: flex; flex-direction: column; gap: 22px; }
.hero-copy .eyebrow { color: var(--gold); }
.pub .hero-copy h1 { font-size: 76px; line-height: 1.02; color: #FFFFFF; }
.hero-copy p { font-size: 18px; line-height: 1.65; color: #D5DCEA; max-width: 560px; }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, 0.55); color: #FFFFFF; background: transparent; }
.btn-ghost-light:hover { color: #FFFFFF; border-color: #FFFFFF; }
.wrap-1232 { padding: 16px 24px 0; }
.duo { max-width: 1232px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.duo-card { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; color: #011D4C; }
.duo-card.gold { background: var(--gold); }
.duo-card.tint { background: #E6EBF4; }
.pub .duo-card h2 { font-size: 32px; color: #011D4C; }
.duo-card p { font-size: 15px; font-weight: 600; }
.duo-card .input { border-color: #011D4C; background: #FFFFFF; color: #14161A; }
.duo-card .btn-outline { color: #011D4C; border-color: #011D4C; }
.sec { padding-top: 96px; padding-bottom: 96px; }
.sec-tail { padding-bottom: 96px; }
.pub .h-big { font-size: 48px; }
.pub .h-mid { font-size: 40px; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 700; }
.checklist .tick { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--gold); color: #011D4C; display: inline-flex; align-items: center; justify-content: center; }
.ph-lg { aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; background: var(--tint); color: var(--tint-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ph-lg img { width: 100%; height: 100%; object-fit: cover; }
.sec-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.sec-head h2 { max-width: 760px; }
.sec-head p { font-size: 16px; color: var(--muted-2); max-width: 560px; }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; }
.prog-tile { background: var(--card); border-radius: 24px; padding: 12px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.prog-tile:hover { color: var(--ink); box-shadow: var(--shadow); }
.prog-tile .img { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prog-tile .img img { width: 100%; height: 100%; object-fit: cover; }
.prog-tile .meta { display: flex; gap: 14px; align-items: center; padding: 4px 10px 10px; }
.prog-tile h3 { font-size: 20px; }
.prog-tile .meta span.sub { font-size: 14px; color: var(--muted-2); }
.icon-sq { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: #011D4C; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.icon-round { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #011D4C; color: var(--gold); }
.icon-round.alt { background: var(--gold); color: #011D4C; }
.wrap-box { padding: 0 24px; }
.navy-box { max-width: 1232px; margin: 0 auto; border-radius: 28px; background: #00183F; color: #FFFFFF; padding: 64px 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.navy-box > div { flex: 1 1 420px; min-width: 0; }
.navy-box .eyebrow { color: var(--gold); }
.pub .navy-box h2 { font-size: 46px; color: #FFFFFF; }
.navy-box p { font-size: 16px; line-height: 1.65; color: #C9D2E3; }
.bars { display: flex; gap: 14px; align-items: flex-end; }
.ibar { flex: 1; min-width: 0; background: var(--gold); color: #011D4C; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.ibar:nth-child(1) { height: 150px; } .ibar:nth-child(2) { height: 210px; } .ibar:nth-child(3) { height: 280px; }
.ibar strong { font-family: Oswald, Manrope, sans-serif; font-size: 34px; line-height: 1; }
.ibar span { font-size: 13px; font-weight: 700; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.way { background: var(--card); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; color: var(--ink); }
.way:hover { color: var(--ink); box-shadow: var(--shadow); }
.way h3 { font-size: 20px; }
.way p { font-size: 14px; line-height: 1.6; color: var(--muted-2); }
.counter-box { max-width: 1232px; margin: 0 auto; border-radius: 28px; background: var(--band); padding: 72px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.counter-box .big { font-family: Oswald, Manrope, sans-serif; font-size: 120px; line-height: 1; color: var(--brand-ink); }
.counter-box p { font-size: 16px; color: var(--muted); }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.story { background: var(--card); border-radius: 24px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.story .img { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.story .img img { width: 100%; height: 100%; object-fit: cover; }
.story .body { padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.story .kicker { font-size: 12px; font-weight: 800; color: var(--kicker); letter-spacing: 0.06em; text-transform: uppercase; }
.story h3 { font-size: 20px; }
.story .sub { font-size: 14px; color: var(--muted-2); }
.story a.more { font-size: 14px; font-weight: 800; padding: 6px 0; }
.qa { display: flex; flex-wrap: wrap; gap: 48px; }
.qa > div:first-child { flex: 1 1 340px; min-width: 0; }
.qa > div:last-child { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.qa details { background: var(--card); border-radius: 18px; padding: 18px 22px; }
.qa summary { font-size: 16px; font-weight: 800; cursor: pointer; min-height: 28px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.qa details[open] summary::after { content: "–"; }
.qa details p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.cta-box { max-width: 1232px; margin: 0 auto; background: var(--card); border-radius: 28px; padding: 56px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.cta-box h2 { max-width: 720px; }
.cta-box p { font-size: 16px; color: var(--muted-2); max-width: 520px; }
.cta-box form { width: 100%; max-width: 520px; margin-top: 6px; }
.cta-tail { padding: 0 24px 24px; }

/* Night: keep the navy blocks distinct from the page */
[data-theme="dark"] .hero-box, [data-theme="dark"] .navy-box { background: #111D36; }
[data-theme="dark"] .duo-card.tint { background: #1A2B4F; color: #E8ECF4; }
[data-theme="dark"] .pub .duo-card.tint h2 { color: #E8ECF4; }
[data-theme="dark"] .duo-card.tint .btn-outline { color: #F6C445; border-color: #F6C445; }
[data-theme="dark"] .duo-card.tint .btn-navy { background: #23468F; }
[data-theme="dark"] .counter-box .big { color: var(--gold); }
[data-theme="dark"] .brand-name { color: #E8ECF4; }

@media (max-width: 640px) {
  .pub .hero-copy h1 { font-size: 46px; }
  .pub .h-big, .pub .navy-box h2 { font-size: 32px; }
  .pub .h-mid, .pub .page-intro .title-xl, .pub .title-xl { font-size: 36px; }
  .pub .duo-card h2 { font-size: 26px; }
  .counter-box .big { font-size: 84px; }
  .hero-wrap, .wrap-1232, .wrap-box, .cta-tail { padding-left: 12px; padding-right: 12px; }
  .hero-copy { padding: 32px 22px; }
  .hero-box::before { background: linear-gradient(180deg, rgba(0, 24, 63, 0.55) 0%, rgba(0, 24, 63, 0.92) 70%); }
  .navy-box { padding: 32px 22px; gap: 32px; }
  .counter-box, .cta-box { padding: 40px 20px; }
  .duo-card { padding: 24px; }
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .sec-tail { padding-bottom: 56px; }
  .site-footer { padding: 12px; }
  .footer-box { padding: 32px 22px 24px; border-radius: 22px; }
  .band .page-intro { padding-top: 40px; padding-bottom: 36px; }
  .ibar:nth-child(1) { height: 120px; } .ibar:nth-child(2) { height: 170px; } .ibar:nth-child(3) { height: 220px; }
  .ibar strong { font-size: 26px; }
  .brand-name { font-size: 15px; }
  .pub .brand img { width: 44px; height: 44px; }
}

/* Portal & sign-in headers: logo + BECT in Oswald */
.portal-brand span:not(.role-tag), .auth-header .brand-name { font-family: Oswald, Manrope, sans-serif; text-transform: uppercase; letter-spacing: 0.01em; }
.portal-brand img, .auth-header .brand img { border-radius: 50%; width: 40px; height: 40px; }
.gap-36 { gap: 36px; }
.pub .section-soft { background: var(--band); } .band-top { border-bottom: 1px solid var(--line); } .facts-wrap { padding-top: 40px; }
.ways-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; } .way-edit { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }

.duo-card .lookup, .cta-box .lookup { flex: 0 0 auto; }
