/* Fonts load from the <head> of each page (see the font <link> tags added
   to every admin *.php file), not via @import here — @import blocks the
   browser from discovering the font request until this whole stylesheet is
   fetched and parsed first, adding a full extra round-trip before the font
   even starts downloading. A <link> in <head> is discovered immediately,
   in parallel with everything else — same fonts, faster and less of a
   flash-of-fallback-text than the public site used to have exclusively. */

/* Shares the public site's palette: cream paper, red as the brand colour,
   warm near-black for type and app chrome. Maroon is retired — it now exists
   only inside the logo artwork. */
/* Shares the public site's system, per the director's brief: burgundy for
   structure, cream paper, gold for rules and marks only, one green for
   "verified". Newsreader over Inter. */
:root {
  --display: "Newsreader", Georgia, serif;  /* brand wordmark only — everything else stays Inter for density */
  --ink: #2B1D20;          /* body text */
  --ink-2: #2B1D20;
  --maroon: #6E1B2B;
  --maroon-deep: #4A121D;
  --gold: #C39A4E;         /* rules and marks ONLY */
  --gold-ink: #7E5C20;     /* gold that can carry text — 5.7:1 on cream */
  --accent: #C8102E;       /* the bright crimson, for live marks only */
  --accent-wash: #FBE6E8;
  --verify: #2F6B4F;
  --verify-wash: #E9F0EA;
  --verify-border: #C6E1D1;
  --status-new-bg: #EFE9E1;
  --status-new-text: #5C4E50;
  --status-new-border: #E0D6C9;
  --status-amber-bg: #FBF0DC;
  --status-amber-text: #8A5A16;
  --status-amber-border: #EFDCB6;
  --status-red-text: #B0202F;
  --status-red-border: #F0CBD0;
  --red: #6E1B2B;          /* legacy name kept so existing rules keep working */
  --red-dark: #4A121D;
  --red-tint: #F3E9E9;
  --paper: #FFFDFA;        /* cards */
  --paper-2: #FBF7F1;      /* app background */
  --line: #E4D9CD;         /* hairline */
  --muted: #6B5C5F;
  --muted-2: #8A7A7C;
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(43,29,32,.06);
  --shadow-md: 0 6px 20px rgba(43,29,32,.09);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Custom scrollbar — thin, on-brand, matches the public site and portal.
   The dark sidebar gets its own light-on-ink variant further down. */
html { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 99px;
  border: 3px solid var(--paper-2); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-ink); }
::-webkit-scrollbar-thumb:active { background: var(--accent); }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }

/* ---------- Sidebar nav ----------
   Deliberately matches the portal's sidebar (portal/assets/css/style.css +
   portal/includes/nav.php) class-for-class — same component, same look,
   across both apps. The one addition here is .sb-nav-label for admin's
   grouped sections (Website / System), which the portal's flatter nav
   doesn't need. */
:root {
  --sidebar-w: 240px;
}
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  /* Same recipe as the portal login screen's backdrop (soft accent glow at
     one corner, deepening to maroon at the other) — quieter here, since this
     is on screen constantly rather than seen once, but it's the same "soft
     but bright, angled" language rather than a flat fill. */
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(236,55,44,.14) 0%, rgba(236,55,44,0) 55%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink) 72%, var(--maroon-deep) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 40;
  box-shadow: 2px 0 16px rgba(112,43,38,.16);
}
.sb-brand {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 18px 16px 14px;
}
.sb-brand .brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: #fff;
}
.sb-brand .brand img { display: block; }
.sb-brand .brand b { color: var(--red-tint); filter: brightness(1.6); font-weight: 800; }
.sb-brand .brand:hover { text-decoration: none; opacity: .92; }
.sb-close { display: none; background: none; border: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }

.sb-nav {
  display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; overflow-y: auto; flex: 1;
  scrollbar-width: thin; scrollbar-color: rgba(247,243,236,.25) transparent;
}
.sb-nav::-webkit-scrollbar-thumb { background: rgba(247,243,236,.25); border-color: transparent; }
.sb-nav::-webkit-scrollbar-thumb:hover { background: rgba(247,243,236,.4); }
.sb-nav-label {
  color: rgba(247,243,236,.4);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 12px 4px;
}
.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 9px;
  color: rgba(247,243,236,.74); font-size: 14.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.sb-link svg { flex: 0 0 auto; opacity: .9; }
