/*
 * Broadband Trail — editorial stylesheet. Mobile first; body text 18px; text contrast ≥ 4.5:1 (most ≥ 7:1).
 * Fonts are self-hosted (SIL OFL, licenses in site/static/fonts/): Fraunces (headlines; instanced at opsz 72,
 * SOFT 0, WONK 0, wght 400–800) and Inter (UI/body; opsz 14, wght 400–700), both subset to Latin.
 * The "Fallback" faces are metric-matched local fonts so the swap causes no layout shift.
 * Font URLs under /fonts/ are rewritten to hashed asset paths by build.ts.
 */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-var.88fa0fb2c3af.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.ea49548e71c3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold"), local("Georgia");
  size-adjust: 86.4%;
  ascent-override: 113.2%;
  descent-override: 29.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.8%;
  ascent-override: 90.7%;
  descent-override: 22.6%;
  line-gap-override: 0%;
}

:root {
  --paper: #f6f1e7;
  --paper-deep: #ede5d6;
  --card: #fffcf6;
  --ink: #1c1a17;
  --ink-2: #4a453d;
  --ink-3: #635c51;
  --rule: #d9cfbd;
  --accent: #0b6b5f;
  --accent-deep: #084d44;
  --accent-soft: #dcefe9;
  --accent-pale: #eef7f4;
  --amber: #b8650a;
  --amber-ink: #8a4b00;
  --amber-soft: #f8ead2;
  --amber-pale: #fdf4e3;
  --amber-button: #f2a93b;
  --amber-button-hover: #f7bd62;
  --blue-soft: #e1e8f5;
  --blue-ink: #2c4a7c;
  --plum-soft: #efe2ef;
  --plum-ink: #6b3a6e;
  --track: #e7dfcf;
  --ref: #8f8676;
  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Inter Fallback", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern", "liga", "calt";
}
a { color: var(--accent); font-weight: 600; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 7vw, 3.75rem); line-height: 1.04; letter-spacing: -0.015em; margin: 0.35rem 0 0.9rem; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.1rem); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
h3 { font-size: 1.3rem; line-height: 1.25; margin: 1.75rem 0 0.75rem; }
p, ul, ol { max-width: 46rem; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--card); padding: 0.75rem 1rem; z-index: 30; }
.skip-link:focus { left: 0.5rem; }
.staging-banner { background: var(--amber-soft); border-bottom: 2px solid var(--amber-ink); color: #3d2800; padding: 0.6rem 1rem; text-align: center; font-size: 1rem; }
.kicker {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 1.1rem; height: 1.1rem; }
.icon-lg { width: 2.4rem; height: 2.4rem; }
.note, .chart-note { color: var(--ink-2); font-size: 1rem; }
.num { font-variant-numeric: tabular-nums; }

/* Masthead */
.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.mast-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; padding-top: 0.6rem; padding-bottom: 0.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 48px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-glyph { width: 2rem; height: 2rem; flex: none; }
.brand-glyph circle { fill: #f0b25a; }
.brand-glyph circle:first-child { fill: var(--accent); }
.brand-glyph path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 3.2; }
.brand-word { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.brand-word em { font-style: normal; color: var(--accent); }
.primary-nav { flex: 1 1 auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.25rem; max-width: none; }
.primary-nav a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 48px; color: var(--ink); font-weight: 600; text-decoration: none; }
.primary-nav a:hover { color: var(--accent); text-decoration: underline; }
.primary-nav .find-town { padding: 0 1rem; min-height: 44px; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); }
.header-call { display: flex; flex-direction: column; align-items: flex-end; }
.header-call-note { font-size: 0.8125rem; color: var(--ink-2); }
.phone-link { white-space: nowrap; font-weight: 700; display: inline-block; padding: 0.6rem 0; }
.header-phone {
  padding: 0 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.header-phone::before { content: "Call "; font-weight: 500; margin-right: 0.3em; }
.header-phone:hover { background: var(--accent-deep); color: #fff; }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 0.95rem; max-width: none; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; padding: 0 0.55rem; color: var(--ink-3); }
.breadcrumbs a, .breadcrumbs span { display: inline-block; padding: 0.55rem 0; color: var(--ink-2); }
.breadcrumbs span { color: var(--ink); }

/* Heroes */
.hero, .front { padding-top: 1.25rem; padding-bottom: 1.5rem; }
.front { padding-top: 2.5rem; }
.front h1 { font-size: clamp(2.5rem, 7.5vw, 4.5rem); max-width: 16ch; }
.hero h1 { max-width: 22ch; }
.dek { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.42; color: var(--ink-2); margin: 0 0 1rem; max-width: 42rem; }
.byline { font-size: 0.95rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 0.7rem; margin: 0 0 1.5rem; max-width: none; }
.front-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
}
.button:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.button-ghost { background: var(--card); color: var(--accent); border-color: var(--accent); }
.button-ghost:hover { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent-deep); }
.button-primary { font-size: 1.15rem; min-height: 56px; }

