/* ============================================================
   Aptra — main stylesheet
   Palette: deep green, off-white, restrained wine (burgundy).
   --wine is the accent on light backgrounds; --wine-light is the
   accent on dark green backgrounds (AA contrast).
   Fonts: Source Serif 4 (display), Inter (body) — self-hosted.
   ============================================================ */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0B3D2E;
  --green-deep: #08291F;
  --green-soft: #14523C;
  --wine: #7D2A3C;
  --wine-strong: #5E1F2E;
  --wine-light: #D9899A;
  --offwhite: #F7F5F0;
  --white: #FFFFFF;
  --ink: #1A2A23;
  --ink-soft: #48584F;
  --line: #E3DFD5;
  --line-on-green: #2E5D4B;
  --tint: #EEEDE4;
  --error: #A4342C;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 6px;
  --container: 1120px;
  --shadow: 0 1px 2px rgba(8, 41, 31, 0.06), 0 8px 24px rgba(8, 41, 31, 0.07);
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--green);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--green-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-strong); }

img, svg { max-width: 100%; }

ul, ol { padding-inline-start: 1.3em; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-soft); color: var(--white); }

/* legacy class name; renders as the wine accent button */
.btn-gold { background: var(--wine); color: var(--white); }
.btn-gold:hover { background: #96384C; color: var(--white); }

.btn-outline-light { border-color: var(--line-on-green); color: var(--offwhite); background: transparent; }
.btn-outline-light:hover { border-color: var(--wine-light); color: var(--wine-light); }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

.btn[disabled] { opacity: 0.6; cursor: default; }

.text-link {
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--wine);
  padding-bottom: 1px;
}
.text-link:hover { color: var(--wine-strong); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6rem;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark { width: 40px; height: 40px; flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green);
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav ul a:hover { color: var(--green); border-bottom-color: var(--wine); }
.site-nav ul a[aria-current="page"] {
  color: var(--wine);
  font-weight: 600;
  border-bottom-color: var(--wine);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  padding-block: 9px;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--wine-strong); text-decoration: underline; }
.crumb-sep { color: var(--line); margin-inline: 8px; }
.breadcrumbs [aria-current="page"] { color: var(--green); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(150deg, var(--green-deep) 0%, var(--green) 55%, var(--green-soft) 100%);
  color: var(--offwhite);
  overflow: hidden;
}

.hero-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-motif svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
  max-width: 820px;
  margin-inline-start: max(24px, calc((100% - var(--container)) / 2));
  padding-inline-end: 24px;
}

.hero-wide .hero-inner { padding-block: clamp(80px, 11vw, 150px); }

.hero h1 { color: var(--white); margin-bottom: 0.45em; }

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #C6D6CD;
  max-width: 640px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 1.1em;
}

/* on dark green, the wine accent needs its light variant for AA contrast */
.hero .eyebrow,
.band-cta .eyebrow { color: var(--wine-light); }

/* ---------- Hero carousel ---------- */

.hero-carousel-inner {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
}

.hero-wide .hero-carousel-inner { padding-block: clamp(64px, 9vw, 120px); }

.carousel-slides {
  display: grid;
  overflow: hidden;
}

.carousel-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(80px);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.carousel-slide.exiting {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-80px);
}

.slide-text h1 { margin-bottom: 0.45em; }

.slide-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 0.45em;
}

.slide-text .lede { max-width: 560px; }

.slide-media { justify-self: center; }
.slide-media img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.carousel-dots {
  display: flex;
  gap: 10px;
  margin-top: 2.6rem;
}

.carousel-dot {
  position: relative;
  overflow: hidden;
  width: 44px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--line-on-green);
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-dot:hover { background: #4E7D6B; }

/* The active dot fills with gold over the slide interval, making the
   auto-rotation visible. Duration mirrors INTERVAL in main.js. */
.carousel-dot.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wine-light);
  transform-origin: left;
  animation: dot-progress 7s linear forwards;
}

