/* Optimal Case · Meridian (the house direction), revised for reading speed on 2026-10-14.
   Ink, paper and brass, but the premium is in clarity: one sturdy sans (Inter) for every working screen,
   heading, label and number; Bodoni only for the wordmark and the home page's one headline. No italics,
   no small uppercase labels: body 17px, labels 14–16px, figures in tabular lining numerals.
   Tokens on :root; the dark theme redefines them (system setting, or the toggle's data-theme). Directions
   on /directions are token sets too (.dir-provenance, .dir-keystone). No inline styles anywhere. */

@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-normal-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-italic-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
/* Figures: Bodoni's digits with Inter's percent sign (Bodoni's is an ornamental ⁰/o that misreads in data). */
@font-face { font-family: "Bodoni Figures"; src: url("/fonts/bodoni-moda-normal-400-700.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-0024, U+0026-FFFF; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-normal-300-700.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-normal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-normal-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-normal-500-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f6f3ed; --bg2: #ece6da; --card: #fffdf9; --fg: #0f1012; --fg2: #24252a; --muted: #4a4741; --hair: rgba(17, 18, 20, .18); --hair2: rgba(17, 18, 20, .09);
  --accent: #6f5224; --accent-soft: rgba(156, 122, 68, .14); --on-accent: #f8f5ef; --gain: #2f6b4f; --loss: #9a3b32; --focus: #8a6a36;
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 48px -28px rgba(30, 24, 14, .28), 0 2px 6px -2px rgba(30, 24, 14, .08);
  --s0: #8a6326; --s1: #111214; --s2: #3f5f73; --s3: #a0583a;
  --sky0: #b9a483; --sky1: #dccdb2; --sky2: #ece3d2; --sun: rgba(255, 236, 196, .55); --mass: #24211e; --mass2: #34302b; --pline: rgba(243, 239, 231, .30); --pfine: rgba(243, 239, 231, .16);
  --window: #3d3832; --glow: #e3b56b; --ground: #2b2824; --grain: rgba(0, 0, 0, .10);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; --figures: "Bodoni Figures", "Inter", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 76rem; --r: 2px; --r2: 14px; --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13110d; --bg2: #201c17; --card: #27221c; --fg: #f4efe6; --fg2: #e2dccf; --muted: #bdb6a9; --hair: rgba(236, 230, 218, .22); --hair2: rgba(236, 230, 218, .11);
    --accent: #d9b77c; --accent-soft: rgba(217, 183, 124, .15); --on-accent: #0c0d0f; --gain: #86b79d; --loss: #d98a7e; --focus: #c9a66b;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.8), 0 2px 8px -2px rgba(0,0,0,.5);
    --s0: #d9b77c; --s1: #f4efe6; --s2: #9db8c9; --s3: #d9a184;
    --sky0: #0b0f19; --sky1: #1a1f2b; --sky2: #3b2f25; --sun: rgba(227, 168, 92, .22); --mass: #070809; --mass2: #0f1013; --pline: rgba(236, 230, 218, .20); --pfine: rgba(236, 230, 218, .10);
    --window: #181a1e; --glow: #e8b768; --ground: #08090a; --grain: rgba(255, 255, 255, .035);
    color-scheme: dark;
  }
}
:root[data-theme="dark"], .dark-band, .dir-keystone {
  --bg: #13110d; --bg2: #201c17; --card: #27221c; --fg: #f4efe6; --fg2: #e2dccf; --muted: #bdb6a9; --hair: rgba(236, 230, 218, .22); --hair2: rgba(236, 230, 218, .11);
  --accent: #d9b77c; --accent-soft: rgba(217, 183, 124, .15); --on-accent: #0c0d0f; --gain: #86b79d; --loss: #d98a7e; --focus: #c9a66b;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.8), 0 2px 8px -2px rgba(0,0,0,.5);
  --s0: #d9b77c; --s1: #f4efe6; --s2: #9db8c9; --s3: #d9a184;
  --sky0: #0b0f19; --sky1: #1a1f2b; --sky2: #3b2f25; --sun: rgba(227, 168, 92, .22); --mass: #070809; --mass2: #0f1013; --pline: rgba(236, 230, 218, .20); --pfine: rgba(236, 230, 218, .10);
  --window: #181a1e; --glow: #e8b768; --ground: #08090a; --grain: rgba(255, 255, 255, .035);
  color-scheme: dark;
}
:root[data-theme="dark"] .dark-band { --bg: #15171a; --card: #1b1d21; }
.dark-band { background: var(--bg); color: var(--fg); }

/* ---- Base ----------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--sans); font-feature-settings: "cv11"; transition: background-color .3s var(--ease), color .3s var(--ease); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: currentColor; /* ink, not brass: the accent is kept for answers (7356bb36) */ text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-soft); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow-wide { max-width: 50rem; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 200; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab, .fig-value, .metrics dd, table, output, input[type=number] { font-variant-numeric: tabular-nums lining-nums; }
.serif { font-size: 1.06rem; line-height: 1.6; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
/* Headings: Inter throughout. The home page's first headline is the one serif moment (.display.serif). */
.display { font: 700 clamp(2rem, 4.4vw, 3.1rem)/1.12 var(--sans); letter-spacing: -.022em; margin: 0 0 16px; max-width: 22em; }
.display.small { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.display.serif { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.12; letter-spacing: -.02em; font-variation-settings: "opsz" 40; }
.display em, .h1 em, .h2 em { font-style: normal; color: inherit; }
.h1 { font: 700 clamp(1.6rem, 2.8vw, 2.2rem)/1.18 var(--sans); letter-spacing: -.018em; margin: 0 0 14px; }
.h2 { font: 700 clamp(1.35rem, 2.2vw, 1.7rem)/1.22 var(--sans); letter-spacing: -.012em; margin: 0 0 12px; }
.h3 { font: 650 1.25rem/1.3 var(--sans); display: block; }
.h4 { font: 650 1.06rem/1.35 var(--sans); letter-spacing: 0; display: block; }
.lede { font-size: 1.125rem; line-height: 1.6; color: var(--fg2); max-width: 36em; margin: 0 0 16px; }
.muted { color: var(--muted); } .small { font-size: .94rem; } .fine { font-size: .94rem; color: var(--muted); line-height: 1.55; max-width: 48em; }
/* Section labels: plain words in sentence case, 14px and heavier, never tiny tracked capitals. */
.eyebrow { font: 650 .9rem/1.4 var(--sans); color: var(--accent); margin: 0 0 10px; display: block; }
.kicker { font: 600 .9rem/1.4 var(--sans); color: var(--muted); margin: 0 0 6px; display: block; }
.gain { color: var(--gain); } .loss { color: var(--loss); }
.row { display: flex; gap: 12px; align-items: flex-start; } .between { justify-content: space-between; } .wrap-row { flex-wrap: wrap; align-items: center; }
p { margin: 0 0 14px; }

/* ---- Buttons and controls ------------------------------------------------------------------- */
.button, button.button, .lead button { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font: 600 1rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.button:hover, .lead button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button:active { transform: translateY(1px); }
.button.ghost { background: transparent; color: var(--fg); border-color: var(--hair); }
.button.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.button.small { min-height: 44px; padding: 0 18px; font-size: .94rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; margin-top: 8px; color: var(--fg); }
.link-arrow::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.link-arrow:hover::after { width: 44px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; background: transparent; color: var(--fg); font: 500 .94rem var(--sans); cursor: pointer; transition: border-color .3s, color .3s, background-color .3s; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.badge { font: 650 .9rem/1.2 var(--sans); color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.tag { display: inline-block; font: 500 .875rem/1.3 var(--sans); color: var(--fg2); border: 1px solid var(--hair); border-radius: 999px; padding: 3px 9px; margin: 0 6px 6px 0; }
.tags { display: block; margin-top: 8px; }

.slider { display: grid; gap: 4px; font-size: 1rem; color: var(--fg); }
.slider > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; }
.slider output { font: 650 1rem var(--sans); color: var(--fg); font-variant-numeric: tabular-nums; }
/* Every slider has a box beside it for typing an exact value. */
.slider .exact { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card); padding: 0 8px; font-weight: 600; flex: none; }
.slider .exact:focus-within { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.slider .exact input { width: 5.6em; border: 0; background: transparent; color: var(--fg); font: 650 1rem var(--sans); padding: 7px 0; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.slider .exact input:focus { outline: none; }
.slider .exact input::-webkit-inner-spin-button, .slider .exact input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.slider .exact.wide input { width: 7.2em; }
.slider .exact span { color: var(--muted); font-weight: 500; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(var(--fg), var(--fg)) 0 / var(--fill, 50%) 100% no-repeat, var(--hair); }
input[type=range]::-moz-range-track { height: 3px; background: var(--hair); }
input[type=range]::-moz-range-progress { height: 3px; background: var(--fg); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--bg); border: 1px solid var(--fg); box-shadow: 0 0 0 4px var(--bg), 0 2px 8px rgba(0,0,0,.18); transition: transform .25s var(--ease); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--fg); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); border-color: var(--accent); }
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 18px 32px; margin: 18px 0; }
.sliders.one { grid-template-columns: minmax(0, 1fr); }
.switch { display: flex; gap: 12px; align-items: center; font-size: 1rem; cursor: pointer; color: var(--fg2); }
.switch input { -webkit-appearance: none; appearance: none; width: 38px; height: 22px; border-radius: 999px; border: 1px solid var(--hair); background: var(--bg2); position: relative; flex: none; cursor: pointer; transition: background-color .3s var(--ease); margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); transition: transform .35s var(--ease); }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(16px); background: var(--on-accent); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0 0 16px; }
.seg legend { font-size: 1rem; font-weight: 500; color: var(--fg); margin-bottom: 8px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px; font-size: .97rem; cursor: pointer; transition: all .3s var(--ease); }
.seg label:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-size: 1rem; font-weight: 500; color: var(--fg); margin-bottom: 16px; }
.field .hint { font-weight: 400; font-size: .9rem; color: var(--muted); }
.field select, .field input, .capture input, .lead input[type=email], .lead input[type=text], .lead textarea { font: 400 1rem var(--sans); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 10px 0; width: 100%; transition: border-color .3s; }
.field select { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.field select option { background: var(--card); color: var(--fg); }
.field input:focus, .capture input:focus, .lead input:focus, .lead textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.money-in { display: flex; align-items: center; gap: 6px; font: 650 1.3rem var(--sans); border: 1px solid var(--hair); border-radius: 10px; padding: 0 12px; background: var(--card); }
.money-in:focus-within { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.money-in input { font: 650 1.3rem var(--sans); font-variant-numeric: tabular-nums; border: 0 !important; padding: 10px 0 !important; background: transparent !important; outline: none !important; }

/* ---- Header and footer ---------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--hair2); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand-name { font: 600 1.2rem/1 var(--serif); letter-spacing: .005em; white-space: nowrap; font-variation-settings: "opsz" 18; }
.mono { color: var(--fg); flex: none; } .mono-path { stroke: var(--accent); } .mono-dot { fill: var(--accent); }
.primary { display: flex; gap: 16px; margin-left: auto; }
.primary a { font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--fg2); position: relative; padding: 6px 0; white-space: nowrap; }
.primary a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary a:hover::after, .primary a[aria-current="page"]::after { transform: scaleX(1); }
.primary a[aria-current="page"] { color: var(--fg); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), border-color .3s; }
.theme-toggle:hover { border-color: var(--accent); transform: rotate(180deg); }
/* The menu: on a phone and tablet the tools move into it; on a desktop it only holds the secondary pages. */
.menu { position: relative; }
.menu-button { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; font: 600 1rem var(--sans); cursor: pointer; color: var(--fg); background: var(--card); }
.menu-button::-webkit-details-marker { display: none; }
.menu[open] .menu-button { border-color: var(--fg); }
.menu-icon { display: grid; gap: 3px; width: 16px; } .menu-icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.menu[open] .menu-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); } .menu[open] .menu-icon i:nth-child(2) { opacity: 0; } .menu[open] .menu-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(22rem, calc(100vw - 32px)); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow: auto; overscroll-behavior: contain; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r2); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; z-index: 60; }
.menu-panel nav { display: grid; }
.menu-panel nav a { display: flex; align-items: center; min-height: 46px; padding: 0 10px; border-radius: 10px; font-size: 1.06rem; font-weight: 500; text-decoration: none; color: var(--fg); }
.menu-panel nav a:hover, .menu-panel nav a[aria-current="page"] { background: var(--accent-soft); color: var(--fg); }
.menu-h { font: 650 .9rem var(--sans); color: var(--muted); margin: 6px 10px 4px; }
.menu-account { display: grid; gap: 8px; border-top: 1px solid var(--hair2); padding-top: 12px; } .menu-account .button { justify-content: center; }
.menu-theme { min-height: 44px; border: 0; background: transparent; color: var(--fg2); font: 500 .97rem var(--sans); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
@media (min-width: 1081px) { .menu-panel nav[aria-label="Tools"], .menu-account { display: none; } .menu-panel nav[aria-label="More"] .menu-h { display: none; } .menu-button .menu-label { display: none; } }
/* Below 1240px the bar wraps only when larger text no longer fits one row, so the menu button never leaves the screen. */
@media (max-width: 1240px) { .primary { display: none; } .bar-end { margin-left: auto; } .bar { flex-wrap: wrap; row-gap: 4px; } }
@media (max-width: 1080px) { .theme-toggle { display: none; } }
@media (max-width: 560px) { .bar-cta, .bar-member { display: none; } .bar { gap: 12px; } }
@media (max-width: 360px) { .brand-name { display: none; } }

.site-footer { border-top: 1px solid var(--hair); margin-top: 0; padding: 64px 0 28px; background: var(--bg2); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--muted); font-size: .94rem; max-width: 30em; margin-top: 18px; }
.foot-nav { display: grid; gap: 4px; align-content: start; font-size: .97rem; } .foot-nav a { padding: 4px 0; }
.foot-nav a { text-decoration: none; color: var(--fg2); overflow-wrap: anywhere; }
.foot-h { font: 650 .94rem var(--sans); color: var(--fg); margin-bottom: 4px; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 0; background: linear-gradient(var(--hair2), var(--hair2)) content-box top / 100% 1px no-repeat; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8rem, calc(50% - 10px))), 1fr)); gap: 32px 20px; } .foot-brand { grid-column: 1 / -1; } }

/* ---- Availability, next steps ---------------------------------------------------------------- */
.avail { display: inline-flex; align-items: center; gap: 8px; font: 600 .9rem/1.3 var(--sans); color: var(--fg2); border: 1px solid var(--hair); border-radius: 999px; padding: 4px 12px 4px 10px; background: var(--card); vertical-align: middle; }
.avail-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.avail-now { color: var(--gain); border-color: color-mix(in srgb, var(--gain) 45%, transparent); } .avail-now .avail-dot { background: var(--gain); }
.avail-account { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); } .avail-account .avail-dot { background: var(--accent); }
.avail-sample { color: var(--fg2); } .avail-sample .avail-dot { background: transparent; border: 2px solid var(--fg2); }
.avail-soon { color: var(--muted); border-style: dashed; } .avail-soon .avail-dot { background: transparent; border: 2px dashed var(--muted); }
.next { border-top: 1px solid var(--hair); padding-top: 18px; margin-top: 8px; }
.next ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.next li { display: grid; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--hair2); }
.next a { font-weight: 600; text-decoration-thickness: 2px; }
.notice { border: 1px solid var(--hair); border-left: 4px solid var(--fg2); border-radius: 10px; padding: 12px 16px; background: var(--card); margin: 0 0 18px; max-width: 45rem; }
.notice p { margin: 0; } .notice p + p { margin-top: 6px; }
.notice.sample { border-left-color: var(--accent); }

/* ---- Sections -------------------------------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 48px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.band { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--hair2); }
.band.tight { padding: clamp(36px, 5vw, 64px) 0; border-top: 0; }
.paper-band { background: var(--bg2); }
.section-head { max-width: 46rem; margin-bottom: 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.page-head { padding: clamp(24px, 4vw, 48px) 0 12px; }
.crumbs { font-size: .97rem; margin: 0 0 8px; color: var(--muted); } .crumbs a { color: var(--fg2); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; color: var(--fg2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1px; background: var(--accent); }

.card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r2); padding: clamp(20px, 2vw, 24px); position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card.raised { box-shadow: var(--shadow); }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--hair)); color: inherit; }
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .cards.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .cards.two { grid-template-columns: minmax(0, 1fr); } }

/* ---- Figures, verdicts, metrics ------------------------------------------------------------- */
.figs { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r2); overflow: hidden; margin: 18px 0; }
.figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .figs.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .figs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .figs.three, .figs.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.figure { display: grid; gap: 4px; background: var(--card); padding: 16px 18px; align-content: start; }
.fig-label { font: 600 .94rem/1.35 var(--sans); color: var(--fg2); }
.fig-value { white-space: nowrap; font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.15 var(--sans); letter-spacing: -.015em; font-feature-settings: "tnum", "lnum"; }
.figure.big .fig-value { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.fig-value.muted-v { color: var(--fg2); }
.fig-note { font-size: .94rem; color: var(--muted); line-height: 1.45; }
.verdict { display: grid; gap: 4px; padding: 14px 0 6px; border-top: 1px solid var(--hair); margin-top: 14px; }
.verdict-h { font: 700 1.25rem/1.3 var(--sans); color: var(--fg); }
.verdict-c { font-size: .94rem; color: var(--muted); } .verdict-c b { color: var(--fg); font-weight: 650; }
.verdict.big { border: 1px solid var(--hair); border-radius: var(--r2); padding: 16px 18px; margin: 16px 0; background: var(--card); }
.verdict.big .verdict-h { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.verdict-t { font-size: 1.03rem; color: var(--fg2); max-width: 40em; margin: 4px 0; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 18px 0; }
.metrics div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair2); }
.metrics dt { color: var(--fg2); font-size: .94rem; } .metrics dd { margin: 0; font-weight: 650; text-align: right; }
.metrics.compact { grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 12px 0; } .metrics.compact div { padding: 7px 0; font-size: .94rem; }
.facts { display: grid; gap: 0; margin: 14px 0; } .facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair2); font-size: .97rem; } .facts dt { color: var(--muted); } .facts dd { margin: 0; overflow-wrap: anywhere; }
/* Citations are ordinary inline text (since 2026-11-12): a full stop after one stays on its line, and the line keeps
   the paragraph's rhythm. The dot is a small inline mark; .src + .src keeps neighbours apart. */
.src { display: inline; font: 400 .94rem/1.4 var(--sans); color: var(--fg2); text-decoration: none; }
/* Neighbouring citations are separated by the text space and each one's own dot: a margin here would also land
   before punctuation (".src + .src" matches across text), and indent a citation that wraps to a new line. */
.src-dot { display: inline-block; vertical-align: .2em; margin-right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gain); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gain) 18%, transparent); flex: none; }
.src-fresh { color: var(--muted); } .src-fresh.short { white-space: nowrap; }
/* In a definition, a citation takes its own line, so the sentence after it does not start beside it. */
dd > .src { display: block; width: fit-content; margin: 4px 0; }
/* The label and date are one flex item, so a long source wraps as a sentence instead of one word per line. */
.src-text { overflow-wrap: anywhere; }
a.src:hover { color: var(--accent); }
.srcs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; } .srcs.col { flex-direction: column; }

/* ---- Hero card ------------------------------------------------------------------------------ */
.hero-card { padding: 0; overflow: hidden; }
.hero-plate { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--hair); }
.hero-plate svg { width: 100%; height: 100%; }
.hero-card-body { padding: 22px 24px 20px; }
.hero-card .figs { margin: 14px 0 18px; } .hero-card .figure { padding: 12px 14px; } .hero-card .fig-value { font-size: 1.4rem; }

/* ---- Plates (architectural drawings) ------------------------------------------------------- */
.plate { width: 100%; height: 100%; }
.plate .sky0 { stop-color: var(--sky0); } .plate .sky1 { stop-color: var(--sky1); } .plate .sky2 { stop-color: var(--sky2); }
.plate .sun0 { stop-color: var(--sun); } .plate .sun1 { stop-color: var(--sun); stop-opacity: 0; }
.pl-mass { fill: var(--mass); } .pl-mass2 { fill: var(--mass2); } .pl-ground { fill: var(--ground); } .pl-water { fill: var(--mass2); }
.pl-col { fill: var(--mass2); stroke: var(--pline); stroke-width: .6; } .pl-ink { fill: var(--pfine); }
.pl-line { fill: none; stroke: var(--pline); stroke-width: 1; } .pl-fine { fill: none; stroke: var(--pfine); stroke-width: .8; }
.pl-window { fill: var(--window); stroke: var(--pfine); stroke-width: .6; }
.pl-glow { fill: var(--glow); } .pl-glow.g1 { opacity: .45; } .pl-glow.g2 { opacity: .7; } .pl-glow.g3 { opacity: .92; }
.pl-glowline { stroke: var(--glow); stroke-width: 1.2; opacity: .55; }
.pl-roof { fill: var(--mass2); stroke: var(--pline); }
.pl-tex { stroke: none; opacity: 1; }
.pl-hedge { fill: var(--mass2); stroke: var(--pfine); }
.pl-canopy { fill: var(--mass2); opacity: .85; stroke: var(--pfine); }
.pl-lamp { fill: var(--glow); opacity: .9; }
.pl-grain { fill: var(--grain); }

