/* All Fiberglass Pools — The Swim Meet design system.
   Ported from the approved prototypes (design/prototypes/index.html,
   metro.html, profile.html). Hand-rolled CSS, system/local font faces only
   — no webfonts, no CDN, no external network dependency of any kind. */

@font-face {
  font-family: "DIN Cond";
  src: local("DIN Condensed Bold"), local("DINCondensed-Bold");
  font-weight: 700;
}
@font-face {
  font-family: "Arial Rounded";
  src: local("Arial Rounded MT Bold"), local("ArialRoundedMTBold"), local("Arial Rounded Bold");
  font-weight: 700;
}

:root {
  /* Swim Meet palette */
  --water: #00b4d8;
  --water-deep: #0092b0;
  --band: #007a99;
  --band-light: #7fe4f6;
  --lane-red: #e63946;
  --lane-yellow: #ffd166;
  --lane-yellow-shadow: #c99a2e;
  --ink: #04222c;
  --ink-soft: #0a3b48;
  --deep-navy: #04222c;
  --deck: #f7f3ea;
  --deck-line: #d8cfba;
  --deck-line-soft: #ece6d5;
  --deck-card: #fbf8f1;
  --white: #ffffff;
  --eafc: #eafcff;
  --text-body: #3a4a4f;
  --text-muted: #5b6b70;
  --sky-tile-a: #cdeef7;
  --sky-tile-b: #bfe7f3;
  --sky-border: #9fd9e8;
  --good: #0a7a3d;
  --bad: #a3312f;
  --footer-fg: #cfe8ee;
  --footer-fg-dim: #8fb4bd;

  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-record: "DIN Cond", "Arial Narrow", Arial, sans-serif;
  --font-wordmark: "Arial Rounded", "Arial Black", Arial, sans-serif;

  --max-width: 1180px;
  --max-width-narrow: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--deck);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden; /* belt-and-suspenders: wide content must scroll in its own container (e.g. .table-wrap), never force the page to scroll horizontally */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.record-font { font-family: var(--font-record); }
.wordmark-font { font-family: var(--font-wordmark); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 6vw; }
.wrap-narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 6vw; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.85rem 1.25rem;
  z-index: 300;
  font-weight: 700;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ===== Top wordmark band ===== */
.band-top {
  background: var(--band);
  padding: 18px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: clamp(19px, 2.6vw, 28px);
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}
.top-nav {
  display: flex;
  gap: clamp(12px, 1.8vw, 26px);
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.top-nav a { color: #d9f6ff; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.top-nav a:hover, .top-nav a:focus-visible { border-bottom-color: var(--lane-yellow); color: var(--white); }
.top-nav a:focus-visible { outline: 2px solid var(--lane-yellow); outline-offset: 3px; }
.top-nav a[aria-current="page"] { border-bottom-color: var(--lane-yellow); color: var(--white); }

/* ===== Breadcrumbs ===== */
.crumb {
  background: var(--eafc);
  padding: 10px 6vw;
  font-size: 12.5px;
  color: #0a5b6e;
}
.crumb a { text-decoration: underline; text-underline-offset: 2px; }
.crumb span[aria-hidden] { margin: 0 4px; }

/* ===== Claim band — now an overlay on the photo hero, not a flat band ===== */
.band-claim {
  text-align: center;
  padding-top: clamp(32px, 7vh, 76px);
}
.claim {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 20ch;
  margin: 0 auto 14px;
  text-shadow: 0 2px 10px rgba(0,20,26,0.45);
}
.claim-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--eafc);
  max-width: 62ch;
  margin: 0 auto;
  font-weight: 500;
  /* The subhead crosses the scrim's thinnest band (bright open water), so
     it carries its own shadow stack instead of relying on the gradient. */
  text-shadow: 0 1px 3px rgba(0,20,26,0.85), 0 2px 14px rgba(0,20,26,0.65);
}

/* ===== Photo hero — everything happens ON the water. Full-bleed photo IS
   the opening viewport; nav band is the only thing above it. Headline,
   CTAs, and the record-board stat cards all layer over the image with a
   scrim for contrast. Graceful fallback: identical footprint using the
   water-tile texture when no hero photo has landed yet. ===== */