.hero-carousel.paused .carousel-dot.active::after {
  animation-play-state: paused;
}

@keyframes dot-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .carousel-slide.exiting { transition: none; transform: none; }
  .carousel-dot.active::after { animation: none; transform: none; }
}

@media (max-width: 900px) {
  .carousel-slide { grid-template-columns: 1fr; }
  .slide-media { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 7vw, 96px); }

.section-tinted { background: var(--tint); }

.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head .eyebrow { margin-bottom: 0.8em; }
.section-intro { color: var(--ink-soft); font-size: 1.05rem; }

.footnote {
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-inline-start: 3px solid var(--wine);
  padding-inline-start: 14px;
  margin-top: 2rem;
  max-width: 720px;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--wine);
  border-radius: var(--radius);
  padding: 28px 26px 20px;
  box-shadow: var(--shadow);
}

.step-number {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wine-strong);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.step h3 { margin-bottom: 0.4em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 28px;
}
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.card .text-link { align-self: flex-start; margin-top: 4px; }

.card-audience { border-top: 3px solid var(--green); }

/* ---------- Credibility strip ---------- */

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.credibility-item {
  padding: 28px 26px;
  border-inline-start: 1px solid var(--line);
}
.credibility-item:first-child { border-inline-start: 0; }
.credibility-item h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.credibility-item p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Standard page ---------- */

.doc-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--wine);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.doc-note-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine-strong);
  margin-bottom: 0.5em;
}
.doc-note p:last-child { margin: 0; }

.pillars { display: grid; gap: 24px; }

.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 24px;
  box-shadow: var(--shadow);
}

.pillar-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pillar-number {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--wine-light);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius);
}

.pillar-head h3 { margin-bottom: 0.2em; }
.pillar-summary { margin: 0; color: var(--ink-soft); }

.pillar-points {
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 28px;
}
.pillar-points li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.pillar-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--wine);
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
}

.faq-item summary {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-inline-end: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--wine-strong);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* ---------- Band CTA ---------- */

.band-cta {
  background: linear-gradient(150deg, var(--green-deep), var(--green));
  color: var(--offwhite);
  padding-block: clamp(56px, 7vw, 88px);
  text-align: center;
}
.band-cta h2 { color: var(--white); max-width: 640px; margin-inline: auto; }
.band-cta p { color: #C6D6CD; max-width: 560px; margin-inline: auto; }
.band-cta .cta-row { justify-content: center; }
.cta-email-line { font-size: 0.92rem; margin-top: 1.2rem; }
.band-cta .cta-email-line a { color: var(--wine-light); }

/* ---------- Forms ---------- */

.form { max-width: 760px; }

.form-hint { color: var(--ink-soft); font-size: 0.92rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-bottom: 26px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }

.form-field label { font-weight: 600; font-size: 0.92rem; color: var(--green); }
.req { color: var(--wine-strong); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #CBC6B9;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea { border-color: var(--error); }

.field-error { color: var(--error); font-size: 0.85rem; margin: 0; }

.form-status { margin-top: 20px; }
.form-status .status-box {
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.97rem;
}
.form-status .status-success {
  background: #EAF2E8;
  border: 1px solid #B9D2B2;
  color: #274D1F;
}
.form-status .status-error {
  background: #F6E9E7;
  border: 1px solid #DDB6B1;
  color: #6E2721;
}
.form-status .status-box p { margin: 0; }
.form-status .status-box p + p { margin-top: 6px; }

/* ---------- Student account ---------- */

.btn-block { display: block; width: 100%; text-align: center; }

.btn-outline-navy {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--green); color: var(--white); }

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 64px;
  align-items: start;
}
.auth-layout-single {
  grid-template-columns: minmax(320px, 440px);
  justify-content: center;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--wine);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow);
}

.auth-card h1 { font-size: 1.7rem; margin-bottom: 0.4em; }