/* ---- Charts ---------------------------------------------------------------------------------- */
/* Each chart leads with its conclusion, names every line with its end value and a distinct dash, and
   offers the numbers as a table. app.js redraws at the real width, so 13px labels stay 13px on a phone. */
.chart { margin: 20px 0 0; }
.chart-lead { font: 600 1.06rem/1.5 var(--sans); margin: 0 0 10px; max-width: 44em; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--hair2); stroke-width: 1; }
.chart .grid text { font: 500 13px var(--sans); fill: var(--fg2); font-variant-numeric: tabular-nums; }
.chart .zero { stroke: var(--fg2); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.chart .s { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: fade .35s var(--ease) both; }
.chart .e { animation: fade .35s .1s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.s0 { stroke: var(--s0); } .s1 { stroke: var(--s1); stroke-dasharray: 9 6; } .s2 { stroke: var(--s2); stroke-dasharray: 2 5; } .s3 { stroke: var(--s3); stroke-dasharray: 14 5 3 5; }
.e0 { fill: var(--s0); } .e1 { fill: var(--s1); } .e2 { fill: var(--s2); } .e3 { fill: var(--s3); }
.axis-title { font-size: .9rem; color: var(--muted); text-align: center; margin: 2px 0 0; }
.legend { display: grid; gap: 6px; margin-top: 12px; font-size: 1rem; color: var(--fg); }
.key { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; } .key b { font-weight: 700; font-variant-numeric: tabular-nums; }
.key i { width: 30px; height: 0; border-top: 3px solid; flex: none; }
.k0 i { border-color: var(--s0); } .k1 i { border-color: var(--s1); border-top-style: dashed; } .k2 i { border-color: var(--s2); border-top-style: dotted; } .k3 i { border-color: var(--s3); border-top-style: dashed; }
.chart-data { margin-top: 12px; } .chart-data summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--fg2); }
.chart-data table { font-size: .94rem; } .chart-data td, .chart-data th { padding: 6px 14px 6px 0; }

/* ---- Home -------------------------------------------------------------------------------------- */
.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(32px, 5vw, 64px); }
.hero-copy { max-width: 46rem; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
@media (max-width: 980px) { .tasks { grid-template-columns: minmax(0, 1fr); } }
.task { display: grid; gap: 10px; align-content: start; padding: 20px; }
.task h2 { font-size: 1.3rem; }
.task .who { font: 650 .94rem var(--sans); color: var(--accent); margin: 0; }
.task p { margin: 0; color: var(--fg2); }
.task form { display: grid; gap: 10px; margin-top: 4px; }
.task .field { margin: 0; }
.task .button { justify-content: center; width: 100%; }
.task .alt { font-size: .97rem; }
.task-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.demo-table td, .demo-table th { padding: 12px 14px 12px 0; font-size: 1rem; }
.demo-table td.strong { font-weight: 700; }
.access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .access { grid-template-columns: minmax(0, 1fr); } }
.access .card { display: grid; gap: 10px; align-content: start; }
.access ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--fg2); }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.link-list a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 12px; text-decoration: none; background: var(--card); height: 100%; }
.link-list a b { font-weight: 650; } .link-list a span { color: var(--muted); font-size: .94rem; }
.link-list a:hover { border-color: var(--accent); }
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 1px solid var(--hair); }
.stages li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 2px 8px; padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--fg2); }
.stages b { font-weight: 650; color: var(--fg); } .stages .num { font-weight: 700; color: var(--accent); grid-row: span 2; }
@media (max-width: 700px) { .stages { grid-template-columns: minmax(0, 1fr); } }
.rank-strip { list-style: none; padding: 0; margin: 20px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r2); overflow: hidden; }
.rank-strip li { background: var(--card); padding: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; }
.rank-strip li > span:nth-child(2) { display: grid; }
.rank-strip .num, .rank-num { font: 700 1.4rem var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .rank-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rank-strip { grid-template-columns: minmax(0, 1fr); } }
.ledger { box-shadow: var(--shadow); }
.memo-verdict { font: 700 clamp(1.4rem, 2.6vw, 1.9rem)/1.2 var(--sans); color: var(--fg); margin: 6px 0 12px; }
.brief article { padding: 16px 0; border-top: 1px solid var(--hair2); }
.brief .h3 { font-size: 1.15rem; margin-bottom: 6px; }
.program { min-height: 0; } .program > span:not(.kicker):not(.link-arrow) { color: var(--fg2); font-size: 1rem; }
.program .link-arrow { margin-top: auto; }
.tier p { color: var(--fg2); font-size: 1rem; margin-top: 10px; }
.join { background: var(--bg2); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .join-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Lead form ------------------------------------------------------------------------------- */
.lead { display: grid; gap: 18px; }
.lead label { display: grid; gap: 4px; font-size: 1rem; font-weight: 500; color: var(--fg); }
.lead .check { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; font-weight: 400; color: var(--fg2); }
.lead .check input { accent-color: var(--accent); margin-top: 3px; }
.lead textarea { resize: vertical; min-height: 84px; }
.lead button { justify-self: start; }
.opt { color: var(--muted); }
.error { color: var(--loss); font-weight: 500; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Property analysis ------------------------------------------------------------------------ */
.check-card { display: grid; gap: 6px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin-top: 12px; }
.check-grid .field { align-content: start; }
.check-row { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.check-form .button { margin-top: 4px; }
@media (max-width: 640px) { .check-grid { grid-template-columns: minmax(0, 1fr); } }
.soon-note { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 16px; }
.sample-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .sample-list { grid-template-columns: minmax(0, 1fr); } }
.sample-card { flex-direction: row !important; align-items: center; gap: 16px !important; padding: 12px; height: 100%; }
.thumb { flex: none; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; display: block; background: var(--mass); }
.thumb svg { width: 100%; height: 100%; }
.sc-body { display: grid; gap: 2px; min-width: 0; }
.sc-figs { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .94rem; color: var(--fg2); } .sc-figs b { font-weight: 700; }
.report-head { padding-bottom: 0; }
.report-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 14px; }
.report-id .display { margin: 0; }
.report-meta { margin: 4px 0 0; color: var(--fg2); font-size: 1rem; }
.report-price { display: grid; text-align: right; } .report-price .fig-value { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
@media (max-width: 640px) { .report-id { grid-template-columns: auto minmax(0, 1fr); } .report-id .thumb { width: 64px; height: 56px; } .report-price { grid-column: 1 / -1; text-align: left; display: flex; gap: 10px; align-items: baseline; } }
.report { padding-top: 12px !important; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "key side" "more side"; gap: 8px clamp(24px, 4vw, 48px); align-items: start; }
.r-key { grid-area: key; } .r-more { grid-area: more; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; } .r-key, .r-side, .r-more { min-width: 0; } .r-more > .h2 { margin: 18px 0 0; } .r-more > .muted { margin: -14px 0 0; }
.r-side { grid-area: side; display: grid; gap: 16px; position: sticky; top: 84px; align-self: start; }
@media (max-width: 960px) { .report-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "key" "side" "more"; } .r-side { position: static; } }
.key-figs { margin: 14px 0 10px; }
.key-line { margin: 0 0 6px; color: var(--fg2); } .key-line b { color: var(--fg); }
.live-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 10px 12px; margin: 10px 0 4px; background: var(--bg2); border-radius: 10px; font-size: .94rem; color: var(--fg2); }
.live-sum b { display: block; font-size: 1.15rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.live-sum b.loss { color: var(--loss); } .live-sum b.gain { color: var(--gain); }
.confidence { margin-top: 8px; } .confidence summary { cursor: pointer; color: var(--fg2); font-size: .97rem; } .confidence summary b { color: var(--fg); } .confidence p { margin: 8px 0 0; font-size: .97rem; color: var(--fg2); }
.side-actions { display: grid; gap: 10px; } .side-actions .button { justify-content: center; }
.lens { display: inline-flex; padding: 4px; border: 1px solid var(--hair); border-radius: 999px; gap: 2px; background: var(--card); }
.lens a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--fg2); transition: all .3s var(--ease); }
.lens a.on { background: var(--fg); color: var(--bg); }
[data-lens="investor"] .lens-owner, [data-lens="owner"] .lens-investor { display: none !important; }
.explained { background: var(--card); }
.explained summary { list-style: none; cursor: pointer; display: block; height: 100%; }
.explained summary::-webkit-details-marker { display: none; }
.explained summary .figure { position: relative; height: 100%; }
.explained .how { font-size: .9rem; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.explained[open] .how { color: var(--fg2); }
.explained > p { padding: 0 18px 16px; margin: 0; }
.scenario { margin: 0; }
.scenario .sliders { margin: 10px 0 12px; gap: 12px; }
.stress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--hair2); }
.ledger-table { border-top: 1px solid var(--hair); }
.ledger-table summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Tables keep a tighter rhythm than body text (1.25, not 1.6): figures read as data. Set explicitly since 2026-11-12,
   when the doctype took pages out of quirks mode, where tables silently ignored the body's line height. */
table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.25; }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hair2); vertical-align: top; }
thead th { font: 650 .9rem/1.3 var(--sans); color: var(--fg2); border-bottom-color: var(--hair); }
tbody th { font-weight: 600; }
td .muted, th .muted { display: block; }
.meter { display: grid; grid-template-columns: 5rem 1fr 3rem; gap: 12px; align-items: center; font-size: .94rem; margin: 6px 0; }
.meter svg { height: 8px; width: 100%; overflow: visible; }
.m-track { fill: var(--hair2); } .m-fill { fill: var(--accent); } .m-dot { fill: var(--accent); }
.heritage { background: transparent; border-style: dashed; }

/* ---- Compare --------------------------------------------------------------------------------- */
.compare-controls { margin-top: 18px; }
.goals { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.goals legend { margin: 0 0 8px; padding: 0; width: 100%; }
.goal { position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px; font-size: .97rem; cursor: pointer; transition: all .35s var(--ease); }
.goal input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.goal:has(input:checked), .goal.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.goal:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.lead-line { font: 500 clamp(1.1rem, 1.8vw, 1.3rem)/1.45 var(--sans); margin: 0 0 18px; max-width: 46em; }
.lead-line b { font-weight: 700; }
.compare-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .compare-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .compare-cards { grid-template-columns: minmax(0, 1fr); } }
.ccard { padding: 16px 18px; will-change: transform; display: grid; gap: 4px; align-content: start; }
.ccard-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; } .ccard-head > span:last-child { display: grid; }
.metrics.one-col { grid-template-columns: 1fr !important; }
.assumptions { margin: 10px 0; } .assumptions summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.ccard:first-child { border-color: color-mix(in srgb, var(--accent) 55%, var(--hair)); box-shadow: var(--shadow); }
.mix { display: grid; gap: 12px; margin-top: 18px; }
.mix-row { display: grid; grid-template-columns: 8rem 1fr 6.5rem; gap: 14px; align-items: center; font-size: .97rem; }
.mix-row svg { width: 100%; height: 12px; }
.mix-before { fill: var(--hair); } .mix-after { fill: var(--accent); }
.mix-row b { font-weight: 650; text-align: right; font-size: .94rem; }

/* ---- Cash to buy ------------------------------------------------------------------------------ */
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
/* Tablets keep two columns (inputs beside the answer) down to 720px: at 820px the answer used to sit ~720px down. */
@media (max-width: 960px) { .closing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; } }
@media (max-width: 720px) { .closing-grid { grid-template-columns: minmax(0, 1fr); } }
.closing-form { display: grid; gap: 14px; } .closing-form .field, .closing-form .seg { margin: 0; }
@media (min-width: 721px) { .closing-form { position: sticky; top: 84px; } }
.figs.one { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.figure.total { background: var(--card); border-left: 4px solid var(--accent); }
.breakdown { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 2px; }
.breakdown li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--hair2); }
.breakdown li svg { grid-column: 1 / -1; width: 100%; height: 8px; }
.breakdown b { font-variant-numeric: tabular-nums; }
.costs .group th, .cmp .group th { font: 700 .97rem var(--sans); color: var(--fg); padding-top: 20px; border-bottom-color: var(--hair); }
.costs tr.seller { color: var(--fg2); }
.costs td.note, td.note { color: var(--fg2); font-size: .94rem; max-width: 30rem; }
/* On a phone, wide tables become one block per row, each value labelled. */
@media (max-width: 760px) {
  .stack-table { min-width: 0 !important; }
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hair); }
  .stack-table th, .stack-table td { display: block; border: 0; padding: 2px 0; max-width: none; }
  .stack-table tr.group { padding-bottom: 0; border: 0; }
  .stack-table td[data-label] { display: flex; justify-content: space-between; gap: 16px; }
  .stack-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 500; }
  .stack-table td.note[data-label] { display: block; } .stack-table td.note[data-label]::before { display: block; }
}

/* ---- Mortgages ------------------------------------------------------------------------------- */
.fin-controls { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 14px 32px; margin-top: 4px; align-items: end; }
.fin-controls .field { margin: 0; }
.fin-controls .profile { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.fin-controls .profile legend { font-size: 1rem; font-weight: 500; color: var(--fg); margin-bottom: 8px; }
@media (max-width: 860px) { .fin-controls { grid-template-columns: minmax(0, 1fr); } }
.offers th[scope=row] b { font-weight: 650; }
.offers tr.ineligible td, .offers tr.ineligible th { color: var(--muted); }
.offers input[type=checkbox], .pin input { accent-color: var(--accent); width: 20px; height: 20px; }
.sample-tag { border-style: dashed; color: var(--fg2); }
.offer-cards { list-style: none; padding: 0; margin: 0 0 16px; display: none; gap: 12px; }
@media (max-width: 860px) { .offer-cards { display: grid; } }
.offer-card { padding: 16px; display: grid; gap: 10px; }
.offer-card.ineligible { border-style: dashed; }
.oc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; } .oc-head > div { display: grid; }
.pin { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; min-height: 44px; cursor: pointer; }
.oc-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; margin: 0; }
.oc-figs div { display: grid; } .oc-figs dt { font-size: .9rem; color: var(--fg2); } .oc-figs dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.oc-figs .oc-total { grid-column: 1 / -1; } .oc-figs .oc-total dd { font-size: 1.5rem; }
.offer-card .tags { margin: 0; } .offer-card details summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.full-table > summary { cursor: pointer; font-weight: 650; padding: 10px 0; }
@media (min-width: 861px) { .full-table > summary { display: none; } }

/* ---- Programmes ------------------------------------------------------------------------------ */
.facts-table th { width: 40%; font-weight: 400; color: var(--fg2); }
.facts-table td b { display: block; font-weight: 500; margin-bottom: 4px; }
/* Phones: label above value, so the value and its source get the full width. */
@media (max-width: 560px) { .facts-table tr { display: grid; padding: 14px 0; border-bottom: 1px solid var(--hair2); } .facts-table th, .facts-table td { padding: 0; border-bottom: 0; } .facts-table th { width: auto; margin-bottom: 4px; color: var(--muted); } .facts-table td .src { margin-top: 6px; } }
.briefing-body { margin: 40px 0; display: grid; gap: 28px; }
.briefing-body h2 { margin-bottom: 8px; }
.caution { border-left: 3px solid color-mix(in srgb, var(--fg) 35%, transparent); padding: 4px 0 4px 20px; margin: 32px 0; color: var(--fg2); }