.sb-link:hover { color: #fff; background: rgba(247,243,236,.08); text-decoration: none; }
.sb-link.active { color: #fff; background: var(--accent); font-weight: 600; box-shadow: 0 2px 10px rgba(236,55,44,.35); }
.sb-link.active svg { opacity: 1; }

.sb-foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(247,243,236,.10); }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; }
.sb-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.sb-user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sb-name { font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-role { font-size: 13px; color: rgba(247,243,236,.55); font-family: 'IBM Plex Mono', monospace; }
.sb-logout { color: rgba(247,243,236,.82); }
.sb-logout:hover { background: rgba(236,55,44,.34); color: #fff; }

/* Mobile top bar + backdrop — hidden on desktop, shown under 1024px */
.sb-topbar { display: none; }
.sb-backdrop { display: none; }

/* Collapse to an off-canvas drawer at 1024px, not 760px. A 1366px laptop at
   125%/150% Windows display scaling reports ~910-1093 CSS px — above the old
   760px cutoff, so this range needs the same drawer treatment as a tablet.
   Same breakpoint and behaviour as the portal. */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: none;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 2px 0 28px rgba(45,12,10,.50); }
  .sb-close { display: block; }

  .sb-topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 30;
    background:
      radial-gradient(120% 220% at 100% 0%, rgba(236,55,44,.14) 0%, rgba(236,55,44,0) 55%),
      linear-gradient(165deg, var(--ink) 0%, var(--maroon-deep) 100%);
    color: #fff;
    padding: 12px 16px; box-shadow: var(--shadow-md);
  }
  .sb-topbar .brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 16px; color: #fff; }
  .sb-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 34px; height: 34px; background: none; border: none; padding: 0; cursor: pointer;
  }
  .sb-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

  .sb-backdrop { position: fixed; inset: 0; background: rgba(45,12,10,.50); z-index: 35; }
  .sb-backdrop.show { display: block; }
}

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 0 0 0 var(--sidebar-w); padding: 34px clamp(20px, 4vw, 52px) 64px; }
@media (max-width: 1024px) {
  .container { max-width: 900px; margin: 0 auto; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 700px) {
  .container { padding: 16px 14px 48px; }
  .card { padding: 16px; overflow-x: auto; }
}

/* ---------- Collapsible field groups (admin/content_blocks.php) ---------- */
details.block-group { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: var(--paper); }
details.block-group summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.block-group summary::-webkit-details-marker { display: none; }
details.block-group summary::after { content: '+'; font-weight: 400; color: var(--muted-2); }
details.block-group[open] summary::after { content: '\2212'; }
details.block-group .block-body { padding: 0 18px 16px; border-top: 1px solid var(--line); }
.block-field { padding: 14px 0; border-bottom: 1px solid var(--line); }
.block-field:last-child { border-bottom: none; }
.block-field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-2); margin-bottom: 6px; }

/* ---------- Login / auth ----------
   The three unauthenticated screens (login, forgot_password, reset_password)
   share one shell — admin/includes/auth_head.php + auth_foot.php — and that
   partial inlines a faithful subset of this block as critical CSS. Keep the
   two in sync: any value changed here must be mirrored in the partial's
   <style>. A cream card, hairline-bordered, 3px corners, floating on the
   brand's dark burgundy ground; the logo bird as a faint watermark. */