.photo-hero {
  position: relative;
  min-height: clamp(560px, 88vh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.photo-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.photo-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-hero-media .hero-photo-fallback {
  width: 100%;
  height: 100%;
  min-height: clamp(560px, 88vh, 980px);
}
.photo-hero-scrim {
  position: absolute;
  inset: 0;
  /* Calm upper-water zone for the headline, darker lower-third so the
     record-board cards and CTAs stay legible — never crushes the photo. */
  background: linear-gradient(
    180deg,
    rgba(4,34,44,0.58) 0%,
    rgba(4,34,44,0.30) 22%,
    rgba(4,34,44,0.18) 46%,
    rgba(4,34,44,0.42) 68%,
    rgba(4,34,44,0.72) 100%
  );
}
.hero-photo-fallback {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 16px, rgba(255,255,255,0.03) 16px, rgba(255,255,255,0.03) 32px),
    linear-gradient(180deg, var(--water) 0%, var(--water-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-fallback .icon {
  font-family: var(--font-record);
  font-weight: 700;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.photo-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: clamp(24px, 5vh, 56px);
}

/* Independent legibility backing for the tagline + CTA row: the global
   scrim is intentionally thin here (bright open-water band), and at common
   laptop viewport heights (1024x768, 1366x768, etc.) the hero photo's own
   painted lane-rope and diving board land directly behind this row and cut
   across the buttons — visual audit 2026-08-08. A contained pill (not the
   full-bleed gradient) gives the tagline+CTAs their own contrast floor at
   any viewport ratio, independent of what the photo underneath is doing. */
.hero-statement {
  position: relative;
  z-index: 3;
  text-align: center;
  background: rgba(4,34,44,0.55);
  border-radius: 8px;
  padding: 18px 24px 22px;
  backdrop-filter: blur(2px);
}
/* Tagline closing beat over the photo: carries its own shadow stack the way
   the headline and subhead do, since it crosses the scrim's thin band. */
.hero-tagline {
  font-family: var(--font-wordmark);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lane-yellow);
  margin-bottom: 18px;
  text-shadow: 0 1px 3px rgba(0,20,26,0.85), 0 2px 14px rgba(0,20,26,0.65);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 0; justify-content: center; }

/* Record-board stat cards, laid over the lower third of the photo. */
.record-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: clamp(28px, 4vh, 40px);
}
.record-card {
  background: rgba(251,248,241,0.96);
  border: 1px solid var(--deck-line);
  border-radius: 2px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,20,26,0.32);
}
.record-card b {
  display: block;
  font-family: var(--font-record);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--band);
  line-height: 1.05;
}
.record-card span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* Lane-rope rail spanning the FULL viewport width at the hero's bottom
   seam — never a partial-width strip that stops mid-page. */
.lane-rail-seam {
  position: relative;
  z-index: 3;
  height: 22px;
}

