/* Scoped visual system for /guides/best-restaurant-marketing-agencies/ and /facts/
   Matches jaystmedia.com homepage tokens (jet black #000, burnished walnut surfaces,
   frosted glass 1px rims, restrained vermilion #ff4d1f, Albert Sans display scale).
   Does not touch seo-pages.css, blog.css, or blog.js. */

:root {
  --ac-ink: #000000;
  --ac-walnut-1: #0b0b0b;
  --ac-walnut-2: #121212;
  --ac-walnut-3: #181818;
  --ac-rim: rgba(255, 255, 255, 0.11);
  --ac-rim-strong: rgba(255, 255, 255, 0.2);
  --ac-specular: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --ac-accent: #ff4d1f;
  --ac-accent-soft: color-mix(in srgb, var(--ac-accent) 14%, transparent);
  --ac-bone: #ffffff;
  --ac-bone-2: #e6e4e0;
  --ac-muted: rgba(240, 238, 234, 0.72);
  --ac-faint: #ada69e;
  --ac-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --t-hero: clamp(36px, 4.4vw, 62px);
  --t-section: clamp(28px, 3vw, 42px);
  --t-item: clamp(21px, 1.9vw, 27px);
  --t-body: clamp(16px, 1.15vw, 17.5px);
}

body.ac-page {
  background: var(--ac-ink);
  color: var(--ac-bone);
  font-size: var(--t-body);
  line-height: 1.6;
}

/* Quiet top scroll progress hairline */
.ac-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 60;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}
.ac-scroll-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, #79716c 65%, var(--ac-accent) 100%);
  will-change: transform;
}

/* Quiet, unpinned masthead (scrolls completely out of the way while keeping internal links crawlable) */
body.ac-page header.site-nav {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.ac-page header.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 18px;
}
body.ac-page header.site-nav .brand {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: rgba(240, 238, 234, 0.76);
  text-decoration: none;
}
body.ac-page header.site-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: rgba(240, 238, 234, 0.52);
}
body.ac-page header.site-nav nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}
body.ac-page header.site-nav nav a:hover {
  color: var(--ac-bone);
}

/* Hero split layout */
body.ac-page .ac-hero {
  position: relative;
  padding: clamp(30px, 5vw, 78px) 0 clamp(32px, 4vw, 62px);
  overflow: hidden;
  border-bottom: 1px solid var(--ac-rim);
}
body.ac-facts .ac-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: min(680px, 70vw);
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(255, 77, 31, 0.13), rgba(255, 77, 31, 0.03) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
body.ac-page .ac-hero .wrap {
  position: relative;
  z-index: 1;
}
body.ac-page h1 {
  margin: 0 0 20px;
  font-size: var(--t-hero);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.032em;
  color: var(--ac-bone);
}
body.ac-page h2 {
  margin: 0 0 16px;
  font-size: var(--t-section);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: var(--ac-bone);
  scroll-margin-top: 132px;
}
body.ac-page h3 {
  margin: 0 0 8px;
  font-size: var(--t-item);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ac-bone);
}
body.ac-page .lede {
  margin: 0 0 24px;
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.58;
  color: var(--ac-bone-2);
  max-width: 64ch;
}
body.ac-page .lede strong {
  color: var(--ac-bone);
  font-weight: 600;
}

/* Primary CTA */
body.ac-page .guide-intro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ac-bone);
  color: var(--ac-ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ac-ease), background 0.25s ease, color 0.25s ease;
}
body.ac-page .guide-intro:hover {
  background: var(--ac-accent);
  color: var(--ac-ink);
  transform: translateY(-1px);
}

