/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--space-4); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
}
h1, h2, h3, h4 { margin: 0; color: var(--text); font-family: var(--font-heading); font-weight: 600; line-height: 1.15; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 500; line-height: 1.25; }
h4 { font-size: var(--text-base); font-weight: 500; }
p { max-width: var(--measure); margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
small, .small { font-size: var(--text-small); }
.muted { color: var(--caption); }
.lead { color: var(--copy); }

/* Focus: every interactive element */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--white);
}
.skip-link:focus { top: var(--space-2); }

/* Layout */
.container { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* Section variants. Muted grey and brand blue do not reach contrast on some backgrounds, so they change here. */
.section--surface { background: var(--surface); --accent-text: var(--action-blue); --focus: var(--action-blue); }
.section--tint { background: var(--tint); --caption: var(--text-secondary); --accent-text: var(--action-blue); --focus: var(--action-blue); }
.section--dark { background: var(--charcoal); --text: var(--white); --copy: var(--white); --caption: var(--white); --link: var(--white); --accent-text: var(--white); --focus: var(--brand-blue); color: var(--white); }

/* Layout helpers */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.split > .section-head { margin-bottom: 0; }
.split > :only-child { grid-column: 1 / -1; }
.section-gap { margin-top: var(--space-12); }
.cta-row { align-items: center; gap: var(--space-4) var(--space-6); }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); } }

/* Eyebrow and heading block */
.eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--action-blue);
  font-family: var(--font-heading);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.section--dark .eyebrow, .footer .eyebrow { color: var(--white); }
.section-head { max-width: var(--measure); margin-bottom: var(--space-8); }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head p { color: var(--copy); }
.section-head .chips { margin-top: var(--space-6); }
.section-head__action { margin-top: var(--space-6); }
.page-title { max-width: 22ch; }
.page-title-rule { width: 64px; height: 4px; margin: var(--space-6) 0; border: 0; background: var(--brand-blue); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: var(--space-3) var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--action-blue); border-color: var(--action-blue); color: var(--white); }
.btn--primary:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn--secondary { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn--secondary:hover { background: var(--charcoal); color: var(--white); }
.btn--on-dark { background: var(--white); border-color: var(--white); color: var(--charcoal); }
.btn--on-dark:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Header */
.header { border-bottom: 1px solid var(--border); background: var(--white); }
.header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding-block: var(--space-3); }
.header__logo { flex: none; margin-right: auto; }
.header__logo img { width: auto; height: 44px; }
.header__phone { display: inline-flex; align-items: center; min-height: var(--control-height); padding-inline: var(--space-1); color: var(--charcoal); font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__phone:hover { text-decoration: underline; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  height: var(--control-height);
  padding: 0;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }
.js .menu-toggle { display: inline-flex; }

.nav { flex-basis: 100%; }
.js .nav { display: none; }
.js .nav.is-open { display: block; }
.nav__list { display: flex; flex-direction: column; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.nav__list a { display: flex; align-items: center; min-height: var(--control-height); border-bottom: 1px solid var(--border); color: var(--charcoal); font-weight: 600; text-decoration: none; }
.nav__list a:hover { color: var(--action-blue); }
.nav__list a[aria-current='page'] { color: var(--action-blue); text-decoration: underline; text-underline-offset: 0.3em; }
.nav__cta { width: 100%; margin-top: var(--space-3); }

@media (min-width: 768px) {
  .header__logo img { height: 52px; }
}
/* 1024 to 1199px: full navigation, with the phone in a utility row above it */
@media (min-width: 1024px) {
  .header__bar { gap: 0 var(--space-3); padding-block: var(--space-2) var(--space-3); }
  .js .menu-toggle { display: none; }
  .js .nav, .nav { display: flex; flex-basis: auto; align-items: center; gap: var(--space-3); }
  .header__phone { order: -1; flex-basis: 100%; justify-content: flex-end; min-height: 32px; padding-inline: 0; }
  .nav__list { flex-direction: row; gap: var(--space-3); border-top: 0; }
  .nav__list a { border-bottom: 0; font-size: 0.9375rem; white-space: nowrap; }
  .nav__cta { width: auto; margin-top: 0; padding-inline: var(--space-4); white-space: nowrap; }
}
/* 1200px and up: everything on one row */
@media (min-width: 1200px) {
  .header__bar { flex-wrap: nowrap; gap: var(--space-4); padding-block: var(--space-3); }
  .js .nav, .nav { gap: var(--space-4); }
  .header__phone { order: 3; flex-basis: auto; min-height: var(--control-height); }
  .nav__list { gap: var(--space-4); }
  .nav__cta { padding-inline: var(--space-6); }
}

/* Footer */
.footer { padding-block: var(--space-24) var(--space-8); border-top: 1px solid var(--rule-on-dark); background: var(--charcoal); color: var(--white); --text: var(--white); --link: var(--white); --focus: var(--brand-blue); }
.footer__logo img { width: auto; height: 64px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); margin-top: var(--space-8); }
.footer h2 { margin-bottom: var(--space-3); font-size: var(--text-base); font-weight: 500; }
.footer ul { padding: 0; list-style: none; }
.footer li { margin-bottom: var(--space-1); }
.footer a { display: inline-flex; align-items: center; min-height: 32px; color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--brand-blue); text-decoration: underline; }
.footer address { font-style: normal; }
.footer__legal { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--muted); font-size: var(--text-small); }
.footer__legal p { max-width: none; margin-bottom: var(--space-1); }
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }

/* Credential tiles */
.tiles { display: grid; grid-template-columns: 1fr; gap: var(--space-4); padding: 0; list-style: none; }
.tile { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.tile__value { display: block; margin-bottom: var(--space-2); color: var(--charcoal); font-family: var(--font-heading); font-size: var(--h3); font-weight: 600; line-height: 1.2; }
.tile__text { display: block; color: var(--text-secondary); font-size: var(--text-small); line-height: 1.5; }
.tile .eyebrow { margin-bottom: var(--space-2); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* Pathway cards */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--space-6); padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; padding: var(--space-6); border: 1px solid var(--border); border-top: 3px solid var(--charcoal); border-radius: var(--radius); background: var(--white); }
.card h3 { margin-bottom: var(--space-3); color: var(--charcoal); }
.card p { color: var(--text-secondary); }
.card > a { align-self: flex-start; margin-top: auto; color: var(--action-blue); font-weight: 600; }
.card .eyebrow { color: var(--action-blue); }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards--2up { grid-template-columns: repeat(2, 1fr); }
}

/* Numbered steps */
.steps { display: grid; gap: var(--space-6); padding: 0; list-style: none; counter-reset: step; }
.step { display: grid; grid-template-columns: 3.5rem 1fr; grid-template-rows: auto 1fr; column-gap: var(--space-4); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 2; color: var(--accent-text); font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.step h3 { grid-column: 2; margin-bottom: var(--space-2); }
.step p { grid-column: 2; color: var(--copy); }
@media (min-width: 900px) { .steps--2up { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-12); } }

/* Callout */
.callout { max-width: var(--measure); padding: var(--space-6); border-left: 4px solid var(--brand-blue); border-radius: var(--radius); background: var(--surface); }
.section--surface .callout, .section--tint .callout { background: var(--white); }
.callout h3 { margin-bottom: var(--space-2); color: var(--charcoal); }
.callout p { color: var(--charcoal); }
.callout .eyebrow { color: var(--action-blue); }

/* FAQ */
.faq { max-width: var(--measure); border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--control-height); padding-block: var(--space-3); color: var(--text); font-family: var(--font-heading); font-size: 1.125rem; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--accent-text); font-size: 1.75rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: var(--space-4); color: var(--copy); }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: var(--space-4); font-size: var(--text-small); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-inline: var(--space-2); color: var(--muted); }
.breadcrumbs a { display: inline-block; padding-block: var(--space-1); }
.breadcrumbs [aria-current='page'] { color: var(--charcoal); }

