/* Veterinary Marketing Company, revision 5 (launch).
   The page is a chart: the home page runs as four long sections with a tab-colored letter in the
   margin (S, O, A, P), a 36rem reading column, and full-width figures. Warm paper, serif body,
   Bricolage display. Photographs are used once per page and composed, not pasted. */
:root {
  --paper: #ffffff;
  --warm: #f1efec;
  --warm-2: #e6e2dc;
  --ink: #1b2430;
  --ink-2: #4b5563;
  --ink-3: #6b7480;
  --line: #dcdfe3;
  --accent: #1d5bb6;
  --accent-deep: #133f82;
  --accent-soft: #e4ecf8;
  --night: #15202b;
  --night-2: #213041;
  --on-night: #f4f6f8;
  --on-night-2: #b8c2cd;
  --tab-pink: #cf4f88;
  --tab-red: #cf4338;
  --tab-blue: #2d6fcb;
  --tab-purple: #7653c0;
  --tab-green: #2b915e;
  --tab-yellow: #e5b12a;
  --mark: #fde68a;
  --font-display: "Bricolage Grotesque Variable", "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif 4 Variable", "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --max: 1240px;
  --measure: 36rem;
  --radius: 10px;
  --band-y: clamp(4rem, 3rem + 5vw, 8rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url("fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  src: url("fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  src: url("fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); }
p, ul, ol, dl, figure, blockquote, h1, h2, h3, h4 { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.band-night :focus-visible, .hero :focus-visible, .site-header:not(.is-solid) :focus-visible { outline-color: #ffd36b; }
::selection { background: var(--mark); color: var(--ink); }
strong { font-weight: 650; }
table { border-collapse: collapse; }

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 100;
  padding: 0.7rem 1rem; border-radius: 8px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-weight: 650;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.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; }

/* Layout */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * 16px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) { .wrap { width: calc(100% - 48px); } }
@media (min-width: 1200px) { .wrap { width: calc(100% - 96px); } }

.band { position: relative; padding-block: var(--band-y); }
.band-white { background: var(--paper); }
.band-warm { background: var(--warm); }
.band-night { background: var(--night); color: var(--on-night); }
.band-night a { color: #cfe0ff; }
.band-night a:hover { color: #fff; }
.band-night .btn, .band-night .btn:hover { color: var(--btn-fg); }
.band-tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.stack { display: grid; gap: var(--stack, 1.1rem); align-content: start; }

/* Type */
h1, h2, h3, h4, .ui { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 4rem); letter-spacing: -0.03em; font-stretch: 90%; }
h2 { font-size: clamp(1.85rem, 1.45rem + 1.6vw, 2.9rem); letter-spacing: -0.03em; font-stretch: 92%; }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); }
h4 { font-size: 1.1rem; }
.lead { font-size: clamp(1.17rem, 1.07rem + 0.45vw, 1.38rem); line-height: 1.52; color: var(--ink-2); max-width: var(--measure); }
.small { font-size: 0.95rem; line-height: 1.55; }
.muted { color: var(--ink-3); }
.ui { font-family: var(--font-display); }
.num { font-variant-numeric: tabular-nums; }
.measure { max-width: var(--measure); }
.measure-wide { max-width: 46rem; }
.prose { display: grid; gap: 1.15rem; max-width: var(--measure); }
.prose h2 { margin-top: 1.4rem; max-width: 30rem; }
.prose h3 { margin-top: 0.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote { padding-left: 1.2rem; border-left: 3px solid var(--tab-yellow); color: var(--ink-2); font-style: italic; }
.prose .src, .src { font-family: var(--font-display); font-size: 0.86rem; line-height: 1.5; color: var(--ink-3); }
.src a { color: var(--ink-2); }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink-3); }
.lede-rule { width: 3rem; height: 3px; background: var(--ink); border: 0; margin: 0; }

/* Buttons and links */
.btn {
  --btn-bg: var(--accent); --btn-fill: var(--accent-deep); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.35rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; line-height: 1.1;
  border: 0; cursor: pointer; transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--btn-fill); color: var(--btn-fg); transform: translateY(-1px); }
.btn-small { min-height: 2.6rem; padding: 0.6rem 1.05rem; font-size: 0.98rem; }
.btn-light { --btn-bg: #fff; --btn-fill: var(--accent-soft); --btn-fg: var(--ink); }
.btn-outline { --btn-bg: transparent; --btn-fill: rgba(255,255,255,0.12); --btn-fg: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.more { font-family: var(--font-display); font-weight: 650; color: inherit; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.copy-btn { background: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 0.45rem 0.9rem; font: inherit; font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; color: inherit; cursor: pointer; }
.copy-btn[data-state="done"] { background: var(--tab-green); border-color: var(--tab-green); color: #fff; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease; }
.site-header.is-solid, .site-header.on-light { background: rgba(255, 255, 255, 0.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(140%) blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; transition: min-height 0.35s ease; }
.site-header.is-solid .header-inner { min-height: 4.2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 760; font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.05; }
.brand-name span { font-weight: 500; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 1.6rem; }
.bm { display: block; width: 0.5rem; border-radius: 1.5px 1.5px 0 0; background: #ead9ae; position: relative; }
.bm::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0.42rem; border-radius: 1.5px 1.5px 0 0; }
.bm-1 { height: 1.2rem; } .bm-1::before { background: var(--tab-pink); }
.bm-2 { height: 1.6rem; } .bm-2::before { background: var(--tab-blue); }
.bm-3 { height: 1rem; } .bm-3::before { background: var(--tab-green); }
.nav { display: none; align-items: center; gap: 1.6rem; }
.nav-list { display: flex; gap: 1.5rem; }
.nav-link { color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: currentColor; color: inherit; }
.menu { position: relative; }
.menu-btn { list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 650; padding: 0.55rem 1rem; border: 1.5px solid currentColor; border-radius: 999px; }
.menu-btn::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 15rem; display: grid; gap: 0.3rem; padding: 0.8rem; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(21, 32, 43, 0.5), 0 0 0 1px var(--line); }
.menu-panel a { padding: 0.6rem 0.8rem; border-radius: 8px; color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.menu-panel a:hover { background: var(--warm); }
.menu-panel .btn { margin-top: 0.4rem; color: #fff; justify-content: center; }
@media (min-width: 900px) { .nav { display: flex; } .menu { display: none; } }

/* Photo treatment: one warm grade, fine grain */
.photo { position: relative; overflow: hidden; background: var(--warm-2); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02) sepia(0.08); }
.photo::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 180px 180px; opacity: 0.12; mix-blend-mode: multiply; pointer-events: none; }
.photo-fig { display: grid; gap: 0.6rem; }
.photo-fig figcaption, .cap { font-family: var(--font-display); font-size: 0.88rem; color: var(--ink-3); }
.photo-4x5 { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.photo-3x2 { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.photo-1x1 { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.reveal-img { clip-path: inset(0); }

/* Home hero: full-bleed photo, text on the quiet left third */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--night); min-height: 80vh; display: grid; align-items: end; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; filter: saturate(0.9) contrast(1.02) sepia(0.08); }
.hero-media .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 32, 43, 0.72) 0%, rgba(21, 32, 43, 0.42) 40%, rgba(21, 32, 43, 0.04) 68%, rgba(21, 32, 43, 0.1) 100%), linear-gradient(180deg, rgba(21, 32, 43, 0.28), rgba(21, 32, 43, 0) 26%, rgba(21, 32, 43, 0.42) 100%); }
.hero-inner { position: relative; width: 100%; padding-top: clamp(8rem, 6rem + 5vw, 11rem); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); display: grid; gap: 1.4rem; }
.hero-title { max-width: 15ch; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.9rem); line-height: 0.98; letter-spacing: -0.04em; font-stretch: 86%; }
.hero-lead { font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.4rem); line-height: 1.5; color: rgba(255, 255, 255, 0.92); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem; }
.hero-cred { font-family: var(--font-display); font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); max-width: 32rem; }
.hero .btn { --btn-bg: #fff; --btn-fill: var(--accent-soft); --btn-fg: var(--ink); }
.hero-terms { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem); line-height: 1.45; color: #fff; max-width: 32rem; padding-left: 0.9rem; border-left: 3px solid var(--tab-yellow); }
.hero-cap { position: absolute; right: 16px; bottom: 12px; font-family: var(--font-display); font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
@media (max-width: 759px) { .hero { min-height: 0; } .hero-media img { object-position: 70% 30%; } .hero-inner { padding-top: 7rem; } }

/* Inner page head: quiet, no photo behind text */
.page-head { padding-top: clamp(7.5rem, 6rem + 4vw, 10rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: grid; gap: 1.1rem; justify-items: start; }
.page-head h1 { max-width: 17ch; }
.crumbs { font-family: var(--font-display); font-size: 0.92rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs a { color: var(--ink-2); }
.article-meta { font-family: var(--font-display); font-size: 0.95rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

/* The chart: margin letter plus reading column */
.chart-sec { position: relative; display: grid; gap: 1.2rem clamp(1.5rem, 1rem + 2vw, 3rem); }
.chart-letter { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; color: var(--c, var(--ink)); display: grid; gap: 0.3rem; align-content: start; }
.chart-letter small { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.chart-letter svg { width: 4.2rem; height: auto; overflow: visible; }
.chart-body { min-width: 0; display: grid; gap: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem); }
.chart-body > h2 { max-width: 24ch; }
@media (min-width: 960px) {
  .chart-sec { grid-template-columns: 7rem minmax(0, 1fr); }
  .chart-letter { position: sticky; top: 6rem; font-size: 4.2rem; }
  .chart-letter svg { width: 5.6rem; }
}
.c-s { --c: var(--tab-pink); } .c-o { --c: var(--tab-blue); } .c-a { --c: var(--tab-green); } .c-p { --c: var(--tab-yellow); }

/* Two-column prose rows (text beside a figure or photo) */
.row { display: grid; gap: clamp(1.6rem, 1rem + 2.5vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .row { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); } .row.flip > :first-child { order: 2; } .row.even { grid-template-columns: 1fr 1fr; } }
.charts { display: grid; gap: 1rem; }
.charts > .fig { max-width: 46rem; }

/* Figures: tables and charts */
.fig { display: grid; gap: 0.75rem; }
.article-grid > .fig { max-width: 44rem; }
.article-grid > .table-scroll { max-width: 60rem; }
.fig figcaption, .fig-cap { font-family: var(--font-display); font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.fig .src { margin-top: 0.1rem; }
.chart-svg { width: 100%; height: auto; font-family: var(--font-display); }
.chart-svg text { font-size: 13px; fill: var(--ink-2); }
.chart-svg .lbl { font-size: 13px; fill: var(--ink); font-weight: 600; }
.chart-svg .ax { stroke: var(--line); stroke-width: 1; }
.chart-svg .bar-ind { fill: var(--accent); }
.chart-svg .bar-dir { fill: var(--tab-red); }
.chart-svg .bar-chain { fill: var(--tab-purple); }
.chart-svg .bar-other { fill: #b9c0c8; }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-family: var(--font-display); font-size: 0.9rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; margin-right: 0.4rem; vertical-align: -0.05em; background: var(--c, var(--accent)); }
.l-ind { --c: var(--accent); } .l-dir { --c: var(--tab-red); } .l-chain { --c: var(--tab-purple); } .l-other { --c: #b9c0c8; }

.data-table { width: 100%; font-family: var(--font-display); font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-weight: 650; color: var(--ink); border-bottom: 2px solid var(--ink); }
.data-table td.n, .data-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:nth-child(even) { background: rgba(241, 239, 236, 0.55); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 600px; }

@media (max-width: 759px) { .phone-hide { display: none; } }
@media (min-width: 760px) { .phone-only { display: none; } }

/* Dot rows (map pack size per town) */
.dots { display: grid; gap: 0.45rem; font-family: var(--font-display); font-size: 0.9rem; }
.dot-row { display: grid; grid-template-columns: 9rem 1fr; gap: 0.8rem; align-items: center; }
.dot-row i { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--accent); margin-right: 0.3rem; }
.dot-row i.off { background: var(--warm-2); }

/* Results page schematic */

/* Full-bleed photo band with a caption */
.fullbleed { position: relative; width: 100%; height: clamp(280px, 42vw, 620px); overflow: hidden; }
.fullbleed img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fullbleed .cap { position: absolute; right: 16px; bottom: 10px; color: rgba(255,255,255,0.85); }

/* Report document (sample report and the ranking-check preview) */
.report { background: #fff; color: var(--ink); border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -36px rgba(21, 32, 43, 0.5); max-width: 46rem; padding: clamp(1.4rem, 1rem + 2vw, 2.8rem); display: grid; gap: 1.4rem; font-size: 1.02rem; }
.report-head { display: grid; gap: 0.3rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); font-family: var(--font-display); }
.report-head h2, .report-head h1 { font-size: 1.5rem; }
.report-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; font-size: 0.95rem; }
.report-meta dt { color: var(--ink-3); font-weight: 600; }
.report-meta dd { margin: 0; }
.stamp { display: inline-block; justify-self: start; padding: 0.25rem 0.6rem; border: 2px solid var(--tab-red); border-radius: 4px; color: var(--tab-red); font-weight: 750; font-size: 0.85rem; letter-spacing: 0.04em; }
.report-sec { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.6rem 1rem; padding-top: 1.2rem; border-top: 1px dashed rgba(27, 36, 48, 0.25); }
.report-sec:first-of-type { border-top: 0; padding-top: 0; }
.report-letter { width: 2.6rem; height: 2.8rem; display: grid; place-items: center; border-radius: 3px; background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.report-sec h3 { font-size: 1.15rem; align-self: center; }
.report-sec .prose { grid-column: 2; gap: 0.8rem; font-size: 1rem; }
@media (max-width: 640px) { .report-sec .prose { grid-column: 1 / -1; } .report { padding-inline: 1rem; } }
.report-sec .prose ul { padding-left: 1.1rem; }
.report .table-scroll { grid-column: 1 / -1; }
.report .table-scroll table { min-width: 0; width: 100%; font-size: 0.92rem; }
.report .table-scroll th:last-child, .report .table-scroll td:last-child { min-width: 14rem; }
@media (max-width: 640px) {
  .report .report-table { min-width: 0; display: block; width: 100%; }
  .report .table-scroll { overflow: visible; }
  .report .report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .report .report-table tbody, .report .report-table tr, .report .report-table td { display: block; }
  .report .report-table tr { display: grid; grid-template-columns: 1fr auto auto; gap: 0.25rem 0.9rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .report .report-table td { padding: 0; border: 0; }
  .report .report-table td:first-child { font-weight: 650; }
  .report .report-table td.n { text-align: right; white-space: nowrap; }
  .report .report-table td:nth-child(2)::before { content: "Map "; color: var(--ink-3); font-weight: 400; }
  .report .report-table td:nth-child(3)::before { content: "Web "; color: var(--ink-3); font-weight: 400; }
  .report .report-table td:last-child { grid-column: 1 / -1; color: var(--ink-2); }
}
.report-table { width: 100%; font-family: var(--font-display); font-size: 0.9rem; }
.report-table th, .report-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.report-table th { border-bottom: 2px solid var(--ink); }
.report-table td.n, .report-table th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-table .bad { color: var(--tab-red); font-weight: 650; }
.report-table .ok { color: var(--tab-green); font-weight: 650; }
.report-foot { font-family: var(--font-display); font-size: 0.85rem; color: var(--ink-3); padding-top: 1rem; border-top: 2px solid var(--ink); }
.report-wrap { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 1100px) { .report-wrap { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .report-aside { position: sticky; top: 6rem; } }
.report-aside { display: grid; gap: 1rem; font-size: 1rem; }
details.rep { border-top: 1px solid var(--line); }
details.rep summary { list-style: none; cursor: pointer; padding: 0.9rem 0; font-family: var(--font-display); font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; }
details.rep summary::-webkit-details-marker { display: none; }
details.rep summary::after { content: "+"; color: var(--ink-3); }
details.rep[open] summary::after { content: "\2013"; }
details.rep .rep-body { overflow: hidden; padding-bottom: 1rem; }

/* Plan section rows: what we do each month */
.plan-list { display: grid; gap: clamp(1.8rem, 1.4rem + 1.5vw, 2.8rem); }
.plan-item { display: grid; gap: 0.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.18); max-width: 40rem; }
.plan-item h3 { font-size: 1.3rem; color: #fff; }
.plan-item p { color: var(--on-night-2); }
.band-night .lead { color: var(--on-night-2); }
.band-night h2, .band-night h3 { color: #fff; }

/* Question list (the questions page) and FAQ-less answers */
.qa { display: grid; gap: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); max-width: 40rem; }
.qa > div { display: grid; gap: 0.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.qa h2 { font-size: 1.35rem; letter-spacing: -0.02em; font-stretch: 100%; }

/* Opinions on the About page */
.opinions { display: grid; gap: 1.2rem; counter-reset: op; max-width: 40rem; }
.opinion { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.4rem 0.8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.opinion::before { counter-increment: op; content: counter(op); font-family: var(--font-display); font-weight: 750; color: var(--ink-3); }
.opinion h3 { font-size: 1.15rem; }
.opinion p { grid-column: 2; }

/* Guides list */
.guide-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.guide-row { display: grid; gap: 0.5rem 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.guide-row:hover h3 { color: var(--accent); }
.guide-row h3 { font-size: 1.3rem; }
.guide-row p { color: var(--ink-2); max-width: 36rem; }
.guide-meta { font-family: var(--font-display); font-size: 0.88rem; color: var(--ink-3); }
@media (min-width: 820px) { .guide-row { grid-template-columns: 10rem minmax(0, 1fr); } .guide-row .guide-meta { padding-top: 0.35rem; } }

/* Home (launch) */
.home-sec h2 { max-width: 22ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; }
.prose .plain-list { padding-left: 0; gap: 0; }
.plain-list li { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.band-warm .plain-list li { border-color: rgba(27, 36, 48, 0.16); }
.band-night .plain-list li { border-color: rgba(255, 255, 255, 0.18); color: var(--on-night-2); }
.home-sec .charts { margin-top: 0; }
.home-sec h3 { font-size: 1.15rem; }
.cs-img { margin: 0; }
.cs-img img, .cs-fig img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -28px rgba(21, 32, 43, 0.6); }
.cs-img { max-width: 500px; }
@media (min-width: 900px) { .cs-block { align-items: center; } }
.cs-fig { display: grid; gap: 0.7rem; margin: 0; }
.cs-fig figcaption { font-family: var(--font-display); font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.cs-fig.small { max-width: 500px; }
.cs-fig.wide { max-width: 72rem; }
.cs-zoom { display: block; border-radius: 10px; }

/* Articles */
.article-grid { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); }
.article-body { display: grid; gap: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.article-main { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); min-width: 0; }
.toc { display: none; }
.side-fig { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 1100px) {
  .article-grid.has-aside { grid-template-columns: minmax(0, 46rem) minmax(15rem, 20rem); column-gap: clamp(3rem, 2rem + 3vw, 6rem); align-items: start; }
  .article-grid.has-aside .table-scroll table { min-width: 0; }
  .side-fig { position: sticky; top: 6rem; }
}
@media (min-width: 1100px) {
  .article-grid.has-toc { grid-template-columns: minmax(0, 40rem) minmax(14rem, 18rem); column-gap: clamp(3rem, 2rem + 5vw, 8rem); align-items: start; }
  .toc { display: block; position: sticky; top: 6rem; padding-top: 0.4rem; border-top: 2px solid var(--ink); }
  .toc-title { font-family: var(--font-display); font-weight: 650; font-size: 0.92rem; margin: 0.8rem 0 0.6rem; color: var(--ink-3); }
  .toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; }
  .toc a { display: block; padding: 0.38rem 0 0.38rem 0.9rem; border-left: 2px solid var(--line); font-family: var(--font-display); font-size: 0.95rem; line-height: 1.3; color: var(--ink-2); text-decoration: none; }
  .toc a:hover { color: var(--ink); border-left-color: var(--ink-3); }
  .toc a.is-current { color: var(--ink); border-left-color: var(--accent); }
}
.summary { display: grid; gap: 0.8rem; padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); border-left: 4px solid var(--tab-blue); background: var(--warm); max-width: 42rem; font-size: 1.02rem; }
.summary h2 { font-size: 1.05rem; letter-spacing: 0; font-stretch: 100%; }
.summary ul { padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.sources { display: grid; gap: 0.6rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); max-width: 42rem; font-size: 0.98rem; }
.sources h2 { font-size: 1.1rem; letter-spacing: 0; font-stretch: 100%; }
.sources ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.sources a { overflow-wrap: anywhere; }
.steps { padding-left: 1.4rem; display: grid; gap: 0.7rem; }
.callout { padding: 1rem 1.2rem; border-radius: 8px; background: var(--warm); font-size: 1rem; max-width: 42rem; }
.callout.rule { border-left: 4px solid var(--tab-yellow); }

/* Email box */
.email-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--warm); border: 1px solid var(--line); max-width: 36rem; }
.email-text { font-family: var(--font-display); font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 480px) { .email-text, .email-line { font-size: min(1rem, 3.55vw); letter-spacing: -0.01em; } .email-box { padding-inline: 1rem; } }
.band-night .email-box { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: #fff; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-2); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-name { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 760; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff; }
.footer-about { margin-top: 0.9rem; max-width: 26rem; font-size: 1rem; }
.footer-nav ul { display: grid; gap: 0.55rem; }
.footer-nav a { color: #fff; font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-label { font-family: var(--font-display); font-weight: 650; color: #fff; }
.email-line { margin-top: 0.4rem; font-family: var(--font-display); color: #fff; overflow-wrap: anywhere; }
.contact-actions { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-family: var(--font-display); font-size: 0.92rem; }
.footer-base a { color: inherit; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 1rem; padding-top: 8rem; }

/* Motion: hidden until animated; shown when scripts fail or motion is reduced */
.js:not(.reveal-all) [data-reveal], .js:not(.reveal-all) .hero-title, .js:not(.reveal-all) [data-hero-fade] { visibility: hidden; }
.js.anim-ready [data-reveal], .js.anim-ready .hero-title, .js.anim-ready [data-hero-fade] { visibility: inherit; }
.reveal-all [data-reveal], .reveal-all .hero-title, .reveal-all [data-hero-fade] { visibility: visible; }
.split-line { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Print: the sample report prints as a document */
@media print {
  .site-header, .site-footer, .report-aside, .no-print, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band { padding-block: 0; }
  .report { box-shadow: none; max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  .page-head { padding-top: 0; }
}
.snap-fig { max-width: 30rem; }

/* ranking check lead form */
.lf { margin: 1.25rem 0 2rem; }
.lf__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lf__grid { display: grid; grid-template-columns: 1fr; gap: 1rem 1.25rem; }
@media (min-width: 640px) { .lf__grid { grid-template-columns: 1fr 1fr; } .lf__wide { grid-column: 1 / -1; } }
.lf__field { display: block; margin: 0; }
.lf__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.lf__label small { font-weight: 400; opacity: .75; }
.lf input:not([type=hidden]):not([type=checkbox]), .lf textarea {
  display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; line-height: 1.4;
  color: #16191d; background: #fff; border: 1px solid rgba(20, 25, 30, .28); border-radius: 4px; padding: .7rem .8rem; }
.lf textarea { resize: vertical; min-height: 5.5rem; }
.lf input:focus-visible, .lf textarea:focus-visible { outline: 3px solid rgba(30, 90, 200, .35); outline-offset: 1px; border-color: rgba(20, 25, 30, .55); }
.lf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.lf__actions .btn { cursor: pointer; }
.lf__actions .btn[disabled] { opacity: .6; cursor: progress; }
.lf__note { margin: 0; font-size: .92rem; opacity: .8; max-width: 34rem; }
.lf__status { margin: 1rem 0 0; font-weight: 600; }
.lf__status:empty { display: none; }
