@font-face {
  font-family: "David Libre";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/david-libre-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
}
@font-face {
  font-family: "David Libre";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/david-libre-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0300-0304, U+1E00-1EFF, U+2020, U+20A0-20AB;
}
@font-face {
  font-family: "David Libre";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/david-libre-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
}
@font-face {
  font-family: "David Libre";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/david-libre-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0300-0304, U+1E00-1EFF, U+2020, U+20A0-20AB;
}
@font-face {
  font-family: "David Libre";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/david-libre-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
}
@font-face {
  font-family: "David Libre";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/david-libre-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0300-0304, U+1E00-1EFF, U+2020, U+20A0-20AB;
}

:root {
  --color-blue: #1b3a6b;
  --color-blue-dark: #12294d;
  --color-blue-muted: #3f5c8a;
  --color-text: #1a1c1f;
  --color-text-muted: #565f6b;
  --color-border: #dde2e8;
  --color-bg: #ffffff;
  --color-bg-subtle: #f6f8fa;
  --color-button-bg: #1b3a6b;
  --color-button-bg-hover: #12294d;
  --color-button-text: #ffffff;
  --font-serif: "David Libre", Georgia, "Times New Roman", serif;
  --content-width: 760px;
  --page-width: 1160px;
  --article-font-scale: 1;
}

[data-font-size="sm"] {
  --article-font-scale: 0.9;
}

[data-font-size="lg"] {
  --article-font-scale: 1.15;
}

:root[data-theme="dark"] {
  --color-blue: #8fb4e8;
  --color-blue-dark: #b3cdf0;
  --color-blue-muted: #6a87ab;
  --color-text: #e7e9ec;
  --color-text-muted: #9aa4b2;
  --color-border: #2b3038;
  --color-bg: #14161a;
  --color-bg-subtle: #1b1e24;
  --color-button-bg: #2f5590;
  --color-button-bg-hover: #3c68ab;
  --color-button-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  padding: 0.5em 1em;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* Header */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.site-header-bar {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-blue);
}

.site-logo-mark {
  width: 32px;
  height: 32px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}

[data-theme="dark"] .site-logo-mark {
  filter: brightness(2.1) saturate(1.2);
}

.site-logo-text {
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-search {
  display: flex;
  gap: 0.5rem;
}

.site-search input[type="search"] {
  font-family: var(--font-serif);
  height: 2.25rem;
  padding: 0 0.6em;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  min-width: 200px;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  content: "";
}

.a11y-menu {
  position: relative;
}

.a11y-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--color-border);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.a11y-toggle:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.a11y-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 1rem;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.a11y-group {
  margin-bottom: 0.9rem;
}

.a11y-group:last-child {
  margin-bottom: 0;
}

.a11y-group-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.a11y-btn-row {
  display: flex;
  gap: 0.4rem;
}

.a11y-btn {
  font-family: var(--font-serif);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  padding: 0.3em 0.65em;
  cursor: pointer;
  font-size: 0.85rem;
}

.a11y-btn:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.a11y-btn[aria-pressed="true"] {
  background: var(--color-button-bg);
  border-color: var(--color-button-bg);
  color: var(--color-button-text);
}

