:root {
  --navy: #00214D;
  --navy-mid: #003875;
  --ice: #E8EDF4;
  --white: #FFFFFF;
  --amber: #B8862E;
  --text: #111827;
  --muted: #6B7280;
  --border: #D1D9E6;
  --radius: 6px;
  --max-width: 840px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Site Header ─────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1rem;
}

.site-logo { display: block; flex-shrink: 0; }
.site-logo__img { height: 40px; width: 220px; display: block; }

/* Nav */
.site-nav { margin-left: auto; }

.site-nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .875rem;
  padding: .25rem 0;
  transition: color .15s;
  display: block;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible { color: #fff; }

.site-nav__list a.active {
  color: #fff;
  border-bottom: 2px solid var(--amber);
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}

.site-nav.is-open .site-nav__list {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 1rem 1.5rem 1.5rem;
  gap: .5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav__list { display: flex; gap: 1.75rem; }
  .site-nav.is-open .site-nav__list {
    position: static;
    flex-direction: row;
    padding: 0;
    background: none;
    border-top: none;
  }
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  padding: 3rem 0 2rem;
  border-top: 3px solid var(--amber);
}

.site-footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}

.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.footer-col h4 {
  color: #fff;
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 .875rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
}

.footer-col p { margin: 0; line-height: 1.6; font-size: .8125rem; }

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 36px; width: 198px; display: block; opacity: .9; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  font-size: .8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ── Typography ──────────────────────────────── */
h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
}

h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.3;
  margin: 0 0 .75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.375rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-mid); }
a:hover { color: var(--navy); }

/* ── Sections ────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section--ice { background: var(--ice); }
.section--navy { background: var(--navy); }

@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .625rem;
}

.section__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── Tables ──────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  min-width: 480px;
}

th {
  background: var(--navy-mid);
  color: rgba(255,255,255,.92);
  padding: .875rem 1rem;
  text-align: left;
  font-family: system-ui, sans-serif;
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--ice); }

/* ── Callout box ─────────────────────────────── */
.callout {
  background: var(--ice);
  border-left: 4px solid var(--amber);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: .9375rem;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  text-decoration: none;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9375rem;
  transition: background .15s, box-shadow .15s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #9a6c1f;
  color: #fff;
  box-shadow: 0 4px 12px rgba(184,134,46,.3);
}

.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ── Inner pages ─────────────────────────────── */
.inner-page { padding: 3rem 0 5rem; }
.inner-page h1 { margin-bottom: 2rem; }
.inner-page h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.375rem; }
.inner-page h3 { margin-top: 1.75rem; margin-bottom: .5rem; font-size: 1.0625rem; color: var(--navy); }
.inner-page p { max-width: 68ch; }

.inner-page .table-wrap { margin-top: 1rem; }

.page-hero {
  background: var(--navy);
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: .5rem;
  font-size: clamp(1.625rem, 3vw, 2rem);
}

.page-hero p {
  color: rgba(255,255,255,.75);
  max-width: 60ch;
  margin: 0;
  font-size: 1.0625rem;
}

/* ── Accessibility ───────────────────────────── */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