/* ---- World ----------------------------------------------------------------------------------- */
.globe { width: min(100%, 440px); justify-self: center; }
.globe-disc { fill: var(--bg2); } .globe-rim { fill: none; stroke: var(--hair); }
.globe-grid path { fill: none; stroke: var(--hair); stroke-width: .7; }
.globe-cities .dot { fill: var(--accent); } .globe-cities .pulse { fill: var(--accent); opacity: .18; animation: pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
/* Labels in Inter at 16 units of a 400-unit globe: about 14px on a phone, 17px on a laptop. They sit on the side of
   the dot facing the centre, so none runs off the edge. */
.globe-cities text { font: 400 16px var(--sans); fill: var(--fg2); paint-order: stroke; stroke: var(--bg2); stroke-width: 3px; stroke-linejoin: round; }
@keyframes pulse { 0%, 100% { transform: scale(.6); opacity: .25; } 50% { transform: scale(1.4); opacity: .05; } }

/* ---- App (iPhone) ---------------------------------------------------------------------------- */
.phones { display: flex; justify-content: center; }
.phone { width: 300px; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 11px; background: linear-gradient(145deg, #3a3a3d, #121214 40%, #2a2a2d); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset; flex: none; }
.phone-screen { height: 100%; border-radius: 38px; overflow: hidden; background: #0c0d0f; color: #ece6da; position: relative; font-size: 12px; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 6px; font: 600 12px var(--sans); }
.phone-status .island { width: 90px; height: 26px; border-radius: 20px; background: #000; }
.app { padding: 6px 16px 16px; display: grid; gap: 10px; }
.app-top { display: flex; justify-content: space-between; font-size: 11px; color: #c9a66b; }
.app-live { color: #86b79d; font-size: 10px; }
.app-kicker { font: 500 8.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #9a958b; margin: 4px 0 0; }
.app-title { font: 400 26px/1 var(--serif); margin: 0; }
.app-plan { border: 1px solid rgba(236,230,218,.14); border-radius: 14px; padding: 8px; background: #121316; }
.ap-wall { fill: none; stroke: rgba(236,230,218,.4); stroke-width: 1.2; }
.ap-here { fill: rgba(201,166,107,.14); stroke: #c9a66b; stroke-width: 1; }
.ap-pin { fill: #86b79d; } .ap-pin.warn { fill: #d9a35e; }
.app-readings { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-readings span { border: 1px solid rgba(236,230,218,.12); border-radius: 10px; padding: 6px 8px; font-size: 10px; color: #9a958b; }
.app-readings b { color: #ece6da; font: 500 12px var(--mono); margin-right: 3px; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.app-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(236,230,218,.08); font-size: 11.5px; }
.app-list li span { color: #9a958b; font-size: 10px; }
.app-list li.ok span { color: #86b79d; } .app-list li.warn span { color: #d9a35e; }
.app-voice { display: flex; gap: 8px; align-items: center; font-size: 10.5px; color: #cfc8bb; background: #15171a; border-radius: 12px; padding: 8px 10px; }
.app-voice i { color: #c9a66b; font-style: normal; font-size: 9px; }
.wave { letter-spacing: -1px; color: #c9a66b; }
.app-actions { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; }
.app-btn { text-align: center; padding: 10px 0; border-radius: 999px; border: 1px solid rgba(236,230,218,.16); font-size: 11px; }
.app-btn.primary { background: #c9a66b; color: #0c0d0f; border-color: #c9a66b; font-weight: 600; }
.phone.small { width: 230px; } .phone.small .app-title { font-size: 20px; } .phone.small .phone-screen { font-size: 10px; } .phone.small .app-voice { display: none; }

/* ---- Members' home and memo ---------------------------------------------------------------- */
.prefs { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 22px; align-items: end; }
.prefs > span { display: grid; font-size: .94rem; } .prefs .fine { flex-basis: 100%; }
.member-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .member-grid { grid-template-columns: minmax(0, 1fr); } }
.member .figure { padding: 0; background: transparent; } .member .figure .fig-value { font-size: 2.6rem; }
.stack { display: grid; gap: 16px; }
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.todo li { padding-left: 16px; position: relative; } .todo li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.memo { position: relative; padding-bottom: 64px; }
.memo-mark { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; font: italic 400 clamp(1.4rem, 4vw, 3rem) var(--serif); color: var(--fg); opacity: .045; transform: rotate(-24deg); z-index: 1; white-space: nowrap; }
.memo-head { padding-top: 48px; padding-bottom: 24px; max-width: 54rem; }
.memo-head .row { margin-bottom: 40px; }
.memo-plate { height: clamp(260px, 44vh, 460px); overflow: hidden; }
.memo-body { max-width: 54rem; padding-top: 40px; }
.memo-body h2 { margin: 36px 0 10px; }
.memo-verdict-box { border-top: 1px solid var(--fg); border-bottom: 1px solid var(--hair); padding: 24px 0; }
.memo-metrics { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .memo-metrics { grid-template-columns: 1fr 1fr; } }
.memo-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.memo-cta p { margin: 0; max-width: 32em; }

/* ---- Directions ------------------------------------------------------------------------------ */
.dir-jump { display: flex; gap: 10px; flex-wrap: wrap; }
.dir-jump a { border: 1px solid var(--hair); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-size: .86rem; }
.direction { padding: clamp(56px, 8vw, 104px) 0; background: var(--bg); color: var(--fg); border-top: 1px solid var(--hair); }
.dir-meridian {
  --bg: #f3efe7; --bg2: #ebe5d9; --card: #f8f5ef; --fg: #111214; --fg2: #2c2d31; --muted: #5e5b55; --hair: rgba(17, 18, 20, .13); --hair2: rgba(17, 18, 20, .07);
  --accent: #8a6a36; --accent-soft: rgba(156, 122, 68, .14); --on-accent: #f8f5ef; --gain: #2f6b4f; --loss: #9a3b32;
  --s0: #9c7a44; --s1: #111214; --s2: #3f6f64; --s3: #8a857b;
  --sky0: #b9a483; --sky1: #dccdb2; --sky2: #ece3d2; --sun: rgba(255, 236, 196, .55); --mass: #24211e; --mass2: #34302b; --pline: rgba(243, 239, 231, .30); --pfine: rgba(243, 239, 231, .16);
  --window: #3d3832; --glow: #e3b56b; --ground: #2b2824; --shadow: 0 24px 48px -28px rgba(30, 24, 14, .28), 0 2px 6px -2px rgba(30, 24, 14, .08);
  --dserif: var(--serif); color-scheme: light;
}
.dir-provenance {
  --bg: #f1ece0; --bg2: #e3dccb; --card: #f7f3ea; --fg: #123c38; --fg2: #2a4f4a; --muted: #5d6f68; --hair: rgba(18, 60, 56, .16); --hair2: rgba(18, 60, 56, .08);
  --accent: #3e6e64; --accent-soft: rgba(62, 110, 100, .12); --on-accent: #f7f3ea; --s0: #123c38; --s1: #a4875a; --s2: #5c8a7f; --s3: #8a8a7c;
  --sky0: #9fb3a6; --sky1: #d4dacb; --sky2: #ece8da; --sun: rgba(255, 246, 214, .5); --mass: #173f3a; --mass2: #22504a; --window: #2d5a53; --glow: #e7cf96; --ground: #183c37;
  --dserif: "Cormorant Garamond", Garamond, Georgia, serif;
}
.dir-keystone { --dserif: "Instrument Serif", Georgia, serif; --accent: #cdb891; --s0: #cdb891; }
.direction .dir-name, .direction .dir-specimen, .direction .mini-display, .direction .mini-num { font-family: var(--dserif); }
.dir-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-bottom: 48px; }
.dir-mark { color: var(--fg); }
.dir-name { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 14px; }
.dir-idea { font-size: 1.08rem; color: var(--fg2); max-width: 44em; }
.dir-system { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 28px; margin-bottom: 48px; }
@media (max-width: 1000px) { .dir-system { grid-template-columns: minmax(0, 1fr); } }
.dir-specimen .tab { font-family: var(--figures); }
.dir-specimen { font-size: 4.4rem; line-height: 1; margin: 0 0 6px; }
.dir-specimen .tab { color: var(--accent); }
.dir-specimen-num { font: 500 1rem var(--mono); color: var(--fg2); }
.dir-type ul { padding: 0; list-style: none; font-size: .84rem; color: var(--muted); display: grid; gap: 6px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sw { display: grid; gap: 2px; font-size: .74rem; } .sw i { height: 44px; border-radius: 8px; border: 1px solid var(--hair); } .sw code { font: 400 .68rem var(--mono); color: var(--muted); }
.dir-meridian .sw0 i { background: #111214; } .dir-meridian .sw1 i { background: #f3efe7; } .dir-meridian .sw2 i { background: #e9e2d4; } .dir-meridian .sw3 i { background: #9c7a44; } .dir-meridian .sw4 i { background: #2f6b4f; } .dir-meridian .sw5 i { background: #9a3b32; }
.dir-provenance .sw0 i { background: #123c38; } .dir-provenance .sw1 i { background: #f1ece0; } .dir-provenance .sw2 i { background: #e3dccb; } .dir-provenance .sw3 i { background: #5c8a7f; } .dir-provenance .sw4 i { background: #2f6b4f; } .dir-provenance .sw5 i { background: #8f3f36; }
.dir-keystone .sw0 i { background: #17181b; } .dir-keystone .sw1 i { background: #24262a; } .dir-keystone .sw2 i { background: #cdb891; } .dir-keystone .sw3 i { background: #ece6da; } .dir-keystone .sw4 i { background: #86b79d; } .dir-keystone .sw5 i { background: #d48d80; }
.dir-marks { display: flex; gap: 20px; align-items: center; margin-top: 18px; }
.emboss { padding: 14px; border-radius: 10px; background: var(--bg2); }
.emboss .dir-mark { color: var(--bg2); filter: drop-shadow(1px 1px 0 rgba(255,255,255,.55)) drop-shadow(-1px -1px 0 rgba(0,0,0,.22)); }
.emboss .dir-mark .mono-path { stroke: currentColor; } .emboss .dir-mark .mono-dot { fill: currentColor; }
.mood { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mood figure { margin: 0; } .mood figcaption { font: 400 .68rem var(--mono); color: var(--muted); margin-top: 6px; }
.mood .plate { aspect-ratio: 4 / 3; height: auto; border-radius: 8px; }
.mood-chart { grid-column: 1 / -1; } .mood-chart .chart { margin: 0; } .mood-chart .legend { display: none; }
.screens-k { margin-bottom: 18px; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .screens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .screens { grid-template-columns: minmax(0, 1fr); } }
.mini { margin: 0; } .mini figcaption { font: 400 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.mini-screen { border: 1px solid var(--hair); border-radius: 12px; background: var(--card); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.1; }
.mini-bar { display: flex; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--hair2); } .mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--hair); }
.mini-body { padding: 14px 16px; position: relative; height: calc(100% - 26px); overflow: hidden; }
.mini-eyebrow { font: 500 .55rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.mini-display { font-size: 1.5rem; line-height: 1.05; margin: 0 0 10px; } .mini-display em { color: var(--accent); }
.mini-display.sm { font-size: 1.15rem; margin: 8px 0 4px; }
.mini-btn { display: inline-block; font-size: .62rem; background: var(--fg); color: var(--bg); padding: 5px 10px; border-radius: 999px; }
.mini-hero { position: relative; z-index: 1; max-width: 62%; }
.mini-plate { position: absolute; right: 0; bottom: 0; width: 46%; height: 78%; border-top-left-radius: 10px; }
.mini-plate.short { position: static; width: 100%; height: 70px; border-radius: 6px; }
.mini-num { font-size: 2.1rem; line-height: 1; margin: 6px 0 2px; }
.mini-cap { font-size: .66rem; color: var(--muted); margin: 0 0 10px; }
.mini-rows { display: grid; gap: 0; } .mini-rows span { display: flex; justify-content: space-between; font-size: .66rem; padding: 5px 0; border-bottom: 1px solid var(--hair2); color: var(--fg2); } .mini-rows b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mini-verdict { font-size: .74rem; color: var(--accent); font-style: italic; margin: 0 0 8px; } .mini-verdict span { color: var(--muted); font-style: normal; }
.mini-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .mini-figs span { display: grid; font-size: .86rem; font-variant-numeric: tabular-nums; } .mini-figs i { font: normal 400 .5rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mini .chart { margin: 0; } .mini .legend { display: none; } .mini .chart .grid text { font-size: 9px; }
.mini-rank { list-style: decimal inside; padding: 0; margin: 4px 0 0; font-size: .64rem; } .mini-rank li { display: flex; justify-content: space-between; padding: 2px 0; } .mini-rank li::marker { color: var(--accent); }
.mini-phone { display: flex; justify-content: center; }

/* ---- Motion preferences --------------------------------------------------------------------- */
.reorder { transition: transform .35s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .scenario, .side-actions, .memo-cta, body::before, .share-line, .next, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- Small screens ----------------------------------------------------------------------------- */
.split > *, .join-grid > *, .hero-grid > *, .dossier-grid > *, .closing-grid > *, .member-grid > * { min-width: 0; }
@media (max-width: 560px) {
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .figs.three > :last-child:nth-child(odd), .figs.six > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .facts div { grid-template-columns: 7rem minmax(0, 1fr); }
  .mix-row { grid-template-columns: 6.5rem 1fr 5.2rem; }
}
@media (max-width: 760px) { .offers, .ledger-table table { min-width: 720px; } }

/* ---- Accounts and the rental tracker -------------------------------------------------------- */
.bar-link { font-size: 1rem; font-weight: 600; text-decoration: none; color: var(--fg); white-space: nowrap; padding: 8px 4px; }
.banner { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 16px 20px; border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: var(--r2); background: var(--card); margin: 20px 0; }
.banner p { margin: 0; flex: 1 1 18rem; } .banner.ok { border-left-color: var(--gain); }
.banner form { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-note { font-weight: 400; }
.narrow-form { max-width: 32rem; }
.auth .display { margin-bottom: 8px; }
.auth-switch { font-size: 1.03rem; margin: 0 0 14px; } .auth-switch a { font-weight: 650; }
.auth-form { display: grid; gap: 4px; } .auth-form .button { justify-self: stretch; justify-content: center; margin: 10px 0; } .auth-form .check { display: flex; gap: 10px; font-size: .97rem; color: var(--fg2); margin: 8px 0; }
.auth-form .check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.auth-why { margin-top: 24px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin: 16px 0; } .inline-form .field { margin: 0; flex: 1 1 16rem; }
.field input[type=email], .field input[type=password], .field input[type=text], .field input[type=number], .field input[type=url], .field input[type=date], .field input[type=datetime-local], .field input:not([type]), .field textarea { font: 400 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 12px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.field select { border: 1px solid var(--hair); border-radius: 10px; padding: 11px 12px; background: var(--bg); }
.money-small { display: flex; align-items: center; gap: 6px; } .money-small > span { color: var(--muted); }
.danger { margin-top: 32px; } .danger summary { cursor: pointer; font-weight: 600; color: var(--loss); }
.empty { text-align: left; padding: 24px 0; }

.tracker-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 1000px) { .tracker-grid { grid-template-columns: minmax(0, 1fr); } }
.tracker-side { display: grid; gap: 16px; position: sticky; top: 88px; }
@media (max-width: 1000px) { .tracker-side { position: static; } }
.priorities { padding: 0; } .priorities > details > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 14px 18px; }
.priorities > details > summary::-webkit-details-marker { display: none; }
.priorities > details > summary .muted { text-decoration: underline; text-underline-offset: .2em; }
.priorities > details[open] > summary { border-bottom: 1px solid var(--hair2); }
.priorities > details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.priorities > details > .button { margin-bottom: 16px; }
.prio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; margin-bottom: 12px; }
@media (max-width: 560px) { .prio-grid { grid-template-columns: minmax(0, 1fr); } }
.tracker-main > .priorities { margin-bottom: 16px; }
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pipeline a { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; font-size: .97rem; text-decoration: none; color: var(--fg2); }
.pipeline a.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pipeline b { font-weight: 600; }
.rentals { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rental { padding: 14px 16px; }
.rental.off { border-style: dashed; background: transparent; }
.rental-head { display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; }
.rental-title { display: grid; gap: 2px; min-width: 0; }
.rental-title .h4 { font-size: 1.08rem; }
.rental .rank-num { font-size: 1.5rem; min-width: 1.2em; text-align: center; }
.pick { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: -8px; cursor: pointer; }
.pick input { width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; }
.status-pick select { font: 500 .94rem var(--sans); padding: 8px 10px; border: 1px solid var(--hair); border-radius: 999px; background: var(--bg); color: var(--fg); cursor: pointer; }
.status { font: 500 .9rem var(--sans); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hair); white-space: nowrap; }
.s-signed, .s-approved { border-color: var(--gain); color: var(--gain); } .s-declined, .s-withdrawn { color: var(--muted); }
.rental-figs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0 16px; margin: 10px 0 4px; }
.rental-figs div { display: grid; padding: 4px 0; }
.rental-figs dt { font-size: .9rem; color: var(--fg2); } .rental-figs dd { margin: 0; font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rental-figs .main dd { font-size: 1.3rem; }
.small-figs { grid-template-columns: repeat(3, 1fr); } .small-figs dd { font-size: 1rem; font-weight: 600; }
@media (max-width: 640px) { .rental-head { grid-template-columns: auto auto 1fr; } .status-pick, .rental-head .status { grid-column: 3; justify-self: start; } .small-figs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); } }
.rental-more summary { cursor: pointer; font-weight: 600; color: var(--fg2); min-height: 40px; display: flex; align-items: center; }
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; margin: 8px 0 4px; }
@media (max-width: 640px) { .parts { grid-template-columns: repeat(2, 1fr); } }
.part { display: grid; gap: 4px; font-size: .9rem; color: var(--fg2); } .part b { font-weight: 700; color: var(--fg); }
.part .bar { display: block; } .part .bar svg { width: 100%; height: 6px; }
.pick-hint { margin: 0 0 8px; }
/* The comparison bar: static at the end of the list without JavaScript; with it, it appears once something
   is ticked and stays at the bottom of the screen, clear of the content (the body gains room for it). */
.compare-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--hair); border-radius: var(--r2); background: var(--card); font-weight: 600; }
html.js .compare-bar:not(.on) { display: none; }
html.js .compare-bar.on { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(40rem, calc(100vw - 24px)); margin: 0; z-index: 40; box-shadow: var(--shadow); border-color: var(--fg); }
.compare-bar .button:disabled { opacity: 1; background: var(--bg2); color: var(--muted); border-color: var(--hair); cursor: not-allowed; }
body.has-bar { padding-bottom: 96px; }
.dates { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.dates li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 2px 10px; font-size: .97rem; }
.dates time { font: 650 .94rem var(--sans); color: var(--accent); grid-row: span 2; }
.dates span { color: var(--fg2); font-size: .94rem; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 1000px) { .editor-grid { grid-template-columns: minmax(0, 1fr); } }
.editor { display: grid; gap: 18px; } .editor fieldset.card { border: 1px solid var(--hair); margin: 0; }
.editor legend { padding: 0 6px; }
.cols { display: grid; gap: 0 16px; } .cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .cols.two, .cols.three, .cols.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Date and time boxes and the 1-5 scales need the full width of a small phone: half of it cut off the year. */
@media (max-width: 420px) { .cols.three, .cols.four, .metrics.compact { grid-template-columns: minmax(0, 1fr); } }
.amen { border: 0; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 8px; }
.amen legend { font-size: 1rem; font-weight: 500; color: var(--fg); margin-bottom: 8px; }
.amen .check, .choose-list .check { display: flex; gap: 8px; align-items: center; font-size: 1rem; min-height: 40px; }
.amen input, .choose-list input { accent-color: var(--accent); width: 18px; height: 18px; }
.editor-side { display: grid; gap: 14px; } .sticky { position: sticky; top: 88px; }
.delete-form { margin: 0; }
.choose { margin-top: 12px; } .choose summary { cursor: pointer; } .choose-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 10px; margin: 12px 0 16px; }
.cmp th[scope=col] { font: 650 1rem var(--sans); color: var(--fg); min-width: 11rem; }
.cmp th[scope=col] .rank-num { font-size: 1.2rem; margin-right: 4px; }
.cmp td.best { color: var(--gain); font-weight: 650; }
.cmp td.best::after { content: " ●"; font-size: .7em; vertical-align: middle; }
.cmp .yes { color: var(--gain); font-weight: 600; }
@media (max-width: 760px) { .cmp { min-width: 640px; } }
.spaced { margin-top: 40px; }

/* ---- Odds and ends --------------------------------------------------------------------------------- */
.paper-band .card { background: var(--card); }

/* Touch targets: at least 40–44px tall for everything you tap on a phone. */
.brand { min-height: 44px; }
.slider .exact input { padding: 10px 0; }
.foot-nav a { padding: 8px 0; }
.next a, .link-arrow, .task .alt, .rental-title .h4, .demo-table th a, .dates a, .crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
.rental-title .h4 { min-height: 36px; }
.confidence summary, .chart-data summary, .ledger-table summary, .assumptions summary { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.confidence summary, .chart-data summary, .ledger-table summary, .assumptions summary, .rental-more summary, .offer-card details summary, .full-table > summary, .choose summary, .cema-box > summary, .cema-explain > summary, .aff-tests > summary { list-style: none; }
.confidence summary::-webkit-details-marker, .chart-data summary::-webkit-details-marker, .ledger-table summary::-webkit-details-marker, .assumptions summary::-webkit-details-marker, .rental-more summary::-webkit-details-marker, .offer-card details summary::-webkit-details-marker, .full-table > summary::-webkit-details-marker, .choose summary::-webkit-details-marker, .cema-box > summary::-webkit-details-marker, .cema-explain > summary::-webkit-details-marker, .aff-tests > summary::-webkit-details-marker { display: none; }
.confidence summary::before, .chart-data summary::before, .ledger-table summary::before, .assumptions summary::before, .rental-more summary::before, .offer-card details summary::before, .full-table > summary::before, .choose summary::before, .cema-box > summary::before, .cema-explain > summary::before, .aff-tests > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 10px; transition: transform .25s var(--ease); flex: none; }
details[open] > summary::before { transform: rotate(45deg) !important; }
.confidence summary { color: var(--accent); font-weight: 600; } .confidence summary b { color: var(--fg); }

/* Phones (sprint 2026-10-21): nothing may push the page wider than the screen. Grid tracks that are "1fr" grow to
   their content's min-content width (inputs default to ~150px, labels and figures don't wrap), which made every page
   9px wider than a 320px screen and the tracker pages up to 116px wider. */
.field input, .field select, .field textarea { min-width: 0; }
@media (max-width: 480px) {
  .button, button.button, .lead button { white-space: normal; max-width: 100%; min-height: 46px; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .fig-value { white-space: normal; overflow-wrap: anywhere; }
}
/* Touch screens: text and number boxes (including each slider's exact-value box) were 36px tall; 44px is Apple's
   minimum comfortable tap height. */
@media (pointer: coarse), (max-width: 760px) {
  .field input:not([type=range]):not([type=radio]):not([type=checkbox]), .field select, .capture input, .lead input[type=email], .lead input[type=text] { min-height: 44px; }
}
/* In-page links (#join, #delete, …) land below the sticky header, not under it. */
[id] { scroll-margin-top: 84px; }
/* Share these numbers (ui.tsx ShareLink): hidden without JavaScript; a status line says what happened. */
.share-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0; }
.share-line [hidden] { display: none; }
/* Above a table that scrolls sideways on a phone (added by app.js only when it does). */
.scroll-hint { margin: 8px 0 6px; }
@media print { .scroll-hint { display: none; } }

/* ---- rent vs buy (sprint 2026-10-22) ---- */
.rvb-form { display: grid; gap: 14px; } .rvb-form .field, .rvb-form .seg, .rvb-form .sliders { margin: 0; }
.rvb-form .money-in input { width: 100%; min-width: 0; }
.rvb-more { margin: 0; } .rvb-more .sliders { margin: 6px 0 0; }
.rvb-more .field, .rvb-more .switch { margin-top: 14px; }
.rvb-notes { margin: 0; border-left-color: var(--accent); } .rvb-notes ul { margin: 0; padding-left: 1.1em; } .rvb-hidden { display: none; }
.rvb-totals th[scope=col] + th, .rvb-totals td { text-align: right; }
.rvb-totals tr.group th { font: 700 .97rem var(--sans); color: var(--fg); padding-top: 20px; }
.rvb-totals tr.rvb-strong th, .rvb-totals tr.rvb-strong td { font-weight: 700; border-top: 1px solid var(--fg2); }
.rvb-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; margin-top: 8px; }
.rvb-list { list-style: none; padding: 0; margin: 8px 0; }
.rvb-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair2); }
.rvb-list b { font-variant-numeric: tabular-nums; }
.rvb-dl { display: grid; gap: 0; margin: 14px 0 28px; max-width: 52em; }
.rvb-dl div { padding: 12px 0; border-bottom: 1px solid var(--hair); } .rvb-dl dt { font-weight: 650; } .rvb-dl dd { margin: 4px 0 0; color: var(--fg2); }
.rvb-out { max-width: 52em; padding-left: 1.1em; } .rvb-out li { margin: 6px 0; }
.rvb-why, .rvb-dl dd, .rvb-list span { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .rvb-cols { grid-template-columns: minmax(0, 1fr); }
  .rvb-totals td { text-align: left; }
  .rvb-totals tr.rvb-strong th, .rvb-totals tr.rvb-strong td { border-top: 0; }
}
.rvb-ref { margin: -6px 0 0; } .rvb-ref .src { margin-left: 4px; }
.rvb-tax { margin: 0; } .rvb-tax .field, .rvb-tax .switch, .rvb-tax .seg { margin-top: 14px; } .rvb-tax .seg { margin-bottom: 0; }
.rvb-tax select { width: 100%; min-width: 0; }
.rvb-totals tr[hidden] { display: none !important; }
.rvb-taxline { margin: 0 0 12px; }
.rvb-brackets { margin-top: 10px; max-width: 28rem; } .rvb-brackets caption { text-align: left; caption-side: top; padding-bottom: 4px; }
.rvb-brackets td, .rvb-brackets th[scope=col] + th { text-align: right; }

/* ---- affordability (sprint 2026-10-22) ---- */
.aff-tests { border-top: 1px solid var(--hair2); padding-top: 4px; }
.aff-tests > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.aff-tests .slider { margin: 10px 0 14px; }
.aff-coop[hidden] { display: none; }
.aff-error { border-left-color: var(--loss); }
.aff-checks { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 0; }
.aff-checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-bottom: 1px solid var(--hair2); }
.aff-checks li .muted { grid-column: 1 / -1; font-size: .94rem; }
.aff-checks li.binds { border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.aff-checks li b { white-space: nowrap; }
.aff-list li.aff-sum { border-bottom: 0; border-top: 1px solid var(--hair); font-weight: 600; }
.aff-list li span, .aff-check-label { overflow-wrap: anywhere; }
.aff-sources { padding-left: 1.1em; display: grid; gap: 10px; max-width: 52em; }
.aff-sources .src { margin-top: 4px; }
@media (max-width: 420px) { .aff-checks li { grid-template-columns: minmax(0, 1fr); } }
[data-afford] [hidden] { display: none; }
.aff-hint { margin: 6px 0 0; }
@media (max-width: 640px) { .figs.two.aff-answers { grid-template-columns: minmax(0, 1fr); } }
/* ---- selling (sprint 2026-10-22) ---- */
.sell-hint { margin: 6px 0 0; }
.sell-alert { border-left-color: var(--loss); }
.sell-alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.sell-warn { border-left-color: var(--loss); }
.sell-empty { margin: 0; padding: 18px 20px; }
.sell-notes { padding-left: 1.2em; max-width: 52em; }
.sell-notes li + li { margin-top: 10px; }
.sell-notes [hidden], [data-selling] [hidden] { display: none; }
[data-selling] .costs tfoot th, [data-selling] .costs tfoot td { font-weight: 600; border-top: 1px solid var(--hair); }
@media (max-width: 420px) { [data-selling] .figs.two { grid-template-columns: minmax(0, 1fr); } }

/* ---- guides (sprint 2026-10-22) ---- */
.guide-intro p { margin: 0 0 12px; }
.guide-checked { margin: 0; }
.guide-toc { border: 1px solid var(--hair); border-radius: var(--r2); padding: 16px 20px; margin: 0 0 32px; background: var(--card); }
.guide-toc ol { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 0; }
.guide-toc a { display: inline-flex; align-items: center; min-height: 40px; }
.guide-body { display: grid; gap: 32px; margin: 0 0 40px; }
.guide-body section { min-width: 0; scroll-margin-top: 88px; }
.guide-body h2 { margin: 0 0 10px; }
.guide-body p, .guide-body li { line-height: 1.65; overflow-wrap: break-word; }
.guide-body ul { padding-left: 1.3em; display: grid; gap: 6px; }
.guide-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.guide-table th, .guide-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hair2); vertical-align: top; }
.guide-table th { font-weight: 600; }
.guide-table td:last-child, .guide-table th:last-child { text-align: right; white-space: nowrap; }
.guide-sources ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.guide-sources .src { display: block; position: relative; padding: 9px 0 9px 18px; margin: 0; overflow-wrap: break-word; }
.guide-sources .src-dot { position: absolute; left: 2px; top: 1.05em; }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list > li { display: flex; min-width: 0; } .guide-list > li > .card { flex: 1; }
.guide-related-h { margin: 40px 0 8px; }
.guide-related { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.guide-related li { display: grid; padding: 6px 0; border-bottom: 1px solid var(--hair2); }
.guide-related a { font-weight: 600; display: inline-flex; align-items: center; min-height: 40px; }
/* ---- net effective rent (sprint 2026-10-22) ---- */
[data-ne] [hidden] { display: none; }
.ne-form { display: grid; gap: 14px; }
.ne-form .seg, .ne-form .ne-cols .ne-field { margin: 0; }
.ne-form .h4 { margin: 0; }
.ne-sub { margin-top: 6px; }
.ne-field { display: grid; gap: 6px; min-width: 0; }
.ne-field .field { margin: 0; }
.ne-field input { font: 400 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; min-height: 44px; font-variant-numeric: tabular-nums; }
.ne-field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.ne-field input[aria-invalid="true"] { border-color: var(--loss); }
.ne-field .money-small input { flex: 1 1 auto; }
.ne-err { font-size: .94rem; }
.ne-cols { gap: 14px 16px; }
.ne-form .button { justify-self: start; min-height: 44px; }
.ne-results { min-width: 0; }
.ne-lead { font-size: 1.1rem; font-weight: 500; margin: 0 0 4px; }
.ne-fix { margin: 0; color: var(--fg2); }
.ne-list { display: grid; gap: 14px; padding-left: 1.1em; margin: 16px 0 0; }
.ne-list .src { margin-left: 4px; }
/* Net effective: standalone source links are tap targets of at least 40px (QA batch A). */
.ne-src .src { min-height: 40px; }
.ne-note { margin: 0; }
@media (max-width: 420px) { .cols.ne-cols, .ne-results .figs.two { grid-template-columns: minmax(0, 1fr); } }

/* ---- tracker notices (sprint 2026-10-22) ---- */
.tn-fee[hidden] { display: none; }
.tn-fee { border-left-color: var(--accent); }
/* ---- guides, second set (sprint 2026-10-22) ---- */
.guide-table tbody th { font-weight: 600; text-align: left; }
@media (max-width: 760px) {
  .guide-table.stack-table td:last-child { text-align: left; white-space: normal; }
  .guide-table.stack-table th, .guide-table.stack-table td { border-bottom: 0; }
  .guide-table.stack-table tbody th { padding-top: 4px; }
}
/* ---- rent qualifier (sprint 2026-10-22) ---- */
[data-q] [hidden] { display: none; }
.q-form { display: grid; gap: 14px; }
.q-form .h4 { margin: 0; }
.q-form .fine { margin: 0; }
.q-sub { margin-top: 6px; }
.q-field { display: grid; gap: 6px; min-width: 0; }
.q-field .field { margin: 0; }
.q-field input { font: 400 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; min-height: 44px; font-variant-numeric: tabular-nums; }
.q-field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.q-field input[aria-invalid="true"] { border-color: var(--loss); }
.q-field .money-small input { flex: 1 1 auto; }
.q-err { font-size: .94rem; }
.q-cols { gap: 14px 16px; }
.q-form .button { justify-self: start; min-height: 44px; }
.q-results { min-width: 0; }
.q-lead { font-size: 1.1rem; font-weight: 500; margin: 0 0 4px; }
.q-fix { margin: 0; color: var(--fg2); }
.q-verdict { margin: 14px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hair); overflow-wrap: anywhere; }
.q-verdict.ok { border-color: var(--gain); }
.q-verdict.warn { border-color: var(--loss); }
.q-list { display: grid; gap: 14px; padding-left: 1.1em; margin: 16px 0; }
.q-list .src { margin-left: 4px; }
@media (max-width: 420px) { .cols.q-cols, .q-results .figs.two { grid-template-columns: minmax(0, 1fr); } }
/* ---- loan estimates (sprint 2026-10-22) ---- */
.le-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.le-grid > * { min-width: 0; }
@media (max-width: 960px) { .le-grid { grid-template-columns: minmax(0, 1fr); } }
.le-form { display: grid; gap: 14px; }
.le-offer { border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px 4px; margin: 0; min-width: 0; }
.le-offer legend { font-weight: 650; padding: 0 6px; }
.le-cols { gap: 0 14px; }
.le-field { min-width: 0; }
.le-field .money-small input { flex: 1 1 auto; min-width: 0; }
.le-err { display: block; font-size: .94rem; }
.le-err[hidden] { display: none; }
.le-error { border-left-color: var(--loss); }
.le-privacy { margin-top: 14px; }
.le-notes, .le-points { padding-left: 1.1em; display: grid; gap: 8px; margin: 10px 0 16px; }
.le-notes[hidden], [data-out="le-table-wrap"][hidden] { display: none; }
.le-table th .muted { display: block; }
.le-table tr.le-best { background: var(--accent-soft); }
.le-tag { margin-left: 8px; }
.le-explain { display: grid; gap: 0; margin: 12px 0; }
.le-explain div { padding: 12px 0; border-bottom: 1px solid var(--hair2); }
.le-explain dt { font-weight: 650; margin-bottom: 4px; }
.le-explain dd { margin: 0; color: var(--fg2); }
.le-explain .src { margin-top: 6px; }
@media (max-width: 420px) { .cols.le-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .le-table tr.le-best { padding: 10px 12px; border-radius: 10px; } .le-tag { margin-left: 0; display: inline-block; } }

/* ---- tax pages (sprint 2026-10-22) ---- */
.tx-form { display: grid; gap: 14px; max-width: 40rem; } .tx-form .field, .tx-form .seg { margin: 0; }
.tx-form .money-in input { width: 100%; min-width: 0; } .tx-form select { width: 100%; min-width: 0; }
.tx-result { margin-top: 4px; border: 1px solid var(--hair); border-radius: var(--r2); }
.tx-notes { margin: 0; border-left-color: var(--accent); } .tx-notes ul { margin: 0; padding-left: 1.1em; } .tx-hidden { display: none; }
.tx-body h2 { margin-top: 28px; } .tx-body .src { margin-left: 4px; } .tx-body p, .tx-body li { overflow-wrap: anywhere; }
.tx-rates td.tab, .tx-examples td.tab { font-weight: 650; }
.tx-list { padding-left: 1.1em; } .tx-list li { margin: 8px 0; }

/* ---- closing disclosure (sprint 2026-10-22) ---- */
.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cd-grid > * { min-width: 0; }
@media (max-width: 960px) { .cd-grid { grid-template-columns: minmax(0, 1fr); } }
.cd-form { display: grid; gap: 14px; }
.cd-group { border: 1px solid var(--hair); border-radius: 12px; padding: 10px 14px 4px; margin: 0; min-width: 0; }
.cd-group legend { font-weight: 650; padding: 0 6px; }
.cd-row { border-top: 1px solid var(--hair2); padding-top: 10px; }
.cd-row-h { margin: 0 0 6px; display: grid; gap: 2px; } .cd-row-h .hint { font-size: .94rem; color: var(--muted); }
.cd-cols { gap: 0 14px; }
.cd-amt .money-small input { flex: 1 1 auto; min-width: 0; }
.cd-row .field { min-width: 0; } .cd-form select { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.cd-err { display: block; font-size: .94rem; } .cd-err[hidden] { display: none; }
.cd-error { border-left-color: var(--loss); }
.cd-privacy { margin-top: 14px; }
.cd-verdict.over .fig-value { color: var(--loss); }
.cd-lines, .cd-steps { padding-left: 1.1em; display: grid; gap: 8px; margin: 10px 0 16px; }
[data-out="cd-table-wrap"][hidden] { display: none; }
.le-table th .le-cd { display: inline-flex; align-items: center; min-height: 40px; }
.cd-table tr.cd-over { background: color-mix(in srgb, var(--loss) 10%, transparent); }
.cd-steps .src { margin-top: 4px; }
@media (max-width: 420px) { .cols.cd-cols { grid-template-columns: minmax(0, 1fr); } }
/* ---- glossary (sprint 2026-10-22) ---- */
.gl-az { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.gl-az a { display: inline-flex; align-items: center; min-height: 40px; }
.gl-list { margin: 0; display: grid; gap: 0; }
.gl-term { padding: 14px 0; border-bottom: 1px solid var(--hair2); scroll-margin-top: 88px; min-width: 0; }
.gl-term:target { background: var(--accent-soft); outline: 6px solid var(--accent-soft); }
.gl-term dt { font-weight: 600; margin: 0 0 4px; }
.gl-term dd { margin: 0; line-height: 1.65; overflow-wrap: break-word; }
.gl-what { font-size: .9rem; white-space: nowrap; margin-left: 6px; display: inline-flex; align-items: center; min-height: 40px; }
@media print { .gl-what { display: none; } .gl-term:target { background: none; outline: none; } }
/* ---- sell or rent (sprint 2026-10-22) ---- */
.sr-form { display: grid; gap: 14px; } .sr-form .field, .sr-form .seg, .sr-form .sliders { margin: 0; }
.sr-form .money-in input { width: 100%; min-width: 0; }
.sr-more { margin: 0; } .sr-more .sliders { margin: 6px 0 0; } .sr-more .field { margin-top: 14px; }
.sr-notes { margin: 0; border-left-color: var(--accent); } .sr-notes ul { margin: 0; padding-left: 1.1em; } .sr-hidden { display: none; }
.sr-totals th[scope=col] + th, .sr-totals td { text-align: right; }
.sr-totals tr.group th { font: 700 .97rem var(--sans); color: var(--fg); padding-top: 20px; }
.sr-totals tr.sr-strong th, .sr-totals tr.sr-strong td { font-weight: 700; border-top: 1px solid var(--fg2); }
.sr-dl { display: grid; margin: 14px 0 28px; } .sr-dl div { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.sr-dl dt { font-weight: 650; } .sr-dl dd { margin: 4px 0 0; color: var(--fg2); overflow-wrap: anywhere; } .sr-dl .src { margin-left: 4px; }
.sr-out { padding-left: 1.1em; } .sr-out li { margin: 6px 0; } .sr-out .src { margin-left: 4px; }
.sr-tax { margin: 0; } .sr-tax .field, .sr-tax .switch, .sr-tax .seg { margin-top: 14px; } .sr-tax .seg { margin-bottom: 0; } .sr-tax select { width: 100%; min-width: 0; }
.sr-totals tr[hidden] { display: none !important; }
.sr-taxline { margin: 0 0 12px; }
@media (max-width: 760px) { .sr-totals td { text-align: left; } .sr-totals tr.sr-strong th, .sr-totals tr.sr-strong td { border-top: 0; } }
/* ---- coop-board (sprint 2026-10-22) ---- */
[data-coop] [hidden] { display: none; }
.coop-private { margin: 16px 0 0; }
.coop-group { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.coop-group legend { font-weight: 650; padding: 0; margin-bottom: 4px; }
.coop-group + .coop-group { border-top: 1px solid var(--hair2); padding-top: 12px; }
.coop-short { border-left-color: var(--loss); }
.coop-figs .fig-note b { display: block; margin-top: 4px; }
@media (max-width: 860px) { .figs.three.coop-figs { grid-template-columns: minmax(0, 1fr); } }

/* ---- ux-discovery (sprint 2026-10-22) ---- */
.ux-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ux-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; text-decoration: none; background: var(--card); }
.ux-tools { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 12px; }
.ux-tool { border: 1px solid var(--hair); border-radius: 12px; background: var(--card); padding: 14px 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.ux-tool > a { font-size: 1.05rem; min-height: 40px; display: inline-flex; align-items: center; }
.ux-tool p { margin: 0; color: var(--fg2); }
.ux-badges { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.ux-guides { padding-left: 1.2em; display: grid; gap: 6px; }
.ux-guides a { display: inline-block; padding: 6px 0; }
.ux-more { margin-top: 18px; }
.ux-more h2 { margin: 0 0 8px; }
.ux-more ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ux-more a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; background: var(--card); text-decoration: none; }
.ux-more a:hover, .ux-jump a:hover { border-color: var(--accent); }
.ux-more a.ux-all { border-color: var(--fg); font-weight: 600; }

/* ---- New York tax (sprint 2026-10-22) ---- */
.ny-fields { border: 0; border-top: 1px solid var(--hair2); margin: 18px 0 0; padding: 14px 0 0; display: grid; gap: 14px; min-width: 0; }
.ny-fields > legend { font-weight: 650; padding: 0; }
.ny-fields .field, .ny-fields .seg, .ny-fields .switch, .ny-fields p { margin: 0; }
.rvb-totals tr.rvb-ny-row[hidden], .sr-totals tr.sr-ny-row[hidden] { display: none !important; }
/* ---- check a building (sprint 2026-10-22) ---- */
[data-cb] [hidden] { display: none; }
.cb-form { display: grid; gap: 14px; }
.cb-field { display: grid; gap: 6px; min-width: 0; }
.cb-field .field { margin: 0; }
.cb-field input, .cb-field select { font: 400 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; min-height: 44px; }
.cb-field input:focus, .cb-field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.cb-field [aria-invalid="true"] { border-color: var(--loss); }
.cb-form .button { justify-self: start; min-height: 44px; }
.cb-privacy { margin: 0; }
.cb-need { margin: 16px 0 0; }
.cb-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; counter-reset: cb; }
.cb-item { min-width: 0; overflow-wrap: break-word; }
.cb-item h3 { margin: 0 0 4px; }
.cb-item p { margin: 8px 0 0; line-height: 1.6; }
.cb-by { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cb-go { min-height: 44px; display: inline-flex; align-items: center; }
.cb-direct { margin-left: 8px; }
.cb-copy { overflow-wrap: anywhere; }
.cb-look .src { margin-left: 4px; }
.cb-preview { padding-left: 1.2em; display: grid; gap: 6px; }
.cb-field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.cb-field select option { background: var(--card); color: var(--fg); }
/* ---- guides hub groups (sprint 2026-10-22) ---- */
.guide-group { margin: 0 0 44px; scroll-margin-top: 88px; }
.guide-group > h2 { margin: 0 0 4px; }
.guide-group-intro { margin: 0 0 16px; }
/* ---- fee check (sprint 2026-10-22) ---- */
.fc { margin-top: 20px; }
.fc-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; }
.fc-list li { padding: 10px 12px 10px 14px; border-left: 3px solid var(--hair); border-radius: 6px; background: var(--bg); overflow-wrap: anywhere; }
.fc-list li.fc-ok { border-left-color: var(--gain); }
.fc-list li.fc-flag { border-left-color: var(--loss); }
.fc-list li.fc-ask { border-left-color: var(--accent); }
.fc-list .src { min-height: 40px; }

/* ---- cema (sprint 2026-10-22) ---- */
.cema-box > summary, .cema-explain > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.cema-box .field { margin: 6px 0 0; }
.cema-na[hidden], .cema-result[hidden] { display: none; }
.cema-explain { border-top: 1px solid var(--hair2); margin: 12px 0; max-width: 52em; }
.cema-explain ul { padding-left: 1.1em; display: grid; gap: 8px; }

/* ---- qa-fixes-b (sprint 2026-10-22) ---- */
/* Source links inside sentences were told apart from the text by colour alone (1.65:1; axe link-in-text-block) and
   were 21px tall on phones. Underline every source link; on touch screens give it a 40px tap height. */
a.src { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
@media (pointer: coarse) { a.src { min-height: 40px; } }
/* Guide source lists sat at 39px on wide screens. */
.guide-sources .src { min-height: 40px; }
.qa-nudge { margin: 0 0 14px; }
/* Sample rentals overflowed at 1024 and 1280px (smoke, 22 Oct): the 320px sidebar's grid track grew to a 439px
   button label that couldn't wrap ("Compare with Riverside tower one-bedroom"). */
.editor-side { grid-template-columns: minmax(0, 1fr); }
.side-actions .button { white-space: normal; height: auto; padding-top: 10px; padding-bottom: 10px; }
.cema-note { color: var(--loss); } .cema-note[hidden] { display: none; }

/* ---- print summary (sprint 2026-10-22) ---- */
/* On screen the print head never shows; the button shows only once app.js can print. */
.print-head { display: none; }
.print-btn[hidden] { display: none; }
@media print {
  @page { margin: 12mm 11mm; }
  /* Always the light palette on paper, whatever the theme. */
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #fff; --bg2: #fff; --card: #fff; --fg: #000; --fg2: #222; --muted: #444; --hair: rgba(0, 0, 0, .25); --hair2: rgba(0, 0, 0, .12);
    --accent: #5a4219; --accent-soft: rgba(0, 0, 0, .05); --gain: #1f5a3f; --loss: #8a2f27; color-scheme: light;
    --s0: #8a6326; --s1: #111214; --s2: #3f5f73; --s3: #a0583a;
  }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { font-size: 12px; }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 10pt; line-height: 1.35; }
  .print-head { display: block; border-bottom: 1px solid #000; padding-bottom: 6pt; margin-bottom: 10pt; }
  .print-head p { margin: 0 0 2pt; } .print-title { font-size: 12pt; } .print-scenario { font-weight: 600; } .print-meta { font-size: 9pt; color: #444; }
  /* Controls and anything that only works on screen. */
  form, .print-btn, .share-line, .next, .crumbs, .avail, .notice.sample, .lede, .scroll-hint, nav, button, input, select, .chart-data, .report-plate, .plate, .thumb, .lens, .how, .r-more > summary, .confidence > summary, .axis-title { display: none !important; }
  .chart svg { max-height: 110pt; width: 100%; } .chart .fine { display: none; } .chart { margin: 4pt 0 !important; } .chart-lead { margin: 0 0 4pt; }
  .figure { padding: 6pt 8pt !important; } .figs { margin: 6pt 0 !important; } .verdict, .r-side, .card { padding: 8pt 10pt !important; margin: 6pt 0 !important; }
  .facts div { padding: 2pt 0 !important; } .breakdown li { padding: 2pt 0 !important; }
  p, ul, ol { margin-top: 0; margin-bottom: 4pt; }
  .page-head { padding: 0 0 4pt !important; } .page-head h1 { display: none; } .report-head .report-name { font-size: 14pt; }
  /* Explanations that are reading, not the summary. */
  .cema-explain, .confidence, .le-privacy, .cd-privacy, .rm-privacy { display: none !important; }
  .band, .band.tight, section { padding-top: 3pt !important; padding-bottom: 3pt !important; } .wrap { max-width: none !important; padding: 0 !important; }
  .closing-grid, .dossier-grid, .report-grid, .split, .cd-grid, .le-grid, .rm-grid { display: block !important; gap: 0 !important; }
  .report-grid > * { margin-top: 0 !important; margin-bottom: 4pt !important; }
  .card, .figure, .figs { box-shadow: none !important; background: #fff !important; }
  .figs { border-color: #999; } .fig-value { font-size: 13pt !important; } h2 { margin: 6pt 0 3pt !important; } .figure.big .fig-value { font-size: 18pt !important; }
  /* Keep a figure, a list row or a table row on one page; repeat table headers. */
  .figure, .breakdown li, tr, .facts div, .aff-checks li { break-inside: avoid; page-break-inside: avoid; }
  h2, h3 { break-after: avoid; page-break-after: avoid; font-size: 12pt; }
  thead { display: table-header-group; }
  /* Paper is narrower than the phone breakpoint: put stacked tables back into columns. */
  .stack-table { min-width: 0 !important; width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .stack-table thead { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; display: table-header-group !important; }
  .stack-table tr { display: table-row !important; padding: 0 !important; border-bottom: 0 !important; }
  .stack-table th, .stack-table td { display: table-cell !important; padding: 3pt 4pt !important; border-bottom: 1px solid #ccc !important; }
  .stack-table td[data-label]::before { content: none !important; }
  .table-wrap { overflow: visible !important; }
  /* Sources: print the address after each external source link. */
  a[href^="http"][rel~="noopener"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; overflow-wrap: anywhere; word-break: break-all; }
  a { color: #000; text-decoration: none; }
  .src { display: inline !important; margin: 0 6pt 0 0 !important; font-size: 8.5pt !important; } .src-dot { display: none !important; }
  details:not([open]) > :not(summary) { display: none !important; }
  details:not([open]):not(.explained) { display: none !important; }
  .chart { break-inside: avoid; page-break-inside: avoid; }
  .lede, .muted { font-size: 9.5pt; } .fine { font-size: 8.5pt !important; }
}
/* ---- good cause eviction (sprint 2026-10-22) ---- */
[data-gc] [hidden] { display: none; }
.gc-form { display: grid; gap: 18px; }
.gc-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.gc-q legend { font-weight: 600; padding: 0; margin: 0 0 8px; line-height: 1.5; }
.gc-q legend .hint { display: block; font-weight: 400; }
.gc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-opts label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; cursor: pointer; }
.gc-opts input { margin: 0; }
.gc-q[aria-invalid="true"] .gc-opts label { border-color: var(--loss); }
.gc-err { font-size: .94rem; margin: 6px 0 0; }
.gc-field { display: grid; gap: 6px; min-width: 0; }
.gc-field .field { margin: 0; }
.gc-field input { font: 400 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; min-height: 44px; }
.gc-field input[aria-invalid="true"] { border-color: var(--loss); }
.gc-form .button { justify-self: start; min-height: 44px; }
.gc-form .fine { margin: 0; }
.gc-fix { margin: 0 0 16px; }
.gc-result { margin: 0 0 20px; min-width: 0; overflow-wrap: break-word; }
.gc-result h2 { margin: 0 0 8px; }
.gc-result.gc-covered { border-color: var(--gain); }
.gc-result.gc-not-covered { border-color: var(--loss); }
.gc-why { padding-left: 1.2em; display: grid; gap: 6px; }
.gc-guide p { line-height: 1.65; }
.gc-guide .src, .gc-result .src { margin-left: 4px; }
@media (max-width: 420px) { .gc-result .figs.two { grid-template-columns: minmax(0, 1fr); } }
/* ---- closing costs: Hamptons town (sprint 2026-10-22) ---- */
[data-closing-town][hidden] { display: none !important; }
[data-closing-town] select { width: 100%; min-width: 0; }
/* ---- help (sprint 2026-10-22) ---- */
.hp-kinds { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 0; }
.hp-body { display: grid; gap: 32px; margin: 0 0 40px; }
.hp-group { min-width: 0; scroll-margin-top: 88px; }
.hp-group > h2 { margin: 0 0 6px; }
.hp-qa { padding: 14px 0; border-bottom: 1px solid var(--hair2); scroll-margin-top: 88px; min-width: 0; }
.hp-qa:target { background: var(--accent-soft); outline: 6px solid var(--accent-soft); }
.hp-qa h3 { margin: 0 0 6px; }
.hp-qa p { margin: 0; line-height: 1.65; overflow-wrap: break-word; }
.hp-qa p.hp-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }
.hp-links a { display: inline-flex; align-items: center; min-height: 40px; overflow-wrap: anywhere; }
/* ---- cg- capital gains estimate on /selling (sprint 2026-10-22) ---- */
.cg-box { margin: 0; } .cg-box .field, .cg-box .switch, .cg-box .seg { margin-top: 14px; } .cg-box .seg { margin-bottom: 0; } .cg-box select { width: 100%; min-width: 0; }
.cg-box .switch { min-height: 44px; }
.cg-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; } .cg-pair .field input { width: 100%; min-width: 0; }
@media (max-width: 380px) { .cg-pair { grid-template-columns: minmax(0, 1fr); } }
.cg-result { margin-top: 28px; } .cg-result > .h3 { margin: 0 0 8px; } .cg-result .avail { margin-bottom: 12px; }
.cg-result [hidden], [data-cg][hidden] { display: none; }
.cg-figs { margin-top: 12px; }
.cg-why { margin: 12px 0; max-width: 48em; }
.cg-total th, .cg-total td.tab { font-weight: 600; }
.cg-notes { margin-top: 8px; }

/* ---- renew or move (sprint 2026-10-22) ---- */
.rm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.rm-grid > * { min-width: 0; }
@media (max-width: 960px) { .rm-grid { grid-template-columns: minmax(0, 1fr); } }
.rm-form { display: grid; gap: 14px; }
.rm-group { border: 1px solid var(--hair); border-radius: 12px; padding: 10px 14px 4px; margin: 0; min-width: 0; }
.rm-group > legend { font-weight: 650; padding: 0 6px; }
.rm-cols { gap: 0 14px; }
.rm-field { min-width: 0; } .rm-field .money-small input { flex: 1 1 auto; min-width: 0; }
.rm-err { display: block; font-size: .94rem; } .rm-err[hidden] { display: none; }
.rm-error { border-left-color: var(--loss); }
.rm-notice { border-left: 3px solid color-mix(in srgb, var(--fg) 35%, transparent); padding: 8px 12px; background: var(--card); border-radius: 8px; }
.rm-notice[hidden], [data-rm-notice-src][hidden], .rm-lines[hidden], [data-out="rm-table-wrap"][hidden] { display: none; }
.rm-lines, .rm-facts { padding-left: 1.1em; display: grid; gap: 10px; margin: 10px 0 16px; }
.rm-table th .muted { display: block; }
.rm-table tr.rm-best { background: var(--accent-soft); }
.rm-tag { margin-left: 8px; }
@media (max-width: 420px) { .cols.rm-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .rm-table tr.rm-best { padding: 10px 12px; border-radius: 10px; } .rm-tag { margin-left: 0; display: inline-block; } }

/* ---- ami: Housing Connect income bands (sprint 2026-10-22) ---- */
.ami-select { min-height: 44px; width: 100%; max-width: 16rem; font-size: 16px; }
.ami-band { margin: 0 0 12px; }
.ami-table-wrap { max-width: 100%; overflow-x: auto; }
.ami-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ami-table caption { text-align: left; font-weight: 600; padding: 0 0 8px; }
.ami-table th, .ami-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--hair); }
.ami-table thead th { font-size: 14px; font-weight: 600; }
.ami-table tr.ami-in td:last-child { font-weight: 600; }
.ami-table tr.ami-out { color: var(--muted); }
/* ---- tracker renew and fee markers (sprint 2026-10-22) ---- */
.fc-mark { display: inline-flex; align-items: center; align-self: start; min-height: 40px; padding: 0 12px; margin: 4px 0; border: 1px solid var(--loss); border-radius: 999px; color: var(--loss); font-size: .94rem; font-weight: 600; text-decoration: none; }
.fc-count { margin: 0 0 12px; }
.rental-title .fc-mark { justify-self: start; }
.rn-card { margin-top: 20px; display: grid; gap: 10px; justify-items: start; }
.rn-card .fine, .rn-card .h4 { margin: 0; }
.dates .link-arrow { grid-column: 2; min-height: 40px; margin-top: 0; }
/* QA batch C, D1: the sample page's side column sized to its longest button and overflowed at 1024–1439px. */
.editor-side { grid-template-columns: minmax(0, 1fr); }
.side-actions .button { white-space: normal; text-align: center; }

/* ---- title insurance (sprint 2026-10-22) ---- */
.ti-form { display: grid; gap: 12px; margin-bottom: 16px; } .ti-form .field { margin: 0; } .ti-form .money-in input { width: 100%; min-width: 0; }
.ti-error { border-left-color: var(--loss); }
.ti-examples, .ti-facts { padding-left: 1.1em; display: grid; gap: 8px; }
/* ---- methodology (sprint 2026-10-22) ---- */
.mt-tool h3 { margin: 18px 0 6px; }
.mt-src-group h3 { margin: 22px 0 0; }
.mt-eq { margin: 10px 0 14px; padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 6px; background: var(--card); }
.mt-eq p { margin: 4px 0; }
.mt-eq code { font-family: inherit; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.mt-defaults, .mt-legend { margin: 8px 0 12px; display: grid; gap: 0; }
.mt-defaults > div, .mt-legend > div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair2); }
.mt-defaults dt { font-weight: 600; }
.mt-defaults dd, .mt-legend dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mt-val { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mt-note { display: block; margin-top: 4px; color: var(--fg2); font-size: .95rem; }
.mt-src { display: grid; gap: 0; margin-top: 4px; }
.mt-src .src { display: block; position: relative; min-height: 40px; padding: 9px 0 9px 18px; margin-right: 0; font-size: .95rem; overflow-wrap: break-word; }
.mt-src .src-dot { position: absolute; left: 2px; top: 1.05em; }
.mt-kind { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--hair); font-size: .875rem; white-space: nowrap; color: var(--fg2); }
.mt-k-fact { border-color: var(--gain); }
.mt-k-practice { border-color: var(--accent); }
.mt-k-estimate { border-color: var(--muted); }
.mt-k-example, .mt-k-choice { border-style: dashed; }
.mt-open { margin: 12px 0 0; }
.mt-open .button { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 640px) { .mt-defaults > div, .mt-legend > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---- shared estimates and method links (sprint 2026-10-22) ---- */
.mt-link a { display: inline-flex; align-items: center; min-height: 40px; }
.va-use { margin-top: 4px; }
/* ---- refinance (sprint 2026-10-22) ---- */
.rf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.rf-grid > * { min-width: 0; }
@media (max-width: 960px) { .rf-grid { grid-template-columns: minmax(0, 1fr); } }
.rf-form { display: grid; gap: 14px; }
.rf-group { border: 1px solid var(--hair); border-radius: 12px; padding: 10px 14px 6px; margin: 0; min-width: 0; }
.rf-group > legend { font-weight: 650; padding: 0 6px; }
.rf-cols { gap: 0 14px; } .rf-field { min-width: 0; } .rf-field .money-small input, .rf-field select { flex: 1 1 auto; min-width: 0; width: 100%; }
.rf-err { display: block; font-size: .94rem; } .rf-err[hidden] { display: none; }
.rf-error { border-left-color: var(--loss); }
[data-rf-out][hidden], .rf-note[hidden], .rf-cema[hidden] { display: none; }
.rf-kind, .rf-note, .rf-cema { border-left: 3px solid color-mix(in srgb, var(--fg) 35%, transparent); padding: 8px 12px; background: var(--card); border-radius: 8px; }
.rf-facts { padding-left: 1.1em; display: grid; gap: 10px; margin: 10px 0 16px; }
@media (max-width: 420px) { .cols.rf-cols { grid-template-columns: minmax(0, 1fr); } }
/* ---- accessibility sweep (sprint 2026-10-22) ---- */
/* Source links sit inside sentences; their colour alone was 1.65:1 against the text (axe link-in-text-block), so
   the label is underlined like other text links. The dot and the "checked" date stay as they are. */
/* Only the source's name is the underlined link text; its "checked" date reads as a note. */
a.src { text-decoration: none; }
a.src .src-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: currentColor; }
a.src .src-fresh { text-decoration: none; }
/* ---- rent freeze (sprint 2026-10-22) ---- */
[data-rf] [hidden] { display: none; }
.rf-form { display: grid; gap: 18px; }
.rf-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.rf-q legend { font-weight: 600; padding: 0; margin: 0 0 8px; line-height: 1.5; }
.rf-q legend .hint { display: block; font-weight: 400; }
.rf-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-opts label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; cursor: pointer; }
.rf-opts.rf-stack { display: grid; }
.rf-opts.rf-stack label { border-radius: 12px; padding: 8px 14px; line-height: 1.4; }
.rf-opts input { margin: 0; flex: none; }
.rf-q[aria-invalid="true"] .rf-opts label { border-color: var(--loss); }
.rf-err { font-size: .94rem; margin: 6px 0 0; }
.rf-field { display: grid; gap: 6px; min-width: 0; }
.rf-field .field { margin: 0; }
.rf-field input { font: 400 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; min-height: 44px; }
.rf-field > input { max-width: 8em; }
.rf-field input[aria-invalid="true"] { border-color: var(--loss); }
.rf-form .button { justify-self: start; min-height: 44px; }
.rf-form .fine { margin: 0; }
.rf-fix { margin: 0 0 16px; }
.rf-result { margin: 0 0 20px; min-width: 0; overflow-wrap: break-word; }
.rf-result h2 { margin: 0 0 8px; }
.rf-result.rf-likely { border-color: var(--gain); }
.rf-result.rf-not { border-color: var(--loss); }
.rf-rules { list-style: none; padding: 0; display: grid; gap: 10px; }
.rf-rules li { padding-left: 12px; border-left: 3px solid var(--hair); line-height: 1.55; }
.rf-rules li.rf-yes { border-left-color: var(--gain); }
.rf-rules li.rf-no { border-left-color: var(--loss); }
.rf-mark { display: block; font-size: .875rem; font-weight: 600; }
.rf-docs { padding-left: 1.2em; display: grid; gap: 6px; }
.rf-guide p, .rf-docs li { line-height: 1.65; }
.rf-guide .src, .rf-result .src { margin-left: 4px; }
/* ---- heat, hot water and repairs (sprint 2026-10-22) ---- */
[data-rp] [hidden] { display: none !important; }
.rp-form { display: grid; gap: 16px; }
.rp-form h2 { margin: 0; }
.rp-group { border: 1px solid var(--hair); border-radius: 12px; padding: 10px 14px 4px; margin: 0; min-width: 0; }
.rp-group > legend { font-weight: 650; padding: 0 6px; }
.rp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.rp-cols > * { min-width: 0; }
@media (max-width: 480px) { .rp-cols { grid-template-columns: minmax(0, 1fr); } }
.rp-field { display: grid; gap: 4px; margin: 0 0 14px; min-width: 0; }
.rp-field .field { margin: 0; }
.rp-field input, .rp-letter-form input, .rp-letter-form textarea { font: 400 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.rp-field input[aria-invalid="true"] { border-color: var(--loss); }
.rp-unit { display: flex; align-items: center; gap: 8px; min-width: 0; } .rp-unit input { flex: 1 1 auto; }
.rp-err { font-size: .94rem; margin: 2px 0 0; }
.rp-form .button, .rp-letter-form .button { justify-self: start; min-height: 44px; }
.rp-form .fine { margin: 0; }
.rp-fix { margin: 0 0 16px; }
.rp-result { margin: 0 0 20px; min-width: 0; overflow-wrap: break-word; scroll-margin-top: 88px; }
.rp-result h2 { margin: 0 0 10px; }
.rp-result.rp-short { border-color: var(--loss); }
.rp-answer { border-left: 4px solid var(--hair); padding: 4px 0 4px 14px; margin: 0 0 14px; }
.rp-answer h3 { margin: 0 0 4px; } .rp-answer p { margin: 0 0 6px; }
.rp-answer.rp-below { border-left-color: var(--loss); } .rp-answer.rp-meets { border-left-color: var(--gain); }
.rp-rules { margin-top: 24px; } .rp-rules ul { padding-left: 1.1em; display: grid; gap: 8px; }
.rp-guide p, .rp-rules li { line-height: 1.65; overflow-wrap: break-word; }
.rp-guide .src, .rp-result .src, .rp-rules .src { margin-left: 4px; }
.rp-steps { padding-left: 1.3em; display: grid; gap: 18px; margin: 12px 0 0; }
.rp-steps h3 { margin: 0 0 4px; } .rp-steps p { margin: 0 0 8px; }
.rp-table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.rp-/* Tables keep a tighter rhythm than body text (1.25, not 1.6): figures read as data. Set explicitly since 2026-11-12,
   when the doctype took pages out of quirks mode, where tables silently ignored the body's line height. */
table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.25; }
.rp-table th, .rp-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hair2); vertical-align: top; }
.rp-table tr.rp-hot th, .rp-table tr.rp-hot td { font-weight: 650; }
.rp-nojs { font-weight: 600; } .js .rp-nojs { display: none; }
.rp-letter-form { display: grid; gap: 12px; margin: 0 0 20px; }
.rp-letter-form .field { margin: 0 0 12px; }
.rp-private { margin: 0; }
.rp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.rp-check input { width: 20px; height: 20px; accent-color: var(--fg); flex: none; }
.rp-letter { font-family: var(--sans); font-size: 1.03rem; line-height: 1.6; max-width: 44em; overflow-wrap: break-word; }
.rp-letter p { margin: 0 0 12px; }
.rp-problems { padding-left: 1.2em; margin: 0 0 12px; }
.rp-blank { display: inline-block; min-width: 7em; border-bottom: 1px solid var(--fg2); max-width: 100%; }
.rp-blank.wide { min-width: 13em; }
.rp-problems .rp-blank { min-width: 0; width: 100%; }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-sign { margin-top: 28px; }
@media print {
  [data-rp] .rp-noprint { display: none !important; }
  .rp-letter-band { padding: 0; }
  .rp-letter { border: 0; box-shadow: none; padding: 0; background: #fff; color: #000; font-size: 12pt; max-width: none; }
  .rp-blank { border-bottom-color: #000; }
}
/* ---- move-in inspection (sprint 2026-10-22) ---- */
.mi-form { display: grid; gap: 18px; }
.mi-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.mi-q legend { font-weight: 600; padding: 0; margin: 0 0 8px; line-height: 1.5; }
.mi-q legend .hint { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.mi-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mi-opts label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; cursor: pointer; }
.mi-opts input { margin: 0; }
.mi-q[aria-invalid="true"] .mi-opts label { border-color: var(--loss); }
.mi-field { display: grid; gap: 6px; min-width: 0; }
.mi-field .field { margin: 0; }
.mi-field input { font: 400 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.mi-field input[aria-invalid="true"] { border-color: var(--loss); }
.mi-err { font-size: .94rem; margin: 6px 0 0; }
.mi-form .button { justify-self: start; min-height: 44px; }
.mi-form .fine, .mi-fix, .mi-ready { margin: 0 0 16px; } .mi-form .fine { margin: 0; }
.mi-sheet { margin-top: 24px; min-width: 0; overflow-wrap: break-word; }
.mi-sheet h2 { margin: 0 0 12px; }
.mi-sheet h3 { margin: 0 0 8px; }
.mi-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 20px; margin: 0 0 12px; }
.mi-line { display: flex; align-items: flex-end; gap: 8px; min-height: 2.2em; border-bottom: 1px solid var(--hair); min-width: 0; }
.mi-line-label { flex: 0 1 auto; min-width: 0; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.mi-line-value { flex: 1 1 auto; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.mi-how { font-size: .95rem; }
.mi-room { margin: 22px 0 0; }
.mi-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .94rem; }
.mi-table th, .mi-table td { border: 1px solid var(--hair); padding: 6px 8px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.mi-table thead th { font-weight: 600; background: var(--bg2); }
.mi-table tbody th { font-weight: 500; }
.mi-table th:first-child { width: 34%; } .mi-table th:nth-child(2) { width: 30%; }
.mi-cond { display: table-cell; }
.mi-opt { display: inline-flex; align-items: center; gap: 4px; margin: 0 10px 2px 0; white-space: nowrap; }
.mi-box { display: inline-block; width: .9em; height: .9em; border: 1.5px solid var(--fg); border-radius: 2px; }
.mi-notes { min-height: 2.4em; }
.mi-extra .mi-line, .mi-sig .mi-line { min-height: 2.6em; }
.mi-sign { margin: 26px 0 0; }
.mi-sigs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.mi-foot { margin: 20px 0 0; }
.mi-guide p { line-height: 1.65; }
.mi-guide .src { margin-left: 4px; }
@media (max-width: 560px) {
  .mi-details, .mi-sigs { grid-template-columns: minmax(0, 1fr); }
  .mi-table, .mi-table tbody, .mi-table tr, .mi-table th, .mi-table td { display: block; width: auto !important; }
  .mi-table thead { display: none; }
  .mi-table tr { border: 1px solid var(--hair); border-radius: 8px; margin: 0 0 8px; padding: 6px 10px; }
  .mi-table th, .mi-table td { border: 0; padding: 2px 0; }
  .mi-table .mi-notes { border-bottom: 1px solid var(--hair); min-height: 2em; }
  .mi-table .mi-notes::before { content: "Notes"; font-size: .9rem; color: var(--muted); }
}
@media print {
  [data-mi] .mi-noprint { display: none !important; }
  [data-mi] .band { padding: 0; border: 0; background: #fff; }
  [data-mi] .wrap { max-width: none; padding: 0; }
  .mi-sheet { --fg: #000; --muted: #333; --hair: #555; --bg2: #eee; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; color: #000; font-size: 11pt; transform: none; }
  .mi-sheet .h3 { font-size: 16pt; }
  .mi-sheet .h4 { font-size: 12pt; break-after: avoid; }
  .mi-details, .mi-sigs { grid-template-columns: 1fr 1fr; }
  .mi-room { break-inside: avoid; margin-top: 14pt; }
  .mi-table { display: table !important; font-size: 10pt; }
  .mi-table thead { display: table-header-group !important; }
  .mi-table tbody { display: table-row-group !important; }
  .mi-table tr { display: table-row !important; border: 0; margin: 0; padding: 0; break-inside: avoid; }
  .mi-table th, .mi-table td { display: table-cell !important; border: 1px solid #555; padding: 4pt 5pt; }
  .mi-table th:first-child { width: 34% !important; } .mi-table th:nth-child(2) { width: 30% !important; }
  .mi-table .mi-notes::before { content: none; }
  .mi-sign { break-inside: avoid; }
  .mi-box { border-color: #000; }
}
/* ---- stabilised rent check (sprint 2026-10-22) ---- */
[data-rh] [hidden] { display: none; }
.rh-form { display: grid; gap: 18px; }
.rh-form .fine { margin: 0; }
.rh-lease { border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
.rh-lease legend { font-weight: 600; padding: 0 4px; }
.rh-lease legend .hint { display: block; font-weight: 400; }
/* A two-line legend straddles the fieldset border; floated, it sits inside the box instead. */
.rh-lease legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; }
.rh-lease legend + * { clear: both; }
.rh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .rh-grid { grid-template-columns: minmax(0, 1fr); } }
.rh-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.rh-field .field { margin: 0; }
.rh-field input, .rh-field select { font: 400 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; min-height: 44px; }
.rh-field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.rh-field input[aria-invalid="true"] { border-color: var(--loss); }
.rh-err { font-size: .94rem; margin: 0; }
.rh-form .button { justify-self: start; min-height: 44px; }
.rh-fix { margin: 0 0 16px; }
.rh-result { margin: 0 0 20px; min-width: 0; overflow-wrap: break-word; }
.rh-result h2 { margin: 0 0 8px; }
.rh-result.rh-ok { border-color: var(--gain); }
.rh-result.rh-flag { border-color: var(--loss); }
.rh-rows { list-style: none; padding: 0; display: grid; gap: 10px; }
.rh-row { padding-left: 12px; border-left: 3px solid var(--hair); }
.rh-row p { margin: 0 0 4px; line-height: 1.55; }
.rh-row.rh-within { border-left-color: var(--gain); }
.rh-row.rh-above { border-left-color: var(--loss); }
.rh-status { font-weight: 600; font-size: .94rem; }
.rh-old { font-weight: 400; }
.rh-guide p { line-height: 1.65; }
.rh-guide .src, .rh-result .src, [data-rh] .fine .src { margin-left: 4px; }
.rh-table-wrap { overflow-x: auto; max-width: 100%; }
.rh-table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.rh-table th, .rh-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hair); }
.rh-table td:first-child { white-space: nowrap; }

/* ---- qc (QA2 post-merge fixes, sprint 2026-10-22) ---- */
/* /how-we-calculate: "the shared estimates" stands alone in a value cell, so it gets the 40px tap height. */
.qc-inline-tap { display: inline-flex; align-items: center; min-height: 40px; }

/* ---- lease disclosures guide (sprint 2026-10-22) ---- */
.guide-disclosures td a { display: inline-flex; align-items: center; min-height: 40px; }

/* ---- home (showcase 2026-10-22) ---- */
.hm-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(32px, 6vw, 64px); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 980px) { .hm-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 4vw, 64px); align-items: center; } }
.hm-hero-copy { min-width: 0; }
.hm-hero-copy .display.serif { max-width: 13em; margin-bottom: 18px; }
.hm-hero-copy .lede { max-width: 32em; }
.hm-start { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.hm-start .button { min-height: 44px; }
.hm-promises { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: .97rem; }
.hm-promises li { display: inline-flex; align-items: center; gap: 8px; }
.hm-promises li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gain); flex: none; }
.hm-example { padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow); min-width: 0; }
.hm-example .h3 { margin: 0 0 14px; }
.hm-tag { font: 600 .9rem/1.3 var(--sans); color: var(--accent); margin: 0 0 6px; }
.hm-form { display: grid; gap: 16px; }
.hm-total { display: grid; gap: 2px; padding: 14px 0 4px; border-top: 1px solid var(--hair2); }
.hm-big { font: 700 clamp(2rem, 6vw, 2.6rem)/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--fg); }
.hm-figs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0; }
.hm-figs div { border: 1px solid var(--hair2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.hm-figs dt { color: var(--muted); font-size: .94rem; }
.hm-figs dd { margin: 2px 0 0; font: 650 1.15rem/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.hm-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hm-bars li { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .95rem; }
.hm-bars li > span:first-child { color: var(--fg2); overflow-wrap: anywhere; }
.hm-bars b { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 5.2em; text-align: right; }
.hm-bar { display: block; height: 8px; border-radius: 999px; background: var(--hair2); overflow: hidden; }
.hm-fill { display: block; height: 100%; width: var(--hm-w, 0%); background: var(--accent); border-radius: inherit; transition: width .3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .hm-fill { transition: none; } }
.hm-note { margin: 0; }
.hm-form .button { justify-self: start; }
.hm-goals-band { padding-top: clamp(40px, 6vw, 72px); }
.hm-goals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .hm-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.hm-goal { display: grid; align-content: start; gap: 6px; scroll-margin-top: 88px; min-width: 0; }
.hm-goal .h3 { margin: 0 0 6px; }
.hm-who { font: 600 .95rem/1.3 var(--sans); color: var(--accent); margin: 0; }
.hm-picks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.hm-picks li { border-top: 1px solid var(--hair2); }
.hm-pick { display: grid; gap: 4px; padding: 12px 0; text-decoration: none; color: inherit; min-height: 44px; }
.hm-pick b { font-weight: 650; color: var(--fg); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.hm-pick:hover b { text-decoration-color: var(--accent); color: var(--accent); }
.hm-pick .hm-line { color: var(--fg2); font-size: .97rem; line-height: 1.45; }
.hm-pick .avail, .hm-guide-tag { justify-self: start; margin-top: 2px; }
.hm-guide-tag { font: 600 .9rem/1.3 var(--sans); color: var(--muted); border: 1px solid var(--hair); border-radius: 999px; padding: 2px 10px; }
.hm-alt { margin-top: 6px; }
.hm-invest { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; }
@media (min-width: 860px) { .hm-invest { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.hm-invest .h3 { margin: 2px 0 6px; }
.hm-invest p { margin: 0; }
.hm-invest form { display: grid; gap: 12px; min-width: 0; }
.hm-invest form .button { justify-self: start; }
.hm-trust { border-top: 1px solid var(--hair2); border-bottom: 1px solid var(--hair2); background: var(--bg2); padding: clamp(22px, 4vw, 36px) 0; }
.hm-trust-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 760px) { .hm-trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.hm-trust-list li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--accent); }
.hm-trust-list b { font-weight: 650; }
.hm-trust-list span { color: var(--fg2); line-height: 1.5; }
.hm-trust-list a { padding: 10px 0; }
.hm-guides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 760px) { .hm-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hm-guides { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-guide-group { min-width: 0; }
.hm-guide-group h3 { margin: 0 0 6px; }
.hm-guide-group h3 a { display: inline-flex; align-items: center; min-height: 40px; color: var(--fg); }
.hm-guide-group ul { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 0; }
.hm-guide-group li a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--hair2); color: var(--fg2); line-height: 1.4; }
.hm-more { margin-top: 32px; }
.hm-w0 { --hm-w: 0%; }
.hm-w5 { --hm-w: 5%; }
.hm-w10 { --hm-w: 10%; }
.hm-w15 { --hm-w: 15%; }
.hm-w20 { --hm-w: 20%; }
.hm-w25 { --hm-w: 25%; }
.hm-w30 { --hm-w: 30%; }
.hm-w35 { --hm-w: 35%; }
.hm-w40 { --hm-w: 40%; }
.hm-w45 { --hm-w: 45%; }
.hm-w50 { --hm-w: 50%; }
.hm-w55 { --hm-w: 55%; }
.hm-w60 { --hm-w: 60%; }
.hm-w65 { --hm-w: 65%; }
.hm-w70 { --hm-w: 70%; }
.hm-w75 { --hm-w: 75%; }
.hm-w80 { --hm-w: 80%; }
.hm-w85 { --hm-w: 85%; }
.hm-w90 { --hm-w: 90%; }
.hm-w95 { --hm-w: 95%; }
.hm-w100 { --hm-w: 100%; }
@media (max-width: 520px) {
  .hm-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 14px; }
  .hm-start .button { justify-content: center; padding: 0 10px; font-size: .97rem; white-space: normal; }
  .hm-example .h3 { font-size: 1.1rem; }
}
.hm-goal > .avail { justify-self: start; margin: 0 0 8px; }
.hm-invest .alt, .hm-alt { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
@media (min-width: 1100px) { .hm-guide-group h3 { min-height: 3.2em; display: flex; align-items: flex-end; } }
.hm-start-h { margin: 22px 0 0; font-weight: 600; color: var(--fg); }
.hm-start-h + .hm-start { margin-top: 10px; }
.hm-all { margin-top: 28px; display: grid; gap: 14px; }
.hm-all-group { display: grid; gap: 6px; min-width: 0; }
.hm-all-h { font: 600 .95rem/1.3 var(--sans); color: var(--accent); margin: 0; }
.hm-all > p { margin: 0; }
.hm-all-link { margin: 24px 0 0; }
.hm-all .ux-all { display: inline-flex; align-items: center; min-height: 44px; }

/* /support contact card and /app screenshots (2026-10-30) */
.sp-contact { margin-top: 22px; }
.sp-contact p { margin: 0 0 8px; }
.app-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 32px); max-width: 960px; margin: 0 auto; }
.app-shots figure { margin: 0; min-width: 0; }
.app-shots img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--hair); background: var(--bg2); }
.app-shots figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: .95rem; }
.app-shots-note { text-align: center; margin-top: 14px; }
@media (max-width: 640px) { .app-shots { grid-template-columns: minmax(0, 1fr); max-width: 300px; } }

/* ---- Fields: one family (2026-11-12) ---------------------------------------------------------
   Every text, number, date and select field is the same object: a card-coloured box with a hairline border,
   10px radius, 46px tall, the unit ($, %) inside it. Hover darkens the border, focus turns it brass with a soft
   ring, an invalid value (after the visitor has typed) turns it loss-red, disabled fades. Earlier per-tool rules
   (grey fields filled with page paper, underlined lead fields, the $ outside the box) are overridden here. */
:root { --field-bg: var(--card); --field-line: color-mix(in srgb, var(--fg) 50%, var(--card)); --field-line-hover: color-mix(in srgb, var(--fg) 75%, var(--card)); }
/* Borders at 50% ink: about 3.4:1 on the card in light and over 4:1 in dark (WCAG 1.4.11 needs 3:1). */
:is(.field, .cb-field, .rp-field, .rp-letter-form, .ne-field, .q-field, .gc-field, .rf-field, .mi-field, .rh-field, .lead, .capture) :is(input:not([type=range]):not([type=radio]):not([type=checkbox]):not([type=hidden]), select, textarea), .ami-select, .status-pick select {
  font: 400 1rem/1.3 var(--sans); color: var(--fg); background-color: var(--field-bg); border: 1px solid var(--field-line); border-radius: 10px;
  padding: 11px 12px; min-height: 46px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.status-pick select { border-radius: 999px; min-height: 40px; padding: 8px 34px 8px 12px; font-size: .94rem; }
:is(:is(.field, .cb-field, .rp-field, .rp-letter-form, .ne-field, .q-field, .gc-field, .rf-field, .mi-field, .rh-field, .lead, .capture) :is(input:not([type=range]):not([type=radio]):not([type=checkbox]):not([type=hidden]), select, textarea)):hover, .ami-select:hover, .status-pick select:hover,
.money-in:hover, .money-small:hover { border-color: var(--field-line-hover); }
:is(:is(.field, .cb-field, .rp-field, .rp-letter-form, .ne-field, .q-field, .gc-field, .rf-field, .mi-field, .rh-field, .lead, .capture) :is(input:not([type=range]):not([type=radio]):not([type=checkbox]):not([type=hidden]), select, textarea)):focus, .ami-select:focus, .status-pick select:focus,
.money-in:focus-within, .money-small:focus-within, .slider .exact:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: 2px solid var(--focus); outline-offset: 2px;
}
:is(.field, .cb-field, .ne-field, .q-field, .gc-field, .rf-field, .mi-field, .rh-field, .rp-field) :is(input, textarea):user-invalid, .money-in:has(input:user-invalid), .money-small:has(input:user-invalid) { border-color: var(--loss); }
.field input:disabled, .field select:disabled, .field textarea:disabled, .money-in:has(input:disabled), .money-small:has(input:disabled) { opacity: .55; cursor: not-allowed; }
::placeholder { color: var(--muted); opacity: .8; }
/* Selects: no system chrome; a chevron drawn in the theme's colours. */
:is(.field, .cb-field, .rh-field) select, .ami-select, .status-pick select, .rvb-tax select, .tx-form select, .cd-form select, .sr-tax select, .cg-box select, .rf-field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
/* Money and units: the symbol sits inside the box. .money-in is the large figure; .money-small the working size. */
.money-in, .money-small { display: flex; align-items: center; gap: 6px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field-bg); padding: 0 12px; min-height: 46px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.money-in { min-height: 52px; }
.money-small > span, .money-in > span { color: var(--muted); font-weight: 500; flex: none; }
.money-small input, .field .money-small input:not([type=range]) { flex: 1 1 auto; min-width: 0; width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 11px 0 !important; min-height: 0; font-variant-numeric: tabular-nums; }
.slider .exact { border-color: var(--field-line); border-radius: 10px; background: var(--field-bg); }
.slider .exact:hover { border-color: var(--field-line-hover); }
/* Native date and time pickers keep their behaviour; their icon takes the theme's ink. */
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { opacity: .75; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .money-in, .money-small, .field input, .field select, .field textarea { transition: none; } }
/* Inputs nested inside a box (.exact beside a slider, .money-in, .money-small) are the box's content, not boxes. */
.slider .exact input, .money-in input, .money-small input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0 !important; border-radius: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }

/* ---- One page grid (2026-11-12) ---------------------------------------------------------------
   Reading pages (guides, briefings, single-input tools) used a centred 50rem box, so their headings started
   ~150px right of the header's edge on a laptop and jumped sideways between pages. They now share the header's
   left edge; the reading measure is unchanged (45rem of text, about 70 characters). */
.wrap.narrow-wide { max-width: var(--wrap); }
.wrap.narrow-wide > * { max-width: 45rem; }
/* Guides on wide screens: "On this page" sits in a sticky column beside the article instead of filling the first
   screen; on phones and tablets it stays above the article. */
@media (min-width: 1100px) {
  .guide-article .band .wrap.narrow-wide { display: grid; grid-template-columns: minmax(0, 45rem) minmax(16rem, 19rem); column-gap: clamp(40px, 5vw, 72px); align-items: start; }
  .guide-article .band .wrap.narrow-wide > * { grid-column: 1; max-width: none; }
  .guide-article .band .wrap.narrow-wide > .guide-toc { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 96px; margin: 0; background: transparent; border: 0; border-left: 1px solid var(--hair); border-radius: 0; padding: 4px 0 4px 20px; }
  .guide-article .band .wrap.narrow-wide > .guide-toc a { min-height: 34px; font-size: .94rem; }
  .guide-article .band .wrap.narrow-wide > .guide-toc .h4 { font-size: .94rem; font-weight: 600; color: var(--muted); }
}
/* Home hero: four equal choices. The first used to be filled ink, so it read as already selected. */
.hm-start .button.ghost { background: var(--card); border-color: var(--field-line); color: var(--fg); }
.hm-start .button.ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* Breadcrumbs on phones: the current page repeats the H1 just below it and wrapped to two lines, so only the
   parent shows, as a back link with a full tap target. The whole trail stays in the text for screen readers. */
@media (max-width: 560px) {
  .crumbs { font-size: 0; margin-bottom: 4px; }
  .crumbs a { font-size: .97rem; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; text-decoration: none; color: var(--fg2); }
  .crumbs a::before { content: "\2190"; content: "\2190" / ""; color: var(--accent); }
  .crumbs a:hover { color: var(--accent); }
}

/* Phones: the tool starts 20px sooner after the page head (lede, availability), so the first input lands on the
   first screen of a small phone too. */
/* The page head flows into its first band: about 48px from the intro to the form on a laptop, 28px on a phone. */
.page-head + .band.tight { padding-top: clamp(16px, 2.5vw, 36px); }

/* Very wide screens: the 76rem layout scales up instead of floating small in a field of paper. Zoom keeps every
   proportion (type, spacing, controls) exactly as designed; media queries still read the real viewport. */
@media (min-width: 1800px) { html { zoom: 1.125; } }
@media (min-width: 2200px) { html { zoom: 1.25; } }

/* Forms that are both the page wrapper and a card (/compare, /financing): the card's edge sits on the content edge,
   like every other card, instead of 16-40px outside it. */
form.wrap.card { width: calc(100% - 2 * clamp(16px, 4vw, 40px)); max-width: calc(var(--wrap) - 2 * clamp(16px, 4vw, 40px)); padding: clamp(20px, 2.4vw, 30px); }
/* Short pages (terms, sign-in): the footer sits at the bottom of the window, not halfway up it. */
body { min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
/* Legal pages (/privacy, /terms): the site's reading measure and rhythm. They had no styles of their own, so lines
   ran the full 1136px and the title sat against the header. Styling only; the text is unchanged. */
.prose { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 88px); }
.prose > * { max-width: 45rem; }
.prose h2 { margin: clamp(32px, 4vw, 48px) 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: 0 0 10px; }

/* Long reading pages (/help, /support, guides): three clear steps instead of two near-equal ones. Section headings
   ~25px (were 20px), questions 18px (were 17px, the body size), more air between sections. */
.hp-body, .guide-body { gap: clamp(36px, 5vw, 56px); }
.hp-group > h2, .guide-body > section > h2 { font: 700 clamp(1.3rem, 2vw, 1.55rem)/1.25 var(--sans); letter-spacing: -.012em; margin: 0 0 12px; }
.hp-qa { padding: 18px 0; }
.hp-qa h3 { font: 650 1.125rem/1.35 var(--sans); margin: 0 0 6px; }

/* Home hero (980px+): the headline and the example card share a top line, instead of the copy floating ~80px down
   the side of the taller card. */
@media (min-width: 980px) { .hm-hero-grid { align-items: start; } .hm-hero-copy { padding-top: 0; } .hm-hero-copy .display.serif { margin-top: -0.14em; } }

/* Share and Print sit side by side at their natural widths (Print stretched to the column on report pages). */
.share-print { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 18px 0; }
.share-print .share-line { margin: 0; }
.share-print .print-btn { flex: none; }

/* Single-input tax calculators (mansion, mortgage recording, transfer, Peconic): on wider screens the answer sits
   beside the inputs and stays in view while you change them, instead of under a half-width form. */
@media (min-width: 980px) {
  .wrap.narrow-wide > .tx-form { max-width: 64rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 40px); align-items: start; }
  .tx-form > * { grid-column: 1; }
  .tx-form > .tx-result { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 96px; margin-top: 0; }
}

/* Loan Estimates: the results column is too narrow for a nine-column table at any width, so each offer is a card
   of labelled figures (the phone layout), the cheapest first as the table orders them. */
.le-table { min-width: 0 !important; }
.le-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.le-table tbody { display: grid; gap: 12px; }
.le-table tr { display: block; padding: 14px 16px; border: 1px solid var(--hair); border-radius: var(--r2); background: var(--card); }
.le-table th, .le-table td { display: block; border: 0; padding: 3px 0; max-width: none; }
.le-table th { padding-bottom: 8px; }
.le-table td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.le-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 500; }
/* Stacked rows: the label takes the free space; a value in several parts ("6.125% · 6.27% APR") stays together on
   the right instead of being spread across the row. */
.le-table td[data-label] { justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.le-table td[data-label]::before { margin-right: auto; padding-right: 16px; }
@media (max-width: 760px) {
  .stack-table td[data-label] { justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
  .stack-table td[data-label]::before { margin-right: auto; padding-right: 16px; }
}

/* Reading measure: running text in guides, help, support and legal pages at ~72 characters a line (38rem), not ~88
   (45rem); tables, callouts and source lists keep the full column. */
.guide-body p, .guide-body li, .guide-intro, .hp-qa p, .prose > p, .prose li { max-width: 38rem; }

/* Title insurance at 980px+: the inputs and the three premiums side by side, like the tax calculators. */
@media (min-width: 980px) {
  .wrap.narrow-wide > .ti-tool { max-width: 64rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 40px); align-items: start; }
  .ti-tool > * { grid-column: 1; }
  .ti-tool > .figs { grid-column: 2; grid-row: 1 / span 4; grid-template-columns: minmax(0, 1fr); margin-top: 0; }
}

/* Phones: the bar that mirrors a calculator's headline answer while it is below the screen (app.js). */
.result-bar { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: 14px; background: var(--card); color: var(--fg); box-shadow: var(--shadow); font: 500 .94rem/1.2 var(--sans); text-align: left; cursor: pointer; }
.result-bar[hidden] { display: none; }
.result-bar-label { color: var(--muted); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-bar b { font: 700 1.2rem/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-bar-arrow { color: var(--accent); font-weight: 700; }
@media (min-width: 601px) { .result-bar { display: none !important; } }
@media print { .result-bar { display: none !important; } }
/* Money fields: no browser spin arrows (the exact-value boxes beside sliders already hide them). */
.money-in input, .money-small input { -moz-appearance: textfield; appearance: textfield; }
.money-in input::-webkit-inner-spin-button, .money-in input::-webkit-outer-spin-button, .money-small input::-webkit-inner-spin-button, .money-small input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* While the result bar shows, the end of the page can still scroll clear of it. */
body:has(.result-bar:not([hidden])) main { padding-bottom: 76px; }

/* Details (third fresh juror): headings wrap in balanced lines (no lone "sell." on the home headline); money in the
   closing-cost table lines up on the right; the guides list on /tools gets section spacing, and its bullets sit on
   the first line of two-line links. */
h1, h2, .display, .h1, .h2 { text-wrap: balance; }
.costs thead th:nth-child(2), .costs td.tab { text-align: right; padding-right: 24px; }
.ux-tools + h3 { margin-top: clamp(32px, 4vw, 48px); }
.ux-guides li { padding: 6px 0; } .ux-guides a { display: inline; }

/* Guide contents as a fold: open on wider screens, folded on phones (app.js), a chevron that turns. */
.toc-summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; cursor: pointer; }
.toc-summary::-webkit-details-marker { display: none; }
.toc-summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); margin-right: 4px; }
details[open] > .toc-summary::after { transform: rotate(-135deg); }
.toc-summary .h4 { margin: 0; }
@media (min-width: 1100px) { .guide-article .guide-toc .toc-summary { pointer-events: none; cursor: default; } .guide-article .guide-toc .toc-summary::after { display: none; } }

/* Rent or buy, the totals table: plain labels, totals in bold over an ink rule, "of which" and "less" lines indented
   under their parent, and a width the eye can cross (labels were 700px from their figures). */
.rvb-totals { max-width: 44rem; }
.rvb-totals tbody th[scope=row] { font-weight: 400; }
.rvb-totals tr.rvb-sub th[scope=row] { padding-left: 16px; color: var(--fg2); }
.rvb-totals tr.rvb-strong th[scope=row] { font-weight: 700; }
/* Tablets: in the narrower answer column, paired figures stack instead of squeezing to ~210px each. */
@media (min-width: 721px) and (max-width: 960px) { .closing-grid .figs { grid-template-columns: minmax(0, 1fr); } }

/* Brass marks the answer. The headline figure (.figure.total) keeps its brass rule; notices (samples, examples,
   privacy, input notes) take a quieter 3px rule at 35% ink, and their pill says what they are. */
.notice, .notice.sample, .rvb-notes, .tx-notes, .sr-notes, .tn-fee { border-left: 3px solid color-mix(in srgb, var(--fg) 35%, var(--card)); }

/* One answer per screen: supporting figures step down (18-23px, were 22-30px) so the headline figure (.big, up to
   42px) reads first. */
.fig-value { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.figure.big .fig-value { font-size: clamp(1.75rem, 4vw, 2.6rem); }

/* One grid for the question tools (Good Cause, rent freeze, repairs, stabilised rent check). On wide screens the
   answer sits beside the questions, level with the first one; on narrower screens it stays above. */
@media (min-width: 1100px) {
  .wrap.narrow-wide.q-tool { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 27.5rem) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; }
  .q-tool > * { grid-column: 1; max-width: none; }
  .q-tool > [role="status"] { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .q-tool > [role="status"] > h2:first-child { font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.2; }
}

/* Checked radios and checkboxes in ink, not the browser's blue (fields that set their own accent keep it). */
:root { accent-color: var(--fg); }

/* Fields side by side: the label's rows pack to the bottom, so the inputs line up whatever the label length and
   never stretch taller than the one field height. */
:is(.cols, .rp-cols) > * { align-content: end; }
:is(.cols, .rp-cols) > * > :is(input, select, .money-small, .money-in, .rp-unit) { align-self: end; }
/* The answer carries the brass: the headline figure's number, not only its rule (brass #6f5224 on card is 7:1;
   #d9b77c on dark card 9:1). */
.figure.total .fig-value { color: var(--accent); }
/* Tax pages: headings in the explainer get room before and below them, like every other page. */
.tx-body > .h3 { margin: 28px 0 8px; }
.tx-body > .h3:first-child { margin-top: 0; }
/* A page that ends on a tinted band gets a paper footer, so the two don't merge into one block. */
body:has(main > :last-child.paper-band) .site-footer, body:has(main > :last-child > :last-child.paper-band) .site-footer { background: var(--bg); }

/* Closing Disclosure: an amount over the limits stays in the loss colour, even as the headline figure. */
.cd-verdict.over .figure.total .fig-value { color: var(--loss); }
/* A printable checklist: empty boxes to tick, on screen and on paper. */
.tick-list { list-style: none; padding-left: 0; }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; }
/* An availability pill is as wide as its words, wherever it sits (grid and flex cards stretch children). */
.avail { justify-self: start; width: fit-content; }
/* "Available now" is the common case: quiet ink text, with only the small green dot as the signal. */
.avail-now { color: var(--fg2); border-color: var(--hair); }
/* Co-op board tests: a pass and a fail look different, not only read different. */
[data-out$="Verdict"][data-ok]::before { font-weight: 700; margin-right: 4px; }
[data-out$="Verdict"][data-ok="1"]::before { content: "✓" / ""; }
[data-out$="Verdict"][data-ok="0"] { color: var(--loss); }
[data-out$="Verdict"][data-ok="0"]::before { content: "✕" / ""; }
/* One grid for every calculator on wide screens: the form in a 27.5rem (440px) column, the answer in the rest, so
   the form edge and the answer edge sit in the same place on every tool. */
@media (min-width: 1100px) {
  :is(.closing-grid, .rm-grid, .rf-grid, .cd-grid, .le-grid, .sr-grid, .split:has(> form.card)) { grid-template-columns: minmax(0, 27.5rem) minmax(0, 1fr); column-gap: 48px; }
}
/* Phones: every control is at least 44px tall (the site's own standard; WCAG 2.5.8 asks 24px). */
@media (max-width: 760px) {
  .menu-button, .button.small, .chip, main summary, .offer-card details summary, .switch, label:has(> input[type=radio]), .ux-more a { min-height: 44px; }
  .switch { display: flex; align-items: center; }
}
/* The tax pages and title insurance join the one calculator grid: full content width, form 27.5rem, answer beside. */
@media (min-width: 1100px) {
  .wrap.narrow-wide > :is(.tx-form, .ti-tool) { max-width: none; grid-template-columns: minmax(0, 27.5rem) minmax(0, 1fr); column-gap: 48px; }
}
.ti-tool button[type="submit"], .tx-form button[type="submit"] { justify-self: start; }
/* The home example's answer is brass, as the same figure is on /closing-costs. */
.hm-big { color: var(--accent); }
/* A negative amount never splits from its minus sign. */
dd.loss, dd.gain, span.loss, span.gain, b.loss, b.gain { white-space: nowrap; }
/* Housing lottery limits: each cell on one line, amounts right-aligned, and the lowest band your income fits marked. */
.ami-table tbody :is(th, td) { white-space: nowrap; }
.ami-table td:nth-child(2), .ami-table thead th:nth-child(2) { text-align: right; padding-right: 12px; }
.ami-table tr.ami-mine { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.ami-table tr.ami-mine th { box-shadow: inset 3px 0 0 var(--fg); padding-left: 10px; }
/* Two bands of the same colour in a row read as one surface: the second drops its top padding, so the gap between
   them is one band's padding (about 64-96px) instead of two (150-170px). */
.band.tight:not(.paper-band) + .band.tight:not(.paper-band), .band.tight.paper-band + .band.tight.paper-band { padding-top: 0; }
/* A notice in a page head keeps the head's measure, not its own 52em. */
.page-head .notice { max-width: 45rem; }
.cards .card > .h3:first-child { margin-bottom: 6px; }
/* Compare cards share rows (subgrid): head, figures and link line up across cards whatever a title's length. */
@supports (grid-template-rows: subgrid) {
  .compare-cards > .ccard { grid-row: span 3; grid-template-rows: subgrid; row-gap: 4px; }
}
/* Inside the cards every value takes the same width, so each label wraps the same way and the rows line up. */
.compare-cards .ccard .metrics > div > dd { flex: 0 0 6.6em; text-align: right; }
.compare-cards .ccard .metrics > div > dt { flex: 1 1 0; min-width: 0; }
/* Studio "More figures": every label takes two lines' room, so the values in a row share a baseline. */
@media (min-width: 600px) { .r-more .figs .fig-label { min-height: 2.6em; } }
@media (min-width: 1100px) { .r-more .figs .fig-label { min-height: 3.9em; } }
/* A long form on a phone opens with a jump to its answer (Loan Estimates: the comparison sits ~5,000px down). */
.jump-link { display: none; }
@media (max-width: 860px) {
  .jump-link { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; font-weight: 600; margin: -4px 0 8px; }
  .jump-link::after { content: "\2193" / ""; margin-left: 6px; }
  #le-compare, #rm-compare, #ami-results { scroll-margin-top: 80px; }
}

/* Tax and title calculators: no row gap, so the answer's row span adds no empty space under a short form. */
@media (min-width: 1100px) {
  .wrap.narrow-wide > :is(.tx-form, .ti-tool) { row-gap: 0; }
  :is(.tx-form, .ti-tool) > :not(.tx-result):not(.figs) ~ :not(.tx-result):not(.figs) { margin-top: 14px; }
}
/* Help: an answer's rule ends with its text (38rem), and the last one gives way to the Next steps rule. */
.hp-qa { max-width: 38rem; }
.hp-qa:last-child { border-bottom: 0; }
/* Money columns read right-aligned in tabular figures (when the table is a table, not stacked cards). */
@media (min-width: 761px) {
  .rm-table :is(td, thead th:not(:first-child)), .ti-table :is(td, thead th:not(:first-child)), .rf-table :is(td:nth-child(2), thead th:nth-child(2)) { text-align: right; font-variant-numeric: tabular-nums; }
  .cd-table :is(td, th):is(:nth-child(3), :nth-child(4), :nth-child(5)) { text-align: right; font-variant-numeric: tabular-nums; }
  .cd-table td:is(:nth-child(3), :nth-child(4)) { white-space: nowrap; }
}
/* /tools: badges sit on each card's bottom line, level across the row, whatever the description's length. */
.ux-tool { grid-template-rows: auto 1fr auto; }
.ux-tool > .ux-badges { align-self: end; }
/* Co-op board: the three tests each take a full row of the answer column; at 215px their notes ran 8-9 lines. */
.figs.coop-figs { grid-template-columns: minmax(0, 1fr); }
/* Check a building: the records (or what you'll be able to check) sit beside the form on wide screens. */
.cb-results { margin-top: 32px; }
@media (min-width: 1100px) {
  .wrap.narrow-wide.cb-grid { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 27.5rem) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .cb-grid > * { max-width: none; }
  .cb-results { margin-top: 0; }
}
/* Anything that follows Next steps in the same column starts a new section, not a line below the last link. */
nav.next + * { margin-top: 48px; }
/* Tabular figures are for numbers: row labels and notes in tables keep proportional glyphs (Inter's tabular hyphen
   read "one - bedroom"). */
table th[scope="row"], table td.note { font-variant-numeric: normal; font-feature-settings: normal; }
/* Home example table: label and figures share a baseline; amounts right-aligned. */
@media (min-width: 761px) {
  .demo-table :is(th, td) { vertical-align: baseline; }
  .demo-table :is(td, thead th:not(:first-child)) { text-align: right; }
}
/* Home path cards end where their content ends (a stretched card left ~150-205px empty under a short list). */
.hm-goals { align-items: start; }
/* /tools cards: the whole card is the link (the title's link stretches over it), titles read as headings, not
   underlined links; one 16px gap and 20px 24px padding on the 8px scale; hover lifts the border to brass. */
.ux-tools { gap: 16px; }
.ux-tool { position: relative; padding: 20px 24px; transition: border-color .25s ease; }
.ux-tool > a { font-weight: 650; text-decoration: none; }
.ux-tool > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ux-tool:hover { border-color: var(--accent); }
.ux-tool:hover > a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.ux-tool:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ux-tool > a:focus-visible { outline: none; }
/* /renting: the folded tax explanations read as a section heading that opens. */
.rvb-taxes { margin: 0 0 32px; border-bottom: 1px solid var(--hair2); max-width: 52em; }
.rvb-taxes > summary { padding: 16px 0; }
.rvb-taxes > summary h2 { margin: 0; display: inline; }
/* Slider labels wrap into even lines, not a stranded last word ("30-/year"). */
.slider > span:first-child > label { text-wrap: balance; }
/* /renting: the decision sentence reads second, right under the headline figure. */
.rvb-verdict { font: 600 1.15rem/1.45 var(--sans); margin: 4px 0 20px; max-width: 40em; text-wrap: pretty; }

/* One card system on the 8px scale: 16px between cards, 20-24px inside (dense data cards on /compare and /studio
   keep their own tighter padding). */
.hm-goals, .access { gap: 16px; }
/* Shape tells you what you can press: round pills are controls (path chips, segmented choices, filters); labels
   that only describe (availability, tags, badges) have a 6px corner. */
.avail, .tag, .badge { border-radius: 6px; }

/* A chosen radio pill is unmistakable: ink border and a light ink fill, not only its 6px dot. */
:is(.gc-q, .rf-q, .mi-q) label:has(> input[type="radio"]:checked) { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, var(--card)); }
/* Renew or move: the submit button is the site's auto-width pill. */
.rm-form button[type="submit"], .rm-form .button { width: auto; justify-self: start; justify-content: center; }
/* Explainer bands: headings get room below, like everywhere else. */
:is(.gc-guide, .rf-guide, .rp-guide, .mi-guide, .rh-guide, .cb-guide) :is(h2, h3) { margin-bottom: 12px; }
/* Field groups inside a form card are flat sections with a rule and a subhead, like qualify and net effective:
   no boxes inside the card. */
:is(.rm-group, .rp-group, .rh-lease) { border: 0; border-top: 1px solid var(--hair2); border-radius: 0; padding: 16px 0 4px; }
:is(.rm-group, .rp-group, .rh-lease):first-of-type { border-top: 0; padding-top: 0; }
:is(.rm-group, .rp-group) > legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font: 650 1.06rem/1.35 var(--sans); }
:is(.rm-group, .rp-group) > legend + * { clear: both; }
.rh-lease legend { font: 650 1.06rem/1.35 var(--sans); }
/* Inside an answer card, the figure that answers the question (`.figure.answer`) is brass, like a headline figure. */
.figure.answer .fig-value { color: var(--accent); }
/* Paired fields share rows (subgrid): label, hint, input and error each line up across the pair, so a longer hint
   in one field no longer drops its neighbour's label. */
@supports (grid-template-rows: subgrid) {
  .cols { grid-auto-rows: auto; row-gap: 0; }
  .cols > :not(fieldset) { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; align-content: normal; }
  .cols > :not(fieldset) > .hint { grid-row: 2; }
  .cols > :not(fieldset) > :is(input, select, .money-small, .money-in, .rp-unit) { grid-row: 3; align-self: end; }
  .cols > :not(fieldset) > :is(.error, p) { grid-row: 4; }
}

/* Tax rate tables: rates and amounts right-aligned in tabular figures (tablet and wider). */
@media (min-width: 761px) {
  :is(.tx-rates, .tx-examples) :is(td, thead th:not(:first-child)) { text-align: right; font-variant-numeric: tabular-nums; }
}
/* Two-up figure grids go one-up on phones: at ~170px their notes ran 5-7 lines. */
@media (max-width: 480px) { .figs.two { grid-template-columns: minmax(0, 1fr); } }
/* Tax pages: the answer sits inside the form card, so it isn't boxed again; it keeps the brass rule. */
.tx-form > .tx-result { border: 0; border-left: 4px solid var(--accent); border-radius: 0; background: transparent; box-shadow: none; }
/* Closing Disclosure: an over-limit answer has its rule in the loss colour too, not red figure beside brass. */
.cd-verdict.over .figure.total { border-left-color: var(--loss); }
/* Round 10, guides. */
/* Glossary A to Z in columns (three on a laptop, two on a phone), not one 2,200px list. */
.guide-body ul.gl-az, .gl-az { display: block; columns: 3 11rem; column-gap: 24px; padding-left: 0; }
.gl-az li { break-inside: avoid; }
@media (max-width: 480px) { .guide-body ul.gl-az { columns: 2; } }
/* Guide tables: cells share a baseline; row labels in regular weight (a total row keeps its emphasis); a
   two-column table is as wide as its content needs, not the full 45rem. */
.prose table :is(th, td) { vertical-align: baseline; }
.prose tbody th[scope="row"] { font-weight: 400; }
.prose tbody tr:is(.total, .sum) th { font-weight: 650; }
.prose table:not(:has(:is(th, td):nth-child(3))) { width: auto; min-width: min(100%, 24rem); }
/* The lede keeps the body's reading measure. */
.guide-article .page-head .lede, .guide-head .lede { max-width: 38rem; }
/* Contents list: the house chevron on the left, quieter numerals. */
.toc-summary { justify-content: flex-start; }
.toc-summary::after { display: none; }
.toc-summary::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .25s var(--ease); margin-right: 2px; }
details[open] > .toc-summary::before { transform: rotate(45deg); }
@media (min-width: 1100px) { .guide-article .guide-toc .toc-summary::before { display: none; } }
.guide-toc li::marker { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Guides hub: "Last checked" is quiet meta, and with the link line it sits on each card's bottom edge, level
   across a row. */
.guide-list .program > span.muted.small { color: var(--muted); font-size: .875rem; margin-top: auto; padding-top: 8px; }
.guide-list .program > .link-arrow { margin-top: 4px; }
/* Guide tables of figures right-align every number column (text tables, the steps and the disclosures, stay left). */
@media (min-width: 761px) {
  .guide-table:not(.guide-steps):not(.guide-disclosures) :is(tbody td, thead th):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
}
/* Comparison tables stay tables on a phone (comparing across columns is their point), at 14px with tight cells. */
@media (max-width: 480px) {
  :is(.guide-compare, .guide-offers) { font-size: .875rem; }
  :is(.guide-compare, .guide-offers) :is(th, td) { padding: 8px 6px; }
  :is(.guide-compare, .guide-offers) :is(th, td):first-child { padding-left: 0; }
  :is(.guide-compare, .guide-offers) :is(tbody td, thead th):not(:first-child) { text-align: right; }
}
/* A card's last child adds no margin under the padding (bottoms were ~38-40px against 24px tops). */
.card > :last-child { margin-bottom: 0; }
/* /financing loan table: numbers right-aligned in tabular figures. */
@media (min-width: 761px) { table.offers :is(td, th):is(:nth-child(3), :nth-child(4), :nth-child(6), :nth-child(7)) { text-align: right; font-variant-numeric: tabular-nums; } }
/* Sample reports on a phone or tablet: the figures, chart and property details come before the assumptions panel
   (it was ~1,500px of sliders before them). Your own property (/studio/check) keeps its inputs first. */
@media (max-width: 960px) { .report-grid:not(.report-check) { grid-template-areas: "key" "more" "side"; } }
/* Every disclosure that uses the shared chevron lays out as a row, so the chevron draws as a chevron (on the
   mortgages page "The full comparison table" showed a thin bar instead). */
:is(.full-table, .choose, .rvb-taxes) > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
/* Loan cards: each metric's label and value share rows with its neighbours (subgrid), so a label that wraps to
   three lines ("Minimum down payment") doesn't push its value below the others. */
@supports (grid-template-rows: subgrid) {
  .oc-figs > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 2px; }
  .oc-figs > div > dd { align-self: end; }
}
/* Programme fact tables: a compact label column, so values and their source links have room. */
@media (min-width: 761px) { table.facts-table tbody th { width: 13rem; } }
/* Sample report answer column: one 16px rhythm, and the cash-needed line reads as the figures' footnote
   (it floated as loose body text with 9px above). */
.r-key { display: grid; gap: 16px; }
.r-key > * { margin-top: 0; margin-bottom: 0; }
.r-key > .key-line { color: var(--fg2); font-size: .94rem; padding: 0 2px; margin-top: -4px; }
.r-key > .verdict, .r-key > .verdict.big { margin-top: 8px; }

/* Home "What's free" cards: the call to action sits on each card's bottom edge and is only as wide as its words. */
.access > .card { display: flex; flex-direction: column; }
.access > .card > :last-child { margin-top: auto; }
.access > .card .button { align-self: flex-start; }
/* Home: one 16px gutter for every grid, so three- and four-column bands share column edges (they used 12, 16, 20
   and 28px). */
.hm-trust-list, .hm-guides, .link-list.hm-more { column-gap: 16px; }
.link-list.hm-more a { align-content: start; } /* text starts at the top of every tile (one sat 12px low) */
/* At 320px the comparison tables scroll inside themselves rather than widen the page. */
@media (max-width: 380px) { :is(.guide-compare, .guide-offers) { display: block; max-width: 100%; overflow-x: auto; } }

/* Round 13 (renting tools, stricter standard). */
/* A radio choice shows focus around the whole pill, not only its 16px dot. */
label:has(> input[type="radio"]:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Paired fields that stack on a phone keep the same 16px between fields as everywhere else. */
@supports (grid-template-rows: subgrid) { .cols { row-gap: 16px; } }
/* At 320px: the lottery table's last column may wrap; radio pills take a full row each so none is stranded. */
@media (max-width: 360px) {
  .ami-table tbody td:last-child { white-space: normal; }
  :is(.gc-q, .rf-q, .mi-q) label:has(> input[type="radio"]) { flex: 1 1 100%; }
}
/* Good Cause on phones: the figures inside the answer card lose their own box (a card in a card left ~205px). */
@media (max-width: 480px) { .gc-result .figs { border: 0; border-radius: 0; background: transparent; } .gc-result .figs .figure { padding-left: 0; padding-right: 0; } }
/* Round 14 (buying tools, stricter). */
/* The on-switch is ink, not brass (brass marks answers). */
.switch input:checked { background: var(--fg); border-color: var(--fg); }
.switch input:checked::after { background: var(--bg); }
/* Le APR stays with its rate on one line. */
.le-table td .muted { white-space: nowrap; }
@media (max-width: 380px) {
  /* Slider rows: the label takes its own line and every box the same width, left edges aligned. */
  .slider > span:first-child { flex-wrap: wrap; row-gap: 6px; }
  .slider > span:first-child > label { flex: 1 1 100%; }
  .slider .exact { min-height: 44px; }
  .slider .exact input, .slider .exact.wide input { width: min(8em, 40vw); }
  /* Segmented choices share the row evenly, so no option is stranded on a second line. */
  .seg { flex-wrap: nowrap; }
  .seg label { flex: 1 1 0; justify-content: center; padding: 0 8px; text-align: center; min-height: 44px; }
}
/* Closing Disclosure on phones: the highlighted (over-limit) row keeps text off the edge of its fill. */
@media (max-width: 760px) { .cd-table tr.cd-over { padding-left: 12px; padding-right: 12px; } }
/* A group's two-line legend sits inside the box (floated), not on its border. */
.cd-group > legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; }
.cd-group > legend + * { clear: both; }
/* Three-up figure grids go one-up under 480px too (at 320 they ran two 128px columns with 5-line notes). */
@media (max-width: 480px) { .figs.three { grid-template-columns: minmax(0, 1fr); } }

/* Round 15 (guides, stricter). */
/* Citation dots in quiet ink: brass is the one accent, and the green read as a second one. */
.src-dot { background: var(--muted); box-shadow: none; }
/* Guide tables sit flush with the text edge (cells started 8px in), top-aligned; text tables keep proportional
   glyphs so hyphens aren't widened. */
.guide-table :is(th, td):first-child { padding-left: 0; }
.guide-table :is(th, td):last-child { padding-right: 0; }
.guide-table :is(th, td) { vertical-align: top; }
:is(.guide-disclosures, .guide-steps) { font-variant-numeric: normal; font-feature-settings: normal; }
/* The page foot keeps the article's 38rem measure (callout and Use the tools ran 720px). */
.guide-article .wrap.narrow-wide > :is(.caution, nav.next) { max-width: 38rem; }
/* Glossary A to Z: wrapped terms are spaced like single-line ones. */
.gl-az li { margin-bottom: 8px; }
.gl-az a { min-height: 32px; }
/* A comparison table that scrolls at 320 shows a soft edge where more columns wait. */
@media (max-width: 380px) {
  :is(.guide-compare, .guide-offers) {
    background: linear-gradient(to right, var(--bg) 30%, transparent) left / 24px 100% no-repeat local,
                linear-gradient(to left, var(--bg) 30%, transparent) right / 24px 100% no-repeat local,
                radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--fg) 18%, transparent), transparent) right / 10px 100% no-repeat scroll;
  }
}
/* Round 16: on phones, option pills never break a label over two lines: they wrap as whole pills and stretch to
   fill each row, so no pill is left short on a line of its own. */
@media (max-width: 760px) {
  .seg { flex-wrap: wrap; }
  .seg label { flex: 1 1 auto; white-space: normal; }
}
/* Round 16: every control the round measured under 44px (money boxes, slider boxes, sliders, small arrow links, disclosure
   summaries) reaches it. */
@media (pointer: coarse), (max-width: 760px) {
  :is(.money-in, .money-small, .slider .exact) { min-height: 44px; }
  :is(.money-in, .money-small, .slider .exact) input { align-self: stretch; min-height: 42px; }
  input[type=range] { height: 44px; }
  .link-arrow.small { display: inline-flex; align-items: center; min-height: 44px; }
  .toc-summary { min-height: 44px; }
}
/* Round 16: the studio check form's paired fields share rows (subgrid), as .cols does, so "Asking price" (no hint)
   no longer sits 29px above "Rent it would earn" (with a hint) on the same row. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 641px) {
    .check-grid > .field { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; align-content: normal; }
    .check-grid > .field > .field-note { grid-row: 4; }
    .check-grid > .field > .hint { grid-row: 2; }
    .check-grid > .field > .money-in { grid-row: 3; align-self: end; }
  }
}
/* Round 16: one reading measure. Muted notes ran to 1136px (about 130 characters) and the lead line to 957px at
   1440; both now stop near 70-80 characters. The cash-flow note no longer touches the compare cards above it. */
main p.muted { max-width: 42rem; }
.lead-line { max-width: 34em; }
.compare-cards + p { margin-top: 16px; }
/* Header at large text sizes (200% text zoom, WCAG 1.4.4): the bar wraps instead of pushing Menu off the screen.
   Below 1240px, where the links have folded into Menu; at normal sizes everything fits on one row, so nothing moves. */
@media (max-width: 1239px) { .bar { flex-wrap: wrap; row-gap: 4px; } }
/* Footer at large text sizes: on phones the groups drop to one column only when two no longer fit (10rem each at normal
   size, so two columns stay), and a long address breaks instead of widening its column. */
@media (max-width: 860px) { .foot { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); } }
.foot-nav { grid-template-columns: minmax(0, 1fr); }
.foot-nav a { overflow-wrap: anywhere; }
/* Footer links show hover like every other text link (they had no hover change). */
.foot-nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: .2em; }
/* Header controls reach 44px (round 17): nav links grow their tap area by 5px above and below, with the underline kept
   where it was under the text; the theme switch is 44px; Menu is 44px and shows hover like the other pills. */
