/* CTBRE — one small design system: Manhattan luxury, in daylight.
   Token plan (second pass, owner review October 22, 2026: light, airy, consumer-first):
   - Surfaces: paper #F8F8F6, white panels, hairline rules #E2E2DE. No dark bands.
   - Ink #14181D for text and the one filled action; muted #646B73 for labels.
   - One accent, patina #1D5C4F (Manhattan copper roofs): links, rising figures, focus, the sale series.
     Bronze #9A6B2F appears only as the asking-price series in charts.
   - Bodoni Moda for display and figures, Hanken Grotesk for text and data labels.
   - The Manhattan plate stays a dark object on the light page: the one rich visual.
   - One filled primary action per view; the header repeats it as an outline. Small radii. */
@font-face { font-family: 'Bodoni Moda'; src: url('/assets/fonts/bodoni-moda.woff2') format('woff2-variations'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-grotesk.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F8F8F6; --panel: #FFFFFF; --stone: #EFEFEC; --rule: #E2E2DE; --rule-strong: #C9CAC5;
  --ink: #14181D; --ink-2: #3E454D; --muted: #646B73;
  --patina: #1D5C4F; --patina-ink: #FFFFFF; --patina-soft: #E4EEEA;
  --brass: #1D5C4F;
  --primary: #14181D; --primary-ink: #FFFFFF; --primary-hover: #2C343D;
  --plate: #0E1822; --plate-land: #172435; --plate-line: #2A3B52; --plate-hood: #2B7A68; --plate-hood-hi: #5FC1A6; --plate-text: #E8ECEF;
  --series-sale: #1D7A64; --series-ask: #9A6B2F;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --text: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 80px; --s9: 120px;
  --radius: 6px; --radius-sm: 4px;
  --frame: 1320px; --gutter: clamp(16px, 4vw, 48px);
  --shadow: 0 1px 2px rgb(20 24 29 / .04), 0 12px 32px -16px rgb(20 24 29 / .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0F161E; --panel: #151E28; --stone: #1B2531; --rule: #283442; --rule-strong: #3A4757;
  --ink: #ECEEEA; --ink-2: #C3CAD2; --muted: #98A3AF;
  --patina: #5FC1A6; --patina-ink: #06231C; --patina-soft: #17352F; --brass: #5FC1A6;
  --primary: #ECEEEA; --primary-ink: #0F161E; --primary-hover: #FFFFFF;
  --plate: #0A1118; --series-sale: #4FB89C; --series-ask: #C9934A; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --paper: #0F161E; --panel: #151E28; --stone: #1B2531; --rule: #283442; --rule-strong: #3A4757;
  --ink: #ECEEEA; --ink-2: #C3CAD2; --muted: #98A3AF;
  --patina: #5FC1A6; --patina-ink: #06231C; --patina-soft: #17352F; --brass: #5FC1A6;
  --primary: #ECEEEA; --primary-ink: #0F161E; --primary-hover: #FFFFFF;
  --plate: #0A1118; --series-sale: #4FB89C; --series-ask: #C9934A; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); font-feature-settings: 'ss01'; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--patina); border-radius: 3px; }
.num, td, .stat b { font-variant-numeric: tabular-nums lining-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--frame)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 20; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type scale: 17px text, display steps on a 1.333 ratio. Bodoni wants room: light weight, tight leading, large sizes. */
h1, h2, h3 { font-family: var(--display); font-weight: 450; letter-spacing: -0.012em; line-height: 1.06; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.022em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.2vw, 46px); }
h3 { font-size: 24px; line-height: 1.18; }
p { margin: 0; max-width: 68ch; text-wrap: pretty; }
/* Anchors and form errors land below the sticky header. */
html { scroll-padding-top: 88px; }
a[href^="tel:"] { white-space: nowrap; }
.lede { font-size: clamp(18px, 1.45vw, 21px); color: var(--ink-2); line-height: 1.55; }
.small { font-size: 14px; color: var(--muted); }

/* Header: light, translucent, compact; repeats the primary action as an outline */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--rule); view-transition-name: header; }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); height: 68px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand b { font: 500 23px/1 var(--display); letter-spacing: 0.08em; }
.brand span { font-size: 13.5px; color: var(--muted); letter-spacing: 0.01em; padding-left: 12px; border-left: 1px solid var(--rule); }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: var(--s5); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; color: var(--ink-2); }
.nav a[aria-current="page"], .nav a:hover { border-color: var(--ink); color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid var(--rule-strong); background: var(--panel); color: var(--ink); font: 600 15px/1 var(--text); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out; white-space: nowrap; }
.button:hover { border-color: var(--ink); color: var(--ink); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.button[disabled] { opacity: .55; cursor: progress; }
.site-header .button { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
/* The header repeats the primary action quietly, so each page's own primary button stays the one filled action. */
.site-header .cta { background: transparent; border-color: var(--ink); color: var(--ink); }
.site-header .cta:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.phone { font-size: 15px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.phone:hover { color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 40px; display: grid; place-items: center; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--radius-sm); font-weight: 600; font-size: 14.5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-sheet { position: absolute; right: 0; top: 52px; width: min(86vw, 320px); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s3); display: grid; box-shadow: var(--shadow); }
.menu-sheet a { padding: 12px; text-decoration: none; border-radius: var(--radius-sm); font-weight: 500; }
.menu-sheet a:hover { background: var(--stone); color: var(--ink); }
.menu-sheet a.button { margin-top: var(--s2); }
@media (max-width: 1100px) { .site-header .phone { display: none; } }
@media (max-width: 900px) { .nav, .site-header .cta { display: none; } .menu { display: block; } .brand span { display: none; } }

/* Heroes: who it is for, one action, live proof; the map plate beside it. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: var(--s8); padding-block: var(--s7) var(--s8); align-items: start; }
.hero-copy { display: grid; gap: var(--s5); align-content: start; }
.hero-copy .lede { max-width: 58ch; }
.hero-copy h1 { max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.asof { font-size: 14px; color: var(--muted); }
.asof a { color: inherit; }
/* Proof: four live figures under the action, derived from the same data as every page. */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--s3) 0 0; border-top: 1px solid var(--ink); }
.proof > div { display: grid; gap: 4px; align-content: start; padding: var(--s4) var(--s4) var(--s2) 0; }
.proof > div + div { padding-left: var(--s4); border-left: 1px solid var(--rule); }
.proof dt { font-size: 13.5px; color: var(--muted); order: 2; }
.proof dd { margin: 0; order: 1; font: 450 clamp(30px, 2.8vw, 42px)/1.05 var(--display); letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.proof dd + dd { order: 3; font: 400 13px/1.4 var(--text); color: var(--muted); letter-spacing: 0; }
.hero .scroll-x { margin-top: var(--s5); }

/* The plate — the one bold element */
.plate { position: sticky; top: 92px; background: var(--plate); color: var(--plate-text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px 16px; view-transition-name: plate; }
.plate svg { width: 100%; height: auto; max-height: calc(100vh - 220px); margin-inline: auto; overflow: visible; }
.plate .land { fill: var(--plate-land); stroke: var(--plate-line); stroke-width: 1; }
.plate .outline { fill: none; stroke: #8FA3BC; stroke-width: 1.2; opacity: .55; }
.plate .hood { fill: var(--plate-hood); stroke: #0F1B2A; stroke-width: 1.2; transition: fill .2s ease-out; cursor: pointer; }
.plate a:focus-visible { outline: none; }
.plate a:focus-visible .hood, .plate .hood.is-hi, .plate a:hover .hood { fill: var(--plate-hood-hi); }
.plate .hood.is-current { fill: var(--plate-hood-hi); }
.plate .hood.is-dim { fill: #24384F; }
/* 3D city: the canvas fills the plate and fades in over the drawn map, which keeps the
   plate's size and stays in the page for keyboard and screen-reader users. */
.plate.is-3d { overflow: hidden; }
.city-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; opacity: 0; transition: opacity .9s ease-out; touch-action: pan-y; }
.plate.is-ready .city-canvas { opacity: 1; }
.plate.is-3d svg { transition: opacity .6s ease-out; }
.plate.is-ready svg { opacity: 0; pointer-events: none; }
.plate.is-3d .plate-caption { position: relative; z-index: 1; margin-inline: -20px; margin-bottom: -16px; padding: 28px 20px 16px; background: linear-gradient(to top, rgb(10 17 24 / .94) 55%, rgb(10 17 24 / 0)); }
@media (prefers-reduced-motion: reduce) { .city-canvas, .plate.is-3d svg { transition: none; } }
.plate-caption { display: flex; justify-content: space-between; gap: var(--s3); font-size: 13px; color: #A9B6C6; margin-top: var(--s3); min-height: 38px; }
.plate-caption b { color: #fff; font-weight: 500; font: 500 17px/1.3 var(--display); display: block; }
@media (prefers-reduced-motion: no-preference) {
  .plate.is-intro .outline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.3,.1,.2,1) .1s forwards; }
  .plate.is-intro .hood { opacity: 0; animation: settle .5s ease-out forwards; animation-delay: calc(1.1s + var(--i) * 70ms); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }

/* Market index table */
.index { width: 100%; border-collapse: collapse; font-size: 15px; }
.index caption { text-align: left; padding-bottom: var(--s3); color: var(--muted); font-size: 14px; }
.index th { text-align: right; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.index th:first-child, .index td:first-child { text-align: left; padding-left: 0; }
.index td { text-align: right; padding: 11px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.index td:first-child a { font: 500 17px/1.2 var(--display); text-decoration: none; }
.index td:first-child a:hover { color: var(--brass); }
.index tbody tr { transition: background-color .15s ease-out; }
.index tbody tr:hover, .index tbody tr.is-hi { background: var(--patina-soft); }
.index .up { color: var(--patina); } .index .down { color: var(--brass); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-sm); background: var(--stone); color: var(--ink-2); }
.tag.sellers { background: var(--patina-soft); color: var(--patina); }
.tag.buyers { background: color-mix(in srgb, var(--brass) 14%, transparent); color: var(--brass); }
/* A clipped table fades at the edge it continues past (site.js sets the classes). */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
:is(.scroll-x, .prose table).more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
:is(.scroll-x, .prose table).more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
:is(.scroll-x, .prose table).more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

/* Sections */
.section { padding-block: var(--s8); border-top: 1px solid var(--rule); }
.hero + .section, .hood-hero + .section, .section:first-child { border-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: end; margin-bottom: var(--s7); }
.section-head p { color: var(--ink-2); }

/* Situations: one row per situation, three columns */
.situations { display: grid; }
.situation { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--s6); padding-block: var(--s5); border-top: 1px solid var(--rule); align-items: start; }
.situation:last-child { border-bottom: 1px solid var(--rule); }
.situation h3 a { text-decoration: none; }
.situation p { color: var(--ink-2); }
.situation .fig { font-size: 14px; color: var(--muted); }
.situation .fig b { display: block; font: 450 34px/1.1 var(--display); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.situation h3 a:hover { color: var(--brass); }

/* Neighborhood page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: var(--s5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; }
.crumbs li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.crumbs li:not(:last-child)::after { content: '/'; margin-inline: 6px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.hood-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: var(--s8); padding-block: var(--s5) var(--s8); }
.hood-hero .plate { top: 92px; }
.hood-hero h1 { font-size: clamp(44px, 5.6vw, 84px); }
.hood-hero h1 { margin-bottom: var(--s4); }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-top: var(--s6); }
.stat { padding: var(--s4) var(--s3) var(--s4) 0; display: grid; gap: 2px; align-content: start; }
.stat + .stat { padding-left: var(--s3); border-left: 1px solid var(--rule); }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font: 450 clamp(26px, 2.4vw, 36px)/1.1 var(--display); }
.stat small { font-size: 13px; color: var(--muted); }
.read { margin-top: var(--s5); font-size: 18px; max-width: 70ch; }
.read strong { font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); }
.panel-title { font: 600 16px/1.3 var(--text); margin-bottom: var(--s3); }
.sales { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sales th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule); }
.sales td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--rule); }
.sales td:last-child, .sales th:last-child { text-align: right; padding-right: 0; }

/* Chart */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--rule); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font: 12px var(--text); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.sale { stroke: var(--series-sale); } .chart .line.ask { stroke: var(--series-ask); }
.chart .end { stroke: var(--paper); stroke-width: 2; }
.chart .end.sale { fill: var(--series-sale); } .chart .end.ask { fill: var(--series-ask); }
.chart .label { font: 600 12.5px var(--text); fill: var(--ink); }
.chart .cross { stroke: var(--ink); stroke-width: 1; opacity: 0; }
.chart.is-hover .cross { opacity: .35; }
.legend { display: flex; gap: var(--s4); font-size: 13.5px; color: var(--ink-2); margin-bottom: var(--s2); }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; box-shadow: 0 10px 24px -14px rgb(15 27 42 / .4); opacity: 0; transform: translate(-50%, -110%); transition: opacity .12s ease-out; white-space: nowrap; }
.chart.is-hover .tip { opacity: 1; }
.tip b { display: block; margin-bottom: 2px; }
details.table-view { margin-top: var(--s3); font-size: 14px; }
details.table-view summary { cursor: pointer; color: var(--muted); }

/* Pillar rows on the neighborhood page */
.pillars { display: grid; }
.pillar { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--s6); padding-block: var(--s5); border-top: 1px solid var(--rule); }
.pillar h3 { font-size: 24px; }
.pillar .links { display: grid; gap: var(--s2); font-size: 15px; align-content: start; }
.pillar .links a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.pillar .links a:hover { border-color: var(--patina); }

/* Questions */
.faq { display: grid; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) 40px var(--s4) 0; font: 500 20px/1.3 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding-bottom: var(--s5); color: var(--ink-2); display: grid; gap: var(--s2); }
.faq .answer a { font-size: 15px; font-weight: 600; color: var(--brass); }
.qgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--s7); }