/* ===== Pool surface (below the photo hero) ===== */
.pool {
  position: relative;
  background: linear-gradient(180deg, var(--water) 0%, var(--water-deep) 55%, #0092b0 100%);
  padding-bottom: 64px;
  overflow: hidden;
}
.pool::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 180px 26px at 10% 20%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(ellipse 220px 30px at 70% 12%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(ellipse 200px 26px at 40% 70%, rgba(255,255,255,0.07), transparent 60%),
    radial-gradient(ellipse 160px 22px at 88% 60%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(ellipse 240px 30px at 20% 88%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Record-board band (moved below the hero): copy on the left, a real
   photo filling the right half at wide widths — never a half-empty flat
   fill. Stacks single-column on narrow viewports. */
.record-board-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
  padding-top: 44px;
}
.record-board-copy h2 {
  font-family: var(--font-wordmark);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 0 rgba(0,40,52,0.25);
}
.record-board-copy p {
  margin-top: 16px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--eafc);
  max-width: 58ch;
  font-weight: 400;
}
.record-board-photo {
  position: relative;
  border: 1px solid rgba(255,255,255,0.25);
  overflow: hidden;
  min-height: 260px;
  box-shadow: 0 14px 30px rgba(0,20,26,0.3);
}
.record-board-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.record-board-photo .hero-photo-fallback { min-height: 260px; }

/* Photographic mosaic band (mid-page) — large image regions with the
   lane-rope grammar layered on top as an identity strip, not a caption. */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mosaic-frame {
  position: relative;
  border: 1px solid var(--deck-line);
  overflow: hidden;
  min-height: 260px;
}
.mosaic-frame img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.mosaic-rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  display: flex;
}
.mosaic-rail .seg { flex: 1 1 0; min-width: 0; height: 100%; }
.mosaic-rail .seg.red { background: var(--lane-red); }
.mosaic-rail .seg.yellow { background: var(--lane-yellow); }

.lane-rail {
  position: relative;
  height: 20px;
  display: flex;
  width: 100%;
  overflow: hidden;
}
.lane-rail .seg { flex: 1 1 0; min-width: 0; max-width: 64px; height: 100%; }
.lane-rail .seg.red { background: var(--lane-red); }
.lane-rail .seg.yellow { background: var(--lane-yellow); }
.lane-rail-1 { margin-top: 10px; }
.lane-rail.compact { height: 16px; }
.lane-rail.compact .seg { width: 60px; }
.lane-rail.thin { height: 14px; }
.lane-rail.thin .seg { width: 56px; }

/* The bottom-seam rail must reach full viewport width at ANY width
   (390 / 1440 / 1920+) — no dead space, never a partial strip that stops.
   Enough segments are emitted in the blade loop to tile past 1920px;
   removing the max-width cap here lets them share the row evenly instead
   of stopping short and leaving a bare gap on the right. */
.lane-rail-seam .seg { max-width: none; }

.pool-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6vw;
}

.btn-primary, .btn-secondary, .btn-out, .btn-ghost {
  font-family: var(--font-wordmark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-align: center;
}
.btn-primary, .btn-out {
  background: var(--lane-yellow);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--lane-yellow-shadow), 0 8px 18px rgba(0,20,26,0.25);
}
.btn-primary:hover, .btn-out:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lane-yellow-shadow), 0 12px 22px rgba(0,20,26,0.3); }
.btn-primary:active, .btn-out:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--lane-yellow-shadow), 0 4px 10px rgba(0,20,26,0.25); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-ghost {
  border: 1px solid #b9cdd3;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.btn-ghost:hover { background: var(--deck-card); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-out:focus-visible, .btn-ghost:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.btn-block { display: block; width: 100%; }

/* ===== Deck cards (mid-pool) ===== */
.deck-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 40px;
}
.deck-card {
  background: var(--deck-card);
  border: 1px solid var(--deck-line);
  border-radius: 2px;
  padding: 22px 20px 24px;
  box-shadow: 0 10px 24px rgba(0,30,40,0.18);
}
.deck-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.deck-card h3 .lane-num {
  display: inline-block;
  background: var(--lane-red);
  color: #fff;
  font-family: var(--font-record);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-2px);
}
.deck-card p { font-size: 14.5px; line-height: 1.5; color: var(--text-body); }
.deck-card a.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--band);
}