.primary a { padding: 11px 0; }
.primary a::after { bottom: 5px; }
.theme-toggle { width: 44px; height: 44px; }
.menu-button { min-height: 44px; }
.menu-button:hover { border-color: var(--accent); color: var(--accent); }
/* Round 17 (home, 200% text size): nothing in a card is wider than the card. The home calculator's single column
   could grow to its content, link tiles had a 15rem floor that doubled with the text, and a slider's label and exact
   box were held on one line. Now the column is capped, tiles take min(100%, 15rem), and the slider head wraps only when
   the two don't fit (at normal sizes they stay on one row). */
.hm-form { grid-template-columns: minmax(0, 1fr); }
.link-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.slider > span:first-child { flex-wrap: wrap; row-gap: 6px; }
@media (min-width: 761px) { .slider > span:first-child > label { flex: 1 1 min-content; } }
/* Round 17: on phones every pill-shaped control reaches 44px, like buttons and fields. Text links keep their 40px
   floor (well above the 24px WCAG minimum), so lists don't loosen. */
@media (pointer: coarse), (max-width: 760px) {
  .chip, .pipeline a, .ux-jump a, .ux-more a, .status-pick select, .offer-card details summary, .rental-more summary { min-height: 44px; }
}
/* Round 17 (home, harder standard). */
/* A slider box holding a number outside its range says so under the slider (app.js rangeNote). */
.exact-note { margin: 4px 0 0; font-size: .9rem; color: var(--loss); }
.exact-note:empty { display: none; }
.exact:has(input[aria-invalid="true"]) { border-color: var(--loss); }
/* Sliders are 44px tall at every width (they were 36px above 760px). */
input[type=range] { height: 44px; }
/* "Every tool" pills are controls: 44px at every width, not only on phones. */
.ux-more a { min-height: 44px; }
/* Goal cards in a row share one height (they differed by up to 158px); content still starts at the top. */
.hm-goals { align-items: stretch; }
/* Guide links on the home page show hover, like every other text link. */
.hm-guide-group a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
/* Round 17: the property check form says why a box is invalid in words under it (app.js), not only in colour. */
.field-note { margin: 4px 0 0; font-size: .9rem; }
.field-note:empty { display: none; }
/* "Every tool" on the home page is a disclosure (closed on phones by app.js); its groups keep their spacing inside it. */
.hm-all-d > summary { cursor: pointer; }
.hm-all-d > summary .h4 { margin: 0; }
.hm-all-d > .hm-all-group { margin-top: 14px; }
.hm-more-h { margin: 40px 0 0; }
.hm-more-h + .hm-more { margin-top: 12px; }
/* Round 18 (renting, 200% text): the repairs page's steps column is capped, and the letter's blank lines never ask for
   more than their line (a 13em minimum beat max-width: 100% and pushed the page to 465px at 200% text). */
