@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./vendor/fonts/oswald-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./vendor/fonts/oswald-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./vendor/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./vendor/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./vendor/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./vendor/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./vendor/fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  /* Policy for US brand palette (sampled from owner's logo) */
  --brand-navy: #0b274b;
  --brand-navy-deep: #06172e;
  --brand-navy-mid: #163c6e;
  --brand-red: #b01129;
  --brand-red-dark: #8c0c20;
  --brand-red-reverse: #dc2b3e;
  --brand-gold: #c29c4d;
  --brand-gold-bright: #e0be70;
  --brand-gold-text: #7a5b18;

  /* Light mode surfaces & ink (Rally) */
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-subtle: #eaf0f7;
  --surface-header: #0b274b;

  --text: #0f1b2d;
  --text-muted: #44556b;

  --accent: #0b274b;
  --accent-hover: #b01129;
  --accent-soft: #e6eef8;
  --cta: #b01129;
  --cta-hover: #8c0c20;

  --ask-bg: #eef3fa;
  --ask-border: #b01129;

  --reverse-accent: #9c1025;
  --reverse-bg: #fdf1f3;

  --unverified-bg: #fdf5e2;
  --unverified-border: #9a6310;
  --unverified-text: #653f06;
  --unverified-tag-bg: #8a560b;
  --unverified-tag-text: #ffffff;

  --border: #ccd6e4;
  --border-strong: #8ea2bd;
  --focus-ring: #b01129;
  --focus-ring-dark: #e0be70;
  --focus: var(--focus-ring);
  --gold: var(--brand-gold);

  /* Red small text (kickers, labels): AA on every surface in both themes */
  --text-red: #b01129;
  --placeholder: #56677d;
  --placeholder-on-white: #56677d;

  /* Map keyboard focus ring: light halo under a dark line, drawn by map.js */
  --map-focus-halo: #ffffff;
  --map-focus-line: #0f1b2d;
  --shadow-sm: 0 2px 6px rgba(11, 39, 75, 0.06);
  --shadow-md: 0 12px 28px rgba(6, 23, 46, 0.16);

  /* Data journalism status & chart tokens */
  --status-strong: #0b3f2b;
  --status-strong-bg: #e2f3ec;
  --status-strong-text: #0b442f;

  --status-partial: #1f5a8f;
  --status-partial-bg: #e3eff9;
  --status-partial-text: #123e64;

  --status-gap: #a06814;
  --status-gap-bg: #fdf4df;
  --status-gap-text: #6c4505;

  --status-restricted: #b01129;
  --status-restricted-bg: #fdecee;
  --status-restricted-text: #820c1e;

  --status-unknown: #7a8aa0;
  --status-unknown-bg: #edf2f8;
  --status-unknown-text: #44556b;

  --chart-cost: #b01129;
  --chart-payfor: #0b274b;
  --chart-evidence: #1f5c8f;
  --chart-done: #b01129;
  --chart-progress: #c28516;
  --chart-blocked: #135d42;
  --chart-not-started: #61748d;
  --chart-untracked: #c5d0de;

  --map-stroke: #ffffff;
  --map-county-stroke: rgba(255, 255, 255, 0.45);
  --map-hover: #0b274b;

  /* Typography & layout */
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: var(--font-display);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  --measure: 68ch;
  --gutter: 1rem;
  --header-height: 4rem;
  --radius: 4px;
  --radius-sm: 3px;
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --bg: #071324;
    --surface: #0d1d35;
    --surface-subtle: #132847;
    --surface-header: #061121;

    --text: #f0f4fa;
    --text-muted: #b1c2d8;

    --accent: #8fc0ff;
    --accent-hover: #e0be70;
    --accent-soft: #173156;
    --cta: #c91d34;
    --cta-hover: #dc2b3e;

    --ask-bg: #122440;
    --ask-border: #dc2b3e;

    --reverse-accent: #ff8a96;
    --reverse-bg: #2c131b;

    --unverified-bg: #2e220d;
    --unverified-border: #e0a136;
    --unverified-text: #f7ce7e;
    --unverified-tag-bg: #e6a83a;
    --unverified-tag-text: #1a1204;

    --border: #22395c;
    --border-strong: #39557e;
    --focus-ring: #e0be70;
    --text-red: #ff7a8a;
    --placeholder: #8fa3bd;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.55);

    --status-strong: #7ee8b8;
    --status-strong-bg: #0f3025;
    --status-strong-text: #96ecc6;

    --status-partial: #3d84cc;
    --status-partial-bg: #122a44;
    --status-partial-text: #b2d8fa;

    --status-gap: #e6b14a;
    --status-gap-bg: #2e220d;
    --status-gap-text: #f8d48c;

    --status-restricted: #ec5b6b;
    --status-restricted-bg: #36131b;
    --status-restricted-text: #ffb4bd;

    --status-unknown: #566d8c;
    --status-unknown-bg: #15253c;
    --status-unknown-text: #b1c2d8;

    --chart-cost: #ec5b6b;
    --chart-payfor: #66b2ff;
    --chart-evidence: #5ea8e6;
    --chart-done: #ec5b6b;
    --chart-progress: #e6b14a;
    --chart-blocked: #3cc48c;
    --chart-not-started: #7f95b3;
    --chart-untracked: #2c415e;

    --map-stroke: #071324;
    --map-county-stroke: rgba(7, 19, 36, 0.6);
    --map-hover: #f0f4fa;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 0.75rem);
  -webkit-text-size-adjust: 100%;
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

a,
button,
summary,
select,
input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: var(--accent-soft);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

button {
  font-family: var(--font-sans);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

input,
select,
textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

select {
  color: var(--text);
  background-color: var(--surface);
}

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

/* hidden="until-found" keeps the UA rule (content-visibility: hidden) so in-page find
   can reveal closed tab panels; every other [hidden] is removed from layout. */
[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.num,
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  background: var(--brand-red);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #ffffff;
  border-radius: var(--radius-sm);
}

.skip-link:focus-visible {
  left: 0.75rem;
  top: 0.5rem;
}

.skip-link:hover {
  background-color: var(--brand-red-dark);
  color: #ffffff;
}

/* Campaign stripe ribbon */
.rally-ribbon {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--brand-red) 0 40%,
    #ffffff 40% 42%,
    var(--brand-gold) 42% 48%,
    var(--brand-navy-mid) 48% 100%
  );
}

/* Site Header (Rally navy) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--surface-header);
  color: #ffffff;
  border-bottom: 3px solid var(--brand-red);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.site-header :focus-visible,
.rally-hero :focus-visible,
.hero-block :focus-visible,
.zip-banner :focus-visible,
.action-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--focus-ring-dark);
}

.site-header-inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.35rem;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.site-brand-img {
  display: block;
  height: 2.35rem;
  width: auto;
}

@media (min-width: 360px) {
  .site-brand-img {
    height: 2.85rem;
  }
}

/* 320-359px: brand + search + Menu measured 325px wide; tighten so nothing scrolls. */
@media (max-width: 359px) {
  .site-header-inner {
    gap: 0.4rem;
  }

  .mobile-header-actions {
    gap: 0.3rem;
  }

  .mobile-menu-trigger {
    gap: 0.3rem;
    padding: 0.45rem 0.6rem;
  }
}

@media (min-width: 480px) {
  :root {
    --header-height: 5rem;
  }

  .site-brand-img {
    height: 3.85rem;
  }
}

.site-brand:hover {
  opacity: 0.9;
  text-decoration: none;
}

.header-links {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.1rem;
}

.header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f0f4fa;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-bottom: 3px solid transparent;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.header-links a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.13);
  text-decoration: none;
}

.header-links a[aria-current="page"] {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: var(--brand-gold);
  font-weight: 700;
}

.header-links a.nav-cta {
  margin-left: 0.4rem;
  padding: 0 1rem;
  min-height: 40px;
  background-color: var(--brand-red);
  color: #ffffff;
  border-bottom: 0;
  font-weight: 700;
}

.header-links a.nav-cta:hover {
  background-color: var(--brand-red-dark);
  color: #ffffff;
}

.header-links a.nav-cta[aria-current="page"] {
  background-color: var(--brand-red-dark);
  box-shadow: inset 0 0 0 2px var(--brand-gold);
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  margin-left: 0.35rem;
  padding: 0 0.55rem;
  color: #f0f4fa;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-search-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--brand-gold-bright);
  color: #ffffff;
}

.nav-search-btn kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.16rem 0.32rem;
  background-color: rgba(6, 23, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  color: var(--brand-gold-bright);
}

/* Mobile Header Actions & Navigation Menu */
.mobile-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.mobile-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: #ffffff;
  background-color: var(--brand-navy-mid);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-search-btn:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
}

.mobile-menu {
  position: relative;
}

.mobile-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--brand-navy-mid);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
}

.mobile-menu-trigger::-webkit-details-marker {
  display: none;
}

.mobile-menu-trigger:hover {
  color: #ffffff;
  background-color: var(--brand-red);
  border-color: var(--brand-red);
}

.mobile-menu-trigger .toc-marker::before {
  color: var(--brand-gold-bright);
}

.mobile-menu-panel {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--brand-navy-deep);
  border-bottom: 3px solid var(--brand-red);
  box-shadow: var(--shadow-md);
  padding: 0.75rem var(--gutter) 1rem;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 59;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.35rem;
}

.mobile-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  width: 100%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0f4fa;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.mobile-nav-list a:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
}

.mobile-nav-list a[aria-current="page"] {
  background-color: var(--brand-red);
  color: #ffffff;
  font-weight: 700;
}