/* Architectural editorial hero cover */
body.ac-page #quick-answer { padding: 0; }
.ac-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 56px);
  isolation: isolate;
}
.ac-cover-copy {
  position: relative;
  z-index: 1;
  padding-block: clamp(36px, 4.8vw, 68px);
}
.ac-cover-media {
  position: relative;
  justify-self: end;
  width: min(100%, 580px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.ac-cover-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, transparent 35%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}
.ac-cover-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 42%;
}
body.ac-page .ac-dateline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-faint);
}
.ac-dateline::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--ac-accent);
  transform-origin: left;
  flex: none;
}
body.ac-page .ac-cover h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(40px, 4.8vw, 68px);
  font-weight: 350;
  line-height: 1.03;
  letter-spacing: -0.036em;
  text-wrap: balance;
  color: var(--ac-bone);
}
.ac-cover h1 span {
  color: var(--ac-faint);
  font-weight: 300;
}
.ac-cover-sub {
  margin: 20px 0 0;
  max-width: 48ch;
  font-size: clamp(16.5px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ac-bone-2);
}
.ac-cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 26px;
}
.ac-cover-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ac-bone-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ac-cover-link:hover {
  color: var(--ac-bone);
  border-bottom-color: var(--ac-accent);
}
.ac-cover-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 14px clamp(24px, 3.2vw, 44px);
  margin-top: clamp(28px, 3.6vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--ac-rim);
  font-variant-numeric: tabular-nums;
}
.ac-cover-meta strong {
  display: block;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ac-bone);
  line-height: 1.15;
}
.ac-cover-meta span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ac-faint);
}
.ac-disclosure a { text-underline-offset: 3px; }

/* Sticky chapter jump bar */
.ac-jump-bar {
  position: sticky;
  top: 70px;
  z-index: 30;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ac-rim);
}
.ac-jump-bar .wrap {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
  overflow-x: auto;
}
.ac-jump-bar a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border-bottom: 2px solid transparent;
  color: var(--ac-faint);
  font-size: 14px;
  text-decoration: none;
}
.ac-jump-bar a:hover, .ac-jump-bar a.is-active { color: var(--ac-bone); }
.ac-jump-bar a.is-active { border-color: var(--ac-accent); }

/* Editorial bands */
body.ac-page .ac-band {
  padding: clamp(52px, 6.5vw, 92px) 0;
  border-bottom: 1px solid var(--ac-rim);
}
body.ac-page .ac-band.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006));
}
.ac-section-intro {
  max-width: 68ch;
  color: var(--ac-muted);
  margin: 0 0 28px;
}

/* 3x2 Restaurant Need Buckets */
.ac-bucket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ac-bucket-card {
  display: flex;
  flex-direction: column;
  background: var(--ac-walnut-1);
  border: 1px solid var(--ac-rim);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: var(--ac-specular);
}
.ac-bucket-card.is-core {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.ac-bucket-card.is-adjacent {
  border-top: 1px solid var(--ac-rim);
}
.ac-bucket-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.ac-bucket-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--ac-faint);
}
.ac-bucket-card.is-core .ac-bucket-num {
  color: var(--ac-accent);
}
.ac-bucket-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-faint);
}
body.ac-page .ac-bucket-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ac-bone);
}
.ac-bucket-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ac-muted);
}
.ac-bucket-matches {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.ac-bucket-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ac-bucket-match:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ac-rim-strong);
}
.ac-bucket-match-info {
  min-width: 0;
}
.ac-bucket-match-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-bone);
  line-height: 1.25;
}
.ac-bucket-match-info em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--ac-faint);
  margin-top: 2px;
}
.ac-bucket-match-score {
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ac-bone-2);
  white-space: nowrap;
}
.ac-bucket-match-score small {
  font-size: 11px;
  font-weight: 400;
  color: var(--ac-faint);
}
@media (max-width: 980px) {
  .ac-bucket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ac-bucket-grid { grid-template-columns: 1fr; }
}

/* Quick picks & Do/Don't glass cards */
.ac-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 32px;
}
.ac-glass-card {
  padding: 14px 0 8px;
  border-top: 1px solid var(--ac-rim-strong);
}
.ac-glass-card .ac-card-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ac-faint);
  margin: 0 0 8px;
}
.ac-glass-card strong {
  display: block;
  font-size: 16.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ac-bone);
}
.ac-glass-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ac-muted);
}

.ac-do-dont {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0 22px;
}
.ac-do-card,
.ac-dont-card {
  background: var(--ac-walnut-1);
  border: 1px solid var(--ac-rim);
  box-shadow: var(--ac-specular);
  border-radius: 8px;
  padding: 26px 28px;
}
.ac-do-card {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.ac-dont-card {
  border-top: 1px solid var(--ac-rim);
}
.ac-do-card ul,
.ac-dont-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ac-bone-2);
  font-size: 15.5px;
}