.rp-steps { grid-template-columns: minmax(0, 1fr); }
.rp-blank { min-width: min(7em, 100%); }
.rp-blank.wide { min-width: min(13em, 100%); }
.rp-problems .rp-blank { min-width: 0; }
/* Round 18 (renting tools, round-17 standard). */
/* An invalid money box is marked in the loss colour whichever way it became invalid (aria-invalid from the tool's own
   check, not only :user-invalid); before, the box border looked the same valid or not. */
:is(.money-small, .money-in):has(input[aria-invalid="true"]) { border-color: var(--loss); box-shadow: 0 0 0 1px var(--loss); }
/* Error text is the loss colour on every tool (some were body ink). */
:is(.gc-err, .rf-err, .rp-err, .rh-err, .rm-err, .mi-err) { color: var(--loss); }
/* Option chips show hover, like the other pills. */
:is(.gc-opts, .rf-opts, .mi-opts) label:hover, .seg label:not(:has(input:checked)):hover { border-color: var(--fg2); background: color-mix(in srgb, var(--fg) 4%, var(--card)); }
/* Checkbox chips (move-in rooms) show which are ticked, as the radio chips do. */
:is(.gc-q, .rf-q, .mi-q, .mi-opts) label:has(> input[type="checkbox"]:checked) { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, var(--card)); }
/* An answer or heading focused by script after a submit is not a control: no ring around the whole card. */
main [tabindex="-1"]:focus, main [tabindex="-1"]:focus-visible { outline: none; }
/* Round 18 re-review: hover and pressed states the review measured as missing. */
.crumbs a:hover { color: var(--accent); }
main details > summary:hover { color: var(--accent); }
.switch:hover input:not(:checked) { border-color: var(--fg2); }
input[type=range]:hover::-webkit-slider-thumb { border-color: var(--accent); }
input[type=range]:hover::-moz-range-thumb { border-color: var(--accent); }
.seg label:active, :is(.gc-opts, .rf-opts, .mi-opts) label:active { transform: translateY(1px); }
.seg label:not(:has(input:checked)):active { background: color-mix(in srgb, var(--fg) 8%, var(--card)); }
/* Round 19 (buying tools, 200% text): a fieldset's default min-width (its content) let a pill group push out of its
   card, and a single-column tool form grew to its input's natural width. Neither changes anything at normal sizes. */
