/* Alpha & Omega College — one design system for every rebuilt page.
   Mobile first: base rules are the phone layout, wider layouts arrive in min-width queries.
   Theme: light is the default, [data-theme="dark"] flips the same tokens. */

:root {
  --ink: #0f2038;          /* brand navy */
  --ink-2: #16294a;
  --gold: #b0812f;
  --gold-2: #c9a227;
  --gold-soft: #f3e6c8;

  --paper: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef1f5;
  --text: #1b2735;
  --muted: #5c6b7c;
  --line: #dfe4ea;
  --shadow: 0 1px 2px rgba(15, 32, 56, .06), 0 12px 28px rgba(15, 32, 56, .07);

  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;

  --r-s: 8px; --r-m: 12px; --r-l: 18px;
  --pad: 18px;
  --wrap: 1140px;
  --tap: 44px;             /* smallest interactive box we ship */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --paper: #0d1520;
  --surface: #121d2b;
  --surface-2: #182535;
  --text: #e7edf4;
  --muted: #a0b0c2;
  --line: #243244;
  --gold-soft: #3a2f18;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 16px/1.65 var(--sans);
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;          /* nothing may push the page sideways on a phone */
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.18; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #fff; }
h1 { font-size: clamp(30px, 8.6vw, 54px); letter-spacing: -.02em; }
h2 { font-size: clamp(23px, 5.4vw, 34px); letter-spacing: -.015em; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: .3em 0; }
small { font-size: 13px; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

/* ---------- page frame ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: 46px 0; }
.sec-tight { padding: 30px 0; }
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }
.kicker { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.lede { font-size: 17px; color: var(--muted); max-width: 68ch; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.head-row h2 { margin: 0; }

/* ---------- top bar: notice + nav, stuck together ---------- */
.topbar { position: sticky; top: 0; z-index: 900; }

.notice { background: var(--ink); color: #fff; border-bottom: 2px solid var(--gold); font-size: 14px; }
.notice[hidden] { display: none; }
.notice-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px var(--pad); max-width: var(--wrap); margin: 0 auto; }
.notice .nb-mark { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--gold); display: grid; place-items: center; color: #fff; font-size: 16px; }
.notice .nb-text { flex: 1 1 200px; min-width: 0; line-height: 1.45; }
.notice .nb-text b { color: #ecd6a4; }
.notice .nb-cta { flex: 0 0 auto; background: var(--gold); color: #fff; font-weight: 700; border-radius: var(--r-s); padding: 0 16px; min-height: var(--tap); display: inline-flex; align-items: center; }
.notice .nb-cta:hover { background: #c99a4a; text-decoration: none; color: #fff; }
.notice .nb-x { flex: 0 0 auto; width: var(--tap); height: var(--tap); border: 0; background: transparent; color: #cfd8e6; font-size: 20px; line-height: 1; border-radius: var(--r-s); cursor: pointer; }
.notice .nb-x:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.nav { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 8px var(--pad); max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; background: var(--ink); }
.brand-txt { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.15; overflow: hidden; }
.brand-txt small { font: 500 11px/1.3 var(--sans); color: var(--muted); letter-spacing: .04em; }
.nav-links { display: none; }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: var(--tap); height: var(--tap); border: 1px solid var(--line); background: var(--paper); color: var(--text); border-radius: var(--r-s); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface); }

.drawer { position: fixed; inset: 0; background: rgba(9, 17, 28, .55); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); z-index: 1000; }
.drawer[open] { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); background: var(--paper); border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; transform: translateX(100%); transition: transform .28s var(--ease); }
.drawer[open] .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer a { display: flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-s); color: var(--text); font-weight: 600; font-size: 15px; }
.drawer a:hover { background: var(--surface); text-decoration: none; }
.drawer a[aria-current="page"] { background: var(--gold-soft); color: var(--ink); }
.drawer .grp { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }

/* desktop nav */
@media (min-width: 1000px) {
  .burger { display: none; }
  .nav-links { display: flex; align-items: center; gap: 2px; }
  .nav-links > a, .nav-links > details > summary { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-s); color: var(--text); font-weight: 600; font-size: 14px; }
  .nav-links > a:hover, .nav-links > details[open] > summary { background: var(--surface); text-decoration: none; }
  .nav-links > a[aria-current="page"] { color: var(--gold); }
  .nav-links summary { list-style: none; cursor: pointer; gap: 6px; }
  .nav-links summary::-webkit-details-marker { display: none; }
  .nav-drop { position: absolute; right: var(--pad); top: calc(100% + 6px); width: 280px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 8px; display: grid; gap: 2px; z-index: 950; }
  .nav-drop a { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: var(--r-s); color: var(--text); font-size: 14px; font-weight: 600; }
  .nav-drop a:hover { background: var(--surface); text-decoration: none; }
  .nav-links details { position: static; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: var(--r-s); border: 1px solid transparent; font: 700 15px/1 var(--sans); cursor: pointer; text-align: center; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #9a6f26; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--ink) 0%, #14283f 58%, var(--paper) 58.2%); color: #fff; padding: 34px 0 8px; }
[data-theme="dark"] .hero { background: linear-gradient(180deg, #0a1220 0%, #101d2e 58%, var(--paper) 58.2%); }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.hero h1 { color: #fff; max-width: 24ch; }
.hero .kicker { color: var(--gold-2); }
.hero .lede { color: #d5dfec; }
.hero-cta { margin-top: 22px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 6px; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .18); }
.hstat { min-width: 92px; }
.hstat b { display: block; font: 800 26px/1.1 var(--display); color: var(--gold-2); }
.hstat span { font-size: 13px; color: #c3d0e0; }
.hero-page { background: var(--surface); border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.hero-page h1 { max-width: 30ch; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; }
.card a.link { font-weight: 700; font-size: 14px; }
.card-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-img > img, .card-img .ph { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--surface-2); }
.card-img .body { padding: 18px 20px 20px; }
.card-hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .card-hover:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 32, 56, .08), 0 18px 40px rgba(15, 32, 56, .12); } }

.stat-strip { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.stat b { display: block; font: 800 30px/1.1 var(--display); color: var(--ink); }
[data-theme="dark"] .stat b { color: var(--gold-2); }
.stat span { font-size: 13px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: 600 12px/1 var(--sans); }
.pill-gold { background: var(--gold-soft); color: #7a5716; }
[data-theme="dark"] .pill-gold { color: var(--gold-2); }

/* ---------- lists, tables, timelines ---------- */
.tick { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick li { position: relative; padding: 0 0 0 30px; margin: 0; }
.tick li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font: 700 13px/21px var(--sans); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chips .pill { font-size: 13px; padding: 7px 12px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
caption { text-align: left; padding: 14px 16px; font-weight: 700; color: var(--muted); font-size: 13px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface); font: 700 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 34px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--paper); }
.timeline b { display: block; font-family: var(--display); color: var(--ink); }
[data-theme="dark"] .timeline b { color: #fff; }
.timeline span { color: var(--muted); font-size: 15px; }

.quote { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-m); padding: 20px; }
.quote p { font-size: 16px; color: var(--text); }
.quote footer { margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 600; }

.cta-band { background: var(--ink); color: #e9eff7; border-radius: var(--r-l); padding: 26px 20px; display: grid; gap: 16px; justify-items: start; }
.cta-band h2 { color: #fff; }
[data-theme="dark"] .cta-band { background: var(--surface-2); }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 30px 34px; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label { font: 700 13px/1.2 var(--sans); letter-spacing: .02em; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: var(--tap); padding: 11px 13px; font: 400 16px/1.5 var(--sans); color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s);
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--gold-2); outline: 2px solid var(--gold-2); outline-offset: 1px; }
.two-up { display: grid; gap: 16px; }
@media (min-width: 680px) { .two-up { grid-template-columns: 1fr 1fr; } }
.note { font-size: 14px; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.note.ok { background: #eaf6ec; color: #14612c; border-color: #b9e0c3; }
.note.bad { background: #fdeeee; color: #8e1c1c; border-color: #f2c6c6; }
[data-theme="dark"] .note.ok { background: #10291a; color: #7fd39a; border-color: #234d33; }
[data-theme="dark"] .note.bad { background: #2c1517; color: #f0a3a3; border-color: #55292d; }

/* ---------- gallery ---------- */
.gal { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .gal { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.gal a { display: block; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); aspect-ratio: 4/3; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .gal a:hover img { transform: scale(1.05); } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c4d0e0; margin-top: 40px; font-size: 14px; }
[data-theme="dark"] .foot { background: #080e18; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 34px var(--pad) 20px; display: grid; gap: 26px; }
.foot h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.foot a { color: #d8e2f0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot li a { display: flex; align-items: center; min-height: 38px; }
.foot .socials { display: flex; gap: 8px; margin-top: 12px; }
.foot .socials a { width: 40px; height: 40px; border-radius: var(--r-s); background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; }
.foot .socials a:hover { background: var(--gold); }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 8px; padding: 16px var(--pad) 26px; max-width: var(--wrap); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13px; color: #9fb0c4; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- shared page extras ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 34px 0; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.mt-0 { margin-top: 0; }
.spread { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.stack { display: grid; gap: 18px; }
.img-side { border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
@media (min-width: 900px) { .split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; } }