/* Journal lists */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s6); }
.post { display: grid; gap: var(--s2); align-content: start; padding-block: var(--s5); border-top: 1px solid var(--rule); }
.post h3 { font-size: 22px; }
.post h3 a { text-decoration: none; }
.post p { font-size: 15px; color: var(--ink-2); }
.meta { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.filters a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--rule); }
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Article */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s8); padding-block: var(--s5) var(--s8); }
.article header { display: grid; gap: var(--s4); margin-bottom: var(--s6); }
.article h1 { font-size: clamp(36px, 4.4vw, 58px); max-width: 20ch; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14.5px; color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 600; }
.answer-box { border-left: 2px solid var(--patina); padding: var(--s2) 0 var(--s2) var(--s5); font-size: 19px; line-height: 1.55; }
.prose { font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(26px, 2.4vw, 32px); margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; max-width: 66ch; }
.prose li + li { margin-top: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose .scroll-x > table { display: table; overflow: visible; }
.prose th, .prose td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.prose th { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.prose blockquote { margin: 0; padding-left: var(--s5); border-left: 2px solid var(--rule); color: var(--ink-2); }
/* The next step inside long pages, where the side panel has dropped to the bottom. */
.inline-cta { display: none; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); flex-wrap: wrap; border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s4) var(--s5); background: var(--panel); margin-block: var(--s6); }
.inline-cta p { margin: 0; font-weight: 600; }
.inline-cta.always { display: flex; }
.aside { display: grid; gap: var(--s5); align-content: start; position: sticky; top: 88px; }
.aside .card { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s5); background: var(--panel); display: grid; gap: var(--s3); }
.aside dl { display: grid; grid-template-columns: 1fr auto; gap: 8px var(--s3); margin: 0; font-size: 14.5px; }
.aside dt { color: var(--muted); } .aside dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); margin-top: var(--s7); padding-top: var(--s5); display: grid; gap: var(--s2); }

