/* =====================================================================
   PNB Exam Portal - local stylesheet
   Rebuilds the visual language of DOCS/code.html without Tailwind,
   without a CDN and without inline styles, so the site can run on
   Hostinger shared hosting under a strict Content Security Policy.

   Breakpoints match the prototype: 640px, 768px, 1024px, 1280px.
   ===================================================================== */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/merriweather-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

/* ----------------------------------------------------------------- tokens */

:root {
  --maroon: #7B1113;
  --maroon-dark: #58090B;
  --burgundy: #8B1D2C;
  --gold: #E5A91D;
  --gold-light: #FEF3C7;
  --gold-hover: #C88F11;
  --cream: #FDFBF7;
  --surface: #F8F5EE;
  --page: #F8F6F0;
  --panel: #FAF7F0;
  --card-grad-a: #FFFDF9;
  --card-grad-b: #FAF5EB;

  --saffron: #FF9933;
  --india-green: #138808;

  --ink: #1F2937;
  --ink-strong: #111827;
  --ink-soft: #374151;
  --muted: #4B5563;
  --muted-2: #6B7280;
  --faint: #9CA3AF;

  --line: #E5E7EB;
  --line-2: #F3F4F6;
  --amber-100: #FEF3C7;
  --amber-200: #FDE68A;
  --amber-300: #FCD34D;
  --amber-50: #FFFBEB;
  --amber-700: #B45309;
  --amber-800: #92400E;
  --amber-900: #78350F;
  --emerald-50: #ECFDF5;
  --emerald-200: #A7F3D0;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065F46;
  --red-100: #FEE2E2;
  --red-200: #FECACA;
  --red-500: #EF4444;
  --red-600: #DC2626;
  --red-700: #B91C1C;
  --red-800: #991B1B;
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-300: #D4D4D4;
  --neutral-400: #A3A3A3;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-700: #334155;
  --slate-900: #0F172A;

  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Calibri, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
}

/* -------------------------------------------------------------- base reset */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Body hook kept for page-specific overrides. */
.page-body {}

body::selection {
  background: var(--maroon);
  color: #fff;
}

h1, h2, h3, h4, h5, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--maroon);
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

svg.icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: block;
}

.icon--xs { width: 12px; height: 12px; }
.icon--sm { width: 16px; height: 16px; }
.icon--md { width: 20px; height: 20px; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 28px; height: 28px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- typography */

.serif { font-family: var(--font-serif); }
.fs-10 { font-size: 10px; }
.fs-11 { font-size: 11px; }
.fs-xs { font-size: 12px; line-height: 16px; }
.fs-sm { font-size: 14px; line-height: 20px; }
.fs-base { font-size: 16px; line-height: 24px; }
.fs-lg { font-size: 18px; line-height: 28px; }
.fs-xl { font-size: 20px; line-height: 28px; }
.fs-2xl { font-size: 24px; line-height: 32px; }
.fs-3xl { font-size: 30px; line-height: 36px; }
.fs-4xl { font-size: 36px; line-height: 40px; }
.fs-5xl { font-size: 48px; line-height: 1; }

.w-400 { font-weight: 400; }
.w-500 { font-weight: 500; }
.w-600 { font-weight: 600; }
.w-700 { font-weight: 700; }
.w-800 { font-weight: 800; }
.w-900 { font-weight: 900; }

.upper { text-transform: uppercase; }
.track { letter-spacing: 0.05em; }
.track-wide { letter-spacing: 0.1em; }
.italic { font-style: italic; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted-2); }
.text-maroon { color: var(--maroon); }
.text-gold { color: var(--gold); }
.text-amber-8 { color: var(--amber-800); }

/* --------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.main {
  flex: 1 1 auto;
}

.page-view { display: none; }
.page-view.is-active {
  display: block;
  animation: fade-in 0.2s ease-in-out forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  padding: 40px 0;
}

.section--cream { background: var(--panel); }
.section--white { background: #fff; }

.narrow { max-width: 672px; margin: 0 auto; }
.mid { max-width: 896px; margin: 0 auto; }
.page-pad { padding: 32px 16px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: 1fr; }
.grid-hero { grid-template-columns: 1fr; gap: 32px; }

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.divider-v {
  width: 1px;
  height: 56px;
  background: var(--amber-200);
  flex: none;
}

/* ------------------------------------------------------------- utility bar */

.utility-bar {
  background: var(--maroon-dark);
  color: #fff;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid rgb(229 169 29 / 0.2);
}

.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 0;
  padding-bottom: 0;
  font-weight: 500;
}

.utility-bar__group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.utility-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgb(245 158 11 / 0.2);
  color: var(--gold);
  border: 1px solid rgb(229 169 29 / 0.3);
  font-weight: 700;
}