fieldset { min-width: 0; }
:is(.tx-form, .closing-form, .check-form) { grid-template-columns: minmax(0, 1fr); }
:is(.money-in, .money-small) { min-width: 0; }
:is(.money-in, .money-small) input { min-width: 0; }
/* A citation's "checked" date stays on one line as a unit, but wraps inside itself when even a whole line is too
   narrow for it (200% text on a phone pushed it 41px off the screen). */
.src-fresh, .src-fresh.short { display: inline-block; max-width: 100%; white-space: normal; }
/* Round 35: on wide screens a short date stays on one line rather than wrapping alone. */
@media (min-width: 700px) { .src-fresh.short { white-space: nowrap; } }
/* Guide tables: column headings may wrap (figures in the cells still don't), so a heading like "Rate on the full price"
   can't push a two-column table past the screen at large text sizes. */
.guide-table thead th { white-space: normal; }
/* Wide guide tables sit in a scrolling region: at large text sizes on a phone they scroll sideways instead of pushing
   the page wider. The table itself keeps its full-width layout. Lists of sliders and the help page's email address
   fit at any text size too. */
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: 2px; }
.sliders { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
main a[href^="mailto:"] { overflow-wrap: anywhere; }
/* Large text: the last column's heading in a guide table may wrap (its figures still don't), and the portfolio mix
   rows on /compare size their label and value columns to min(…, the row) so they shrink instead of overflowing. */
.guide-table thead th:last-child { white-space: normal; }
.mix-row { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) minmax(min-content, 6.5rem); }
@media (max-width: 560px) { .mix-row { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr) minmax(min-content, 5.2rem); } }
/* A heading breaks a word only when the word alone is wider than its column (200% text beside a report's thumbnail). */
h1, h2, .display { overflow-wrap: break-word; }
/* Stacked tables on phones: a cell's label and its value share a baseline, so a link value (40px tap height) no longer
   sits 10px below its label. */