/* The firm's own listings */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s6); }
.listings:has(> :only-child) { grid-template-columns: minmax(0, 560px); }
.listing { display: grid; gap: var(--s3); align-content: start; }
.listing img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); background: var(--stone); }
.listing h3 { font-size: 24px; }
.listing b { font: 500 22px/1.2 var(--display); }
.listing a { font-weight: 600; color: var(--brass); font-size: 15px; }
@media (max-width: 860px) { .listings { grid-template-columns: minmax(0, 1fr); } }

/* Sold by the firm: real photographs from its StreetEasy record, one row. */
.sold-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); list-style: none; padding: 0; margin: 0; }
.sold-row li { min-width: 0; }
.sold-card { display: grid; gap: var(--s2); text-decoration: none; }
.sold-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--stone); transition: filter .3s ease-out; }
.sold-card:hover img { filter: brightness(1.04) contrast(1.03); }
.sold-card .meta { margin-top: var(--s2); }
.sold-card h3 { font-size: 22px; }
.sold-card:hover h3 { color: var(--brass); }
.sold-card p { font-size: 15px; color: var(--ink-2); }
.sold-card p b { font: 450 20px/1.2 var(--display); color: var(--ink); margin-right: 6px; font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 1080px) { .sold-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .sold-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s4); padding-bottom: var(--s2); -webkit-overflow-scrolling: touch; }
  .sold-row li { scroll-snap-align: start; }
}

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 600; }
.field > :is(input, select, textarea) { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--text); color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 46px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--patina) 22%, transparent); }
.field .hint { font-weight: 400; color: var(--muted); justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: 15px; min-height: 1.4em; }
.form-status.error { color: #B3261E; }
.hp { position: absolute; left: -10000px; }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--panel); padding-block: var(--s8) var(--s6); font-size: 14.5px; color: var(--ink-2); }
.site-footer .firm { font: 450 24px/1.2 var(--display); color: var(--ink); }
.site-footer a:hover { color: var(--ink); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--s6); }
.site-footer h2 { font: 600 14px/1.4 var(--text); color: var(--ink); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.legal { max-width: none; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: var(--s4); margin-top: var(--s5); }

/* ---------- The lead pillar: start the estimate anywhere ---------- */
.value-start { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: var(--s3); align-items: end; max-width: 720px; padding: var(--s4); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.value-start .button { min-height: 46px; }
.home-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.home-hero h1 { font-size: clamp(42px, 5vw, 76px); max-width: 14ch; }
.hero-figure { margin: 0; }
.steps-row { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.steps-row li { counter-increment: step; display: grid; gap: var(--s2); align-content: start; padding-top: var(--s4); border-top: 1px solid var(--ink); }
.steps-row li::before { content: counter(step); font: 450 36px/1 var(--display); color: var(--patina); }
.steps-row b { font: 500 22px/1.2 var(--display); }
.steps-row p { color: var(--ink-2); font-size: 16px; }

/* Phone: the primary action stays one thumb away; the right end is left for Ask Todd. */
.action-bar { display: none; }
@media (max-width: 900px) {
  :root { --todd-dock-bottom: calc(10px + env(safe-area-inset-bottom)); }
  /* Focused fields and anchors settle above the docked assistant and the action bar. */
  html { scroll-padding-bottom: 96px; }
  body:has(.action-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .action-bar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 9; padding: 12px 158px calc(12px + env(safe-area-inset-bottom)) 16px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--rule); }
  .action-bar .button { flex: 1; min-height: 48px; }
}

/* ---------- /value/ ---------- */
.value { padding-block: var(--s4) var(--s8); }
.value-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s7); align-items: end; margin-bottom: var(--s6); }
.value-head h1 { font-size: clamp(38px, 4.4vw, 64px); max-width: 16ch; }
.value-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s6); box-shadow: var(--shadow); min-width: 0; }
.value-inputs { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s3); margin-bottom: var(--s6); }
.estimate .panel-title { color: var(--muted); font-weight: 500; }
.range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .18em; font: 450 clamp(48px, 6.2vw, 92px)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; margin: var(--s2) 0 var(--s4); max-width: none; }
.range .range-sep { color: var(--muted); font-weight: 400; }
.range-note { color: var(--ink-2); }
.is-thin .range { color: var(--muted); }
.dist { margin: var(--s6) 0 var(--s4); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--rule-strong); }
.bars i { flex: 1; height: 2%; background: var(--stone); border-radius: 2px 2px 0 0; transition: background-color .3s; }
.bars i.in { background: var(--patina); }
.dist-axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.net .field input[type=range] { width: 100%; accent-color: var(--patina); margin-top: var(--s2); }
.price-out { font: 450 30px/1.1 var(--display); color: var(--ink); justify-self: end; font-variant-numeric: lining-nums tabular-nums; }
.net .field { grid-template-columns: 1fr auto; align-items: center; }
.sheet { margin: var(--s5) 0 var(--s4); display: grid; }
.sheet > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.sheet dt { color: var(--ink-2); } .sheet dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; display: flex; gap: var(--s2); align-items: center; justify-content: flex-end; }
.sheet .total { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: var(--s2); padding-top: var(--s4); }
.sheet .total dt { font-weight: 600; color: var(--ink); }
.sheet .total dd { font: 450 34px/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.pct-in, .usd-in { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); }
.sheet input { width: 7.5em; font: 400 15px/1.2 var(--text); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 6px 8px; text-align: right; }
.pct-in input { width: 4.2em; }
.unlock { margin-top: var(--s5); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); }
.unlock h2 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: var(--s3); }
.unlock-copy p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s2); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--patina); border-bottom: 2px solid var(--patina); transform: rotate(-45deg); }
.report { grid-column: 1 / -1; display: grid; gap: var(--s4); }
.report:focus { outline: none; }
[hidden] { display: none !important; }
.report-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); }
.is-unlocked .unlock-copy { display: none; }
.is-unlocked .unlock { grid-template-columns: minmax(0, 1fr); }