.utility-bar__text { color: #E5E7EB; }
.utility-bar__divider { color: var(--faint); }
.utility-bar__link {
  color: #D1D5DB;
  font-size: 11px;
}
.utility-bar__link:hover { color: var(--gold); }

.tricolor-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tricolor-chip {
  width: 10px;
  height: 6px;
  border-radius: 2px;
  display: inline-block;
}
.tricolor-chip--saffron { background: var(--saffron); }
.tricolor-chip--white { background: #fff; }
.tricolor-chip--green { background: var(--india-green); }
.tricolor-chips__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  margin-left: 4px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  background: #fff;
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand__emblem {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--maroon);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
  padding: 10px;
  flex: none;
}
.brand__emblem svg { width: 100%; height: 100%; }

.brand__text { display: flex; flex-direction: column; }

.brand__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--maroon);
}
.brand__name-en {
  display: block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
}
.brand__tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--amber-800);
  letter-spacing: 0.05em;
  font-style: italic;
  margin-top: 2px;
}
.brand__tagline-strong {
  color: var(--maroon);
  font-weight: 700;
  text-decoration: underline;
}

.site-header__slogan {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  border-left: 2px solid var(--amber-100);
  padding-left: 24px;
  gap: 8px;
}
.site-header__slogan-text { text-align: right; }
.site-header__slogan-strong {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--maroon);
}
.site-header__slogan-soft {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
  font-style: italic;
}
.tricolor-ribbon {
  width: 8px;
  height: 32px;
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.tricolor-ribbon span { flex: 1 1 33.33%; display: block; }
.tricolor-ribbon__saffron { background: var(--saffron); }
.tricolor-ribbon__white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tricolor-ribbon__green { background: var(--india-green); }

/* --------------------------------------------------------------- main nav */

.site-nav {
  background: var(--maroon);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid rgb(229 169 29 / 0.4);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 8px;
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.site-nav__links--mobile {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding-top: 4px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.site-nav__links--mobile::-webkit-scrollbar { display: none; }

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: #F3F4F6;
  font-weight: 500;
  transition: color .15s ease, background-color .15s ease;
}
.nav-tab--mobile { padding: 6px 10px; font-size: 12px; border-radius: var(--radius-sm); }
.nav-tab:hover { color: var(--gold); background: rgb(88 9 11 / 0.4); }
.nav-tab.is-active {
  background: var(--maroon-dark);
  color: var(--gold);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold), #FCD34D);
  color: var(--maroon-dark);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  border: 1px solid #FDE68A;
  box-shadow: var(--shadow-md);
  flex: none;
  transition: all .3s ease;
}
.btn-register:hover {
  background: linear-gradient(90deg, #FCD34D, var(--gold));
  box-shadow: var(--shadow-lg);
}
.btn-register__pulse {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--maroon);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.version-chip {
  display: none;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  background: rgb(88 9 11 / 0.6);
  color: rgb(253 230 138 / 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgb(229 169 29 / 0.2);
  flex: none;
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: #fff;
  border-bottom: 1px solid rgb(253 230 138 / 0.7);
  overflow: hidden;
  padding: 32px 0;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--maroon) 0.75px, transparent 0.75px);
  background-size: 12px 12px;
  opacity: .05;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 10;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.pill--gold {
  background: var(--gold-light);
  border: 1px solid var(--amber-300);
  color: var(--maroon);
}
.pill--maroon {
  background: var(--maroon);
  color: var(--gold);
  border: 1px solid rgb(229 169 29 / 0.4);
}
.pill--amber {
  background: var(--amber-100);
  color: var(--maroon);
  border: 1px solid var(--amber-300);
}
.pill--red {
  background: var(--red-100);
  color: var(--red-800);
  border: 1px solid var(--red-200);
}
.pill--soft {
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  color: #fff;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--maroon);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  border: 1px solid rgb(229 169 29 / 0.4);
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.pill-link:hover { background: var(--maroon-dark); color: #fff; }
.pill-link__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gold);
}
.pill-link:hover .pill-link__dot { background: #fff; }

.hero__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  color: var(--maroon);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero__title-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-strong);
  margin-top: 4px;
}
.hero__lead {
  font-size: 16px;
  font-weight: 700;
  color: var(--amber-800);
  letter-spacing: 0.025em;
}
.hero__body {
  color: #374151;
  font-size: 12px;
  line-height: 1.65;
}

.stat-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--amber-100);
  border-bottom: 1px solid var(--amber-100);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 900;
  color: var(--maroon);
  letter-spacing: -0.05em;
  display: flex;
  align-items: baseline;
}
.stat-number__plus {
  font-family: var(--font-sans);
  font-size: 28px;
  color: var(--gold);
  margin-left: 2px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-top: 4px;
}
.stat-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 384px;
}

/* ------------------------------------------------------------------ cards */

.card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.card--grad {
  background: linear-gradient(135deg, var(--card-grad-a), var(--card-grad-b));
  border: 1px solid var(--amber-200);
}
.card__body { padding: 16px; }