/* At-a-glance stat cards */
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.stat { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 0.85rem 0.95rem 0.95rem; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 0.5rem; }
.stat-icon .icon { width: 1.35rem; height: 1.35rem; }
.stat-amber { border-top-color: var(--amber); }
.stat-amber .stat-icon { background: var(--amber-soft); color: var(--amber-ink); }
.stat-blue { border-top-color: var(--blue-ink); }
.stat-blue .stat-icon { background: var(--blue-soft); color: var(--blue-ink); }
.stat-plum { border-top-color: var(--plum-ink); }
.stat-plum .stat-icon { background: var(--plum-soft); color: var(--plum-ink); }
.stat dt { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.stat dd { margin: 0; }
.stat-value { font-family: var(--serif); font-size: clamp(1.85rem, 5vw, 2.4rem); font-weight: 650; line-height: 1.1; margin-top: 0.3rem !important; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }
.stat-note { font-size: 0.9375rem; color: var(--ink-2); margin-top: 0.3rem !important; line-height: 1.35; }
.chip { display: inline-block; margin-top: 0.45rem !important; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.chip-good { background: var(--accent-soft); color: var(--accent-deep); }
.chip-bad { background: var(--amber-soft); color: #6e3b00; }
.chip-flat { background: var(--paper-deep); color: var(--ink-2); }

/* Method note + call box side by side (guide pages) */
.lede-grid { display: grid; gap: 1.75rem; align-items: start; }
.summary { font-size: 1.15rem; line-height: 1.65; margin: 0; }
.cta { background: var(--amber-pale); color: var(--ink); border: 2px solid var(--amber-button); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; margin: 0; }
.wrap > .cta { max-width: 48rem; margin: 2rem 0 1rem; }
.closing { padding-top: 1rem; }
.cta .kicker { color: var(--amber-ink); }
.cta h2 { font-size: 1.5rem; margin: 0.45rem 0 0.8rem; }
.cta-number { margin: 0 0 0.75rem; max-width: none; }
.call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
  max-width: 26rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--amber-button);
  color: var(--ink) !important;
  font-size: 1.45rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 0 #c57d14;
}
.call-button::before { content: "Call "; font-weight: 500; margin-right: 0.35em; }
.call-button:hover { background: var(--amber-button-hover); }
.cta-hours { font-size: 1.05rem; margin: 0 0 0.6rem; }
.cta-who { font-size: 1rem; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* The one next step: ZIP form + call button */
.next-step { display: grid; gap: 1rem; margin-top: 0.5rem; }
.next-step-check, .next-step-call { border-radius: var(--radius); padding: 1.4rem 1.3rem 1.5rem; }
.next-step-check { background: var(--accent-pale); border: 2px solid var(--accent-soft); }
.next-step-call { background: var(--amber-pale); border: 2px solid var(--amber-soft); }
.next-step h2, .front-call-label, .cta-panel-heading { display: flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 650; line-height: 1.15; margin: 0 0 0.5rem; }
.next-step p { margin: 0 0 0.9rem; font-size: 1.05rem; }
.next-step-note { font-size: 1rem; color: var(--ink-2); margin: 0.6rem 0 0 !important; }
.step-icon { width: 2.6rem; height: 2.6rem; padding: 0.55rem; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2; }
.step-icon-warm { background: var(--amber-button); color: var(--ink); }
.zip-form { max-width: 30rem; }
.zip-label { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.45rem; }
.zip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.zip-input {
  flex: 1 1 9rem;
  min-width: 0;
  min-height: 56px;
  padding: 0 1rem;
  border: 2px solid var(--ink-3);
  border-radius: 12px;
  background: var(--card);
  font: inherit;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.zip-input:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.zip-row .button { flex: 1 1 auto; }

/* Home hero */
.front-check { margin: 1.5rem 0 1rem; }
.front-or { font-size: 1.1rem; margin: 0.9rem 0 0; }
.front-call { background: var(--amber-pale); border: 2px solid var(--amber-soft); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.4rem; margin-top: 1.5rem; max-width: 30rem; }
.values { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem 2rem; max-width: none; }
.values li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; align-items: start; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; }
.values .icon { width: 3.2rem; height: 3.2rem; padding: 0.7rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 1.8; }
.values li:nth-child(2) .icon { background: var(--blue-soft); color: var(--blue-ink); }
.values li:nth-child(3) .icon { background: var(--amber-soft); color: var(--amber-ink); }
.values p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.values strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 650; display: block; margin-bottom: 0.15rem; }

/* Guide CTA panel */
.cta-panel { display: grid; gap: 1rem; background: var(--amber-pale); border: 2px solid var(--amber-soft); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.4rem; margin: 1rem auto 0.5rem; }
.cta-panel-heading { margin-bottom: 0.3rem; }
.cta-panel-text { margin: 0; font-size: 1.05rem; }
.cta-panel .cta-number { margin: 0; }

/* Collapsible detail sections */
.folds { margin-top: 2rem; }
.fold { border: 2px solid var(--rule); border-radius: var(--radius); background: var(--card); padding: 0; margin: 0.9rem 0; }
.fold summary { display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: 0.7rem 1.1rem; cursor: pointer; list-style: none; border-radius: var(--radius); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary:hover { background: var(--accent-pale); }
.fold-icon { width: 2.8rem; height: 2.8rem; padding: 0.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 2; }
.fold-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1 1 auto; }
.fold-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 650; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.fold-hint { font-size: 1rem; color: var(--ink-2); }
.fold-chevron { color: var(--accent); transition: transform 0.15s; }
.fold[open] > summary .fold-chevron { transform: rotate(180deg); }
.fold[open] > summary { border-bottom: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0; }
.fold-body { padding: 0.5rem 1.1rem 1.4rem; }
.fold-body .section-head { border-top: 0; padding-top: 0.5rem; }
.fold-body .summary { font-size: 1.15rem; line-height: 1.65; margin: 0.5rem 0 0; border-left: 4px solid var(--amber); padding-left: 1rem; }
.fold-body .address-check { margin: 0.5rem 0 1.25rem; }
.fold-body .table-tall { max-height: 32rem; }

/* ZIP lookup page */
.zip-page { display: grid; gap: 1.25rem; padding-bottom: 1rem; }
.zip-panel { background: var(--accent-pale); border: 2px solid var(--accent-soft); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.5rem; }
.zip-panel .zip-form { max-width: 34rem; }
.zip-call-panel { background: var(--amber-pale); border: 2px solid var(--amber-soft); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.4rem; align-self: start; }
.zip-result { margin-top: 1.25rem; }
.zip-result:focus { outline: none; }
.zip-result-head .kicker { margin-bottom: 0.3rem; }
.zip-result h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.75rem; }
.zip-loading { font-size: 1.1rem; color: var(--ink-2); }
.zip-providers { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.7rem; max-width: none; }
.zip-provider { display: grid; gap: 0.8rem; background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.1rem; }
.zip-provider-info { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.zip-provider-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 650; }
.zip-provider-reach { flex-basis: 100%; font-size: 1.05rem; color: var(--ink-2); }
.zip-call { display: flex; flex-direction: column; gap: 0.25rem; }
.zip-call-label { font-weight: 700; font-size: 1rem; }
.zip-call .call-button { min-height: 52px; font-size: 1.25rem; max-width: none; }
.zip-subhead { font-family: var(--sans); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin: 1.25rem 0 0.6rem; }
.zip-subhead + .zip-providers .zip-provider { border-left-color: var(--ref); }
.zip-message h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.zip-message p { margin: 0 0 0.75rem; font-size: 1.05rem; }
.zip-actions { margin: 0.5rem 0 0; }
.zip-honest { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 1rem; color: var(--ink-2); margin: 1.25rem 0 0; }
.zip-honest .icon { color: var(--accent); margin-top: 0.2rem; }
.tag-sat { background: var(--paper-deep); color: var(--ink-2); }
.tag-other { background: var(--paper-deep); color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections */
.section { padding-top: 2.25rem; padding-bottom: 1rem; }
.section-head { border-top: 2px solid var(--ink); padding-top: 0.8rem; margin-bottom: 1.25rem; }
.section-head .kicker { margin-bottom: 0.3rem; }
.section-dek { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.chart { margin: 0 0 0.75rem; }
.chart-subhead { font-family: var(--sans); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 1.5rem 0 0.4rem; color: var(--ink-2); }
.chart-subhead span { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 0.4rem; }
.source-line { font-size: 0.9375rem; color: var(--ink-2); margin: 0.5rem 0 0; max-width: none; }

/* Horizontal bars */
.bars { list-style: none; margin: 0; padding: 0; max-width: none; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.75rem; grid-template-areas: "label label" "track value"; gap: 0.3rem 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.bar-label { grid-area: label; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; min-width: 0; }
.bar-name { font-weight: 650; }
.bar-name a { font-weight: 650; }
.bar-detail { flex-basis: 100%; font-size: 1rem; color: var(--ink-2); line-height: 1.4; }
.bar-track { grid-area: track; position: relative; display: block; height: 0.85rem; background: var(--track); border-radius: 999px; }
.bar-fill { display: block; height: 100%; min-width: 3px; background: var(--accent); border-radius: 999px; }
.bar-value { grid-area: value; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-rank { grid-area: rank; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--amber-ink); line-height: 1; font-variant-numeric: lining-nums; }
.bars-ranked .bar-row { grid-template-columns: 2.4rem minmax(0, 1fr) 4.2rem; grid-template-areas: "rank label label" "rank track value"; }
.bars-muted .bar-fill { background: var(--ref); }
.bars-choices .bar-fill { background: #34507f; }
.bars-offline .bar-fill { background: var(--amber); }
.bars-muted .bar-name, .bars-muted .bar-value { font-weight: 500; color: var(--ink-2); }
.sat-group { margin-top: 0.5rem; }
.tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--paper-deep); color: var(--ink-2); white-space: nowrap; }
.tag-fiber { background: var(--accent-soft); color: var(--accent-deep); }
.tag-cable { background: #e5e9f2; color: #273a5c; }
.tag-fw { background: var(--amber-soft); color: #6e3b00; }

/* Technology comparison */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; font-size: 0.9375rem; color: var(--ink-2); margin: 0 0 0.5rem; max-width: none; }
.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.key { display: inline-block; width: 1.1rem; height: 0.65rem; border-radius: 999px; background: var(--accent); }
.key-ref { background: var(--ref); }
.key-gig { width: 4px; height: 1rem; border-radius: 2px; background: var(--amber); }
.pairs { list-style: none; margin: 0; padding: 0; max-width: none; }
.pair-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name gig" "bars bars"; gap: 0.35rem 1rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.pair-name { grid-area: name; font-weight: 650; }
.pair-bars { grid-area: bars; display: grid; gap: 0.3rem; }
.pair-bar { display: grid; grid-template-columns: minmax(0, 1fr) 4.75rem; gap: 0.75rem; align-items: center; }
.pair-bar .bar-track { grid-area: auto; }
.pair-ref .bar-track { height: 0.5rem; }
.pair-ref .bar-fill { background: var(--ref); }
.pair-value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pair-ref .pair-value { font-weight: 500; color: var(--ink-2); font-size: 1rem; }
.gig-tick { position: absolute; top: -5px; bottom: -5px; width: 4px; margin-left: -2px; background: var(--amber); border-radius: 2px; box-shadow: 0 0 0 1.5px var(--card); }
.pair-gig { grid-area: gig; font-size: 0.9375rem; color: var(--amber-ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pair-gig-label { font-weight: 500; color: var(--ink-2); }

/* Household snapshot */
.household { display: grid; gap: 1rem; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.figure { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.85rem 0.95rem; }
.figure dt { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.figure dd { margin: 0; }
.figure-value { font-family: var(--serif); font-size: 1.75rem; font-weight: 650; line-height: 1.15; margin-top: 0.25rem !important; font-variant-numeric: lining-nums tabular-nums; }
.figure-ref { font-size: 0.875rem; color: var(--ink-2); }
.meter-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.4rem 1rem 0.9rem; }
.meter-card .chart-subhead { margin-top: 0.75rem; }
.meter { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.meter-label { font-size: 13px; font-weight: 700; fill: var(--amber-ink); }
.meter-ref-label { font-size: 12px; font-weight: 600; fill: var(--ink); }
.meter-track { fill: var(--track); }
.meter-fill { fill: var(--amber); }
.meter-ref { stroke: var(--ink); stroke-width: 3; }
.meter-scale { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--ink-2); margin: 0.1rem 0 0; max-width: none; }

/* Tables */
.data-table { margin: 0.75rem 0 0; border-top: 1px dashed var(--rule); }
.data-table summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 1rem; }
.data-table summary:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; margin: 0.5rem 0 1rem; }
.table-tall { max-height: 36rem; overflow-y: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.table-tall caption { padding: 0.75rem 0.65rem 0.5rem; background: var(--card); }
.table-tall thead th { position: sticky; top: 0; z-index: 1; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; background: var(--card); }
caption { text-align: left; font-weight: 600; padding: 0 0 0.5rem; position: sticky; left: 0; max-width: calc(100vw - 2.5rem); color: var(--ink-2); font-size: 0.9375rem; background: var(--paper); }
th, td { border-bottom: 1px solid var(--rule); padding: 0.6rem 0.65rem; text-align: left; vertical-align: middle; }
thead th { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--ink); background: var(--card); }
tbody th { font-weight: 600; }
th.num { text-align: right; }
td.num { text-align: right; white-space: nowrap; }
.data-grid tbody tr:hover { background: #fbf5ea; }
.data-grid tbody th .note { display: block; font-size: 0.8125rem; font-weight: 400; line-height: 1.35; }
.bar-cell { min-width: 9rem; }
.mini { display: inline-flex; align-items: center; vertical-align: middle; }
.mini-track { display: inline-block; width: 4.5rem; height: 0.5rem; background: var(--track); border-radius: 999px; overflow: hidden; }
.mini-fill { display: block; height: 100%; background: var(--accent); }
.mini-value { display: inline-block; min-width: 4.6rem; margin-left: 0.5rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Guidance callout */
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 1.5rem 1.25rem; border-left: 6px solid var(--accent); }
.callout h2 { margin-top: 0.35rem; }
.guidance { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem 2rem; max-width: none; }
.guidance li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.guidance .icon { width: 3rem; height: 3rem; padding: 0.6rem; border-radius: 50%; background: var(--card); color: var(--accent); stroke-width: 1.7; }
.guidance p { margin: 0; }
.guidance strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 650; display: block; margin-bottom: 0.15rem; }

/* Address check + sources (inside the sources fold) */
.address-check { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; }
.address-check .icon { color: var(--amber); }
.address-check h2, .fine-print h2 { font-size: 1.35rem; }
.address-check ul { padding-left: 1.2rem; margin-bottom: 0; }
.fine-print { font-size: 1rem; color: var(--ink-2); border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.fine-print ul { padding-left: 1.2rem; }
.fine-print li { margin-bottom: 0.4rem; }

/* Read next, cards */
.read-next { background: var(--paper-deep); margin-top: 1.5rem; padding-bottom: 2.5rem; }
.related-block h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.cards, .story-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.85rem; max-width: none; }
.card-link, .story-card a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card-link:hover, .story-card a:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.card-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 650; line-height: 1.2; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
.card-meta { font-size: 0.9375rem; color: var(--ink-2); }
.card-bar { margin-top: auto; padding-top: 0.4rem; font-size: 0.9375rem; font-weight: 600; }
.card-bar .mini-track { width: 7rem; }
.card-bar .mini-value { text-align: left; min-width: 0; }
.story-card a { border-top: 5px solid var(--accent); padding-top: 1rem; }
.story-choices a { border-top-color: #34507f; }
.story-offline a { border-top-color: var(--amber); }
.story-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 650; line-height: 1.15; }
.story-lead { font-size: 0.9375rem; color: var(--ink-2); }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 2.6rem; margin-top: auto; padding-top: 0.6rem; }
.spark span { display: block; width: 14px; background: var(--accent); border-radius: 3px 3px 0 0; }
.story-choices .spark span { background: #34507f; }
.story-offline .spark span { background: var(--amber); }
.rank-badges { list-style: none; padding: 0; margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: none; }
.rank-badges a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.3rem 1rem 0.3rem 0.35rem; border-radius: 999px; background: var(--card); border: 1px solid var(--amber); color: var(--ink); text-decoration: none; font-weight: 600; }
.rank-number { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.4rem; border-radius: 999px; background: var(--amber); color: #fff; font-family: var(--serif); font-weight: 700; }
.link-list { padding-left: 1.2rem; }
.link-list li { margin: 0.2rem 0; }
.link-list a { display: inline-block; padding: 0.4rem 0; }
.more-link a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-weight: 650; }
.chips { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: none; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 550; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.finder, .guide-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem 1.5rem; }
.finder-state h3, .guide-state h3 { margin: 0.5rem 0 0.25rem; font-size: 1.25rem; }
.guide-state { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.4rem 1.1rem 0.8rem; }
.guide-state ul { padding-left: 1.1rem; margin: 0; }
.guide-state a { display: inline-block; padding: 0.3rem 0; }
.method-note { background: var(--card); border-left: 5px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.4rem; font-size: 1.05rem; }
.method-note h2 { font-size: 1.5rem; margin-top: 0.35rem; }

/* Tile map */
.tilemap { margin: 0 0 0.5rem; }
.tilemap svg { display: block; width: 100%; max-width: 50rem; height: auto; font-family: var(--sans); }
.tile rect { fill: #cfe3dc; transition: fill 0.15s; }
.tile text { fill: var(--ink); pointer-events: none; }
.tile-abbr { font-size: 17px; font-weight: 700; }
.tile-value { font-size: 12.5px; font-weight: 600; }
.tile-t2 rect { fill: #8fc1b3; }
.tile-t3 rect { fill: #3d8a7b; }
.tile-t4 rect { fill: var(--accent); }
.tile-t3 text, .tile-t4 text { fill: #fff; }
a.tile:hover rect, a.tile:focus-visible rect { stroke: var(--amber); stroke-width: 4; }
a.tile:focus-visible { outline: none; }
.tile-off rect { fill: var(--paper-deep); stroke: var(--rule); }
.tile-off text { fill: var(--ink-3); font-size: 15px; font-weight: 600; }
.tilemap .legend { margin-top: 0.75rem; }
.tile-key { width: 1rem; height: 1rem; border-radius: 3px; background: #cfe3dc; }
.tile-key.t2 { background: #8fc1b3; }
.tile-key.t3 { background: #3d8a7b; }
.tile-key.t4 { background: var(--accent); }
.tile-key.off { background: var(--paper-deep); border: 1px solid var(--rule); }

/* Pagination */
.pagination ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
.pagination span[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Prose pages */
.prose { max-width: 48rem; padding-top: 1.5rem; padding-bottom: 2rem; }
.prose h2 { margin-top: 2rem; }
.revised { color: var(--ink-2); font-size: 1rem; }

/* Articles (Markdown guides) */
.article .hero { padding-bottom: 0.5rem; }
.article-layout { display: grid; gap: 1.5rem 3rem; align-items: start; }
.article-body { padding-top: 0.5rem; }
.article-body h3 { margin-top: 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote { margin: 1.25rem 0; padding: 0.25rem 1.25rem; border-left: 5px solid var(--amber); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body .table-scroll { margin: 1rem 0 1.5rem; }
.article-table th[scope="row"] { font-weight: 600; }
.article-table td, .article-table th { vertical-align: top; }
.article-zip { background: var(--accent-pale); border: 1px solid var(--accent-soft); border-radius: var(--radius); padding: 1.25rem 1.4rem 1.4rem; margin: 1.75rem 0; }
.article-body > .cta { margin: 2rem 0; }
.toc { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem 1.1rem; font-size: 1rem; }
.toc .kicker { margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin: 0.35rem 0; }
.toc a { font-weight: 550; }
.fn-ref { font-size: 0.75em; line-height: 0; vertical-align: super; }
.fn-ref a { text-decoration: none; font-weight: 700; padding: 0 0.1em; }
.sources { border-top: 2px solid var(--ink); margin-top: 2.5rem; padding-top: 0.8rem; }
.sources h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-top: 0; }
.source-list { font-size: 1rem; padding-left: 1.5rem; }
.source-list li { margin-bottom: 0.5rem; }
.source-list li:target { background: var(--amber-soft); border-radius: 4px; }
.fn-back { text-decoration: none; }
.ai-disclosure { color: var(--ink-2); font-size: 0.9375rem; border-top: 1px solid var(--rule); padding-top: 0.75rem; margin-top: 1.25rem; }
.cards-articles .card-meta { font-size: 0.9375rem; line-height: 1.45; }
.read-next .cards + .story-cards, .read-next .story-cards + .cards, .read-next .cards + .cards { margin-top: 0.85rem; }

/* Footer */
.site-footer { background: var(--ink); color: #e9e3d6; padding: 2.5rem 0 1.5rem; font-size: 1rem; margin-top: 2rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-word em { color: #8fd0c1; }
.footer-grid { display: grid; gap: 1.5rem 2rem; }
.footer-col h2 { font-family: var(--sans); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f0b25a; margin: 0 0 0.4rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col p { margin: 0.25rem 0; }
.footer-phone { font-size: 1.25rem; }
.footer-who { color: #cfc7b7; }
.footer-legal { border-top: 1px solid #4a453d; margin-top: 1.5rem; padding-top: 1rem; color: #cfc7b7; font-size: 0.9375rem; }

/* Sticky mobile call bar */
.call-bar { display: none; }
.secondary { display: none; }

@media (max-width: 47.99rem) {
  body { padding-bottom: 6rem; }
  .header-call { display: none; }
  .mast-inner { gap: 0 1rem; }
  .primary-nav { flex-basis: 100%; }
  .primary-nav ul { gap: 0.25rem 1rem; }
  .tile-value { display: none; }
  .tile-abbr { font-size: 21px; transform: translateY(9px); }
  .tile-off text { font-size: 18px; }
  .glance .stat:first-child:nth-last-child(2n + 1) { grid-column: 1 / -1; }
  .cards-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .cards-compact .card-link { padding: 0.75rem 0.8rem 0.85rem; }
  .cards-compact .card-title { font-size: 1.1rem; }
  .cards-compact .card-kicker, .cards-compact .card-meta { font-size: 0.8125rem; }
  .cards-compact .card-bar .mini-track { width: 3.5rem; }
  .data-grid .mini { display: none; }
  .data-grid .mini-value { min-width: 0; }
  .data-grid th, .data-grid td { padding: 0.55rem 0.45rem; }
  .data-grid tbody th a { white-space: nowrap; }
  .bar-cell { min-width: 0; }
  .call-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -4px 14px rgba(28, 26, 23, 0.14);
  }
  .call-bar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  .call-bar-link::before { content: "Call "; font-weight: 500; margin-right: 0.35em; }
  .call-bar-note { font-size: 0.875rem; color: var(--ink-2); }
}

@media (min-width: 48rem) {
  .secondary { display: table-cell; }
  .glance { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem; }
  .lede-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; }
  .bar-row { grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr) 4.75rem; grid-template-areas: "label track value"; gap: 1rem; padding: 0.7rem 0; }
  .bars-ranked .bar-row { grid-template-columns: 2.6rem minmax(12rem, 20rem) minmax(0, 1fr) 4.2rem; grid-template-areas: "rank label track value"; }
  .pair-row { grid-template-columns: 13rem minmax(0, 1fr) 7.5rem; grid-template-areas: "name bars gig"; gap: 1.25rem; padding: 0.85rem 0; }
  .pair-gig { text-align: right; }
  .household { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
  .callout { padding: 2rem 2.25rem; }
  .guidance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .state-chips { display: none; }
  .cta { padding: 1.6rem 1.75rem 1.4rem; }
  .next-step { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
  .next-step-check, .next-step-call { padding: 1.6rem 1.75rem 1.75rem; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1.4rem 1.75rem; }
  .cta-panel .call-button { width: auto; min-width: 18rem; }
  .zip-provider { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .zip-call { min-width: 17rem; }
  .zip-provider-reach { flex-basis: auto; }
  .zip-provider-info { gap: 0.35rem 0.75rem; }
}

@media (min-width: 64rem) {
  .front { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem 3.5rem; align-items: center; }
  .front > * { grid-column: 1; }
  .front-call { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; max-width: none; }
  .zip-page { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; }
  .article-layout { grid-template-columns: 16rem minmax(0, 48rem); }
  .toc { position: sticky; top: 1rem; }
}
