:root {
  --navy: #14284b;
  --blue: #1f4e9c;
  --bg: #f4f6fa;
  --text: #1c2333;
  --border: #cfd6e4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

header {
  background: var(--navy);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

h1 {
  margin: 0 auto;
  max-width: 1000px;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  line-height: 1.2;
  text-wrap: balance;
}
.nowrap { white-space: nowrap; }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.intro p { font-size: 1.1rem; }
.intro p:last-child { font-weight: 600; }

.tabs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.tab-list button {
  padding: 0.75rem 0.5rem;
  border: 0;
  background: #e8ecf4;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.tab-list button:hover { background: #dbe2f0; }

.tab-list button[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}

.tab-list button:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: -3px;
}

.tab-panel { padding: 1rem; }

.tab-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.blurb {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 4px solid var(--blue);
}
.blurb p {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.blurb p:last-child { margin-bottom: 0; }

.citations {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  padding-left: calc(1rem + 4px);
  font-size: 0.85rem;
  line-height: 1.5;
}
.citations h2 {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
}
.citations ol { margin: 0; padding-left: 1.25rem; }
.citations li { overflow-wrap: anywhere; }
.citations a { color: var(--blue); }

@media (max-width: 640px) {
  .tab-list { grid-template-columns: repeat(2, 1fr); }
}

footer {
  padding: 1.25rem 1rem;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer a:hover { text-decoration-thickness: 2px; }