/* Executive Stat Strip (used on /facts/ and top highlights) */
.ac-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 30px;
  margin-top: clamp(28px, 4vw, 54px);
}
.ac-stat-tile {
  padding-top: 12px;
  border-top: 1px solid var(--ac-rim-strong);
}
@media (max-width: 850px) {
  .ac-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ac-stat-tile .ac-stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ac-faint);
  margin: 0 0 8px;
}
.ac-stat-tile .ac-stat-value {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ac-bone);
  margin: 0 0 4px;
}
.ac-stat-tile .ac-stat-sub {
  font-size: 13.5px;
  color: var(--ac-muted);
  margin: 0;
}

/* Capability pills */
/* Capability tags (clean rectangular-softened badges, zero circular dots) */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ac-bone-2);
}
.pill.core {
  background: rgba(73, 201, 140, 0.1);
  border-color: rgba(73, 201, 140, 0.28);
  color: #8ae5b9;
}
.pill.yes {
  background: rgba(130, 180, 255, 0.09);
  border-color: rgba(130, 180, 255, 0.24);
  color: #b8d6ff;
}
.pill.partial {
  background: rgba(242, 188, 102, 0.09);
  border-color: rgba(242, 188, 102, 0.24);
  color: #f2c982;
}
.pill.no {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.07);
  color: #7c756e;
  font-weight: 400;
}

/* Table sort toolbar */
.ac-table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px;
}
.ac-table-tools[hidden] { display: none; }
.ac-table-tools-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-faint);
}
.ac-sort-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ac-sort-btn {
  appearance: none;
  background: var(--ac-walnut-1);
  color: var(--ac-muted);
  border: 1px solid var(--ac-rim);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.ac-sort-btn:hover {
  color: var(--ac-bone);
  border-color: var(--ac-rim-strong);
}
.ac-sort-btn.is-active {
  background: var(--ac-bone);
  color: var(--ac-ink);
  border-color: var(--ac-bone);
}

/* Comparison table enhancements (preserves blog-tables.test.mjs .proof-table.wide) */
body.ac-page table.proof-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ac-walnut-1);
  border: 1px solid var(--ac-rim);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  box-shadow: var(--ac-specular);
}
body.ac-page table.proof-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ac-faint);
  padding: 13px 12px;
  border-bottom: 1px solid var(--ac-rim-strong);
  background: rgba(255, 255, 255, 0.035);
}
body.ac-page table.proof-table tbody th,
body.ac-page table.proof-table tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  text-align: left;
  color: var(--ac-bone-2);
}
body.ac-page table.proof-table tbody th {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ac-bone);
}
body.ac-page table.proof-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.014);
}
body.ac-page table.proof-table tbody tr:last-child th,
body.ac-page table.proof-table tbody tr:last-child td {
  border-bottom: 0;
}
body.ac-page table.proof-table tbody tr {
  transition: background 0.18s ease;
}
body.ac-page table.proof-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
body.ac-page table.proof-table tbody tr.is-jsm-row {
  background: rgba(255, 255, 255, 0.03);
}
body.ac-page table.proof-table tbody tr.is-jsm-row:hover {
  background: rgba(255, 255, 255, 0.055);
}
body.ac-page table.proof-table tbody th a {
  color: var(--ac-bone);
  font-weight: 600;
  text-decoration: none;
}
body.ac-page table.proof-table tbody th a:hover {
  color: var(--ac-accent);
}
.ac-rank-num {
  display: inline-block;
  min-width: 24px;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ac-faint);
}
.ac-score-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.ac-score-val {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.ac-score-val strong {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ac-bone);
}
.ac-score-val small {
  font-size: 11.5px;
  color: var(--ac-faint);
}
.ac-meter {
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.ac-meter > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #a89b8f;
}
.ac-meter.is-leader > i {
  background: var(--ac-accent);
}
.ac-meter.is-specialist > i {
  background: #5ec299;
}
.ac-price-col {
  line-height: 1.45;
}
.ac-price-lead {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ac-bone);
  margin-bottom: 2px;
}
.ac-price-sub {
  display: block;
  font-size: 12.5px;
  color: var(--ac-muted);
}
.ac-fit-col {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ac-bone-2);
}