.milestone-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.milestone-card__year {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--maroon);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  flex: none;
}
.milestone-card h4 { font-size: 12px; font-weight: 700; color: var(--ink-strong); }
.milestone-card p { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* --------------------------------------------------------------- hero media */

.media-frame {
  background: linear-gradient(180deg, #FFFBEB, #fff);
  padding: 10px;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--amber-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.media-frame__stage {
  position: relative;
  height: 256px;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #292524;
}
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  transition: mix-blend-mode .7s ease, transform .7s ease;
}
.media-frame:hover .media-frame__img {
  mix-blend-mode: normal;
  transform: scale(1.05);
}
.media-frame__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(88 9 11 / 0) 40%, rgb(88 9 11 / 0.4) 65%, var(--maroon-dark) 100%);
}
.media-frame__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgb(255 255 255 / 0.9);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--amber-300);
  box-shadow: var(--shadow-md);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon);
  backdrop-filter: blur(4px);
}
.media-frame__live {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--emerald-600);
  animation: pulse 2s infinite;
}
.media-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.media-frame__rule { width: 40px; height: 4px; border-radius: var(--radius-full); background: var(--gold); }
.media-frame__caption h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
}
.media-frame__caption p {
  font-size: 12px;
  font-weight: 500;
  color: rgb(253 230 138);
}
.media-frame__caption small {
  font-size: 11px;
  color: #D1D5DB;
  line-height: 1.5;
}
.media-meta {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--amber-50);
  border: 1px solid rgb(253 230 138 / 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--maroon);
  font-weight: 600;
}
.media-meta strong { color: var(--gold-hover); }

/* --------------------------------------------------------------- section head */

.section-head {
  max-width: 768px;
  margin: 0 auto 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  color: var(--ink-strong);
  line-height: 1.25;
}
.section-lead {
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon);
}
.section-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.section-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  font-weight: 600;
  color: #7C2D12;
  letter-spacing: 0.025em;
}

/* ------------------------------------------------------------- pillar cards */

.pillar-card {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(253 230 138 / 0.8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.pillar-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgb(123 17 19 / 0.4);
}
.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--amber-50);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--amber-200);
  transition: background-color .2s ease, color .2s ease;
}
.pillar-card:hover .pillar-icon { background: var(--maroon); color: var(--gold); }
.pillar-card h3 { font-size: 14px; font-weight: 700; color: var(--ink-strong); margin-bottom: 6px; }
.pillar-card p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.pillar-foot {
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-800);
}

.hero__left { gap: 16px; }

.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 176px;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo-card:hover img { transform: scale(1.05); }
.photo-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 20%, rgb(0 0 0 / 0.2) 60%, rgb(0 0 0 / 0.8) 100%);
}
.photo-card__label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
}
.photo-card__label span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  display: block;
}
.photo-card__label p { font-size: 12px; font-weight: 600; }

/* ------------------------------------------------------------- workflow steps */

.values-badge {
  background: linear-gradient(90deg, var(--maroon-dark), var(--maroon));
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold);
  color: #fff;
  box-shadow: var(--shadow-md);
  flex: none;
}
.values-badge__head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #FCD34D;
  margin-bottom: 6px;
}
.values-badge__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
}
.values-badge__dot { color: #FCD34D; }
.values-badge__nation { color: var(--gold); }

.step-card {
  position: relative;
  background: var(--card-grad-a);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 2px solid rgb(253 230 138 / 0.9);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color .2s ease;
}
.step-card:hover { border-color: var(--maroon); }
.step-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--maroon);
  color: var(--gold);
  font-weight: 900;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.phase-chip {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon);
  background: var(--gold-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--amber-300);
}
.step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--amber-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  border: 1px solid var(--amber-200);
}
.step-card h4 { font-weight: 900; color: var(--ink-strong); font-size: 14px; }
.step-card p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.step-foot {
  padding-top: 10px;
  border-top: 1px solid rgb(254 243 199);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--amber-800);
  font-weight: 600;
}
.step-foot--green { color: var(--emerald-800); font-weight: 700; }

/* --------------------------------------------------------------- note banner */

.note-banner {
  margin-top: 24px;
  background: var(--amber-50);
  border-radius: var(--radius-lg);
  padding: 14px;
  border: 1px solid var(--amber-200);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--amber-900);
  line-height: 1.6;
}
.note-banner__icon { color: #B45309; margin-top: 2px; }
.note-banner__body { display: flex; flex-direction: column; gap: 2px; }
.note-banner__extra { display: block; margin-top: 4px; }

/* ------------------------------------------------------------ checklist card */

.checklist-card {
  background: #fff;
  border: 2px solid rgb(253 230 138 / 0.9);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.checklist-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.checklist-head__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--maroon);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: var(--shadow-md);
}
.checklist-head h3 { font-size: 20px; font-weight: 900; color: var(--ink-strong); }
.checklist-head span {
  font-size: 11px;
  font-weight: 700;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.checklist__mark {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--amber-100);
  color: var(--maroon);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}
.checklist-foot {
  padding-top: 16px;
  border-top: 1px solid rgb(254 243 199);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
}
.link-strong { font-size: 12px; font-weight: 700; color: var(--maroon); text-decoration: underline; }
.link-strong:hover { color: var(--maroon-dark); }

