:root {
  --bg: #f7f9f7;
  --surface: #ffffff;
  --surface-subtle: #eef3ef;
  --ink: #0e1b20;
  --ink-soft: #26383e;
  --muted: #46585c;
  --line: #d3dcd6;
  --line-strong: #0e1b20;
  --accent: #0f5c44;
  --accent-hover: #0a4332;
  --accent-on-dark: #c9ee76;
  --caution: #8a4b08;
  --caution-bg: #fdf5e7;
  --focus: #0f5c44;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* Strict 3-size body scale (exempt: h1 display & brand wordmark) */
  --text-display: clamp(2.375rem, 4.5vw, 3.75rem);
  --text-heading: clamp(1.5rem, 2.2vw, 1.875rem);
  --text-body: 1.0625rem;
  --text-sm: 0.875rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}

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

button, input, select {
  font: inherit;
}

button, a, input, select, summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4, p, figure, ul, ol {
  margin-top: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

p, li, blockquote, figcaption {
  text-wrap: pretty;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

code {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  background-color: var(--surface-subtle);
  color: var(--ink);
  padding: 0.1em 0.38em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

time,
.dateline,
.result-count,
.check-progress,
.article-meta,
table {
  font-variant-numeric: tabular-nums;
}

.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;
}

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 36px;
}

.skip {
  position: fixed;
  top: -120px;
  left: 16px;
  background: var(--ink);
  color: var(--surface);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 100;
}

.skip:focus {
  top: 14px;
}

/* State-aware sticky header */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  container-type: scroll-state;
  container-name: site-header;
}

