@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/public-sans-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  /* System from the Claude Design project, 2026-09-21. Legacy token names are kept as aliases so the
     article, records, and static-page rules below keep working until they are restyled. */
  --ink: #14181C;
  --ink-2: #242A30;
  --ink-3: #2A3138;
  --text: #2B3237;
  --soft: #4A5158;
  --muted: #7A8189;
  --muted-dark: #A9B0B7;
  --blue: #1B4DB1;
  --blue-deep: #14357C;
  --blue-bar: #4E8CF5;
  --yellow: #F2C230;
  --paper: #ffffff;
  --sand: #F4F2ED;
  --sand-2: #EDEBE5;
  --sand-3: #FAF9F5;
  --rule: #E6E3DB;
  --rule-2: #DCD8CE;
  --slot-bg: #F1EFE9;
  --slot-border: #C3BFB4;
  --slot-text: #8B8478;
  --slot-bg-2: #EBE8E1;
  --slot-note: #A29B8D;
  --rule-3: #E0DCD3;
  --red: #B3341A;
  --muted-dark-2: #9AA2A9;

  --ink-soft: var(--soft);
  --ink-mute: var(--muted);
  --green: var(--blue);
  --green-deep: var(--blue-deep);
  --brass: var(--yellow);
  --brass-soft: var(--sand);
  --paper-tint: var(--sand);
  --rule-strong: var(--rule-2);

  --display: 'Bricolage Grotesque Variable', 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Public Sans Variable', 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --font: var(--body);
  --measure: 66ch;
  --gutter: clamp(1rem, 3vw, 1.75rem);
  --content: 1000px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  text-wrap: balance;
}

/* Masthead and footer, shared with the homepage */

.masthead {
  background: var(--ink);
  color: #fff;
}

.masthead-inner {
  width: min(100% - 2 * var(--gutter), var(--content) + 56px);
  margin-inline: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.2px;
}

.wordmark:hover {
  color: #fff;
}

.wordmark-mark {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
}

.masthead-nav {
  display: flex;
  gap: 26px;
  font-size: 0.845rem;
}

.masthead-nav a {
  color: #C3C9CF;
  text-decoration: none;
}

.masthead-nav a:hover,
.masthead-nav a[aria-current='page'] {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 3.5px;
  padding: 10px 6px;
  margin-right: -6px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: #fff;
}

.footer {
  background: var(--ink);
  color: #fff;
  margin-top: clamp(3rem, 8vw, 6rem);
}

.footer-inner {
  width: min(100% - 2 * var(--gutter), var(--content) + 56px);
  margin-inline: auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-line,
.footer p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 20px;
  font-size: 0.78rem;
}

.footer-nav a {
  color: var(--muted-dark);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .masthead-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 10;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid var(--ink-3);
    padding: 6px 0 10px;
  }

  .masthead-nav[data-open='true'] {
    display: flex;
  }

  .masthead-nav a {
    padding: 10px var(--gutter);
    font-size: 0.95rem;
  }
}

/* Reserved advertising placements: labelled, empty, fixed size so a network filling one
   later moves nothing. Same markup and look as the homepage slots. */

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--mono);
}

.ad-slot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  border: 1.5px dashed var(--slot-border);
  border-radius: 8px;
  background: var(--slot-bg);
  contain: layout;
}

.ad-band {
  background: var(--sand-2);
  border-bottom: 1px solid #DDD9D0;
  padding: 14px var(--gutter);
  display: flex;
  justify-content: center;
}

.ad-band .ad-slot {
  border-radius: 6px;
  background: #E5E2DA;
}

.ad-slot-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slot-text);
}

.ad-slot-size {
  font-size: 0.75rem;
  color: var(--slot-text);
}

.ad-slot-note {
  font-size: 0.66rem;
  color: var(--slot-note);
}

.ad-end {
  margin-top: 28px;
}

.article-body .ad-slot {
  margin: 28px auto;
}

/* Phone-only sticky anchor, dismissible */

.ad-anchor {
  display: none;
}