.hq-callout {
  margin-top: 24px;
  background: linear-gradient(90deg, var(--card-grad-b), #fff, var(--card-grad-b));
  border-radius: var(--radius-2xl);
  border: 1px solid var(--amber-200);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.hq-callout__badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--maroon);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 18px;
  flex: none;
}
.hq-callout h4 { font-size: 14px; font-weight: 700; color: var(--ink-strong); }
.hq-callout p { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
  text-align: center;
}
.btn--primary {
  background: var(--maroon);
  color: #fff;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn--primary:hover { background: var(--maroon-dark); box-shadow: var(--shadow-lg); }
.btn--gold {
  background: linear-gradient(90deg, var(--gold), #FCD34D);
  color: var(--maroon-dark);
  border-color: var(--amber-200);
  box-shadow: var(--shadow-md);
}
.btn--gold:hover { box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: var(--neutral-100);
  color: var(--slate-700);
  border-color: var(--neutral-300);
}
.btn--ghost:hover { background: var(--neutral-200); }
.btn--outline {
  background: transparent;
  color: var(--muted);
  border-color: var(--neutral-300);
}
.btn--outline:hover { background: var(--neutral-100); }
.btn--danger {
  background: var(--red-600);
  color: #fff;
  border-color: var(--red-700);
}
.btn--danger:hover { background: var(--red-700); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 28px; font-size: 14px; }
.btn[disabled], .btn.is-disabled {
  opacity: .6;
  cursor: not-allowed;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.link-plain {
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
}
.link-plain:hover { color: var(--maroon); }
.link-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
}
.link-back:hover { color: var(--maroon); }

/* ------------------------------------------------------------------ forms */

.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-700);
}
.field__required { color: var(--red-500); }
.field__help {
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 4px;
  line-height: 1.5;
}
.field-error {
  font-size: 11px;
  color: var(--red-600);
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.input-shell { position: relative; display: block; }
.input-shell__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  display: flex;
  pointer-events: none;
}
.input-shell__icon .icon { width: 16px; height: 16px; }
.input-shell__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--neutral-400);
  padding: 4px;
  display: flex;
  border-radius: var(--radius-sm);
}
.input-shell__toggle:hover { color: var(--slate-700); }
.input-shell__toggle .icon { width: 16px; height: 16px; }

.input {
  width: 100%;
  padding: 10px 12px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-xl);
  font-size: 14px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--maroon);
  background: #fff;
}
.input--padded { padding-left: 40px; padding-right: 40px; }
.input--phone { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.select {
  appearance: none;
  background-image: none;
}
.phone-group { display: flex; }
.phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  border: 1px solid var(--neutral-300);
  border-right: 0;
  background: var(--neutral-100);
  color: var(--slate-700);
  font-weight: 700;
  font-size: 12px;
}
.form-error {
  font-size: 12px;
  color: var(--red-600);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  border: 1px solid transparent;
}
.alert + .alert { margin-top: 8px; }
.alert--error { background: var(--red-100); color: var(--red-800); border-color: var(--red-200); }
.alert--success { background: var(--emerald-50); color: var(--emerald-800); border-color: var(--emerald-200); }
.alert--warning { background: var(--amber-50); color: var(--amber-900); border-color: var(--amber-200); }
.alert--info { background: var(--neutral-100); color: var(--slate-700); border-color: var(--neutral-200); }

/* ------------------------------------------------------------- gateway card */

.gateway-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gateway-wrap {
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gateway {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px var(--neutral-200) solid;
  box-shadow: var(--shadow-xl);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gateway__emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--radius-full);
  background: var(--maroon);
  color: var(--gold);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}
.gateway__badge {
  display: inline-block;
  background: #FFF8E7;
  color: var(--maroon);
  border: 1px solid rgb(229 169 29 / 0.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.gateway__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}
.gateway__text {
  font-size: 12px;
  color: var(--slate-500);
  margin-bottom: 20px;
}
.gateway__form { display: flex; flex-direction: column; gap: 16px; }
.gateway__foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #94A3B8;
}
.gateway__secure {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  flex: none;
}

/* ---------------------------------------------------------------- auth card */

.auth-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-card__banner {
  background: var(--maroon);
  color: #fff;
  padding: 24px;
  text-align: center;
  position: relative;
}
.auth-card__emblem {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: var(--radius-full);
  background: var(--maroon-dark);
  color: var(--gold);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
}
.auth-card__eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.auth-card__title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.auth-card__sub { font-size: 12px; color: rgb(255 255 255 / 0.8); margin-top: 4px; }
.auth-card__body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.auth-card__foot {
  background: var(--neutral-50);
  padding: 12px 24px;
  border-top: 1px solid var(--neutral-200);
  text-align: center;
  font-size: 11px;
  color: var(--slate-500);
}

/* ---------------------------------------------------------------- exam page */