.login-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  overflow: hidden;
  /* Soft accent glow top-right, deepening to near-black burgundy bottom-left —
     the same "soft but bright, angled" recipe as the sidebar gradient, one
     shade darker so a login seen once reads calm, not loud. */
  background:
    radial-gradient(130% 90% at 85% 0%, rgba(200,16,46,.22) 0%, rgba(74,18,29,0) 55%),
    radial-gradient(120% 110% at 12% 108%, #5A1622 0%, rgba(74,18,29,0) 58%),
    linear-gradient(160deg, #4A121D 0%, #2B0B12 100%);
}
/* the real logo bird, as a faint watermark — dimmed via opacity, colours stay true */
.auth-birds {
  position: absolute;
  top: -6%;
  right: -6%;
  width: min(420px, 56%);
  height: auto;
  opacity: .09;
  pointer-events: none;
  z-index: 0;
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 38px 32px;
  /* A genuinely floating element on a dark ground — one of the few places
     shadow is a resting cue rather than hairline-first (see DESIGN.md). */
  box-shadow: 0 24px 60px rgba(45,12,10,.5), 0 2px 8px rgba(45,12,10,.35);
}
.login-brand {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.login-mark { width: 54px; height: auto; margin: 0 auto 12px; display: block; }
.login-word {
  font-family: var(--display);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.login-word span { color: var(--maroon); font-weight: 700; }
.login-sub-brand {
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.login-card h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  text-align: center;
  color: var(--ink);
}
.login-card .login-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  text-align: center;
  line-height: 1.5;
}
.login-card form { margin-top: 22px; }
/* Mono uppercase field labels — the Label role from DESIGN.md, the same
   treatment the block-field editor labels use. */
.login-card label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 7px;
}
.login-card input[type=text],
.login-card input[type=password] {
  font-size: 15px;
  padding: 11px 13px;
  border-radius: 6px;
  margin-bottom: 16px;
}
/* border-only focus, no glow ring — admin/portal differ from the public
   site here on purpose (DESIGN.md > Inputs). */
.login-card input:focus { border-color: var(--maroon); }

/* Password field with a show/hide toggle. Added by auth_password_field() on
   the login screens; the script in includes/nav.php auto-wraps every other
   password input (user form, change-password) in the same markup. The field
   is a flex row so its box is exactly the input's height and the button
   centres against it. The [type] on the input selector lifts specificity to
   (0,2,1) so it beats `.login-card input[type=password]` too. Keep in sync
   with the critical CSS in auth_head.php. */
.pw-field { position: relative; display: flex; margin-bottom: 14px; }
.pw-field > input[type=password],
.pw-field > input[type=text] {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding-right: 40px;
}
.login-card .pw-field { margin-bottom: 16px; }
.pw-toggle {
  position: absolute;
  top: 0; right: 2px; bottom: 0;
  width: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.pw-toggle:hover { background: none; color: var(--maroon); }
.pw-toggle:active { transform: none; }
.pw-toggle:focus-visible { outline: 2px solid var(--maroon); outline-offset: -3px; border-radius: 6px; }
.pw-toggle svg { display: block; width: 17px; height: 17px; pointer-events: none; }
.pw-toggle .pw-eye-off { display: none; }
.pw-toggle.is-on .pw-eye { display: none; }
.pw-toggle.is-on .pw-eye-off { display: block; }
.login-card button[type=submit] {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  margin-top: 4px;
}
.login-card .error,
.login-card .success {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 13px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  border-left-width: 3px;
  margin: 0 0 16px;
}
.login-card .error {
  background: var(--accent-wash);
  color: var(--status-red-text);
  border-color: var(--status-red-border);
  border-left-color: var(--status-red-text);
}
.login-card .success {
  background: var(--verify-wash);
  color: var(--verify);
  border-color: var(--verify-border);
  border-left-color: var(--verify);
}
.login-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.login-card .auth-back { margin-top: 16px; color: var(--muted); font-size: 13.5px; text-align: center; }
.login-card .auth-back a { color: var(--maroon); font-weight: 600; }

@media (max-width: 440px) {
  .login-card { padding: 30px 22px 26px; }
  .auth-birds { width: 78%; opacity: .06; top: -3%; right: -12%; }
}

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ink-2); }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  margin-bottom: 14px;
  background: var(--paper);
  color: var(--ink);
}
/* Drop the native OS dropdown chrome and draw one hairline chevron, so a
   <select> reads the same as a text field with a small burgundy marker —
   no OS grey/blue widget breaking the cream/burgundy surface. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236E1B2B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select::-ms-expand { display: none; }
select:disabled { opacity: .6; cursor: not-allowed; }
/* Native file inputs never picked up the box above. Style the button half
   to match .btn-secondary so an upload field reads as part of the same UI —
   every admin upload (course resources, faculty photo, certificate soft
   copy) gets this, not just the newest one. */
input[type=file] { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
input[type=file]::file-selector-button:hover { background: var(--paper-2); }
input:focus, select:focus, textarea:focus { border-color: var(--red); }
textarea { font-family: 'IBM Plex Mono', monospace; min-height: 90px; }

/* One box for every button, whether it's a <button>, an <a class="btn">, or
   the .btn-primary / .btn-secondary aliases. .btn-secondary then overrides
   fill/border to the hairline-outline variant below. */
button, .btn, .btn-primary, .btn-secondary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
/* color is restated on :hover because a button styled as a link (<a class="btn">)
   otherwise picks up `a:hover { color: var(--maroon-deep) }` further down —
   dark burgundy text on the dark burgundy hover fill, i.e. invisible. */
button:hover, .btn:hover, .btn-primary:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
button:active, .btn:active, .btn-primary:active, .btn-secondary:active { transform: translateY(1px); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--paper-2); color: var(--ink); text-decoration: none; }

