:root {
  --navy: #2b547e;
  --navy-deep: #173b60;
  --navy-ink: #003366;
  --gold: #f7b410;
  --gold-deep: #d5920e;
  --paper: #ffffff;
  --line: #c9d2d8;
  --heading: #596373;
  --ink: #252b31;
  --muted: #5f6871;
  --max: 1060px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--navy) 0 235px, #dfe7ec 235px 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #8a2f24; }
a:focus-visible,
summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .65rem .9rem;
  color: #fff;
  background: var(--navy-deep);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.independence-banner {
  padding: .62rem max(1rem, calc((100vw - var(--max)) / 2));
  border-bottom: 3px solid var(--gold);
  color: #fff;
  background: #112f4d;
  font-size: .78rem;
  line-height: 1.45;
}
.independence-banner strong { color: #ffd16b; text-transform: uppercase; letter-spacing: .07em; }

.site-header { width: min(calc(100% - 1.25rem), var(--max)); margin: 0 auto; color: #fff; }
.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 92px;
  padding: 1rem 1.1rem;
}
.wordmark {
  color: #fff;
  font-size: clamp(1.65rem, 6vw, 2.65rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -.04em;
}
.wordmark span {
  display: block;
  margin-top: .35rem;
  color: #dbe7f1;
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.strapline {
  max-width: 390px;
  margin: 0;
  color: #e8eef5;
  font-size: .76rem;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.nav-menu {
  border: 1px solid #0f2e4d;
  border-bottom: 4px solid var(--gold-deep);
  background: linear-gradient(180deg, #416c97, #284e76);
}
.nav-menu summary {
  padding: .55rem .8rem;
  color: #fff;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list li { border-top: 1px solid rgba(255,255,255,.18); }
.nav-list li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.nav-list a {
  display: grid;
  place-items: center;
  min-height: 45px;
  padding: .5rem .65rem;
  color: #fff;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: #102e4c; background: var(--gold); }

.page-shell {
  width: min(calc(100% - 1.25rem), var(--max));
  margin: 0 auto 3rem;
  padding: 0 0 1.25rem;
  border-right: 1px solid #aebbc5;
  border-bottom: 8px solid #b7c4cc;
  border-left: 1px solid #aebbc5;
  background: var(--paper);
  box-shadow: 0 18px 34px rgba(12, 35, 55, .22);
}
.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .82rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff, #edf1f4);
}
.title-bar h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  line-height: 1.25;
  text-transform: uppercase;
}
.title-bar h1::before {
  content: "";
  display: inline-block;
  width: .78rem;
  height: .78rem;
  margin-right: .55rem;
  border: 3px solid var(--gold-deep);
  border-radius: 50%;
  vertical-align: -.05em;
}
.breadcrumb { display: none; color: var(--muted); font-size: .73rem; text-align: right; }
.content-grid { display: grid; gap: 1.5rem; padding: 1rem; }
.maincontent { min-width: 0; }
.maincontent h2 {
  margin: 2rem 0 .65rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--gold);
  color: var(--navy-ink);
  font-size: 1.2rem;
  line-height: 1.3;
}
.maincontent h3 { margin: 1.45rem 0 .4rem; color: var(--heading); font-size: 1.02rem; }
.maincontent p { margin: .75rem 0; }
.maincontent li + li { margin-top: .35rem; }
.lead { color: #3b4650; font-size: 1.08rem; font-weight: 700; line-height: 1.55; }
.notice {
  margin: 0 0 1rem;
  padding: .75rem .85rem;
  border-left: 5px solid var(--gold);
  color: #34434f;
  background: #f2f5f7;
  font-size: .82rem;
  line-height: 1.5;
}
.feature-figure { margin: .5rem 0 1.35rem; border: 3px double #557799; background: #fff; }
.feature-figure img { width: 100%; max-height: 440px; object-fit: cover; }
.feature-figure figcaption { padding: .45rem .65rem; color: var(--muted); background: #eef2f4; font-size: .7rem; line-height: 1.35; }

.fact-grid,
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; margin: 1rem 0; }
.fact-card,
.stat-card { padding: .85rem; border: 1px solid var(--line); border-top: 4px solid var(--gold); background: #f7f9fa; }
.fact-card strong,
.stat-card strong { display: block; color: var(--navy-ink); font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }
.stat-card span { display: block; margin-top: .25rem; color: var(--heading); font-size: 1.25rem; font-weight: 800; }

.archive-table-wrap { margin: 1rem 0; overflow-x: auto; }
.archive-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.archive-table th,
.archive-table td { padding: .55rem .6rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.archive-table th { color: #fff; background: var(--navy); }
.archive-table tr:nth-child(even) { background: #f2f5f7; }

.archive-sidebar { align-self: start; border: 1px solid #8ba1b4; background: #edf2f5; font-size: .82rem; }
.archive-sidebar h2 { margin: 0; padding: .52rem .65rem; color: #fff; background: var(--navy); font-size: .82rem; text-transform: uppercase; }
.archive-sidebar p,
.archive-sidebar ul { margin: .7rem; }
.archive-sidebar ul { padding-left: 1.1rem; }
.source-note { margin-top: 1.5rem; padding: .75rem .85rem; border: 1px solid #d5b05a; color: #514521; background: #fff8e5; font-size: .78rem; }

.site-footer { color: #e7edf2; background: #163b5e; }
.footer-inner {
  display: grid;
  gap: 1.3rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.65rem 0;
}
.footer-heading { margin: 0 0 .45rem; color: #fff; font-size: 1rem; text-transform: uppercase; }
.footer-note { max-width: 650px; margin: 0; font-size: .78rem; line-height: 1.55; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .9rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: #fff; font-size: .74rem; }
.footer-bottom { padding: .75rem 1rem; border-top: 1px solid rgba(255,255,255,.18); color: #bfcddd; font-size: .7rem; text-align: center; }

.error-page .maincontent { min-height: 420px; padding: 2rem 0; text-align: center; }
.error-code { margin: 0; color: var(--navy); font-size: clamp(4rem, 20vw, 9rem); font-weight: 800; line-height: .9; }

@media (min-width: 720px) {
  .nav-menu summary { display: none; }
  .nav-list { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .nav-list li,
  .nav-list li:nth-child(odd) { border-top: 0; border-right: 1px solid rgba(255,255,255,.18); }
  .content-grid { grid-template-columns: minmax(0, 1fr) 205px; padding: 1.25rem; }
  .breadcrumb { display: block; }
  .footer-inner { grid-template-columns: 1.15fr .85fr; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .strapline { display: none; }
  .masthead-top { min-height: 78px; }
  .title-bar { align-items: flex-start; }
  .footer-nav { grid-template-columns: 1fr; }
}
@media print {
  .independence-banner,
  .site-header,
  .archive-sidebar,
  .site-footer { display: none; }
  body { background: #fff; }
  .page-shell { width: 100%; border: 0; box-shadow: none; }
  .content-grid { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