/* Tag chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; }
.chip { display: inline-block; padding: var(--space-1) var(--space-3); border: 1px solid var(--charcoal); border-radius: var(--radius); background: var(--white); color: var(--charcoal); font-size: var(--text-small); line-height: 1.5; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr; gap: var(--space-6); max-width: 720px; }
.field { display: grid; align-content: start; gap: var(--space-2); }
.field label { font-weight: 600; }
.field__hint { color: var(--caption); font-size: var(--text-small); }
.required { font-weight: 400; }
.input { width: 100%; min-height: var(--control-height); padding: var(--space-2) var(--space-3); border: 1px solid var(--muted); border-radius: var(--radius); background: var(--white); color: var(--charcoal); font: inherit; }
textarea.input { min-height: 144px; resize: vertical; }
.input::placeholder { color: var(--muted); opacity: 1; }
.field--error .input, .input[aria-invalid='true'] { border: 2px solid var(--charcoal); }
.field__error { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--charcoal); font-size: var(--text-small); font-weight: 700; }
.field__error svg { flex: none; width: 20px; height: 20px; }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--action-blue); }
.consent label { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 600px) {
  .form { grid-template-columns: repeat(2, 1fr); }
  .field--full, .form__actions { grid-column: 1 / -1; }
}

/* Figures */
.figure { margin: 0; }
.figure.section-gap { margin-top: var(--space-12); }
.figure img { height: auto; }
.figure img, .photo-placeholder { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius); object-fit: cover; }
.photo-placeholder { display: grid; place-items: center; padding: var(--space-4); background: var(--tint); color: var(--charcoal); font-size: var(--text-small); text-align: center; }
.section--tint .photo-placeholder { border: 1px solid var(--border); background: var(--white); }
.figure figcaption { margin-top: var(--space-2); color: var(--caption); font-size: var(--text-small); }

/* Additions for the inner pages */
.h3 { font-size: var(--h3); font-weight: 500; line-height: 1.25; }
.source { color: var(--copy); font-size: var(--text-small); }
.list { padding-left: 1.25em; color: var(--copy); }
.list li + li { margin-top: var(--space-1); }
.card .list { color: var(--text-secondary); }
.card > .figure { margin-bottom: var(--space-4); }
.card h2 { margin-bottom: var(--space-3); color: var(--charcoal); }
.card p + .eyebrow { margin-top: var(--space-2); }
.card[id] { scroll-margin-top: var(--space-4); }
.list--columns { max-width: none; }
@media (min-width: 768px) { .list--columns { columns: 2; column-gap: var(--space-12); } .list--columns li { break-inside: avoid; } }
.jump-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.jump-links a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--charcoal); border-radius: var(--radius); background: var(--white); color: var(--charcoal); font-size: var(--text-small); text-decoration: none; }
.jump-links a:hover { background: var(--charcoal); color: var(--white); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.table { width: 100%; border-collapse: collapse; color: var(--charcoal); font-size: var(--text-small); }
.table th, .table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { font-family: var(--font-heading); font-weight: 500; }
.table--nowrap th, .table--nowrap td { white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap + .source { margin-top: var(--space-4); }
.details { margin-bottom: 0; }
.details dt { font-weight: 600; }
.details dd { margin: 0 0 var(--space-4); }
.details dd:last-child { margin-bottom: 0; }
.profile-role { margin-block: var(--space-2) var(--space-4); }
.notice { max-width: none; margin-bottom: var(--space-6); padding: var(--space-4); border: 2px solid var(--charcoal); border-radius: var(--radius); background: var(--white); color: var(--charcoal); font-weight: 600; }
.notice--success { border-color: var(--action-blue); }
.prose { max-width: var(--measure); }
.prose h2 { margin-block: var(--space-8) var(--space-3); font-size: var(--h3); font-weight: 500; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