@media (max-width: 640px) {
  .ad-anchor {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    height: 58px;
    background: #E2DFD7;
    border-top: 1px solid #C9C4B8;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ad-anchor-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .ad-anchor .ad-slot-label {
    font-size: 0.56rem;
    letter-spacing: 1.1px;
  }

  .ad-anchor .ad-slot-size {
    font-size: 0.69rem;
  }

  .ad-anchor-close {
    position: absolute;
    right: 6px;
    top: 4px;
    width: 32px;
    height: 32px;
    font: inherit;
    font-size: 0.8rem;
    color: var(--slot-text);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  body.has-anchor main {
    padding-bottom: 58px;
  }
}

/* Static pages: About, Privacy, Terms */

.page {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.page-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.024em;
  font-weight: 560;
  text-wrap: balance;
}

.page-dek {
  margin: 0.9rem 0 0;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.page-meta {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.page-body {
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-body > * {
  margin: 0;
}

.page-body > * + * {
  margin-top: 1em;
}

.page-body h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.016em;
  font-weight: 560;
  margin-top: 2.2em;
}

.page-body p,
.page-body ul,
.page-body ol {
  max-width: var(--measure);
}

.page-body ul,
.page-body ol {
  padding-left: 1.4em;
}

.page-body li + li {
  margin-top: 0.4em;
}

.page-body li::marker {
  color: var(--green);
}

.page-body code {
  font-family: inherit;
  font-size: 0.94em;
  background: var(--paper-tint);
  border-radius: 3px;
  padding: 0.08em 0.4em;
  color: var(--green-deep);
}

/* Generated records directory */

.records-page-content {
  width: min(100% - 2 * var(--gutter), var(--content));
}

.records-page-content .page-head,
.records-page-content .page-body > p,
.records-page-content .page-body > ul,
.records-page-content .page-body > h2 {
  max-width: 52rem;
}

.records-generated > h2 {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.record-group + .record-group {
  margin-top: 2.2rem;
}

.record-group h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.records-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
}

.records-page-table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.4;
}

.records-page-table th,
.records-page-table td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.records-page-table thead th {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 560;
  background: var(--paper-tint);
}

.records-page-table tbody th {
  font-weight: 600;
}

.records-page-table tr:last-child th,
.records-page-table tr:last-child td {
  border-bottom: 0;
}

.record-checked {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-mute);
  font-size: 0.8rem;
  white-space: nowrap;
}

.muted {
  color: var(--ink-mute);
}

/* Data-led compressor directory */

.compressor-directory {
  margin-top: 1.5rem;
}

.directory-count {
  color: var(--ink-mute);
  font-size: 0.78rem;
}

.compressor-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.compressor-directory-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04);
}