.mobile-nav-list a.nav-cta {
  background-color: var(--brand-red);
  color: #ffffff;
  font-weight: 700;
}

.mobile-nav-list a.nav-cta:hover {
  background-color: var(--brand-red-dark);
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0.75rem var(--gutter) 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--border-strong);
}

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

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Mobile In-Page Contents Drawer */

.toc-marker::before {
  content: "+";
  display: inline-block;
  width: 1ch;
  font-weight: 700;
  color: var(--accent);
}

/* Containers & Layout */
.page-shell {
  max-width: 82rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 3rem;
}

.content {
  min-width: 0;
}

/* Sidebar TOC */

/* Headings */
h1,
h2,
h3,
h4 {
  scroll-margin-top: 0.75rem;
  text-wrap: balance;
  color: var(--text);
  overflow-wrap: break-word;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: 0.025em;
  margin: 0 0 0.9rem;
}

h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2.2vw, 1.32rem);
  line-height: 1.3;
  font-weight: 700;
  margin: 1.4rem 0 0.65rem;
}

h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 1.1rem 0 0.45rem;
}

.prose p,
.prose ul,
.prose ol,
.ask-callout,
.script-box {
  max-width: var(--measure);
}

.content p {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

.content ul,
.content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.content li {
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

.content li:last-child {
  margin-bottom: 0;
}

/* Nested lists in deep dives and plan text (two levels) */
.content li > ul,
.content li > ol {
  margin: 0.45rem 0 0.35rem;
  padding-left: 1.25rem;
}

.content li > ul li,
.content li > ol li {
  margin-bottom: 0.3rem;
}

.content ul ul {
  list-style-type: circle;
}

.content ul ul ul {
  list-style-type: square;
}

.content ol ol {
  list-style-type: lower-alpha;
}

.content li > p {
  margin-bottom: 0.4rem;
}

.kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-red);
}

/* Interior Page Hero (Rally navy briefing card) */
.hero-block {
  padding: 1.6rem 1.35rem;
  background-color: var(--brand-navy);
  background-image:
    repeating-linear-gradient(
      -55deg,
      rgba(255, 255, 255, 0.028) 0px,
      rgba(255, 255, 255, 0.028) 16px,
      transparent 16px,
      transparent 32px
    ),
    radial-gradient(circle at 92% 14%, rgba(176, 17, 41, 0.28), transparent 45%);
  color: #ffffff;
  border: 1px solid var(--brand-navy-deep);
  border-top: 5px solid var(--brand-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.65rem;
}

.hero-block .kicker {
  color: var(--brand-gold-bright);
}

.hero-block h1,
.hero-block h2,
.hero-block h3 {
  color: #ffffff;
}

.hero-block .doc-meta,
.hero-block .zip-card-note {
  color: #cddaf0;
}

.hero-block .lead-intro {
  color: #e6eef9;
}

.hero-block a:not(.btn) {
  color: var(--brand-gold-bright);
}

.hero-block a:not(.btn):hover {
  color: #ffffff;
}

/* Footnote chips carry their own light background, so they keep chip colors inside
   the navy hero (gold text on the chip background measured 1.53:1). */
.hero-block a.cite-link {
  color: var(--accent);
  background-color: var(--accent-soft);
}

.hero-block a.cite-link:hover,
.hero-block a.cite-link:focus-visible {
  color: var(--bg);
  background-color: var(--accent);
}

.hero-block .zip-form label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.85rem;
  color: #ffffff;
}

.hero-block .zip-input {
  background-color: #ffffff;
  color: var(--brand-navy);
  border: 2px solid var(--brand-navy-deep);
  font-weight: 700;
}

.hero-block .btn-subtle,
.hero-block .btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-block .btn-subtle:hover,
.hero-block .btn-secondary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--brand-navy);
}

.hero-block .chip-btn {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-block .chip-btn:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
}

.hero-block .form-error {
  padding: 0.45rem 0.75rem;
  background-color: var(--brand-navy-deep);
  color: var(--brand-gold-bright);
  border-left: 4px solid var(--brand-gold);
}

.doc-meta {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.lead-intro {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0;
}

/* Full-bleed Homepage Rally Hero */
.home-main {
  min-width: 0;
}

.rally-container {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rally-hero {
  position: relative;
  background-color: var(--brand-navy);
  background-image:
    repeating-linear-gradient(
      -55deg,
      rgba(255, 255, 255, 0.028) 0px,
      rgba(255, 255, 255, 0.028) 18px,
      transparent 18px,
      transparent 36px
    ),
    radial-gradient(circle at 88% 18%, rgba(176, 17, 41, 0.3), transparent 46%);
  color: #ffffff;
  padding-block: clamp(2.25rem, 5.5vw, 4.25rem);
}

.rally-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 920px) {
  .rally-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 2.75rem;
  }
}

.rally-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--brand-red);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 1rem;
}

.rally-eyebrow em {
  font-style: italic;
  font-synthesis-style: auto;
  display: inline-block;
  margin-left: 0.04em;
  margin-right: 0.08em;
}

.rally-hero h1 {
  font-size: clamp(2.65rem, 6.5vw, 4.75rem);
  line-height: 0.98;
  color: #ffffff;
  margin: 0 0 0.75rem;
  display: inline-block;
  padding-bottom: 0.14em;
  border-bottom: 6px solid var(--brand-red);
}

.rally-hero .doc-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-gold-bright);
  margin: 0.5rem 0 0.9rem;
}

.rally-hero .lead-intro {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: #e6eef9;
  max-width: 62ch;
  margin: 0 0 1.6rem;
}

.rally-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Campaign Briefing Card in Homepage Hero */
.rally-card {
  background: var(--surface);
  color: var(--text);
  border-top: 6px solid var(--brand-red);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 20px 40px rgba(6, 23, 46, 0.38);
}

.rally-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
}

.rally-card-head h2 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text);
}

.rally-card-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--reverse-accent);
  white-space: nowrap;
}

.rally-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.rally-metric {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 0.75rem;
}

.rally-metric--alert {
  border-left-color: var(--cta);
}

.rally-metric-num {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rally-metric--alert .rally-metric-num {
  color: var(--reverse-accent);
}

.rally-metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.3;
}

.rally-metric-label a {
  color: var(--accent);
}

.rally-card-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  margin: 0;
}

/* Full-width Red ZIP Banner Strip */
.zip-banner {
  background-color: var(--brand-red);
  color: #ffffff;
  border-top: 4px solid #ffffff;
  border-bottom: 4px solid var(--brand-navy-deep);
  padding-block: 1.65rem;
}

.zip-banner-grid {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .zip-banner-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2rem;
  }
}

.zip-banner-copy h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.zip-banner-copy p {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  color: #fff3f4;
  max-width: 48ch;
}

.zip-banner .zip-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.zip-banner .zip-form label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-block .zip-input::placeholder,
.zip-banner .zip-input::placeholder {
  color: var(--placeholder-on-white);
}

.zip-banner .zip-input {
  padding: 0.7rem 0.9rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-navy);
  background-color: #ffffff;
  border: 3px solid var(--brand-navy-deep);
}

.zip-banner .zip-submit {
  align-self: flex-end;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  background-color: var(--brand-navy-deep);
  color: #ffffff;
  border: 3px solid var(--brand-navy-deep);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.zip-banner .zip-submit:hover {
  background-color: var(--brand-navy-mid);
  border-color: var(--brand-navy-mid);
  transform: translateY(-1px);
}

.zip-banner .form-error {
  width: 100%;
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.75rem;
  background: var(--brand-navy-deep);
  color: var(--brand-gold-bright);
  border-left: 4px solid var(--brand-gold);
}

.zip-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #fff3f4;
}

.zip-examples a {
  padding: 0.22rem 0.55rem;
  background: rgba(6, 23, 46, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.zip-examples a:hover {
  background: var(--brand-navy-deep);
  color: #ffffff;
  text-decoration: none;
}

/* Rally Homepage Sections & Scoreboard */
.rally-section {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.rally-section--tinted {
  background-color: var(--surface-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rally-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.65rem;
  padding-bottom: 0.85rem;
  border-bottom: 3px solid var(--accent);
}

.rally-section-head h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  margin: 0;
}

.rally-section-sub {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0.35rem 0 0;
}

.tracker-split {
  display: grid;
  gap: 1.35rem;
  /* Cards keep their own height; stretching the shorter one left a ~580px hole above its links */
  align-items: start;
}

@media (min-width: 860px) {
  .tracker-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scoreboard {
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.scoreboard-banner {
  padding: 0.8rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #ffffff;
}

.scoreboard-banner--them {
  background-color: var(--brand-red-dark);
}

.scoreboard-banner--us {
  background-color: var(--brand-navy);
}

.scoreboard-banner h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  color: #ffffff;
}

.scoreboard-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f0f4fa;
}

.scoreboard-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.scoreboard-headline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.scoreboard-big {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.scoreboard-big--red {
  color: var(--reverse-accent);
}

.scoreboard-unit {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1rem;
}

.bar-track {
  display: flex;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
}

.bar-seg-done { background: var(--chart-done); }
.bar-seg-progress { background: var(--chart-progress); }
.bar-seg-notstarted { background: var(--chart-not-started); }
/* Same tokens as the /project-2025/ chart keys (charts.js reversed / countered / gap):
   three lightness steps in each theme, not hue alone. */
.bar-seg-reversed { background: var(--status-strong); }
.bar-seg-countered { background: var(--status-partial); }
.bar-seg-gap { background: var(--status-gap); }

.tally-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .tally-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.tally-cell {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 0.65rem 0.7rem;
}

.tally-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.tally-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-top: 0.15rem;
}

.tally-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

.scoreboard-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.35rem;
}

.rally-text-link {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.96rem;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

/* Quick Category Filter Pills (synced with #home-part-filter) */
.part-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}

.part-pill {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.part-pill:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.part-pill[aria-pressed="true"] {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

/* Homepage Take Action Band */
.action-band {
  background-color: var(--brand-navy);
  background-image: linear-gradient(135deg, rgba(176, 17, 41, 0.22) 0%, transparent 48%);
  color: #ffffff;
  border-top: 6px solid var(--brand-red);
  padding-block: clamp(2.5rem, 5.5vw, 4rem);
  margin-top: 2rem;
}

.action-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.action-head .kicker {
  color: var(--brand-gold-bright);
}

.action-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  color: #ffffff;
  margin: 0;
}

.action-head p {
  color: #dce7f7;
  max-width: 56ch;
  margin: 0.45rem 0 0;
}

.action-cards {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 780px) {
  .action-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.action-card {
  background: var(--surface);
  color: var(--text);
  border-top: 5px solid var(--brand-red);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.action-card-kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--reverse-accent);
  margin: 0;
}

.action-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text);
}

.action-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0;
  flex: 1;
}

