/* ───────── Design tokens ───────── */
:root {
  --navy-900: #001a3f;
  --navy-800: #002d6b;
  --navy-700: #0a4fb5;
  --navy-600: #2563c8;
  --ink: #0c1424;
  --ink-2: #384252;
  --ink-3: #6b7587;
  --line: #e3e6ec;
  --line-2: #eef0f4;
  --paper: #f8f8f6;
  --paper-2: #f1f2ee;
  --white: #ffffff;
  --teal: oklch(0.72 0.08 200);
  --teal-ink: oklch(0.42 0.08 200);
  --amber: oklch(0.78 0.11 75);
  --amber-ink: oklch(0.45 0.11 75);
  --rose: oklch(0.72 0.12 20);
  --rose-ink: oklch(0.48 0.14 20);

  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "IBM Plex Serif", "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 0 rgba(12, 20, 36, 0.04), 0 1px 2px rgba(12, 20, 36, 0.04);
  --shadow: 0 2px 4px rgba(12, 20, 36, 0.05), 0 12px 24px -12px rgba(12, 20, 36, 0.08);
  --shadow-lg: 0 10px 24px -8px rgba(0, 26, 63, 0.18), 0 2px 4px rgba(12, 20, 36, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "cv11", "tnum" 1;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font: inherit; color: inherit; }

/* ───────── Top navigation (shared) ───────── */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2);
}
.topnav-inner {
  max-width: 1360px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-800);
  font-size: 15px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy-800);
  position: relative;
  flex: none;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
}
.brand-mark::before { background: radial-gradient(circle at 50% 50%, #fff 0 24%, transparent 25%); }
.brand-mark::after  { background: radial-gradient(circle at 50% 50%, var(--navy-800) 0 10%, transparent 11%); }
.brand .wm { display: flex; flex-direction: column; line-height: 1.05; }
.brand .wm small { font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); font-weight: 500; text-transform: uppercase; }

.topnav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.topnav-links a {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: var(--radius);
  letter-spacing: 0.01em;
}
.topnav-links a:hover { color: var(--navy-800); background: var(--paper-2); }
.topnav-links a.active { color: var(--navy-800); font-weight: 600; }
.topnav-cta {
  padding: 8px 14px !important;
  background: var(--navy-800);
  color: #fff !important;
  border-radius: var(--radius) !important;
  margin-left: 8px;
  font-weight: 500;
}
.topnav-cta:hover { background: var(--navy-700) !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 6px 10px; border-radius: var(--radius); margin-left: auto; }
@media (max-width: 820px) {
  .topnav-inner { padding: 12px 18px; }
  .topnav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px; border-bottom: 1px solid var(--line); }
  .topnav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .topnav-links a { padding: 12px 16px; }
  .topnav-cta { margin-left: 0; text-align: center; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-ghost:hover { background: var(--navy-800); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-subtle { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.btn-subtle:hover { background: var(--line-2); }

/* ───────── Typography ───────── */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow-accent { color: var(--navy-700); }
.serif-display {
  font-family: var(--f-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.mono { font-family: var(--f-mono); letter-spacing: 0; }

/* ───────── Layout helpers ───────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 18px; }
}
.rule { height: 1px; background: var(--line); margin: 0; border: 0; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 820px) { .section { padding: 64px 0; } .section-sm { padding: 40px 0; } }

/* ───────── Status pills ───────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  font-size: 12px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.pill-accepted { background: color-mix(in oklch, var(--teal) 18%, white); color: var(--teal-ink); border-color: color-mix(in oklch, var(--teal) 40%, white); }
.pill-accepted .pill-dot { background: var(--teal-ink); }
.pill-pending { background: color-mix(in oklch, var(--amber) 18%, white); color: var(--amber-ink); border-color: color-mix(in oklch, var(--amber) 40%, white); }
.pill-pending .pill-dot { background: var(--amber-ink); }
.pill-refused { background: color-mix(in oklch, var(--rose) 14%, white); color: var(--rose-ink); border-color: color-mix(in oklch, var(--rose) 35%, white); }
.pill-refused .pill-dot { background: var(--rose-ink); }

/* ───────── Footer ───────── */
.footer {
  background: var(--navy-900);
  color: #c9d2e0;
  padding: 72px 0 36px;
  margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 { color: #fff; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #8994a8;
}
.footer .brand { color: #fff; }
.footer .brand .wm small { color: #8994a8; }
.footer .brand-mark { background: #fff; }
.footer .brand-mark::after { background: radial-gradient(circle at 50% 50%, #fff 0 10%, transparent 11%); }
.footer .brand-mark::before { background: radial-gradient(circle at 50% 50%, var(--navy-900) 0 24%, transparent 25%); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ───────── Utility ───────── */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(0,45,107,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,45,107,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.noise-bg {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0, 45, 107, 0.04), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(10, 79, 181, 0.04), transparent 40%);
}

/* Faculty section */
.faculty { background: #fff; border-top: 1px solid var(--line); }
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fac {
  padding: 28px 24px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.fac:nth-child(4n) { border-right: none; }
.fac .av {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper-2); color: var(--navy-800);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.fac .nm { font-family: var(--f-serif); font-size: 19px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.fac .role { font-size: 12px; color: var(--navy-800); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.fac .inst { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
@media (max-width: 960px) { .faculty-grid { grid-template-columns: repeat(2, 1fr); } .fac:nth-child(4n) { border-right: 1px solid var(--line); } .fac:nth-child(2n) { border-right: none; } }
@media (max-width: 540px) { .faculty-grid { grid-template-columns: 1fr; } .fac { border-right: none !important; } }

/* Practical section */
.practical { background: var(--paper); }
.prac-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.prac {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 8px;
}
.prac .num { font-family: var(--f-mono); font-size: 11px; color: var(--navy-800); letter-spacing: 0.1em; }
.prac h4 { font-family: var(--f-serif); font-weight: 400; font-size: 22px; margin: 8px 0 4px; letter-spacing: -0.01em; }
.prac .meta { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.prac ul { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); }
.prac li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--ink-2); gap: 14px; }
.prac li span:first-child { color: var(--ink-3); }
.prac li strong { font-weight: 500; color: var(--ink); text-align: right; }
@media (max-width: 860px) { .prac-grid { grid-template-columns: 1fr; } }

/* Form elements */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.field label .req { color: var(--rose-ink); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(10, 79, 181, 0.12);
}
.field .help { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12px; color: var(--rose-ink); display: none; }
.field.invalid input, .field.invalid select { border-color: var(--rose-ink); background: color-mix(in oklch, var(--rose) 6%, white); }
.field.invalid .err { display: block; }
.field.valid input, .field.valid select { border-color: color-mix(in oklch, var(--teal) 55%, white); }