.error { color: var(--red-dark); font-size: 13px; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); font-weight: 700; }
tr:hover td { background: var(--paper-2); }

@media (max-width: 700px) {
  table { min-width: 560px; }
}

.filters { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-end; flex-wrap: wrap; }
.filters > div { min-width: 160px; }
.filters label, .filters input, .filters select { margin-bottom: 0; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}





.ref-code { font-family: 'IBM Plex Mono', monospace; font-size: 13px; }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.doc-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper-2);
}
.doc-thumb-link { display: block; }
.doc-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  display: block;
}
.doc-thumb-generic {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  color: var(--muted-2);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.doc-meta { font-size: 13px; line-height: 1.4; }

.log-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.log-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.log-list .when { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 13px; }

.field-row { margin-bottom: 12px; }
.field-row .k { font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.field-row .v { font-size: 14px; }

/* ---------- Dashboard stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--red); }
.stat-card .num { font-size: 26px; font-weight: 800; font-family: 'IBM Plex Mono', monospace; }
.stat-card .label { font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; font-weight: 700; }

/* ---------- Fee table ---------- */
.fee-table { width: 100%; margin-bottom: 10px; }
.fee-table td { padding: 4px 0; border: none; font-size: 14px; }
.fee-table td.amt { text-align: right; font-family: 'IBM Plex Mono', monospace; }
.fee-table tr.total td { border-top: 1px solid var(--line); font-weight: 700; padding-top: 8px; }
.balance-positive { color: var(--red-dark); font-weight: 700; }

@media print {
  .sidebar, .sb-topbar, .sb-backdrop, .no-print { display: none !important; }
  body { background: #fff; }
  .container { max-width: 100%; padding: 0; margin-left: 0; }
  .card { border: none; box-shadow: none; }
}

/* ---- Aligned with the public site ---- */
h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400; color: var(--ink); letter-spacing: -.01em;
}
h3 { font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 600; letter-spacing: -.005em; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-deep); }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; border-radius:2px; }


/* ============================================================
   STATUS BADGES — rebuilt.
   The previous set had "Accepted" as near-black-on-near-black after a colour
   override I appended without checking the ground it landed on: 1.6:1, which
   is why it was unreadable in the applications table.

   Each state is now a light tinted pill with saturated text of the same hue.
   All five clear 5:1, all five are distinguishable at a glance by colour AND
   by weight, and none of them is a dark slab.
   ============================================================ */
.badge, [class*="badge-"]{
  display:inline-block; padding:.28rem .7rem; border-radius:100px;
  font-family:'Inter',sans-serif; font-size:.78rem; font-weight:600;
  letter-spacing:.02em; line-height:1.45; border:1px solid transparent;
  white-space:nowrap;
}
.badge-new           { background:var(--status-new-bg); color:var(--status-new-text); border-color:var(--status-new-border); }
.badge-under_review  { background:var(--status-amber-bg); color:var(--status-amber-text); border-color:var(--status-amber-border); }
.badge-accepted      { background:var(--verify-wash); color:var(--verify); border-color:var(--verify-border); }
.badge-rejected      { background:var(--accent-wash); color:var(--status-red-text); border-color:var(--status-red-border); }
.badge-enrolled      { background:var(--maroon); color:var(--paper-2); border-color:var(--maroon); }
.badge-paid          { background:var(--verify-wash); color:var(--verify); border-color:var(--verify-border); }
.badge-pending       { background:var(--status-amber-bg); color:var(--status-amber-text); border-color:var(--status-amber-border); }
.badge-overdue       { background:var(--accent-wash); color:var(--status-red-text); border-color:var(--status-red-border); }

/* Banners take the same five hues so a state reads the same everywhere. */
.banner.info    { border-left-color:var(--maroon); background:#F5EDEE; }
.banner.warn    { border-left-color:var(--status-amber-text); background:var(--status-amber-bg); }
.banner.success { border-left-color:var(--verify); background:var(--verify-wash); }
.banner.error   { border-left-color:var(--status-red-text); background:var(--accent-wash); }