/* Inline ZIP widget */

.zip-card-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.zip-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.zip-form-field {
  flex: 1 1 11rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.zip-form label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.zip-input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%;
  text-align: center;
  text-wrap: balance;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn-primary {
  background-color: var(--cta);
  color: #ffffff;
  border-color: var(--cta);
}

.btn-primary:hover {
  background-color: var(--cta-hover);
  border-color: var(--cta-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-navy {
  background-color: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

.btn-navy:hover {
  background-color: var(--brand-navy-mid);
  border-color: var(--brand-navy-mid);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--brand-navy);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.btn-subtle {
  background-color: var(--surface-subtle);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-subtle:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-sm {
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.form-error {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--reverse-accent);
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.chip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-soft);
}

/* Scoreboard / KPI Strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0 1.6rem;
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--brand-navy);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.stat-card--warn {
  border-top-color: var(--brand-gold);
}

.stat-card--danger {
  border-top-color: var(--brand-red);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-card--danger .stat-value {
  color: var(--reverse-accent);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.38;
}

/* Guide cards */
.landing-guides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.guide-card,
.surface-card {
  padding: 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.guide-card h2 {
  font-size: 1.45rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--border);
}

.guide-card--navy {
  background-color: var(--brand-navy);
  color: #f0f4fa;
  border-color: var(--brand-navy-deep);
  border-top: 5px solid var(--brand-gold);
}

.guide-card--navy h2,
.guide-card--navy h3,
.guide-card--navy strong {
  color: #ffffff;
}

.guide-card--navy h2 {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.guide-card--navy a {
  color: var(--brand-gold-bright);
}

.guide-card--navy a:hover {
  color: #ffffff;
}

/* Badges & Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
  max-width: 100%;
}

.badge--strong,
.badge--blocked {
  background-color: var(--status-strong-bg);
  color: var(--status-strong-text);
  border: 1px solid var(--status-strong);
}

.badge--partial {
  background-color: var(--status-partial-bg);
  color: var(--status-partial-text);
  border: 1px solid var(--status-partial);
}

.badge--gap,
.badge--progress,
.badge--wip {
  background-color: var(--status-gap-bg);
  color: var(--status-gap-text);
  border: 1px solid var(--status-gap);
}

.badge--restricted,
.badge--done {
  background-color: var(--status-restricted-bg);
  color: var(--status-restricted-text);
  border: 1px solid var(--status-restricted);
}

.badge--unknown,
.badge--not-started {
  background-color: var(--status-unknown-bg);
  color: var(--status-unknown-text);
  border: 1px solid var(--border-strong);
}

.wip-banner {
  background-color: var(--unverified-bg);
  border: 1px solid var(--unverified-border);
  border-left: 4px solid var(--unverified-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.wip-banner-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--unverified-text);
}

.wip-banner p:last-child {
  margin-bottom: 0;
}

/* Home Issue Cards Grid */
.part-group {
  margin: 2rem 0;
}

.part-group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  border-bottom: 3px solid var(--brand-navy);
}

.part-group-header h2,
.part-group-header h3 {
  margin: 0;
}

.issues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.issue-tile {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--brand-navy);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.issue-tile:hover {
  border-top-color: var(--brand-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.issue-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.issue-tile-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--reverse-accent);
  font-variant-numeric: tabular-nums;
}

.issue-tile-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.16;
}

.issue-tile-title a {
  color: var(--text);
  text-decoration: none;
}

.issue-tile-title a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.issue-tile-stat {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  background-color: var(--surface-subtle);
  border-left: 4px solid var(--brand-navy);
  border-radius: var(--radius-sm);
}

.issue-tile-stat--wip {
  border-left-color: var(--unverified-border);
  background-color: var(--unverified-bg);
}

.issue-tile-figure {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.issue-tile-caption {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.issue-tile-ask {
  font-size: 0.95rem;
  line-height: 1.48;
  color: var(--text);
  background-color: var(--surface-subtle);
  border-left: 3px solid var(--brand-red);
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
  flex-grow: 1;
}

.issue-tile-ask strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  color: var(--reverse-accent);
}

.issue-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.issue-tile-footer a {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.issue-tile-footer a:hover {
  text-decoration: underline;
}

/* Interactive Map Component */
.viz-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.viz-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.viz-header h2,
.viz-header h3 {
  margin: 0;
}

.viz-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.viz-controls label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.viz-select {
  min-height: 44px;
  padding: 0.4rem 0.65rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 700px) {
  .viz-select {
    width: auto;
    max-width: 24rem;
  }
}

.viz-summary {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
  max-width: var(--measure);
}

.map-stage-wrap {
  position: relative;
  width: 100%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.map-stage {
  width: 100%;
  min-height: 240px;
}

.map-stage svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-stage svg g.map-zoom-layer {
  transform-origin: 0 0;
  transition: transform 280ms ease;
}

.map-state-shape,
.map-tile-group,
.map-county-shape {
  cursor: pointer;
}

.map-state-shape {
  stroke: var(--map-stroke);
  stroke-width: 0.8px;
  vector-effect: non-scaling-stroke;
  transition: opacity 120ms ease, fill-opacity 180ms ease, stroke-width 120ms ease;
}

.map-state-shape:focus,
.map-county-shape:focus,
.map-tile-group:focus {
  outline: none;
}

.map-state-shape:hover {
  stroke: var(--map-hover);
  stroke-width: 2px;
}

/* Keyboard focus: map.js draws two .map-focus-ring paths above the shape (halo first,
   line second). Nothing is drawn on the shape itself, so only one ring shows. */
.map-focus-ring {
  fill: none;
  pointer-events: none;
  stroke-linejoin: round;
}

.map-focus-ring:first-child {
  stroke: var(--map-focus-halo);
  stroke-width: 6px;
}

.map-focus-ring:last-child {
  stroke: var(--map-focus-line);
  stroke-width: 3px;
}

.map-county-shape {
  stroke: var(--map-stroke);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity 120ms ease, stroke-width 120ms ease;
}

.map-county-shape:hover {
  fill-opacity: 0.55;
  stroke: var(--map-hover);
  stroke-width: 1.8px;
}

.map-county-shape.is-selected {
  fill-opacity: 0.65;
  stroke: var(--brand-gold-bright);
  stroke-width: 2.2px;
}

.map-county-shape:focus-visible {
  fill-opacity: 0.65;
  outline: none;
}

.map-tile-rect {
  stroke: var(--map-stroke);
  stroke-width: 1.5px;
  rx: 4;
  ry: 4;
  transition: opacity 120ms ease, stroke 120ms ease;
}

.map-tile-group:hover .map-tile-rect {
  stroke: var(--map-hover);
  stroke-width: 2.5px;
}

.map-tile-group:focus-visible {
  outline: none;
}

.map-tile-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.map-tooltip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  max-width: 17rem;
  padding: 0.6rem 0.75rem;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  line-height: 1.4;
}

.map-tooltip[hidden] {
  display: none;
}

.map-tooltip-title {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.map-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.map-selection-panel {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.state-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.85rem;
}

.state-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 36px;
  padding: 0.2rem 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.state-pill-link:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Charts */
.chart-stage {
  width: 100%;
  overflow-x: auto;
  margin: 0.5rem 0 0.75rem;
}

.chart-stage svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-axis text {
  font-family: var(--font-sans);
  font-size: 12px;
  fill: var(--text-muted);
}

.chart-label {
  font-family: var(--font-sans);
  font-size: 13px;
  fill: var(--text);
}

.chart-value-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  fill: var(--text);
  font-variant-numeric: tabular-nums;
}

.chart-grid line {
  stroke: var(--border);
  stroke-dasharray: 2, 3;
}

.viz-table-details {
  margin-top: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
}

.viz-table-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

/* Phones: a 720-unit-wide chart scaled to ~260px draws 3-4px labels. Under 560px show
   the chart's data table (the details element right after .chart-stage) open, with no
   toggle, and hide the SVG. Browsers without ::details-content keep the chart and the
   "View chart data table" toggle. */
@media (max-width: 559px) {
  @supports selector(::details-content) {
    .chart-stage:has(+ .viz-table-details) {
      display: none;
    }

    .chart-stage + .viz-table-details {
      margin-top: 0.25rem;
      border-top: 0;
      padding-top: 0;
    }

    .chart-stage + .viz-table-details::details-content {
      content-visibility: visible;
      display: block;
    }

    .chart-stage + .viz-table-details > summary {
      display: none;
    }
  }
}

/* Issue Detail Five-Part Plan Box */

.issue-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--brand-navy);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.issue-card h2,
.issue-card h3 {
  padding-bottom: 0.6rem;
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.issue-sublabel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--brand-navy);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  margin: 1.15rem 0 0.65rem;
}

.issue-field {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin: 0.9rem 0;
}

.issue-field--reverse {
  background-color: var(--reverse-bg);
  border-left: 3px solid var(--reverse-accent);
}

.issue-field--path,
.issue-field--financing {
  background-color: var(--surface-subtle);
  border-left: 3px solid var(--border-strong);
}

.field-label {
  font-weight: 700;
}

.field-label--reverse {
  color: var(--reverse-accent);
}

.field-label--path,
.field-label--financing {
  color: var(--text);
}

.ask-callout {
  margin: 1.25rem 0 0.25rem;
  padding: 0.9rem 1rem;
  background-color: var(--ask-bg);
  border: 2px solid var(--ask-border);
  border-left-width: 6px;
  border-radius: var(--radius);
}

.issue-field--ask {
  margin: 0;
  padding: 0;
  font-size: 1.03125rem;
  line-height: 1.55;
  color: var(--text);
}

.field-label--ask {
  color: var(--accent);
}

/* Deep Dive Sections */
.deep-dive-section {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.deep-dive-section > h2 {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

/* Footnotes & Citation Popover */
.cite-sup {
  font-size: 0.75em;
  line-height: 1;
  vertical-align: super;
  margin: 0 0.04em 0 0.12em;
}

/* line-height 1 on the link (the sup keeps the parent line box from growing) so the
   focus outline encloses the number instead of collapsing to a 1px bar. */
.cite-link {
  display: inline-block;
  line-height: 1.15;
  padding: 0.08rem 0.2rem;
  scroll-margin-top: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 3px;
}

.cite-link:hover,
.cite-link:focus-visible {
  background-color: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.cite-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.cite-popover {
  position: fixed;
  z-index: 120;
  width: min(24rem, calc(100vw - 1.5rem));
  max-height: 60dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.9rem 1rem;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cite-popover[hidden] {
  display: none;
}

.cite-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.cite-popover-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.cite-popover-close {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface-subtle);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.cite-popover-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cite-popover-quote {
  margin: 0 0 0.6rem;
  padding: 0.45rem 0.65rem;
  background-color: var(--surface-subtle);
  border-left: 3px solid var(--accent);
  font-style: italic;
}

.cite-popover-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.cite-popover-meta a {
  font-weight: 600;
}

.sources-list {
  padding-left: 1.75rem;
}

.sources-list li {
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  scroll-margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.sources-list li:target,
.sources-list li.is-highlighted {
  background-color: var(--accent-soft);
}

/* Unverified notices */
.unverified-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  margin-right: 0.25rem;
  border-radius: 3px;
  background-color: var(--unverified-tag-bg);
  color: var(--unverified-tag-text);
  vertical-align: 0.08em;
}

.unverified-sentence,
.unverified-inline {
  background-color: var(--unverified-bg);
  border-bottom: 2px dashed var(--unverified-border);
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}

.unverified-reason {
  color: var(--unverified-text);
  font-size: 0.9em;
}

td.is-unverified {
  background-color: var(--unverified-bg);
  color: var(--unverified-text);
  border-bottom: 2px dashed var(--unverified-border);
}

.section-open-questions {
  background-color: var(--unverified-bg);
  border: 1px solid var(--unverified-border);
  border-left: 4px solid var(--unverified-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
  margin: 1.5rem 0;
}

.section-sources {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
  margin: 1.5rem 0;
}

/* Filter Toolbar & Tables */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  align-items: end;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1rem 0;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.filter-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-field input,
.filter-field select {
  min-height: 44px;
  padding: 0.4rem 0.65rem;
  width: 100%;
}

.filter-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin: 0.5rem 0;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn[aria-selected="true"],
.tab-btn.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: break-word;
}

.data-table thead th {
  background-color: var(--brand-navy);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--brand-red);
}

.data-table tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: auto 52px;
}

/* Linked source rows (/sources/#...) */
#sources-table tbody tr {
  scroll-margin-top: 0.75rem;
}

#sources-table tbody tr:target {
  outline: 3px solid var(--brand-gold);
  outline-offset: -3px;
  background-color: var(--accent-soft);
}

.agency-issue-ask {
  font-weight: 600;
  color: var(--text-muted);
}

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

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.sort-btn:hover {
  color: var(--brand-gold-bright);
}

.sort-indicator {
  font-size: 0.8em;
  color: var(--brand-gold-bright);
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}

/* Stack table rows as cards under 640px */
@media (max-width: 639px) {
  .table-wrap--stack {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: visible;
  }

  .table-wrap--stack .data-table,
  .table-wrap--stack .data-table thead,
  .table-wrap--stack .data-table tbody,
  .table-wrap--stack .data-table tr,
  .table-wrap--stack .data-table td {
    display: block;
    width: 100%;
  }

  .table-wrap--stack .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;
  }

  .table-wrap--stack .data-table tbody tr {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-sm);
  }

  .table-wrap--stack .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .table-wrap--stack .data-table td {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
  }

  .table-wrap--stack .data-table td:last-child {
    border-bottom: 0;
  }

  .table-wrap--stack .data-table td::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
  }
}