/* ---------- /market/ ---------- */
.dash { padding-block: var(--s4) var(--s8); display: grid; gap: var(--s5); }
.dash-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: end; margin-bottom: var(--s3); }
.dash-head h1 { font-size: clamp(38px, 4.4vw, 64px); }
.dash-head .lede { margin-top: var(--s3); }
.fresh { font-size: 14px; color: var(--muted); display: block; white-space: nowrap; }
.fresh::before { content: ''; display: inline-block; vertical-align: 1px; margin-right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--patina); box-shadow: 0 0 0 4px var(--patina-soft); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tile { display: grid; gap: 4px; align-content: start; padding: var(--s5); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tile:nth-child(4n) { border-right: 0; } .tile:nth-last-child(-n+4) { border-bottom: 0; }
.tile-k { font-size: 14px; color: var(--ink-2); }
.tile-v { font: 450 clamp(30px, 2.8vw, 42px)/1.05 var(--display); letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.tile-d { font-size: 13.5px; color: var(--muted); } .tile-d .up { color: var(--patina); font-weight: 600; } .tile-d .down { color: var(--series-ask); font-weight: 600; }
.tile-s { font-size: 12.5px; color: var(--muted); margin-top: var(--s2); }
.dash-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: start; }
.map-row { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
.map-row .plate { top: 92px; }
.feed-list { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.feed-list li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.feed-date { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.feed-addr { display: grid; min-width: 0; } .feed-addr .small { font-size: 13px; }
.feed-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sources-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sources-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); }
.sources-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sources-table td:first-child { display: grid; gap: 2px; min-width: 12em; }
.sources-table .warn { display: block; color: #9B2C1F; font-size: 13px; }
.lead-panel p { color: var(--ink-2); margin-bottom: var(--s4); }

@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(4n) { border-right: 1px solid var(--rule); } .tile:nth-child(2n) { border-right: 0; }
  .tile:nth-last-child(-n+4) { border-bottom: 1px solid var(--rule); } .tile:nth-last-child(-n+2) { border-bottom: 0; }
  .dash-row, .value-grid, .unlock, .report-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .home-hero .hero-figure { display: none; }
  .value-start { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .value-start .button { grid-column: 1 / -1; }
  .steps-row { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .value-head, .dash-head { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .map-row { grid-template-columns: minmax(0, 1fr); }
  .map-row .plate { display: none; }
  .panel { padding: var(--s5) var(--s4); }
}
@media (max-width: 600px) {
  .value-inputs { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s2); margin-bottom: var(--s4); }
  .value-head h1 { font-size: 34px; }
  .value-head .lede { font-size: 16.5px; }
  .value { padding-top: var(--s2); }
  .value-head { margin-bottom: var(--s4); }
  .range { font-size: clamp(34px, 10.5vw, 44px); }
  .sheet .total dd { font-size: 28px; }
  .tile { padding: var(--s4); }
  .feed-list { max-height: none; }
  .feed-list li { grid-template-columns: 3.6em minmax(0, 1fr) auto; }
  .fresh { white-space: normal; }
}

/* ---------- Forms: inline validation and success ---------- */
.field-error { grid-column: 1 / -1; font-size: 13px; font-weight: 500; color: #A1281C; }
.field [aria-invalid="true"] { border-color: #A1281C; box-shadow: 0 0 0 3px rgb(161 40 28 / .12); }
.button.is-busy { position: relative; color: transparent !important; }
.button.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--primary-ink) var(--primary-ink) transparent transparent; animation: spin .7s linear infinite; }
.button:not(.primary).is-busy::after { border-color: var(--ink) var(--ink) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s4); align-items: center; padding: var(--s5); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--patina-soft); outline: none; }
.form-done svg { width: 44px; height: 44px; fill: none; stroke: var(--patina); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-done circle { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw-done .6s var(--ease) forwards; }
.form-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw-done .4s var(--ease) .45s forwards; }
.form-done p { font-weight: 500; color: var(--ink); }
@keyframes draw-done { to { stroke-dashoffset: 0; } }
.sent-note:empty { display: none; }
.sent-note { padding: var(--s3) var(--s4); background: var(--patina-soft); border-radius: var(--radius-sm); color: var(--patina); font-weight: 600; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--stone); border-radius: var(--radius); }
.seg button, .seg label { appearance: none; border: 0; background: transparent; font: 600 14px/1 var(--text); color: var(--ink-2); padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgb(20 24 29 / .12); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--patina); }
.alerts-form.compact { grid-template-columns: minmax(0, 1fr) auto; align-items: end; max-width: 640px; }
.alerts-form.compact .form-status { grid-column: 1 / -1; }