.stack-table td[data-label] { align-items: baseline; }
.stack-table td[data-label] a { min-height: 0; padding-block: 10px; margin-block: -10px; }
/* Round 21: fine print keeps a reading measure (it ran to about 94 characters a line at 1440), and programme card
   titles are headings now, with the look they had. */
main .fine { max-width: 68ch; }
.card.program h2 { margin: 0; }
/* Guides: paragraphs within a section sit a little further apart (14px on a 28px line read as one dense block, against
   about 70px above each heading). */
.guide-body p + p { margin-top: 20px; }

/* Round 39: the example notice spans the whole control row on /financing. */
.fin-example { grid-column: 1 / -1; margin: 0; }
/* Rental tracker at 200% text on a phone: a rental card is a size container, and when it is narrower than 15rem
   (never at normal text size, even at 320px; a 390px phone at 200% text is about 10rem) its figures, score parts and
   header go to columns that shrink to the card, so nothing is pushed off the screen (it reached 470px at 390). */
.rental { container: rental / inline-size; }
@container rental (max-width: 15rem) {
  .rental-figs, .rental-figs.small-figs, .rental .parts { grid-template-columns: minmax(0, 1fr); }
  .rental-head { grid-template-columns: auto auto minmax(0, 1fr); }
  .rental-title .h4, .rental-title .small { overflow-wrap: anywhere; }
  .rental-head .status, .status-pick { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
}
/* 200% text (ce35daf8): at desktop widths the header's links, sign-in and Menu no longer fit one row and ran off the
   right edge (WebKit, 1280px: scrollWidth 1976). The header is a size container: when it is narrower than the row
   needs (about 72rem, which grows with the reader's text size), the bar and its links wrap instead. At normal text
   size that only happens below 1152px, where the 1240px rule above already wraps the bar, so nothing moves. */
.site-header { container-type: inline-size; }
@container (max-width: 72rem) { .bar { flex-wrap: wrap; row-gap: 4px; } .primary { flex-wrap: wrap; justify-content: flex-end; min-width: 0; } }
/* 200% text on a 320px phone (ce35daf8): the home page's "Cash needed to buy" figure (one unbreakable number) was
   2rem at least, wider than the card; it now follows the viewport there too (unchanged at normal text size), and its
   grid track can't be pushed wider than the card. Toolbar buttons may wrap their label ("Log your own apartment
   (free account)") instead of running off the edge. */
.hm-total { grid-template-columns: minmax(0, 1fr); }
.hm-big { font-size: clamp(min(2rem, 10vw), 6vw, 2.6rem); }
.toolbar .button { white-space: normal; flex-wrap: wrap; max-width: 100%; text-align: left; }
/* Grid items that set their track's width by their longest word (the rental tracker's side cards, the financing
   offer cards on phones, the tracker's dates) may shrink to the screen and wrap their text (ce35daf8). */
.tracker-side > *, .offer-cards > *, .compare-cards > * { min-width: 0; }
.tracker-side .card, .offer-card { overflow-wrap: anywhere; }
.dates li { grid-template-columns: 4.4rem minmax(0, 1fr); }
/* A figure's value may wrap between words ("Not within 10 years" was one 515px line at 200% text on /renting at
   1280px); a number has no spaces, so it still stays whole. Comparison cards on a 320px phone shrink to the screen
   too (ce35daf8). The closing-disclosure table now sits in .table-wrap, so above phone width it scrolls inside its
   box instead of widening the page. */
.figure > * { min-width: 0; }
.fig-value { white-space: normal; }
.ccard > * { min-width: 0; }
.ccard { overflow-wrap: anywhere; }
/* 200% text in a narrow results column at 1280px (ce35daf8): a citation's short "checked" date (nowrap from 700px,
   round 35) and the "Share these numbers" button ran off the edge. The date is an inline-block, so it still moves to
   the next line as one unit; it wraps inside itself only when it is wider than the whole line. The share button's
   label may wrap too. */
@media (min-width: 700px) { .src-fresh.short { white-space: normal; } }
.share-line .button { white-space: normal; max-width: 100%; height: auto; min-height: 44px; text-align: left; }
/* Guides editorial pass (2026-11-17): the "In short" summary under the lede, and one worked-example ledger. */
.guide-summary { border-top: 1px solid var(--hair); padding: 16px 0 0; margin: 20px 0 0; max-width: 38rem; }
.guide-summary h2 { margin: 0 0 8px; }
.guide-summary ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.guide-summary li { font-size: 1.0625rem; line-height: 1.55; }
.guide-table.guide-worked { max-width: 38rem; }
.guide-table.guide-worked tbody td:first-child { font-weight: 400; }
.guide-table tr.total :is(th, td) { font-weight: 600; border-top: 1px solid var(--fg); }
.guide-table.guide-worked tbody td:last-child { white-space: nowrap; }
/* Lease disclosures as a printable tick list: the item, then a muted When · Applies to · Rule line. */
.tick-list .tick-meta { display: block; margin-top: 2px; }
.tick-list .tick-meta a { display: inline-flex; align-items: center; min-height: 40px; }
/* A quoted statute set on its own (hamptons-summer-rentals), flush with the text column. */
.guide-body blockquote { margin: 0 0 16px; padding: 0 0 0 16px; border-left: 3px solid var(--hair); max-width: 38rem; }