/* Blockquotes (call script & sample email) */
.script-box {
  margin: 1rem 0 1.25rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}

.script-box-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.copy-status {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 72px;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.copy-btn:hover {
  background-color: var(--accent-soft);
}

.script-box-bar:has(.copy-btn[hidden]),
.copy-btn[hidden] {
  display: none;
}

.script-box blockquote {
  margin: 0;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.script-box blockquote p:last-child {
  margin-bottom: 0;
}

/* Zip Lookup & State Results Grids */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0;
}

.official-card {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  min-width: 0;
}

.official-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.official-name {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.15rem 0 0.35rem;
}

.share-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.share-bar {
  display: inline-block;
  width: 3.5rem;
  height: 0.45rem;
  background-color: var(--border);
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
}

.share-bar-fill {
  display: block;
  height: 100%;
  background-color: var(--accent);
}

/* Pocket Card & Candidate Pledge */
.pocket-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 1rem 0;
}

.pocket-ask {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
  line-height: 1.45;
  break-inside: avoid;
}

.pocket-ask-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

/* Source Catalog Chips */
.cite-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.page-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 3px;
}

.page-chip:hover {
  background-color: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

/* Prev / Next Issue Nav */
.pager-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--border);
}

.pager-link {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
}

.pager-link:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  text-decoration: none;
}