.exam-wrap { max-width: 896px; margin: 0 auto; padding: 32px 16px; }
.exam-head {
  background: linear-gradient(90deg, var(--maroon), var(--maroon-dark));
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.exam-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.chip-gold {
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.chip-glass {
  font-size: 12px;
  color: rgb(255 255 255 / 0.7);
}
.exam-head h2 { font-size: 20px; font-weight: 700; }
.exam-head p { font-size: 12px; color: rgb(255 255 255 / 0.8); margin-top: 2px; }

.timer-box {
  background: rgb(0 0 0 / 0.2);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  text-align: right;
  min-width: 168px;
}
.timer-box__label {
  font-size: 11px;
  color: rgb(255 255 255 / 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.timer-box__value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.timer-box.is-critical .timer-box__value { color: #FCA5A5; }
.timer-box__meta { font-size: 11px; color: rgb(255 255 255 / 0.7); }

.question-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.question-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.question-badge {
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}
.question-marks { font-size: 12px; color: var(--slate-500); font-weight: 600; }
.question-text { font-weight: 700; color: var(--slate-900); font-size: 16px; line-height: 1.45; }

.choices { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.choice:hover { background: var(--neutral-50); }
.choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--maroon);
  flex: none;
}
.choice span { font-size: 14px; font-weight: 500; color: var(--slate-700); }
.choice.is-selected { border-color: var(--maroon); background: var(--gold-light); }

.exam-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
}
.exam-progress__bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--neutral-200);
  overflow: hidden;
  flex: 1 1 160px;
}
.exam-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  width: 0;
  transition: width .2s ease;
}

/* --------------------------------------------------------------- merit page */

.merit-wrap { max-width: 1280px; margin: 0 auto; padding: 32px 16px; }
.merit-head {
  background: linear-gradient(90deg, var(--maroon), var(--maroon-dark));
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.merit-head__body { display: flex; flex-direction: column; gap: 6px; }
.merit-head__badge {
  background: #FFF8E7;
  color: var(--maroon);
  border: 1px solid rgb(229 169 29 / 0.5);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #10B981;
  flex: none;
}
.merit-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.merit-head p { font-size: 12px; color: rgb(255 255 255 / 0.8); max-width: 672px; }
.merit-date {
  background: rgb(0 0 0 / 0.2);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  text-align: right;
}
.merit-date__label {
  font-size: 11px;
  color: rgb(255 255 255 / 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.merit-date__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.merit-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.merit-card__head {
  padding: 20px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.merit-card__title {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.merit-card__sub { font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.count-chip {
  font-size: 12px;
  font-weight: 700;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.data-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.data-table thead tr {
  background: var(--maroon-dark);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.data-table th { padding: 14px 24px; font-weight: inherit; }
.data-table tbody tr { border-bottom: 1px solid var(--neutral-100); }
.data-table tbody tr:hover { background: rgb(255 251 235 / 0.4); }
.data-table td { padding: 16px 24px; vertical-align: middle; }
.data-table--compact th,
.data-table--compact td { padding: 10px 12px; font-size: 12px; }
.col-rank { width: 112px; }
.col-photo { width: 128px; }

.rank-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--slate-400);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.rank-badge--1 { background: var(--gold); }
.rank-badge--2 { background: var(--slate-400); }
.rank-badge--3 { background: #B45309; }
.rank-badge--other { background: var(--neutral-200); color: var(--slate-700); }

.photo-thumb {
  width: 56px;
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-300);
  overflow: hidden;
  background: var(--neutral-100);
  box-shadow: var(--shadow-sm);
}
.photo-thumb--first { border: 2px solid var(--gold); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb__empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
}

.candidate-name { font-weight: 700; color: var(--slate-900); font-size: 16px; }
.dept-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--amber-50);
  color: var(--amber-900);
  border: 1px solid var(--amber-200);
}
.merit-card__foot {
  padding: 16px;
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-200);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--slate-700); }
.empty-state p { font-size: 12px; max-width: 420px; }

/* ---------------------------------------------------------- standalone page */

.page-standalone {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page);
  font-family: var(--font-sans);
  padding: 16px;
}
.standalone-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  max-width: 448px;
  text-align: center;
}
.standalone-emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--radius-full);
  background: var(--maroon);
  color: var(--gold);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.standalone-card h1 { font-size: 20px; font-weight: 800; color: var(--slate-900); margin-bottom: 8px; }
