:root {
  --font-main: "Gilroy", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-bold: "Gilroy", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-Heavy.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #223041;
  --muted: #64748b;
  --line: #d9e2ec;
  --soft: #f6f8fb;
  --panel: #ffffff;
  --slate: #425466;
  --blue: #24537a;
  --teal: #0f766e;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --shadow: 0 20px 60px rgba(34, 48, 65, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-main);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  left: 12px;
  top: -50px;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  min-height: 28px;
  padding: 4px 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  color: white;
  background: var(--ink);
  font-size: 13px;
}
.topbar a { text-decoration: none; }
.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding: 5px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 360px;
  text-decoration: none;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.brand img { width: 104px; flex: 0 0 auto; }
.brand > span {
  display: grid;
  gap: 1px;
  min-width: 265px;
  max-width: 310px;
  line-height: 1.15;
}
.brand > span > span {
  display: block;
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.nav-link {
  text-decoration: none;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: #eef4f8; color: var(--blue); }
.menu-toggle { display: none; }

h1, h2, h3 {
  font-family: var(--font-bold);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}
h1 { font-size: clamp(32px, 4.8vw, 60px); }
h2 { font-size: clamp(22px, 2.8vw, 38px); letter-spacing: -.02em; }
h3 { font-size: 18px; }
p { margin: 0; }
.eyebrow {
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
}
.lead { font-size: 18px; color: #425466; max-width: 680px; line-height: 1.55; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--orange); color: white; }
.btn.primary:hover { background: var(--orange-dark); }
.btn.secondary { border: 1px solid var(--line); color: var(--ink); background: white; }
.text-link { color: var(--blue); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.hero {
  position: relative;
  overflow: hidden;
  background-image: url("assets/mirec-building-sketch-clean.png");
  background-size: cover;
  background-position: center center;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.56) 42%, rgba(255,255,255,.16) 72%, rgba(255,255,255,.04) 100%),
    linear-gradient(0deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,0) 22%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  min-height: calc(100svh - 102px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  padding: 6vh 0 9vh;
}
.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 690px;
  text-align: left;
  text-shadow: 0 1px 18px rgba(255,255,255,.72);
}
.hero-copy h1 {
  max-width: 650px;
  font-size: clamp(48px, 6.4vw, 82px);
  line-height: .95;
  text-wrap: balance;
}
.hero-copy .lead {
  color: #1f2d3d;
  max-width: 650px;
  font-size: 20px;
  line-height: 1.42;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.metric {
  min-height: 160px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid rgba(217,226,236,.75);
}
.metric strong {
  display: block;
  color: var(--blue);
  font: 800 44px/1 var(--font-bold);
  margin-bottom: 12px;
}
.metric span { color: var(--slate); font-weight: 700; }

section { padding: 64px 0; }
.section-heading { display: grid; gap: 8px; max-width: 760px; margin-bottom: 28px; }
.section-heading.row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.pathways { background: white; }
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.path-card, .resource-card, .location-card, .aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.path-card {
  min-height: 220px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.path-card span {
  color: var(--orange-dark);
  font-weight: 900;
  font-family: var(--font-bold);
}
.path-card p, .resource-card p, .location-card p { color: var(--slate); }

.spotlight { background: var(--soft); }
.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
  gap: 50px;
  align-items: center;
}
.split > div { display: grid; gap: 18px; }
.split img {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}

.resource-section.alt, .all-content { background: var(--soft); }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.resource-grid.compact .resource-card { min-height: 220px; }
.resource-card {
  min-height: 200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resource-card .text-link { margin-top: auto; }
.card-meta {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: #e7f3f1;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}
.locations { background: white; }
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.location-card { padding: 20px; display: grid; gap: 10px; }

.search-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  min-width: 280px;
}
.search-box input {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  font: inherit;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter {
  border: 1px solid var(--line);
  background: white;
  color: var(--slate);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
  cursor: pointer;
}
.filter.active { background: var(--ink); color: white; border-color: var(--ink); }

.page-hero {
  padding: 64px 0;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eff7 60%, #f4f7fa 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 52px); max-width: 920px; line-height: 1.06; }
.page-hero p:not(.eyebrow) { max-width: 780px; color: var(--slate); font-size: 18px; }

.page-hero.compact {
  padding: 44px 0 40px;
}
.page-hero.compact h1 { font-size: clamp(24px, 3.5vw, 40px); }
.page-hero.compact p:not(.eyebrow) { font-size: 16px; }

.page-hero.status-hero {
  padding: 80px 0;
  text-align: center;
}
.page-hero.status-hero .container { justify-items: center; }
.page-hero.status-hero h1 { font-size: clamp(26px, 4vw, 44px); }
.page-hero.status-hero .hero-actions { justify-content: center; }
.breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.content-section { background: white; }
.two-col {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.page-aside { position: sticky; top: 130px; display: grid; gap: 14px; }
.aside-card { padding: 18px; display: grid; gap: 10px; }
.aside-label {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.contact-mini a { color: var(--blue); font-weight: 800; text-decoration: none; }
.rich-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  box-shadow: 0 12px 40px rgba(34,48,65,.07);
}
.rich-content h2 {
  font-size: 26px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.rich-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rich-content p { margin-top: 14px; color: #334155; }
.rich-content ul { margin: 14px 0 0; padding-left: 22px; color: #334155; }
.rich-content li { margin: 7px 0; }

.site-footer {
  padding: 56px 0;
  background: #182433;
  color: white;
}
.footer-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1.1fr .8fr 1fr;
  gap: 30px;
}
.footer-grid h2 { font-size: 18px; margin-bottom: 12px; }
.footer-grid p, .footer-grid a { color: #cbd5e1; }
.footer-grid a { display: block; text-decoration: none; margin: 8px 0; }
.footer-logo { width: 160px; background: white; border-radius: 6px; padding: 8px; margin-bottom: 16px; }
.partner-logo { max-width: 230px; background: white; border-radius: 6px; padding: 8px; }

@media (max-width: 980px) {
  .topbar { display: none; }
  .nav-wrap { align-items: flex-start; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    background: white;
    border-radius: 6px;
    padding: 6px 10px;
    font: 700 12px/1 var(--font-main);
    height: 32px;
    cursor: pointer;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .hero-grid, .split, .two-col { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .pathway-grid, .resource-grid, .location-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container, .footer-grid { width: min(100% - 28px, 1180px); }
  .brand img { width: 110px; }
  .brand span { display: none; }
  .hero-grid { min-height: auto; padding: 48px 0; }
  h1 { font-size: 38px; }
  section { padding: 56px 0; }
  .hero-panel, .pathway-grid, .resource-grid, .location-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-heading.row { display: grid; align-items: start; }
  .search-box { min-width: 0; }
  .rich-content { padding: 20px; }
}

/* 2026 art-direction pass: closer to the Gemini render, with stronger ink and public-service clarity. */
.nav-link.is-active,
.nav-link:hover,
.nav-link.active {
  background: #eef4f8;
  color: var(--ink);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.accessibility-toggle,
.language-select {
  height: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 700 11px/1 var(--font-main);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.accessibility-toggle:hover,
.language-select:hover { border-color: var(--blue); background: #f0f6fb; }

.accessibility-toggle {
  width: 34px;
  min-width: 34px;
  padding: 0;
  letter-spacing: .03em;
}
.language-select {
  width: 64px;
  padding: 0 22px 0 10px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 13px, calc(100% - 9px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.hero-gemini {
  height: clamp(520px, 44vw, 660px);
  min-height: 0;
  padding: 0;
  background-image: url("/assets/gemini-hero-background-clean.png");
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #f4efe7;
  border-bottom: 1px solid rgba(34,48,65,.18);
}

.hero-gemini::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 31% 48%, rgba(255,255,255,.48) 0%, rgba(255,255,255,.31) 32%, rgba(255,255,255,0) 58%),
    linear-gradient(0deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,0) 15%);
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(160px, 12vw, 178px);
  padding-left: clamp(48px, 5.5vw, 76px);
}

.hero-overlay::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: clamp(18px, 4vw, 54px);
  top: clamp(138px, 10.2vw, 152px);
  width: min(720px, 58vw);
  height: clamp(320px, 29vw, 430px);
  background:
    radial-gradient(ellipse at 42% 38%, rgba(255,255,255,.84) 0%, rgba(255,255,255,.68) 38%, rgba(255,255,255,.34) 68%, rgba(255,255,255,0) 100%);
  filter: blur(.2px);
  pointer-events: none;
}

.hero-overlay > * {
  position: relative;
  z-index: 1;
}

.hero-gemini .eyebrow {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-gemini h1 {
  position: static;
  width: min(640px, 52vw);
  color: #213047;
  font-family: var(--font-bold);
  font-size: clamp(46px, 4.2vw, 62px);
  font-weight: 800;
  line-height: .97;
  letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(255,255,255,.72);
}

.hero-gemini .lead {
  position: static;
  width: min(580px, 46vw);
  margin-top: 14px;
  color: #1f2d3d;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.5;
  text-shadow: 0 1px 16px rgba(255,255,255,.88);
}

.hero-gemini .hero-actions {
  position: static;
  margin: 22px 0 0;
  gap: 12px;
}

.hero-gemini .btn {
  min-height: 45px;
  min-width: 178px;
  box-shadow: 0 10px 24px rgba(34,48,65,.15);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metrics-strip article {
  min-height: 145px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metrics-strip strong {
  display: block;
  color: #2f5d8b;
  font: 800 42px/1 var(--font-bold);
  margin-bottom: 10px;
}

.metrics-strip span {
  color: var(--slate);
  font-weight: 800;
}

.directory-form,
.contact-form {
  display: grid;
  gap: 16px 18px;
  margin-bottom: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(34,48,65,.07);
}

.directory-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.directory-form label,
.contact-form label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  min-height: 78px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;
}

.directory-form input,
.directory-form select,
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  height: 52px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: 400 16px/1.35 var(--font-main);
}

.contact-form textarea {
  min-height: 170px;
  height: auto;
  padding: 12px;
}

.form-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.form-actions > .btn,
.directory-form > .btn {
  width: 100%;
  min-height: 54px;
  height: 54px;
  margin: 0;
}

.contact-form textarea { resize: vertical; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hp-field {
  position: absolute;
  left: -9999px;
}
.form-note { color: var(--muted); font-size: 13px; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.contact-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-panel h2 { font-size: 22px; margin-top: 10px; }
.contact-panel h2:first-child { margin-top: 0; }
.contact-panel a { color: var(--blue); font-weight: 800; text-decoration: none; }
.mini-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mini-map img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.mini-map iframe {
  display: block;
  width: 100%;
  height: 210px;
  border: 0;
}
.route-btn {
  width: 100%;
}

.access-section { background: #fff; }
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  gap: 24px;
  align-items: stretch;
}
.map-panel,
.route-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(34,48,65,.07);
  overflow: hidden;
}
.map-panel iframe,
.map-panel img {
  display: block;
  width: 100%;
  min-height: 430px;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.route-panel {
  display: grid;
  gap: 0;
  padding: 0;
}
.route-panel article {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.route-panel article:last-child { border-bottom: 0; }
.route-panel span {
  display: block;
  margin-bottom: 7px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.route-panel p {
  color: var(--slate);
}
.route-panel a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.route-panel .notice {
  background: #fff7ed;
}

.network-section,
.legal-section {
  background: var(--soft);
}
.network-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.network-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.intermire-card,
.legal-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(34,48,65,.07);
}
.intermire-card h3,
.legal-card h2 {
  margin-bottom: 10px;
}
.legal-card p {
  margin-top: 8px;
  color: var(--slate);
}

.jobs-table {
  display: grid;
  gap: 8px;
}
.jobs-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) .7fr .6fr .7fr .6fr .35fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.jobs-head {
  background: #182433;
  color: white;
  font-weight: 800;
}
.jobs-row small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.jobs-head small { color: rgba(255,255,255,.76); }

.rich-content p {
  text-align: justify;
  hyphens: auto;
}

.cookie-banner {
  position: fixed;
  left: auto;
  right: 24px;
  bottom: 20px;
  z-index: 30;
  display: none;
  max-width: 470px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 80px rgba(15,23,42,.22);
}
.cookie-banner.is-visible { display: grid; gap: 10px; }
.cookie-banner p { color: var(--slate); }
.cookie-banner div { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: white;
  font: 800 14px/1 var(--font-main);
  cursor: pointer;
}
.cookie-banner button:first-child {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.accessible-mode {
  --ink: #000;
  --muted: #1f2937;
  --line: #111827;
  --soft: #fff;
  background: #fff;
  color: #000;
  font-size: 118%;
}
.accessible-mode .hero-gemini {
  background-image: none;
  min-height: auto;
  background: #fff;
}
.accessible-mode .hero-overlay {
  min-height: auto;
  padding: 52px 0;
  display: grid;
  gap: 18px;
}
.accessible-mode .hero-gemini .eyebrow,
.accessible-mode .hero-gemini h1,
.accessible-mode .hero-gemini .lead {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
.accessible-mode .hero-gemini .hero-actions {
  position: static;
}

*:focus-visible {
  outline: 4px solid #0369a1;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1120px) {
  .directory-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs-row { grid-template-columns: 1fr 1fr; }
  .jobs-head { display: none; }
}

@media (max-width: 980px) {
  .header-tools { margin-left: auto; }
  .brand { min-width: 0; }
  .hero-gemini,
  .hero-overlay {
    height: 540px;
    min-height: 0;
  }
  .hero-gemini {
    background-size: auto 100%;
    background-position: 32% top;
  }
  .hero-gemini h1 {
    position: static;
    width: min(580px, calc(100% - 42px));
    font-size: clamp(38px, 7.2vw, 52px);
  }
  .hero-gemini .lead {
    position: static;
    width: min(540px, calc(100% - 42px));
    font-size: 16px;
  }
  .hero-gemini .hero-actions {
    position: static;
  }
  .hero-overlay::before {
    left: 8px;
    top: 118px;
    width: min(640px, 92vw);
    height: 400px;
  }
  .contact-layout { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .brand { min-width: 0; }
  .hero-gemini,
  .hero-overlay { height: 580px; }
  .hero-overlay {
    padding-top: 190px;
    padding-left: 16px;
  }
  .hero-overlay::before {
    left: 0;
    top: 160px;
    width: 100%;
    height: 380px;
    background: radial-gradient(ellipse at 43% 38%, rgba(255,255,255,.9) 0%, rgba(255,255,255,.76) 46%, rgba(255,255,255,.3) 78%, rgba(255,255,255,0) 100%);
  }
  .hero-gemini {
    background-size: auto 100%;
    background-position: 31% top;
  }
  .hero-gemini h1 {
    position: static;
    width: calc(100% - 24px);
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.0;
  }
  .hero-gemini .lead {
    position: static;
    width: calc(100% - 24px);
    font-size: 15px;
    line-height: 1.45;
  }
  .hero-gemini .hero-actions {
    position: static;
    width: calc(100% - 16px);
  }
  .hero-gemini .btn { flex: 1 1 160px; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .directory-form,
  .form-grid,
  .form-actions { grid-template-columns: 1fr; }
  .jobs-row { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: 1fr; }
  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 12px;
    max-width: none;
  }
  .page-hero.compact { padding: 28px 0 24px; }
  .contact-layout { grid-template-columns: 1fr; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── Missing / incomplete class definitions ─────────────────────────────── */

/* Captcha label in contact form */
label.captcha {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--slate);
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
}
label.captcha input {
  width: 120px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  font: 700 18px/1 var(--font-main);
  text-align: center;
  background: #fff;
  color: var(--ink);
}

/* Formations directory grid — equal-height cards */
.directory-grid {
  grid-auto-rows: 1fr;
}

/* Mobile dropdown nav must sit above header */
@media (max-width: 980px) {
  .main-nav {
    z-index: 11;
  }
}

/* ── Design polish ──────────────────────────────────────────────────────── */

/* More editorial heading letter-spacing */
h2 { letter-spacing: -.02em; }
.eyebrow { letter-spacing: .12em; }

/* Path cards: bigger numbers, hover border accent */
.path-card span {
  font-size: 32px;
  line-height: 1;
  color: rgba(201, 89, 42, .35);
  font-weight: 900;
  letter-spacing: -.03em;
}
.path-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 36px rgba(36, 83, 122, .14);
}
.resource-card {
  transition: border-color .2s ease, box-shadow .2s ease;
}
.resource-card:hover {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(34,48,65,.09);
}

/* Hero mobile: slightly stronger overlay for readability */
@media (max-width: 680px) {
  .hero-gemini::before {
    background:
      radial-gradient(ellipse at 31% 48%, rgba(255,255,255,.52) 0%, rgba(255,255,255,.36) 32%, rgba(255,255,255,0) 58%),
      linear-gradient(0deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.1) 18%);
  }
}

/* Accessibility toggle: slightly more readable */
.accessibility-toggle {
  font-size: 11px;
  letter-spacing: .04em;
}

/* Jobs notice expiry: muted style */
.route-panel .notice {
  opacity: .72;
}

/* Footer: extra nav column styling */
.footer-grid a:hover {
  color: white;
  text-decoration: underline;
}
.footer-grid .footer-col-nav a {
  margin: 5px 0;
}

.territory-section { background: white; }
.territory-section .split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.footer-bottom p {
  color: #64748b;
  font-size: 12px;
}

/* Header actions: compact enough for the full institutional navigation */
.nav-wrap {
  width: min(1500px, calc(100% - 28px));
  gap: 12px;
}
.brand {
  min-width: 342px;
  gap: 11px;
  font-size: 13px;
  flex: 0 0 auto;
}
.brand img { width: 102px; }
.brand > span {
  min-width: 238px;
  max-width: 270px;
}
.main-nav {
  gap: 2px;
  flex: 1 1 auto;
  justify-content: center;
}
.nav-link {
  padding: 8px 7px;
  font-size: 12.5px;
}
.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.auth-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid var(--line);
  text-decoration: none;
  font: 800 12px/1 var(--font-main);
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.auth-login {
  background: #fff;
  color: var(--ink);
}
.auth-register {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .18);
}
.auth-link:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(34, 48, 65, .12);
}

/* Editorial content: clear hierarchy without the old "dumped text" effect */
.rich-content {
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: clamp(26px, 4vw, 52px);
  box-shadow: 0 16px 46px rgba(34, 48, 65, .06);
}
.content-flow {
  max-width: 920px;
}
.content-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}
.rich-content .content-heading {
  margin: 36px 0 14px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.15vw, 34px);
  line-height: 1.14;
  letter-spacing: 0;
}
.rich-content .content-heading:first-child,
.rich-content .content-kicker + .content-heading {
  margin-top: 0;
}
.rich-content .content-heading::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--orange);
}
.rich-content .content-subheading {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: clamp(19px, 1.55vw, 25px);
  line-height: 1.24;
  letter-spacing: 0;
}
.rich-content p {
  max-width: 900px;
  margin-top: 12px;
  color: #334155;
  font-size: 17px;
  line-height: 1.78;
  text-align: left;
  hyphens: none;
}
.rich-content .content-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  color: #334155;
  list-style: none;
}
.rich-content .content-list li {
  position: relative;
  margin: 0;
  padding-left: 24px;
  font-size: 17px;
  line-height: 1.72;
}
.rich-content .content-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px #fff3e7;
}
.content-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 4px;
}
.content-facts div {
  min-height: 82px;
  padding: 15px 16px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fafc;
}
.content-facts dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.content-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}
.content-timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.content-timeline div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #e7edf3;
}
.content-timeline time {
  color: var(--orange-dark);
  font-weight: 900;
}
.content-timeline p {
  margin: 0;
}

@media (max-width: 1240px) {
  .brand {
    min-width: 240px;
  }
  .brand > span {
    display: none;
  }
  .nav-link {
    font-size: 12px;
    padding-inline: 6px;
  }
  .auth-link {
    padding-inline: 10px;
  }
}

@media (max-width: 980px) {
  .auth-actions {
    margin-left: auto;
  }
  .main-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .auth-actions {
    display: none;
  }
  .nav-wrap {
    width: min(100% - 24px, 420px);
    gap: 8px;
  }
  .brand {
    min-width: 0;
    flex: 0 0 auto;
  }
  .brand img {
    width: 104px;
  }
  .brand > span {
    display: none;
  }
  .header-tools {
    margin-left: auto;
    gap: 6px;
    flex: 0 0 auto;
  }
  .menu-toggle {
    height: 32px;
    min-height: 32px;
    padding: 0 9px;
    border-radius: 6px;
  }
  .content-flow {
    max-width: none;
  }
  .content-facts,
  .content-timeline div {
    grid-template-columns: 1fr;
  }
  .rich-content .content-heading {
    font-size: 24px;
  }
  .rich-content .content-subheading {
    font-size: 20px;
  }
  .rich-content p,
  .rich-content .content-list li {
    font-size: 16px;
    line-height: 1.68;
  }
}