.record-brand {
  margin: 0;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compressor-directory-card h3 {
  margin: 4px 0 12px;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.15;
  text-wrap: balance;
}

.record-output {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.record-output span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.compressor-directory-card dl {
  margin: 0;
}

.compressor-directory-card dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.compressor-directory-card dt {
  color: var(--ink-mute);
  font-size: 0.72rem;
}

.compressor-directory-card dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.record-treatment {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.record-treatment.is-comparable {
  color: var(--blue-deep);
  background: #EDF3FF;
}

.record-treatment.is-abstention {
  color: #7F2C1B;
  background: #FFF0EB;
}

.record-source {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 14px 0 0;
  font-size: 0.78rem;
}

.record-source span {
  color: var(--ink-mute);
}

.record-detail-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

/* Three noindex exact-model page experiments */

.record-detail {
  width: min(100% - 2 * var(--gutter), 900px);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) 0 4rem;
}

.record-detail-head {
  max-width: 700px;
  margin-bottom: 24px;
}

.record-detail-head h1 {
  margin: 5px 0 10px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.record-detail-head > p:last-child {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.record-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.record-evidence,
.record-treatment-panel,
.record-matcher,
.record-limits {
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04);
}

.record-evidence {
  padding: 24px;
  background: var(--paper);
}

.record-detail-output {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.record-detail-output span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.record-evidence dl {
  margin: 0;
}

.record-evidence dl > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}

.record-evidence dt {
  color: var(--ink-mute);
  font-size: 0.78rem;
}

.record-evidence dd {
  margin: 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.source-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition-property: background-color, transform;
  transition-duration: 140ms;
  transition-timing-function: var(--ease);
}

.source-button:hover {
  color: #fff;
  background: var(--blue-deep);
}

.source-button:active {
  transform: scale(0.96);
}

.record-treatment-panel {
  padding: 24px;
  color: #fff;
  background: var(--ink);
}

.record-treatment-panel.is-abstention {
  background: #522319;
}

.record-treatment-panel .section-label {
  color: var(--blue-on-dark, #8FB6FF);
}

.record-treatment-panel h2 {
  margin: 6px 0 12px;
  font-size: 1.5rem;
  line-height: 1.12;
  text-wrap: balance;
}

.record-treatment-panel p:last-child {
  margin: 0;
  color: #D2D7DC;
  font-size: 0.9rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.record-matcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
  background: var(--sand);
}

.record-matcher h2,
.record-limits h2 {
  margin: 5px 0 8px;
  font-size: 1.35rem;
  line-height: 1.2;
  text-wrap: balance;
}

.record-matcher p:last-child,
.record-limits p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.record-matcher .pairing-form {
  align-content: center;
}

.record-matcher .button-primary {
  transition-property: background-color, transform;
  transition-duration: 140ms;
  transition-timing-function: var(--ease);
}

.record-matcher .button-primary:active {
  transform: scale(0.96);
}

.record-limits {
  margin-top: 18px;
  padding: 20px 24px;
  background: var(--paper);
}

.record-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.84rem;
}

.record-related a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  text-decoration: none;
}

/* Shared layout: a 640px measure beside a 300px sticky rail, as on the homepage */

.content-grid {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 640px) 300px;
  gap: 40px;
  align-items: start;
  padding: 30px 0 34px;
}

.article-page:not(.has-ad-placeholders) .content-grid {
  grid-template-columns: minmax(0, 1fr);
  width: min(100% - 2 * var(--gutter), 720px);
}

.rail {
  min-width: 0;
}

.rail-sticky {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-label {
  margin: 0 0 8px;
  font-family: var(--body);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slot-text);
}

.card-kicker {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.reading-progress {
  height: 3px;
  background: var(--ink-2);
}

.reading-progress-bar {
  height: 100%;
  width: 0;
  background: var(--yellow);
}

/* Matcher forms on static pages: a plain GET to the homepage matcher */

.pairing-form {
  display: grid;
  gap: 10px;
}

.pairing-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.pairing-field > span:first-child {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  pointer-events: none;
}

.select-wrap select {
  width: 100%;
  appearance: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 10px 32px 10px 12px;
  min-height: 44px;
  cursor: pointer;
}

.button-primary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.2px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  transition: background-color 140ms var(--ease), transform 100ms var(--ease);
}

.button-primary:hover {
  background: var(--blue-deep);
}

.button-primary:active {
  transform: scale(0.96);
}

/* Source-backed category charts */

.data-directory { margin: 26px 0 40px; }

.data-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.data-summary-card {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(20, 24, 28, 0.08), 0 7px 20px rgba(20, 24, 28, 0.06);
}

.data-summary-card strong, .data-summary-card span { display: block; }
.data-summary-card strong {
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.data-summary-card span {
  margin-top: 5px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}

.data-table-section { margin-top: 30px; }
.data-table-section > h2 { margin: 0 0 12px; font-size: 1.35rem; }

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(20, 24, 28, 0.07), 0 10px 28px rgba(20, 24, 28, 0.05);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.4;
}
.data-table th, .data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  background: var(--sand-3);
}
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfaf7; }
.data-table th[scope='row'] { min-width: 155px; font-family: var(--body); font-weight: 700; }
.data-table .record-brand {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table .num {
  white-space: nowrap;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.data-table .record-checked { display: block; margin-top: 4px; font-size: 0.68rem; color: var(--muted); }
.data-table td[data-label='Source'] a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.directory-matcher {
  margin: 18px 0 34px;
  padding: 20px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-l);
  background: var(--sand-3);
  box-shadow: 0 1px 2px rgba(20, 24, 28, 0.08), 0 10px 24px rgba(20, 24, 28, 0.05);
}
.directory-matcher .pairing-form { margin: 0; }

.matcher-inline {
  border: 1px solid var(--rule-3);
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
}

.matcher-inline-head {
  background: var(--ink);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.matcher-inline-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.3px;
  color: #fff;
}

.matcher-inline-sub {
  margin: 1px 0 0;
  font-size: 0.78rem;
  color: var(--muted-dark-2);
}

.matcher-inline-badge {
  flex: none;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.matcher-inline .pairing-form {
  padding: 16px 18px;
  background: var(--sand-3);
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.pairing-card {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}

.pairing-card-head {
  background: var(--ink);
  padding: 12px 14px;
}

.pairing-card-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
}

.pairing-card-sub {
  margin: 1px 0 0;
  font-size: 0.72rem;
  color: var(--muted-dark-2);
}

.pairing-card .pairing-form {
  padding: 12px 14px;
  gap: 9px;
}

/* Article */

.article {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--slot-text);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--slot-border);
}