.auth-form { display: grid; gap: 16px; margin-top: 18px; }

.auth-switch { font-size: 0.92rem; margin: 14px 0 0; text-align: center; }

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 14px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid #CBC6B9;
  color: var(--ink);
  font-weight: 500;
}
.btn-oauth:hover { border-color: var(--green); color: var(--green); }
.btn-oauth svg { width: 18px; height: 18px; }

.flashes { display: grid; gap: 10px; margin: 14px 0; }
.flashes .status-box { padding: 12px 16px; font-size: 0.93rem; border-radius: var(--radius); }
.flashes .status-success { background: #EAF2E8; border: 1px solid #B9D2B2; color: #274D1F; }
.flashes .status-error { background: #F6E9E7; border: 1px solid #DDB6B1; color: #6E2721; }
.flashes p { margin: 0; }

.auth-benefits .benefit-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.auth-benefits .benefit-list li {
  border-inline-start: 3px solid var(--wine);
  padding-inline-start: 16px;
}
.auth-benefits .benefit-list h3 { font-size: 1.02rem; margin-bottom: 0.2em; }
.auth-benefits .benefit-list p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 2.2rem;
}
.dashboard-head h1 { font-size: 2rem; margin-bottom: 0.3em; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 40px;
  align-items: start;
}

.dashboard-benefits { display: grid; gap: 28px; }

.check-fieldset { border: 0; padding: 0; margin: 0; }
.check-fieldset legend {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green);
  padding: 0;
  margin-bottom: 6px;
}
.field-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 10px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px 16px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.93rem;
  cursor: pointer;
  padding: 4px 0;
}
.check-item input {
  margin-top: 3px;
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex: none;
}

.preferred-wrap { margin-top: 10px; }
.preferred-wrap input[disabled] { background: var(--tint); color: var(--ink-soft); }

.dashboard-panel h2 { font-size: 1.25rem; }
.dashboard-panel .form-grid { margin-bottom: 20px; }

.match-list { display: grid; gap: 16px; margin-top: 22px; }
.match {
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--wine);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.match-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.match-head h3 { margin: 0; font-size: 1.1rem; }
.match-score {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--wine-strong);
  white-space: nowrap;
}
.match p { margin: 6px 0 0; font-size: 0.95rem; }
.match-meta { color: var(--ink-soft); font-size: 0.88rem; }

.dashboard-profile h2 { font-size: 1.15rem; }
.dashboard-profile dl { margin: 0; }
.dashboard-profile dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 14px;
}
.dashboard-profile dd { margin: 2px 0 0; color: var(--ink); }