.pager-dir {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.pager-title {
  font-weight: 700;
  color: var(--text);
}

/* Footer (Rally deep navy) */
.site-footer {
  border-top: 4px solid var(--brand-red);
  background-color: var(--brand-navy-deep);
  color: #d7e3f4;
  margin-top: 3rem;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.site-footer--flush {
  margin-top: 0;
}

.site-footer-inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 1rem;
  max-width: 100%;
}

.footer-brand img {
  display: block;
  height: 3.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 640px) {
  .footer-brand img {
    height: 4.75rem;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-links a {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
}

.footer-links a:hover {
  color: var(--brand-gold-bright);
  text-decoration: underline;
}

.footer-note {
  font-size: 0.9rem;
  color: #b8c9e0;
  margin: 0;
  max-width: 60ch;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: #ffffff;
  white-space: nowrap;
}

.back-to-top:hover {
  color: #ffffff;
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  text-decoration: none;
}

/* Medium screens */
@media (min-width: 700px) {
  body {
    font-size: 1.0625rem;
  }

  .hero-block {
    padding: 2rem;
  }

  .landing-guides .guide-card p,
  .landing-guides .guide-card ul,
  .landing-guides .guide-card ol {
    max-width: none;
  }

  .issues-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pocket-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pager-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-card,
  .surface-card,
  .issue-card,
  .deep-dive-section,
  .viz-card {
    padding: 1.65rem 1.85rem;
  }
}

/* Desktop screens */
@media (min-width: 1024px) {
  :root {
    --header-height: 4.75rem;
  }

  .site-brand-img {
    height: 2.65rem;
  }

  .mobile-header-actions,
  .mobile-menu {
    display: none;
  }

  .header-links {
    display: flex;
  }

  .header-links a {
    padding: 0 0.32rem;
    font-size: 0.82rem;
    letter-spacing: 0.025em;
  }

  .header-links a.nav-cta {
    margin-left: 0.25rem;
    padding: 0 0.72rem;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 0.75rem);
  }

  .issues-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 1200px) {
  :root {
    --header-height: 5.15rem;
  }

  .site-brand-img {
    height: 3.65rem;
  }

  .header-links {
    gap: 0.1rem;
  }

  .header-links a {
    padding: 0 0.42rem;
    font-size: 0.89rem;
    letter-spacing: 0.04em;
  }

  .header-links a.nav-cta {
    margin-left: 0.32rem;
    padding: 0 0.85rem;
  }
}

@media (min-width: 1320px) {
  :root {
    --header-height: 5.5rem;
  }

  .site-brand-img {
    height: 4.35rem;
  }

  .header-links {
    gap: 0.15rem;
  }

  .header-links a {
    padding: 0 0.58rem;
    font-size: 0.93rem;
    letter-spacing: 0.045em;
  }

  .header-links a.nav-cta {
    margin-left: 0.4rem;
    padding: 0 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .issue-tile:hover,
  .btn:hover,
  .zip-banner .zip-submit:hover {
    transform: none;
  }
}

@media screen and (prefers-color-scheme: dark) {
  .part-pill[aria-pressed="true"] {
    background-color: var(--cta);
    border-color: var(--cta);
    color: #ffffff;
  }

  .data-table thead th {
    background-color: #132847;
    color: #f0f4fa;
  }

  .rally-card {
    border: 1px solid var(--border);
    border-top: 6px solid var(--cta);
  }
}

/* Wrapped sentence-case status badges & Project 2025 coverage/impact badges */
.badge--wrap {
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.badge--reversed {
  background-color: var(--status-strong-bg);
  color: var(--status-strong-text);
  border: 1px solid var(--status-strong);
}

.badge--countered {
  background-color: var(--status-partial-bg);
  color: var(--status-partial-text);
  border: 1px solid var(--status-partial);
}

.badge--gap-done {
  background-color: var(--status-restricted-bg);
  color: var(--status-restricted-text);
  border: 1px solid var(--status-restricted);
}

.badge--impact-high {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 700;
}

.badge--impact-medium {
  background-color: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.badge--impact-low {
  background-color: var(--surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Project 2025 Explorer & Issue "What Project 2025 wanted here" cards */
.p2025-issue-panel {
  margin: 1.5rem 0;
}

.p2025-method-note {
  border-left: 4px solid var(--accent);
}

.p2025-obj-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.p2025-obj-card {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  min-width: 0;
}

.p2025-obj-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.p2025-obj-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--text);
  overflow-wrap: break-word;
}

.p2025-obj-meta {
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.p2025-obj-notes {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.p2025-why-matters {
  margin: 0.45rem 0;
  padding: 0.45rem 0.7rem;
  border-left: 3px solid var(--gold);
  background-color: var(--surface);
  border-radius: 0 4px 4px 0;
  font-size: 0.9375rem;
  line-height: 1.48;
  color: var(--text);
}

.p2025-plan-note {
  margin: 0.45rem 0 0.55rem;
  padding: 0.45rem 0.7rem;
  border-left: 3px solid var(--status-strong);
  background-color: var(--surface);
  border-radius: 0 4px 4px 0;
  font-size: 0.9375rem;
  line-height: 1.48;
  color: var(--text);
}

.p2025-unmapped {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.p2025-recs-details {
  margin-top: 0.65rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.p2025-recs-details > summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.p2025-recs-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.p2025-recs-list > li {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}

.p2025-rec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.p2025-rec-prop {
  margin: 0 0 0.3rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.p2025-rec-quote {
  margin: 0 0 0.3rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border-strong);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.p2025-rec-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Feedback form (/feedback/) */
.feedback-card {
  max-width: 46rem;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feedback-field label {
  font-weight: 600;
  color: var(--text);
}

.feedback-opt,
.feedback-req {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}

.feedback-field textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.feedback-field input:focus-visible,
.feedback-field select:focus-visible,
.feedback-field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.feedback-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feedback-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

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

.feedback-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.feedback-status--pending {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.feedback-status--success {
  background-color: var(--status-strong-bg);
  border: 1px solid var(--status-strong);
  color: var(--status-strong-text);
}

.feedback-status--error {
  background-color: var(--status-restricted-bg);
  border: 1px solid var(--status-restricted);
  color: var(--status-restricted-text);
}

/* Zip Script Builder & One-Tap Official/Town Fill Chips */
.script-builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0.75rem 0 1.25rem;
}

@media (min-width: 700px) {
  .script-builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .script-builder-wide {
    grid-column: 1 / -1;
  }
}

.fill-chips-group {
  margin-top: 0.45rem;
}

.fill-chips-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.fill-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fill-chip.is-selected {
  background-color: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.fill-more-details {
  margin-top: 0.4rem;
}

.fill-more-details > summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.fill-more-details .fill-chips-row {
  margin-top: 0.35rem;
}

/* Global Cmd+K / Ctrl+K Site Search Modal */
body.search-open {
  overflow: hidden;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.75rem, 6vh, 4.5rem) var(--gutter) 1rem;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 17, 33, 0.72);
  backdrop-filter: blur(3px);
}

.search-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 44rem;
  max-height: min(80dvh, 40rem);
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(6, 17, 33, 0.45);
  overflow: hidden;
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.search-input-row:focus-within {
  box-shadow: inset 0 -2px 0 var(--focus-ring);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 0.25rem 0;
}

.search-input:focus-visible {
  outline: none;
}

.search-close-btn {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.search-close-btn:hover {
  background-color: var(--accent-soft);
  color: var(--text);
}

.search-status {
  margin: 0;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-result-link {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  border-left: 4px solid transparent;
  text-decoration: none;
  color: var(--text);
}

.search-result-link:hover,
.search-result-link.is-active {
  background-color: var(--accent-soft);
  border-color: var(--border);
  border-left-color: var(--brand-red);
  color: var(--text);
  text-decoration: none;
}

.search-result-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

.search-type-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.42rem;
  border-radius: 3px;
  flex-shrink: 0;
  line-height: 1.35;
}

.search-type-pill--zip {
  background-color: var(--brand-red);
  color: #ffffff;
}

.search-type-pill--issue {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.search-type-pill--agency {
  background-color: #4f2a6e;
  color: #ffffff;
}

.search-type-pill--p2025 {
  background-color: var(--status-restricted-bg);
  color: var(--status-restricted-text);
}

.search-type-pill--section {
  background-color: var(--status-partial-bg);
  color: var(--status-partial-text);
}

.search-type-pill--state {
  background-color: var(--status-strong-bg);
  color: var(--status-strong-text);
}

.search-type-pill--tool {
  background-color: var(--status-gap-bg);
  color: var(--status-gap-text);
}

.search-result-title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--text);
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.search-result-snippet {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.search-result-title mark,
.search-result-snippet mark {
  background-color: rgba(224, 190, 112, 0.48);
  color: inherit;
  padding: 0 0.12rem;
  border-radius: 2px;
  font-weight: 700;
}

.search-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background-color: var(--surface-subtle);
  border-top: 1px solid var(--border);
}

.search-footer kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.08rem 0.3rem;
  margin-right: 0.22rem;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--text);
}

.search-footer-note {
  margin-left: auto;
  font-weight: 600;
}

@media screen and (prefers-color-scheme: dark) {
  .search-type-pill--issue {
    background-color: #244d82;
    color: #f0f4fa;
  }

  .search-type-pill--agency {
    background-color: #6b3d91;
    color: #f5ecff;
  }

  .search-result-title mark,
  .search-result-snippet mark {
    background-color: rgba(224, 190, 112, 0.28);
    color: #fff6dc;
  }
}

/* Books Showcase & Homepage Books Band */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pillar-card {
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.15rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pillar-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-red);
  margin-bottom: 0.15rem;
}

.pillar-card-head h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
}

.pillar-issue-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 auto;
}

.pillar-issue-list a {
  display: block;
  font-size: 0.9rem;
  line-height: 1.32;
  color: var(--text);
  text-decoration: none;
}

.pillar-issue-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.2rem;
}

.pillar-card-foot {
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
}

.books-promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .books-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.book-promo-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 560px) {
  .book-promo-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.book-promo-cover {
  display: block;
  width: 132px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 20px rgba(6, 23, 46, 0.2);
  flex-shrink: 0;
}

.book-promo-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-red);
}

.book-promo-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  text-transform: uppercase;
  color: var(--text);
}

.book-promo-body p {
  margin: 0 0 0.8rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.book-promo-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.books-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.book-edition-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 720px) {
  .book-edition-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

.book-edition-media img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 26px rgba(6, 23, 46, 0.22);
}

.book-edition-body h2 {
  margin-top: 0.2rem;
}

.book-edition-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.book-download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* Federal Agency Transition Guide (/agencies/) */
.agency-quick-nav {
  margin-bottom: 1.75rem;
}

.agency-nav-group {
  margin-top: 0.85rem;
}

.agency-nav-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.agency-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.agency-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.25rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.agency-nav-pill:hover {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
  text-decoration: none;
}

.agency-nav-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.05rem 0.32rem;
  border-radius: 3px;
  background-color: var(--surface);
  color: var(--text-muted);
}

.agency-nav-pill:hover .agency-nav-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.agency-section {
  margin-top: 2rem;
}

.agency-section-head {
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--brand-navy);
}

.agency-section-head h2 {
  margin: 0.15rem 0 0.3rem;
}

.agency-section-sub {
  margin: 0;
  color: var(--text-muted);
}

.agency-section-note {
  margin: 0.6rem 0 0;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background-color: var(--surface-subtle);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-sm);
}

.agency-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agency-card {
  scroll-margin-top: 0.75rem;
}

.agency-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.agency-card-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
}

.agency-scorecard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.agency-blueprints-box {
  padding: 0.85rem 1rem;
  background-color: var(--surface-subtle);
  border-left: 4px solid var(--brand-navy);
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
}

.agency-blueprints-box h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.agency-blueprints-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.94rem;
}

.agency-blueprints-list li {
  margin-bottom: 0.35rem;
}