.header {
  background-color: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

@container site-header scroll-state(stuck: top) {
  .header {
    background-color: rgba(247, 249, 247, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
    box-shadow: 0 4px 18px rgba(14, 27, 32, 0.05);
  }
}

.header-sticky.is-stuck .header {
  background-color: rgba(247, 249, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(14, 27, 32, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-icon {
  width: 28px;
  height: 31px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  height: 2px;
  background-color: var(--accent);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-trigger {
  align-items: center;
  gap: 8px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.search-trigger:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.search-trigger kbd {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

/* Shared editorial controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--ink);
  border: 1px solid var(--ink);
  color: var(--surface);
  border-radius: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 12px 22px;
  min-height: 44px;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.button:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

.button.light {
  background-color: var(--accent-on-dark);
  border-color: var(--accent-on-dark);
  color: var(--ink);
}

.button.light:hover {
  background-color: #d9f696;
  border-color: #d9f696;
  color: var(--ink);
}

.button.secondary {
  background-color: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.secondary:hover {
  background-color: var(--surface-subtle);
  border-color: var(--ink);
  color: var(--ink);
}

.link-button {
  background: transparent;
  border: 0;
  padding: 8px 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 180ms var(--ease);
}

.link-button:hover {
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color 180ms var(--ease), text-decoration-color 180ms var(--ease);
}

.text-link:hover {
  color: var(--accent-hover);
}

.text-link.light-link {
  color: var(--accent-on-dark);
}

.text-link.light-link:hover {
  color: #ffffff;
}

.meta-line {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}

.meta-line .status-text {
  color: var(--accent);
  font-weight: 600;
}

/* Front page broadsheet masthead */
.masthead {
  padding-top: 4px;
  padding-bottom: 52px;
}

.dateline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-top: 2px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}

.dateline-meta {
  color: var(--ink-soft);
}

.masthead-lead {
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
}

.masthead-lead h1 {
  max-width: 24ch;
  margin-bottom: 12px;
}

.lead-copy {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.55;
}

/* Immediate front-page broadsheet grid */
.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 0;
  padding-top: 26px;
}

.lead-story {
  padding-right: 44px;
  border-right: 1px solid var(--line);
}

.lead-story h2 {
  margin-bottom: 14px;
  max-width: 30ch;
}

.verdict-line {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--caution);
  padding-left: 12px;
  border-left: 3px solid var(--caution);
  margin-bottom: 16px;
}

.lead-story > p:not(.verdict-line) {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 18px;
}

.layer-diagram {
  margin: 22px 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.layer-item {
  padding-top: 14px;
  border-top: 3px solid var(--line);
}

.layer-active {
  border-top-color: var(--accent);
}

.layer-stable {
  border-top-color: var(--ink-soft);
}

.layer-caution {
  border-top-color: var(--caution);
}

.layer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.layer-glyph {
  flex-shrink: 0;
}

.layer-active .layer-glyph,
.layer-active .layer-state {
  color: var(--accent);
}

.layer-stable .layer-glyph,
.layer-stable .layer-state {
  color: var(--muted);
}

.layer-caution .layer-glyph,
.layer-caution .layer-state {
  color: var(--caution);
}

.layer-state {
  font-size: var(--text-sm);
  font-weight: 600;
}

.layer-title {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.25;
}

.layer-detail {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0;
}

.layer-diagram figcaption {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}

.lead-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.source-note {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 0;
}

/* Right column: front-page ledger */
.ledger-column {
  padding-left: 44px;
}

.column-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.column-head h2 {
  margin-bottom: 0;
}

.ledger-list .feed-item:first-child {
  border-top: 1px solid var(--line);
}

.ledger-list .feed-item {
  padding: 16px 0;
}

.ledger-list .feed-date {
  margin-bottom: 8px;
}

.feed-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.feed-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
}

.feed-date time {
  font-weight: 600;
  color: var(--ink);
}

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

.feed-content h3 {
  margin-bottom: 8px;
}

.feed-content h3 a:hover {
  color: var(--accent);
}

.feed-content p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 62ch;
}

.feed-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  font-weight: 500;
}

.feed-links a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(15, 92, 68, 0.35);
}

.feed-links a:hover {
  text-decoration-color: var(--accent);
}

/* Full-bleed dark editorial contrast band */
.action-band {
  background-color: var(--ink);
  color: var(--surface);
  padding: 68px 0;
}

.action-band-head {
  max-width: 60ch;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.action-band-head h2 {
  color: var(--surface);
  margin-bottom: 12px;
}

.action-band-head p {
  color: #c2d1cc;
  margin-bottom: 0;
}

.action-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-top: 36px;
}

.action-col:first-child {
  padding-right: 48px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.action-col:last-child {
  padding-left: 48px;
}

.action-col h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 500;
  color: var(--surface);
  margin-bottom: 12px;
}

.action-col > p {
  color: #c2d1cc;
  max-width: 48ch;
  margin-bottom: 24px;
}

.action-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.action-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--text-body);
  color: #e6efeb;
}

.action-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-on-dark);
}

/* Sections below the fold */
.section {
  padding: 64px 0;
}

.section-ruled {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 58ch;
}

/* Asymmetric editorial guide index */
.editorial-index {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.guide-feature {
  padding: 32px 44px 32px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-feature h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 500;
  line-height: 1.16;
  margin-bottom: 16px;
}

.guide-feature p:not(.meta-line) {
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 24px;
  flex: 1;
}

.guide-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.guide-row {
  padding: 28px 0 28px 44px;
}

.guide-row + .guide-row {
  border-top: 1px solid var(--line);
}

.guide-row h3 {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: 10px;
}

.guide-row p:not(.meta-line) {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 16px;
}

/* Responsive data tables (container-query driven) */
.table-wrapper {
  overflow-x: auto;
  max-inline-size: 100%;
  container-type: inline-size;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: var(--text-sm);
}

.data-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}

