/* ==========================================================================
   Article / research page. Builds on styles.css (tokens, header, footer, buttons).
   ========================================================================== */

:root {
  --chart-accent: #0b8aa5;   /* emphasis mark (teal) */
  --chart-neutral: #c5d3d9;  /* de-emphasised marks */
  --chart-grid: #e6eef1;
  --prose: 720px;
}

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Hero ---------- */
.a-hero { position: relative; background: var(--navy); color: #c7d6dd; padding: calc(var(--header-h) + 48px) 0 120px; overflow: hidden; }
.a-hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .8rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #5f7d8a; }
.crumbs a { color: #9fd9e3; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: #9fb7c2; }
.a-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; margin: 20px 0 18px; letter-spacing: -0.03em; line-height: 1.06; }
.a-hero h1 span { display: block; color: var(--cyan); font-size: .55em; letter-spacing: -0.01em; margin-top: 10px; }
.a-dek { font-size: 1.1rem; max-width: 600px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .86rem; color: #9fb7c2; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.byline .icon { width: 15px; height: 15px; color: var(--cyan); }
.byline strong { color: #fff; }
.byline .byline-by--role { display: inline; }

.hero-figure { margin: 0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 28px; backdrop-filter: blur(4px); }
.hero-figure-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.4rem, 7vw, 5rem); line-height: 1; color: #fff; letter-spacing: -0.03em; }
.hero-figure p { margin-top: 10px; color: #c7d6dd; }
.hero-figure p strong { color: #fff; }
.hero-bar { margin-top: 22px; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.hero-bar-met { display: block; height: 100%; width: var(--w); background: var(--cyan); border-radius: 999px; }
.hero-figure-legend { display: flex; gap: 24px; margin: 14px 0 0; font-size: .82rem; }
.hero-figure-legend div { display: grid; gap: 2px; }
.hero-figure-legend dt { display: flex; align-items: center; gap: 7px; color: #9fb7c2; }
.hero-figure-legend dd { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; }
.hero-figure .key--miss { background: rgba(255, 255, 255, .3); }

.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.key--met { background: var(--cyan); }
.chart-card .key--met, .pack-card .key--met { background: var(--chart-accent); }
.key--neutral { background: var(--chart-neutral); }

/* ---------- Layout ---------- */
.a-layout { display: grid; grid-template-columns: 240px minmax(0, var(--prose)); justify-content: center; gap: 64px; padding-top: 24px; padding-bottom: 96px; }

.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-bottom: 8px; }
.toc-box summary { list-style: none; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; cursor: default; display: flex; justify-content: space-between; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-count { color: var(--muted); letter-spacing: 0; font-weight: 600; text-transform: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: .86rem; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .15s, border-color .15s; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--cyan); }
.toc-cta { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-top: 24px; padding: 16px; border-radius: 14px; background: var(--navy); color: #c7d6dd; text-decoration: none; font-size: .82rem; }
.toc-cta strong { color: #fff; font-size: .9rem; grid-column: 1; }
.toc-cta span { grid-column: 1; }
.toc-cta .icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--orange); transition: transform .2s; }
.toc-cta:hover .icon { transform: translateX(3px); }

/* ---------- Prose ---------- */
.prose { font-size: 1.06rem; line-height: 1.75; color: #33495a; min-width: 0; }
.prose > p, .prose section > p { margin-top: 1.1em; }
.prose a:not(.btn):not(.share-btn) { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.btn):not(.share-btn):hover { color: var(--navy); }
.prose section { margin-top: 72px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; line-height: 1.15; }
.prose .eyebrow + h2 { margin-top: 0; }
.prose h3 { font-size: 1.15rem; color: var(--ink); }
/* Sub-headings inside a section: clear space above, tight to their own content */
.prose section > h3 { margin-top: 48px; font-size: 1.3rem; line-height: 1.3; }
.prose section > h3 + * { margin-top: 12px; }
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--ink); margin-top: 0 !important; }
.lead::first-letter { font-family: var(--font-head); font-weight: 800; float: left; font-size: 3.6em; line-height: .85; margin: 6px 10px 0 0; color: var(--teal); }
.takeaway { background: var(--bg-soft); border-left: 4px solid var(--cyan); border-radius: 0 12px 12px 0; padding: 16px 20px; }
.takeaway strong { color: var(--ink); }
.small-note { font-size: .9rem; color: var(--muted); font-style: italic; }
.prose .note { font-size: .98rem; line-height: 1.6; margin-top: 28px; }

/* At a glance */
.glance { background: var(--navy); color: #c7d6dd; border-radius: 20px; padding: 32px; margin-top: 40px !important; }
.glance h2 { color: #fff; font-size: 1.4rem; }
.glance-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glance-grid li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 16px 18px; font-size: .9rem; line-height: 1.55; }
.glance-grid .glance-wide { grid-column: 1 / -1; }
.glance-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--cyan); line-height: 1.1; margin-bottom: 6px; }
.glance-grid strong { color: #fff; }

/* The bar definition */
.bar-def { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: #fff; border: 1.5px solid var(--cyan); border-radius: 16px; padding: 18px 22px; }
.bar-def-label { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.1rem; background: var(--chip); border-radius: 10px; padding: 8px 14px; }
.bar-def ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; color: var(--ink); font-weight: 600; }
.bar-def li { display: flex; align-items: center; gap: 6px; }
.bar-def .icon { width: 17px; height: 17px; color: var(--teal); }
.bar-def small { font-weight: 400; color: var(--muted); }

/* ---------- Charts ---------- */
.chart-card { margin: 32px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-soft); }
.chart-card figcaption { display: grid; gap: 4px; margin-bottom: 14px; }
.chart-title { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.35; }
.chart-sub { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: var(--text); margin-bottom: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart { position: relative; width: 100%; min-height: 120px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font-body); fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .t-strong { fill: var(--ink); font-weight: 700; }
.chart .t-label { fill: var(--text); }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis-line { stroke: #cfdde2; stroke-width: 1; }
.chart .ref-line { stroke: var(--ink); stroke-width: 2; }
.chart .mark { transition: opacity .2s, filter .15s; cursor: pointer; }
.chart .mark:hover, .chart .mark.is-hover { filter: brightness(1.12); }
.chart .is-dim { opacity: .18; }
.chart-source { font-size: .78rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.chart-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .82rem; font-weight: 600; color: var(--ink); flex-wrap: wrap; }
.chart-controls select { min-height: 38px; padding: 6px 38px 6px 12px; border: 1.5px solid #c9dde3; border-radius: 10px; font-size: .88rem; appearance: none; -webkit-appearance: none; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052a3c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat; }
.chart-table { margin-top: 12px; }
.chart-table summary { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--teal-dark); cursor: pointer; }
.chart-table summary .icon { width: 15px; height: 15px; }
.chart-table table { margin-top: 10px; }

/* HTML horizontal bars */
.hbars { display: grid; gap: 14px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "track track"; gap: 6px 12px; align-items: end; cursor: default; }
.hbar-label { grid-area: label; font-size: .88rem; color: var(--text); line-height: 1.35; }
.hbar-val { grid-area: val; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1rem; text-align: right; white-space: nowrap; }
.hbar-val small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--muted); }
.hbar-track { grid-area: track; position: relative; height: 14px; background: var(--chip); border-radius: 999px; }
.hbar-fill { display: block; height: 100%; border-radius: 999px; transition: filter .15s; }
.hbar.is-hover .hbar-fill { filter: brightness(1.12); }
.hbar-prev { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px #fff; }
.key--prev { width: 3px; height: 14px; border-radius: 2px; background: var(--ink); }
.chart-legend--below { margin: 16px 0 0; }

/* Charts draw in when they scroll into view */
@media (prefers-reduced-motion: no-preference) {
  .chart .grow { transform-box: fill-box; transform-origin: 0 100%; transform: scaleY(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
  .chart .grow-x { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
  .chart .pop { opacity: 0; transition: opacity .4s ease-out; }
  .chart.is-in .grow { transform: scaleY(1); }
  .chart.is-in .grow-x { transform: scaleX(1); }
  .chart.is-in .pop { opacity: 1; }
  .meter span, .hero-bar-met { transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .1s; }
  .is-in .meter span, .is-in.hero-bar .hero-bar-met, .hero-bar.is-in .hero-bar-met { transform: scaleX(1); }
  .pack-grid i { opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; }
  .pack-grid.is-in i { opacity: 1; transform: none; }
}

/* Tooltip */
.tooltip { position: fixed; z-index: 150; pointer-events: none; background: var(--navy); color: #c7d6dd; border-radius: 10px; padding: 9px 12px; font-size: .8rem; line-height: 1.4; box-shadow: 0 10px 30px -10px rgba(2, 30, 42, .5); max-width: 240px; }
.tooltip strong { display: block; color: #fff; font-size: 1rem; font-family: var(--font-head); }
.tooltip .tt-name { color: #fff; font-weight: 600; }

/* Local-pack illustration */
.pack-grid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 6px; margin: 6px 0 14px; }
.pack-grid i { aspect-ratio: 1; border-radius: 50%; background: var(--chart-neutral); }
.pack-grid i.is-pack { background: var(--chart-accent); box-shadow: 0 0 0 3px rgba(11, 138, 165, .2); }

/* Meters */
.meters { display: grid; gap: 16px; margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.meter-row { display: grid; grid-template-columns: 190px 1fr 52px; gap: 16px; align-items: center; }
.meter-label { display: grid; line-height: 1.3; }
.meter-label strong { color: var(--ink); font-size: .95rem; }
.meter-label span { font-size: .8rem; color: var(--muted); }
.meter { height: 12px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--w); background: var(--chart-accent); border-radius: 999px; }
.meter-val { font-family: var(--font-head); font-weight: 800; color: var(--ink); text-align: right; }
.meters--profile + .chart-source { margin-top: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 18px; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line); }
.table-wrap--scroll { max-height: 520px; overflow-y: auto; }
.data-table, .chart-table table { width: 100%; border-collapse: collapse; font-size: .86rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td, .chart-table th, .chart-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th, .chart-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: .78rem; position: sticky; top: 0; z-index: 1; }
.data-table tbody th { color: var(--ink); font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: #f7fbfc; }
.data-table td:not(:first-child), .data-table thead th:not(:first-child) { text-align: right; }
.data-table--bars td[data-share] { position: relative; min-width: 120px; font-weight: 700; color: var(--ink); }
.share-cell { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.share-bar { flex: 1; max-width: 90px; height: 6px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.share-bar i { display: block; height: 100%; background: var(--chart-accent); border-radius: 999px; }
.data-table--sortable thead button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.data-table--sortable thead button::after { content: "↕"; font-size: .75em; color: var(--muted); }
.data-table--sortable th[aria-sort="ascending"] button::after { content: "↑"; color: var(--teal-dark); }
.data-table--sortable th[aria-sort="descending"] button::after { content: "↓"; color: var(--teal-dark); }
.data-table--sortable thead button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.data-table .tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--chip); color: var(--teal-dark); margin-left: 6px; vertical-align: 1px; }

/* Tabs + explorer */
.tabs { margin-top: 24px; }
.tab-list { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab-list button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .86rem; color: var(--text); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tab-list button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab-list button:not([aria-selected="true"]):hover { color: var(--ink); background: #fff; }
.explorer-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.search-box { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; border: 1.5px solid #c9dde3; border-radius: 999px; padding: 0 14px; background: #fff; min-height: 44px; }
.search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(34, 194, 214, .2); }
.search-box .icon { width: 17px; height: 17px; color: var(--muted); }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: .95rem; background: none; color: var(--ink); }
.seg--sm { display: inline-grid; grid-auto-flow: column; grid-template-columns: none; gap: 4px; margin: 0; }
.seg--sm span { padding: 8px 14px; font-size: .78rem; }
.explorer-count { font-size: .8rem; color: var(--muted); margin-top: 10px !important; }

/* ---------- Interactive tool ---------- */
.tool { background: var(--bg-tint); border: 1px solid #cfe6ec; border-radius: 22px; padding: 32px; }
.tool-head h2 { margin-top: 0; }
.tool-head p { margin-top: 10px; }
.tool-form { margin-top: 22px; }
.tool-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool .field label { font-size: .8rem; }
.tool .field small { font-weight: 400; color: var(--muted); }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #f5a623; pointer-events: none; }
.tool-result { margin-top: 20px; background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow-soft); }
.verdict { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); font-size: 1.05rem; line-height: 1.4; }
.verdict-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.verdict-icon .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.verdict.is-pass .verdict-icon { background: #e3f6ec; color: #17804a; }
.verdict.is-fail .verdict-icon { background: #fdf0e1; color: #b8650a; }
.tool-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.tool-stat { background: var(--bg-soft); border-radius: 12px; padding: 14px; display: grid; align-content: start; gap: 4px; }
.tool-stat span { font-size: .74rem; font-weight: 600; color: var(--muted); }
.tool-stat output { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.tool-stat small { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.tool-stat--dark { background: var(--navy); }
.tool-stat--dark span, .tool-stat--dark small { color: #b8cbd3; }
.tool-stat--dark output { color: var(--cyan); }
.tool-city { margin-top: 16px !important; font-size: .95rem; background: var(--note); color: #4a3b1d; border-radius: 10px; padding: 12px 16px; line-height: 1.55; }
.tool-city strong { color: #2e2611; }
.tool-result .btn { margin-top: 18px; }
.tool-fine { font-size: .78rem !important; color: var(--muted); margin-top: 14px !important; line-height: 1.5; }
.tool output.is-bump { animation: bump .35s ease-out; }

/* ---------- 7 reasons ---------- */
.reason-groups { display: flex; gap: 8px; margin-top: 20px; }
.rg { font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.rg--trust { background: var(--cream); color: #8a5a0b; }
.rg--find { background: var(--chip); color: var(--teal-dark); }
.reasons { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.reason { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.reason-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.reason-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; grid-row: span 2; align-self: start; }
.reason--trust .reason-num { background: var(--cream); color: #b8650a; }
.reason--find .reason-num { background: var(--navy); color: var(--cyan); }
.reason-head h3 { font-size: 1.12rem; line-height: 1.3; }
.reason-stat { font-size: .82rem; color: var(--muted); }
.reason-stat strong { color: var(--teal-dark); font-family: var(--font-head); font-size: 1rem; }
.reason > p { margin-top: 14px; font-size: 1rem; }
.reason h4 { margin-top: 16px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.fix-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: .96rem; line-height: 1.6; }
.fix-list li { position: relative; padding-left: 26px; }
.fix-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: rotate(-45deg); }

/* ---------- 90-day plan ---------- */
.plan-start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; background: var(--bg-soft); border-radius: 14px; padding: 14px 18px; }
.plan-start label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.plan-start .icon { color: var(--teal); width: 18px; height: 18px; }
.plan-start input { min-height: 42px; padding: 8px 12px; border: 1.5px solid #c9dde3; border-radius: 10px; background: #fff; font-size: .95rem; color: var(--ink); }
.timeline { list-style: none; margin: 26px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--cyan), var(--teal-dark)); border-radius: 2px; }
.phase { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 0 0 28px 36px; }
.phase::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); box-sizing: border-box; }
.phase--goal::before { background: var(--orange); border-color: var(--orange); }
.phase-when { display: grid; gap: 2px; align-content: start; }
.phase-days { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.phase-dates { font-size: .8rem; color: var(--teal-dark); font-weight: 600; }
.phase-body { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.phase-body h3 { font-size: 1.05rem; }
.phase-body ul { margin: 10px 0 0; padding-left: 18px; font-size: .95rem; line-height: 1.6; display: grid; gap: 6px; }
.phase.is-now .phase-body { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 194, 214, .15); }
.phase.is-now .phase-dates::after { content: " · You are here"; color: #b8650a; }

/* ---------- Checklist ---------- */
.checklist-card { margin-top: 24px; display: grid; grid-template-columns: 200px 1fr; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-soft); }
.checklist-score { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; text-align: center; display: grid; justify-items: center; }
.ring { width: 140px; height: 140px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--chip); stroke-width: 12; }
.ring-fill { fill: none; stroke: var(--chart-accent); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .5s cubic-bezier(.2, .7, .2, 1), stroke .3s; }
.ring-fill.is-done { stroke: #17804a; }
.ring-text { margin-top: -92px; height: 92px; display: grid; align-content: start; }
.ring-text strong { font-family: var(--font-head); font-size: 2.2rem; color: var(--ink); line-height: 1; }
.ring-text span { font-size: .78rem; color: var(--muted); }
.checklist-score p { margin-top: 10px; font-size: .86rem; line-height: 1.45; color: var(--text); }
.btn-link { background: none; border: 0; color: var(--teal-dark); font-weight: 600; font-size: .82rem; cursor: pointer; padding: 6px; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.btn-link .icon { width: 15px; height: 15px; }
.checklist-groups { display: grid; gap: 20px; }
.checklist-groups fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist-groups legend { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; padding: 0; }
.checklist-groups label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .95rem; line-height: 1.45; color: var(--ink); transition: background .15s; }
.checklist-groups label:hover { background: var(--bg-soft); }
.checklist-groups input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border: 2px solid #b9cfd6; border-radius: 6px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.checklist-groups input::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checklist-groups input:checked { background: var(--chart-accent); border-color: var(--chart-accent); }
.checklist-groups input:checked::after { opacity: 1; }
.checklist-groups input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.checklist-groups label:has(input:checked) { color: var(--muted); text-decoration: line-through; text-decoration-color: #b9cfd6; }

/* ---------- CTA ---------- */
.a-cta { position: relative; overflow: hidden; margin-top: 72px; background: var(--navy); color: #c7d6dd; border-radius: 22px; padding: 36px; display: grid; gap: 20px; }
.a-cta > div { position: relative; }
.a-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.a-cta p { margin-top: 10px; }
.a-cta .btn { position: relative; justify-self: start; }
.a-cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.a-cta .hero-waves { opacity: .5; }

/* ---------- FAQ, methodology, cite ---------- */
.faq--article { max-width: none; margin-top: 22px; }
.faq--article .faq-answer { font-size: 1rem; line-height: 1.7; }
.method-list { margin: 20px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.method-list div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 18px; font-size: .94rem; line-height: 1.6; }
.method-list div:nth-child(odd) { background: var(--bg-soft); }
.method-list dt { font-weight: 700; color: var(--ink); }
.method-list dd { margin: 0; }
.prose h3#sources { margin-top: 36px; }
.sources { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: .95rem; }
.sources a[download] { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-left: 4px; }
.sources .icon { width: 16px; height: 16px; }
.cite { margin-top: 32px; background: var(--bg-soft); border-radius: 16px; padding: 22px; }
.cite-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.cite-head h3 { font-size: 1rem; }
.share { display: flex; flex-wrap: wrap; gap: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid #c9dde3; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.share-btn:hover { border-color: var(--teal); background: var(--chip); }
.share-btn .icon { width: 15px; height: 15px; }
.cite-text { margin-top: 14px; font-size: .88rem; line-height: 1.6; background: #fff; border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line); word-break: break-word; }
.cite .btn-link { margin-top: 6px; }

/* ---------- Guide pages (e.g. SEO mistakes) ---------- */
.prose > section.short-answer { margin-top: 0; }
.short-answer .lead { margin-top: 14px !important; }
.source-cards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.source-cards li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; align-content: start; gap: 6px; font-size: .9rem; line-height: 1.55; }
.source-cards strong { color: var(--ink); line-height: 1.35; }
.source-kind { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.pull-quote { margin: 24px 0 0; background: var(--navy); color: #c7d6dd; border-radius: 18px; padding: 24px 28px; }
.pull-quote p { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; color: #fff; }
.pull-quote p::before { content: "\201C"; color: var(--cyan); }
.pull-quote p::after { content: "\201D"; color: var(--cyan); }
.pull-quote footer { margin-top: 10px; font-size: .85rem; }
.pull-quote footer strong { color: var(--cyan); }
.data-table--text { min-width: 600px; }
.data-table.data-table--text td:not(:first-child), .data-table.data-table--text thead th:not(:first-child) { text-align: left; }
.data-table--text th, .data-table--text td { vertical-align: top; }
.data-table.data-table--text .num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); }
.data-table .handle, .data-table .nowrap { white-space: nowrap; }
.data-table .handle { color: var(--teal-dark); font-weight: 600; }
.fix-order tbody th { width: 1%; text-align: center; font-family: var(--font-head); font-weight: 800; }
.reason--strategy .reason-num { background: var(--chip); color: var(--teal-dark); }
.reason .chart-card, .reason .meters { margin-top: 18px; }
.order-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: step; }
.order-steps li { counter-increment: step; background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; font-size: .88rem; line-height: 1.45; }
.order-steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; background: var(--navy); color: var(--cyan); font-family: var(--font-head); font-weight: 800; font-size: .85rem; }
.order-steps strong { display: block; color: var(--ink); }
@media (max-width: 640px) {
  .pull-quote { padding: 20px; }
  .order-steps { grid-template-columns: 1fr 1fr; }
  .reason .chart-card { margin-left: -8px; margin-right: -8px; }
}

/* Homeowner guide extras */
.hero-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-checks li { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: .95rem; }
.hero-checks .icon { width: 22px; height: 22px; padding: 4px; flex: none; border-radius: 50%; background: rgba(34, 194, 214, .18); color: var(--cyan); stroke-width: 3; }
.pro-note { display: flex; gap: 14px; margin-top: 28px; background: var(--bg-tint); border: 1px solid #cfe6ec; border-radius: 16px; padding: 18px 20px; font-size: .95rem; line-height: 1.6; }
.pro-note .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--teal); }
.pro-note p { margin: 0; }
.pro-note strong { color: var(--ink); }
.prose .glance a:not(.btn) { color: #fff; text-decoration: none; }
.glance-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: baseline; }
.glance-steps .glance-num { margin: 0; font-size: 1.35rem; }
.prose .glance a:not(.btn):hover strong { color: var(--cyan); }
.plain-list { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 10px; font-size: 1rem; line-height: 1.65; }
.plain-list li::marker { color: var(--teal); }
.plain-list strong, .fix-list--lead strong { color: var(--ink); }
.fix-list--lead { margin-top: 16px; gap: 12px; font-size: 1rem; }
.milestones { margin: 26px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-soft); }
.milestones figcaption { display: grid; gap: 2px; font-size: .85rem; color: var(--muted); }
.milestones figcaption strong { font-size: 1.02rem; color: var(--ink); }
.order-steps--5 { grid-template-columns: repeat(5, 1fr); margin-top: 14px; }
.order-steps--5 li { position: relative; text-align: center; display: grid; justify-items: center; }
.order-steps--5 li:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 25px; width: 8px; height: 2px; background: var(--cyan); }
.term-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.term-chips li { font-size: .82rem; font-weight: 700; padding: 6px 13px; border-radius: 999px; background: var(--chip); color: var(--teal-dark); }
.checklist-actions { margin-top: 14px !important; }
@media (max-width: 640px) {
  .order-steps--5 { grid-template-columns: repeat(3, 1fr); }
  .order-steps--5 li:nth-child(3)::after { display: none; }
  .pro-note { padding: 16px; }
}

/* ---------- Agency comparison ---------- */
.prose .disclosure { margin-top: 0; }
.prose section > h2 + .lead { margin-top: 16px !important; }
.stat-strip { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-strip li { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; font-size: .86rem; line-height: 1.45; color: var(--text); box-shadow: var(--shadow-soft); }
.stat-strip strong { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.stat-strip em { font-style: normal; color: var(--muted); }
.glance > p { color: #c7d6dd; margin-top: 10px !important; }
.glance-steps p { margin: 0; }
.hero-figure-legend--3 { gap: 28px; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.filter-label { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-right: 4px; }
.filter-label .icon { width: 15px; height: 15px; }
.filter-chip { border: 1.5px solid #cfe2e8; background: #fff; color: var(--ink); font: inherit; font-size: .84rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s, color .15s; }
.filter-chip:hover { border-color: var(--cyan); }
.filter-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-chip[aria-pressed="true"]::before { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg) translateY(-1px); }
.filter-chip:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.filter-clear[hidden] { display: none; }
.compare-table { min-width: 720px; }
.compare-table td:last-child { min-width: 150px; }
.compare-table tbody td a { color: var(--ink) !important; text-decoration: none !important; }
.compare-table tbody td a:hover strong { color: var(--teal-dark); }
.data-table tr.is-ours { background: #f1fafc; }
.data-table tr.is-ours > th:first-child { box-shadow: inset 3px 0 0 var(--cyan); }
.compare-table .yes, .compare-table .no { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.compare-table .yes { background: #e3f6ec; color: #17804a; }
.compare-table .no { background: #f1f4f5; color: var(--muted); }
.compare-empty td { text-align: center !important; color: var(--muted); padding: 22px !important; }

.agencies { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 20px; }
.agency { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; box-shadow: var(--shadow-soft); scroll-margin-top: calc(var(--header-h) + 16px); }
.agency--ours { border: 2px solid var(--cyan); background: linear-gradient(180deg, #eef9fb, #fff 180px); }
.agency:target { box-shadow: 0 0 0 3px var(--cyan), var(--shadow-soft); }
.agency-head { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; }
.agency-rank { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.agency--ours .agency-rank { background: var(--orange); color: var(--navy); }
.prose .agency h3 { margin: 0; font-size: 1.4rem; line-height: 1.2; }
.agency-loc { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); }
.agency-loc .icon { width: 15px; height: 15px; color: var(--teal); }
.agency-ours-tag { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: var(--cyan); padding: 3px 8px; border-radius: 999px; margin-left: 4px; }
.agency-tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.agency-tags li { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--teal-dark); }
.agency-facts { margin: 18px 0 0; display: grid; gap: 14px; }
.agency-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.agency-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); padding-top: 4px; line-height: 1.4; }
.agency-facts dd { margin: 0; font-size: .97rem; line-height: 1.65; }
.agency-facts .fix-list { margin: 0; font-size: .95rem; }
.agency-facts .fix-list strong { color: var(--ink); }
.agency-best, .agency-ask { margin: 16px 0 0 !important; border-radius: 12px; padding: 14px 18px; font-size: .95rem; line-height: 1.6; }
.agency-best { background: var(--bg-soft); border-left: 4px solid var(--cyan); }
.agency-ask { margin-top: 10px !important; background: var(--note); border-left: 4px solid var(--orange); color: #4a3b1d; }
.agency-best strong, .agency-ask strong { color: var(--ink); }

.price-sum { margin: 20px 0 0; background: var(--navy); color: #c7d6dd; border-radius: 16px; padding: 18px 20px; }
.price-sum figcaption { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.price-sum ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.price-sum li { display: grid; gap: 2px; position: relative; font-size: .78rem; }
.price-sum li strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
.price-sum li:not(:last-child) strong::after { content: "+"; margin-left: 14px; font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; color: var(--cyan); }
.price-sum li:nth-last-child(2) strong::after { content: "="; }
.price-sum-total strong { color: var(--orange) !important; }
.price-sum p { margin: 12px 0 0; font-size: .88rem; line-height: 1.55; }
.prose .price-sum a:not(.btn) { color: var(--cyan); }
.prose .price-sum a:not(.btn):hover { color: #fff; }

.budget-input { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; margin: 4px 0 18px; }
.budget-input label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.budget-input output { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--ink); }
.budget-input input { grid-column: 1 / -1; width: 100%; margin: 10px 0 0; accent-color: var(--orange); height: 28px; cursor: pointer; }
.price-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-bars li { display: grid; grid-template-columns: 170px 1fr 70px; align-items: center; gap: 12px; font-size: .88rem; transition: opacity .25s; }
.price-bars li.is-out { opacity: .38; }
.pb-name { color: var(--ink); font-weight: 600; line-height: 1.3; }
.price-bars li.is-ours .pb-name { font-weight: 800; }
.pb-track { height: 14px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.pb-track i { display: block; height: 100%; width: var(--w); background: var(--cyan); border-radius: 999px; transition: background .25s; }
.price-bars li.is-ours .pb-track i { background: var(--orange); }
.price-bars li.is-out .pb-track i { background: #b9cfd6; }
.pb-val { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.budget-fit { margin: 16px 0 0 !important; font-size: .95rem; font-weight: 600; color: var(--ink); }

.prose h3.tiers-title { margin-top: 40px; font-size: 1.3rem; }
.tiers { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; font-size: .9rem; line-height: 1.55; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tier p { margin: 8px 0 0; }
.tier-range { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.tier-range small { font-family: var(--font-body); font-weight: 600; font-size: .75rem; color: var(--muted); margin-left: 2px; }
.tier.is-on { border-color: var(--orange); box-shadow: 0 12px 30px -16px rgba(242, 162, 39, .7); transform: translateY(-2px); }
.tier.is-on::before { content: "Your budget"; position: absolute; top: -10px; left: 14px; background: var(--orange); color: var(--navy); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }

.tab-list--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: auto; background: none; padding: 0; border-radius: 0; overflow: visible; }
.tab-list--grid button { white-space: normal; text-align: left; line-height: 1.3; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .84rem; min-height: 64px; }
.tab-list--grid button:not([aria-selected="true"]):hover { background: var(--bg-soft); border-color: var(--cyan); }
.tab-list--grid button[aria-selected="true"] { border-color: var(--navy); }
.tab-list--grid button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.pick-panel { margin-top: 14px; background: var(--navy); color: #c7d6dd; border-radius: 16px; padding: 18px 20px; }
.pick-panel p { margin: 0; font-size: .95rem; }
.pick-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prose .pick-list a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .15s, border-color .15s; }
.prose .pick-list a:not(.btn)::after { content: "→"; color: var(--cyan); }
.prose .pick-list a:not(.btn):hover { background: rgba(34, 194, 214, .16); border-color: var(--cyan); color: #fff; }
.a-end { margin-top: 40px !important; }
.a-end .small-note { margin-top: 0 !important; }

@media (prefers-reduced-motion: no-preference) {
  .pick-panel:not([hidden]) { animation: pick-in .3s ease-out; }
}
@keyframes pick-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 960px) {
  .tab-list--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip li { grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
  .stat-strip strong { font-size: 1.7rem; }
  .agency { padding: 20px 16px; border-radius: 16px; }
  .agency-rank { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
  .prose .agency h3 { font-size: 1.2rem; }
  .agency-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .agency-best, .agency-ask { padding: 12px 14px; }
  .price-bars li { grid-template-columns: 1fr 64px; gap: 4px 10px; }
  .pb-name { grid-column: 1 / -1; }
  .tiers { grid-template-columns: 1fr; gap: 16px; }
  .tab-list--grid button { min-height: 0; padding: 10px 12px; font-size: .8rem; }
  .filter-chip { font-size: .8rem; padding: 6px 12px; }
}

/* ---------- Google Business Profile guide ---------- */
.hero-figure-of { font-size: .4em; color: #9fb7c2; letter-spacing: 0; }
.key--review { background: var(--orange-dark); }
.source-cards--3 { grid-template-columns: repeat(3, 1fr); }
.prose code { font-size: .86em; background: var(--bg-soft); color: var(--ink); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.checklist-groups--detail label > span { display: grid; gap: 4px; }
.checklist-groups--detail small { font-size: .88rem; line-height: 1.55; color: var(--text); }
.checklist-groups--detail label:has(input:checked) small { color: var(--muted); }
.season .tab-list--grid button { min-height: 0; }
.season .tab-list--grid button small { display: block; margin-top: 4px; font-weight: 500; font-size: .76rem; color: var(--muted); }
.season .tab-list--grid button[aria-selected="true"] small { color: #9fd9e3; }
.season .tab-list--grid button.is-now::after { content: "Now"; display: inline-block; margin-top: 8px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--orange); color: var(--navy); padding: 2px 8px; border-radius: 999px; }
.pick-panel strong { color: #fff; }
.pick-panel .fix-list { margin-top: 12px; }
.utm-tool { margin-top: 28px; }
.utm-tool .tool-head h3 { font-size: 1.2rem; }
.utm-inputs { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.utm-inputs .field input { width: 100%; }
.utm-result { margin-top: 16px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-soft); }
.utm-result output { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; line-height: 1.5; color: var(--ink); word-break: break-all; }
.utm-result .share-btn { flex: none; }
@media (max-width: 640px) {
  .source-cards--3, .utm-inputs { grid-template-columns: 1fr; }
  .utm-result { flex-direction: column; align-items: stretch; }
  .utm-result .share-btn { justify-content: center; }
}

/* ---------- Blog index ---------- */
.nav-list a[aria-current="page"] { color: var(--cyan); }
.blog-hero { padding-bottom: 150px; }
.blog-hero-inner { position: relative; max-width: 820px; }
.blog-hero h1 { margin-top: 6px; }
.blog-list { position: relative; z-index: 2; margin-top: -96px; padding-bottom: 96px; }
.post-feature { display: grid; grid-template-columns: 1fr 1.15fr; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-soft); transition: box-shadow .25s, transform .25s; }
.post-feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-feature-visual { position: relative; overflow: hidden; background: var(--navy); color: #c7d6dd; padding: 36px; display: grid; align-content: center; gap: 10px; text-decoration: none; min-height: 320px; }
.post-feature-visual .hero-waves { opacity: .6; }
.post-feature-visual > span { position: relative; }
.pfv-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.4rem, 6vw, 4.6rem); color: #fff; line-height: 1; letter-spacing: -0.03em; }
.pfv-cap { max-width: 300px; font-size: .95rem; }
.pfv-dots { display: flex; gap: 8px; margin-top: 10px; }
.pfv-dots i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.pfv-dots i.on { background: var(--cyan); }
.pfv-meta { font-size: .78rem; color: #9fb7c2; margin-top: 6px; }
.pfv-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pfv-steps i { font-style: normal; font-size: .74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.pfv-steps i:first-child { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.post-feature-body { padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tag { font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--navy); color: #fff; }
.post-tag--soft { background: var(--chip); color: var(--teal-dark); }
.post-feature h3 { font-family: var(--font-head); font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.post-feature h3 a { text-decoration: none; color: var(--ink); background-image: linear-gradient(var(--cyan), var(--cyan)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; }
.post-feature:hover h3 a { background-size: 100% 2px; }
.post-feature-body > p { font-size: 1rem; line-height: 1.65; }
.post-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--muted); }
.post-meta li { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { width: 15px; height: 15px; color: var(--teal); }
.post-feature-body .btn { margin-top: 6px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.post-card h3 { font-size: 1.1rem; line-height: 1.3; }
.post-card h3 a { text-decoration: none; color: var(--ink); }
.post-card h3 a:hover { color: var(--teal-dark); }
.post-card > p { font-size: .94rem; line-height: 1.6; }
.post-card .post-meta { margin-top: auto; }
.blog-cta { margin-top: 48px; grid-template-columns: 1fr auto; align-items: center; }
.blog-cta .btn { justify-self: end; }
@media (max-width: 960px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature-visual { min-height: 0; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .blog-cta { grid-template-columns: 1fr; }
  .blog-cta .btn { justify-self: start; }
}
@media (max-width: 640px) {
  .post-feature { border-radius: 18px; }
  .post-feature-visual, .post-feature-body { padding: 24px 20px; }
  .post-feature-body .btn { width: 100%; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-list { margin-top: -64px; padding-bottom: 72px; }
  .blog-hero { padding-bottom: 110px; }
}

/* ---------- Winter SEO article ---------- */
.glance-takeaways p { margin: 0; }
.glance-takeaways .glance-num { font-size: 1.45rem; }
#fig-search .filter-bar { margin-top: 14px; }
#fig-search .chart-legend--below { margin: 14px 0 4px; }
.tool-inputs--2 { grid-template-columns: 1fr 1fr; }
.start-verdict { margin: 0 !important; font-size: 1rem; line-height: 1.55; color: var(--ink); font-weight: 600; }
.month-strip { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 150px; }
.month-strip li { display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; text-align: center; font-size: .7rem; font-weight: 600; color: var(--muted); }
.month-strip .ms-track { display: flex; align-items: flex-end; }
.month-strip i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--chart-accent); transition: height .4s cubic-bezier(.2, .7, .2, 1), background .2s; }
.month-strip .is-setup i { background: var(--orange-dark); }
.start-tool .key--met { background: var(--chart-accent); }
.month-strip .is-start span { color: var(--ink); font-weight: 800; }
.month-strip .is-peak span { color: var(--teal-dark); }

/* ---------- Marketing mistakes article ---------- */
#fig-reviews .chart-legend--below { margin: 14px 0 4px; }
.chart .ref-dash { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.day-steps { margin-top: 14px; }
.day-steps li::before { display: none; }
.day-steps li:last-child { grid-column: span 2; }
.vet-key { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; vertical-align: -4px; }
.vet-key .icon { width: 12px; height: 12px; stroke-width: 2.8; }
.vet-key--good { background: #e3f6ec; color: #17804a; }
.vet-key--bad { background: #fdf0e1; color: #b8650a; }
.vet-table tbody td:last-child { color: #8a4b08; }

/* ---------- Reviews and rankings study ---------- */
#fig-bands .chart-legend--below, #fig-rating .chart-legend--below, #fig-location .chart-legend--below { margin: 14px 0 4px; }
.chart .line-in { stroke: var(--chart-accent); }
.chart .line-out { stroke: #a9bcc4; }
.chart .hover-guide { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .5; }
.hbar-ref { position: absolute; top: -5px; bottom: -5px; border-left: 1.5px dashed var(--ink); opacity: .55; }
.key--ref { width: 0; height: 14px; border-radius: 0; border-left: 1.5px dashed var(--ink); opacity: .55; }
.check-inline { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.45; cursor: pointer; }
.check-inline input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); cursor: pointer; }

/* ---------- Sticky booking button: never over the reading column ---------- */
.toc-call { width: 100%; justify-content: center; margin-top: 10px; min-height: 46px; padding: 10px 16px; font-size: .9rem; }
/* Floating pill only where it fits in the right margin; the sidebar button covers the rest */
@media (min-width: 1101px) and (max-width: 1659px) {
  .article-page .sticky-cta { display: none; }
}
/* Tablets and narrow desktops: a bottom bar the page scrolls clear of */
@media (min-width: 601px) and (max-width: 1100px) {
  .article-page .sticky-cta { left: 0; right: 0; bottom: 0; justify-content: center; gap: 12px; padding: 10px 24px; background: rgba(5, 42, 60, .97); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .5); }
  .article-page .sticky-cta .btn { display: inline-flex; min-height: 44px; padding: 10px 22px; font-size: .92rem; }
  .article-page .sticky-cta .btn--call { box-shadow: none; }
  body.article-page { padding-bottom: 68px; }
}
@media (min-width: 601px) and (max-width: 1759px) {
  .blog-page .sticky-cta { left: 0; right: 0; bottom: 0; justify-content: center; gap: 12px; padding: 10px 24px; background: rgba(5, 42, 60, .97); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .5); }
  .blog-page .sticky-cta .btn { display: inline-flex; min-height: 44px; padding: 10px 22px; font-size: .92rem; }
  .blog-page .sticky-cta .btn--call { box-shadow: none; }
  body.blog-page { padding-bottom: 68px; }
}

@keyframes bump { 40% { transform: scale(1.08); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .a-layout { grid-template-columns: minmax(0, var(--prose)); gap: 0; }
  .toc { position: static; max-height: none; overflow: visible; margin-bottom: 8px; }
  .toc-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: #fff; }
  .toc-box summary { cursor: pointer; margin: 0; }
  .toc-box summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--teal); margin-left: 10px; }
  .toc-box[open] summary::after { content: "−"; }
  .toc-box[open] summary { margin-bottom: 12px; }
  .toc-count { margin-left: auto; }
  .toc-cta, .toc-call { display: none; }
}

@media (max-width: 960px) {
  .a-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .tool-inputs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .a-hero { padding: calc(var(--header-h) + 28px) 0 84px; }
  .a-dek { font-size: 1rem; }
  .hero-figure { padding: 22px; }
  .a-layout { padding-bottom: 72px; }
  .prose { font-size: 1rem; line-height: 1.7; }
  .prose section { margin-top: 56px; }
  .prose section > h3 { margin-top: 40px; font-size: 1.2rem; }
  .lead { font-size: 1.08rem; }
  .glance { padding: 22px 18px; border-radius: 16px; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
  .glance-grid { grid-template-columns: 1fr; }
  .bar-def { grid-template-columns: 1fr; padding: 16px; }
  .bar-def-label { justify-self: start; }
  .chart-card { padding: 16px 14px; border-radius: 14px; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
  .pack-grid { grid-template-columns: repeat(10, 1fr); gap: 5px; }
  .meters { padding: 18px 16px; }
  .meter-row { grid-template-columns: 1fr 48px; gap: 6px 12px; }
  .meter-label { grid-column: 1 / -1; }
  .tool { padding: 22px 16px; border-radius: 18px; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
  .tool-inputs { gap: 12px; }
  .tool-inputs--2 { grid-template-columns: 1fr; }
  .month-strip { gap: 2px; height: 120px; }
  .month-strip li { font-size: .6rem; }
  .tool-result { padding: 18px 16px; }
  .tool-stats { grid-template-columns: 1fr 1fr; }
  .tool-stat--dark { grid-column: 1 / -1; }
  .tool-result .btn { width: 100%; }
  .reason { padding: 20px 16px; }
  .phase { grid-template-columns: 1fr; gap: 8px; padding-left: 30px; }
  .phase-when { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; }
  .checklist-card { grid-template-columns: 1fr; padding: 20px 14px; gap: 16px; }
  .checklist-score { position: sticky; top: var(--header-h); z-index: 5; background: #fff; grid-template-columns: auto 1fr auto; text-align: left; align-items: center; gap: 12px; padding: 10px 4px; margin: -10px -4px 0; border-bottom: 1px solid var(--line); }
  .ring { width: 56px; height: 56px; grid-row: 1; }
  .ring-text { display: none; }
  .checklist-score p { margin: 0; font-size: .84rem; }
  .checklist-score p::before { content: attr(data-score) " "; font-weight: 800; color: var(--ink); }
  .a-cta { padding: 26px 20px; border-radius: 18px; }
  .a-cta .btn { width: 100%; }
  .method-list div { grid-template-columns: 1fr; gap: 2px; }
  .data-table th, .data-table td { padding: 9px 10px; }
  .tab-list button { padding: 8px 14px; font-size: .8rem; }
}

@media print {
  .site-header, .read-progress, .toc, .sticky-cta, .a-cta, .tool, .share, .site-footer { display: none !important; }
  .a-hero { padding: 0; background: none; color: #000; }
  .a-hero h1 { color: #000; }
  .chart-table { display: block; }
}