.agency-objectives-details > summary {
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  background-color: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.agency-objectives-details > summary:hover {
  background-color: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

.agency-objectives-body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.agency-priority-heading {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.agency-obj-card {
  padding: 0.85rem 1rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.agency-obj-title {
  margin: 0.45rem 0 0.4rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.agency-obj-links {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.badge--sub {
  white-space: normal;
  overflow-wrap: anywhere;
  background-color: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

/* Issue Page Progressive Disclosure Tabs */
.issue-hero-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-sm);
}

.issue-hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-red);
  letter-spacing: 0.01em;
}

.issue-hero-stat-text {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.4;
  flex: 1 1 240px;
}

.issue-tabs-wrap {
  margin-top: 0.25rem;
}

.issue-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem;
  margin-bottom: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.issue-tabs-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 2px;
}

.issue-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.issue-tab-btn:hover {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.issue-tab-btn[aria-selected="true"] {
  background-color: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

.issue-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.08rem 0.42rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 999px;
  background-color: var(--surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.issue-tab-btn[aria-selected="true"] .issue-tab-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.issue-tabs-all-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
}

.issue-tabs-all-btn:hover {
  color: var(--text);
  border-color: var(--brand-navy);
}

.issue-tabs-all-btn[aria-pressed="true"] {
  background-color: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

.issue-tab-panel[hidden]:not([hidden="until-found"]) {
  display: none;
}

/* Under 1080px the tab bar sticks below the header. The tab list scrolls sideways;
   scrolling shadows and a fade on the edge that has more tabs show that it does. */
@media (max-width: 1079px) {
  .issue-tabs-bar {
    position: sticky;
    top: calc(var(--header-height) + 3px);
    z-index: 30;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.3rem;
  }

  .issue-tabs-list {
    padding-bottom: 0;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1.5rem;
    background:
      linear-gradient(to right, var(--surface) 35%, transparent) left center / 2.5rem 100% no-repeat local,
      linear-gradient(to left, var(--surface) 35%, transparent) right center / 2.5rem 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(6, 23, 46, 0.32), transparent) left center / 0.9rem 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(6, 23, 46, 0.32), transparent) right center / 0.9rem 100% no-repeat scroll;
  }

  .issue-tab-btn {
    scroll-snap-align: start;
    padding: 0.45rem 0.7rem;
  }

  .issue-tabs-all-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.35rem 0.6rem;
  }

  /* Anchored headings and focused content clear the header plus the sticky tab bar. */
  html:has(.issue-tabs-bar) {
    scroll-padding-top: calc(var(--header-height) + 5.5rem);
  }

  /* html scroll-padding already clears header + tab bar; scroll-margin adds to it */
  .issue-tab-panels :is(h2, h3, h4, [id]) {
    scroll-margin-top: 0.75rem;
  }
}

/* Short viewports (landscape phones, 200% zoom): the header already takes a fifth of
   the height, so the tab bar scrolls with the page there. */
@media (max-width: 1079px) and (max-height: 500px) {
  .issue-tabs-bar {
    position: static;
  }

  html:has(.issue-tabs-bar) {
    scroll-padding-top: calc(var(--header-height) + 1rem);
  }

  .issue-tab-panels :is(h2, h3, h4, [id]) {
    scroll-margin-top: 0.75rem;
  }
}

@media screen and (max-width: 1079px) and (prefers-color-scheme: dark) {
  .issue-tabs-list {
    background:
      linear-gradient(to right, var(--surface) 35%, transparent) left center / 2.5rem 100% no-repeat local,
      linear-gradient(to left, var(--surface) 35%, transparent) right center / 2.5rem 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(224, 190, 112, 0.45), transparent) left center / 0.9rem 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(224, 190, 112, 0.45), transparent) right center / 0.9rem 100% no-repeat scroll;
  }
}

@property --tabs-fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --tabs-fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

/* Where scroll-driven animations exist, also fade the tab labels at the edge that has
   more tabs; the fade goes away at each end. */
@supports (animation-timeline: scroll(self inline)) {
  @media (max-width: 1079px) {
    .issue-tabs-list {
      mask-image: linear-gradient(to right, transparent 0, #000 var(--tabs-fade-start), #000 calc(100% - var(--tabs-fade-end)), transparent 100%);
      animation: issue-tabs-fade linear both;
      animation-timeline: scroll(self inline);
    }
  }

  @keyframes issue-tabs-fade {
    0% { --tabs-fade-start: 0px; --tabs-fade-end: 2.25rem; }
    8% { --tabs-fade-start: 2.25rem; }
    92% { --tabs-fade-end: 2.25rem; }
    100% { --tabs-fade-start: 2.25rem; --tabs-fade-end: 0px; }
  }
}

.issue-tabs-wrap.is-show-all .issue-tab-panel + .issue-tab-panel {
  margin-top: 1.5rem;
}

.issue-next-strip {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.issue-next-strip .kicker {
  margin-bottom: 0.75rem;
}

.issue-next-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .issue-next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .issue-next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.issue-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.issue-workspace .prose p,
.issue-workspace .prose ul,
.issue-workspace .prose ol,
.issue-workspace .ask-callout,
.issue-workspace .script-box {
  max-width: 100%;
}

.issue-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 1080px) {
  .issue-workspace {
    grid-template-columns: minmax(0, 1fr) 21.5rem;
    gap: 1.75rem;
  }

  .issue-rail {
    position: sticky;
    top: 6.15rem;
    max-height: calc(100vh - 7.15rem);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 2px;
  }
}

.rail-card {
  padding: 1.15rem 1.2rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.rail-card--action {
  border-top-color: var(--brand-red);
}

.rail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.rail-kicker {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-red);
}

.rail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text);
}

.rail-all-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
}