.article-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.875rem, 4.5vw, 2.625rem);
  line-height: 1.05;
  letter-spacing: -0.038em;
  font-weight: 800;
  text-wrap: pretty;
}

.article-dek {
  margin: 0 0 16px;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--soft);
  text-wrap: pretty;
}

.article-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #EFECE4;
  font-size: 0.78rem;
  color: var(--muted);
}

.article-figure {
  margin: 20px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.article-figure figcaption {
  margin: 8px 0 0;
  font-size: 0.75rem;
  font-style: italic;
  color: #9A9385;
}

.toc {
  background: var(--sand);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 26px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Body copy */

.article-body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}

.article-body > * {
  margin: 0;
}

.article-body > * + * {
  margin-top: 15px;
}

.article-body h2 {
  font-size: 1.6875rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin-top: 34px;
  text-wrap: pretty;
  scroll-margin-top: 16px;
}

.article-body h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
  margin-top: 26px;
}

.article-body p {
  text-wrap: pretty;
}

.article-body strong {
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  line-height: 1.7;
}

.article-body li + li {
  margin-top: 5px;
}

.article-body li::marker {
  color: var(--blue);
}

.article-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--sand);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ink);
}

.article-body pre {
  overflow-x: auto;
  background: var(--ink);
  border-radius: 9px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--yellow);
}

.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article-body blockquote {
  margin: 0;
  border-left: 4px solid var(--yellow);
  padding: 4px 0 4px 16px;
}

.article-body blockquote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 28px 0;
}

.table-wrap {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow-x: auto;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}

.article-body th,
.article-body td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-top: 1px solid #EFECE4;
}

.article-body thead th {
  border-top: 0;
  background: var(--sand);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--slot-text);
}

.article-body tbody th {
  font-weight: 600;
  color: var(--ink);
}

.article-body td.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.article-body th[align='right'],
.article-body td[align='right'] {
  text-align: right;
}

.article-body th[align='center'],
.article-body td[align='center'] {
  text-align: center;
}

/* FAQs, sources, continue reading */

.faq {
  margin: 34px 0 28px;
}

.faq > h2 {
  margin: 0 0 16px;
  font-size: 1.6875rem;
  letter-spacing: -0.03em;
}

.faq-item {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
}

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

.faq-item h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.article-sources {
  background: var(--sand);
  border: 1px solid var(--rule);
  border-radius: 11px;
  padding: 18px;
  margin: 28px 0 26px;
}

.article-sources p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.continue h2 {
  margin: 0 0 14px;
  font-size: 1.6875rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.continue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.continue-card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.continue-image {
  display: block;
  height: 104px;
  background: var(--slot-bg);
  border-bottom: 1px solid var(--rule);
}

.continue-image img,
.lead-image img,
.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.continue-copy {
  display: block;
  padding: 11px 13px;
}

.continue-title {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: pretty;
}

.continue-card:hover .continue-title,
.card:hover .card-title,
.lead:hover .lead-title {
  color: var(--blue);
}

/* Archive */

.index-hero {
  background: var(--sand);
  padding: 30px var(--gutter) 24px;
  border-bottom: 1px solid var(--rule);
}

.index-hero-inner {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.index-hero h1 {
  margin: 0 0 8px;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.0375em;
  font-weight: 800;
}

.index-hero p {
  margin: 0 0 18px;
  font-size: 1rem;
  color: var(--soft);
  max-width: 560px;
  text-wrap: pretty;
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  color: #3B423D;
  cursor: pointer;
}

.pill:hover {
  border-color: var(--ink);
}

.pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.feed {
  min-width: 0;
}

.lead {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #EFECE4;
  margin-bottom: 22px;
  text-decoration: none;
  color: inherit;
}

.lead-image {
  display: block;
  height: 180px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--slot-bg);
}

.lead-copy {
  display: block;
  min-width: 0;
}

.lead-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.lead-kicker .card-kicker {
  color: var(--slot-text);
}

.badge-latest {
  background: var(--blue);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
}

.lead-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
  text-wrap: pretty;
}

.lead-description {
  display: block;
  font-size: 0.906rem;
  line-height: 1.5;
  color: var(--soft);
  margin-bottom: 10px;
  text-wrap: pretty;
}

.lead-meta {
  display: block;
  font-size: 0.75rem;
  color: #9A9385;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image {
  display: block;
  height: 130px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--slot-bg);
  margin-bottom: 10px;
}

.card-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 4px 0 5px;
  text-wrap: pretty;
}