/* Interactive filter bar above the 16 agency cards */
.ac-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin: 0 0 24px;
}
.ac-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ac-filter-btn {
  appearance: none;
  background: var(--ac-walnut-1);
  color: var(--ac-muted);
  border: 1px solid var(--ac-rim);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.ac-filter-btn:hover {
  color: var(--ac-bone);
  border-color: var(--ac-rim-strong);
}
.ac-filter-btn.is-active {
  background: var(--ac-bone);
  color: var(--ac-ink);
  border-color: var(--ac-bone);
}
.ac-filter-count {
  font-size: 13.5px;
  color: var(--ac-faint);
  font-variant-numeric: tabular-nums;
}

/* 16 Agency Cards */
.agency-card {
  position: relative;
  padding: 26px 0;
  border-top: 1px solid var(--ac-rim-strong);
  scroll-margin-top: 140px;
}
.agency-card:is([data-rank="1"], [data-rank="2"], [data-rank="3"]) {
  background: var(--ac-walnut-1);
  border: 1px solid var(--ac-rim);
  box-shadow: var(--ac-specular);
  border-radius: 8px;
  padding: clamp(20px, 2.6vw, 32px);
  margin: 0 0 18px;
}
.agency-card[data-rank="1"] {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.agency-card[hidden], .ac-filter-bar[hidden] { display: none; }
.agency-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.agency-head .mini {
  margin: 0 0 6px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-faint);
}
.agency-rank-tag {
  color: var(--ac-faint);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.agency-card[data-rank="1"] .agency-rank-tag {
  color: var(--ac-accent);
  font-weight: 600;
}
.agency-title-link {
  color: var(--ac-bone);
  text-decoration: none;
  transition: color 0.18s ease;
}
.agency-title-link:hover {
  color: var(--ac-accent);
}
.agency-ext {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72em;
  font-weight: 400;
  color: var(--ac-faint);
  vertical-align: 0.08em;
  transition: color 0.18s ease, transform 0.18s var(--ac-ease);
}
.agency-title-link:hover .agency-ext {
  color: var(--ac-accent);
  transform: translate(1px, -1px);
}
.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ac-rim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.score-badge.is-leader {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}
.score-badge strong {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--ac-bone);
}
.score-badge span {
  font-size: 12.5px;
  color: var(--ac-faint);
}
.scope-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--ac-muted);
}
.scope-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.scope-item strong {
  color: var(--ac-faint);
  font-weight: 500;
  font-size: 12.5px;
}
.scope-item .pill {
  padding: 2px 8px;
  font-size: 11.5px;
}
.agency-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0 0 20px;
}
.agency-dl > div {
  min-width: 0;
}
.agency-dl > div.ac-dl-full {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.agency-dl dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac-faint);
  margin-bottom: 5px;
}
.agency-dl dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.56;
  color: var(--ac-bone-2);
}