.data-table thead th {
  background-color: var(--surface-subtle);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.data-table tbody th a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

.data-table tbody th a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.data-table tbody tr {
  transition: background-color 160ms var(--ease);
}

.data-table tbody tr:hover {
  background-color: var(--bg);
}

.data-table code,
.provider-card .scope code,
.glossary-card .meta-line code {
  background-color: transparent;
  padding: 0;
  color: var(--ink);
}

.table-status {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.provider-table {
  --label-2: "Category";
  --label-3: "Documented scope";
  --label-4: "Mechanism";
  --label-5: "Status";
}

.inventory-table {
  --label-2: "What to check";
  --label-3: "Likely owner";
}

@container (width < 580px) {
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table tbody th,
  .data-table tbody td {
    padding: 6px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .data-table tbody th {
    font-family: var(--font-display);
    font-size: var(--text-body);
    padding-bottom: 8px;
  }

  .data-table td:nth-child(2)::before {
    content: var(--label-2) ": ";
    font-weight: 600;
    color: var(--muted);
  }

  .data-table td:nth-child(3)::before {
    content: var(--label-3) ": ";
    font-weight: 600;
    color: var(--muted);
  }

  .data-table td:nth-child(4)::before {
    content: var(--label-4) ": ";
    font-weight: 600;
    color: var(--muted);
  }

  .data-table td:nth-child(5)::before {
    content: var(--label-5) ": ";
    font-weight: 600;
    color: var(--muted);
  }
}

/* FAQ Accordion */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.faq-intro h2 {
  margin-bottom: 12px;
}

.faq-intro p {
  color: var(--muted);
  margin-bottom: 18px;
}

.accordion {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary::before {
  content: "";
  inline-size: 15px;
  block-size: 15px;
  flex-shrink: 0;
  background-color: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 5.5 8 10l4.5-4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 5.5 8 10l4.5-4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.faq-item[open] > summary::before {
  rotate: 0deg;
}

.faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.faq-item:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item summary::before {
    transition: rotate 200ms var(--ease);
  }

  .faq-item::details-content {
    transition-property: block-size, content-visibility, display;
    transition-duration: 240ms;
    transition-timing-function: var(--ease);
    transition-behavior: allow-discrete;
  }
}

.faq-answer {
  padding: 0 0 22px 27px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.faq-answer p {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Principle colophon */
.principle-band {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.principle-band strong {
  color: var(--ink);
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: var(--surface-subtle);
  border-top: 1px solid var(--line);
  padding: 44px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--muted);
  max-width: 44ch;
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Subpages: Article, Providers, Updates, Glossary, Info */
.article-head {
  padding: 24px 0 32px;
  border-top: 2px solid var(--line-strong);
  margin-top: 4px;
}

.article-head h1 {
  max-width: 24ch;
  margin-bottom: 14px;
}

.article-head .subtitle {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 20px;
}

.breadcrumb {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb li[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.article-meta {
  font-size: var(--text-sm);
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(0, 260px);
  justify-content: space-between;
  gap: 56px;
  padding-bottom: 72px;
}

.prose-narrow {
  max-width: 65ch;
  padding-bottom: 72px;
}

.answer-box {
  background-color: var(--surface-subtle);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.answer-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.answer-box p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  max-width: 62ch;
}

.prose section {
  margin-bottom: 44px;
}

.prose h2 {
  margin-bottom: 16px;
}

.prose h3 {
  margin: 24px 0 10px;
}

.prose p,
.prose li {
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 65ch;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin: 10px 0;
}

.prose a:not(.button) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15, 92, 68, 0.35);
}

.prose a:not(.button):hover {
  text-decoration-color: var(--accent);
}

.prose .source-link {
  font-size: var(--text-sm);
  font-weight: 500;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  height: fit-content;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.toc h2 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.toc a {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.45;
}

.toc a:hover {
  color: var(--accent);
}

.toc-note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--muted);
}

.toc-note a {
  display: inline;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
  padding: 22px 24px;
  margin: 28px 0;
}

.callout p {
  margin: 8px 0 0;
}

.sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.sequence div {
  padding: 20px;
  background-color: var(--surface);
}

.sequence div + div {
  border-left: 1px solid var(--line);
}

.sequence b {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.sequence span {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--muted);
}

.timeline {
  border-left: 1px solid var(--line-strong);
  margin: 32px 0 32px 6px;
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background-color: var(--accent);
  border: 3px solid var(--bg);
  box-sizing: content-box;
  left: -36px;
  top: 4px;
  border-radius: 50%;
}

.timeline-item time {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-item h3 {
  margin: 0 0 8px;
}

.timeline-item p {
  margin-bottom: 0;
}

/* Interactive migration checklist */
.check-progress {
  display: none;
  background-color: var(--ink);
  color: var(--surface);
  align-items: center;
  gap: 20px;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: var(--text-sm);
  font-weight: 500;
}

.js .check-progress {
  display: flex;
}

.check-progress progress {
  flex: 1;
  accent-color: var(--accent-on-dark);
  height: 7px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--surface);
  padding: 20px;
  border: 1px solid var(--line);
  margin: 10px 0;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.check-item:hover {
  border-color: var(--ink);
}

.check-item input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.check-item b {
  display: block;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.check-item .owner {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  margin: 4px 0 6px;
}

.check-item .detail {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

.check-item:has(input:checked) {
  background-color: var(--surface-subtle);
  border-color: var(--accent);
}

.check-note {
  font-size: var(--text-sm);
  color: var(--muted);
}

.checklist-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.questionnaire {
  border-top: 2px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
  padding: 24px;
}

.questionnaire pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.copy-status {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  margin-left: 14px;
}

.related {
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
  margin-top: 48px;
}

.related h2 {
  margin-bottom: 16px;
}

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

.related-list li {
  margin: 10px 0;
}

/* Segmented filter controls (non-button selection control) */
.intro-callout {
  border-left: 3px solid var(--accent);
  background-color: var(--surface-subtle);
  padding: 20px 24px;
  font-size: var(--text-body);
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.provider-top h2 {
  margin-bottom: 6px;
}

.provider-top .meta-line {
  margin-bottom: 0;
}

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.segmented {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: var(--surface);
  overflow: hidden;
}

.segmented a {
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.segmented a:last-child {
  border-right: 0;
}

.segmented a:hover {
  color: var(--ink);
  background-color: var(--bg);
}

.segmented a[aria-current="true"] {
  background-color: var(--ink);
  color: var(--surface);
  font-weight: 600;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 440px;
  min-width: 240px;
}

.filter-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: var(--surface);
  padding: 8px 14px;
  font-size: var(--text-sm);
  color: var(--ink);
}

.filter-search input[type="search"]:focus {
  border-color: var(--ink);
}

.result-count {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 24px;
}

/* Provider ledger grid */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.provider-card {
  background-color: var(--surface);
  border-top: 2px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
}

.provider-top {
  margin-bottom: 14px;
}

.provider-card h2 {
  margin-bottom: 0;
}

.provider-card .scope {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 500;
}

.provider-card > p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex: 1;
}

.provider-action {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}

.provider-action strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.provider-action p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 0;
}

.source-line {
  font-size: var(--text-sm);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.source-line a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Updates & Glossary */
.wide-feed {
  max-width: 860px;
  margin-bottom: 64px;
  border-top: 1px solid var(--line-strong);
}

.wide-feed .feed-item {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
}

.wide-feed .feed-date {
  flex-direction: column;
  gap: 4px;
}

.glossary-list {
  border-top: 1px solid var(--line-strong);
}

.glossary-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.glossary-card h2 {
  margin-bottom: 12px;
}

.glossary-summary {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 12px;
  max-width: 62ch;
}

.glossary-card p:not(.glossary-summary):not(.meta-line) {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 62ch;
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  background-color: var(--surface);
  border-top: 2px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.js-only {
  display: none;
}

.js .js-only {
  display: inline-flex;
}

/* Search modal dialog with top-layer entry/exit animation */
dialog.search-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(78dvh, 640px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(14, 27, 32, 0.24);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.search-dialog {
    transform: translateY(-8px) scale(0.98);
  }
}

dialog.search-dialog[open] {
  display: flex;
  flex-direction: column;
}

:is(dialog.search-dialog[open]):where(:not([data-closing])) {
  opacity: 1;
}

@starting-style {
  :is(dialog.search-dialog[open]):where(:not([data-closing])) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :is(dialog.search-dialog[open]):where(:not([data-closing])) {
    transform: translateY(0) scale(1);
  }

  @starting-style {
    :is(dialog.search-dialog[open]):where(:not([data-closing])) {
      transform: translateY(-8px) scale(0.98);
    }
  }
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog.search-dialog::backdrop {
  background-color: rgba(14, 27, 32, 0);
  overscroll-behavior: contain;
  transition-property: background-color, display, overlay;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
  transition-behavior: allow-discrete;
}

:is(dialog.search-dialog[open]):where(:not([data-closing]))::backdrop {
  background-color: rgba(14, 27, 32, 0.52);
}

@starting-style {
  :is(dialog.search-dialog[open]):where(:not([data-closing]))::backdrop {
    background-color: rgba(14, 27, 32, 0);
  }
}

.search-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
}

.search-dialog-head h2 {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  margin: 0;
}

.search-close {
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  transition: background-color 160ms var(--ease);
}

.search-close:hover {
  background-color: var(--surface-subtle);
}

.search-dialog-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
}

.search-dialog-body input[type="search"] {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: var(--surface);
  padding: 8px 14px;
  color: var(--ink);
  font-size: var(--text-body);
}

.search-dialog-body input[type="search"]:focus {
  border-color: var(--ink);
}

.search-hint {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 10px 0 14px;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.search-results a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.search-results a:hover {
  color: var(--accent);
}

.search-results span {
  font-size: var(--text-sm);
  color: var(--muted);
  white-space: nowrap;
}

/* Tablet & responsive breakpoints */
@media (max-width: 1050px) {
  .wrap {
    padding-inline: 24px;
  }

  .nav {
    gap: 18px;
  }

  .lead-story {
    padding-right: 30px;
  }

  .ledger-column {
    padding-left: 30px;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 40px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    background-color: var(--bg);
    padding: 16px 24px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(14, 27, 32, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 0;
  }

  .nav a[aria-current="page"]::after {
    inset-block-end: 0;
  }

  .search-trigger kbd {
    display: none;
  }

  .front-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lead-story {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
  }

  .ledger-column {
    padding-left: 0;
  }

  .action-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .action-col:first-child {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .action-col:last-child {
    padding-left: 0;
  }

  .editorial-index {
    grid-template-columns: 1fr;
  }

  .guide-feature {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-row {
    padding: 24px 0;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-intro {
    position: static;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }

  .wide-feed .feed-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wide-feed .feed-date {
    flex-direction: row;
    gap: 10px;
  }

  .sequence {
    grid-template-columns: 1fr;
  }

  .sequence div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-inline: 18px;
  }

  .dateline {
    flex-direction: column;
    gap: 4px;
  }

  .masthead {
    padding-bottom: 48px;
  }

  .masthead-lead {
    padding: 24px 0 22px;
  }

  .layer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .action-band {
    padding: 48px 0;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segmented a {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
  }

  .filter-search {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .principle-band,
  .footer-top,
  .footer-bottom {
    flex-direction: column;
  }

  .faq-answer {
    padding-left: 0;
  }

  .brand-name {
    font-size: 1.125rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  dialog.search-dialog,
  dialog.search-dialog::backdrop {
    transition-duration: 80ms !important;
  }
}

@media print {
  .header-sticky,
  .footer,
  .toc,
  .checklist-actions,
  .js-only,
  .filter-controls,
  .skip,
  .search-dialog {
    display: none !important;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .article-layout {
    display: block;
    padding: 0;
  }

  .prose section,
  .check-item {
    break-inside: avoid;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000 !important;
  }
}