/* ===== Illustrated spot-art (deck cards, guide tiles) ===== */
.deck-card-media {
  margin: -22px -20px 16px;
  border-bottom: 1px solid var(--deck-line);
  overflow: hidden;
  background: var(--sky-tint, #eaf7fb);
}
.deck-card-media img { width: 100%; height: 150px; object-fit: cover; display: block; }
.tile-illustrated {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.tile-illustrated .tile-media {
  overflow: hidden;
  border-bottom: 1px solid var(--deck-line);
  background: var(--sky-tint, #eaf7fb);
}
.tile-illustrated .tile-media img { width: 100%; height: 128px; object-fit: cover; display: block; }
.tile-illustrated .tile-body {
  padding: 14px 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Cost-index tiles carry a one-line description under the title, so the
   body stacks instead of running the title and count on one row. */
.tile-illustrated .tile-body:has(.tile-sub) {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.tile-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ===== Starting-block CTA ===== */
.starting-block { margin-top: 44px; display: flex; justify-content: flex-end; }
.block {
  background: var(--deck-card);
  border: 1px solid var(--deck-line);
  padding: 28px 32px;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0,20,26,0.28);
  position: relative;
}
.block::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 14px;
  background: var(--deck-card);
  border: 1px solid var(--deck-line);
  border-bottom: none;
  clip-path: polygon(8% 100%, 92% 100%, 100% 0, 0 0);
}
.block h4 {
  font-family: var(--font-record);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--band);
  margin-bottom: 8px;
}
.block p.q { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 16px; line-height: 1.2; }
.block .btn-primary { width: 100%; }
.block .fine { margin-top: 12px; font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ===== Deck sections ===== */
.deck-section { background: var(--deck); padding: clamp(48px, 7vw, 84px) 6vw; }
.deck-section.alt { background: var(--white); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-record);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
}
.section-head p { margin-top: 12px; font-size: 16px; color: var(--text-body); line-height: 1.55; }

/* ===== Proof band ===== */
.proof-band { background: var(--deep-navy); color: var(--eafc); padding: 30px 6vw; }
.proof-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 44px;
  align-items: baseline;
  justify-content: space-between;
}
.proof-stamp {
  font-family: var(--font-record);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--eafc);
  border: 1px solid rgba(234,252,255,0.35);
  padding: 9px 16px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.proof-stamp b { font-size: clamp(19px, 1.9vw, 25px); color: var(--lane-yellow); }
.proof-date { font-size: 12px; color: rgba(234,252,255,0.6); letter-spacing: 0.03em; }

/* ===== Education / stat grid ===== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--deck-line);
  border: 1px solid var(--deck-line);
}
.edu-card { background: var(--white); padding: 22px 20px; }
.edu-card .num { font-family: var(--font-record); font-weight: 700; font-size: 25px; color: var(--water); line-height: 1; }
.edu-card h3 { margin-top: 10px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.edu-card p { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-body); }
.edu-card a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--band); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Comparison table ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--deck-line); }
table.compare, table.services {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
table.compare { min-width: 640px; }
table.compare caption {
  text-align: left;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 10px 16px;
  background: #f0ebdd;
  border-bottom: 1px solid var(--deck-line);
}
table.compare th, table.compare td, table.services th, table.services td {
  text-align: left;
  padding: 13px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--deck-line-soft);
}
table.compare thead th {
  font-family: var(--font-record);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--eafc);
  border-bottom: 2px solid var(--water);
}
table.services thead th {
  font-family: var(--font-record);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 12px;
  color: var(--text-muted);
}
table.compare tbody tr:hover { background: var(--deck-card); }
table.compare td.num { font-family: var(--font-record); font-weight: 700; font-size: 15px; }
table.compare .src { font-size: 11.5px; color: var(--text-muted); display: block; margin-top: 2px; }
table.services td.yes { color: var(--good); font-weight: 700; }
table.services td.no { color: var(--bad); }

/* ===== Photo placeholder frames (graceful fallback) ===== */
.photo-frame {
  position: relative;
  background: repeating-linear-gradient(135deg, var(--sky-tile-a), var(--sky-tile-a) 12px, var(--sky-tile-b) 12px, var(--sky-tile-b) 24px);
  border: 1px solid var(--sky-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame .tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--deep-navy);
  color: var(--lane-yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
}
.photo-frame .icon {
  font-family: var(--font-record);
  font-weight: 700;
  font-size: 13px;
  color: #04708a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-frame.wide { grid-column: span 2; min-height: 220px; }

/* ===== Disclosure strip ===== */
.disclosure { background: var(--lane-yellow); color: var(--ink); padding: 16px 6vw; text-align: center; font-size: 13.5px; font-weight: 700; }
.disclosure .inner { max-width: 900px; margin: 0 auto; line-height: 1.5; }

/* ===== Sample/notice ribbon ===== */
.sample-ribbon { padding: 16px 6vw 0; }
.sample-ribbon .strip {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  background: repeating-linear-gradient(135deg, var(--lane-yellow), var(--lane-yellow) 14px, var(--lane-red) 14px, var(--lane-red) 28px);
  color: var(--ink);
  font-family: var(--font-record);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12.5px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
}
.sample-ribbon .strip span { background: var(--ink); color: var(--lane-yellow); padding: 3px 8px; margin-right: 8px; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--deep-navy);
  color: var(--footer-fg);
  padding: 44px 6vw 30px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-inner .wordmark { color: var(--white); font-size: 19px; margin-bottom: 4px; }
/* Tagline line of the wordmark lockup: wordmark + tagline only, no mark. */
.wordmark-tagline {
  font-family: var(--font-wordmark);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lane-yellow);
  margin-bottom: 10px;
}
.footer-inner p { font-size: 13px; color: var(--footer-fg-dim); max-width: 44ch; line-height: 1.5; }
.footer-signoff {
  max-width: var(--max-width);
  margin: 30px auto 0;
  font-family: var(--font-wordmark);
  font-size: 18px;
  color: var(--white);
}
.footer-inner .cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-inner .col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #6fa0ab; margin-bottom: 10px; }
.footer-inner .col a { display: block; font-size: 13.5px; color: var(--footer-fg); text-decoration: none; margin-bottom: 8px; }
.footer-inner .col a:hover { color: var(--lane-yellow); }
.footer-legal {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 18px 6vw 0;
  font-size: 11.5px;
  color: #5c8089;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== Generic content page shell (state index, brand, cost, guide, about) ===== */
.page-header {
  background: linear-gradient(180deg, var(--water) 0%, var(--water-deep) 100%);
  padding: clamp(30px, 4vw, 46px) 6vw 32px;
}
.page-header-inner { max-width: var(--max-width-narrow); margin: 0 auto; }
.page-header h1 {
  font-family: var(--font-wordmark);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.05;
  text-shadow: 0 2px 0 rgba(0,40,52,0.2);
}
.page-header p.sub { margin-top: 10px; color: var(--eafc); font-size: 15.5px; max-width: 62ch; }

.content-shell { max-width: var(--max-width-narrow); margin: 36px auto 80px; padding: 0 6vw; }
.content-shell.wide { max-width: var(--max-width); }

.panel {
  background: var(--white);
  border: 1px solid var(--deck-line);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.panel h2 {
  font-family: var(--font-record);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 14px;
  border-bottom: 2px solid var(--water);
  padding-bottom: 10px;
}
/* Wordmark-lockup close panel (about page). */
.panel-close { text-align: center; padding: 32px 26px; }
.panel-close p { margin-bottom: 18px; color: var(--ink-soft); }
.wordmark-tagline-ink {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 10px;
}

/* directory card list — plain deck-tile register (state index, brand list) */
.tile-list { list-style: none; display: grid; gap: 14px; }
.tile-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tile-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  border: 1px solid var(--deck-line);
  background: var(--white);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.tile a { font-weight: 700; color: var(--band); text-decoration: none; font-size: 15px; }
.tile a:hover { text-decoration: underline; }
.tile .count { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }

/* ===== Metro/city directory ===== */
.metro-header { background: linear-gradient(180deg, var(--water) 0%, var(--water-deep) 100%); padding: clamp(28px, 4vw, 44px) 6vw 0; }
.metro-header-inner { max-width: var(--max-width); margin: 0 auto; padding-bottom: 28px; }
.metro-header h1 {
  font-family: var(--font-wordmark);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
  margin-top: 6px;
  text-shadow: 0 2px 0 rgba(0,40,52,0.2);
}
.metro-header p.sub { margin-top: 10px; color: var(--eafc); font-size: 15.5px; max-width: 62ch; }

.filters {
  background: var(--white);
  border-bottom: 1px solid var(--deck-line);
  padding: 18px 6vw;
  position: sticky;
  top: 0;
  z-index: 10;
}
.filters-inner { max-width: var(--max-width); margin: 0 auto; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-label {
  font-family: var(--font-record);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-right: 4px;
}
.chip {
  border: 1px solid #b9cdd3;
  background: var(--deck);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.chip.active { background: var(--water); border-color: var(--water); color: var(--white); }
.chip:focus-visible { outline: 2px solid var(--band); outline-offset: 2px; }
select.chip {
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.layout {
  max-width: var(--max-width);
  margin: 24px auto 80px;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}
.layout.profile-layout { max-width: var(--max-width-narrow); grid-template-columns: 1fr 340px; margin-top: 30px; }
.listings { display: flex; flex-direction: column; gap: 16px; }

.listing-card {
  background: var(--white);
  border: 1px solid var(--deck-line);
  padding: 20px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: start;
  position: relative;
}
.listing-photo {
  width: 96px;
  height: 96px;
  background: repeating-linear-gradient(135deg, var(--sky-tile-a), var(--sky-tile-a) 8px, var(--sky-tile-b) 8px, var(--sky-tile-b) 16px);
  border: 1px solid var(--sky-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #04708a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 4px;
  overflow: hidden;
}
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-main h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.listing-main a.listing-name { text-decoration: none; }
.listing-main a.listing-name:hover { text-decoration: underline; }
.rating-slot { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.rating-slot.pending { font-style: italic; }
.rating-slot b { color: var(--ink); font-family: var(--font-record); font-size: 14px; font-style: normal; }
.rating-slot .attribution { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.listing-meta { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border: 1px solid #b9cdd3;
  color: #0a5b6e;
  background: var(--eafc);
}
.tag.pending { color: var(--text-muted); background: var(--deck); border-color: var(--deck-line); }
.listing-brands { margin-top: 10px; font-size: 13px; color: var(--text-body); }
.listing-brands b { color: var(--ink); }
.listing-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 140px; }
.listing-actions .btn { font-size: 12.5px; padding: 10px 14px; }

.listing-card.sample::after {
  content: "SAMPLE DATA";
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--lane-red);
  color: #fff;
  font-family: var(--font-record);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 11px;
  padding: 4px 9px;
}

.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.map-frame {
  background: repeating-linear-gradient(45deg, #d8f0f4, #d8f0f4 10px, #c7e8ee 10px, #c7e8ee 20px);
  border: 1px solid var(--sky-border);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.map-frame .label {
  font-family: var(--font-record);
  font-weight: 700;
  color: #04708a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.side-panel { background: var(--deep-navy); color: var(--eafc); padding: 22px 24px; }
.side-panel.light { background: var(--deck-card); color: var(--ink); border: 1px solid var(--deck-line); }
.side-panel h3, .side-panel h4 {
  font-family: var(--font-record);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 14px;
  color: var(--lane-yellow);
  margin-bottom: 10px;
}
.side-panel.light h3, .side-panel.light h4 { color: var(--band); }
.side-panel p { font-size: 13.5px; line-height: 1.5; color: var(--footer-fg); }
.side-panel.light p { color: var(--text-body); }
.side-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 13.5px; }
.side-panel dt { color: var(--footer-fg-dim); }
.side-panel dd { color: var(--eafc); text-align: right; }
.side-panel .btn-out { display: block; margin-top: 14px; }

.stat-line { background: var(--white); border: 1px solid var(--deck-line); padding: 16px 18px; font-size: 13px; color: var(--text-body); }
.stat-line b { color: var(--ink); font-family: var(--font-record); font-size: 16px; }

/* ===== Listing pagination (city page, 25/page cap) ===== */
.listing-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--deck-line);
}
.listing-pagination a, .listing-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #b9cdd3;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-record);
  text-decoration: none;
  border-radius: 3px;
}
.listing-pagination a:hover { background: var(--deck); }
.listing-pagination a:focus-visible { outline: 2px solid var(--band); outline-offset: 2px; }
.listing-pagination .current { background: var(--water); border-color: var(--water); color: var(--white); }
.listing-pagination .disabled { color: var(--text-muted); background: var(--deck); cursor: default; }
.listing-pagination .gap { border: none; background: none; }

/* ===== Profile page ===== */
.profile-header { background: linear-gradient(180deg, var(--water) 0%, var(--water-deep) 100%); padding: clamp(30px, 4vw, 46px) 6vw 32px; }
.profile-header-inner { max-width: var(--max-width-narrow); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.profile-header h1 {
  font-family: var(--font-wordmark);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.05;
  margin-top: 6px;
  text-shadow: 0 2px 0 rgba(0,40,52,0.2);
}
.profile-header .loc { margin-top: 8px; color: var(--eafc); font-size: 15px; }
.profile-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip-static {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 11px;
  background: rgba(4,34,44,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  border-radius: 2px;
}
.chip-static.unverified { background: rgba(4,34,44,0.12); border-style: dashed; }
.profile-cta { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.cta-note { font-size: 11.5px; color: var(--eafc); text-align: center; }

.brand-list { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-pill { border: 1px solid #b9cdd3; background: var(--eafc); color: #0a5b6e; font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 2px; }

.area-note { font-size: 14px; color: var(--text-body); line-height: 1.6; }
.area-note b { color: var(--ink); }

.rating-honest { background: var(--deck-card); border: 1px dashed #b9cdd3; padding: 16px 18px; font-size: 13px; color: var(--text-muted); font-style: italic; }
.rating-real { background: var(--eafc); border: 1px solid #b9cdd3; padding: 16px 18px; font-size: 14px; color: var(--ink); }
.rating-real b { font-family: var(--font-record); font-size: 22px; color: var(--band); }
.rating-real .attribution { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); font-style: normal; }

/* ===== Markdown-rendered content (guides, cost pages) ===== */
.prose { font-size: 16px; line-height: 1.7; color: var(--text-body); }
.prose h1 { display: none; } /* the page's own <h1> is authoritative; markdown h1 suppressed to keep one h1 per page */
.prose h2 {
  font-family: var(--font-record);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: 0.01em;
}
.prose h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 24px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--band); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border: 1px solid var(--deck-line); margin: 20px 0; }
.prose figure { margin: 20px 0; }
.prose figcaption { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.prose blockquote { border-left: 3px solid var(--water); padding-left: 16px; color: var(--text-muted); margin: 0 0 16px; }
/* min-width + nowrap cells: below that width the table scrolls inside its
   .table-scroll wrapper (added by the guide/brand loaders) instead of
   cramping every cell onto two lines — visual audit 2026-08-08 found
   4-column cost tables squeezing "$30 to $60" onto its own wrapped line
   at 480-768px with no way to widen out. */
.prose table { width: 100%; min-width: 480px; border-collapse: collapse; margin: 0 0 20px; }
.prose table th, .prose table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--deck-line-soft); font-size: 14.5px; white-space: nowrap; }
.prose table th:first-child, .prose table td:first-child { white-space: normal; }
.prose table thead th { font-family: var(--font-record); text-transform: uppercase; letter-spacing: 0.03em; font-size: 12px; color: var(--text-muted); }
.prose code { background: var(--deck-card); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.prose hr { border: none; border-top: 1px solid var(--deck-line); margin: 32px 0; }

/* ===== Methodology block ===== */
.methodology-block {
  background: var(--deck-card);
  border: 1px solid var(--deck-line);
  padding: 20px 22px;
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
}
.methodology-block h3 {
  font-family: var(--font-record);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 14px;
  color: var(--band);
  margin-bottom: 8px;
}

/* ===== 404 ===== */
.error-pool {
  background: linear-gradient(180deg, var(--water) 0%, var(--water-deep) 100%);
  padding: clamp(60px, 10vw, 120px) 6vw;
  text-align: center;
  color: var(--white);
}
.error-pool .code {
  font-family: var(--font-record);
  font-weight: 700;
  font-size: clamp(60px, 12vw, 140px);
  line-height: 1;
  color: var(--lane-yellow);
  text-shadow: 0 4px 0 rgba(0,40,52,0.25);
}
.error-pool h1 { font-family: var(--font-wordmark); font-size: clamp(22px, 3vw, 32px); margin-top: 12px; }
.error-pool p { margin-top: 14px; font-size: 16px; max-width: 50ch; margin-left: auto; margin-right: auto; color: var(--eafc); }
.error-pool .btn-primary { margin-top: 28px; }

/* ===== Hero photo (homepage) ===== */
.hero-photo-frame {
  border: 1px solid var(--sky-border);
  overflow: hidden;
  min-height: 260px;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .layout.profile-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .listing-card { grid-template-columns: 72px 1fr; }
  .listing-actions { grid-column: 1 / -1; flex-direction: row; }
  .tile-list.cols-2, .tile-list.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  /* Stack label + count vertically ALWAYS at this width, not just when a
     long name/count wraps — a uniform two-line shape on every tile is what
     keeps grid rows aligned; letting only the long ones wrap is what made
     rows ragged (Connecticut/Massachusetts/New Hampshire taller than their
     row neighbors, visual audit 2026-08-08). */
  .tile { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .tile .count { display: block; white-space: normal; font-size: 12px; }
}
/* Intermediate step so the 3-up deck-cards never jump straight to one huge
   full-width column at 900px — 2-up first, matching the photo-grid/
   mosaic-grid pattern already used at this width (visual audit 2026-08-08). */
@media (max-width: 1100px) {
  .deck-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .starting-block { justify-content: stretch; }
  .block { max-width: none; width: 100%; }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-frame.wide { grid-column: span 2; }
  .mosaic-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; }
  .profile-header-inner { align-items: flex-start; }
  .profile-cta { min-width: 0; width: 100%; }
  .record-board { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .record-board-band { grid-template-columns: 1fr; }
  .record-board-photo { min-height: 220px; order: -1; }
}
@media (max-width: 700px) {
  .deck-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .band-top { padding: 14px 5vw; }
  /* Primary nav must stay reachable at every width (never display:none) —
     it wraps onto its own row under the wordmark and tightens its gaps so
     five links still read as one scannable line at 320-390px. */
  .top-nav { gap: 10px 16px; font-size: 12.5px; width: 100%; }
  .edu-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-frame.wide { grid-column: span 1; }
  .mosaic-grid { grid-template-columns: 1fr; }
  .proof-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  table.compare { min-width: 560px; }
  .filters-inner { gap: 8px; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-photo { width: 100%; height: 140px; }
  .photo-hero { min-height: clamp(520px, 92vh, 760px); }
  .record-board { grid-template-columns: 1fr; gap: 10px; }
  .record-card { padding: 12px 14px; }
  .hero-ctas { justify-content: stretch; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary { flex: 1 1 auto; }
}

/* Sources: receipts on-page, collapsed by default */
.sources-disclosure { margin: 28px 0 8px; border-top: 1px solid rgba(11,58,74,0.15); padding-top: 14px; }
.sources-disclosure summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--band, #0b3a4a); }
.sources-disclosure ol { margin-top: 10px; font-size: 13.5px; color: #4a5a5f; }

/* ===== Interior page-header alignment + full-bleed rail (visual audit 2026-08-08) =====
   The inner box now uses the exact content-shell box model (same max-width,
   same 6vw internal padding) so header text aligns with page content at any
   viewport; the lane rail is an absolute full-bleed strip at the band's
   bottom edge — never a stub. */
.page-header { position: relative; padding: clamp(30px, 4vw, 46px) 0 44px; }
.page-header-inner { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 6vw; }
.page-header .lane-rail { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; }
.page-header .lane-rail .seg, .lane-rail.thin .seg { max-width: none; flex: 1 1 0; width: auto; }

/* Tables inside plain content shells (ownership map etc.) */
.content-shell table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.content-shell th, .content-shell td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(11,58,74,0.14); vertical-align: top; }
.content-shell thead th { background: rgba(0,180,216,0.08); font-weight: 700; color: var(--band, #0b3a4a); }
.table-scroll { overflow-x: auto; }