/* 6-tile visual rubric telemetry strip on cards */
.ac-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.ac-bar-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.ac-bar-item span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: var(--ac-muted);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.ac-bar-item em {
  font-style: normal;
  color: var(--ac-faint);
}
.ac-bar-item strong {
  color: var(--ac-bone);
  font-weight: 600;
}
.ac-bar-item strong small {
  font-weight: 400;
  color: var(--ac-faint);
  font-size: 11px;
}
.ac-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.ac-bar-track > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #8a827a;
}
.ac-bar-item.is-full .ac-bar-track > i {
  background: #5ec299;
}
.ac-bar-item.is-strong .ac-bar-track > i {
  background: #e2b872;
}
.ac-bar-item.is-zero strong {
  color: var(--ac-faint);
}
.agency-card[data-rank="1"] .ac-bar-item.is-full .ac-bar-track > i {
  background: var(--ac-accent);
}
.agency-roster {
  margin: 0 0 14px;
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14.5px;
  color: var(--ac-bone-2);
}
.agency-source {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ac-faint);
}
.agency-source a {
  color: var(--ac-bone-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  overflow-wrap: anywhere;
}
.agency-source a:hover {
  color: var(--ac-bone);
  border-bottom-color: var(--ac-accent);
}
@media (max-width: 960px) {
  .ac-bars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .agency-dl { grid-template-columns: 1fr; gap: 14px; }
  .ac-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* FAQ cards */
body.ac-page .faq {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
}
body.ac-page .faq article {
  background: var(--ac-walnut-1);
  border: 1px solid var(--ac-rim);
  box-shadow: var(--ac-specular);
  border-radius: 8px;
  padding: 20px 24px;
}
body.ac-page .faq article h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
body.ac-page .faq article p {
  margin: 0;
  color: var(--ac-bone-2);
  font-size: 15.5px;
}

/* Footer */
body.ac-page footer {
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--ac-muted);
}
body.ac-page footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

/* 16-Agency Score Landscape Chart (semantic HTML horizontal bar chart) */
.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;
}
.ac-ranking {
  display: grid;
  grid-template-columns: minmax(210px, .52fr) minmax(0, 1.75fr);
  align-items: start;
  gap: clamp(28px, 4.5vw, 56px);
  margin: 0 0 clamp(36px, 5vw, 60px);
}
.ac-ranking figcaption p { margin: 0 0 12px; max-width: 32ch; }
.ac-ranking .ac-disclosure { color: var(--ac-faint); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) {
  .ac-ranking { grid-template-columns: 1fr; gap: 18px; }
  .ac-ranking figcaption p { max-width: 58ch; }
}
.ac-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px;
}
.ac-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ac-legend-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--ac-rim);
  background: var(--ac-walnut-1);
  color: var(--ac-bone-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ac-legend-chip:hover {
  border-color: var(--ac-rim-strong);
  color: var(--ac-bone);
}
.ac-legend-chip.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--ac-bone);
  color: var(--ac-bone);
}
.ac-legend-chip i {
  display: inline-block;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  flex: none;
}
.ac-chart-hint {
  font-size: 12px;
  color: var(--ac-faint);
}
.ac-rank-chart-shell {
  background: var(--ac-walnut-1);
  border: 1px solid var(--ac-rim);
  border-radius: 8px;
  padding: 16px 18px 18px;
  box-shadow: var(--ac-specular);
}
.ac-rank-axis {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: center;
  padding: 0 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-faint);
  font-variant-numeric: tabular-nums;
}
.ac-rank-axis-scale {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.ac-rank-axis-score { text-align: right; }
.ac-rank-chart {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: grid;
  gap: 2px;
}
.ac-rank-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-faint);
}
.ac-rank-tier:first-child { padding-top: 6px; }
.ac-rank-cliff {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 8px 4px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ac-faint);
}
.ac-rank-cliff::before,
.ac-rank-cliff::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.ac-rank-cliff::before { width: 16px; flex: none; background: var(--ac-accent); }
.ac-rank-cliff::after { flex: 1; }
.ac-rank-row {
  transition: opacity 0.2s ease;
}
.ac-rank-chart[data-highlight="core"] .ac-rank-row:not([data-specialty="core"]),
.ac-rank-chart[data-highlight="bundled"] .ac-rank-row:not([data-specialty="bundled"]),
.ac-rank-chart[data-highlight="none"] .ac-rank-row:not([data-specialty="none"]) {
  opacity: 0.24;
}
.ac-rank-link {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.ac-rank-link:hover {
  background: rgba(255, 255, 255, 0.045);
}
.ac-rank-row.is-leader .ac-rank-link {
  background: rgba(255, 255, 255, 0.025);
}
.ac-rank-row.is-leader .ac-rank-link:hover {
  background: rgba(255, 255, 255, 0.055);
}
.ac-rank-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.ac-rank-idx {
  flex: none;
  width: 22px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ac-faint);
}
.ac-rank-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ac-bone-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-rank-row.is-leader .ac-rank-name {
  color: var(--ac-bone);
  font-weight: 600;
}
.ac-rank-track {
  position: relative;
  display: block;
  height: 14px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(25% - 1px),
      rgba(255, 255, 255, 0.07) calc(25% - 1px),
      rgba(255, 255, 255, 0.07) 25%
    ),
    rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.ac-rank-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--bar-color, var(--ac-accent));
  transition: filter 0.18s ease;
}
.ac-rank-link:hover .ac-rank-bar {
  filter: brightness(1.12);
}
.ac-rank-score {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ac-rank-score strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ac-bone);
}
.ac-rank-score small {
  font-size: 11px;
  color: var(--ac-faint);
  margin-left: 1px;
}