.standalone-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.standalone-links { margin-top: 16px; }
.standalone-links a { font-weight: 700; color: var(--maroon); }
.standalone-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 11px;
  color: var(--faint);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--maroon-dark);
  color: #fff;
  position: relative;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 32px;
  margin-top: 1rem;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col--brand { gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand__emblem {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border: 2px solid var(--gold);
  flex: none;
}
.footer-brand__emblem svg { width: 100%; height: 100%; }
.footer-brand__text { display: flex; flex-direction: column; }
.footer-brand__name {
  font-family: var(--font-serif);
  font-weight: 900;
  color: #fff;
  font-size: 16px;
  display: block;
}
.footer-brand__en {
  font-weight: 700;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-tagline { font-size: 12px; color: rgb(253 230 138 / 0.85); font-style: italic; }
.footer-text { font-size: 12px; color: #E7DED4; line-height: 1.65; }
.footer-text--muted { color: #C7B6AE; }
.footer-label { color: var(--gold); font-weight: 700; }
.footer-email { color: var(--gold); font-weight: 600; }
.footer-email:hover { color: #fff; text-decoration: underline; }
.footer-title {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  border-bottom: 1px solid rgb(245 158 11 / 0.25);
  padding-bottom: 8px;
}
.footer-link-card {
  display: block;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: rgb(123 17 19 / 0.55);
  border: 1px solid rgb(229 169 29 / 0.35);
  transition: border-color .2s ease, background-color .2s ease;
}
.footer-link-card:hover {
  border-color: var(--gold);
  background: rgb(123 17 19 / 0.8);
}
.footer-link-card__label {
  font-size: 10px;
  color: #E7DED4;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: block;
}
.footer-link-card__value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}
.footer-link-card__value .icon { color: var(--gold); }
.footer-bottom {
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-bottom__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}
.footer-copyright { font-size: 12px; color: #E7DED4; line-height: 1.5; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.footer-legal a { color: #E7DED4; }
.footer-legal a:hover { color: var(--gold); text-decoration: underline; }
.footer-legal span { color: #A98A84; }
.footer-disclaimer {
  font-size: 10.5px;
  color: #BFA9A3;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- responsive */

@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .section { padding: 56px 0; }
  .grid { gap: 16px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 0; }
  .hero__title { font-size: 36px; }
  .hero__title-sub { font-size: 30px; }
  .hero__body { font-size: 14px; }
  .stat-showcase { flex-direction: row; align-items: center; gap: 24px; }
  .stat-number { font-size: 48px; }
  .stat-number__plus { font-size: 36px; }
  .milestone-card h4, .step-card h4 { font-size: 14px; }
  .section-title { font-size: 30px; }
  .pillar-card { padding: 20px; }
  .pillar-icon { width: 48px; height: 48px; }
  .pillar-card h3 { font-size: 16px; }
  .photo-card { height: 192px; }
  .step-card { padding: 20px; }
  .step-num { width: 40px; height: 40px; font-size: 14px; }
  .media-frame { padding: 12px; }
  .media-frame__stage { height: 320px; }
  .btn-register { padding: 6px 16px; font-size: 12px; }
  .version-chip { display: inline-flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .merit-head h2 { font-size: 30px; }
  .merit-head p { font-size: 14px; }
  .exam-head h2 { font-size: 24px; }
  .checklist li { font-size: 14px; }
  .note-banner { padding: 16px; gap: 12px; font-size: 14px; }
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .site-header__top { flex-direction: row; }
  .site-nav__links { display: flex; }
  .site-nav__links--mobile { display: none; }
  .nav-tab--desktop { padding: 8px 16px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .pillar-card--wide { grid-column: span 2; }
  .step-card--wide { grid-column: span 2; }
  .media-frame__stage { height: 384px; }
  .hq-callout { flex-direction: row; }
  .btn-register { gap: 12px; }
}

@media (min-width: 1024px) {
  .grid-hero { grid-template-columns: repeat(12, 1fr); align-items: center; gap: 48px; }
  .hero__left { grid-column: span 7; }
  .hero__right { grid-column: span 5; }
  .site-header__slogan { display: flex; }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .pillar-card--wide, .step-card--wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1.05fr 1.15fr 1.45fr 1.2fr; }
  .hero { padding: 56px 0; }
  .hero__title { font-size: 48px; }
  .hero__title-sub { font-size: 36px; }
  .hero__body { font-size: 16px; }
  .section-title { font-size: 36px; }
  .media-frame__stage { height: 420px; }
  .photo-card { height: 208px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   Stage 2 - public page components
   ===================================================================== */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cta-note {
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.5;
}

.form-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}

.form-card__banner {
  position: relative;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-dark));
  color: #fff;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}
.form-card__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff 0.75px, transparent 0.75px);
  background-size: 10px 10px;
  opacity: .06;
  pointer-events: none;
}
.form-card__eyebrow {
  position: relative;
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.form-card__title {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.form-card__sub {
  position: relative;
  font-size: 12px;
  color: rgb(255 255 255 / 0.8);
  margin-top: 4px;
}

.form-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-divider {
  height: 1px;
  background: var(--line-2);
}

.form-card__foot {
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-200);
  padding: 12px 24px;
  text-align: center;
  font-size: 11px;
  color: var(--slate-500);
}

.success-panel,
.status-panel {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--neutral-200);
}
.success-panel { border-color: var(--emerald-200); }
.status-panel--warn { border-color: var(--amber-200); }

.success-icon,
.status-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid transparent;
}
.success-icon {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border-color: var(--emerald-200);
}
.status-icon {
  background: var(--amber-50);
  color: var(--amber-700);
  border-color: var(--amber-200);
}
.success-icon .icon,
.status-icon .icon { width: 28px; height: 28px; }

.success-title,
.status-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}
.success-text,
.status-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
  text-align: left;
}
.summary-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--neutral-50);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 12px;
}
.summary-item dt { color: var(--muted-2); font-weight: 600; }
.summary-item dd { margin: 0; font-weight: 700; color: var(--ink-strong); text-align: right; }