/* ---------- Dashboard controls and the live chart ---------- */
.dash-controls { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: end; justify-content: space-between; }
.dash-controls .field { min-width: min(320px, 100%); }
.live-chart .legend { flex-wrap: wrap; }
.live-chart .legend i { width: 14px; height: 3px; }
.sw-sale { background: var(--series-sale); } .sw-ask { background: var(--series-ask); } .sw-city { background: #9AA3AB; }
.chart .line.city { stroke: #9AA3AB; stroke-dasharray: none; }
.chart .end.city, .chart .dot.city { fill: #9AA3AB; }
.chart .dot { stroke: var(--panel); stroke-width: 2; } .chart .dot.sale { fill: var(--series-sale); } .chart .dot.ask { fill: var(--series-ask); }
.chart .scrub { stroke: var(--ink); stroke-width: 1; opacity: 0; transition: opacity .15s; }
.live-chart.is-scrub .scrub { opacity: .35; }
.live-chart .tip { top: 34px; transform: translateX(-50%); display: grid; gap: 3px; }
.live-chart.is-scrub .tip { opacity: 1; }
.live-chart .tip span { display: flex; gap: 6px; align-items: center; } .live-chart .tip i { width: 10px; height: 3px; display: inline-block; }
.chart .hit { cursor: crosshair; } .chart .hit:focus { outline: none; }
.chart .hit:focus-visible { stroke: var(--patina); stroke-width: 2; }
.index tbody tr.is-selected { background: var(--patina-soft); box-shadow: inset 3px 0 0 var(--patina); }
.map-row .index tbody tr { cursor: pointer; }
@media (max-width: 600px) {
  .dash-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
  .seg { width: 100%; } .seg button, .seg label { flex: 1; justify-content: center; padding-inline: 8px; }
  .alerts-form.compact { grid-template-columns: minmax(0, 1fr); }
}

/* View transitions between pages: the plate and header stay put while content cross-fades. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 160ms ease-out both fade-out; }
  ::view-transition-new(root) { animation: 220ms ease-out both fade-in; }
  ::view-transition-group(plate) { animation-duration: 380ms; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
}
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } @view-transition { navigation: none; } }

/* Responsive */
@media (max-width: 1080px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .article { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-cta { display: flex; }
}
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .hero, .hood-hero { grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-top: var(--s5); padding-bottom: var(--s7); }
  .home-hero { padding-top: var(--s6); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .hero .plate, .hood-hero .plate { position: relative; top: 0; order: 2; }
  .hood-hero .plate { display: none; }
  .hero .plate svg { max-height: 520px; }
  .section { padding-block: var(--s7); }
  .section-head, .split, .situation, .pillar, .contact, .qgroups { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .posts { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid var(--rule); padding-left: var(--s3); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .aside { grid-template-columns: minmax(0, 1fr); }
  .index .hide-sm { display: none; }
  .faq summary { font-size: 18px; }
  .hero-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .home-hero h1 { font-size: 42px; }
  .home-hero .hero-actions { grid-template-columns: minmax(0, 1fr); }
  .proof dd { font-size: 30px; }
  .section { padding-block: var(--s7); }
  .hero-actions .button { min-width: 0; }
  .hero-actions .small { grid-column: 1 / -1; }
  /* The chart scales down with the screen, so its text is sized up to stay readable; the
     end labels drop their names (the legend and colors carry them). */
  .chart .axis text { font-size: 21px; }
  .chart .label { font-size: 21px; }
  .chart .label .nm { display: none; }
  .chart .axis .yr { transform: translateY(8px); }
  .sales td:first-child { white-space: nowrap; }
}