.rail-all-btn:hover {
  background-color: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

.rail-facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rail-facts-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.rail-facts-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rail-fact-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.rail-fact-val {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}

.rail-fact-link {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
}

.rail-fact-link:hover {
  text-decoration: underline;
}

.rail-ref-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rail-ref-item {
  padding: 0.72rem 0.8rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-navy);
  border-radius: var(--radius-sm);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.rail-ref-item.is-active {
  border-left-color: var(--brand-red);
  background-color: var(--accent-soft);
}

.rail-ref-head {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.35;
}

.rail-ref-num {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  background-color: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.rail-ref-num:hover {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.rail-ref-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.rail-ref-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.rail-ref-meta {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.rail-ref-quote {
  margin: 0.42rem 0 0;
  padding: 0 0 0 0.6rem;
  border-left: 2px solid var(--border-strong);
  font-size: 0.82rem;
  line-height: 1.42;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-ask-text {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.48;
  color: var(--text);
}

.rail-zip-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: stretch;
}

.rail-zip-form input[type="text"] {
  min-height: 40px;
  padding: 0.4rem 0.65rem;
  font-size: 0.94rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  min-width: 0;
}

.rail-zip-form .form-error {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}

.rail-action-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 700;
}

.rail-action-links a {
  color: var(--accent);
  text-decoration: none;
}

.rail-action-links a:hover {
  text-decoration: underline;
}

.issue-next-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.25rem;
  width: 100%;
  min-height: 44px;
  padding: 0.85rem 1rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.issue-next-card:hover {
  background-color: var(--accent-soft);
  border-left-color: var(--brand-red);
}

.issue-next-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.issue-next-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}

@media screen and (prefers-color-scheme: dark) {
  .issue-tab-btn[aria-selected="true"] {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
  }

  .issue-hero-stat-num {
    color: var(--brand-gold-bright);
  }
}

/* ------------------------------------------------------------------
   Print
   ------------------------------------------------------------------ */
@page {
  size: letter;
  margin: 0.6in;
}

@media print {
  html {
    scroll-behavior: auto;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 10pt;
    line-height: 1.35;
    overflow: visible;
  }

  /* Site chrome, interactive-only controls, the map and the tab bar */
  .rally-ribbon,
  .site-header,
  .breadcrumbs,
  .script-box-bar,
  .site-footer,
  .skip-link,
  .no-print,
  .pager-nav,
  .filter-bar,
  .pagination-bar,
  .zip-banner,
  .action-band,
  .search-modal,
  .issue-tabs-bar,
  .issue-next-strip,
  .issue-rail,
  .viz-card:has(.map-stage),
  .map-stage-wrap,
  .map-bar,
  .map-selection-panel,
  .map-tooltip,
  .cite-popover,
  .copy-btn,
  .source-backlinks,
  .part-pills {
    display: none !important;
  }

  /* Every tab panel prints, one after another */
  .issue-workspace {
    display: block !important;
  }

  .issue-tab-panel,
  .issue-tab-panel[hidden] {
    display: block !important;
    content-visibility: visible !important;
  }

  .issue-tab-panel + .issue-tab-panel {
    margin-top: 1rem;
  }

  .data-table tbody tr,
  .p2025-obj-card,
  .sources-list li {
    content-visibility: visible !important;
  }

  a {
    color: #000000;
  }

  /* Full URLs after external links, in source lists only */
  .sources-list a[href^="http"]::after,
  #sources-table a[href^="http"]::after {
    content: " <" attr(href) ">";
    font-size: 8pt;
    font-weight: 400;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .cite-link {
    background: none !important;
    color: #000000 !important;
    padding: 0;
  }

  /* White-on-color chips would print as white on nothing when the reader's print
     dialog drops background graphics; keep their fills. */
  .issue-sublabel,
  .unverified-tag,
  .badge,
  .scoreboard-banner,
  .bar-track,
  .legend-swatch,
  .btn-primary,
  .btn-navy {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .hero-block,
  .rally-hero,
  .guide-card--navy {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #666666 !important;
    box-shadow: none !important;
  }

  .hero-block h1,
  .hero-block h2,
  .hero-block .kicker,
  .hero-block .lead-intro,
  .hero-block .doc-meta,
  .rally-hero h1,
  .rally-hero .lead-intro,
  .guide-card--navy h2,
  .guide-card--navy a {
    color: #000000 !important;
  }

  .data-table thead th {
    background: #eeeeee !important;
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
  }

  .table-wrap {
    overflow: visible;
    box-shadow: none;
  }

  .page-shell {
    display: block;
    padding: 0;
    max-width: none;
  }

  h1,
  h2,
  h3,
  h4 {
    break-after: avoid;
  }

  .data-table tr,
  .pocket-ask,
  .official-card,
  .p2025-obj-card,
  .agency-obj-card,
  .issue-tile,
  .stat-card,
  .ask-callout,
  .script-box,
  .time-notice {
    break-inside: avoid;
  }

  .issue-card,
  .hero-block,
  .guide-card,
  .surface-card,
  .deep-dive-section,
  .viz-card,
  .rail-card {
    box-shadow: none;
    border-color: #999999;
  }

  .hero-block,
  .guide-card,
  .viz-card {
    break-inside: avoid;
  }

  .pocket-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .pocket-ask {
    border: 1px solid #666666;
    border-left: 3px solid #0b274b;
    padding: 0.35rem 0.5rem;
    font-size: 8.5pt;
  }

  /* "Print Pocket Card": the page script sets body.print-pocket-card around window.print().
     Only the card prints, sized for one or two Letter pages. */
  body.print-pocket-card {
    font-size: 8pt;
    line-height: 1.25;
  }

  body.print-pocket-card > :not(main),
  body.print-pocket-card main > :not(#pocket-card, [data-pocket-card]) {
    display: none !important;
  }

  body.print-pocket-card main {
    padding: 0;
    margin: 0;
  }

  body.print-pocket-card :is(#pocket-card, [data-pocket-card]) {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.print-pocket-card :is(#pocket-card, [data-pocket-card]) .viz-header {
    margin: 0 0 0.2rem;
  }

  body.print-pocket-card :is(#pocket-card, [data-pocket-card]) h2 {
    font-size: 12pt;
    margin: 0;
  }

  body.print-pocket-card :is(#pocket-card, [data-pocket-card]) .zip-card-note {
    font-size: 7.5pt;
    margin: 0 0 0.25rem;
  }

  body.print-pocket-card .pocket-card-grid {
    margin: 0;
    gap: 0.2rem 0.3rem;
  }

  body.print-pocket-card .pocket-ask {
    padding: 0.2rem 0.35rem;
    font-size: 7.5pt;
    line-height: 1.22;
    border-radius: 0;
  }

  body.print-pocket-card .pocket-ask-title {
    margin-bottom: 0.05rem;
  }
}

/* ------------------------------------------------------------------
   Notices, status lines and other small hooks used by page templates
   and scripts
   ------------------------------------------------------------------ */

/* "Last reviewed / data as of" line */
.last-updated {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.hero-block .last-updated {
  color: #cddaf0;
}

/* Home hero additions: one-line "what this is", the two tracks, and the premise */
.rally-hero a:not(.btn) {
  color: var(--brand-gold-bright);
}

.rally-hero a:not(.btn):hover {
  color: #ffffff;
}

/* The briefing card inside the hero is a light surface */
.rally-hero .rally-card a:not(.btn) {
  color: var(--accent);
}

.rally-hero .rally-card a:not(.btn):hover {
  color: var(--accent-hover);
}

.home-what {
  margin: 0 0 0.75rem;
  max-width: 42rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
}

.home-tracks {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  max-width: 62ch;
  color: #e6eef9;
  background-color: rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-sm);
}

.home-tracks p {
  margin: 0 0 0.45rem;
}

.home-tracks ul {
  margin: 0;
  padding-left: 1.2rem;
}

.home-tracks li::marker {
  color: var(--brand-gold-bright);
}

.home-tracks li {
  margin-bottom: 0.35rem;
}

.home-tracks li:last-child {
  margin-bottom: 0;
}

.home-tracks strong {
  color: #ffffff;
}

.home-premise {
  margin: 0.75rem 0 1.4rem;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.55;
  color: #cddaf0;
}

.home-premise-sources {
  font-size: 0.9rem;
}

.home-premise-sources a {
  text-decoration: underline;
}

.scoreboard-gap-note {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.scoreboard-gap-note a {
  text-decoration: underline;
}

.scoreboard-note {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* "In this tab" contents at the top of long issue tab panels */
.panel-toc {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-navy);
  border-radius: var(--radius-sm);
}

.panel-toc-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.panel-toc li {
  margin: 0;
}

@media (min-width: 640px) {
  .panel-toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* /search/ page form */
.search-page-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem;
}

.search-page-form label {
  flex: 1 0 100%;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.search-page-form input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
}

/* /states/ index */
.state-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.6rem;
}

.content .state-index-list li,
.state-index-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.state-index-item a {
  display: inline-flex;
  gap: 0.4rem;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.state-index-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.state-index-abbr {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.state-index-line {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Notice for dated information (bill numbers that expire, officials as of a date) */
.time-notice {
  margin: 1rem 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  max-width: var(--measure);
}

.time-notice > :last-child {
  margin-bottom: 0;
}

.time-notice strong:first-child {
  color: var(--unverified-text);
}

.hero-block .time-notice {
  color: var(--text);
}

.hero-block .time-notice a:not(.btn) {
  color: var(--accent);
}

/* Short visible status line (search, ZIP lookup, explorer counts) */
.status-line,
#zip-status {
  margin: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-line:empty,
#zip-status:empty {
  display: none;
}

.hero-block .status-line,
.hero-block #zip-status,
.rally-hero .status-line,
.zip-banner .status-line,
.zip-banner #zip-status {
  color: #e6eef9;
}

/* Project 2025 counting rule note */
.p2025-rule-note {
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  background-color: var(--surface-subtle);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  max-width: var(--measure);
}

.hero-block .p2025-rule-note {
  color: var(--text-muted);
}

/* "Back to text" links that footnotes.js appends to each numbered source */
.source-backlinks {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.4rem;
  margin-left: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.source-backlink {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  min-width: 24px;
  padding: 0 0.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border-radius: var(--radius-sm);
}

.source-backlink:hover {
  text-decoration: underline;
  background-color: var(--accent-soft);
}

/* Unverified tag inside table cells and list items */
.data-table .unverified-tag,
li .unverified-tag {
  white-space: nowrap;
  margin-block: 0.1rem;
}

.unverified-tag + .unverified-reason {
  margin-left: 0.15rem;
}

/* Long lists: skip layout and paint for cards that are off screen */
.p2025-obj-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}

@media (max-width: 639px) {
  .table-wrap--stack .data-table tbody tr {
    contain-intrinsic-size: auto 180px;
  }
}

/* ------------------------------------------------------------------
   No JavaScript: tab panels show stacked with their content, tab bar hidden.
   Works with html.no-js (removed by script) and the scripting media feature.
   ------------------------------------------------------------------ */
.no-js .issue-tabs-bar,
.no-js .issue-tabs-all-btn {
  display: none !important;
}

.no-js .issue-tab-panel,
.no-js [role="tabpanel"],
.no-js [role="tabpanel"][hidden] {
  display: block !important;
  content-visibility: visible !important;
}

.no-js [role="tabpanel"] + [role="tabpanel"] {
  margin-top: 1.5rem;
}

@media (scripting: none) {
  .issue-tabs-bar {
    display: none !important;
  }

  [role="tabpanel"],
  [role="tabpanel"][hidden] {
    display: block !important;
    content-visibility: visible !important;
  }

  [role="tabpanel"] + [role="tabpanel"] {
    margin-top: 1.5rem;
  }
}


/* ------------------------------------------------------------------
   /reversals/ grouped cards
   ------------------------------------------------------------------ */
.reversal-how-to-read {
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: var(--measure);
}

.reversal-group {
  margin: 2rem 0 0;
}

.reversal-group > h2 {
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
}

.reversal-group-note {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: var(--measure);
}

.content ul.reversal-cards,
.reversal-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 900px) {
  .content ul.reversal-cards,
  .reversal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.content .reversal-cards > li.reversal-card,
.reversal-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.15rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Status badge sits top right; issue and timing tags read first on the left */
.reversal-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.reversal-card-head > .badge {
  order: 2;
  margin-left: auto;
}

.reversal-card-issue-nums,
.reversal-card-when {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.reversal-card-title {
  margin: 0.65rem 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.content .reversal-card p.reversal-card-path,
.content .reversal-card p.reversal-card-meta {
  margin: 0 0 0.5rem;
}

.reversal-card-path a,
.reversal-card-meta a {
  text-decoration: underline;
}

.content ul.reversal-card-issues,
.reversal-card-issues {
  list-style: none;
  margin: auto 0 0;
  padding: 0.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.content .reversal-card-issues li {
  margin: 0;
}

.reversal-card-issues a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.reversal-extra {
  margin-top: 1.5rem;
}

/* Issue Ask callout is the target of "What to ask for" links */
/* html scroll-padding-top clears the sticky header (and tab bar under 1080px) */
#ask {
  scroll-margin-top: 0.75rem;
}

#ask:target {
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
}

.hero-block .btn-row {
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.hero-block .stat-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.hero-block .stat-card {
  padding: 0.6rem 0.7rem;
}

.hero-block .stat-value {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
}

.hero-block .stat-label {
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* ------------------------------------------------------------------
   "In short" lines (issue hero, /issues/ tiles, home button)
   ------------------------------------------------------------------ */
.issue-in-short {
  margin: 0.25rem 0 0.85rem;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
  line-height: 1.5;
  color: #ffffff;
}

.issue-in-short-label,
.issue-hero-ask-label {
  margin-right: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold-bright);
}

.issue-hero-ask {
  margin: 0 0 1rem;
  max-width: 62ch;
  padding: 0.6rem 0.85rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-sm);
}

.issue-hero-ask a {
  white-space: nowrap;
  font-weight: 600;
}

.issue-tile-summary {
  margin: 0.4rem 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

.issue-tile-stat--secondary {
  margin-top: 0.25rem;
  padding: 0.45rem 0.65rem;
}

.issue-tile-stat--secondary .issue-tile-figure {
  font-size: 1.1rem;
}

.issue-tile-stat--secondary .issue-tile-caption {
  font-size: 0.85rem;
}

.btn .btn-sub {
  margin-left: 0.4em;
  font-size: 0.8em;
  font-weight: 600;
  opacity: 0.85;
}

/* ------------------------------------------------------------------
   Home "First to the desk" bill cards
   ------------------------------------------------------------------ */
.desk-list {
  list-style: none;
  margin: 1.25rem 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .desk-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .desk-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.desk-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.9rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.desk-item p {
  margin: 0 0 0.3rem;
}

.desk-item p:last-child {
  margin-bottom: 0;
}

.desk-bill {
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.desk-does {
  line-height: 1.5;
  color: var(--text);
}

.desk-support,
.desk-issue {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.desk-issue {
  margin-top: auto;
  padding-top: 0.35rem;
}

.desk-label {
  font-weight: 600;
  color: var(--text-muted);
}

.desk-item a {
  text-decoration: underline;
}

/* Senate-rule ask box on /take-action/ */
.script-box--senate-rule {
  border-left-color: var(--text-red);
}

/* Senate-rule ask spans both pocket-card columns */
.pocket-ask--senate-rule {
  grid-column: 1 / -1;
  border-left-color: var(--text-red);
}

@media print {
  .pocket-ask--senate-rule {
    border-left-color: #b01129;
  }
}

/* ------------------------------------------------------------------
   Touch targets for phone numbers and official contact links
   ------------------------------------------------------------------ */
a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.official-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font-weight: 600;
}

.official-card a[href^="tel:"] {
  margin: 0.15rem 0 0.15rem 0.2rem;
  padding: 0 0.65rem;
  color: var(--accent);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.official-card a[href^="tel:"]:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.official-card p + a,
.official-card p + span {
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------------
   /issues/ "In short" tiles: the summary leads, the Ask is secondary.
   Desktop: one wide row per issue (number and title left, text right),
   so most summaries fit on one or two lines at a readable measure.
   No truncation on tile text.
   ------------------------------------------------------------------ */
.issue-tile:has(.issue-tile-summary) .issue-tile-ask {
  flex-grow: 0;
  margin: 0.35rem 0 0.75rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: none;
  border-left: 0;
}

.issue-tile:has(.issue-tile-summary) .issue-tile-ask strong {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.issue-tile:has(.issue-tile-summary) .issue-tile-summary {
  flex-grow: 1;
}

@media (min-width: 1024px) {
  .issues-grid:has(.issue-tile-summary) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }

  .issue-tile:has(.issue-tile-summary) {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    grid-template-areas:
      "num summary"
      "title summary"
      "title ask"
      "title footer";
    grid-template-rows: auto auto auto 1fr;
    column-gap: 1.75rem;
    align-items: start;
    padding: 0.9rem 1.25rem;
    border-top-width: 1px;
    border-left: 5px solid var(--brand-navy);
  }

  .issue-tile:has(.issue-tile-summary):hover {
    border-left-color: var(--brand-red);
    transform: none;
  }

  .issue-tile:has(.issue-tile-summary) > .issue-tile-top {
    grid-area: num;
    margin-bottom: 0.2rem;
  }

  .issue-tile:has(.issue-tile-summary) > .issue-tile-title {
    grid-area: title;
    margin: 0;
    font-size: 1.15rem;
  }

  .issue-tile:has(.issue-tile-summary) > .issue-tile-summary {
    grid-area: summary;
    margin: 0;
    max-width: none;
    font-size: 1rem;
    line-height: 1.5;
  }

  .issue-tile:has(.issue-tile-summary) > .issue-tile-ask {
    grid-area: ask;
    margin: 0.3rem 0 0.4rem;
    max-width: none;
  }

  .issue-tile:has(.issue-tile-summary) > .issue-tile-footer {
    grid-area: footer;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 0.4rem;
    border-top: 0;
  }

  .issue-tile:has(.issue-tile-summary) > .issue-tile-stat {
    grid-column: 2;
    margin: 0.2rem 0 0.4rem;
  }
}

/* ------------------------------------------------------------------
   QA pass: /issues/ strategy link, /strategy/, home books link,
   /sources/ row details, pocket-card source line
   ------------------------------------------------------------------ */
.issues-strategy-link {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-block .issues-strategy-link {
  color: #cddaf0;
}

.issues-strategy-link a {
  text-decoration: underline;
}

.hero-block .lead-intro {
  max-width: 68ch;
}

.strategy-body > :is(p, ul, ol, blockquote, h2, h3, h4) {
  max-width: 70ch;
}

.strategy-body .table-wrap {
  max-width: 100%;
}

.home-books-link {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: #cddaf0;
}

.home-books-link a {
  text-decoration: underline;
}

.source-host-path,
.source-cited-on {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.source-host-path {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.pocket-card-source {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  text-align: right;
  color: var(--text-muted);
}

@media print {
  body.print-pocket-card .pocket-card-source,
  .pocket-card-source {
    display: block !important;
    margin-top: 0.25rem;
    font-size: 7pt;
    color: #333333;
  }
}

/* Long "When" tags on /reversals/ cards wrap as a rounded label, not a pill */
.reversal-card-when {
  border-radius: var(--radius-sm);
  white-space: normal;
  max-width: 100%;
}

/* No-JavaScript note beside ZIP forms */
.zip-noscript {
  flex-basis: 100%;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.zip-noscript a {
  text-decoration: underline;
}

.zip-banner .zip-noscript,
.hero-block .zip-noscript,
.rally-hero .zip-noscript {
  color: #ffffff;
}

.zip-banner .zip-noscript a,
.hero-block .zip-noscript a {
  color: #ffffff;
}

/* ------------------------------------------------------------------
   Layout nits: home CTA row spacing, /issues/ compact hero and filter
   ------------------------------------------------------------------ */
.rally-hero .rally-cta-row {
  margin: 0 0 1.4rem;
}

.btn .btn-sub {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .rally-hero .rally-cta-row .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* /issues/ hero: compact so the first tile shows sooner */
.hero-block:has(.issues-two-minute) {
  padding-block: 1.1rem;
  margin-bottom: 1.1rem;
}

.hero-block:has(.issues-two-minute) h1 {
  margin-bottom: 0.4rem;
}

.hero-block:has(.issues-two-minute) .lead-intro {
  margin-bottom: 0;
}

/* The part chips and the "Filter by policy area" select drive the same filter
   (core.js: a chip click sets the select, the select owns URL state). Chips from
   720px up, the select below. */
@media (min-width: 720px) {
  .filter-field:has(#home-part-filter) {
    display: none;
  }
}

@media (max-width: 719px) {
  .part-pills:has(.part-pill[data-part-value]) {
    display: none;
  }
}

.hero-block:has(.issues-two-minute) .kicker {
  margin-bottom: 0.25rem;
}

.hero-block:has(.issues-two-minute) h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.hero-block:has(.issues-two-minute) .issues-strategy-link {
  margin-top: 0.35rem;
}

@media (min-width: 700px) {
  .hero-block:has(.issues-two-minute) {
    padding: 0.95rem 1.75rem;
  }

  .hero-block:has(.issues-two-minute) .lead-intro {
    line-height: 1.45;
  }
}

/* Button with a sub-label: one text flow, so the "30 issues" tag sits right after
   the words (it was a separate flex item floating to the right on phones). */
.btn:has(.btn-sub) {
  display: inline-block;
  padding-block: 0.7rem;
  line-height: 1.3;
  text-align: center;
}

/* ------------------------------------------------------------------
   QA re-check: home scoreboard layout, 44px tap targets
   ------------------------------------------------------------------ */

/* The two Project 2025 scoreboards differ a lot in height (about 345 vs 900px side
   by side at 1366), which left ~560px of blank page. Stack them at every width;
   long notes inside keep a readable measure. */
@media (min-width: 860px) {
  .tracker-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.scoreboard-body > p,
.scoreboard-body > .p2025-rule-note {
  max-width: 80ch;
}

/* One-tap fill chips and ZIP example chips */
.chip-btn {
  min-height: 44px;
}

.zip-examples a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0;
}

/* "Why and how" link inside the hero Ask sentence: a 44px tall hit area without
   changing the line height around it */
.issue-hero-ask a {
  display: inline-block;
  padding-block: 11px;
  margin-block: -11px;
  line-height: 22px;
}

@media print {
  body.print-pocket-card :is(#pocket-card, [data-pocket-card]) .zip-card-note {
    display: none !important;
  }
}

/* Remaining stand-alone controls under 44px (measured on /, /issues/, /your-area/,
   issue pages). Inline links inside sentences are left as text. */
.state-pill-link,
.part-pill,
.btn-sm,
.issue-tabs-all-btn,
.rail-all-btn,
.fill-more-details > summary,
.agency-nav-pill,
.rail-zip-form input[type="text"],
.rail-zip-form .btn {
  min-height: 44px;
}

.rally-text-link,
.issue-tile-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* /issues/ empty state ("No issues match" + Clear filter) */
.issues-empty {
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  background-color: var(--surface);
  border: 1px dashed var(--border-strong);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius);
}

.issues-empty p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