.exam-identity { max-width: 540px; margin: 0 auto; }

.exam-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.exam-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--amber-900);
  font-weight: 600;
  line-height: 1.5;
}
.exam-notice .icon { color: var(--amber-700); margin-top: 2px; }

.merit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.media-frame--hero .media-frame__stage { height: 224px; }

@media (min-width: 640px) {
  .form-card__body { padding: 28px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid--full { grid-column: 1 / -1; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .media-frame--hero .media-frame__stage { height: 320px; }
  .success-title, .status-title { font-size: 24px; }
}

@media (min-width: 1024px) {
  .media-frame--hero .media-frame__stage { height: 380px; }
}
/* Layout helpers used by the public pages (no inline styles anywhere). */
.media-grid { margin-top: 18px; }
.row--center { justify-content: center; }
.values-row { justify-content: center; margin-bottom: 20px; }
.grid--top { align-items: start; }
.col--roomy { gap: 16px; }
.section-head--compact {
  margin: 0;
  text-align: left;
  align-items: flex-start;
}
.summary-grid--tight { margin-top: 0; }
.cta-row {
  justify-content: center;
  margin-top: 24px;
}
/* =====================================================================
   Stage 3 - Admin panel
   ===================================================================== */

.admin-body {
  background: var(--page);
}

.admin-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--maroon-dark), #3F0608);
  color: #fff;
  padding: 16px;
  border-bottom: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.admin-brand__emblem {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--maroon);
  color: var(--gold);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex: none;
}
.admin-brand__name { font-family: var(--font-serif); font-weight: 900; font-size: 15px; line-height: 1.2; }
.admin-brand__sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.admin-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.admin-nav::-webkit-scrollbar { display: none; }

.admin-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: transparent;
  color: #E5E7EB;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  text-align: left;
}
.admin-nav__link:hover { background: rgb(255 255 255 / 0.07); color: var(--gold); }
.admin-nav__link.is-active {
  background: rgb(229 169 29 / 0.15);
  border-color: rgb(229 169 29 / 0.45);
  color: var(--gold);
  font-weight: 700;
}
.admin-nav__link .icon { color: inherit; }

.admin-sidebar__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #D1D5DB;
  border-top: 1px solid rgb(229 169 29 / 0.25);
  padding-top: 12px;
}
.admin-sidebar__user strong { color: var(--gold); }
.admin-sidebar__note { font-size: 10px; color: var(--faint); line-height: 1.5; }

.admin-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--neutral-200);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-topbar__title { font-size: 18px; font-weight: 800; color: var(--ink-strong); letter-spacing: -0.01em; }
.admin-topbar__sub { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.admin-topbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.admin-content {
  padding: 20px 16px 32px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--neutral-200);
  background: #fff;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-tile {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-tile__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-tile__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--amber-50);
  color: var(--maroon);
  border: 1px solid var(--amber-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.stat-tile__value {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--maroon);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-tile__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); }
.stat-tile__meta { font-size: 11px; color: var(--muted); }
.stat-tile--gold { border-color: var(--amber-300); background: linear-gradient(180deg, #FFFDF7, #FFF8E7); }
.stat-tile--green .stat-tile__icon { background: var(--emerald-50); color: var(--emerald-700); border-color: var(--emerald-200); }

.panel {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--neutral-50);
}
.panel__title { font-size: 14px; font-weight: 800; color: var(--ink-strong); display: flex; align-items: center; gap: 8px; }
.panel__sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.panel__body { padding: 16px; }
.panel__body--flush { padding: 0; }
.panel__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  font-size: 11px;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel__link { font-size: 12px; font-weight: 700; color: var(--maroon); }
.panel__link:hover { text-decoration: underline; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--neutral-200);
  background: #fff;
}
.filter-bar__field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 180px; }
.filter-bar__field label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.filter-bar .input { padding: 8px 10px; border-radius: var(--radius); font-size: 13px; }
.filter-bar .btn { padding: 9px 14px; border-radius: var(--radius); }