/* Top-6 Criteria Comparison Matrix (semantic HTML table) */
.ac-chart-grid { margin-bottom: 32px; }
.ac-chart-card {
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(190px, .44fr) minmax(0, 1.65fr);
  gap: clamp(22px, 3.5vw, 48px);
  align-items: start;
  border: 1px solid var(--ac-rim);
  border-radius: 8px;
  background: var(--ac-walnut-1);
  box-shadow: var(--ac-specular);
}
body.ac-page .ac-chart-head h3 { margin: 0 0 6px; text-wrap: balance; }
.ac-chart-head span { color: var(--ac-faint); font-size: 13px; }
.ac-chart-head p { max-width: 28ch; margin: 14px 0 0; color: var(--ac-bone-2); font-size: 15px; line-height: 1.55; }
.ac-plot { min-width: 0; }
.ac-swipe-cue {
  display: none;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ac-faint);
  letter-spacing: 0.01em;
}
.ac-matrix-frame {
  position: relative;
}
.ac-matrix-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.ac-matrix-table {
  width: 100%;
  min-width: 580px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.ac-matrix-table thead th {
  padding: 0 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--ac-rim-strong);
  vertical-align: bottom;
}
.ac-matrix-table thead th:first-child {
  text-align: left;
  padding-left: 10px;
  width: 31%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-faint);
}
.ac-matrix-table thead th span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ac-bone);
}
.ac-matrix-table thead th small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ac-faint);
  margin-top: 2px;
}
.ac-matrix-table thead th.is-spotlight {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 6px 6px 0 0;
  border-bottom-color: rgba(255, 255, 255, 0.28);
}
.ac-matrix-table thead th.is-spotlight span {
  color: var(--ac-bone);
}
.ac-matrix-table tbody th,
.ac-matrix-table tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
.ac-matrix-table tbody tr:last-child th,
.ac-matrix-table tbody tr:last-child td {
  border-bottom: 0;
}
.ac-matrix-table tbody th {
  text-align: left;
  padding-left: 10px;
  padding-right: 12px;
}
.ac-matrix-table tbody th a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ac-bone);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.ac-matrix-table tbody th a:hover {
  color: var(--ac-accent);
}
.ac-matrix-rank {
  font-size: 12px;
  font-weight: 500;
  color: var(--ac-faint);
}
.ac-matrix-total {
  display: block;
  margin-top: 2px;
  padding-left: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ac-bone-2);
}
.ac-matrix-total small {
  font-weight: 400;
  color: var(--ac-faint);
}
.ac-matrix-cell {
  text-align: center;
}
.ac-matrix-cell.is-spotlight {
  background: rgba(255, 255, 255, 0.02);
}
.ac-cell-num {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ac-bone);
}
.ac-cell-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ac-cell-track > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #8a827a;
}
.ac-matrix-cell.is-full .ac-cell-num { color: #8ae5b9; }
.ac-matrix-cell.is-full .ac-cell-track > i { background: #5ec299; }
.ac-matrix-table tr.is-rank-1 .ac-matrix-cell.is-full .ac-cell-num { color: #ff9c80; }
.ac-matrix-table tr.is-rank-1 .ac-matrix-cell.is-full .ac-cell-track > i { background: var(--ac-accent); }
.ac-matrix-cell.is-strong .ac-cell-num { color: #f2c982; }
.ac-matrix-cell.is-strong .ac-cell-track > i { background: #e2b872; }
.ac-matrix-cell.is-mid .ac-cell-num { color: var(--ac-bone-2); }
.ac-matrix-cell.is-zero .ac-cell-num {
  color: #7c756e;
  font-weight: 500;
}
.ac-matrix-cell.is-zero .ac-cell-track {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.ac-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: var(--ac-faint);
}
.ac-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ac-matrix-legend i {
  display: inline-block;
  width: 14px;
  height: 6px;
  border-radius: 999px;
}
.ac-matrix-legend i.is-full { background: #5ec299; }
.ac-matrix-legend i.is-strong { background: #e2b872; }
.ac-matrix-legend i.is-mid { background: #8a827a; }
.ac-matrix-legend i.is-zero {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}
@media (max-width: 960px) {
  .ac-chart-card { grid-template-columns: 1fr; gap: 20px; }
  .ac-chart-head p { max-width: 58ch; margin-top: 8px; }
}
@media (max-width: 720px) {
  .ac-swipe-cue { display: block; }
  .ac-matrix-frame::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--ac-walnut-1));
    z-index: 3;
  }
  .ac-matrix-table thead th:first-child,
  .ac-matrix-table tbody th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--ac-walnut-1);
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.35);
    min-width: 150px;
  }
  .ac-matrix-table tbody th a { font-size: 13.5px; }
  .ac-page .ac-table-scroll table { min-width: 1060px; }
  .ac-page .ac-table-scroll th:first-child {
    width: 158px;
    min-width: 158px;
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.35);
  }
  .ac-page .ac-table-scroll th:nth-child(2) { width: 96px; }
  .ac-page .ac-table-scroll th:nth-child(7) { width: 220px; }
  .ac-page .ac-table-scroll th:nth-child(8) { width: 280px; }
  body.ac-page table.proof-table tbody th,
  body.ac-page table.proof-table tbody td {
    padding: 10px 10px;
  }
  body.ac-page table.proof-table tbody th a {
    display: inline;
    font-size: 13.5px;
    line-height: 1.35;
  }
  .ac-rank-num {
    min-width: 20px;
    margin-right: 4px;
  }
}
@media (max-width: 640px) {
  .ac-rank-chart-shell { padding: 12px; }
  .ac-rank-axis { display: none; }
  .ac-rank-link {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 10px;
    padding: 8px 6px;
  }
  .ac-rank-label { grid-column: 1; grid-row: 1; }
  .ac-rank-score { grid-column: 2; grid-row: 1; }
  .ac-rank-track { grid-column: 1 / -1; grid-row: 2; height: 10px; }
  .ac-chart-hint { display: none; }
}
/* Fragments land cleanly below the pinned bar(s). The matrix scrolls independently. */
.ac-page main section[id] { scroll-margin-top: 140px; }
body.ac-page:not(:has(.ac-jump-bar)) main section[id],
body.ac-page:not(:has(.ac-jump-bar)) .agency-card,
body.ac-page:not(:has(.ac-jump-bar)) h2 { scroll-margin-top: 24px; }
.ac-table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
body.ac-page .proof-table th { white-space: normal; }
.ac-page .ac-table-scroll table { min-width: 760px; }
.ac-page .ac-table-scroll th:first-child { width: 17%; }
.ac-page .ac-table-scroll th:nth-child(2) { width: 9%; }
.ac-page .ac-table-scroll th:nth-last-child(-n+2) { width: 20%; }
.ac-page .ac-facts-table table, .ac-page .ac-rubric-table table { table-layout: fixed; }
.ac-facts-table thead th:first-child { width: 28%; }
.ac-rubric-table thead th:first-child { width: 30%; }
.ac-rubric-table thead th:nth-child(2) { width: 13%; }
.ac-page .proof-table td { overflow-wrap: anywhere; }
.ac-page :focus-visible { outline: 2px solid var(--ac-accent); outline-offset: 2px; }
.ac-page .mini a { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  body.ac-page #quick-answer {
    background: #000;
  }
  .ac-cover {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .ac-cover-media {
    order: -1;
    position: relative;
    width: calc(100% + var(--pad-x, 20px) * 2);
    max-width: none;
    height: clamp(240px, 68vw, 310px);
    margin-inline: calc(var(--pad-x, 20px) * -1);
    border-radius: 0;
    border: 0;
    box-shadow: none;
    overflow: hidden;
  }
  .ac-cover-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.24) 0%,
      transparent 20%,
      transparent 70%,
      #000000 100%
    );
  }
  .ac-cover-photo {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 42%;
  }
  .ac-cover-copy {
    position: relative;
    z-index: 2;
    padding: 6px 0 24px;
  }
  body.ac-page .ac-cover h1 { font-size: clamp(33px, 8.8vw, 46px); max-width: 16ch; }
  .ac-cover-sub { margin-top: 10px; font-size: 14px; line-height: 1.48; }
  .ac-cover-actions { margin-top: 16px; gap: 10px 18px; }
  body.ac-page .ac-cover-actions .guide-intro { padding: 10px 18px; font-size: 13.5px; }
  .ac-cover-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top-color: rgba(255, 255, 255, 0.12);
  }
}
@media (max-width: 720px) {
  .ac-swipe-cue { display: block; }
  .ac-matrix-frame::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--ac-walnut-1));
    z-index: 3;
  }
  .ac-matrix-table thead th:first-child,
  .ac-matrix-table tbody th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--ac-walnut-1);
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.35);
    min-width: 150px;
  }
  .ac-matrix-table tbody th a { font-size: 13.5px; }
  .ac-page .ac-table-scroll table { min-width: 1060px; }
  .ac-page .ac-table-scroll th:first-child {
    width: 158px;
    min-width: 158px;
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.35);
  }
  .ac-page .ac-table-scroll th:nth-child(2) { width: 96px; }
  .ac-page .ac-table-scroll th:nth-child(7) { width: 220px; }
  .ac-page .ac-table-scroll th:nth-child(8) { width: 280px; }
  body.ac-page table.proof-table tbody th,
  body.ac-page table.proof-table tbody td {
    padding: 10px 10px;
  }
  body.ac-page table.proof-table tbody th a {
    display: inline;
    font-size: 13.5px;
    line-height: 1.35;
  }
  .ac-rank-num {
    min-width: 20px;
    margin-right: 4px;
  }
}
@media (max-width: 640px) {
  .ac-page { --pad-x: 20px; }
  .ac-chart-card { padding: 16px 12px; }
  .ac-chart-legend { gap: 4px 12px; }
  .ac-chart-head { display: block; }
  .ac-chart-head span { display: block; margin-top: 4px; }
  .ac-quick-grid { grid-template-columns: 1fr; }
  .ac-do-dont { grid-template-columns: 1fr; }
  .ac-do-card, .ac-dont-card { padding: 18px; }
  .ac-stat-strip { gap: 18px 16px; }
  .ac-stat-tile .ac-stat-sub { font-size: 14px; }
  body.ac-page table.proof-table :is(th, td) { padding: 9px 7px; }
  .ac-table-scroll th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #0b0b0b;
  }
  .ac-facts-table thead th:first-child { width: 31%; }
  body.ac-page .proof-table tbody th {
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
  }
  .ac-facts-table th, .ac-facts-table td { overflow-wrap: anywhere; }
  .ac-rubric-table thead th:nth-child(2) { width: 17%; }
  .agency-head { gap: 8px; }
  .agency-card .mini { letter-spacing: 0.04em; }
  .ac-page .faq article { padding: 16px; }
  body.ac-page header.site-nav .wrap, body.ac-page header.site-nav nav { gap: 12px; }
}

@media (max-width: 360px) {
  .ac-jump-bar .wrap { gap: 8px; }
  .ac-jump-bar a { font-size: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  .ac-facts .ac-dateline::before { animation: ac-rule-in 580ms var(--ac-ease) both; }
  @keyframes ac-rule-in { from { transform: scaleX(.25); } to { transform: scaleX(1); } }
  html.js .ac-reveal { transition: opacity 420ms ease-out, translate 420ms var(--ac-ease); }
  html.js .ac-reveal:not(.is-visible) { opacity: .85; translate: 0 6px; }
  .ac-compare span { transition: transform 180ms var(--ac-ease); }
  .ac-compare:hover span { transform: translateY(2px); }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.ac-page) { scroll-behavior: auto; }
  .ac-scroll-progress { display: none; }
  .ac-page *, .ac-page *::before, .ac-page *::after { transition: none; }
}