.card-description {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

.card-grid-ad {
  grid-column: 1 / -1;
}

.ad-infeed {
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sand-3);
}

.ad-infeed-thumb {
  flex: none;
  width: 120px;
  height: 100px;
  border: 1.5px dashed var(--slot-border);
  border-radius: 7px;
  background: var(--slot-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #9A9385;
}

.ad-infeed-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

/* Responsive */

@media (max-width: 960px) {
  .data-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .compressor-directory-grid {
    grid-template-columns: 1fr 1fr;
  }

  .record-detail-grid,
  .record-matcher {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rail-sticky {
    position: static;
  }

  .ad-rail,
  .article-page .rail {
    display: none;
  }

  .lead {
    grid-template-columns: 1fr;
  }

  .lead-image {
    height: 190px;
  }
}

@media (max-width: 640px) {
  .data-summary-grid { gap: 8px; }
  .data-summary-card { padding: 14px; }
  .directory-matcher { padding: 16px; }
  .directory-matcher .pairing-form { grid-template-columns: 1fr; }

  .data-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .data-table {
    display: block;
    min-width: 0;
  }

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

  .data-table tbody {
    display: grid;
    gap: 10px;
  }

  .data-table tbody tr {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: var(--paper);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 14px rgba(20, 24, 28, 0.05);
  }

  .data-table th[scope='row'] {
    display: block;
    min-width: 0;
    padding: 13px 14px;
    border-bottom: 1px solid var(--rule);
    background: var(--sand-3);
  }

  .data-table td {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
  }

  .data-table td::before {
    content: attr(data-label);
    font-family: var(--body);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .data-table td:last-child { border-bottom: 0; }
  .data-table .data-value { min-width: 0; white-space: normal; }
  .data-table td[data-label='Source'] a { margin-block: -8px; }

  .compressor-directory-grid {
    grid-template-columns: 1fr;
  }

  .compressor-directory-card,
  .record-evidence,
  .record-treatment-panel,
  .record-matcher,
  .record-limits {
    padding: 18px;
    border-radius: 10px;
  }

  .record-evidence dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .content-grid {
    padding-top: 20px;
  }

  .article-head h1 {
    font-size: 1.875rem;
    letter-spacing: -0.035em;
  }

  .article-dek {
    font-size: 1rem;
  }

  .article-meta {
    gap: 9px;
    padding-bottom: 14px;
  }

  .article-body h2 {
    font-size: 1.375rem;
    letter-spacing: -0.025em;
  }

  .article-body blockquote p {
    font-size: 1.125rem;
  }

  .article-body table {
    font-size: 0.8125rem;
  }

  .article-body th,
  .article-body td {
    padding: 10px 11px;
  }

  .matcher-inline .pairing-form {
    grid-template-columns: 1fr;
  }

  .matcher-inline .button-primary {
    min-height: 48px;
  }

  .continue-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .continue-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
  }

  .continue-image {
    width: 64px;
    height: 52px;
    flex: none;
    border-radius: 6px;
    border-bottom: 0;
  }

  .continue-copy {
    padding: 0;
    min-width: 0;
  }

  .continue-title {
    font-size: 0.84rem;
    margin-top: 2px;
  }

  .index-hero h1 {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .ad-infeed {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Archive at desktop: a wider frame than the article measure, larger headlines (Ansh, 2026-09-21) */

@media (min-width: 961px) {
  .article-index-page .index-hero-inner,
  .article-index-page .content-grid {
    width: min(100% - 2 * var(--gutter), 1180px);
  }

  .article-index-page .content-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }

  .index-hero {
    padding: 40px var(--gutter) 30px;
  }

  .index-hero h1 {
    font-size: 3.25rem;
  }

  .index-hero p {
    font-size: 1.125rem;
    max-width: 640px;
  }

  .pill {
    font-size: 0.875rem;
    padding: 9px 15px;
  }

  .lead {
    grid-template-columns: 360px 1fr;
    gap: 26px;
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .lead-image {
    height: 240px;
  }

  .lead-title {
    font-size: 2.125rem;
    margin-bottom: 10px;
  }

  .lead-description {
    font-size: 1.0625rem;
  }

  .card-grid {
    gap: 28px 26px;
  }

  .card-image {
    height: 190px;
    margin-bottom: 12px;
  }

  .card-kicker {
    font-size: 0.7rem;
  }

  .card-title {
    font-size: 1.3125rem;
    margin: 5px 0 6px;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .ad-infeed-copy .ad-slot-note {
    font-size: 0.75rem;
  }
}
