:root {
  --paper: #f7f9f8;
  --paper-deep: #e8eee9;
  --card: #ffffff;
  --ink: #12141a;
  --ink-soft: #2c3038;
  --muted: #4a4f58;
  --line: #d5ddd8;
  --green: #169B62;
  --green-dark: #0e7348;
  --green-soft: #e6f6ee;
  --red: #C8102E;
  --red-soft: #fde8eb;
  --blue: #012169;
  --blue-soft: #e6eaf4;
  --teal: var(--green);
  --teal-dark: var(--green-dark);
  --teal-soft: var(--green-soft);
  --record: var(--red);
  --shadow: 0 1px 0 rgba(18, 20, 26, 0.04), 0 18px 40px rgba(18, 20, 26, 0.06);
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 66ch;
  --header-offset: 6.75rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}

body.results {
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::selection {
  background: #cfeedd;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--green);
}

.header-inner,
.footer-inner {
  width: min(70rem, 100%);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  display: block;
  object-fit: contain;
}

.about-logo {
  display: block;
  width: min(13.75rem, 70vw);
  height: auto;
  margin: 0 0 1.2rem;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--green-dark);
}

.brand-tag {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
}

.nav-button-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.15rem;
}

.nav-button-box span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
}

.nav-toggle:focus-visible + .nav-button {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.site-nav .nav-list,
.footer-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav .nav-list {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

main {
  width: min(70rem, 100%);
  margin-inline: auto;
  padding: 0 1.25rem 3.5rem;
  flex: 1;
}

.hero {
  padding: 2.4rem 0 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.kicker {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-head h1,
.recap-head h1,
.results-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 12em;
  font-size: clamp(2.2rem, 5vw, 3.55rem);
}

.hero-lede,
.lede,
.deck {
  color: var(--ink-soft);
}

.hero-lede,
.page-head .lede {
  max-width: 38rem;
  margin: 0.9rem 0 0;
  font-size: 1.18rem;
  line-height: 1.5;
}

.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.section-label h2,
.toc-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-link {
  font-weight: 600;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.story-lead {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: var(--shadow);
}

.story-title {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.story-lead .story-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.story-row .story-title {
  font-size: 1.45rem;
}

.story-title a {
  color: inherit;
  text-decoration: none;
}

.story-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-dot {
  color: var(--muted);
}

.story-summary {
  max-width: 62ch;
  margin: 0.7rem 0 0.85rem;
  color: var(--ink-soft);
}

.story-lead .story-summary {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
}

.story-more {
  margin: 0.85rem 0 0;
}

.story-more a {
  font-weight: 700;
  text-decoration: none;
}

.story-more a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.story-list {
  margin-top: 0.35rem;
}

.story-row {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.year-heading {
  margin: 1.8rem 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page-head {
  padding: 2rem 0 0.4rem;
}

.page-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.prose {
  max-width: 40rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.65;
}

.prose p {
  margin: 1rem 0;
}

.empty {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

.link-group {
  margin-top: 2.1rem;
}

.link-group h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.link-group > p {
  max-width: 62ch;
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.link-list a {
  font-weight: 700;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.link-list p {
  max-width: 66ch;
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.checked {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 2.4rem;
  padding: 1.2rem 1.3rem;
  background: var(--teal-soft);
  border-radius: 16px;
}

.promo p {
  max-width: 46ch;
  margin: 0.15rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:visited {
  background: var(--red);
  color: #fff;
}

.button-quiet {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.button-quiet:hover,
.button-quiet:visited {
  background: var(--blue-soft);
  color: var(--blue);
}

.missing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.recap {
  padding-top: 1.7rem;
}

.recap-head h1 {
  max-width: 22em;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.deck {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
}

.toc {
  margin: 1.4rem 0 1.6rem;
  padding: 0.9rem 1rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.toc[hidden] {
  display: none !important;
}

.toc ol {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 1.75rem;
}

.toc li {
  margin: 0.28rem 0;
  break-inside: avoid;
}

.toc a {
  font-weight: 600;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.article-body {
  min-width: 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.68;
}

.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > h2,
.article-body > h3,
.article-body > h4,
.article-body > blockquote,
.article-body > hr {
  max-width: var(--measure);
}

.article-body p,
.article-body li {
  overflow-wrap: break-word;
}

.article-body a {
  overflow-wrap: anywhere;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  scroll-margin-top: var(--header-offset);
  font-family: var(--serif);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-body h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: 1.7rem;
}

.article-body h3 {
  margin: 1.6rem 0 0.55rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.article-body hr {
  height: 1px;
  margin: 2.1rem 0;
  border: 0;
  background: var(--line);
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.article-body li {
  margin: 0.35rem 0;
}

.article-body li::marker {
  color: var(--teal);
}

.article-body blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
  color: var(--ink-soft);
}

.article-body > p:first-of-type > em:only-child {
  color: var(--muted);
  font-size: 1.02rem;
}

.article-body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.table-scroll {
  max-width: 100%;
  margin: 1.15rem 0 1.45rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.table-scroll:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.article-body table {
  width: 100%;
  min-width: 62rem;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.article-body th,
.article-body td {
  padding: 0.48rem 0.72rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article-body th {
  background: #eef3f0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-body tbody tr:hover td {
  background: #f3f6f4;
}

.article-body td strong {
  color: var(--record);
  font-weight: 700;
}

.results-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.results main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  padding: 0;
}

.results-bar {
  width: min(70rem, 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.15rem 1.25rem 0.95rem;
}

.results-intro p,
.results-fallback {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
}

.results-fallback a {
  font-weight: 700;
}

.results-intro h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.results-frame {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 70dvh;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer {
  margin-top: auto;
  padding: 1.4rem 0 1.8rem;
  background: #eef3f0;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.footer-note {
  max-width: 44rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .nav-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    padding-bottom: 0.35rem;
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    min-height: 2.75rem;
  }

  .toc ol {
    columns: 1;
  }

  .article-body {
    font-size: 1.08rem;
  }

  .article-body th,
  .article-body td {
    padding: 0.4rem 0.55rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 420px) {
  .brand-tag {
    display: none;
  }

  .header-inner,
  main,
  .footer-inner,
  .results-bar {
    padding-inline: 1rem;
  }

  main {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.recap-head .story-tags {
  margin-top: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.tag:hover,
.tag:focus-visible {
  background: var(--red);
  color: #fff;
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0.25rem 0 0.75rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 500 1rem/1.3 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
}

.filter-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.filter-clear {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font: 700 0.95rem/1 var(--sans);
  padding: 0.4rem 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.story[hidden],
.year-group[hidden],
.filter-clear[hidden],
#filter-empty[hidden] {
  display: none !important;
}

@media (min-width: 900px) {
  .filters {
    grid-template-columns: minmax(12rem, 1.4fr) repeat(4, minmax(8rem, 1fr));
    align-items: end;
  }

  .filters-simple {
    grid-template-columns: minmax(14rem, 1.6fr) minmax(10rem, 0.7fr);
  }
}

@media (max-width: 1100px) {
  .site-nav a,
  .footer-nav a {
    padding-inline: 0.55rem;
    font-size: 0.92rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .promo,
  .story-more,
  .nav-button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .article-body table {
    min-width: 0;
    font-size: 9pt;
  }

  a {
    color: inherit;
  }
}