.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.admin-table thead tr {
  background: var(--maroon-dark);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-table th { padding: 10px 14px; font-weight: 700; white-space: nowrap; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.admin-table tbody tr:hover { background: var(--amber-50); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.table-actions .btn { padding: 5px 10px; font-size: 11px; border-radius: var(--radius-sm); }
.muted-cell { color: var(--muted-2); font-size: 11px; }
.cell-strong { font-weight: 700; color: var(--ink-strong); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--ok { background: var(--emerald-50); color: var(--emerald-800); border-color: var(--emerald-200); }
.badge--warn { background: var(--amber-50); color: var(--amber-900); border-color: var(--amber-200); }
.badge--off { background: var(--neutral-100); color: var(--slate-500); border-color: var(--neutral-300); }
.badge--info { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.badge--danger { background: var(--red-100); color: var(--red-800); border-color: var(--red-200); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.detail-item {
  background: var(--neutral-50);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.detail-item dt {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.detail-item dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
  word-break: break-word;
}

.answer-subhead { margin: 16px 0 8px; font-weight: 700; }\n\n.answer-list { display: flex; flex-direction: column; gap: 8px; }
.answer-row {
  border: 1px solid var(--line);
  border-left: 4px solid var(--neutral-300);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
}
.answer-row--correct { border-left-color: var(--emerald-600); background: #F7FEFB; }
.answer-row--wrong { border-left-color: var(--red-500); background: #FFFBFB; }
.answer-row--blank { border-left-color: var(--amber-500); background: #FFFDF5; }
.answer-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.answer-row__question { font-size: 13px; font-weight: 700; color: var(--ink-strong); margin: 6px 0 6px; line-height: 1.45; }
.answer-row__options { display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 12px; color: var(--muted); }
.answer-row__option { padding: 2px 0; }
.answer-row__option.is-key { color: var(--emerald-800); font-weight: 700; }
.answer-row__option.is-chosen { color: var(--maroon); font-weight: 700; }
.answer-row__foot { margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--muted-2); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  font-size: 12px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-300);
  background: #fff;
  color: var(--slate-700);
  font-weight: 600;
  font-size: 12px;
}
.page-btn:hover { border-color: var(--maroon); color: var(--maroon); }
.page-btn.is-current { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.page-btn.is-disabled { opacity: .45; pointer-events: none; }
.pagination__info { margin-left: auto; color: var(--muted-2); font-size: 11px; }

.photo-preview {
  width: 96px;
  height: 112px;
  border-radius: var(--radius);
  border: 2px solid var(--amber-300);
  overflow: hidden;
  background: var(--neutral-100);
  box-shadow: var(--shadow-sm);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview__empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--neutral-400); }

.photo-crop {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius);
  background: var(--neutral-50);
}
.photo-crop[hidden] { display: none; }
.photo-crop__viewport {
  position: relative;
  width: 180px;
  height: 240px;
  flex: none;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 2px solid var(--maroon);
  background: var(--neutral-200);
  touch-action: none;
  cursor: move;
  user-select: none;
}
.photo-crop__viewport img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
}
.photo-crop__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.2%, rgb(255 255 255 / 0.45) 33.2%, rgb(255 255 255 / 0.45) 33.8%, transparent 33.8%,
      transparent 66.2%, rgb(255 255 255 / 0.45) 66.2%, rgb(255 255 255 / 0.45) 66.8%, transparent 66.8%),
    linear-gradient(to bottom, transparent 33.2%, rgb(255 255 255 / 0.45) 33.2%, rgb(255 255 255 / 0.45) 33.8%, transparent 33.8%,
      transparent 66.2%, rgb(255 255 255 / 0.45) 66.2%, rgb(255 255 255 / 0.45) 66.8%, transparent 66.8%);
}
.photo-crop__controls {
  flex: 1 1 180px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.photo-crop__zoom { width: 100%; accent-color: var(--maroon); }

.thumb-sm {
  width: 40px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-300);
  overflow: hidden;
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
}
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--line-2);
  margin-top: 4px;
}
.form-actions__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.danger-zone {
  border: 1px solid var(--red-200);
  background: #FFF7F7;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.danger-zone h4 { font-size: 13px; font-weight: 800; color: var(--red-800); }
.danger-zone p { font-size: 11px; color: var(--red-700); margin-top: 2px; }

.audit-list { display: flex; flex-direction: column; gap: 6px; }
.audit-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--neutral-50);
  border: 1px solid var(--line-2);
  font-size: 11px;
}
.audit-item__action { font-weight: 700; color: var(--ink-strong); }
.audit-item__meta { color: var(--muted-2); }

.inline-form { display: inline-flex; margin: 0; }

.admin-login-wrap {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.admin-login-card { width: 100%; max-width: 430px; }

@media (min-width: 640px) {
  .admin-content { padding: 24px 24px 40px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-tile__value { font-size: 30px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .answer-row__options { grid-template-columns: repeat(2, 1fr); }
  .admin-topbar { padding: 18px 24px; }
}

@media (min-width: 1024px) {
  .admin-shell { flex-direction: row; }
  .admin-sidebar {
    width: 248px;
    flex: none;
    position: sticky;
    top: 0;
    height: 100vh;
    border-bottom: 0;
    border-right: 3px solid var(--gold);
    overflow-y: auto;
  }
  .admin-nav { flex-direction: column; overflow: visible; }
  .admin-nav__link { width: 100%; }
  .admin-sidebar__foot { margin-top: auto; }
  .admin-content { padding: 28px 32px 48px; }
  .admin-topbar__title { font-size: 20px; }
}
/* ------------------------------------------------- home design refinements */

.hero__stat-note {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.guidance-card {
  max-width: 896px;
  margin: 0 auto;
}

.hq-callout--wide { margin-top: 24px; }

/* .page-view.is-active sets display:block and outranks .gateway-section,
   so restore the centred password card explicitly. */
.gateway-section.page-view.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .site-nav__actions .btn-register { display: none; }
}