@media (max-width: 920px) {
  .auth-layout { grid-template-columns: 1fr; gap: 40px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-head { flex-direction: column; }
}

/* ---------- Verification portal ---------- */

.verify-form { margin-bottom: 28px; }
.verify-form > label { font-weight: 600; font-size: 0.92rem; color: var(--green); display: block; margin-bottom: 6px; }
.verify-row { display: flex; gap: 12px; flex-wrap: wrap; }
.verify-row input {
  flex: 1;
  min-width: 240px;
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 13px 16px;
  border: 1px solid #CBC6B9;
  border-radius: var(--radius);
  text-transform: uppercase;
}
.verify-row input:focus { outline: 2px solid var(--green); outline-offset: 1px; }

.verify-result {
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 28px;
}
.verify-result h2 { margin-bottom: 0.3em; font-size: 1.35rem; }
.verify-valid { background: #EAF2E8; border: 1px solid #B9D2B2; }
.verify-valid h2 { color: #274D1F; }
.verify-revoked { background: #F6E9E7; border: 1px solid #DDB6B1; }
.verify-revoked h2 { color: #6E2721; }
.verify-notfound { background: var(--tint); border: 1px solid var(--line); }

.verify-detail { margin: 14px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.verify-detail dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); align-self: center; }
.verify-detail dd { margin: 0; font-weight: 500; }

.verify-note { margin-top: 8px; }

/* ---------- Legal pages ---------- */

.legal-page h1 { margin-bottom: 0.2em; }
.legal-updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2.2rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2rem; }

.footer-links { font-size: 0.85rem; color: #8FA89C; }
.footer-links a { color: #C6D6CD; text-decoration: none; }
.footer-links a:hover { color: var(--wine-light); }

/* ---------- Administration ---------- */

.admin-actions { display: flex; gap: 10px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.stat-active { border-color: var(--wine); border-width: 2px; }
.stat-number {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}
.stat-label { font-size: 0.82rem; color: var(--ink-soft); }

.admin-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-filter input[type="search"] {
  flex: 1;
  min-width: 240px;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid #CBC6B9;
  border-radius: var(--radius);
}
.admin-filter select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid #CBC6B9;
  border-radius: var(--radius);
  background: var(--white);
}

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th {
  text-align: start;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.table-sub { font-size: 0.82rem; color: var(--ink-soft); }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-flag-new { background: #E8F0EC; color: var(--green-soft); }
.badge-flag-serious { background: #EAF2E8; color: #274D1F; }
.badge-flag-watch { background: #F7EFD9; color: #6B5416; }
.badge-flag-inactive { background: #EEECE7; color: var(--ink-soft); }
.badge-received { background: #E8F0EC; color: var(--green-soft); }
.badge-under_review { background: #F7EFD9; color: #6B5416; }
.badge-shortlisted { background: #E9E4F5; color: #3E2F73; }
.badge-awarded { background: #EAF2E8; color: #274D1F; }
.badge-declined { background: #EEECE7; color: var(--ink-soft); }

.app-detail dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 12px;
}
.app-detail dd { margin: 2px 0 0; }

.status-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.status-row select,
.status-row input[type="text"] {
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 8px 12px;
  border: 1px solid #CBC6B9;
  border-radius: var(--radius);
  background: var(--white);
}
.status-row input[type="text"] { flex: 1; min-width: 180px; }

.applications { display: grid; gap: 20px; }

.danger-panel { border-inline-start: 3px solid var(--error); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #8A2B24; color: var(--white); }

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 56px;
  align-items: start;
}

.contact-channels ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-channels li {
  border-inline-start: 3px solid var(--wine);
  padding-inline-start: 16px;
}
.contact-channels h3 { font-size: 1rem; margin-bottom: 0.2em; }
.contact-channels p { margin: 0 0 4px; font-size: 0.9rem; color: var(--ink-soft); }
.contact-channels a { font-size: 0.95rem; }

.contact-meta { margin-top: 28px; font-size: 0.95rem; }
.contact-meta p { margin-bottom: 14px; }
.contact-meta strong { color: var(--green); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: #B9CFC5;
  padding-block: 56px 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-on-green);
}

.footer-brand .brand-mark { width: 36px; height: 36px; margin-bottom: 14px; }
.footer-mission { max-width: 340px; }
.footer-parent { color: #8FA89C; font-size: 0.85rem; }

.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine-light);
  margin-bottom: 1em;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #C6D6CD; text-decoration: none; }
.footer-col a:hover { color: var(--wine-light); }

.footer-legal { padding-top: 24px; }
.footer-disclaimer { font-size: 0.85rem; color: #8FA89C; max-width: 760px; }
.footer-copyright { font-size: 0.85rem; color: #8FA89C; margin: 0; }

/* ---------- 404 ---------- */

.section-notfound { text-align: center; padding-block: clamp(96px, 14vw, 180px); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .step,
  .js .card,
  .js .pillar,
  .js .credibility-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js .step.revealed,
  .js .card.revealed,
  .js .pillar.revealed,
  .js .credibility-item.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 20px 24px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .site-nav ul a { display: block; padding: 10px 0; font-size: 1.05rem; }
  .nav-actions { width: 100%; justify-content: space-between; }

  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
}
