:root {
  --navy: #12285a;
  --navy-dark: #0b1a3d;
  --gold: #d9a521;
  --bg: #ffffff;
  --alt: #f4f6fb;
  --text: #1c2333;
  --muted: #5b6477;
  --line: #e1e5ee;
  --radius: 14px;
}

* { box-sizing: border-box; }
/* fluid sizing: 16px up to a 1600x900 window, then everything (all sizes are rem) grows with the window so big and ultrawide screens are filled */
html { scroll-behavior: smooth; scroll-padding-top: 4.75rem; font-size: clamp(16px, min(1vw, 1.778vh), 32px); }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.wrap { width: min(70rem, 100% - 2rem); margin-inline: auto; }

/* placeholders: highlighted so they are not missed */
.tbc { background: #fff4cc; border-radius: 4px; padding: 0 .25em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .625rem 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { color: var(--muted); font-size: .7rem; max-width: 13.75rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.4rem; padding: 4px 10px; cursor: pointer; }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--navy-dark); font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.06); }
.btn-sm { padding: 8px 16px; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.link { color: var(--navy); font-weight: 600; }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: clamp(64px, 12vw, 140px) 0; }
.hero-inner { max-width: 760px; margin-left: max(1rem, calc((100% - 70rem) / 2)); margin-right: auto; }
.hero .eyebrow { color: var(--gold); }
.lead { color: #d6dcf0; font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .6em; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.4rem, 1fr)); gap: 1rem; margin-top: -2.5rem; position: relative; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: 0 8px 24px rgba(18,40,90,.08); }
.stats b { display: block; font-size: 1.8rem; color: var(--navy); }
.stats span { color: var(--muted); font-size: .9rem; }

/* sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--alt); }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.note { color: var(--muted); font-size: .9rem; }
.grid, .cards-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr)); gap: 1rem; }
.cards-3 { margin-top: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--muted); margin: 0; }
.card time { font-size: .8rem; color: var(--muted); }

/* tabs */
.tabs { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.tabs button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.steps li { counter-increment: step; background: var(--alt); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

/* contact */
.details { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.details dt { font-weight: 700; color: var(--navy); }
.details dd { margin: 0; }
.form { display: grid; gap: 14px; background: var(--alt); padding: 24px; border-radius: var(--radius); }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.form input, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.form button { justify-self: start; }
.form .field { display: grid; gap: 4px; }
.form .field label { font-weight: 600; font-size: .9rem; }
.form [aria-invalid="true"] { border-color: #a4262c; }
.field-error { margin: 0; color: #a4262c; font-size: .85rem; font-weight: 600; }
.notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-weight: 600; }
.notice-ok { background: #e6f4ea; color: #1e4620; }
.notice-error { background: #fdecea; color: #7a1c1c; }
/* honeypot: off-screen for sighted users, skipped by keyboard and assistive tech */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-footer { background: var(--navy-dark); color: #b9c2dd; padding: 1.75rem 0; font-size: .9rem; }
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* ---- public site extensions ---- */
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
main:focus { outline: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.link-light { color: #fff; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-top: 12px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--navy); }
.narrow { max-width: 48.75rem; }
.meta { color: var(--muted); font-size: .9rem; }
.cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 8px 0 20px; }
.prose img { height: auto; }
.prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose a { color: var(--navy); }
.lead-dark { font-size: 1.15rem; color: var(--muted); }
.gap-top { margin-top: 2em; }
.pre { white-space: pre-line; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.thumbs { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.thumbs span { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); gap: 1.25rem; }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 6px; font-weight: 600; color: var(--navy); }
.downloads { padding-left: 1.2em; }
.more-note { font-size: .92em; opacity: .85; margin-top: .5em; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.nav a[target="_blank"]::after { content: " \2197"; }
@media (max-width: 800px) {
  .nav a { padding: 6px 0; }
  .brand-text small { display: none; }
}