.mobile-menu {
  display: none;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.mobile-menu-toggle:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.mobile-menu-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-menu-close {
  display: none;
}

.mobile-menu[open] .icon-menu-open {
  display: none;
}

.mobile-menu[open] .icon-menu-close {
  display: block;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 1rem;
  z-index: 20;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 1rem;
  width: 260px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mobile-menu-a11y {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.site-search-mobile {
  margin-bottom: 1rem;
}

.site-search-mobile input[type="search"] {
  min-width: 0;
  flex: 1;
}

.mobile-subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-subnav a {
  display: block;
  padding: 0.4em 0;
  color: var(--color-text);
  text-decoration: none;
}

.mobile-subnav a:hover,
.mobile-subnav a[aria-current="page"] {
  color: var(--color-blue);
}

.site-search button,
.search-page-form button {
  font-family: var(--font-serif);
  height: 2.25rem;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  border: 1px solid var(--color-button-bg);
  padding: 0 0.9em;
  cursor: pointer;
}

.site-search button:hover,
.search-page-form button:hover {
  background: var(--color-button-bg-hover);
  border-color: var(--color-button-bg-hover);
}

.site-subnav {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}

.site-subnav ul {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-subnav a {
  display: inline-block;
  padding: 0.6em 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}

.site-subnav a:hover,
.site-subnav a[aria-current="page"] {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

/* Main layout */

main {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section-heading {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.section-heading-small {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* Breadcrumbs */

.breadcrumbs {
  max-width: var(--content-width);
  margin: 0 auto 1.25rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "\203A";
  margin: 0 0.5em;
  color: var(--color-border);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-blue);
}

.breadcrumbs li:last-child span {
  color: var(--color-text);
}

/* Homepage lead */

.section-lead {
  max-width: var(--content-width);
  margin: 0 auto 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.lead-headline {
  font-size: 2.1rem;
}

.lead-headline a {
  color: var(--color-text);
  text-decoration: none;
}

.lead-headline a:hover {
  color: var(--color-blue);
}

.lead-dek {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.section-then-now {
  max-width: var(--content-width);
  margin: 0 auto 2.5rem;
}

.then-now-box {
  border: 1px solid var(--color-blue);
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-subtle);
}

.then-now-label {
  display: inline-block;
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.then-now-headline {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.then-now-headline a {
  color: var(--color-text);
  text-decoration: none;
}

.then-now-headline a:hover {
  color: var(--color-blue);
}

.section-latest {
  max-width: var(--page-width);
  margin: 0 auto;
}

/* Article cards / grid */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.25rem;
}

.article-card-meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.article-card-category {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

.article-card-headline {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.article-card-headline a {
  color: var(--color-text);
  text-decoration: none;
}

.article-card-headline a:hover {
  color: var(--color-blue);
}

.article-card-dek {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--page-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.pagination-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.pagination-link:hover {
  color: var(--color-blue);
}

.pagination-disabled {
  color: var(--color-border);
}

.pagination-status {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Article page */

.article {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-header {
  margin-bottom: 1.75rem;
}

.article-headline {
  font-size: 2.25rem;
  margin-top: 0.5rem;
}

.article-dek {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  margin-top: 1rem;
}

.article-body {
  font-size: calc(1.1rem * var(--article-font-scale));
}

.article-body h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.article-body sup.citation {
  font-size: 0.72em;
}

.article-body sup.citation a {
  text-decoration: none;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0;
}

.tag {
  display: inline-block;
  border: 1px solid var(--color-border);
  padding: 0.3em 0.7em;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-text);
}

.tag:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.article-sources {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.article-sources ol {
  padding-left: 1.5em;
}

.article-sources li {
  margin-bottom: 0.5em;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Corrections */

.correction-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2em 0.55em;
  border: 1px solid var(--color-blue);
  color: var(--color-blue);
  text-decoration: none;
}

a.correction-type:hover {
  background: var(--color-blue);
  color: var(--color-button-text);
}

.correction-notice {
  font-style: italic;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.correction-notice p {
  margin: 0;
}

.correction-notice p + p {
  margin-top: 0.5rem;
}

.correction-notice .correction-type {
  font-style: normal;
  margin-right: 0.5rem;
}

.correction-diff {
  font-size: 1.05rem;
  line-height: 1.7;
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.correction-diff del {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.12);
  text-decoration: line-through;
}

.correction-diff ins {
  color: #15803d;
  background: rgba(21, 128, 61, 0.14);
  text-decoration: none;
}

:root[data-theme="dark"] .correction-diff del {
  color: #f3a5a5;
  background: rgba(243, 165, 165, 0.16);
}

:root[data-theme="dark"] .correction-diff ins {
  color: #8fe0ae;
  background: rgba(143, 224, 174, 0.16);
}

.corrections-group {
  margin-bottom: 0.5rem;
}

.corrections-group-heading {
  margin-bottom: 0.5rem;
}

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

.corrections-list-item {
  border-bottom: 1px solid var(--color-border);
}

.corrections-list-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--color-text);
}

.corrections-list-headline {
  flex: 1;
  min-width: 200px;
}

.corrections-list-link:hover .corrections-list-headline {
  color: var(--color-blue);
}

.corrections-list-date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.related-articles {
  max-width: var(--page-width);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Generic page sections */

.section-page-header {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
}

.eyebrow {
  display: inline-block;
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.prose-section {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.prose-section h2 {
  margin-top: 1.5rem;
  font-size: 1.3rem;
}

.source-tier-group {
  margin-bottom: 1.5rem;
}

.source-list {
  columns: 2;
  column-gap: 2rem;
}

.corrections-list li {
  margin-bottom: 0.5em;
}

.empty-state {
  color: var(--color-text-muted);
}

.search-page-form {
  display: flex;
  gap: 0.5rem;
  max-width: var(--content-width);
  margin: 0 auto 2rem;
}

.search-page-form input[type="search"] {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1rem;
  height: 2.5rem;
  padding: 0 0.7em;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.search-page-form button {
  height: 2.5rem;
}

.error-page {
  padding: 3rem 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  margin-top: 3rem;
}

.site-footer-columns {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(5, 1fr);
  gap: 2rem;
}

.site-footer-heading {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--color-blue);
}

.site-footer-brand .site-logo {
  color: var(--color-blue);
}

.site-footer-tagline {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 26ch;
}

.site-footer-social {
  display: flex;
  gap: 0.9rem;
  margin-top: 1rem;
}

.site-footer-social a {
  color: var(--color-text-muted);
  line-height: 0;
}

.site-footer-social a:hover {
  color: var(--color-blue);
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon-facebook {
  width: 20px;
  height: 20px;
}

.site-footer-bottom {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.site-footer-bottom p {
  margin: 0;
}

/* Responsive */

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

  .site-footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-columns {
    grid-template-columns: 1fr;
  }

  .lead-headline {
    font-size: 1.6rem;
  }

  .article-headline {
    font-size: 1.6rem;
  }

  .site-search-desktop {
    display: none;
  }

  .site-subnav {
    display: none;
  }

  .a11y-menu {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .site-header-bar {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .site-logo {
    min-width: 0;
    flex-shrink: 1;
  }

  .site-logo-text {
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header-actions {
    flex-shrink: 0;
  }

  .source-list {
    columns: 1;
  }
}
