@charset "UTF-8";
/* New Build Checker / Vergelijk Nieuwbouw. Values come from brand/tokens.css.
   White and spacious; ink only as small accents. Green is kept for fit and match signals. */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}
:root {
  --ink: #0e1b33;
  --text: #2a3550;
  --muted: #5f6678;
  --line: #e6e3dc;
  --line-strong: #c9c5bc;
  --soft: #f6f5f1;
  --accent: #1555c0;
  --accent-hover: #0f3f92;
  --accent-soft: #eaf0fb;
  --green: #1e911e;
  --gold: #fcc13f;
  --warn: #7a5600;
  --warn-soft: #fdf3db;
  --radius: 20px;
  --radius-tile: 14px;
  --wrap: 1200px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.025em; margin-top: 2em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.section + .section { padding-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 600px; }

.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.bar { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand .mark { flex: none; }
.wordmark { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-note { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-left: 6px; }
.bar nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.bar nav a { color: var(--text); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--accent); }
.site-footer { background: var(--ink); color: #9fb0cc; margin-top: 64px; padding: 56px 0 28px; font-size: 14px; }
body.home .site-footer { margin-top: 0; border-top: 1px solid #24375e; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.foot-grid p { max-width: 46ch; margin: 14px 0 0; }
.foot-grid nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-grid nav a { color: #c9d3e6; text-decoration: none; }
.foot-grid nav a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #24375e; font-size: 13px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div { grid-column: 1 / -1; } }

.hero { padding: 88px 0 64px; background: var(--soft); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 0.98; letter-spacing: -0.045em; max-width: 16ch; }

.search { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; margin: 24px 0; }
.search.compact { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 18px 40px -22px rgba(21, 85, 192, 0.45); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
label > span { color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  font: 16px/1.4 var(--sans); color: var(--ink); width: 100%; padding: 10px 14px; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-tile); background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
label.check { flex-direction: row; align-items: flex-start; gap: 10px; }
label.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
label.check > span { color: var(--ink); }
label.check.ads-ok small { display: block; margin-top: 4px; line-height: 1.4; font-size: 0.95em; }
label.check.ads-ok small strong { font-weight: 700; }
button, .button {
  font: 500 16px/1.2 var(--sans); min-height: 48px; padding: 14px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color 150ms, border-color 150ms;
}
button:hover, .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.ghost, .button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
button.ghost:hover, .button.ghost:hover { background: transparent; border-color: var(--ink); }
/* The brand's text arrow, on the two actions a visitor takes. */
.search button[type="submit"]::after, .lead-box form button[type="submit"]::after { content: "\2192"; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-top: 20px; }
.card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform 150ms, box-shadow 150ms; background: #fff; display: flex; flex-direction: column; }
.card-media img, .placeholder { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--soft); }
.card:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -30px rgba(14, 27, 51, 0.35); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.card h3 { margin: 0 0 4px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.place { color: var(--accent); font: 400 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 4px; }
.card-facts { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 10px 0 0; flex-wrap: wrap; }
.card-facts dt { font-size: 13px; color: var(--muted); }
.card-facts dd { margin: 0; }
.price { font: 500 21px/1.3 var(--mono); color: var(--ink); letter-spacing: -0.02em; }
.pill { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 13px; line-height: 1.4; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.option, .pill.contacted, .pill.qualified { background: var(--warn-soft); color: var(--warn); }
.empty { padding: 32px; background: var(--soft); border-radius: var(--radius); color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 18px; font-size: 16px; }
.steps li.step-2 { border-top-color: var(--green); }
.steps li.step-3 { border-top-color: var(--gold); }
.steps li::before { content: "0" counter(step); display: block; color: var(--muted); font: 400 12px var(--mono); letter-spacing: 0.14em; margin-bottom: 10px; }
.steps h3 { font-size: 24px; }

.project-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 32px; margin: 24px 0; }
.project-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .project-cols { grid-template-columns: 1fr; } }
.headline-facts { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.headline-facts > div { display: flex; flex-direction: column; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 28px; margin: 0; }
.facts > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { color: var(--ink); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.lead-box { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #fff; position: sticky; top: 16px; }
@media (max-width: 860px) { .lead-box { position: static; } }
.lead-box h2 { margin-top: 0; font-size: 24px; }
.lead-box form { display: grid; gap: 14px; }
.lead-box.done { background: var(--accent-soft); border-color: transparent; }
.error { background: #fdecec; color: #8f1d1d; padding: 10px 14px; border-radius: var(--radius-tile); }
.hp { position: absolute; left: -9999px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0 24px; }
/* A box that scrolls sideways is also where its hidden labels are placed from: a screen-reader label in the homes
   table was placed from the page instead, landed 720px out and made a project page wider than a phone. */
.table-scroll, .compare-scroll, .kr-matrix-box, .pl-table, .g-table { position: relative; }
/* A row that scrolls sideways fades where there is more (fadeRows in public/site.js). */
.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
table.units { border-collapse: collapse; width: 100%; font-size: 15px; }
.units th, .units td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.units th { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--soft); white-space: nowrap; }
.units tr:last-child td { border-bottom: 0; }
.units .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.units td.num strong { font: 500 15px var(--mono); }
.units tr.is-sold td { color: var(--muted); }
/* The homes of a project on a phone (owner, 2026-11-28: tables do badly there): each home a card of its own instead of
   a table twice the width of the screen. Its reference and status, the type, the sizes with their names, then the
   price and the way to ask. The order puts the status beside the reference, ahead of the cells that come before it. */
@media (max-width: 640px) {
  table.homes, table.homes tbody { display: block; }
  table.homes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.homes tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.homes tr:last-child { border-bottom: 0; }
  table.units.homes td { padding: 0; border: 0; text-align: left; white-space: normal; order: 4; }
  table.homes td.ref { order: 1; grid-column: 1 / 4; font: 400 12px var(--mono); letter-spacing: 0.06em; color: var(--muted); }
  table.homes td.u-status { order: 2; grid-column: 4 / 7; justify-self: end; }
  table.homes td.u-type { order: 3; grid-column: 1 / -1; margin-top: -4px; font-weight: 600; color: var(--ink); }
  table.homes td.u-fact { grid-column: span 2; white-space: nowrap; color: var(--ink); }
  table.homes tr.is-sold td.u-fact, table.homes tr.is-sold td.u-type { color: var(--muted); }
  table.homes td.u-fact::before { content: attr(data-label); display: block; font: 400 10px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  table.homes td.u-price { order: 5; grid-column: 1 / 5; }
  table.units.homes td.u-price strong { font-size: 18px; }
  table.homes td.u-ask { order: 6; grid-column: 5 / 7; justify-self: end; white-space: nowrap; }
}

.prose { max-width: 70ch; }

/* Back office */
.tabs { list-style: none; padding: 0; margin: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); text-transform: capitalize; }
.tabs a[aria-current="page"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.form-grid.tight { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid button { justify-self: start; }
.stack { display: grid; gap: 12px; max-width: 760px; }
.stack button { justify-self: start; }
.notes { list-style: none; padding: 0; margin: 20px 0; }
.notes li { border-top: 1px solid var(--line); padding: 12px 0; }
.notes p, .quote { white-space: pre-wrap; margin: 4px 0 0; }
.quote { background: var(--soft); padding: 14px 16px; border-radius: var(--radius-tile); }
.danger-zone { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Back office: denser than the public pages. */
.admin { font-size: 16px; }
.admin h1 { font-size: 32px; letter-spacing: -0.025em; }
.admin h2 { font-size: 22px; }
.admin button, .admin .button { min-height: 40px; padding: 10px 16px; font-size: 14px; }
/* The mail that asks Casaviva for a project's documents, shown on a request (src/admin.tsx). */
.admin pre.mail-text { white-space: pre-wrap; font: 13px/1.5 var(--mono); background: var(--soft); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0; }
.admin button[disabled] { opacity: 0.5; cursor: not-allowed; }
/* The side of a request: the Casaviva box above the follow-up, sticking as one column. */
.admin .lead-side { display: grid; gap: 16px; position: sticky; top: 16px; }
.admin .lead-side .lead-box { position: static; }

@media (max-width: 520px) {
  .hero { padding: 56px 0 40px; }
  .bar { padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, button, .button { transition: none; }
  .card:hover { transform: none; }
}

/* ---- Brand components shared by the homepage and the match page ---- */
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
.eyebrow { font: 400 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0; }
/* Serif highlight: only the words that are about the visitor. */
.hl { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; padding-right: 0.06em; }
.hl.fit { background: linear-gradient(100deg, #1555c0 0%, #1e911e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl.glow { background: linear-gradient(100deg, #4d8ef7 0%, #3fbf3f 55%, #fcc13f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Over the hero photo the gradient word can land on a white wall: a soft shadow keeps it readable. */
.hero-band .hl.glow { filter: drop-shadow(0 1px 6px rgba(6, 15, 35, 0.6)); }
.hl.blue { color: var(--accent); }
.hl.gold { color: var(--gold); }

.button.small, button.small { min-height: 40px; padding: 10px 16px; font-size: 14px; gap: 8px; }
.button.large { min-height: 56px; padding: 16px 26px; font-size: 17px; }
.button.white { background: #fff; border-color: #fff; color: var(--ink); }
.button.white:hover { background: #e6ecf8; border-color: #e6ecf8; }
.button.outline-dark { background: transparent; border-color: #3a4c72; color: #fff; }
.button.outline-dark:hover { background: transparent; border-color: #fff; }
.bar nav { align-items: center; }
.bar nav a.button { color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 6px; padding: 14px 4px; font-weight: 500; font-size: 16px; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 6px 0 0; }

.chat-input {
  display: flex; align-items: center; gap: 10px; max-width: 720px; padding: 8px 8px 8px 22px; border-radius: 999px;
  border: 2px solid transparent; background-origin: border-box; background-clip: padding-box, border-box;
  background-image: linear-gradient(#fff, #fff), linear-gradient(100deg, #1555c0, #1e911e 60%, #fcc13f);
  box-shadow: 0 18px 40px -22px rgba(21, 85, 192, 0.45);
}
.chat-input input[type="text"] { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; padding: 12px 0; font-size: 17px; }
.chat-input input[type="text"]:focus-visible { outline: 0; }
.chat-input:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.chat-input input::placeholder { color: #8a90a0; }
.chat-input button { flex: none; font-size: 15px; padding: 13px 20px; }
.chat-input.dark { background-image: linear-gradient(#13234a, #13234a), linear-gradient(100deg, #4d8ef7, #3fbf3f 60%, #fcc13f); box-shadow: 0 24px 60px -24px rgba(77, 142, 247, 0.6); }
.chat-input.dark input[type="text"] { color: #fff; }
.chat-input.dark input::placeholder { color: #9fb0cc; }
.chat-input.dark:focus-within { outline-color: #fff; }
.chat-input.dark button { background: #fff; border-color: #fff; color: var(--ink); }
.chat-input.dark button:hover { background: #e6ecf8; border-color: #e6ecf8; }
@media (max-width: 520px) {
  .chat-input { flex-direction: column; align-items: stretch; border-radius: 28px; padding: 8px 8px 8px 8px; }
  .chat-input input[type="text"] { padding: 10px 12px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-block; font-size: 13px; line-height: 1.4; border-radius: 999px; padding: 5px 10px; background: var(--accent-soft); color: var(--accent); }
.chip.match { background: #e9f5e9; color: #156f15; }
.chip.match::before { content: "\2713\00a0"; font-weight: 700; }
.chip.tradeoff { background: var(--warn-soft); color: var(--warn); }
.chip.tradeoff::before { content: "!\00a0"; font-weight: 700; }

.ring { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 58px; height: 58px; --w: 5px; font: 500 17px var(--mono); color: var(--ink); }
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--c0, #1555c0) 0%, var(--c, #1e911e) calc(var(--n) * 1%), #ebe8e1 calc(var(--n) * 1%) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w) + 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w) + 1px));
}

.bubble { max-width: 88%; margin: 0; font-size: 15px; line-height: 1.5; padding: 11px 15px; background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; align-self: flex-start; color: var(--text); }
.bubble.user { background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 18px 18px 4px 18px; align-self: flex-end; }
.bubble .score { font: 600 15px var(--mono); color: var(--green); }
.bubble .chips { margin-top: 8px; }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card-media { position: relative; display: block; }
.card .tag { position: absolute; left: 14px; top: 14px; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 6px; padding: 5px 8px; }
.card.top { border: 2px solid transparent; background-origin: border-box; background-clip: padding-box, border-box; background-image: linear-gradient(#fff, #fff), linear-gradient(100deg, #1555c0, #1e911e 60%, #fcc13f); box-shadow: 0 24px 50px -30px rgba(21, 85, 192, 0.5); }
.card .chips { margin: 8px 0 4px; }

/* ---- Match page ---- */
.match h1 { margin-top: 10px; }
.thread { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 24px 0 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.match .chat-input { margin-bottom: 10px; }
.match .grid { margin-top: 32px; }
.match-note { margin-top: 32px; max-width: 70ch; }

/* ---- Homepage bands ---- */
body.home { background: #fff; }
.bands { overflow-x: clip; }
/* Read by screen readers and search engines, not shown. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.band { position: relative; overflow: hidden; }
.band.white { background: #fff; }
.band.paper { background: var(--soft); }
.band.blue { background: var(--accent); border-color: var(--accent); color: #fff; }
.band.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.band.aurora::before, .band.aurora-end::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.band.aurora::before {
  background:
    radial-gradient(50% 70% at 10% 0%, rgba(77, 142, 247, 0.5), rgba(77, 142, 247, 0) 70%),
    radial-gradient(40% 60% at 92% 8%, rgba(63, 191, 63, 0.28), rgba(63, 191, 63, 0) 70%),
    radial-gradient(45% 55% at 75% 105%, rgba(252, 193, 63, 0.25), rgba(252, 193, 63, 0) 70%);
}
.band.aurora-end::before {
  background:
    radial-gradient(45% 70% at 85% 0%, rgba(77, 142, 247, 0.45), rgba(77, 142, 247, 0) 70%),
    radial-gradient(40% 60% at 10% 40%, rgba(252, 193, 63, 0.18), rgba(252, 193, 63, 0) 70%);
}
.band-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 88px 32px; }
.band h1, .band h2 { margin: 0; }
.band.ink h1, .band.ink h2, .band.blue h2, .wave h2 { color: #fff; }
.display-hero { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.045em; }
.display { font-size: clamp(40px, 5.2vw, 68px); line-height: 0.98; letter-spacing: -0.045em; }
.h-band { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
.body-l { font-size: 18px; line-height: 1.6; max-width: 480px; margin: 0; }
.band-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.band-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; margin-bottom: 40px; }
.band-head.row > div { display: flex; flex-direction: column; gap: 14px; }
.band-head.row .text-link { padding: 0; }
.band .grid { margin-top: 0; gap: 20px; }
.band .steps { margin: 0; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.band .steps li { padding-top: 20px; }
.band .steps li::before { font-size: 14px; letter-spacing: 0; margin-bottom: 14px; color: var(--accent); }
.band .steps li.step-2::before { color: var(--green); }
.band .steps li.step-3::before { color: var(--warn); }
.band .steps h3 { margin-bottom: 14px; }
.band .steps p { margin: 0; }

.hero-band .band-in { padding: 22px 32px 96px; display: flex; flex-direction: column; gap: 80px; }
.hero-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-nav nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.hero-nav nav a { color: #c9d3e6; text-decoration: none; }
.hero-nav nav a:hover { color: #fff; }
.brand.reversed { color: #fff; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 920px; }
.band.ink .eyebrow { color: #9fb0cc; }
.band.ink .lead { color: #c9d3e6; margin: 0; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.suggest button { min-height: 0; font: 400 14px var(--sans); color: #dbe3f2; background: transparent; border: 1px solid #33456b; border-radius: 999px; padding: 8px 14px; }
.suggest button:hover { background: transparent; border-color: #fff; color: #fff; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.split.narrow { gap: 56px; padding-top: 88px; padding-bottom: 88px; }
.split-copy { display: flex; flex-direction: column; gap: 22px; }
.split-copy p { margin: 0; }
.split-media { position: relative; }
.split-media img { width: 100%; object-fit: cover; }
.split-media.right { padding: 0 0 40px 28px; }
.split-media.right img { height: 480px; border-radius: 240px 32px 32px 32px; }
.split-media.left { padding: 36px 28px 0 0; }
.split-media.left img { height: 500px; border-radius: 999px 999px 32px 32px; }
.float-card { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 22px; padding: 16px 20px 16px 16px; box-shadow: 0 30px 60px -24px rgba(14, 27, 51, 0.35), 0 0 0 1px rgba(14, 27, 51, 0.06); }
.float-card div { display: flex; flex-direction: column; gap: 3px; }
.float-card strong { font-size: 16px; }
.float-card span:not(.ring) { font-size: 13px; color: var(--muted); }
.float-chip { position: absolute; right: 24px; top: 28px; font-size: 14px; padding: 8px 13px; box-shadow: 0 12px 30px -14px rgba(14, 27, 51, 0.35); }
.split-media .bubble { position: absolute; max-width: 270px; box-shadow: 0 24px 50px -24px rgba(14, 27, 51, 0.35); }
.split-media .bubble.user { right: 0; top: 0; max-width: 260px; }
.split-media .bubble:not(.user) { left: -12px; bottom: 40px; }
.lang-pills { display: flex; gap: 8px; padding-top: 6px; font: 400 13px var(--mono); }
.lang-pills > * { border-radius: 999px; padding: 8px 15px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.lang-pills [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lang-pills a:hover { border-color: var(--ink); }

.chat-mock { margin: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.chat-mock .bubble.user { max-width: 80%; }
.chat-mock figcaption { color: var(--muted); }
.ranked { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ranked li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #efece6; }
.ranked li:last-child { border-bottom: 0; }
.ranked strong { font-size: 15px; }
.ranked .rank { font: 400 13px var(--mono); color: var(--muted); }
.ranked .change { font: 400 12px var(--mono); }
.ranked .change.up { color: #17761a; }
.ranked .change.down { color: var(--warn); }
.ranked .pct { font: 600 14px var(--mono); color: var(--ink); }
.ranked .pct.top { color: #17761a; }

/* The wave breaks out of the side padding and has no radius. */
.wave { color: #fff; display: flex; flex-direction: column; background: var(--soft); }
.wave-edge { display: block; width: 100%; height: 90px; fill: var(--accent); }
.wave-body { background: var(--accent); margin: -1px 0; }
.wave .band-in { padding: 40px 48px 24px; display: flex; flex-direction: column; gap: 18px; }
.wave .eyebrow, .band.blue .eyebrow { color: #cfe0ff; }
.h-wave { font-size: clamp(36px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.04em; max-width: 820px; }
.wave-text { display: block; width: 100%; height: auto; overflow: visible; margin: 8px 0 24px; }
.wave-text text { font: italic 400 58px "Instrument Serif", Georgia, serif; fill: #fff; }
.wave-text .dot { fill: var(--gold); }
.wave-guide { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; stroke-dasharray: 2 8; }
.wave .wave-foot { flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 0 48px 48px; }
.wave-foot p { font-size: 17px; line-height: 1.55; color: #dbe7ff; max-width: 520px; margin: 0; }

.statement { padding-top: 110px; padding-bottom: 110px; display: flex; flex-direction: column; gap: 26px; }
.statement-line { font: italic 400 clamp(48px, 7.5vw, 104px)/0.98 "Instrument Serif", Georgia, serif; letter-spacing: -0.02em; max-width: 1000px; margin: 0; text-wrap: balance; }
.statement-line span { color: var(--gold); }
.statement-note { font-size: 15px; color: #dbe7ff; margin: 0; }

.final { padding: 96px 32px; display: flex; flex-direction: column; }
.final-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.final-copy .lead { font-size: 18px; max-width: 520px; }
.final-foot { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid #24375e; padding-top: 24px; font-size: 14px; color: #9fb0cc; }
.final-foot .wordmark { font-size: 14px; }
.final-foot .domains { font: 400 13px var(--mono); }
.final-foot a:not(.brand) { color: #c9d3e6; }
.final-foot .pgn { margin-left: auto; }
.final-foot .foot-note { flex-basis: 100%; margin: 0; font-size: 13px; }

@media (max-width: 720px) {
  .band-in { padding: 56px 20px; }
  .hero-band .band-in { padding: 16px 20px 56px; gap: 48px; }
  .hero-nav { gap: 14px; }
  .hero-nav nav { margin-left: 0; order: 3; flex-basis: 100%; gap: 18px; }
  .hero-nav .button { margin-left: auto; }
  .split, .split.narrow { gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  /* Floating pieces move inside the picture on a phone. */
  .split-media.right { padding: 0 0 28px 0; }
  .split-media.right img { height: 380px; border-radius: 160px 24px 24px 24px; }
  .split-media.left { padding: 24px 0 0 0; }
  .split-media.left img { height: 400px; }
  .float-card { left: 12px; }
  .float-chip { right: 12px; }
  .split-media .bubble.user { right: 8px; }
  .split-media .bubble:not(.user) { left: 8px; bottom: 20px; }
  .wave-edge { height: 48px; }
  .wave .band-in { padding: 24px 28px 16px; }
  .wave .wave-foot { padding: 0 28px 28px; }
  .wave-text text { font-size: 84px; }
  .statement { padding-top: 72px; padding-bottom: 72px; }
  .final { padding: 64px 20px; }
  .final-foot .pgn { margin-left: 0; }
}

/* ---- Hero with a house: the photo fills the band, ink fades in from the left so the text stays readable ---- */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scaleX(-1); }
.hero-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 27, 51, 0.95) 0%, rgba(14, 27, 51, 0.86) 32%, rgba(14, 27, 51, 0.3) 58%, rgba(14, 27, 51, 0.05) 100%),
    linear-gradient(180deg, rgba(14, 27, 51, 0.7) 0%, rgba(14, 27, 51, 0) 22%);
}
.hero-band .band-in { z-index: 1; }
.hero-copy { max-width: 640px; }
.hero-band .display-hero { font-size: clamp(40px, 5.2vw, 68px); }
.jaine-avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); }
.jaine-line { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; color: #c9d3e6; max-width: 520px; }
.jaine-line .jaine-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.bubble.with-avatar { padding-left: 54px; position: relative; min-height: 54px; }
.bubble.with-avatar .jaine-avatar { position: absolute; left: 11px; top: 11px; }
@media (max-width: 720px) {
  .hero-photo { object-position: 60% 50%; }
  .hero-band::after { background: linear-gradient(180deg, rgba(14, 27, 51, 0.88) 0%, rgba(14, 27, 51, 0.66) 55%, rgba(14, 27, 51, 0.3) 100%); }
}

/* ---- Content pages ---- */
.article { max-width: 820px; }
.article h1 { margin-top: 10px; }
.article section p { max-width: 68ch; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; color: var(--ink); font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 24px var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; max-width: 68ch; }

.tiles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tiles a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--muted); font-size: 14px; transition: border-color 150ms; }
.tiles a:hover { border-color: var(--accent); }
.tiles strong { font-size: 19px; letter-spacing: -0.02em; }
.tiles .from b { font: 500 14px var(--mono); color: var(--ink); }
.home-regions { margin-top: 48px; }

.scan-block { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: end; margin: 40px 0; padding: 28px 28px 0 28px; background: var(--soft); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.scan-block > div { padding-bottom: 24px; }
.scan-block h2 { margin-top: 0; }
.scan-block p { max-width: 60ch; }
.scan-jaine { width: 180px; height: auto; align-self: end; }
@media (max-width: 620px) {
  .scan-block { grid-template-columns: 1fr; padding: 24px 22px 0; }
  .scan-jaine { width: 140px; order: 2; justify-self: center; }
}

.costs dl { margin: 12px 0; border-top: 1px solid var(--line); }
.costs dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.costs dt { color: var(--text); }
.costs dd { margin: 0; font: 500 15px var(--mono); color: var(--ink); white-space: nowrap; text-align: right; }
.costs .sum dt, .costs .sum dd { font-weight: 600; color: var(--ink); }
@media (max-width: 520px) { .costs dl > div { flex-direction: column; gap: 2px; } .costs dd { text-align: left; white-space: normal; } }

.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.final-foot .foot-links { flex-basis: 100%; }
.final-foot .foot-links a { color: #c9d3e6; }

.hero-band .band-in { min-height: min(760px, 88vh); }
.wave.from-white { background: #fff; }
.wave.from-paper { background: var(--soft); }
.wave-edge.to-paper { background: var(--soft); }
/* The general h2 margin (2em) is 120px at this size. */
.wave h1, .wave h2 { margin: 0; }
/* The wave band's example: what you say, what Jaine makes of it, what is left of the list. */
.wave .wave-demo { list-style: none; display: grid; grid-template-columns: 1.25fr 1fr 0.8fr; gap: 16px; padding-top: 0; padding-bottom: 32px; flex-direction: row; counter-reset: wd; }
.wave-demo li { position: relative; padding: 22px 22px 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); display: flex; flex-direction: column; gap: 12px; }
.wave-demo li + li::before { content: "\2192"; position: absolute; left: -15px; top: 50%; transform: translate(-50%, -50%); color: var(--gold); font-size: 20px; }
.wd-k { font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.wd-say { margin: 0; font: italic 400 24px/1.3 "Instrument Serif", Georgia, serif; color: #fff; }
.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.wd-chips span { background: #fff; color: var(--accent); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 500; }
.wd-n { margin: 0; color: #fff; font-size: 16px; }
.wd-n b { display: block; font-size: 52px; line-height: 1; font-weight: 600; color: var(--gold); letter-spacing: -0.02em; margin-bottom: 6px; }
.wave-demo .text-link { color: #fff; margin-top: auto; }
@media (max-width: 860px) {
  .wave .wave-demo { grid-template-columns: 1fr; gap: 22px; padding-bottom: 24px; }
  .wave-demo li + li::before { left: 50%; top: -11px; transform: translate(-50%, -50%) rotate(90deg); }
  .wd-say { font-size: 22px; }
}

/* ---- Projects page: Jaine's bubble on top, filters in a left column ---- */
.jaine-top { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 28px; align-items: end; margin-bottom: 40px; }
.jaine-figure { width: 190px; height: auto; align-self: end; }
.jaine-say { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 32px 32px 32px 8px; padding: 32px 36px 24px; margin-bottom: 28px; box-shadow: 0 30px 60px -36px rgba(14, 27, 51, 0.35); }
.jaine-say::before { content: ""; position: absolute; left: -11px; bottom: 26px; width: 20px; height: 20px; background: #fff; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
/* Jaine's line reads as something she says: the serif italic, across the full width of the bubble. */
.jaine-says { font: italic 400 clamp(28px, 3.2vw, 44px)/1.15 "Instrument Serif", Georgia, serif; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 26px; max-width: none; text-wrap: pretty; }
.jaine-say .chat-input { max-width: none; margin-bottom: 14px; }
.jaine-say .small { margin: 0; }
.list-cols { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; background: #fff; }
.filters summary { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); list-style: none; cursor: default; }
.filters summary::-webkit-details-marker { display: none; }
.search.side { grid-template-columns: 1fr; margin: 16px 0 4px; }
.search.side button { width: 100%; }
.filters .small { margin: 12px 0 0; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.list-head h1 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.list-head p { margin: 0; }
.list-cols .grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
@media (max-width: 860px) {
  .jaine-top { grid-template-columns: 96px minmax(0, 1fr); gap: 0 14px; margin-bottom: 28px; }
  .jaine-figure { width: 96px; }
  .jaine-say { padding: 22px 20px 18px; border-radius: 24px 24px 24px 8px; margin-bottom: 16px; }
  .list-cols { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; }
  .filters summary { cursor: pointer; }
  .filters summary::after { content: " +"; }
  .filters[open] summary::after { content: " \2212"; }
}
@media (max-width: 520px) {
  .jaine-top { grid-template-columns: 1fr; }
  .jaine-figure { display: none; }
  .jaine-say::before { display: none; }
  .jaine-say { border-radius: 24px; }
}

/* ---- Jaine's chat above the projects list (src/ask.tsx; board "Projects page, Jaine version") ---- */

.jchat { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: end; margin-bottom: 36px; }
.jchat-figure { width: 170px; height: auto; display: block; }
/* Light, see-through blue: the owner wants no dark surfaces here. */
.jchat-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; background: rgba(234, 240, 251, 0.55); border: 1px solid rgba(21, 85, 192, 0.18); border-radius: 28px; padding: 22px 24px 18px; box-shadow: 0 30px 60px -40px rgba(21, 85, 192, 0.45); }
.jchat-you { align-self: flex-end; max-width: min(560px, 88%); margin: 0; background: var(--accent-soft); color: var(--ink); border: 1px solid rgba(21, 85, 192, 0.18); border-radius: 20px 20px 6px 20px; padding: 11px 16px; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.jchat-jaine { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
.jchat-jaine > .jaine-avatar { grid-row: 1 / span 12; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(21, 85, 192, 0.25); }
.jchat-jaine > * { grid-column: 2; }
.jchat-jaine > .jaine-avatar { grid-column: 1; }
.jchat-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.jchat-bubble { justify-self: start; max-width: 640px; margin: 0; background: #fff; border: 1px solid #dfe6f3; border-radius: 6px 20px 20px 20px; padding: 11px 16px; font-size: 17px; line-height: 1.45; color: var(--ink); box-shadow: 0 8px 18px -14px rgba(14, 27, 51, 0.35); text-wrap: pretty; }
.jchat-q { font-weight: 600; }
.jchat-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; margin: 2px 0 0 4px; }
.jchat-chips a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 9px 4px 12px; text-decoration: none; }
.jchat-chips a:hover { background: #dbe6fa; }
.jchat-replies { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.jchat-replies a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: #fff; border: 1px solid rgba(21, 85, 192, 0.35); color: var(--accent); border-radius: 999px; font-size: 15px; text-decoration: none; }
.jchat-replies a:hover { background: var(--accent-soft); border-color: var(--accent); }
.jchat-replies a.skip { border-style: dashed; }
.jchat-replies i { font: normal 12px var(--mono); color: var(--muted); }
.jchat-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.jchat-foot a { color: var(--muted); }
.jchat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 4px 0 0; }
.jchat .chat-input { max-width: none; margin-top: 8px; }
[data-list].loading .jchat-replies, [data-list].loading .jchat-chips { opacity: 0.6; }
@media (max-width: 860px) {
  .jchat { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; margin-bottom: 24px; }
  .jchat-figure { width: 96px; }
}
@media (max-width: 640px) {
  .jchat { grid-template-columns: 1fr; }
  .jchat-figure { display: none; }
  .jchat-panel { padding: 16px 14px 14px; border-radius: 22px; }
  .jchat-bubble, .jchat-you { font-size: 16px; }
  .jchat-jaine { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 8px; }
  .jchat-jaine > .jaine-avatar { width: 32px; height: 32px; }
  /* On a phone the answers scroll sideways in one row. */
  .jchat-replies { flex-wrap: nowrap; overflow-x: auto; margin-left: -40px; padding: 2px 0 6px 40px; scrollbar-width: none; }
  .jchat-replies a { flex: none; }
  .jchat-foot span { display: none; }
}

/* ---- Map view ---- */
.view-switch { display: inline-flex; margin: 0 0 0 auto; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; font-size: 14px; }
.view-switch a { padding: 6px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); }
.view-switch a[aria-current] { background: var(--ink); color: #fff; }
.map { height: min(640px, 72vh); margin-top: 20px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; z-index: 0; background: var(--soft); }
.pin { width: auto !important; height: auto !important; }
.pin span { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; background: var(--accent); color: #fff; font: 600 13px var(--mono); padding: 5px 9px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 6px 16px -6px rgba(14, 27, 51, 0.6); }
.pin:hover span { background: var(--ink); }
.leaflet-popup-content-wrapper { border-radius: 16px; font-family: var(--sans); }
.leaflet-popup-content { margin: 14px 18px; display: block; font-size: 14px; line-height: 1.45; }
.leaflet-popup-content > div { display: flex; flex-direction: column; gap: 2px; }
.map-name { font-weight: 600; font-size: 16px; color: var(--ink) !important; }
.map-place { color: var(--muted); }
.leaflet-container a { color: var(--accent); }

/* ---- Feed projects: gallery, features, paging ---- */
.gallery { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.chips.features { gap: 8px; }
.chips.features .chip { background: var(--soft); color: var(--text); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 36px; }
.pager > :last-child { justify-self: end; }
.pager > :first-child { justify-self: start; }
.card-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.pin.cluster span { background: var(--ink); min-width: 34px; text-align: center; padding: 8px 10px; font-size: 14px; }

/* ==== Design pass: cards with tag and heart, bands, landing page, footer (Claude Design canvas) ==== */
.card-media { position: relative; display: block; }
.card-media > a { display: block; }
.card .tag { position: absolute; left: 12px; top: 12px; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; padding: 5px 8px; background: var(--ink); color: #fff; }
.card .tag.gold { background: var(--gold); color: var(--ink); }
.card .tag.green { background: #e9f5e9; color: #156f15; }
.heart { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); gap: 0; }
.heart:hover { background: #fff; border: 0; }
.heart svg path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.heart[aria-pressed="true"] svg path { fill: var(--accent); stroke: var(--accent); }
.card-meta { margin: 0; }
.card h3 { font-size: 19px; }
.pill.ready { background: #e9f5e9; color: #156f15; }

.rail { padding: 56px 0; border-bottom: 1px solid var(--line); }
.rail.white { background: #fff; }
.rail.paper { background: var(--soft); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.rail-head h2 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.03em; }
.rail-head p.muted { margin: 10px 0 0; max-width: 560px; font-size: 16px; }
.rail-head .text-link { padding: 0; }
.rail-grid { margin-top: 0; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.fav-empty { border: 2px dashed var(--line-strong); border-radius: 22px; padding: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.fav-empty[hidden] { display: none; }
.fav-empty svg path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.fav-empty div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 300px; }
.fav-empty strong { font-size: 19px; }
.fav-empty span { color: var(--muted); }
body.home .rail .wrap { max-width: 1200px; padding: 0 32px; }

/* The selling points under the hero: four plain columns, no cards. */
.usps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 32px; }
.usps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.usps .usp-key { margin: 0 0 18px; font: 500 clamp(24px, 2.4vw, 32px)/1.1 var(--mono); letter-spacing: -0.03em; color: var(--accent); }
.usps h3 { font-size: 20px; line-height: 1.25; margin: 0 0 10px; }
.usps li > p:last-child { margin: 0; font-size: 16px; color: var(--muted); }
@media (max-width: 1000px) { .usps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usps { grid-template-columns: 1fr; gap: 28px; } }
.home-faq { max-width: 880px; }
.home-faq .band-head { margin-bottom: 20px; }

/* Landing page */
.landing-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 28px 0 56px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.landing-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.landing-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.landing-main h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
.landing-main .lead { margin: 0; }
.landing-main .eyebrow { margin: 0; }
.chip.plain { background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14px; padding: 6px 13px; }
.landing-chips .chip.match { font-size: 14px; padding: 7px 13px; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.mosaic-main { grid-column: 1 / -1; width: 100%; height: clamp(240px, 34vw, 420px); object-fit: cover; border-radius: 24px; }
.mosaic.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic.n1 { grid-template-columns: 1fr; }
.mosaic-thumb { position: relative; display: block; border-radius: 16px; overflow: hidden; }
.mosaic-thumb img { width: 100%; height: 150px; object-fit: cover; }
.mosaic-thumb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(14, 27, 51, 0.62); color: #fff; font-weight: 500; }
.landing-cols .lead-box { flex: 1 1 340px; max-width: 420px; position: sticky; top: 16px; border-radius: 24px; padding: 26px; box-shadow: 0 30px 60px -36px rgba(14, 27, 51, 0.35); }
.lead-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.lead-price > div { display: flex; flex-direction: column; }
.price.big { font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.lead-box h2 { font-size: 21px; line-height: 1.2; margin: 0 0 14px; }
.lead-box form button[type="submit"] { min-height: 56px; font-size: 17px; }
.assure { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.assure li::before { content: "\2713\00a0\00a0"; color: var(--green); font-weight: 700; }
.landing-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 40px; }
.landing-facts > div { border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.landing-facts .eyebrow { color: var(--muted); letter-spacing: 0.12em; }
.landing-facts strong { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.landing-section { padding-top: 72px; }
.landing-section h2 { margin: 10px 0 18px; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -0.03em; }
.landing-section .section-head { align-items: flex-end; }
.landing-section .section-head h2 { margin-bottom: 0; }
.landing-section .section-head p { max-width: 420px; margin: 0; }
.landing-section .table-scroll { border-radius: 22px; margin-top: 18px; }
.units td.ref { font-family: var(--mono); color: var(--muted); }
.feature-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-groups > div { border-top: 2px solid var(--accent); padding-top: 18px; }
.feature-groups .group-2 { border-top-color: var(--green); }
.feature-groups .group-3 { border-top-color: var(--gold); }
.feature-groups h3 { margin: 0 0 12px; }
.landing-location { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.landing-location > div:first-child { flex: 1 1 320px; }
.map.small { flex: 2 1 480px; height: 340px; margin-top: 0; border-radius: 24px; }
.landing-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.info-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.info-card h2 { font-size: 24px; margin: 0 0 12px; }
.info-card .text-link { padding: 0; }
.landing-faq { max-width: 880px; }
.project .rail:first-of-type { margin-top: 72px; border-top: 1px solid var(--line); }
.landing-close { background: var(--ink); color: #c9d3e6; padding: 72px 0; margin-top: 0; }
.landing-close .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.close-line { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; color: #fff; margin: 0 0 10px; max-width: 640px; }
.landing-close p { margin: 0; }
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .landing-cols .lead-box { position: static; max-width: none; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(14, 27, 51, 0.4); }
  .sticky-cta > span { display: flex; flex-direction: column; line-height: 1.2; }
  .sticky-cta .price { font-size: 18px; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 96px; }
  .site-header .bar nav.landing-nav a:not(.button) { display: none; }
  .mosaic-thumb img { height: 96px; }
}

/* Footer */
.site-footer { padding: 56px 0 28px; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-bottom: 40px; margin-bottom: 44px; border-bottom: 1px solid #24375e; }
.foot-cta p { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; color: #fff; max-width: 520px; }
.foot-cta .chat-input { flex: 1 1 380px; max-width: 560px; }
.foot-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
.foot-grid h2 { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: #9fb0cc; margin: 0 0 6px; }
.foot-brand p { margin: 14px 0 0; }
.lang-pills.dark { padding-top: 16px; margin: 0; }
.lang-pills.dark > * { border-color: #3a4c72; color: #fff; }
.lang-pills.dark [aria-current] { background: #fff; border-color: #fff; color: var(--ink); }
.lang-pills.dark a:hover { border-color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > .foot-brand { grid-column: 1 / -1; } }

/* ==== Project page, second pass: one big photo, the request card follows alongside ==== */
.landing-hero { padding: 24px 0 40px; }
.landing-intro { display: flex; flex-direction: column; gap: 16px; }
.landing-intro h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.04em; max-width: 22ch; }
.landing-intro .lead, .landing-intro .eyebrow { margin: 0; }
.landing-intro .mosaic { margin-top: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mosaic-main { height: clamp(280px, 46vw, 620px); border-radius: 28px; }
.mosaic-thumb img { height: clamp(96px, 14vw, 190px); }
.landing-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding-top: 40px; }
.landing-content { grid-column: 1; grid-row: 1; min-width: 0; }
.landing-body > .lead-box { grid-column: 2; grid-row: 1; position: sticky; top: 20px; max-width: none; border-radius: 28px; padding: 32px; box-shadow: 0 30px 60px -36px rgba(14, 27, 51, 0.35); }
.landing-facts { padding-top: 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.lead-box form { gap: 18px; }
.lead-box label > span { font-size: 15px; }
.lead-box input[type="text"], .lead-box input[type="email"], .lead-box input[type="tel"], .lead-box select { min-height: 54px; font-size: 17px; }
.lead-box h2 { font-size: 22px; margin-bottom: 20px; }
.lead-price { padding-bottom: 20px; margin-bottom: 22px; }
.lead-box details.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.lead-box details.more summary { cursor: pointer; font-size: 15px; color: var(--accent); list-style: none; }
.lead-box details.more summary::-webkit-details-marker { display: none; }
.lead-box details.more summary::before { content: "+ "; font-family: var(--mono); }
.lead-box details.more[open] summary::before { content: "\2212 "; }
.lead-box details.more[open] { display: grid; gap: 16px; }
.lead-box details.more > label { margin-top: 4px; }
.assure { margin-top: 18px; }
.good-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 40px; }
.good h3 { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 12px; }
.good-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.good-list li { position: relative; padding-left: 26px; }
.good-list li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.good-list.suits li::before { background: var(--green); }
@media (max-width: 980px) {
  .landing-body { grid-template-columns: 1fr; gap: 32px; }
  .landing-body > .lead-box { grid-column: 1; grid-row: 1; position: static; }
  .landing-content { grid-row: 2; }
}

.good-sources { margin: 22px 0 0; max-width: 70ch; }

/* The whole card is one link: the title's link is stretched over it, the heart stays on top. */
.card { position: relative; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card .heart { z-index: 2; }
.card:hover h3 a { color: var(--accent); }
.card:focus-within { box-shadow: 0 0 0 3px rgba(21, 85, 192, 0.35); }

/* ---------- Filter panel (Claude Design board "Filters") ---------- */
.filters2 { padding: 0; }
.filters2 > summary { display: none; }
.filters2 .badge { font: 500 12px var(--mono); background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; letter-spacing: 0; }
.filters2 form { display: flex; flex-direction: column; margin: 0; }
.filters2 .f-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #eeece6; }
.filters2 .f-head strong { font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.filters2 .f-head a { font-size: 14px; }
.filters2 fieldset { border: 0; margin: 0; padding: 18px 22px; border-bottom: 1px solid #eeece6; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.filters2 legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.filters2 legend + * { clear: both; }
.filters2 input[type="search"], .filters2 select { width: 100%; border: 1px solid #c9c5bc; border-radius: 14px; padding: 11px 14px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); min-height: 0; }
.filters2 .picks { display: flex; flex-wrap: wrap; gap: 8px; }
.filters2 .pick { cursor: pointer; }
.filters2 .pick input, .filters2 .seg input { position: absolute; opacity: 0; pointer-events: none; }
.filters2 .pick span { display: inline-flex; gap: 6px; align-items: baseline; font-size: 14px; border: 1px solid #c9c5bc; border-radius: 999px; padding: 6px 12px; color: var(--text); background: #fff; transition: background 120ms, border-color 120ms; }
.filters2 .pick i { font: 400 12px var(--mono); font-style: normal; opacity: 0.65; }
.filters2 .pick:hover span { border-color: var(--accent); }
.filters2 .pick input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters2 .pick input:focus-visible + span, .filters2 .seg input:focus-visible + span { outline: 3px solid rgba(21, 85, 192, 0.35); outline-offset: 2px; }
.filters2 .seg { display: flex; border: 1px solid #c9c5bc; border-radius: 14px; overflow: hidden; }
.filters2 .seg label { flex: 1; cursor: pointer; text-align: center; font-size: 14px; }
.filters2 .seg label + label { border-left: 1px solid var(--line); }
.filters2 .seg span { display: block; padding: 9px 4px; color: var(--text); }
.filters2 .seg input:checked + span { background: var(--accent); color: #fff; }
.filters2 .f-note { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.filters2 .hist { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.filters2 .hist a { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 3px; cursor: pointer; }
.filters2 .hist a span { width: 100%; background: #d9d6ce; border-radius: 2px 2px 0 0; transition: background 120ms; }
.filters2 .hist a.on span { background: var(--accent); }
.filters2 .hist a:hover span { background: #7fa3e0; }
.filters2 .hist a.on:hover span { background: #0f3f92; }
.filters2 .hist a:focus-visible { outline: 3px solid rgba(21, 85, 192, 0.35); outline-offset: 2px; }
.filters2 .range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters2 .range label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filters2 .switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--ink); font-size: 15px; position: relative; }
.filters2 .switch small { color: var(--muted); font-size: 13px; }
.filters2 .switch input { position: absolute; opacity: 0; }
.filters2 .switch i { flex: none; width: 40px; height: 24px; border-radius: 999px; background: #c9c5bc; position: relative; transition: background 120ms; }
.filters2 .switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left 120ms; }
.filters2 .switch input:checked + i { background: var(--accent); }
.filters2 .switch input:checked + i::after { left: 19px; }
.filters2 .switch input:focus-visible + i { outline: 3px solid rgba(21, 85, 192, 0.35); outline-offset: 2px; }
.filters2 .f-foot { position: sticky; bottom: 0; padding: 14px 22px; background: var(--paper, #f6f5f1); border-top: 1px solid var(--line); }
.filters2 .f-foot button { width: 100%; justify-content: center; }
.list-cols { grid-template-columns: 320px minmax(0, 1fr); }
/* No scrollbar of its own: the panel is as tall as its content and moves with the page. */
.filters2 { position: static; overflow: clip; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.active-chips a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; background: #eaf0fb; color: var(--accent); border-radius: 999px; padding: 6px 8px 6px 13px; text-decoration: none; }
.active-chips a span { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.active-chips a:hover { background: #dbe6fa; }
/* Everything a card is flagged with, in one corner of the photo: its tags (price drop, unique, key-ready homes) and what
   matched a filter (the beach, golf...), side by side, so one never hides another (owner, 2026-11-23). */
.card-flags { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; z-index: 1; pointer-events: none; }
.card .card-flags .tag { position: static; }
.card-flags .why { font-size: 12px; line-height: 1.4; background: rgba(21, 85, 192, 0.92); color: #fff; border-radius: 999px; padding: 3px 9px; }
@media (max-width: 860px) {
  .list-cols { grid-template-columns: 1fr; }
  .filters2 > summary { display: block; padding: 16px 20px; }
  .filters2 .f-head strong { display: none; }
  .filters2 .f-head { justify-content: flex-end; padding: 0 22px 10px; border-bottom: 0; }
  .filters2 .f-head:not(:has(a)) { display: none; }
}

/* ---------- Favourites dock (board "Favourites"): light blue glass, one solid button ---------- */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; width: min(560px, calc(100vw - 24px)); color: var(--ink);
  background: rgba(234, 240, 251, 0.74); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(21, 85, 192, 0.22); border-radius: 34px; box-shadow: 0 24px 50px -24px rgba(21, 85, 192, 0.4); transition: width 180ms ease; }
.dock[hidden] { display: none; }
.dock.open { width: min(1000px, calc(100vw - 24px)); border-radius: 26px; }
.dock.bump { animation: dock-bump 380ms ease; }
@keyframes dock-bump { 0% { transform: translateX(-50%) translateY(18px); } 60% { transform: translateX(-50%) translateY(-5px); } 100% { transform: translateX(-50%); } }
.dock-bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; }
.dock-open { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; min-height: 0; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; flex: 1; min-width: 0; text-align: left; }
.dock-open:hover { background: none; border: 0; }
.dock-open svg path, .dock-room svg path { fill: var(--accent); stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.dock-room svg path { fill: none; }
.dock-thumbs { display: inline-flex; padding-left: 10px; }
/* Fixed size and no shrinking, or a narrow dock squeezes the round thumbnails into ovals. */
.dock-thumbs { flex: none; }
.dock-thumbs img { flex: none; width: 38px; height: 38px; min-width: 38px; max-width: none; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; box-sizing: border-box; }
.dock-show { font-weight: 400; font-size: 14px; color: #4a6291; }
.dock.open .dock-thumbs, .dock.open .dock-show { display: none; }
.dock .button.small { flex: none; white-space: nowrap; }
.dock .button.small[aria-disabled="true"] { background: transparent; color: #4a6291; border: 1px dashed rgba(21, 85, 192, 0.4); pointer-events: none; }
.dock-tray { padding: 20px 20px 4px; }
.dock-tray[hidden] { display: none; }
.dock-tray-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dock-tray-head strong { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.dock-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.dock-link:hover { background: none; border: 0; text-decoration: underline; }
.dock-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; max-height: min(52vh, 420px); overflow-y: auto; padding-bottom: 6px; }
.dock-card { position: relative; background: #fff; border: 1px solid rgba(21, 85, 192, 0.14); border-radius: 16px; overflow: hidden; }
.dock-card a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); padding-bottom: 12px; }
.dock-card img, .dock-card .placeholder { width: 100%; height: 96px; object-fit: cover; display: block; background: var(--soft); margin-bottom: 8px; }
.dock-card .place { font: 400 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); padding: 0 12px; }
.dock-card strong { font-size: 15px; line-height: 1.25; padding: 0 12px; }
.dock-card .price { font: 400 14px var(--mono); padding: 0 12px; }
.dock-card button { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; }
.dock-room { border: 1.5px dashed rgba(21, 85, 192, 0.4); border-radius: 16px; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #4a6291; font-size: 14px; text-align: center; padding: 12px; }
/* Room for the dock is made inside the footer, so no strip of page background shows under it. */
body.has-dock .site-footer { padding-bottom: 112px; }
@media (max-width: 860px) { body:has(.sticky-cta) .dock { bottom: 88px; } }
@media (max-width: 560px) {
  .dock { bottom: 12px; }
  .dock-thumbs, .dock-show { display: none; }
  .dock-list { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .dock.bump { animation: none; } .dock { transition: none; } }

/* ---------- First band of the homepage (board "Why") ---------- */
.why-in { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.why-copy { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 32px; }
.why-copy .body-l, .why-copy .actions { margin: 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-tile { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; }
.why-tile.tint { background: #eaf0fb; border-color: rgba(21, 85, 192, 0.2); }
.why-tile h3 { font-size: 21px; letter-spacing: -0.02em; margin: auto 0 6px; padding-top: 22px; }
.why-tile > p { margin: 0; font-size: 15px; color: var(--muted); }
.why-tile.tint > p { color: #4a6291; }
.why-show { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 150px; }
.why-big { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.why-big b { font: 500 44px/1 var(--mono); letter-spacing: -0.04em; color: var(--ink); }
.why-big span { font-size: 14px; color: var(--muted); }
.why-bars, .why-m2, .why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.why-bars li { display: grid; grid-template-columns: minmax(0, 132px) 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.why-bars span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.why-bars i { height: 8px; border-radius: 999px; background: #eaf0fb; overflow: hidden; }
.why-bars i b { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.why-bars em { font: 400 13px var(--mono); font-style: normal; color: var(--muted); text-align: right; }
.why-score { display: flex; align-items: center; gap: 18px; }
.why-score .chips { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.why-score .chip { background: #fff; }
.why-say { margin: 0; font: italic 400 22px/1.25 "Instrument Serif", Georgia, serif; color: var(--accent); }
.why-m2 li { display: grid; grid-template-columns: 96px 1fr 88px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.why-m2 i { height: 12px; border-radius: 4px; background: #d9d6ce; }
.why-m2 em { font: 400 13px var(--mono); font-style: normal; text-align: right; }
.why-m2 .this { color: var(--ink); font-weight: 600; }
.why-m2 .this i { background: var(--accent); }
.why-m2 .this em { font-weight: 400; }
.why-dist { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.why-dist span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.why-dist b { font: 400 13px var(--mono); color: var(--accent); }
.why-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eeece6; font-size: 14px; }
.why-list span { font: 400 14px var(--mono); color: var(--muted); }
.why-list b { font: 400 14px var(--mono); color: var(--ink); }
.why-list u { text-decoration: none; color: #8f5600; }
.why-list i { font-style: normal; font-size: 12px; padding: 3px 10px; }
.why-list .sold b { color: #6b7280; text-decoration: line-through; }
.pill.drop { background: #fff3d6; color: #8a5a00; }
.why-updated { margin: 0; font: 400 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1000px) { .why-in { grid-template-columns: 1fr; gap: 32px; } .why-copy { position: static; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Compare page (board "Compare") ---------- */
.compare { display: flex; flex-direction: column; gap: 32px; }
.compare-head { display: flex; flex-direction: column; gap: 12px; }
.compare-head h1 { margin: 0; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.04; letter-spacing: -0.035em; }
.compare-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
/* Jaine beside a speech bubble: her suggestion, the rows it rests on, and a way forward. */
.compare-jaine { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: end; }
.compare-jaine .who { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.compare-jaine .j { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: italic 400 28px "Instrument Serif", Georgia, serif; }
.compare-jaine .jaine-says { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.compare-you { border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.compare-you h2, .compare-found h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.compare-you p { margin: 0; }
.compare-you .chat-input { max-width: none; margin-top: auto; }
.compare-scroll { border: 1px solid var(--line); border-radius: 22px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: calc(180px + var(--cols) * 210px); font-size: 15px; }
.compare-table td, .compare-table th { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid #eeece6; font-weight: 400; }
.compare-table tbody th[scope="row"] { width: 180px; color: var(--muted); padding-left: 20px; }
.compare-table thead td { width: 180px; }
.compare-table td + td, .compare-table th + th, .compare-table td + th, .compare-table th + td { border-left: 1px solid #eeece6; }
.compare-table thead th { padding: 16px; }
.compare-table thead th > * { display: block; }
.compare-table .shot img, .compare-table .shot .placeholder { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; display: block; background: var(--soft); }
.compare-table .place { font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 10px; }
.compare-table .name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; line-height: 1.2; margin-top: 2px; }
.compare-table .price-row { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 10px; }
.compare-table .price { font: 400 22px var(--mono); color: var(--ink); letter-spacing: -0.02em; }
.compare-table .fit { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #156f15; }
.compare-table .fit .ring { width: 46px; height: 46px; font-size: 15px; }
.compare-table thead .button { justify-content: center; text-align: center; }
.compare-table .drop-it { width: 100%; background: none; border: 0; min-height: 0; padding: 8px 0 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; text-align: center; }
.compare-table .drop-it:hover { background: none; text-decoration: underline; }
.compare-table tr.group th { background: var(--paper, #f6f5f1); font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 10px 20px; }
.compare-table td { color: var(--ink); }
.compare-table td.mono { font-family: var(--mono); }
.compare-table td.dim { color: #b0b4be; }
.compare-table td.best { font-weight: 600; }
.tag-best { font: 500 12px var(--sans, "Geist", system-ui, sans-serif); background: #eaf0fb; color: var(--accent); border-radius: 999px; padding: 2px 9px; margin-left: 6px; white-space: nowrap; }
.compare-table tbody:last-child tr:last-child td, .compare-table tbody:last-child tr:last-child th { border-bottom: 0; }
.compare-found { border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.compare-found ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.compare-found li { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; border: 1px solid #eeece6; border-radius: 16px; padding: 10px; }
.compare-found img, .compare-found .placeholder { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; display: block; background: var(--soft); }
.compare-found .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.compare-found .what a { font-weight: 600; color: var(--ink); text-decoration: none; }
.compare-found .price { font: 400 14px var(--mono); color: var(--ink); }
.compare-found .act { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.compare-found .ring { width: 46px; height: 46px; font-size: 15px; }
.compare-all { background: #eaf0fb; border: 1px solid rgba(21, 85, 192, 0.2); border-radius: 22px; padding: 32px 36px; display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px; align-items: center; }
.compare-all h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.compare-all p { margin: 0; color: #4a6291; }
.compare-all form { display: flex; flex-direction: column; gap: 12px; }
.compare-all label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink); }
.compare-all input[type="text"], .compare-all input[type="email"] { border: 1px solid #c9c5bc; border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; }
.compare-all button { justify-content: center; }
.notice.ok { background: #e9f5e9; color: #156f15; border-radius: 16px; padding: 14px 18px; }
.compare-empty { margin: 40px 0; }
@media (max-width: 900px) { .compare-top, .compare-all { grid-template-columns: 1fr; } .compare-all { padding: 24px; } }

/* The compare page is where the dock leads; it would only cover the table there. */
body:has(.compare) .dock { display: none; }

/* The projects page uses the width of the screen. */
.wrap.wide { max-width: 1760px; padding-left: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); }
.list-cols .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
/* The visitor's own choice of one, two or four cards per row. */
.list-cols .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list-cols .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.list-cols .grid.cols-1 { grid-template-columns: 1fr; gap: 16px; }
.grid.cols-1 .card { flex-direction: row; }
.grid.cols-1 .card-media { flex: none; width: min(42%, 420px); }
.grid.cols-1 .card-media > a, .grid.cols-1 .card-media img, .grid.cols-1 .card-media .placeholder { height: 100%; }
.grid.cols-1 .card-media img, .grid.cols-1 .card-media .placeholder { aspect-ratio: auto; min-height: 220px; }
.grid.cols-1 .card-body { flex: 1; justify-content: center; padding: 26px 30px; }
.grid.cols-1 .card h3 { font-size: 24px; }
.view-switch a { display: inline-flex; align-items: center; }
.cols-icon { display: inline-grid; grid-auto-flow: column; gap: 2px; width: 18px; height: 14px; }
.cols-icon i { background: currentColor; border-radius: 1.5px; }
.cols-icon.c1 { width: 14px; }
.view-switch a[aria-current] { background: var(--accent); }
@media (max-width: 1280px) { .list-cols .grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .list-cols .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .list-cols .grid.cols-2, .list-cols .grid.cols-4 { grid-template-columns: 1fr; }
  .grid.cols-1 .card { flex-direction: column; }
  .grid.cols-1 .card-media { width: 100%; }
  [data-cols-switch] a[data-cols="4"] { display: none; }
}

/* Sorting sits with the results, next to the layout switch. */
.sort-pick { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--muted); }
.sort-pick select { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; min-height: 0; width: auto; }
.sort-pick + .view-switch { margin-left: 0; }
.notice.info { background: #eaf0fb; color: #1555c0; border-radius: 16px; padding: 12px 16px; margin: 0 0 20px; }

/* What stands out on the compare page: one short line in Jaine's hand, then plain rows that read at a glance. */
.compare-jaine .jaine-says { font-size: clamp(24px, 2.6vw, 30px); }
.verdicts { margin: 0; display: flex; flex-direction: column; }
.verdicts div { display: grid; grid-template-columns: minmax(150px, 0.8fr) 1.2fr; gap: 6px 20px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.verdicts dt { font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.verdicts dd { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.verdicts strong { font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.verdicts span { font: 400 15px var(--mono); color: var(--accent); white-space: nowrap; }
@media (max-width: 560px) { .verdicts div { grid-template-columns: 1fr; gap: 2px; } }
.compare-jaine .who > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.compare-jaine .who .eyebrow { font-weight: 400; }

/* Jaine in person: she points at her suggestion, greets on an empty page and sits next to her inputs. */
/* One Jaine per row: her face with the suggestion, her figure beside the box you talk to her in. */
.compare-jaine .jaine-avatar { flex: none; border-radius: 50%; }
.empty-jaine { width: 110px; height: auto; align-self: flex-end; margin: -12px 0 -32px; }
/* The quote in the score tile is the visitor speaking, so Jaine sits with the title, not the quote. */
.why-tile h3.with-jaine { display: flex; align-items: center; gap: 12px; }
.why-tile h3.with-jaine .jaine-avatar { flex: none; border-radius: 50%; }
.foot-cta .jaine-avatar { flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); }
.notice.with-jaine { display: flex; align-items: center; gap: 12px; }
.notice.with-jaine .jaine-avatar { flex: none; border-radius: 50%; }
.foot-say { display: flex; align-items: center; gap: 18px; flex: 1 1 320px; }
.foot-say p { margin: 0; }

/* Jaine on the about page: the picture beside the text, with the line that says what she is. */
.about-jaine { float: right; width: min(42%, 320px); margin: 6px 0 20px 32px; }
.about-jaine img { width: 100%; height: auto; border-radius: 22px; display: block; }
.about-jaine figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) { .about-jaine { float: none; width: 100%; margin: 16px 0; } }

/* The card where the visitor tells Jaine about themselves shows who they are talking to. */

/* Favourites in the menu, with how many are kept. */
.nav-fav { display: inline-flex; align-items: center; gap: 6px; }
.nav-fav b { font: 500 12px var(--mono); background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 7px; }
.nav-fav b[hidden] { display: none; }
.hero-nav .nav-fav b { background: #fff; color: var(--ink); }

/* The dock: each kept project can be ticked for the comparison. */
.dock-card .dock-pick { position: static; width: calc(100% - 20px); height: auto; margin: 0 10px 10px; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(21, 85, 192, 0.35); background: #fff; color: var(--accent); font: inherit; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.dock-card .dock-pick i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; display: inline-block; position: relative; }
.dock-card .dock-pick[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.dock-card .dock-pick[aria-pressed="true"] i::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dock-card a { padding-bottom: 8px; }

/* Compare page: the picker of kept projects. */
.compare-picker { border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.compare-picker[hidden] { display: none; }
.picker-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.picker-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.picker-head h2 span { font: 400 15px var(--mono); }
.picker-head p { margin: 0; }
.compare-picker ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.compare-picker button { width: 100%; display: grid; grid-template-columns: 72px 1fr 26px; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-height: 0; color: var(--ink); font: inherit; cursor: pointer; }
.compare-picker button:hover { border-color: var(--accent); background: #fff; }
.compare-picker button img, .compare-picker button .placeholder { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; display: block; background: var(--soft); }
.compare-picker button > span:not(.placeholder) { display: flex; flex-direction: column; min-width: 0; }
.compare-picker button strong { font-size: 15px; line-height: 1.2; }
.compare-picker button em { font: 400 13px var(--mono); font-style: normal; color: var(--muted); }
.compare-picker button i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); font-size: 15px; }
.compare-picker button[aria-pressed="true"] { border-color: var(--accent); background: #eaf0fb; }
.compare-picker button[aria-pressed="true"] i { background: var(--accent); border-color: var(--accent); color: #fff; }
.compare-picker button:disabled { opacity: 0.5; cursor: default; }

/* Compare page: tools above the table, and column heads that stay in view while reading down. */
.compare-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: -16px; }
.compare-tools .switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; font-size: 15px; color: var(--ink); }
.compare-tools .switch input { position: absolute; opacity: 0; }
.compare-tools .switch i { flex: none; width: 40px; height: 24px; border-radius: 999px; background: #c9c5bc; position: relative; transition: background 120ms; }
.compare-tools .switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left 120ms; }
.compare-tools .switch input:checked + i { background: var(--accent); }
.compare-tools .switch input:checked + i::after { left: 19px; }
.compare-tools .switch input:focus-visible + i { outline: 3px solid rgba(21, 85, 192, 0.35); outline-offset: 2px; }
.compare-table.only-diff tr.same { display: none; }
.compare-table.only-diff tbody:not(:has(tr:not(.same):not(.group))) { display: none; }
.compare-sticky { position: fixed; top: 0; z-index: 30; display: grid; grid-template-columns: 180px repeat(var(--cols), minmax(0, 1fr)); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: 0 16px 30px -22px rgba(14, 27, 51, 0.4); }
.compare-sticky[hidden] { display: none; }
.compare-sticky a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-left: 1px solid #eeece6; text-decoration: none; color: var(--ink); min-width: 0; }
.compare-sticky img, .compare-sticky .placeholder { flex: none; width: 54px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.compare-sticky a > span:not(.placeholder) { display: flex; flex-direction: column; min-width: 0; }
.compare-sticky strong { font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-sticky em { font: 400 13px var(--mono); font-style: normal; color: var(--muted); }
@media (min-width: 641px) and (max-width: 900px) { .compare-sticky { display: none !important; } }

/* While the table is scrolled sideways (four homes on a tablet or a small laptop), the names of the rows stay put. */
.compare-table thead td, .compare-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #eeece6; }
.compare-table tr.group th > .row-label { position: sticky; left: 20px; }

/* On a phone (owner, 2026-11-28: the compare tables "dont really do well" there): two homes side by side, swiped
   sideways one home at a time, and the name of each row on a line of its own above its figures, staying in view while
   the homes slide under it. The heads follow down the page as on a laptop (public/site.js keeps them in step). */
@media (max-width: 640px) {
  .compare-scroll { container-type: inline-size; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: 18px; }
  .compare-table { --cw: calc(100cqw / min(var(--cols), 2)); display: block; width: max-content; min-width: 0; font-size: 14px; }
  .compare-table thead, .compare-table tbody { display: block; }
  .compare-table tr { display: grid; grid-template-columns: repeat(var(--cols), var(--cw)); }
  .compare-table thead td { display: none; }
  .compare-table thead th { padding: 12px; scroll-snap-align: start; }
  .compare-table tbody th[scope="row"], .compare-table tr.group th { grid-column: 1 / -1; position: static; width: auto; box-shadow: none; }
  .compare-table tbody th[scope="row"] { padding: 10px 12px 2px; border-bottom: 0; background: none; font-size: 13px; }
  .compare-table tbody th[scope="row"] + td { border-left: 0; }
  .compare-table td { padding: 2px 12px 10px; }
  .compare-table tr.group th { padding: 9px 12px; }
  .compare-table .row-label, .compare-table tr.group th > .row-label { position: sticky; left: 12px; display: inline-block; max-width: calc(100cqw - 24px); }
  .compare-table .row-note { display: inline; margin: 0 0 0 4px; }
  .compare-table .shot img, .compare-table .shot .placeholder { height: 100px; border-radius: 12px; }
  .compare-table .place { margin-top: 8px; font-size: 10px; letter-spacing: 0.1em; }
  .compare-table .name { font-size: 15px; }
  .compare-table .price-row { flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
  .compare-table .price { font-size: 17px; }
  .compare-table .fit .ring { width: 40px; height: 40px; font-size: 14px; }
  .compare-table thead .button { padding: 9px 10px; font-size: 13px; }
  .compare-table .tag-best { margin-left: 4px; display: inline-block; }
  /* "Best value of these" reads in full on a narrow column: smaller, closer to the edge. */
  .compare-table .value-meter .vm-best { left: 6px; max-width: calc(100% - 12px); padding: 4px 8px; font-size: 11px; letter-spacing: -0.01em; }
  /* The Value block in half the screen: a smaller number, so a score of 100 leaves room for its name. */
  .compare-table thead th > .value-meter { grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding: 12px 10px 11px; }
  .compare-table .value-meter .vm-num { font-size: 28px; }
  .compare-table .value-meter .vm-label strong { font-size: 13px; }
  .compare-table .value-meter .vm-label small { font-size: 11px; }
  .compare-sticky { grid-template-columns: repeat(var(--cols), var(--cw, 50%)); overflow: hidden; border-radius: 0 0 14px 14px; }
  .compare-sticky > span:first-child { display: none; }
  .compare-sticky > span:first-child + a { border-left: 0; }
  .compare-sticky a { gap: 8px; padding: 8px 10px; }
  .compare-sticky img, .compare-sticky .placeholder { width: 40px; height: 30px; border-radius: 6px; }
  .compare-sticky strong { font-size: 13px; }
  .compare-sticky em { font-size: 12px; }
}

/* While the list is being replaced it dims a little, so a change is seen to be on its way. */
[data-list].loading [data-cols-grid] { opacity: 0.55; transition: opacity 120ms; }
.compare-tools .switch { flex-direction: row; white-space: nowrap; }
.compare-tools .switch span { order: 2; }

/* ---------- Favourites: the visitor's working page (Claude Design board "My favourites") ---------- */
.favs { display: flex; flex-direction: column; gap: 22px; }
.favs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.favs-head h1 { margin: 10px 0 0; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.04; letter-spacing: -0.035em; }
.favs-head p.small { margin: 0; }
.favs-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.favs-bar[hidden], .favs-actions[hidden] { display: none; }
.favs-tabs { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.favs-tabs button { font: inherit; font-size: 14px; border: 1px solid #c9c5bc; background: #fff; color: var(--text); border-radius: 999px; padding: 7px 14px; min-height: 0; cursor: pointer; }
.favs-tabs button i { font: 400 12px var(--mono); font-style: normal; opacity: 0.7; margin-left: 4px; }
.favs-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.favs-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(234, 240, 251, 0.8); border: 1px solid rgba(21, 85, 192, 0.22); border-radius: 16px; padding: 10px 14px; position: sticky; top: 8px; z-index: 20; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.favs-actions strong { color: var(--ink); }
.favs-actions .button[aria-disabled="true"] { background: transparent; color: #4a6291; border: 1px dashed rgba(21, 85, 192, 0.4); pointer-events: none; }
.favs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.favs-list { display: flex; flex-direction: column; gap: 18px; }
.fav-row { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.fav-row[hidden] { display: none; }
.fav-media { position: relative; min-height: 260px; }
.fav-media a, .fav-media img, .fav-media .placeholder { display: block; width: 100%; height: 100%; }
.fav-media img, .fav-media .placeholder { object-fit: cover; background: var(--soft); position: absolute; inset: 0; }
.fav-tick { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 9px; border: 2px solid #fff; background: rgba(255, 255, 255, 0.75); box-shadow: 0 2px 8px rgba(14, 27, 51, 0.25); cursor: pointer; }
.fav-tick[aria-pressed="true"] { background: var(--accent); }
.fav-tick[aria-pressed="true"]::after { content: ""; position: absolute; left: 9px; top: 4px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.fav-tick:disabled { opacity: 0.5; cursor: default; }
.fav-change { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; font-size: 12px; background: rgba(255, 255, 255, 0.94); color: var(--text); border-radius: 999px; padding: 5px 10px; }
.fav-change[hidden] { display: none; }
.fav-change.down { background: #fff3d6; color: #8a5a00; }
.fav-change.up, .fav-change.sold { background: #eaf0fb; color: var(--accent); }
.fav-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid #eeece6; min-width: 0; }
.fav-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fav-title .place { margin: 0; font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.fav-title h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.fav-title h2 a { color: var(--ink); text-decoration: none; }
.fav-main .price { margin: 0; font: 400 22px var(--mono); color: var(--ink); letter-spacing: -0.02em; }
.fav-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fav-facts span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.fav-status { display: flex; border: 1px solid #c9c5bc; border-radius: 12px; overflow: hidden; margin-top: 4px; }
.fav-status label { flex: 1; text-align: center; font-size: 13px; cursor: pointer; }
.fav-status label + label { border-left: 1px solid var(--line); }
.fav-status input { position: absolute; opacity: 0; pointer-events: none; }
.fav-status span { display: block; padding: 8px 2px; color: var(--text); }
.fav-status input:checked + span { background: var(--accent); color: #fff; }
.fav-status input:focus-visible + span { outline: 3px solid rgba(21, 85, 192, 0.35); outline-offset: -3px; }
.fav-links { margin: auto 0 0; padding-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.fav-links a { text-decoration: none; }
.fav-links button { margin-left: auto; color: var(--muted); }
.fav-side { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; background: #fcfbf9; min-width: 0; }
.fav-note { display: flex; flex-direction: column; gap: 6px; }
.fav-note > span { display: flex; justify-content: space-between; font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fav-note i { font-style: normal; color: #156f15; letter-spacing: 0.06em; }
.fav-note i[hidden] { display: none; }
.fav-note textarea { border: 1px solid #c9c5bc; border-radius: 14px; background: #fff; padding: 11px 14px; font: inherit; font-size: 15px; color: var(--ink); resize: vertical; min-height: 74px; }
.fav-jaine { background: rgba(234, 240, 251, 0.8); border: 1px solid rgba(21, 85, 192, 0.2); border-radius: 14px 14px 14px 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.fav-jaine .who { margin: 0; display: flex; align-items: center; gap: 8px; font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.fav-jaine .jaine-avatar { border-radius: 50%; flex: none; }
.fav-jaine ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; color: var(--ink); }
.fav-jaine p.small { margin: 0; }
.favs-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 72px; }
.favs-card { border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.favs-card p { margin: 0; }
.favs-card .jaine-says { font-size: 22px; line-height: 1.22; }
.favs-card .chat-input { max-width: none; flex-direction: column; align-items: stretch; border-radius: 22px; padding: 8px; }
.favs-card .chat-input button { justify-content: center; }
.favs-news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink); }
@media (max-width: 1280px) { .favs-grid { grid-template-columns: 1fr; } .favs-aside { position: static; flex-direction: row; flex-wrap: wrap; } .favs-card { flex: 1 1 300px; } }
@media (max-width: 1000px) { .fav-row { grid-template-columns: 220px minmax(0, 1fr); } .fav-side { grid-column: 1 / -1; border-top: 1px solid #eeece6; } .fav-main { border-right: 0; } }
@media (max-width: 640px) { .fav-row { grid-template-columns: 1fr; } .fav-media { min-height: 200px; } .favs-actions { top: 4px; } }
.compare-table .fit { color: var(--muted); }

.compare-figure { width: 150px; height: auto; display: block; align-self: end; }
.compare-bubble { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px 26px 26px 8px; padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -36px rgba(14, 27, 51, 0.35); margin-bottom: 26px; }
.compare-bubble::before { content: ""; position: absolute; left: -11px; bottom: 30px; width: 20px; height: 20px; background: #fff; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.compare-bubble p { margin: 0; }
.compare-bubble .jaine-says { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }
.compare-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.compare-you { align-self: stretch; margin-bottom: 26px; }
@media (max-width: 640px) { .compare-jaine { grid-template-columns: 1fr; } .compare-figure { display: none; } .compare-bubble { border-radius: 22px; margin-bottom: 0; } .compare-bubble::before { display: none; } .compare-you { margin-bottom: 0; } }

/* ---------- Jaine asks why (board "Jaine asks why") ---------- */
.ask { position: fixed; right: 18px; bottom: 96px; z-index: 45; width: min(380px, calc(100vw - 24px)); background: #fff; border: 1px solid rgba(21, 85, 192, 0.22); border-radius: 22px 22px 22px 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px -30px rgba(21, 85, 192, 0.5); animation: ask-in 260ms ease; }
.ask[hidden] { display: none; }
@keyframes ask-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ask-head { display: flex; align-items: center; gap: 12px; }
.ask-head .jaine-avatar { flex: none; border-radius: 50%; }
.ask-head p { margin: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; color: var(--muted); min-width: 0; }
.ask-head p button { align-self: flex-start; font-size: 13px; }
.ask-head p button[hidden] { display: none; }
.ask-x { background: none; border: 0; min-height: 0; padding: 4px 8px; font-size: 20px; line-height: 1; color: #9aa0ad; cursor: pointer; }
.ask-x:hover { background: none; border: 0; color: var(--ink); }
.ask [data-ask-step] { display: flex; flex-direction: column; gap: 12px; }
.ask [data-ask-step][hidden] { display: none; }
.ask .jaine-says { margin: 0; font-size: 24px; line-height: 1.2; }
.ask-reasons { margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.ask-reasons button { font: inherit; font-size: 14px; border: 1px solid #c9c5bc; background: #fff; color: var(--text); border-radius: 999px; padding: 6px 12px; min-height: 0; cursor: pointer; }
.ask-reasons button:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.ask-own { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--accent); border-radius: 999px; padding: 4px 4px 4px 14px; margin: 0; }
.ask-own input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; background: none; padding: 6px 0; min-height: 0; }
.ask-own button { padding: 8px 14px; min-height: 0; font-size: 14px; }
.ask .button.small { align-self: flex-start; }
.ask .button[hidden] { display: none; }
@media (max-width: 640px) { .ask { right: 0; left: 0; bottom: 0; width: auto; border-radius: 22px 22px 0 0; padding-bottom: 96px; } }
@media (prefers-reduced-motion: reduce) { .ask { animation: none; } }

/* ---------- Favourites: head button, location, the call for a score, news not yet seen ---------- */
.favs-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.favs-head-side .button[hidden] { display: none; }
.fav-where { margin: 6px 0 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.fav-where svg { flex: none; }
.fav-where svg path { fill: none; stroke: var(--muted); stroke-width: 1.8; }
.fav-where svg circle { fill: var(--muted); }
.fav-where a { text-decoration: none; }
.fit-cta { flex: none; display: flex; align-items: center; gap: 10px; background: rgba(234, 240, 251, 0.8); border: 1px solid rgba(21, 85, 192, 0.22); border-radius: 999px; padding: 5px 14px 5px 5px; text-decoration: none; }
.fit-cta i { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 2px dashed var(--accent); background: #fff; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font: 600 16px var(--mono); font-style: normal; }
.fit-cta span { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; color: var(--accent); white-space: nowrap; }
.fit-cta strong { color: var(--ink); }
.favs-score { grid-column: 1 / -1; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; align-items: end; background: rgba(234, 240, 251, 0.8); border: 1px solid rgba(21, 85, 192, 0.22); border-radius: 22px; padding: 22px 26px 0 22px; scroll-margin-top: 90px; }
.favs-score > div { display: flex; flex-direction: column; gap: 12px; padding-bottom: 22px; }
.favs-score-figure { width: 130px; height: auto; display: block; }
.favs-score .jaine-says { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.favs-starters { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.favs-starters label { font-size: 14px; background: #fff; border: 1px solid rgba(21, 85, 192, 0.3); color: var(--accent); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.favs-score .chat-input { max-width: 720px; }
.bubble-new { font: 600 12px var(--mono); letter-spacing: 0; text-transform: none; background: #e5362b; color: #fff; border-radius: 999px; padding: 2px 9px; margin-left: 6px; }
.bubble-new[hidden] { display: none; }
.favs-newscard.has-new { border-color: #f0b3ad; background: #fff8f7; }
.favs-news li.new { font-weight: 600; padding-left: 16px; position: relative; }
.favs-news li.new::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: #e5362b; }
.nav-fav b.has-new { background: #e5362b; color: #fff; }
@media (max-width: 640px) { .favs-score { grid-template-columns: 1fr; padding: 20px; } .favs-score > div { padding-bottom: 0; } .favs-score-figure { display: none; } .favs-head-side { align-items: flex-start; } .fit-cta span { white-space: normal; } }

/* ---------- Account: sign in, and the reason to on the favourites page ---------- */
.login { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px; align-items: start; max-width: 980px; }
.login-card { border: 1px solid var(--line); border-radius: 26px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -36px rgba(14, 27, 51, 0.35); background: #fff; }
.login-card h1 { margin: 0; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.login-card p { margin: 0; }
.login-card form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.login-card label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.login-card input[type="email"] { border: 1px solid #c9c5bc; border-radius: 14px; padding: 13px 14px; font: inherit; }
.login-card form button { justify-content: center; }
.login-why { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; color: var(--ink); }
.login-why li { padding-left: 30px; position: relative; }
.login-why li::before { content: ""; position: absolute; left: 4px; top: 0.35em; width: 8px; height: 14px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.nav-account { white-space: nowrap; }
.favs-save { background: rgba(234, 240, 251, 0.8); border: 1px solid rgba(21, 85, 192, 0.22); border-radius: 22px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.favs-save[hidden], .favs-saved[hidden] { display: none; }
.favs-save > div:first-child { display: flex; flex-direction: column; gap: 4px; max-width: 620px; }
.favs-save strong { font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.favs-save span { color: #4a6291; }
.favs-save-go { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.favs-saved { margin: 0; }
@media (max-width: 800px) { .login { grid-template-columns: 1fr; gap: 24px; } .login-why { margin-top: 0; } .favs-save-go { align-items: flex-start; } }

/* Sign-in: Google and passkey first, the link by email after "or". */
.login-ways { display: flex; flex-direction: column; gap: 10px; }
.login-ways .error[hidden] { display: none; }
.way { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-decoration: none; }
.way[hidden] { display: none; }
.login-or { margin: 4px 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-ways:not(:has(.way:not([hidden]))) + .login-or { display: none; }
.account-security { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.account-security h2 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.account-security .error[hidden] { display: none; }
.account-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.account-keys li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.account-keys li span { display: flex; flex-direction: column; line-height: 1.25; }
.account-keys em { font-style: normal; font-size: 13px; color: var(--muted); }
.account-google { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.account-google span { flex: 1; }

/* Price alerts on the favourites page, once signed in. */
.fav-alert { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.fav-alert[hidden], .favs-alerts[hidden], [data-passkey-offer][hidden], [data-favs-saved][hidden] { display: none; }
.fav-alert small { color: var(--muted); font-size: 13px; }
.favs-alerts .switch, .fav-alert.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--ink); font-size: 15px; position: relative; }
.favs-alerts .switch input, .fav-alert input { position: absolute; opacity: 0; }
.favs-alerts .switch i, .fav-alert i { flex: none; width: 40px; height: 24px; border-radius: 999px; background: #c9c5bc; position: relative; transition: background 120ms; }
.favs-alerts .switch i::after, .fav-alert i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left 120ms; }
.favs-alerts .switch input:checked + i, .fav-alert input:checked + i { background: var(--accent); }
.favs-alerts .switch input:checked + i::after, .fav-alert input:checked + i::after { left: 19px; }
.favs-alerts .switch input:focus-visible + i, .fav-alert input:focus-visible + i { outline: 3px solid rgba(21, 85, 192, 0.35); outline-offset: 2px; }
.favs-saved:not(:has(:not([hidden]))) { display: none; }

/* Recently sold: the estate agent's diagonal ribbon across the corner of the photo. */
.sold-card .card-media { overflow: hidden; }
.sold-card .card-media img { filter: saturate(0.85); }
.sold-ribbon { position: absolute; top: 22px; left: -46px; width: 180px; transform: rotate(-45deg); background: #c8102e; color: #fff; text-align: center; font: 700 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 9px 0; box-shadow: 0 6px 14px -6px rgba(14, 27, 51, 0.55); z-index: 1; pointer-events: none; }
.sold-card .card-body { gap: 4px; }
.sold-card .place { margin: 0; font: 400 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.sold-card h3 { margin: 0; font-size: 19px; }
.sold-when { margin: 6px 0 0; font-weight: 600; color: #c8102e; }
.sold-was { margin: 0; font: 400 16px var(--mono); color: var(--muted); text-decoration: line-through; }
.sold-foot { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.drop-when { margin: 2px 0 0; font-size: 13px; color: #8a5a00; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Back office (src/admin.tsx Shell, src/dash.tsx) ---------- */
body.bo { background: var(--soft); display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; font-size: 15px; line-height: 1.5; }
.bo-side { background: #fff; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.bo-side .brand { padding: 0 8px; }
.bo-side .wordmark { font-weight: 600; font-size: 16px; }
.bo-side nav { display: flex; flex-direction: column; gap: 2px; }
.bo-side nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.bo-side nav a:hover { background: var(--soft); }
.bo-side nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bo-badge { font: 500 12px/1.5 var(--mono); background: #eeece6; color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.bo-badge.red { background: #e5362b; color: #fff; }
.bo-side-note { margin-top: auto; font-size: 12px; color: var(--muted); padding: 12px 10px 0; border-top: 1px solid #eeece6; }
.bo-main { padding: 28px 32px 48px; max-width: 1200px; min-width: 0; }
.bo-main.wide { max-width: 1480px; }
.bo-main > h1 { margin-top: 0; }
.bo-main .table-scroll.bo-card { padding: 8px 18px; }
.bo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bo-head h1 { margin: 6px 0 2px; font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; }
.bo-head h1 em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); }
.bo-head p { margin: 0; }
.bo-eyebrow { font: 400 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.bo-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.bo-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: #fff; }
.bo-seg a { padding: 7px 14px; color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.bo-seg a + a { border-left: 1px solid var(--line); }
.bo-seg a[aria-current] { background: var(--accent); color: #fff; }
.bo-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bo-card > strong { font-size: 17px; }
.bo-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bo-card-head strong { font-size: 17px; }
.bo-card-head small { color: var(--muted); font-size: 12px; }
.bo-card p { margin: 0; }
.bo-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.bo-kpi { gap: 4px; }
.bo-kpi > span { font-size: 13px; color: var(--muted); }
.bo-kpi > b { font: 500 30px/1.15 var(--mono); letter-spacing: -0.03em; color: var(--ink); }
.bo-kpi > b.small-b { font-size: 20px; line-height: 1.4; }
.bo-kpi small { font-size: 12px; }
.bo-kpi small.good, .bo-main .good { color: #156f15; }
.bo-kpi small.bad, .bo-main .bad { color: #b3261e; }
.bo-kpi small.muted { color: var(--muted); }
.bo-spark { width: 100%; height: 24px; margin-top: 4px; }
.bo-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bo-row { display: grid; gap: 16px; margin-bottom: 16px; }
.bo-row.two { grid-template-columns: 1.35fr 1fr; }
.bo-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bo-step { display: grid; grid-template-columns: 170px 1fr 120px; gap: 12px; align-items: center; }
.bo-step > b, .bo-meter > b { font: 500 15px var(--mono); color: var(--ink); text-align: right; }
.bo-step small { color: var(--muted); font-size: 12px; }
.bo-bar { display: block; height: 10px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.bo-bar.tall { height: 26px; border-radius: 8px; }
.bo-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.bo-todo { background: rgba(234, 240, 251, 0.8); border-color: rgba(21, 85, 192, 0.22); }
.bo-todo-item { background: #fff; border-radius: 14px; padding: 11px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.bo-todo-item:hover { box-shadow: 0 8px 20px -14px rgba(21, 85, 192, 0.6); }
.bo-todo-item > span:first-child { display: flex; flex-direction: column; }
.bo-todo-item small { color: var(--muted); font-size: 13px; }
.bo-todo-item .go { color: var(--accent); white-space: nowrap; }
.bo-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #eeece6; }
.bo-stack > span { display: block; height: 100%; }
.bo-line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--text); text-decoration: none; }
.bo-line > span { display: inline-flex; align-items: center; gap: 8px; }
.bo-line i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bo-line b { font: 500 15px var(--mono); color: var(--ink); }
.bo-line b.warn { color: #8f5600; }
.bo-meter { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; }
.bo-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.bo-chips span { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.bo-table-head, .bo-table-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px 52px; gap: 8px; align-items: center; }
.bo-table-head { font-size: 12px; color: var(--muted); }
.bo-table-head span, .bo-table-row > span, .bo-table-row > b { text-align: right; }
.bo-table-row { padding: 6px 0; border-bottom: 1px solid #eeece6; }
.bo-table-row > a, .bo-table-row > span:first-child { color: var(--ink); text-decoration: none; text-align: left; line-height: 1.3; }
.bo-table-row > span, .bo-table-row > b { font: 500 14px var(--mono); }
.bo-table-row > b { color: var(--accent); }
.bo-table-head.three, .bo-table-row.three { grid-template-columns: minmax(0, 1fr) 64px 52px 52px; }
.bo-health { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 20px; }
.bo-health > strong { font-size: 15px; }
.bo-health > span { display: inline-flex; align-items: center; gap: 8px; }
.bo-health small { color: var(--muted); font-size: 13px; }
.bo-health i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #1e911e; }
.bo-health i.warn { background: #e0a100; }
.bo-list { margin: 0; padding-left: 18px; columns: 2; }
.bo-main .tabs { margin-top: 0; }
@media (max-width: 1100px) {
  .bo-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bo-row.two, .bo-row.three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.bo { grid-template-columns: 1fr; }
  .bo-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .bo-side nav { flex-direction: row; flex-wrap: wrap; }
  .bo-side-note { display: none; }
  .bo-main { padding: 20px 16px 40px; }
  .bo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bo-step { grid-template-columns: 120px 1fr 80px; }
}

/* ---------- Main menu (MainNav in src/views.tsx) ---------- */
.main-nav { align-items: center; }
.bar nav.main-nav a[aria-current="page"]:not(.button):not(.nav-projects) { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.nav-projects { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) !important; font-weight: 600; white-space: nowrap; }
.nav-projects svg { fill: currentColor; }
.nav-projects:hover { background: #dbe6f8; }
.nav-projects[aria-current="page"] { background: var(--accent); color: #fff !important; }
.hero-nav .nav-projects { background: rgba(255, 255, 255, 0.16); color: #fff !important; }
.hero-nav .nav-projects:hover { background: rgba(255, 255, 255, 0.26); }
@media (max-width: 860px) {
  .site-header .bar { row-gap: 8px; padding-bottom: 10px; }
  .site-header .bar nav.main-nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding: 2px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-header .bar nav.main-nav::-webkit-scrollbar { display: none; }
  .site-header .bar nav.main-nav a { white-space: nowrap; flex: none; }
}

/* ---------- The main menu on a phone (PhoneMenu in src/views.tsx; owner, 2026-11-28: "the menu gets cut off") ----------
   The row that scrolled sideways hid its last items; on a phone a Menu button beside the logo opens every item. */
.nav-phone { display: none; }
@media (max-width: 640px) {
  .site-header .bar nav.main-nav, .hero-nav > nav.main-nav { display: none; }
  .site-header .bar, .hero-nav { position: relative; }
  .site-header .bar { flex-wrap: nowrap; min-height: 64px; padding-bottom: 10px; }
  .nav-phone { display: block; margin-left: auto; flex: none; }
  .nav-phone summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
  .nav-phone summary::-webkit-details-marker { display: none; }
  .nav-phone summary svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-phone .nav-phone-x, .nav-phone[open] .nav-phone-bars { display: none; }
  .nav-phone[open] .nav-phone-x { display: block; }
  .nav-phone[open] summary { border-color: var(--accent); color: var(--accent); }
  .hero-nav .nav-phone summary { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); color: #fff; }
  .hero-nav .nav-phone[open] summary { background: #fff; border-color: #fff; color: var(--ink); }
  /* nav.nav-phone-panel outweighs the rules for the menus in the light and dark headers (.bar nav, .hero-nav nav). */
  .nav-phone > nav.nav-phone-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; margin: 0; padding: 8px; font-size: 17px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(14, 27, 51, 0.4); }
  .site-header .bar .nav-phone > nav.nav-phone-panel { left: 12px; right: 12px; }
  .nav-phone > nav.nav-phone-panel a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
  .nav-phone > nav.nav-phone-panel a:hover, .nav-phone > nav.nav-phone-panel a:focus-visible { background: var(--soft); color: var(--ink); }
  .nav-phone > nav.nav-phone-panel a[aria-current="page"]:not(.nav-projects) { background: var(--soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); padding-bottom: 10px; }
  /* The projects keep their light-blue button, in the dark headers too. */
  .nav-phone > nav.nav-phone-panel .nav-projects { background: var(--accent-soft); color: var(--accent) !important; margin-bottom: 4px; }
  .nav-phone > nav.nav-phone-panel .nav-projects:hover { background: #dbe6f8; }
  .nav-phone > nav.nav-phone-panel .nav-projects[aria-current="page"] { background: var(--accent); color: #fff !important; }
  .nav-phone-panel .nav-ready i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(30, 145, 30, 0.18); }
  .nav-phone > nav.nav-phone-panel .nav-phone-sub { flex-direction: column; align-items: flex-start; gap: 2px; }
  .nav-phone-panel a:not(.nav-phone-sub) + .nav-phone-sub { position: relative; margin-top: 9px; }
  .nav-phone-panel a:not(.nav-phone-sub) + .nav-phone-sub::before { content: ""; position: absolute; left: 14px; right: 14px; top: -6px; border-top: 1px solid #eeece6; }
  .nav-phone-panel .nav-phone-sub b { font-weight: 500; }
  .nav-phone-panel .nav-phone-sub span { font-size: 14px; font-weight: 400; color: var(--muted); }
}

/* ---------- Price slider (FilterPanel in src/extra.tsx) ---------- */
.filters2 legend .pr-label { float: right; font: 500 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.price-range .hist { margin: 0 11px; }
.pr-track { position: relative; height: 30px; margin-top: -4px; }
.pr-track::before { content: ""; position: absolute; left: 11px; right: 11px; top: 13px; height: 4px; border-radius: 2px; background: #e6e3dc; }
.pr-fill { position: absolute; top: 13px; height: 4px; border-radius: 2px; background: var(--accent); }
.pr-track input[type="range"] { position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; min-height: 0; border: 0; z-index: 2; }
.pr-track input[type="range"]:focus { outline: none; }
.pr-track input[type="range"]::-webkit-slider-runnable-track { height: 30px; background: transparent; border: 0; }
.pr-track input[type="range"]::-moz-range-track { height: 30px; background: transparent; border: 0; }
.pr-track input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(14, 27, 51, 0.25); cursor: grab; }
.pr-track input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(14, 27, 51, 0.25); cursor: grab; }
.pr-track input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
.pr-track input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(21, 85, 192, 0.25); }
.pr-track input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(21, 85, 192, 0.25); }

/* ---------- Jaine on your list (src/favs.tsx) ---------- */
.jaine-facts { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jaine-facts li { position: relative; padding-left: 22px; color: var(--ink); font-size: 16px; line-height: 1.4; }
.jaine-facts li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: 0.85; }
.favs-card .heard-label { margin: 0 0 6px; }
/* ---------- Project page: sub-menu and photo carousel (src/views.tsx) ---------- */
.subbar { position: sticky; top: 0; z-index: 25; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -26px rgba(14, 27, 51, 0.5); }
.subbar-in { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.subbar-name { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; max-width: 240px; }
.subbar-name strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subbar-name span { font: 500 12px var(--mono); color: var(--muted); }
.subbar nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; font-size: 15px; }
.subbar nav::-webkit-scrollbar { display: none; }
.subbar nav a { color: var(--text); text-decoration: none; white-space: nowrap; height: 56px; display: inline-flex; align-items: center; }
.subbar nav a:hover { color: var(--accent); }
.subbar nav a[aria-current] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.subbar .button { margin-left: auto; white-space: nowrap; }
.landing-body > .lead-box, .landing-cols .lead-box { top: 76px; }
html { scroll-padding-top: 72px; }
@media (max-width: 860px) {
  .subbar-name, .subbar .button { display: none; }
  .subbar-in { min-height: 46px; }
  .subbar nav a { height: 46px; font-size: 14px; }
}
.gallery { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.gal-stage { position: relative; border-radius: 26px; overflow: hidden; background: #e9e6df; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 8.4; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 26px; line-height: 1; box-shadow: 0 10px 30px -12px rgba(14, 27, 51, 0.6); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gal-arrow:hover { background: #fff; }
.gal-arrow.prev { left: 18px; }
.gal-arrow.next { right: 18px; }
.gal-count { position: absolute; left: 18px; bottom: 16px; background: rgba(14, 27, 51, 0.72); color: #fff; font: 500 13px var(--mono); border-radius: 999px; padding: 5px 12px; pointer-events: none; }
.gal-full { position: absolute; right: 16px; bottom: 14px; min-height: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); border: 0; font-size: 14px; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.gal-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 6px; }
.gal-thumbs button { flex: 0 0 clamp(96px, 13%, 150px); aspect-ratio: 4 / 3; padding: 0; min-height: 0; border: 0; border-radius: 12px; overflow: hidden; background: #e9e6df; cursor: pointer; opacity: 0.7; transition: opacity 120ms, box-shadow 120ms; }
.gal-thumbs button:hover { opacity: 1; }
.gal-thumbs button[aria-current] { opacity: 1; box-shadow: 0 0 0 3px var(--accent); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal-viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 27, 51, 0.97); color: #fff; }
.gal-viewer[open] { display: flex; flex-direction: column; }
.gal-viewer::backdrop { background: rgba(14, 27, 51, 0.6); }
.gal-viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; font-size: 15px; }
.gal-viewer-top b { font: 500 14px var(--mono); }
.gal-viewer-actions { display: flex; gap: 10px; align-items: center; }
.gal-x { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 16px; cursor: pointer; }
.gal-viewer-main { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 80px; }
.gal-viewer-main img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.gal-arrow.dark { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.gal-arrow.dark:hover { background: rgba(255, 255, 255, 0.26); }
.gal-viewer-thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 12px 20px 18px; }
.gal-viewer-thumbs button { flex: 0 0 84px; aspect-ratio: 4 / 3; padding: 0; min-height: 0; border: 0; border-radius: 8px; overflow: hidden; opacity: 0.55; cursor: pointer; background: transparent; }
.gal-viewer-thumbs button[aria-current] { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.gal-viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .gal-stage { border-radius: 18px; }
  .gal-slide { aspect-ratio: 4 / 3; }
  .gal-arrow { width: 40px; height: 40px; font-size: 22px; }
  .gal-arrow.prev { left: 10px; }
  .gal-arrow.next { right: 10px; }
  .gal-full span + * { display: none; }
  .gal-thumbs { display: none; }
  .gal-viewer-main { padding: 0 8px; }
  .gal-viewer-main .gal-arrow { display: none; }
  .gal-viewer-top .button { display: none; }
}

/* ---------- Buying guide (src/guide.tsx) ---------- */
.g-hero { background: linear-gradient(180deg, var(--soft), #fff); padding: 56px 0 40px; }
.g-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.04em; max-width: 920px; margin: 10px 0 16px; }
.g-hero .lead { max-width: 720px; }
.g-search { position: relative; max-width: 640px; margin: 22px 0 0; }
.g-search input { border-radius: 999px; padding-left: 22px; }
.g-search ul { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -28px rgba(14, 27, 51, 0.45); }
.g-search li a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.g-search li a:hover { background: var(--accent-soft); }
.g-search li small { color: var(--muted); font-size: 12px; }
.g-search li.empty { padding: 9px 12px; color: var(--muted); }
.g-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.g-quick a { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); transition: box-shadow 150ms; }
.g-quick a:hover { box-shadow: 0 18px 40px -26px rgba(21, 85, 192, 0.55); }
.g-quick span { font-size: 14px; color: var(--muted); }
.g-quick strong { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.g-quick i { font-style: normal; font-size: 14px; color: var(--accent); }
.g-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 32px; padding-bottom: 72px; }
.g-toc { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.g-toc nav { display: flex; flex-direction: column; border-left: 2px solid #eeece6; }
.g-toc nav a { display: flex; gap: 10px; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; font-size: 15px; }
.g-toc nav a span { font: 400 12px var(--mono); color: #687083; padding-top: 3px; }
.g-toc nav a[aria-current] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.g-ask { display: flex; gap: 10px; background: var(--accent-soft); border-radius: 16px; padding: 14px; text-decoration: none; color: #4a6291; }
.g-ask img { border-radius: 50%; flex: none; width: 34px; height: 34px; }
.g-ask span { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.g-ask strong { color: var(--ink); font-size: 14px; }
.g-ask i { font-style: normal; color: var(--accent); }
.g-main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.g-section { scroll-margin-top: 20px; }
.g-n { font: 400 12px var(--mono); letter-spacing: 0.08em; color: var(--accent); margin: 0 0 6px; }
.g-section h2 { font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; }
.g-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 15px; }
.g-tabs a[aria-selected="true"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.g-tabs.pills { border: 0; gap: 0; display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.g-tabs.pills a { padding: 7px 14px; font-size: 14px; }
.g-tabs.pills a[aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: none; font-weight: 500; }
.g-panel { display: flex; flex-direction: column; gap: 14px; }
.g-panel + .g-panel { margin-top: 28px; }
.js-tabs .g-panel:not([data-active]) { display: none; }
.js-tabs .g-panel + .g-panel { margin-top: 0; }
.g-panel-title { font-size: 19px; margin: 0; }
.js-tabs .g-tabs ~ .g-panel .g-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.g-panel p { margin: 0; }
.g-short { background: var(--soft); border-radius: 18px; padding: 16px 20px; display: flex; gap: 14px; }
.g-short span { font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); flex: none; padding-top: 5px; }
.g-short p { color: var(--ink); font-size: 18px; line-height: 1.5; }
.g-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.g-facts div { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.g-facts b { font: 500 24px/1.2 var(--mono); color: var(--ink); letter-spacing: -0.02em; }
.g-facts span { font-size: 14px; color: var(--muted); }
.g-list { border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
.g-list.warn { border-color: #f2d9a6; background: #fffaf0; }
.g-list ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.g-list li { position: relative; padding-left: 24px; }
.g-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); }
.g-list.warn li::before { content: "!"; color: #8f5600; font-weight: 600; left: 4px; }
.g-table { overflow-x: auto; }
.g-table table, .m-table table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 15px; }
.g-table th { background: var(--soft); text-align: left; padding: 10px 14px; color: var(--ink); font-weight: 600; }
.g-table td { padding: 10px 14px; border-top: 1px solid #eeece6; }
.g-table td:not(:first-child) { font-family: var(--mono); }
.g-sources { color: var(--muted); }
.g-sources a { color: var(--accent); }
.g-end { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.g-end h2 { font-size: 28px; margin: 0 0 12px; }
.g-faq { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.g-faq summary { cursor: pointer; color: var(--ink); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); }
.g-faq[open] summary::after { content: "\2212"; }
.g-faq p { margin: 10px 0 0; }
.g-end-side { display: flex; flex-direction: column; gap: 16px; }
.g-next { background: #fff; border: 1px solid rgba(21, 85, 192, 0.22); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -36px rgba(21, 85, 192, 0.5); }
.g-next strong { font-size: 21px; }
.g-next-go { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 0; }
.g-sourcelist { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.g-sourcelist ul { margin: 8px 0; padding-left: 18px; font-size: 14px; }
/* On a phone (owner, 2026-11-28): the tabs of a chapter wrap as pills instead of running off the screen, the short
   answer stacks under its label, and a table becomes one card per row with each figure named (data-label). */
@media (max-width: 640px) {
  .g-tabs:not(.pills) { flex-wrap: wrap; gap: 6px; overflow: visible; border-bottom: 0; }
  .g-tabs:not(.pills) a { padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; white-space: normal; }
  .g-tabs:not(.pills) a[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; font-weight: 500; }
  .g-short { flex-direction: column; gap: 6px; padding: 14px 16px; }
  .g-short span { padding-top: 0; }
  .g-short p { font-size: 17px; }
  .g-table table, .g-table tbody, .g-table tr, .g-table td { display: block; }
  .g-table table { border: 0; border-radius: 0; overflow: visible; }
  .g-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .g-table tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
  .g-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0; border: 0; }
  .g-table td::before { content: attr(data-label); flex: none; max-width: 50%; text-align: left; font: 400 13px var(--sans); color: var(--muted); }
  .g-table td:not(:first-child) { text-align: right; }
  .g-table td:first-child { display: block; padding-bottom: 6px; font-weight: 600; color: var(--ink); }
  .g-table td:first-child::before { display: none; }
}
@media (max-width: 900px) {
  .g-body { grid-template-columns: 1fr; }
  .g-toc { position: static; }
  .g-toc nav { display: none; }
  .g-quick, .g-end { grid-template-columns: 1fr; }
}

/* ---------- Mortgage page and the free check (src/mortgage.tsx, public/mortgage.js) ---------- */
.m-hero { background: linear-gradient(180deg, var(--soft), #fff); }
.m-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 64px; }
.m-hero h1 { font-size: clamp(38px, 4.8vw, 56px); line-height: 1.02; letter-spacing: -0.04em; margin: 10px 0 16px; }
.m-trust { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.m-trust li { position: relative; padding-left: 32px; }
.m-trust li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #e3f4e3; color: #156f15; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.m-trust span { color: var(--muted); }
.m-watch { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.m-watch span { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.m-h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 10px; }
.m-lead { color: var(--muted); max-width: 680px; margin: 0 0 24px; }
.m-risks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.m-risks article, .m-card { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.m-risks h3, .m-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.m-risks p { margin: 0; color: var(--muted); }
.m-tag { align-self: flex-start; font: 500 12px var(--mono); color: #8f5600; background: #fdf3db; border-radius: 999px; padding: 3px 10px; }
.m-video { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.m-video video { width: 100%; height: auto; border-radius: 22px; background: #0e1b33; aspect-ratio: 16 / 9; }
.m-points { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.m-soft { background: var(--soft); }
.m-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.m-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.m-numbers article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.m-numbers b { font: 500 32px/1.1 var(--mono); letter-spacing: -0.03em; color: var(--ink); }
.m-numbers p { margin: 0; font-size: 14px; color: var(--muted); }
.m-numbers small { margin-top: auto; font-size: 12px; color: var(--accent); }
.m-example { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.m-table dl { margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.m-table dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 20px; border-bottom: 1px solid #eeece6; }
.m-table dl div:last-child { border-bottom: 0; }
.m-table dt { color: var(--ink); }
.m-table dd { margin: 0; font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.m-table .sub dt, .m-table .sub dd { color: var(--muted); }
.m-table .total { background: var(--soft); font-weight: 600; }
.m-table .pay { background: var(--accent-soft); }
.m-table .pay dd { color: var(--accent); font-weight: 600; }
.m-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.m-timeline li { display: flex; flex-direction: column; gap: 6px; }
.m-timeline li > span { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font: 500 13px var(--mono); }
.m-timeline li.key > span { background: var(--accent); color: #fff; }
.m-timeline p { margin: 0; font-size: 14px; color: var(--muted); }
.m-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.m-docs, .m-rights { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.m-docs li { position: relative; padding-left: 28px; }
.m-docs li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--accent); }
.m-docs span { color: var(--muted); }
.m-rights li { position: relative; padding-left: 24px; }
.m-rights li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); }
.m-pays { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-pays div { border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.m-pays .you { background: #fdf3db; }
.m-pays .bank { background: var(--accent-soft); }
.m-src { color: var(--accent); font-size: 12px; }
.m-equity { border: 1px solid rgba(21, 85, 192, 0.22); background: rgba(234, 240, 251, 0.6); border-radius: 22px; padding: 28px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.m-equity h3 { font-size: 24px; margin: 10px 0 8px; letter-spacing: -0.02em; }
.m-equity p { margin: 0; color: var(--muted); }
.m-procon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.m-procon ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.m-procon .pro { color: #156f15; }
.m-procon .con { color: #b3261e; }
.m-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.m-offers article { border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.m-offers article.report { border: 2px solid var(--accent); background: rgba(234, 240, 251, 0.55); }
.m-offer-head { display: flex; justify-content: space-between; align-items: baseline; width: 100%; }
.m-offer-head h3 { margin: 0; font-size: 23px; }
.m-offer-head b { font: 500 30px var(--mono); color: var(--ink); }
.m-offers p { margin: 0; }
.m-close { background: #fff; border: 1px solid rgba(21, 85, 192, 0.22); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; box-shadow: 0 30px 60px -36px rgba(21, 85, 192, 0.5); }
.m-close-quote { display: flex; gap: 14px; align-items: center; }
.m-close-quote img { border-radius: 50%; flex: none; }
.m-close .jaine-says { font-size: 24px; margin: 0; }
.scan { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 70px -36px rgba(21, 85, 192, 0.55); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 80px; }
.scan-head { display: flex; justify-content: space-between; align-items: center; }
.scan-who { display: flex; align-items: center; gap: 10px; }
.scan-who img { border-radius: 50%; }
.scan-badge { font-size: 12px; background: #e3f4e3; color: #156f15; border-radius: 999px; padding: 4px 10px; }
.scan-title { font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.scan-progress { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.scan-bar { display: block; height: 4px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.scan-bar span { display: block; height: 100%; background: var(--accent); transition: width 200ms; }
.scan-prefilled { margin: 0; font-size: 13px; color: var(--accent); }
.scan-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.scan-step legend { font-size: 18px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 4px; }
.scan-help { margin: 0; font-size: 14px; color: var(--muted); }
.scan-choices { display: flex; flex-direction: column; gap: 8px; }
.scan-choice { text-align: left; min-height: 48px; padding: 11px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
.scan-choice:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.scan-choice[aria-pressed="true"], .scan-choice[aria-pressed="true"]:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.scan-choice.multi[aria-pressed="true"], .scan-choice.multi[aria-pressed="true"]:hover { background: var(--accent-soft); color: var(--accent); }
.scan-done { align-self: flex-start; margin-top: 4px; }
.scan-own div { display: flex; gap: 8px; margin-top: 8px; }
.scan-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #eeece6; padding-top: 10px; font-size: 13px; color: var(--muted); }
.scan-rating { margin: 0; font-size: 12px; color: var(--muted); }
.scan-verdict { border-radius: 16px; padding: 14px 16px; }
.scan-verdict strong { font-size: 18px; }
.scan-verdict p { margin: 4px 0 0; font-size: 15px; }
.scan-verdict.v-feasible { background: #e3f4e3; }
.scan-verdict.v-tight, .scan-verdict.v-almost { background: #fdf3db; }
.scan-verdict.v-notNow { background: #fbe4e2; }
.scan-checks { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.scan-checks li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid #eeece6; font-size: 15px; }
.scan-checks b { font-size: 13px; border-radius: 999px; padding: 2px 10px; }
.scan-checks li.ok b { background: #e3f4e3; color: #156f15; }
.scan-checks li.tight b { background: #fdf3db; color: #8f5600; }
.scan-checks li.no b { background: #fbe4e2; color: #b3261e; }
.scan-checks small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.scan-gate { margin: 10px 0 0; font-size: 14px; color: var(--ink); }
.scan-figures dl { margin: 10px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.scan-figures dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #eeece6; }
.scan-figures dl div:last-child { border-bottom: 0; }
.scan-figures dd { margin: 0; font-family: var(--mono); color: var(--ink); }
.scan-after { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 14px; }
.scan-contact { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #eeece6; padding-top: 14px; }
.scan-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scan-contact label > span { font-size: 14px; }
.scan-want { display: flex; flex-direction: column; gap: 6px; }
.scan-error { color: #b3261e; margin: 0; font-size: 14px; }
.scan-noscript { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
@media (max-width: 960px) {
  .m-hero-in, .m-video, .m-example, .m-two, .m-equity, .m-offers { grid-template-columns: 1fr; }
  .m-risks, .m-numbers { grid-template-columns: 1fr 1fr; }
  .m-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .m-risks, .m-numbers, .m-timeline, .m-procon, .m-pays, .scan-two { grid-template-columns: 1fr; }
}
.scan [hidden], .gallery [hidden], .g-search [hidden], .subbar [hidden] { display: none !important; }
.scan-choice { display: flex; justify-content: flex-start; width: 100%; }

/* ---------- Google Maps behind one click (GoogleMap in src/views.tsx) ---------- */
.gmap { position: relative; }
.gmap-gate { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 28px clamp(20px, 5vw, 56px); background:
  radial-gradient(circle at 72% 38%, rgba(21, 85, 192, 0.18) 0 7px, transparent 8px),
  radial-gradient(circle at 58% 62%, rgba(21, 85, 192, 0.14) 0 6px, transparent 7px),
  radial-gradient(circle at 84% 70%, rgba(21, 85, 192, 0.12) 0 6px, transparent 7px),
  linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.9) 46% 47%, transparent 47%),
  linear-gradient(20deg, transparent 0 62%, rgba(255, 255, 255, 0.8) 62% 63%, transparent 63%),
  linear-gradient(160deg, #eaf0fb, #f6f5f1 60%, #e8efe4); }
.gmap-gate strong { font-size: 20px; color: var(--ink); }
.gmap-gate p { margin: 0; max-width: 460px; color: var(--muted); font-size: 15px; }
.gmap-gate .gmap-go { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.gmap.loading .gmap-gate { opacity: 0.6; pointer-events: none; }
.gmap-canvas { width: 100%; height: 100%; }
.gmap .pin span { transform: none; }
.gmap-card { display: flex; flex-direction: column; gap: 3px; max-width: 240px; font: 14px/1.4 var(--sans); color: var(--text); }
.gmap-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.gmap-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
.gmap-card a:hover { color: var(--accent); }
.gmap-card span { color: var(--muted); font-size: 13px; }

/* ---------- Requests: filed under the person (src/requests.tsx) ---------- */
.form-note { margin: 0; line-height: 1.45; }
.account-offer { margin: 12px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--text); }
.account-offer p { margin: 0; }
p.account-offer { display: block; }
p.account-offer .text-link, .account-offer .text-link { padding: 0; }
.notice.ok .account-offer { color: #156f15; }
.scan-after .account-offer { border-top: 1px solid var(--line); padding-top: 14px; }
.your-requests { max-width: 980px; padding-top: 8px; }
.req-head h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; color: var(--ink); }
.req-head p { margin: 4px 0 0; overflow-wrap: anywhere; }
.req-note { margin: 18px 0 0; background: rgba(234, 240, 251, 0.8); border: 1px solid rgba(21, 85, 192, 0.18); border-radius: 16px; padding: 12px 16px; color: #3f5689; }
.req-none { margin: 18px 0 0; color: var(--muted); }
.req-list { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.req { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: #fff; }
.req-media { position: relative; align-self: start; aspect-ratio: 4 / 3; background: var(--soft); }
.req-media img, .req-media .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.req-mark { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); }
.req-mark img { position: static; width: 56px; height: 56px; border-radius: 50%; }
.req.mortgage { grid-template-columns: 110px minmax(0, 1fr); }
.req.mortgage .req-mark { aspect-ratio: auto; align-self: stretch; }
.req-main { padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.req-main h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.req-main h3 a { color: inherit; text-decoration: none; }
.req-main h3 a:hover { color: var(--accent); }
.req-main p { margin: 0; }
.req-main .place { margin: 0; font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.req-when { color: var(--ink); font-weight: 500; }
.req-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req-status .pill { background: var(--soft); color: var(--ink); }
.req-status .pill.busy { background: var(--warn-soft); color: var(--warn); }
.req-status .pill.ok { background: var(--accent-soft); color: var(--accent); }
.req-status .pill.done { background: #eeece6; color: var(--muted); }
.req-verdict strong { color: var(--ink); font-size: 18px; }
.req-figures { margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; }
.req-figures div { border-top: 1px solid var(--line); padding-top: 6px; }
.req-figures dt { font-size: 13px; color: var(--muted); }
.req-figures dd { margin: 0; font: 500 16px var(--mono); color: var(--ink); }
.req-homes { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.req-homes summary { cursor: pointer; font-size: 15px; line-height: 1.45; }
.req-homes summary strong { color: var(--ink); font-weight: 500; }
.req-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.req-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.req-table td { padding: 7px 8px; border-bottom: 1px solid #f0eee8; vertical-align: top; }
.req-table td:nth-child(4), .req-table td:nth-child(5) { font-family: var(--mono); white-space: nowrap; }
.req-table td.lower { color: var(--green); font-weight: 500; }
.req-table td.higher { color: #b3261e; }
.req-table td.gone { color: var(--muted); font-family: var(--sans); }
.req-table td.same { color: var(--muted); font-family: var(--sans); }
.req-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px !important; font-size: 15px; }
.req-links a { text-decoration: none; font-weight: 500; }
.fav-asked { margin: 0; font-size: 14px; color: var(--accent); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.fav-asked span { position: relative; padding-left: 18px; color: var(--ink); }
.fav-asked span::before { content: ""; position: absolute; left: 3px; top: 0.3em; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 700px) { .req, .req.mortgage { grid-template-columns: 1fr; } .req-media { aspect-ratio: 16 / 9; } .req.mortgage .req-mark { aspect-ratio: auto; background: none; justify-content: flex-start; padding: 18px 22px 0; } .req-table th:nth-child(3), .req-table td:nth-child(3) { display: none; } }

/* ==== Buying guide and mortgage page in bands (src/guide.tsx, src/mortgage.tsx, src/bands.tsx) ====
   Claude Design boards "Buying guide with photos and bands" and "Mortgage page with photos and bands", approved by the
   owner on 2026-11-22. The bands, splits, wave and closing band are the homepage's; what follows only adapts them. */

/* The site's menu inside a dark band marks the page you are on. */
.hero-nav nav a[aria-current="page"]:not(.nav-projects) { color: #fff; box-shadow: inset 0 -2px 0 #fff; padding-bottom: 3px; }

/* Guide hero: the homepage's dark band over a photo; this photo is not mirrored and keeps the couple in view. */
.g-hero-band .hero-photo { transform: none; object-position: 70% 50%; }
.g-hero-band::after {
  background:
    linear-gradient(90deg, rgba(14, 27, 51, 0.95) 0%, rgba(14, 27, 51, 0.84) 34%, rgba(14, 27, 51, 0.28) 62%, rgba(14, 27, 51, 0.05) 100%),
    linear-gradient(180deg, rgba(14, 27, 51, 0.7) 0%, rgba(14, 27, 51, 0) 22%, rgba(14, 27, 51, 0) 58%, rgba(14, 27, 51, 0.8) 100%);
}
.g-hero-band .band-in { gap: 56px; padding-bottom: 48px; }
.g-hero-band .hero-copy { gap: 24px; }
.g-hero-band .display-hero { font-size: clamp(40px, 5.2vw, 66px); }
/* The search is the dark chat pill with the fit edge. */
.g-search.dark { display: flex; align-items: center; gap: 12px; max-width: 600px; margin: 0; padding: 0 10px 0 20px; border-radius: 999px; border: 2px solid transparent; background-origin: border-box; background-clip: padding-box, border-box; background-image: linear-gradient(#13234a, #13234a), linear-gradient(100deg, #4d8ef7, #3fbf3f 60%, #fcc13f); box-shadow: 0 24px 60px -24px rgba(77, 142, 247, 0.6); }
.g-search.dark svg { flex: none; fill: none; stroke: #9fb0cc; stroke-width: 2; stroke-linecap: round; }
.g-search.dark input { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; color: #fff; padding: 14px 0; font-size: 17px; }
.g-search.dark input::placeholder { color: #9fb0cc; }
.g-search.dark input:focus-visible { outline: 0; }
.g-search.dark:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.g-search.dark ul { color: var(--text); }
/* The three quick answers as glass cards at the foot of the hero. */
.g-quick.glass { margin-top: 0; }
.g-quick.glass a { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; }
.g-quick.glass a:hover { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
.g-quick.glass span { color: #c9d3e6; }
.g-quick.glass strong { color: #fff; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.g-quick.glass i { color: #fff; font-weight: 500; }

/* The contents as the page's own sub-menu, as on a project page. */
/* A little wider than the page text, so all nine chapters fit on one line on a desktop. */
.g-subbar .wrap { max-width: 1300px; }
.g-subbar .subbar-in { gap: 18px; }
.g-subbar-title { font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.g-subbar nav { gap: 16px; }
.g-subbar nav a span { font: 400 12px var(--mono); color: #687083; margin-right: 5px; }
.g-subbar nav a[aria-current] span { color: var(--accent); }

/* Each chapter is a band: the photo on one side, alternating, stays in view while the tabs are read. */
/* overflow: clip, not the band's hidden: hidden would stop the photo (and the check below) from sticking. */
.g-chapter, .m-hero-band { overflow: clip; }
.g-chapter { scroll-margin-top: 56px; }
.g-split { display: grid; gap: 64px; align-items: start; }
.g-split.photo-left { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.g-split.photo-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.g-split.photo-right .g-photo { order: 2; }
.g-photo { margin: 0; position: sticky; top: 80px; }
.g-photo > img { height: 520px; }
.g-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.g-copy .g-n { font: 400 12px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.g-copy h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 6px; }
.band.paper .g-short, .band.paper .g-facts div, .band.paper .g-list:not(.warn), .band.paper .g-table table, .band.paper .g-sourcelist { background: #fff; }
/* A photo of a project we list carries its name and leads to it. */
.g-photo-label { position: absolute; left: 18px; bottom: 18px; display: inline-flex; flex-direction: column; gap: 1px; max-width: calc(100% - 36px); background: rgba(255, 255, 255, 0.94); border-radius: 16px; padding: 10px 14px; text-decoration: none; box-shadow: 0 18px 40px -20px rgba(14, 27, 51, 0.45); }
.split-media.right .g-photo-label { left: 46px; bottom: 58px; }
.g-photo-label span { font: 400 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.g-photo-label strong { font-size: 15px; line-height: 1.3; }
.g-photo-label:hover strong { color: var(--accent); }
.g-scan-card { text-decoration: none; }
.split-media.left .g-scan-card img, .split-media.right .g-scan-card img { width: 44px; height: 44px; border-radius: 50%; }
.g-scan-card:hover strong { color: var(--accent); }

/* Jaine on the blue wave, beside the place where you ask her. */
.wave .g-ask-band { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: end; padding: 8px 48px 0; }
.g-ask-jaine { display: block; width: 300px; height: auto; }
/* Her picture runs on under the foot of the wave, where the next band's colour covers it along the curve. */
.g-ask-jaine { margin-bottom: -64px; }
.g-ask-foot { position: relative; z-index: 1; }
.g-ask-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-bottom: 72px; max-width: 620px; }
.g-ask-copy p:not(.eyebrow) { margin: 0; font-size: 18px; line-height: 1.55; color: #dbe7ff; }

/* Questions and sources, then the credits for the photos. */
.g-faq-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.g-faq-band .h-band { margin: 14px 0 22px; }
.g-faq-side { display: flex; flex-direction: column; gap: 16px; padding-top: 34px; }
.band-credits { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.band-credits a { color: var(--muted); }
.band-credits a:hover { color: var(--accent); }

/* Mortgage hero: dark with the aurora; the check stays the white card and, where it fits, in view. */
.m-hero-band .band-in { padding: 22px 32px 88px; display: flex; flex-direction: column; gap: 56px; }
.m-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); grid-template-areas: "copy scan" "photo scan"; column-gap: 56px; row-gap: 28px; align-items: start; }
.m-hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.m-hero-grid > .scan { grid-area: scan; color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55); }
.m-hero-band .scan h2, .m-hero-band .scan h3 { color: var(--ink); }
.m-hero-copy .display { font-size: clamp(38px, 4.6vw, 58px); line-height: 1; }
.m-hero-band .m-trust { margin: 0; }
.m-hero-band .m-trust strong { color: #fff; }
.m-hero-band .m-trust span { color: #9fb0cc; }
.m-hero-band .m-trust li::before { background: rgba(63, 191, 63, 0.2); color: #3fbf3f; }
.m-hero-band .m-watch { color: #fff; }
.m-hero-band .m-watch span { border-color: #fff; }
.m-hero-photo { grid-area: photo; width: 100%; height: 300px; object-fit: cover; object-position: 50% 35%; border-radius: 160px 28px 28px 28px; }
@media (min-width: 961px) and (min-height: 820px) { .m-hero-grid > .scan { position: sticky; top: 24px; } }

/* Mortgage bands. */
.m-risk-list { display: flex; flex-direction: column; }
.m-risk-list article { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.m-risk-list h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.m-risk-list p { margin: 0; font-size: 15px; color: var(--muted); }
.band .m-video .split-copy { gap: 16px; }
.m-checked { max-width: 320px; }
.band.white .m-numbers article { background: var(--soft); border-color: transparent; }
.m-example .split-copy { gap: 16px; }
.m-example-photo { position: relative; margin: 10px 0 0; }
.m-example-photo img { width: 100%; height: 300px; object-fit: cover; object-position: 60% 40%; border-radius: 160px 28px 28px 28px; }
.band.paper .m-table dl, .band.paper .m-equity { background: #fff; }
/* The timeline on the blue wave: the steps where the mortgage counts in gold. */
.wave-edge.to-white { background: #fff; }
.wave .m-wave-in { padding: 24px 48px 56px; gap: 18px; }
.m-wave-lead { margin: 0; font-size: 18px; line-height: 1.55; color: #dbe7ff; max-width: 680px; }
.m-wave .m-timeline { margin-top: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.m-wave .m-timeline li { border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 16px; gap: 8px; }
.m-wave .m-timeline li > span { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.m-wave .m-timeline li.key > span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.m-wave .m-timeline strong { color: #fff; font-size: 18px; line-height: 1.3; }
.m-wave .m-timeline p { color: #dbe7ff; font-size: 15px; }
.m-timeline-key { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; color: #cfe0ff; }
.m-timeline-key span { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.m-offers-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.m-offers-band .m-offers { grid-template-columns: 1fr; margin-top: 0; gap: 18px; }
.m-offers-photo { width: 100%; height: 420px; object-fit: cover; object-position: 50% 30%; border-radius: 240px 32px 32px 32px; margin-top: 8px; }
.m-faq-band { display: flex; flex-direction: column; gap: 24px; }
.m-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 20px; align-items: start; }
/* Closing band: Jaine beside her line, where the check starts. */
.m-close-band .band-in.m-close-in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: end; padding-top: 0; padding-bottom: 0; }
.m-close-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding: 96px 0; }
.m-close-copy .jaine-says { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; color: #fff; margin: 0; max-width: 680px; }
.m-close-copy .actions { margin: 0; }
.m-close-note { margin: 0; font-size: 14px; color: #9fb0cc; max-width: 560px; }
.m-close-sources { margin: 0; font-size: 13px; color: #9fb0cc; }
.m-close-sources a { color: #c9d3e6; }
.m-close-jaine { display: block; width: 320px; height: auto; }

@media (max-width: 960px) {
  .m-hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "scan" "photo"; }
  .m-hero-photo { height: 240px; border-radius: 120px 24px 24px 24px; }
  .m-wave .m-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-offers-band { grid-template-columns: 1fr; gap: 32px; }
  .m-offers-photo { height: 280px; border-radius: 140px 24px 24px 24px; }
}
@media (max-width: 900px) {
  .g-split.photo-left, .g-split.photo-right { grid-template-columns: 1fr; gap: 32px; }
  .g-split.photo-right .g-photo { order: 0; }
  .g-photo { position: relative; top: auto; }
  .g-faq-band { grid-template-columns: 1fr; gap: 24px; }
  .g-faq-side { padding-top: 0; }
}
@media (max-width: 860px) { .g-subbar-title { display: none; } }
@media (max-width: 720px) {
  .g-hero-band .band-in { gap: 36px; padding-bottom: 32px; }
  .g-quick.glass a { padding: 14px 16px; }
  .g-photo > img { height: 300px; }
  .split-media.left.g-photo > img { border-radius: 150px 150px 24px 24px; }
  .split-media.right .g-photo-label { left: 12px; bottom: 40px; }
  .wave .g-ask-band { grid-template-columns: 1fr; gap: 8px; padding: 16px 28px 0; }
  .g-ask-copy { order: -1; padding-bottom: 8px; }
  .g-ask-jaine { width: 190px; margin-bottom: -34px; }
  .m-hero-band .band-in { padding: 16px 20px 56px; gap: 36px; }
  .wave .m-wave-in { padding: 16px 28px 40px; }
  .m-example-photo img { height: 240px; border-radius: 120px 24px 24px 24px; }
  .m-close-band .band-in.m-close-in { grid-template-columns: 1fr; gap: 0; }
  .m-close-copy { padding: 56px 0 8px; }
  .m-close-jaine { width: 190px; }
}
@media (max-width: 600px) { .m-wave .m-timeline { grid-template-columns: 1fr; } }

/* ---------- Homepage map band (src/homemap.tsx): our own map, day and night ---------- */
.hm {
  --hm-ink: #0e1b33; --hm-body: #3d4a63; --hm-muted: #5f6678; --hm-accent: #1555c0;
  --hm-glass: rgba(255, 255, 255, 0.74); --hm-glass-bd: rgba(255, 255, 255, 0.95);
  --hm-chip: rgba(255, 255, 255, 0.7); --hm-chip-bd: #e2ded5; --hm-chip-ink: #2a3550; --hm-num: #687083;
  --hm-on: #eaf0fb; --hm-on-bd: #1555c0; --hm-on-ink: #1555c0; --hm-bar: rgba(14, 27, 51, 0.14); --hm-bar-on: #1555c0;
  --hm-bub: #1555c0; --hm-bub-bd: #ffffff; --hm-bub-glow: 0 8px 22px rgba(14, 27, 51, 0.28); --hm-ring: rgba(21, 85, 192, 0.55);
  --hm-town: #0e1b33; --hm-halo: 0 0 4px #fffdf8, 0 0 8px #fffdf8, 0 0 2px #fffdf8; --hm-coastname: #ffffff; --hm-coastshadow: 0 1px 6px rgba(9, 45, 110, 0.55);
  --hm-card: #ffffff; --hm-card-bd: rgba(14, 27, 51, 0.08); --hm-go: #1555c0;
  position: relative; background: var(--soft); color: var(--hm-body); transition: background-color 0.8s ease;
}
.hm[data-mood="night"] {
  --hm-ink: #ffffff; --hm-body: #c9d6ee; --hm-muted: #a3b3d1; --hm-accent: #9cc0ff;
  --hm-glass: rgba(12, 28, 60, 0.6); --hm-glass-bd: rgba(160, 190, 255, 0.24);
  --hm-chip: rgba(255, 255, 255, 0.06); --hm-chip-bd: rgba(160, 190, 255, 0.24); --hm-chip-ink: #e3ebfa; --hm-num: #93a7cb;
  --hm-on: rgba(80, 140, 255, 0.26); --hm-on-bd: #7aa6ff; --hm-on-ink: #ffffff; --hm-bar: rgba(160, 190, 255, 0.2); --hm-bar-on: #7aa6ff;
  --hm-bub: #2f74ff; --hm-bub-bd: rgba(255, 255, 255, 0.9); --hm-bub-glow: 0 0 26px rgba(80, 140, 255, 0.85); --hm-ring: rgba(110, 160, 255, 0.7);
  --hm-town: #e8eefb; --hm-halo: 0 0 6px rgba(3, 8, 20, 0.95), 0 0 12px rgba(3, 8, 20, 0.8); --hm-coastname: #8fb4ff; --hm-coastshadow: 0 0 10px rgba(3, 8, 20, 0.9);
  --hm-card: rgba(10, 24, 52, 0.9); --hm-card-bd: rgba(160, 190, 255, 0.25); --hm-go: #2f6ff0;
  background: #061127;
}
.hm-stage { position: relative; width: 100%; aspect-ratio: 674 / 379; min-height: 640px; max-height: 920px; }
.hm-map { position: absolute; inset: 0; overflow: hidden; background: #1d68cc; transition: background-color 0.8s ease; }
.hm[data-mood="night"] .hm-map { background: #061127; }
.hm-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; transition: opacity 0.6s ease; }
.hm.hm-live .hm-still { opacity: 0; pointer-events: none; }
.hm-leaflet { position: absolute; inset: 0; z-index: 1; font: 14px/1.4 var(--sans); }
.hm-leaflet.leaflet-container { background: transparent; }.hm-leaflet.leaflet-container:focus-visible { outline: 3px solid var(--hm-accent); outline-offset: -3px; }
.hm-map::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 75% 80% at 50% 50%, rgba(3, 8, 20, 0) 55%, rgba(3, 8, 20, 0.7) 100%); opacity: 0; transition: opacity 0.8s ease; }
.hm[data-mood="night"] .hm-map::after { opacity: 1; }
.hm-haze { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hm-haze::before, .hm-haze::after { content: ""; position: absolute; inset: 0; transition: opacity 0.8s ease; }
.hm-haze::before { background: radial-gradient(ellipse 62% 70% at 16% 14%, rgba(255, 253, 248, 0.94) 0%, rgba(255, 253, 248, 0.72) 38%, rgba(255, 253, 248, 0) 70%); }
.hm-haze::after { background: radial-gradient(ellipse 62% 70% at 16% 14%, rgba(4, 11, 26, 0.82) 0%, rgba(4, 11, 26, 0.55) 40%, rgba(4, 11, 26, 0) 72%); opacity: 0; }
.hm[data-mood="night"] .hm-haze::before { opacity: 0; }
.hm[data-mood="night"] .hm-haze::after { opacity: 1; }
/* Names on the map: the coasts in the serif, towns with a dot. */
.hm-coastname span, .hm-place span { position: absolute; white-space: nowrap; pointer-events: none; }
.hm-coastname span { transform: translate(-50%, -50%); font: italic 400 26px/1 "Instrument Serif", Georgia, serif; color: var(--hm-coastname); text-shadow: var(--hm-coastshadow); }
.hm-place span { transform: translate(-3px, -50%); display: flex; align-items: center; gap: 6px; font: 500 13px/1 var(--sans); color: var(--hm-town); text-shadow: var(--hm-halo); }
.hm-place span::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--hm-town); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }
.hm[data-mood="night"] .hm-place span::before { background: #ffd27a; box-shadow: 0 0 8px rgba(255, 210, 122, 0.9); }
/* The projects: a ball per group, which splits as you zoom in; one project is a price. */
.hm-leaflet .hm-ball { box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 3px solid var(--hm-bub-bd); background: var(--hm-bub); color: #ffffff; box-shadow: var(--hm-bub-glow); cursor: pointer; transition: filter 0.2s ease, background-color 0.8s ease, box-shadow 0.8s ease; }
.hm-ball span { font: 600 13px/1 var(--mono); }
.hm-ball.s50 span, .hm-ball.s58 span { font-size: 16px; }
.hm-ball::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid var(--hm-ring); animation: hm-pulse 2.6s ease-out infinite; pointer-events: none; }
.hm-ball:nth-child(3n)::after { animation-delay: 0.9s; }
.hm-ball:nth-child(3n + 1)::after { animation-delay: 1.7s; }
@keyframes hm-pulse { 0% { transform: scale(1); opacity: 0.75; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
.hm-ball:hover, .hm-pin:hover span { filter: brightness(1.15); }
.hm-ball:focus-visible, .hm-pin:focus-visible span { outline: 3px solid #ffffff; outline-offset: 3px; }
.hm-pin span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; padding: 6px 9px; border-radius: 999px; border: 2px solid var(--hm-bub-bd); background: var(--hm-bub); color: #ffffff; font: 600 12px/1 var(--mono); box-shadow: var(--hm-bub-glow); cursor: pointer; }
.hm-tip.leaflet-tooltip { padding: 6px 11px; border-radius: 10px; border: 1px solid var(--hm-card-bd); background: var(--hm-card); color: var(--hm-ink); box-shadow: 0 10px 24px rgba(14, 27, 51, 0.2); font: 500 13px/1.3 var(--sans); }
.hm-tip.leaflet-tooltip-top::before { border-top-color: var(--hm-card); }
/* A ball's listings. */
/* A ball's listings: our own card, placed by the ball (public/site.js); a sheet at the bottom of the screen on a phone. */
.hm-card { position: absolute; z-index: 6; top: 0; left: 0; width: 330px; box-sizing: border-box; padding: 16px; border-radius: 18px; border: 1px solid var(--hm-card-bd); background: var(--hm-card); color: var(--hm-ink); box-shadow: 0 18px 44px rgba(14, 27, 51, 0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 14px/1.4 var(--sans); }
.hm-card[hidden] { display: none; }
.hm-card-x { all: unset; position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; line-height: 1; color: var(--hm-muted); }
.hm-card-x:hover { background: var(--hm-on); color: var(--hm-ink); }
.hm-card-x:focus-visible { outline: 3px solid var(--hm-accent); outline-offset: 1px; }
.hm-pop { display: flex; flex-direction: column; gap: 10px; }
.hm-pop-title { padding-right: 18px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--hm-ink); }
.hm-pop-sub { margin-top: -6px; font-size: 13px; color: var(--hm-muted); }
.hm-pop-list { display: flex; flex-direction: column; gap: 6px; max-height: 344px; overflow-y: auto; overscroll-behavior: contain; }
.hm-card a.hm-pop-card, .hm-pop-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 4px; border-radius: 12px; color: inherit; text-decoration: none; }
.hm-card a.hm-pop-card:hover { background: var(--hm-on); }
.hm-pop-card.loading { height: 72px; background: linear-gradient(90deg, var(--hm-chip) 0%, var(--hm-on) 50%, var(--hm-chip) 100%); background-size: 200% 100%; animation: hm-shimmer 1.2s linear infinite; }
@keyframes hm-shimmer { to { background-position: -200% 0; } }
.hm-pop-photo { display: block; width: 96px; height: 72px; overflow: hidden; border-radius: 10px; background: var(--hm-chip); }
.hm-pop-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-pop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-pop-text strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; color: var(--hm-ink); }
.hm-pop-text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--hm-muted); }
.hm-pop-text em { font: normal 600 13px/1.3 var(--mono); color: var(--hm-accent); }
.hm-pop-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--hm-chip-bd); font-size: 12px; color: var(--hm-muted); }
.hm-pop-more { min-width: 0; }
.hm-pop-more a { color: var(--hm-accent); }
.hm-pop-zoom { all: unset; flex: none; cursor: pointer; padding: 7px 13px; border-radius: 999px; background: var(--hm-go); color: #ffffff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.hm-pop-zoom:focus-visible { outline: 3px solid var(--hm-accent); outline-offset: 2px; }
/* Zoom buttons, in glass, under the day and night switch. */
.hm-leaflet .leaflet-top.leaflet-right .leaflet-control-zoom { margin: 76px max(3vw, calc((100vw - 1280px) / 2)) 0 0; overflow: hidden; border: 1px solid var(--hm-glass-bd); border-radius: 14px; background: var(--hm-glass); box-shadow: 0 8px 24px rgba(14, 27, 51, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hm-leaflet .leaflet-bar a { width: 38px; height: 38px; border-bottom-color: var(--hm-glass-bd); background: transparent; color: var(--hm-ink); font: 500 20px/38px var(--sans); }
.hm-leaflet .leaflet-bar a:hover { background: var(--hm-on); color: var(--hm-ink); }
.hm-leaflet .leaflet-bar a.leaflet-disabled { background: transparent; color: var(--hm-muted); opacity: 0.5; }

.hm-copy { position: absolute; z-index: 5; left: max(4%, calc((100% - 1280px) / 2)); top: 7%; max-width: min(560px, 44%); display: flex; flex-direction: column; gap: 16px; pointer-events: none; }
.hm-copy .eyebrow { color: var(--hm-accent); }
.hm-copy, .hm-haze { transition: opacity 0.35s ease; }
@media (min-width: 861px) {
  .hm.hm-exploring .hm-copy, .hm.hm-exploring .hm-haze, .hm.hm-popped .hm-copy, .hm.hm-popped .hm-haze { opacity: 0; }
}
.hm-h { margin: 0; font-size: clamp(40px, 4.4vw, 62px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: var(--hm-ink); transition: color 0.8s ease; }
.hm-h .hl { color: var(--hm-accent); transition: color 0.8s ease; }
.hm-lead { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.5; color: var(--hm-body); }
.hm-stats { align-self: flex-start; margin: 0; padding: 8px 16px; border-radius: 999px; font: 400 12px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--hm-body); background: var(--hm-chip); border: 1px solid var(--hm-chip-bd); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.hm-panel { position: absolute; z-index: 6; right: max(3%, calc((100% - 1280px) / 2)); bottom: 5%; width: min(420px, 32%); min-width: 360px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--hm-glass); border: 1px solid var(--hm-glass-bd); border-radius: 26px; box-shadow: 0 24px 60px rgba(14, 27, 51, 0.24); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); transition: background-color 0.8s ease, border-color 0.8s ease; }
.hm-group { display: flex; flex-direction: column; gap: 8px; }
.hm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hm-label { margin: 0; font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hm-muted); }
.hm-budget-label { font-size: 13px; font-weight: 500; color: var(--hm-ink); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--hm-chip-bd); background: var(--hm-chip); color: var(--hm-chip-ink); font-size: 13px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease; }
.hm-chip span { font: 400 11px/1 var(--mono); color: var(--hm-num); }
.hm-chip.sm { font-size: 12px; padding: 6px 11px; }
.hm-chip:hover { border-color: var(--hm-on-bd); color: var(--hm-chip-ink); }
.hm-chip.on, .hm-chip.on:hover { background: var(--hm-on); border-color: var(--hm-on-bd); color: var(--hm-on-ink); }
.hm-chip.on span { color: var(--hm-on-ink); }
.hm-chip.off { opacity: 0.45; }
.hm-bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.hm-bars span { flex: 1; background: var(--hm-bar); border-radius: 3px 3px 0 0; transition: height 0.4s ease, background-color 0.3s ease; }
.hm-bars span.on { background: var(--hm-bar-on); }
.hm-beds { flex-direction: row; align-items: center; gap: 12px; }
.hm-seg { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--hm-chip-bd); border-radius: 10px; overflow: hidden; background: var(--hm-chip); }
.hm-seg a { padding: 6px 0; text-align: center; font-size: 13px; color: var(--hm-chip-ink); text-decoration: none; border-left: 1px solid var(--hm-chip-bd); }
.hm-seg a:first-child { border-left: 0; }
.hm-seg a.on { background: var(--hm-go); color: #ffffff; }
.button.hm-go { justify-content: center; width: 100%; box-sizing: border-box; background: var(--hm-go); border-color: var(--hm-go); box-shadow: 0 10px 24px rgba(21, 85, 192, 0.35); }
.hm-jaine { margin: -4px 0 0; text-align: center; font-size: 13px; color: var(--hm-muted); }
.hm-jaine a { color: var(--hm-accent); }

.hm-open { position: absolute; z-index: 5; left: max(4%, calc((100% - 1280px) / 2)); bottom: 7%; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--hm-glass); border: 1px solid var(--hm-glass-bd); box-shadow: 0 10px 30px rgba(14, 27, 51, 0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hm-open-copy { display: flex; flex-direction: column; line-height: 1.3; }
.hm-open-copy strong { font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.hm-open-copy span { font-size: 12px; color: var(--hm-muted); }
.hm-open-copy a { color: var(--hm-accent); }
.hm-open-btn { all: unset; cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(21, 85, 192, 0.3); background: #eaf0fb; color: #1555c0; font-size: 14px; font-weight: 500; white-space: nowrap; }
.hm-open-btn:hover { background: #dce7fa; }
.hm-open-btn:focus-visible { outline: 3px solid #1555c0; outline-offset: 2px; }

/* The day and night switch: the sun rolls over to become the moon. */
.hm-switch { all: unset; position: absolute; z-index: 7; top: 22px; right: max(3%, calc((100% - 1280px) / 2)); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; cursor: pointer; background: var(--hm-glass); border: 1px solid var(--hm-glass-bd); box-shadow: 0 8px 24px rgba(14, 27, 51, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 500 13px/1 var(--sans); color: var(--hm-ink); }
.hm:not(.hm-js) .hm-switch { display: none; }
.hm-switch:focus-visible { outline: 3px solid var(--hm-accent); outline-offset: 3px; }
.hm-switch-text { display: grid; }
.hm-switch-text span { grid-area: 1 / 1; transition: opacity 0.4s ease, transform 0.4s ease; }
.hm-switch-text .night { opacity: 0; transform: translateY(6px); }
.hm[data-mood="night"] .hm-switch-text .day { opacity: 0; transform: translateY(-6px); }
.hm[data-mood="night"] .hm-switch-text .night { opacity: 1; transform: none; }
.hm-switch-track { position: relative; width: 58px; height: 30px; box-sizing: border-box; padding: 0 7px; display: flex; align-items: center; justify-content: space-between; border-radius: 999px; background: linear-gradient(135deg, #8fd0ff, #3d8ef0); color: #ffffff; overflow: hidden; transition: background 0.8s ease; }
.hm[data-mood="night"] .hm-switch-track { background: linear-gradient(135deg, #1b2b55, #0a1630); }
.hm-switch-track::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1px 1px at 11px 9px, #ffffff, transparent), radial-gradient(1.5px 1.5px at 19px 19px, #ffffff, transparent), radial-gradient(1px 1px at 8px 21px, #ffffff, transparent), radial-gradient(1px 1px at 24px 7px, #ffffff, transparent); opacity: 0; transition: opacity 0.8s ease; }
.hm[data-mood="night"] .hm-switch-track::after { opacity: 1; animation: hm-twinkle 2.4s ease-in-out infinite; }
@keyframes hm-twinkle { 50% { opacity: 0.45; } }
.hm-sun, .hm-moon { position: relative; opacity: 0.85; transition: opacity 0.4s ease; }
.hm[data-mood="night"] .hm-sun { opacity: 0; }
.hm-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #ffd34d; box-shadow: 0 0 12px rgba(255, 200, 60, 0.85); transition: transform 0.6s cubic-bezier(0.68, -0.4, 0.27, 1.4), background-color 0.6s ease, box-shadow 0.6s ease; }
.hm[data-mood="night"] .hm-knob { transform: translateX(28px) rotate(-30deg); background: #eef3ff; box-shadow: 0 0 14px rgba(190, 210, 255, 0.9), inset -6px -3px 0 #c9d5f0; }

/* Google Maps in the same place, after the click. */

@media (prefers-reduced-motion: reduce) {
  .hm-ball::after, .hm-pop-card.loading, .hm[data-mood="night"] .hm-switch-track::after { animation: none; }
  .hm-still, .hm-ball, .hm-knob { transition: none; }
}
@media (max-width: 860px) {
  .hm-stage { aspect-ratio: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hm-copy { position: static; order: 1; max-width: none; padding: 40px 16px 18px; gap: 10px; }
  .hm-h { font-size: 36px; }
  .hm-lead { font-size: 16px; }
  .hm-map { position: relative; order: 2; height: 300px; }
  .hm-still { object-position: 30% 50%; }
  .hm-haze { display: none; }
  .hm-coastname span { font-size: 17px; }
  .hm-place span { font-size: 11px; }
  .hm-leaflet .leaflet-top.leaflet-right .leaflet-control-zoom { margin: 58px 12px 0 0; }
  .hm-switch { top: 12px; right: 12px; padding: 4px 4px 4px 10px; }
  .hm-open { left: 12px; top: 12px; bottom: auto; padding: 4px; }
  .hm-open-btn { padding: 8px 13px; font-size: 13px; }
  .hm-open-copy { display: none; }
  .hm-panel { position: relative; order: 3; right: auto; bottom: auto; width: auto; min-width: 0; margin: -44px 12px 32px; padding: 18px 16px; }
  .hm-panel .hm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .hm-panel .hm-chips::-webkit-scrollbar { display: none; }
  .hm-beds { flex-direction: column; align-items: stretch; }
  .hm-seg a { padding: 9px 0; font-size: 14px; }
  .hm-card { position: fixed; top: auto !important; left: 12px !important; right: 12px; bottom: 12px; width: auto; max-height: 64vh; overflow-y: auto; z-index: 80; }
  .hm-pop-list { max-height: none; }
}

/* ==== Our review and What we checked (Claude Design boards "Our review", "What we checked", owner 22 Nov 2026) ==== */
.landing-section.review { padding-top: 56px; }
.review .rv { background: linear-gradient(180deg, rgba(21, 85, 192, 0.07), rgba(21, 85, 192, 0.025)); border: 1px solid rgba(21, 85, 192, 0.18); border-radius: 30px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.rv-head { display: flex; flex-direction: column; gap: 12px; }
.rv-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -0.035em; }
.rv-by { display: flex; align-items: center; gap: 12px; margin: 0; }
.rv-mark { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid rgba(21, 85, 192, 0.2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rv-by > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.rv-by strong { color: var(--ink); font-size: 15px; }
.rv-by > span:last-child > span { font-size: 13px; color: #4a6291; }
.rv-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rv-pills li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; line-height: 1.3; color: var(--ink); }
.rv-pill-icon { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rv-pill-lead { color: var(--accent); }
.tone-green .rv-pill-lead, .rv-fit.tone-green .rv-fit-lead { color: #156f15; }
.tone-green .rv-pill-icon, .rv-fit.tone-green .rv-fit-icon { background: #e9f5e9; color: #156f15; }
.tone-blue .rv-pill-icon, .rv-fit.tone-blue .rv-fit-icon { background: var(--accent-soft); color: var(--accent); }
.rv-text { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; color: #24304a; max-width: 64ch; }
.rv-text p { margin: 0; }
.rv-marks { display: inline-flex; gap: 6px; margin-left: 4px; vertical-align: 4px; line-height: 1; }
.rv-marks a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid rgba(21, 85, 192, 0.3); font: 600 11px var(--mono); color: var(--accent); text-decoration: none; }
/* The fold: a checkbox and its label, so it works without script; the text stays in the page. */
.review .rv { position: relative; }
/* Kept beside the arrow: a hidden box at the top of the block would make the page jump when it gets focus. */
.rv-toggle { position: absolute; left: 50%; bottom: 40px; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.rv-more { display: flex; flex-direction: column; gap: 26px; max-height: 5.4em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 15%, transparent); mask-image: linear-gradient(#000 15%, transparent); }
/* Without script a source number opens its fold through the link target; with script it ticks the box (site.js). */
.rv-toggle:checked ~ .rv-more, html:not(.js) .rv-more:has(:target) { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.rv-arrow { align-self: center; position: relative; margin-top: -40px; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--accent); border: 1px solid rgba(21, 85, 192, 0.28); box-shadow: 0 14px 30px -16px rgba(14, 27, 51, 0.45); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rv-arrow:hover { background: var(--accent-soft); }
.rv-arrow svg { transition: transform 0.2s; }
.rv-toggle:checked ~ .rv-arrow { margin-top: 0; }
.rv-toggle:checked ~ .rv-arrow svg { transform: rotate(180deg); }
.rv-toggle:focus-visible ~ .rv-arrow { outline: 3px solid rgba(21, 85, 192, 0.45); outline-offset: 3px; }
.rv-arrow-open, .rv-arrow-fold { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-toggle:checked ~ .rv-arrow .rv-arrow-open, .rv-toggle:not(:checked) ~ .rv-arrow .rv-arrow-fold { display: none; }
/* Who it suits */
.rv-fits { display: flex; flex-direction: column; gap: 14px; }
.rv-fits-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.rv-fits-head h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.rv-legend { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.rv-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.k-listed { --k-bg: #f1efea; --k-ink: #4f5566; }
.k-measured { --k-bg: #e9f5e9; --k-ink: #156f15; }
.k-compared { --k-bg: var(--accent-soft); --k-ink: var(--accent); }
.k-official { --k-bg: #fff3d6; --k-ink: #8a5a00; }
.rv-kind { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--k-bg); color: var(--k-ink); }
.rv-kind.big { width: 30px; height: 30px; border-radius: 9px; }
.rv-fit { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; box-shadow: 0 18px 40px -34px rgba(14, 27, 51, 0.45); }
.rv-fit-icon { width: 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; }
.rv-fit > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rv-fit p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #3a4560; }
.rv-fit .rv-fit-lead { font: 400 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.rv-fit h4 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 27px; line-height: 1.1; color: var(--ink); }
.rv-fit .rv-why { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.rv-why > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.3; background: var(--k-bg); color: var(--k-ink); border-radius: 999px; padding: 5px 11px 5px 8px; }
.rv-why-n { font: 10px var(--mono); opacity: 0.75; }
/* Sources */
.rv-sources h3 { margin: 0 0 10px; font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #4a6291; }
.rv-sources ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rv-sources li { display: grid; grid-template-columns: 22px 22px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; line-height: 1.45; color: #3a4560; scroll-margin-top: 140px; }
.rv-src-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid rgba(21, 85, 192, 0.3); font: 600 10px var(--mono); color: var(--accent); }
.rv-sources .muted { margin: 12px 0 0; }

/* What we checked */
.landing-section.checked { padding-top: 18px; }
.checked .ck { position: relative; background: var(--soft); border: 1px solid var(--line); border-radius: 30px; padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.ck-head h2 { margin: 8px 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.08; letter-spacing: -0.035em; }
.ck-head .muted { margin: 0; max-width: 56ch; }
.ck-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ck-counters > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ck-counters strong { font: 500 32px/1 var(--mono); letter-spacing: -0.04em; color: var(--ink); }
.ck-counters > div > span:last-child { font-size: 13px; line-height: 1.35; color: var(--muted); }
.ck-updated { margin: 0; font: 400 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ck-updated::before { content: "\25CF\00a0"; color: var(--green); }
.ck-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 24px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ck-card h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.ck-card h3.ck-small { font-size: 19px; }
.ck-card .muted.small { margin: 0; }
.ck-kicker { margin: 0; display: inline-flex; align-items: center; gap: 7px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--k-ink); }
.ck-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ck-card-head > div:first-child { display: flex; flex-direction: column; gap: 4px; max-width: 46ch; }
.ck-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ck-price strong { font: 500 30px/1.05 var(--mono); letter-spacing: -0.03em; color: var(--ink); }
.ck-dots { position: relative; height: 150px; margin-top: 16px; }
.ck-dots > span:not(.ck-median) { position: absolute; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--line-strong); }
.ck-dots > span.mine { background: var(--accent); }
.ck-median { position: absolute; top: -6px; bottom: 0; border-left: 1.5px dashed var(--ink); }
.ck-median span { position: absolute; top: -12px; left: 8px; font-size: 12px; color: var(--ink); background: #fff; padding: 0 4px; white-space: nowrap; }
.ck-axis { position: relative; height: 22px; border-top: 1px solid #d9d6ce; }
.ck-axis span { position: absolute; top: 4px; transform: translateX(-50%); font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.ck-legend { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.ck-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ck-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: inline-block; flex: none; }
.ck-legend i.mine { background: var(--accent); }
.ck-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ck-bars { display: flex; align-items: flex-end; gap: 3px; height: 92px; }
.ck-bars span { flex: 1; min-width: 2px; background: #d9d6ce; border-radius: 3px 3px 0 0; }
.ck-bars span.mine { background: var(--accent); }
.ck-bars-axis { margin: 0; display: flex; justify-content: space-between; gap: 8px; font: 11px var(--mono); color: var(--muted); border-top: 1px solid #d9d6ce; padding-top: 5px; }
.ck-bars-axis .mine { color: var(--accent); }
.ck-big { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ck-big strong { font: 500 28px var(--mono); letter-spacing: -0.03em; color: var(--ink); }
.ck-big span { font-size: 14px; color: var(--muted); }
.ck-places { list-style: none; margin: 0; padding: 0; }
.ck-places li, .ck-places-axis { display: grid; grid-template-columns: 40px minmax(0, 150px) 64px minmax(0, 1fr) 128px; gap: 12px; align-items: center; }
.ck-places li { padding: 11px 0; border-bottom: 1px solid #eeece6; }
.ck-place-icon { width: 40px; height: 40px; border-radius: 12px; background: #e9f5e9; color: #156f15; display: inline-flex; align-items: center; justify-content: center; }
.ck-place-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ck-place-name strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.ck-place-name span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-place-d { font: 500 17px var(--mono); color: var(--ink); text-align: right; }
.ck-place-band { position: relative; height: 18px; display: block; }
.ck-places li .ck-place-band::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: #f1efea; }
.ck-place-band .band { position: absolute; top: 5px; height: 8px; border-radius: 4px; background: #e2dfd8; }
.ck-place-band .med { position: absolute; top: 2px; width: 2px; height: 14px; margin-left: -1px; background: var(--muted); }
.ck-place-band .me { position: absolute; top: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }
.ck-place-tag { justify-self: end; font-size: 12px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: var(--accent-soft); color: var(--accent); }
.ck-place-tag:empty { visibility: hidden; }
.ck-place-tag.good { background: #e9f5e9; color: #156f15; }
.ck-places-axis { height: 16px; }
.ck-places-axis > span:first-child { grid-column: 1 / 4; }
.ck-places-axis .ck-place-band { grid-column: 4; }
.ck-places-axis .ck-place-band span { position: absolute; transform: translateX(-50%); font: 10.5px var(--mono); color: var(--muted); white-space: nowrap; }
.ck-homes { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.ck-homes a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 11px; display: flex; flex-direction: column; gap: 3px; color: var(--ink); text-decoration: none; }
.ck-homes a.big { background: var(--accent-soft); border-color: rgba(21, 85, 192, 0.25); }
.ck-homes a:hover { border-color: var(--accent); }
.ck-homes strong { font: 500 15px var(--mono); letter-spacing: -0.02em; }
.ck-homes span { font-size: 12px; color: var(--muted); }
.ck-homes span.plot { color: #156f15; }
.ck-homes span.noplot { color: #5d6575; }
.ck-homes a.more { justify-content: center; color: var(--accent); font-size: 13px; }
.ck-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ck-badges li { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; font-size: 14px; line-height: 1.25; color: var(--ink); }
.ck-badges svg { color: var(--accent); }
@media (max-width: 640px) {
  .rv-fit { grid-template-columns: 1fr; gap: 12px; }
  .rv-fit-icon { width: 48px; height: 48px; border-radius: 14px; }
  .rv-fit h4 { font-size: 23px; }
  .rv-pills li { font-size: 13.5px; border-radius: 18px; }
}
/* The distances stack when their card is narrow (beside the request card, or on a phone). */
.ck-card { container-type: inline-size; }
@container (max-width: 600px) {
  .ck-places li { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "i n d" ". b b" ". t t"; row-gap: 6px; }
  .ck-place-icon { grid-area: i; }
  .ck-place-name { grid-area: n; }
  .ck-place-d { grid-area: d; }
  .ck-places li > .ck-place-band { grid-area: b; }
  .ck-place-tag { grid-area: t; justify-self: start; }
  .ck-place-tag:empty { display: none; }
  .ck-places-axis { display: none; }
  .ck-price { align-items: flex-start; }
}

/* ---- Project page: the features that sell the home (src/features.tsx) ---- */
.ft { display: flex; flex-direction: column; gap: 22px; }
.ft-head { display: flex; flex-direction: column; gap: 10px; }
.ft-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 34px); line-height: 1.08; letter-spacing: -0.035em; }
.ft-head .muted { margin: 0; max-width: 560px; }
.ft-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ft-top.n1 { grid-template-columns: minmax(0, 1fr); }
.ft-hi { position: relative; overflow: hidden; border-radius: 24px; padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; box-sizing: border-box; border: 1px solid; }
.ft-hi-bg { position: absolute; right: -18px; bottom: -22px; opacity: 0.09; pointer-events: none; }
.ft-hi-icon { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -14px rgba(14, 27, 51, 0.45); }
.ft-hi h3 { margin: 4px 0 0; font: italic 400 30px/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -0.01em; color: var(--ink); }
.ft-hi p { margin: 0; font-size: 15px; line-height: 1.5; color: #2a3550; max-width: 320px; position: relative; }
.ft-fact { align-self: flex-start; margin-top: auto; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; position: relative; }
.ft-hi.tone-blue { background: #eef3fc; border-color: #d6e2f7; color: #1555c0; }
.ft-hi.tone-gold { background: #fdf6e3; border-color: #f3e3b8; color: #8f5600; }
.ft-hi.tone-green { background: #eef7ee; border-color: #d3ead3; color: #156f15; }
.ft-hi.tone-ink { background: #eef0f4; border-color: #dde1e8; color: #2a3550; }
.ft-themes { background: var(--soft); border: 1px solid var(--line); border-radius: 26px; padding: 26px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px 32px; }
.ft-theme h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--ink); }
.ft-theme-icon { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.ft-theme ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ft-theme li { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; line-height: 1.35; color: #2a3550; }
.ft-theme li svg { flex: none; margin-top: 1px; }
.ft-theme.tone-green .ft-theme-icon { background: #e4f2e4; color: #156f15; } .ft-theme.tone-green li svg { color: #156f15; }
.ft-theme.tone-blue .ft-theme-icon { background: #e3ecfb; color: #1555c0; } .ft-theme.tone-blue li svg { color: #1555c0; }
.ft-theme.tone-gold .ft-theme-icon { background: #faefd2; color: #8f5600; } .ft-theme.tone-gold li svg { color: #8f5600; }
.ft-theme.tone-ink .ft-theme-icon { background: #e6e9ef; color: #2a3550; } .ft-theme.tone-ink li svg { color: #2a3550; }
.ft-source { margin: 0; display: flex; align-items: center; gap: 8px; font: 400 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) {
  .ft-top { grid-template-columns: minmax(0, 1fr); }
  .ft-hi { min-height: 0; padding: 20px; }
  .ft-hi h3 { font-size: 26px; }
  .ft-themes { padding: 22px; }
}

/* ---- Mortgage check: amounts as sliders, a Change per check, and what the report adds (owner, 2026-11-22) ---- */
.scan-range { display: flex; flex-direction: column; gap: 10px; }
.scan-range-val { font: 500 30px/1.1 var(--mono); letter-spacing: -0.03em; color: var(--ink); }
.scan-range input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; cursor: pointer; }
.scan-range-ends { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--muted); }
.scan-range-type { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; border-top: 1px solid #eeece6; padding-top: 12px; }
.scan-range-type label { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.scan-range-type input { width: 100%; }
.scan-range-type .button { min-height: 48px; }
.scan-fix { all: unset; cursor: pointer; font-size: 13px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.scan-fix:hover { color: #0f3f92; }
.scan-fix:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.scan-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.scan-points li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.scan-points li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #e3f4e3; color: #156f15; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ---- Project page: the price list folded below the map, the photo on the request card (owner, 2026-11-22) ---- */
.landing-section.homes-fold { position: relative; display: flex; flex-direction: column; gap: 16px; }
.homes-more { max-height: 300px; gap: 0; }
.lead-box .lead-photo { display: block; width: calc(100% + 64px); max-width: none; margin: -32px -32px 22px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 27px 27px 0 0; }
@media (max-width: 980px) {
  /* On a phone the card sits right under the photos: no second copy. */
  .lead-box .lead-photo { display: none; }
}

/* ---- Key ready first (owner, 2026-11-23): ribbon on the cards, the menu item, the request card, the key-ready pages ---- */
.card.ready .card-media { overflow: hidden; }
.ready-ribbon { position: absolute; top: 26px; left: -54px; width: 210px; transform: rotate(-45deg); background: #156f15; color: #fff; text-align: center; font: 700 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 0; box-shadow: 0 6px 14px -6px rgba(14, 27, 51, 0.55); z-index: 1; pointer-events: none; }
.main-nav .nav-ready { display: inline-flex; align-items: center; gap: 7px; }
.main-nav .nav-ready i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(30, 145, 30, 0.18); }
.ready-line { margin-top: 6px; font: 600 13px var(--sans); color: #156f15; display: inline-flex; align-items: center; gap: 6px; }
.ready-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.last-line { margin-top: 6px; font: 600 13px var(--sans); color: var(--ink); display: flex; align-items: center; gap: 6px; }
.last-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pill.priority { background: var(--ink); color: #fff; }
.lead-box form button.viewing { width: 100%; margin-top: 10px; border-color: #156f15; color: #156f15; }
.lead-box form button.viewing:hover { background: #eef7ee; border-color: #156f15; }
.pill.ready { background: #e9f5e9; color: #156f15; }
.pill.viewing { background: var(--gold); color: var(--ink); }

/* The request card sticks beside the page, and on a laptop it was taller than the screen: its buttons stayed out of
   reach until the end of the page. It now scrolls inside itself when it does not fit, and the photo on top is lower on
   a short screen. */
@media (min-width: 981px) {
  .landing-body > .lead-box { max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (min-width: 981px) and (max-height: 960px) {
  .lead-box .lead-photo { aspect-ratio: 12 / 5; }
}

.bo-big { margin: 6px 0 12px; font-size: 30px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.bo-big small { font-size: 14px; font-weight: 400; letter-spacing: 0; }

/* ---- The key-ready pages as designed on the canvas (board "Key ready", owner 2026-11-23: "make it live"): the photo in
   view with the homepage's shade, the favourites card with compare and the viewing request, a trust bar, three steps,
   entry prices, the projects list and a closing band. ---- */
.kr-hero .hero-photo { transform: none; object-position: center; }
.kr-hero .band-in { gap: 72px; }
.kr-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 64px; align-items: start; }
.kr-hero .hero-copy { display: flex; flex-direction: column; gap: 22px; padding-top: 16px; }
.kr-hero .hero-copy > * { margin: 0; }
.kr-eyebrow { display: flex; align-items: center; gap: 10px; }
.kr-hero .lead { max-width: 560px; font-size: 19px; line-height: 1.55; color: #e3e9f4; text-shadow: 0 1px 8px rgba(6, 15, 35, 0.5); }
.kr-coasts { display: flex; flex-wrap: wrap; gap: 8px; }
.kr-coasts a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 15px; background: rgba(14, 27, 51, 0.45); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.kr-coasts a b { font: 500 12px var(--mono); color: #c9d3e6; }
.kr-coasts a:hover { background: rgba(14, 27, 51, 0.65); }
.kr-coasts a[aria-current="page"] { background: #fff; color: var(--ink); border-color: #fff; }
.kr-coasts a[aria-current="page"] b { color: var(--muted); }

/* The trip card in the hero */
.kr-form { background: rgba(255, 255, 255, 0.97); color: var(--text); border-radius: 24px; padding: 28px; box-shadow: 0 24px 48px -30px rgba(4, 12, 30, 0.5); display: flex; flex-direction: column; gap: 16px; }
.kr-form > * { margin: 0; }
.kr-form .eyebrow { color: var(--accent); font-size: 11px; letter-spacing: 0.16em; }
.band.ink .kr-form h2 { color: var(--ink); margin: -12px 0 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.kr-form-lead { margin: -8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.kr-form form { display: flex; flex-direction: column; gap: 10px; }
.kr-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.kr-form label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); line-height: 1.4; }
.kr-form input[type="text"], .kr-form input[type="email"], .kr-form input[type="tel"], .kr-form select { font: inherit; font-size: 15px; color: var(--ink); padding: 11px 12px; border: 1px solid #d8d4cc; border-radius: 12px; background: #fff; min-width: 0; }
.kr-form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kr-form button[type="submit"] { margin-top: 4px; min-height: 52px; border-radius: 999px; background: var(--accent); border-color: var(--accent); font-size: 16px; }
.kr-form button[type="submit"]:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.kr-form button[type="submit"]::after { content: " \2192"; }
.kr-form .form-note { margin: 0; font-size: 12px; line-height: 1.45; }
.kr-form .error { margin: 0; }
.kr-form.done { gap: 12px; }
.kr-form.done h2 { margin: 0; }
.trip-box { display: flex; flex-direction: column; gap: 8px; background: var(--accent-soft); border: 1px solid rgba(21, 85, 192, 0.18); border-radius: 16px; padding: 12px; }
.trip-box > * { margin: 0; }
.trip-empty { display: flex; align-items: center; gap: 12px; padding: 6px 4px; font-size: 14px; color: var(--accent); }
.trip-empty span { width: 34px; height: 34px; border-radius: 10px; border: 1.5px dashed rgba(21, 85, 192, 0.5); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.trip-rows { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.trip-rows li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 6px; animation: tripIn 0.35s ease both; }
@keyframes tripIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.trip-no { width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 12px var(--mono); display: flex; align-items: center; justify-content: center; flex: none; }
.trip-rows img, .trip-rows .trip-img { width: 44px; height: 34px; border-radius: 8px; object-fit: cover; display: block; flex: none; background: var(--soft); }
.trip-what { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.trip-what a { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-what a:hover { color: var(--accent); }
.trip-what span { font: 400 12px var(--mono); color: var(--muted); }
.trip-x { width: 32px; height: 32px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 18px; flex: none; cursor: pointer; padding: 0; min-height: 0; }
.trip-x:hover { background: var(--soft); color: var(--ink); }
.trip-line { padding: 0 4px; font-size: 13px; color: var(--accent); }
.trip-box [hidden] { display: none; }
/* Light, not solid: the request button below stays the one solid blue (owner, 2026-11-21). */
.trip-compare { align-self: flex-start; margin: 2px 4px; background: #fff; color: var(--accent); border: 1px solid rgba(21, 85, 192, 0.45); }
.trip-compare:hover { background: #fff; color: var(--accent-hover); border-color: var(--accent); }
.trip-box .trip-compare[hidden] { display: none; }

/* The trust bar under the hero */
.kr-trust { background: #fff; border-bottom: 1px solid var(--line); }
.kr-trust-in { max-width: var(--wrap); margin: 0 auto; padding: 48px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 0; }
.kr-trust dl { margin: 0; flex: 3 1 640px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.kr-trust dl > div { padding: 0 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.kr-trust dl > div:first-child { padding-left: 0; border-left: 0; }
.kr-trust dt { order: 2; font-size: 14px; color: var(--muted); }
.kr-trust dd { order: 1; margin: 0; font: 500 40px/1 var(--mono); letter-spacing: -0.04em; color: var(--ink); }
.kr-fresh { flex: 1 1 280px; padding-left: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.kr-fresh p { margin: 0; font-size: 14px; }
.kr-fresh p:first-child { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.kr-pulse { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); flex: none; }
.kr-pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid rgba(252, 193, 63, 0.85); animation: krPulse 2.4s ease-out infinite; }
@keyframes krPulse { 0% { transform: scale(1); opacity: 0.7; } 80% { transform: scale(2.2); opacity: 0; } 100% { opacity: 0; } }

/* Three steps, with or without a mortgage (two radio buttons, no script) */
.kr-steps .band-in { padding-top: 112px; padding-bottom: 112px; }
.kr-steps .band-head { margin-bottom: 56px; }
.kr-steps .body-l { max-width: 640px; color: var(--muted); }
.kr-toggle { margin: 0; display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.kr-toggle label { font-size: 14px; cursor: pointer; border-radius: 999px; padding: 9px 16px; color: var(--muted); }
#kr-m1:checked ~ .band-head label[for="kr-m1"], #kr-m0:checked ~ .band-head label[for="kr-m0"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 27, 51, 0.12); }
#kr-m1:focus-visible ~ .band-head label[for="kr-m1"], #kr-m0:focus-visible ~ .band-head label[for="kr-m0"] { outline: 3px solid rgba(21, 85, 192, 0.35); outline-offset: 2px; }
.kr-steps .steps { gap: 40px; margin: 0; }
.kr-steps .steps p { color: var(--muted); }
.kr-steps .steps .text-link { display: inline-block; margin-top: 12px; padding: 0; }
.kr-without { display: none; }
#kr-m0:checked ~ .steps .kr-with { display: none; }
#kr-m0:checked ~ .steps .kr-without { display: block; }

/* Entry prices per bedroom count */
.kr-cheapest .band-in { padding-top: 104px; padding-bottom: 104px; }
.kr-cheapest .band-head { margin-bottom: 32px; align-items: baseline; }
.kr-matrix-box { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 50px -36px rgba(14, 27, 51, 0.4); }
.kr-matrix { width: 100%; min-width: 720px; border-collapse: collapse; }
.kr-matrix th, .kr-matrix td { padding: 14px 18px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.kr-matrix thead th { border-top: 0; padding-top: 16px; padding-bottom: 12px; font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.kr-matrix thead th a { color: var(--accent); text-decoration: none; }
.kr-matrix thead th a:hover { text-decoration: underline; }
.kr-matrix tbody th { white-space: nowrap; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.kr-matrix tbody th svg { margin-right: 8px; vertical-align: -3px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kr-matrix td a { display: flex; flex-direction: column; gap: 1px; text-decoration: none; color: inherit; }
.kr-matrix td .p { font: 500 18px/1.2 var(--mono); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.kr-matrix td .t { font-size: 13px; color: var(--muted); white-space: nowrap; }
.kr-matrix td a:hover .p { color: var(--accent); }
.kr-matrix .low { background: var(--accent-soft); }
.kr-matrix thead th.low { color: var(--accent); }
.kr-matrix td.low .p { font-size: 24px; }
.kr-matrix td.low .t { color: var(--accent); }
.kr-matrix td.best .p { color: #156f15; }
.kr-matrix tbody tr:hover td:not(.low), .kr-matrix tbody tr:hover th { background: var(--soft); }
.kr-cheapest .band-head .eyebrow { margin-bottom: 10px; }
/* On a phone the bedroom counts stay at the left while the places are swiped past them, and the cells are tighter, so
   two prices or more show beside each count instead of part of one. */
@media (max-width: 640px) {
  .kr-matrix { min-width: 0; width: max-content; }
  .kr-matrix th, .kr-matrix td { padding: 12px 12px; }
  .kr-matrix tbody th, .kr-matrix thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }
  .kr-matrix tbody th { font-size: 15px; }
  .kr-matrix tbody th svg { display: none; }
  .kr-matrix td .p { font-size: 15px; }
  .kr-matrix td.low .p { font-size: 17px; }
  .kr-matrix td .t { font-size: 12px; }
}

/* The list, as on the projects page */
.kr-list { border-top: 1px solid var(--line); }
.kr-list > .wrap { padding-top: 104px; padding-bottom: 128px; }

/* The closing band */
.kr-close .band-in { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 104px; padding-bottom: 104px; }
.kr-close .band-in > div { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.kr-close .body-l { color: #c9d3e6; max-width: none; }
.kr-close .actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* The coasts in the filter panel of the key-ready pages: each is a page of its own */
.coast-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.coast-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14px; background: #fff; }
.coast-links a i { font: normal 400 12px var(--mono); opacity: 0.7; }
.coast-links a:hover { border-color: var(--accent); color: var(--accent); }
.coast-links a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 980px) {
  .kr-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .kr-hero .band-in { gap: 40px; }
  .kr-fresh { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .kr-trust-in { padding: 24px 20px; }
  .kr-trust dl { grid-template-columns: 1fr 1fr; flex-basis: 100%; }
  .kr-trust dl > div { padding: 14px 0 14px 16px; }
  .kr-trust dl > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .kr-trust dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .kr-trust dd { font-size: 28px; }
  .kr-steps .band-in, .kr-cheapest .band-in, .kr-close .band-in { padding-top: 64px; padding-bottom: 64px; }
  .kr-steps .band-head { margin-bottom: 32px; }
  .kr-list > .wrap { padding-top: 56px; padding-bottom: 96px; }
}
@media (max-width: 560px) {
  .kr-form { padding: 22px 18px 18px; }
  .kr-form-two { grid-template-columns: 1fr; }
  .ready-ribbon { top: 22px; left: -58px; font-size: 10px; }
}

/* ---- The Value score on the cards (owner, 2026-11-23; src/value.ts): a calm blue chip, the reason beside it ---- */
.card-value { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; font-size: 13px; line-height: 1.4; }
.value-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--mono); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 2px 2px 10px; white-space: nowrap; cursor: help; }
/* The number in a solid blue disc, so the score reads first (owner, 2026-11-23: "more impactful"). */
.value-chip b { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: #fff; font: 600 13px var(--mono); }

/* ---- The Value in a column of the comparison: the score large, a bar of the five rules, the one reason ---- */
.compare-table thead th > .value-meter { display: grid; }
.value-meter { position: relative; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 8px; margin: 14px 0 14px; padding: 14px 14px 13px; border-radius: 14px; background: var(--accent-soft); cursor: help; text-align: left; }
.value-meter .vm-num { font: 600 38px/1 var(--mono); letter-spacing: -0.03em; color: var(--accent); }
.value-meter .vm-label { display: flex; flex-direction: column; line-height: 1.2; }
.value-meter .vm-label strong { font-size: 15px; font-weight: 600; color: var(--accent); }
.value-meter .vm-label small { font-size: 12px; color: var(--muted); }
.value-meter .vm-bar { grid-column: 1 / -1; display: flex; gap: 3px; height: 7px; }
.value-meter .vm-bar i { position: relative; overflow: hidden; border-radius: 4px; background: rgba(21, 85, 192, 0.16); }
.value-meter .vm-bar i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--f); border-radius: 4px; background: var(--accent); }
.value-meter .vm-why { grid-column: 1 / -1; font-size: 13px; line-height: 1.35; color: var(--ink); }
/* The best of the homes compared: a tab on the box's top edge, so every column keeps the same height. */
.value-meter .vm-best { position: absolute; top: -11px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1 var(--sans); background: var(--accent); color: #fff; border-radius: 999px; padding: 5px 10px; }
.value-meter.best { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
/* Every home the same Fit: said once, beside what Jaine heard. */
.fit-same { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.fit-same .ring { width: 46px; height: 46px; font-size: 15px; }
/* A long earned label ("Beste waarde in San Pedro del Pinatar") stays on the photo. */
.card .tag { max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }

/* ---- Find and compare (owner, 2026-11-23): the menu item, a no with its reason, find better, the cost rows ---- */
.nav-favcmp { display: inline-flex; align-items: center; gap: 6px; }
.nav-favcmp > span { color: var(--line-strong); }
.hero-nav .nav-favcmp > span { color: rgba(255, 255, 255, 0.4); }
.compare-table .row-note { display: block; font-size: 12px; color: #8b90a0; margin-top: 2px; }
.compare-table thead .card-value { margin: 2px 0 0; }
.compare-table .why-not { margin-top: 4px; }
.compare-table .why-not > summary { list-style: none; cursor: pointer; text-align: center; color: var(--ink); font-size: 14px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 12px; }
.compare-table .why-not > summary::-webkit-details-marker { display: none; }
.compare-table .why-not[open] > summary { border-color: var(--accent); color: var(--accent); }
.compare-table .why-not .why-title { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.compare-table .why-list { display: flex; flex-wrap: wrap; gap: 6px; }
.compare-table .why-list a { font-size: 13px; border: 1px solid rgba(21, 85, 192, 0.35); color: var(--accent); border-radius: 999px; padding: 5px 10px; text-decoration: none; background: #fff; }
.compare-table .why-list a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.compare-table .find-better { margin-top: 8px; text-align: center; font-size: 14px; color: var(--accent); text-decoration: none; }
.compare-table .find-better:hover { text-decoration: underline; }
.compare-again, .compare-better { border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.compare-again { background: rgba(234, 240, 251, 0.6); border: 1px solid rgba(21, 85, 192, 0.22); }
.compare-better { border: 1px solid var(--line); }
.compare-again h2, .compare-better h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.compare-again .why-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.compare-again .why-chips a { text-decoration: none; }
.better-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.better-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; box-sizing: border-box; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(21, 85, 192, 0.35); color: var(--accent); text-decoration: none; font-size: 14px; background: #fff; }
.better-tabs a span { font: 400 12px var(--mono); opacity: 0.75; }
.better-tabs a[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.found-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.found-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid #eeece6; border-radius: 16px; padding: 10px; background: #fff; }
.found-list img, .found-list .placeholder { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; display: block; background: var(--soft); }
.found-list .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.found-list .what a { font-weight: 600; color: var(--ink); text-decoration: none; }
.found-list .price { font: 400 14px var(--mono); color: var(--ink); }
.found-list .beats { font-size: 13px; color: #156f15; }
.found-list .act { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.found-list .ring { width: 44px; height: 44px; font-size: 14px; }
.compare-all form button.viewing { background: #fff; color: #156f15; border: 1px solid #156f15; }
.compare-all form button.viewing:hover { background: #eef7ee; }
/* The found homes: photo and text side by side, the scores and the button on a row of their own, so the text has room. */
.found-list li { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
.found-list .act { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; align-items: center; gap: 10px; border-top: 1px solid #f0eee8; padding-top: 8px; }

/* ---- Comparing as pages (owner, 2026-11-23; boards CompareLanding and HomeCompareBands): the landing at /compare,
   two towns side by side, the homepage bands. The brand's band rhythm: 96 to 104 px of air, 24 px between cards. ---- */
.hl.grad { font-family: var(--serif, 'Instrument Serif', Georgia, serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; padding-right: .06em; background: linear-gradient(100deg, #1555c0 0%, #1e911e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cmp-bands .band-in { padding-top: 104px; padding-bottom: 104px; }
.cmp-hero { background:
  radial-gradient(50% 70% at 10% 0%, rgba(77, 142, 247, 0.5), rgba(77, 142, 247, 0) 70%),
  radial-gradient(40% 60% at 92% 8%, rgba(63, 191, 63, 0.28), rgba(63, 191, 63, 0) 70%),
  radial-gradient(45% 55% at 75% 105%, rgba(252, 193, 63, 0.25), rgba(252, 193, 63, 0) 70%),
  var(--ink); }
.cmp-bands .cmp-hero .band-in { padding-top: 22px; display: flex; flex-direction: column; gap: 72px; }
.cmp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 470px); gap: 64px; align-items: center; }
.cmp-builder { background: #fff; color: var(--text); border-radius: 26px; padding: 26px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; gap: 16px; }
.cmp-builder h2 { margin: 0; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.cmp-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cmp-slots li { position: relative; border-radius: 14px; min-height: 128px; box-sizing: border-box; padding: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.cmp-slots li.filled { border: 1px solid var(--line); }
.cmp-slots li.filled img, .cmp-slots li.filled .placeholder { width: 100%; height: 56px; object-fit: cover; border-radius: 9px; display: block; background: var(--soft); }
.cmp-slots li.filled strong { font-size: 12px; line-height: 1.25; color: var(--ink); }
.cmp-slots li.filled .price { font: 400 12px var(--mono); color: var(--ink); }
.cmp-slots li.filled .out { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cmp-slots li.open { border: 1.5px dashed #9fb0cc; align-items: center; justify-content: center; text-align: center; color: var(--accent); }
.cmp-slots li.open span { font-size: 22px; line-height: 1; }
.cmp-search { display: flex; gap: 8px; }
.cmp-search label { flex: 1; display: flex; }
.cmp-search input { flex: 1; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: 14px; color: var(--ink); min-width: 0; }
.cmp-search button { border-radius: 14px; padding: 0 18px; }
.cmp-results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cmp-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid #f0eee8; font-size: 14px; }
.cmp-results li:first-child { border-top: 0; }
.cmp-results li.none { display: block; color: var(--muted); }
.cmp-results .price { font: 400 13px var(--mono); color: var(--ink); }
.cmp-results .add { text-decoration: none; font-weight: 500; white-space: nowrap; }
.cmp-builder .cmp-go { justify-content: center; min-height: 52px; font-size: 16px; }
.cmp-jaine { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; text-decoration: none; }
.cmp-jaine img { width: 28px; height: 28px; border-radius: 50%; }
.cmp-trust { background: #fff; border-bottom: 1px solid var(--line); }
.cmp-trust-in { max-width: 1200px; margin: 0 auto; padding: 36px 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cmp-trust-in div { display: flex; flex-direction: column; gap: 2px; }
.cmp-trust-in strong { font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.cmp-trust-in span { font-size: 14px; color: var(--muted); }
.cmp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 40px; }
.cmp-head > div { display: flex; flex-direction: column; gap: 14px; }
.cmp-head .h-band { margin: 0; }
.cmp-head > p { margin: 0; font-size: 17px; }
.cmp-shots { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.cmp-shots figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cmp-shots figcaption { font-size: 15px; color: var(--muted); }
.cmp-shots-side { display: flex; flex-direction: column; gap: 32px; }
.cmp-browser { border: 1px solid #d9d6cf; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(14, 27, 51, 0.45); background: #fff; }
.cmp-browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f1efea; border-bottom: 1px solid var(--line); }
.cmp-browser-bar .dots { display: inline-flex; gap: 6px; }
.cmp-browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e0786b; display: inline-block; }
.cmp-browser-bar .dots i + i { background: #e7c25c; }
.cmp-browser-bar .dots i + i + i { background: #74c26b; }
.cmp-browser-bar .addr { flex: 1; background: #fff; border-radius: 8px; padding: 5px 12px; font: 400 12px var(--mono); color: var(--muted); }
.cmp-demo { display: grid; grid-template-columns: 140px repeat(var(--cols), minmax(0, 1fr)); }
.cmp-demo-head { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cmp-demo-head img { width: 100%; height: 76px; object-fit: cover; border-radius: 8px; display: block; }
.cmp-demo-head strong { font-size: 14px; }
.cmp-demo-head .price { font: 400 13px var(--mono); }
.cmp-demo > span:first-child { border-bottom: 1px solid var(--line); }
.cmp-demo-label { padding: 9px 14px; font-size: 13px; color: var(--muted); border-bottom: 1px solid #eeece6; }
.cmp-demo-cell { padding: 9px 10px; font: 400 13px var(--mono); color: var(--ink); border-left: 1px solid #eeece6; border-bottom: 1px solid #eeece6; }
.cmp-demo-cell.best { font-weight: 600; background: #f4f7fd; color: var(--accent); }
.cmp-phone-fig { display: grid !important; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: end; }
.cmp-phone { position: relative; width: 180px; height: 310px; border-radius: 28px; border: 6px solid var(--ink); box-sizing: border-box; overflow: hidden; background: #fff; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 30px 60px -30px rgba(14, 27, 51, 0.5); }
.cmp-phone img { width: 100%; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.cmp-phone .name { font-size: 11px; font-weight: 600; color: var(--ink); }
.cmp-phone .sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 24px -12px rgba(14, 27, 51, 0.35); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.cmp-phone .sheet strong { font-size: 11px; color: var(--ink); }
.cmp-phone .reasons { display: flex; flex-wrap: wrap; gap: 4px; }
.cmp-phone .reasons span { font-size: 9px; border: 1px solid rgba(21, 85, 192, 0.35); color: var(--accent); border-radius: 999px; padding: 3px 6px; }
.cmp-phone .reasons span.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.cmp-again { display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(21, 85, 192, 0.22); background: rgba(234, 240, 251, 0.7); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); box-shadow: 0 24px 48px -30px rgba(21, 85, 192, 0.45); }
.cmp-again .who { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cmp-again .who img { width: 28px; height: 28px; border-radius: 50%; }
.cmp-again .row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 6px; }
.cmp-again .row img, .cmp-again .row .placeholder { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; display: block; background: var(--soft); }
.cmp-again .row strong { display: block; font-size: 13px; }
.cmp-again .beats { font-size: 12px; color: #156f15; }
.cmp-again .price { font: 400 12px var(--mono); }
.cmp-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cmp-pair { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: box-shadow 150ms, transform 150ms; }
.cmp-pair:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -32px rgba(14, 27, 51, 0.45); }
.cmp-pair-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 180px; background: #fff; }
.cmp-pair-photos img, .cmp-pair-photos .placeholder { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--soft); }
.cmp-pair-photos .or { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--accent); font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 21px; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px -12px rgba(14, 27, 51, 0.5); }
.cmp-pair-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.cmp-pair-body strong { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.cmp-tool { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 0.7fr) auto; gap: 24px; align-items: end; }
.cmp-tool > div { display: flex; flex-direction: column; gap: 10px; }
.cmp-tool h3 { margin: 0; font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.cmp-tool p { margin: 0; }
.cmp-tool label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.cmp-tool select { font: inherit; font-size: 15px; color: var(--ink); padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.cmp-how-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cmp-how-cols > div { border-top: 2px solid var(--ink); padding-top: 22px; }
.cmp-how-cols > div:nth-child(1) { border-color: #1555c0; }
.cmp-how-cols > div:nth-child(2) { border-color: #1e911e; }
.cmp-how-cols > div:nth-child(3) { border-color: #fcc13f; }
.cmp-how-cols h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.cmp-how-cols p { margin: 0; font-size: 16px; line-height: 1.6; }
.cmp-faq { margin-top: 104px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.cmp-faq .h-band { margin: 0; }
.cmp-faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.cmp-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--ink); }
.cmp-faq details p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; }
.cmp-close { background: radial-gradient(50% 80% at 85% 30%, rgba(77, 142, 247, 0.35), rgba(77, 142, 247, 0) 70%), var(--ink); color: #fff; }
.cmp-bands .cmp-close .band-in { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 40px; align-items: end; padding-bottom: 0; }
.cmp-close-jaine { width: 160px; height: auto; display: block; }
.cmp-close h2 { margin: 0 0 22px; font-size: 40px; letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.cmp-close .band-in > div { padding-bottom: 96px; }
.rail-links { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
/* Two towns side by side */
.town-compare h1 { margin: 8px 0 12px; }
.town-table { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin: 32px 0 12px; }
.town-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid #eeece6; }
.town-row:first-child { border-top: 0; }
.town-row > span { padding: 14px 20px; }
.town-row > span + span { border-left: 1px solid #eeece6; font: 400 15px var(--mono); color: var(--ink); }
.town-row.head { background: var(--ink); }
.town-row.head > span { color: #fff; font: 600 16px var(--sans); }
.town-row [role="rowheader"] { color: var(--muted); }
.town-row .best { background: #f4f7fd; color: var(--accent); font-weight: 600; }
.town-side { margin-top: 72px; display: flex; flex-direction: column; gap: 24px; }
.town-side h2, .town-more h2 { margin: 0; font-size: 32px; letter-spacing: -0.03em; }
.town-more { margin-top: 96px; display: flex; flex-direction: column; gap: 24px; }
/* The homepage band: three homes compared, floating over the terrace */
.cmp-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cmp-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: baseline; border-top: 2px solid #1555c0; padding-top: 12px; font-size: 16px; line-height: 1.5; }
.cmp-steps li.s1 { border-color: #1e911e; }
.cmp-steps li.s2 { border-color: #fcc13f; }
.cmp-steps .n { font: 400 13px var(--mono); color: var(--muted); }
.cmp-steps b { color: var(--ink); font-weight: 600; }
.cmp-float { width: 330px; flex-direction: column !important; align-items: stretch !important; gap: 8px !important; text-decoration: none; color: var(--ink); padding: 18px 20px !important; }
.cmp-float-title { font: 400 11px var(--mono) !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted) !important; }
.cmp-float-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; border-top: 1px solid #efece6; padding-top: 8px; }
.cmp-float-row .n { font: 400 13px var(--mono) !important; color: var(--muted) !important; }
.cmp-float-row .town { font-size: 15px !important; font-weight: 600; color: var(--ink) !important; }
.cmp-float-row .price { font: 400 13px var(--mono) !important; color: var(--ink) !important; }
@media (max-width: 980px) {
  .cmp-hero-grid, .cmp-head, .cmp-shots, .cmp-faq { grid-template-columns: 1fr; gap: 32px; }
  .cmp-trust-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-tool { grid-template-columns: 1fr 1fr; padding: 28px; }
  .cmp-tool > div { grid-column: 1 / -1; }
  .cmp-how-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cmp-bands .band-in { padding-top: 72px; padding-bottom: 72px; }
  .cmp-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-phone-fig { grid-template-columns: 1fr !important; }
  .cmp-demo { grid-template-columns: 96px repeat(var(--cols), minmax(0, 1fr)); }
  .cmp-tool { grid-template-columns: 1fr; }
  .cmp-float { width: auto; left: 12px !important; right: 12px; }
  .town-row > span { padding: 12px 12px; }
  .cmp-bands .cmp-close .band-in { grid-template-columns: 1fr; }
  .cmp-close-jaine { display: none; }
}
/* ---- The bar above the main menu (UtilNav in src/views.tsx; owner, 2026-11-23): favourites, compare, the account and
   the language, so the main menu is about finding homes only ---- */
.util-nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; font-size: 13px; line-height: 1.2; }
.util-nav a { text-decoration: none; }
.util-nav .nav-fav svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.util-nav .nav-fav b { font-size: 11px; padding: 1px 6px; }
.util-bar { background: var(--soft); border-bottom: 1px solid var(--line); }
.util-bar .util-nav { min-height: 36px; }
.util-bar .util-nav a { color: var(--text); }
.util-bar .util-nav a:hover, .util-bar .util-nav a[aria-current="page"] { color: var(--accent); }
/* In the dark headers: a quiet row over the menu. */
.hero-nav > .util-nav { order: -1; flex: 0 0 100%; margin: 0 0 -12px; gap: 22px; font-size: 13px; }
.hero-nav > .util-nav a { color: #c9d3e6; }
.hero-nav > .util-nav a:hover, .hero-nav > .util-nav a[aria-current="page"] { color: #fff; box-shadow: none; padding-bottom: 0; }
@media (max-width: 720px) {
  .util-nav { gap: 12px; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  /* Pushed right by a margin rather than by justify-content, so a bar that is still too wide overflows to the right,
     where it can be scrolled, and not off the left edge (the heart of Favourites was cut off there). */
  .util-nav, .hero-nav > nav.util-nav { justify-content: flex-start; flex-wrap: nowrap; }
  .util-nav > :first-child { margin-left: auto; }
  /* The bar scrolls sideways on a phone, which would cut the panel off: it is pinned to the screen there. */
  .site-switch-panel { position: fixed; right: 12px; top: 44px; }
  .hero-nav > .util-nav { margin: 0; }
  /* On a phone the main menu is one row that scrolls, in the dark headers as in the light one (owner, 2026-11-22). */
  .hero-nav nav.main-nav { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hero-nav nav.main-nav::-webkit-scrollbar { display: none; }
  .hero-nav nav.main-nav a { white-space: nowrap; flex: none; }
}


/* ---- The language and region switch (SiteSwitch in src/views.tsx; owner, 2026-11-23: "with flags") ---- */
.flag { display: block; flex: none; width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(14, 27, 51, 0.14); }
.site-switch { position: relative; }
.site-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 4px 6px; border-radius: 8px; color: var(--text); white-space: nowrap; }
.site-switch summary::-webkit-details-marker { display: none; }
.site-switch summary svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-switch[open] summary svg { transform: rotate(180deg); }
.site-switch summary:hover, .site-switch[open] summary { color: var(--accent); }
.site-switch-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 18px 40px rgba(14, 27, 51, 0.18); }
.site-switch-panel > * { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-switch-panel > * > span { display: flex; flex-direction: column; line-height: 1.3; }
.site-switch-panel b { font-weight: 600; font-size: 14px; color: var(--ink); }
.site-switch-panel small { font-size: 12px; color: var(--muted); }
.site-switch-panel a:hover, .site-switch-panel a:focus-visible { background: var(--soft); }
.site-switch-panel [aria-current] { background: var(--accent-soft); }
.util-bar .util-nav .site-switch-panel a, .hero-nav > .util-nav .site-switch-panel a { color: var(--text); }
.hero-nav .site-switch summary { color: #c9d3e6; }
.hero-nav .site-switch summary:hover, .hero-nav .site-switch[open] summary { color: #fff; }
.hero-nav .site-switch-panel .flag { box-shadow: 0 0 0 1px rgba(14, 27, 51, 0.14); }
.hero-nav .flag, .lang-pills.dark .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.lang-pills.flags { flex-wrap: wrap; padding-top: 16px; margin: 0; }
.lang-pills.flags { gap: 6px; }
.lang-pills.flags > * { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; font-family: var(--sans); }
/* On a phone the flag says which site this is; the names are in the panel it opens. */
@media (max-width: 560px) { .site-switch summary > span { display: none; } .site-switch summary { gap: 5px; } }

/* ---------- Match (src/matcher.tsx, public/match.js; owner 2026-11-25): the homes one at a time ---------- */
/* The menu: Match has its own place, the buying guide and the mortgage page share one item that opens. */
.nav-more { position: relative; }
.nav-more summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text); white-space: nowrap; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-more[open] summary svg { transform: rotate(180deg); }
.nav-more summary:hover, .nav-more[open] summary { color: var(--accent); }
.bar nav.main-nav .nav-more summary[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.nav-more-panel { position: absolute; right: 0; top: calc(100% + 12px); z-index: 40; width: 320px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(14, 27, 51, 0.14); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.main-nav .nav-more-panel a { display: flex; flex-direction: column; gap: 2px; border-radius: 10px; padding: 12px 14px; color: var(--text); white-space: normal; box-shadow: none; }
.main-nav .nav-more-panel a:hover, .main-nav .nav-more-panel a[aria-current="page"] { background: var(--soft); box-shadow: none; padding-bottom: 12px; color: var(--text); }
.nav-more-panel b { font-weight: 600; color: var(--ink); }
.nav-more-panel span { font-size: 14px; color: var(--muted); }
.hero-nav .nav-more summary { color: #c9d3e6; }
.hero-nav .nav-more summary:hover, .hero-nav .nav-more[open] summary { color: #fff; }
.hero-nav .nav-more summary[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; padding-bottom: 3px; }
.hero-nav nav .nav-more-panel a, .hero-nav nav .nav-more-panel a:hover, .hero-nav nav .nav-more-panel a[aria-current="page"] { color: var(--text); box-shadow: none; }
@media (max-width: 860px) {
  /* The menu is one row that scrolls there, which would cut the panel off: it is placed against the screen instead. */
  .nav-more { position: static; flex: none; }
  .nav-more-panel { position: fixed; left: 12px; right: 12px; top: auto; width: auto; margin-top: 10px; }
}

.matcher { display: grid; grid-template-columns: minmax(0, 460px) minmax(220px, 300px); gap: 32px; align-items: start; justify-content: center; }
.matcher.list { justify-content: center; margin-top: 8px; }
.match-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.match-jaine { display: flex; align-items: flex-start; gap: 12px; background: rgba(234, 240, 251, 0.6); border: 1px solid rgba(21, 85, 192, 0.18); border-radius: 22px; padding: 12px 14px; color: var(--ink); }
.match-jaine .jaine-avatar { flex: none; border-radius: 50%; }
.match-jaine .mj-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.match-jaine p { margin: 0; font-size: 15px; line-height: 1.45; padding-top: 2px; }
.match-jaine .button { flex: none; white-space: nowrap; }
.match-jaine.asking { background: #fff; border-color: var(--accent); box-shadow: 0 10px 30px -18px rgba(21, 85, 192, 0.5); }
.match-jaine.asking .button { display: none; }
.mj-answers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mj-answers:empty { display: none; }
.mj-answers .chip.plain { font: inherit; font-size: 14px; min-height: 40px; padding: 8px 14px; cursor: pointer; color: var(--ink); border-color: var(--line-strong); }
.mj-answers .chip.plain:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.mj-answers .text-link { min-height: 40px; padding: 0 6px; font-size: 14px; }

.match-profile { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.match-profile[hidden] { display: none; }
.match-profile > strong { color: var(--ink); font-size: 18px; letter-spacing: -0.02em; }
.match-profile fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.match-profile legend { font: 400 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px; }
.match-profile .pick { position: relative; cursor: pointer; }
.match-profile .pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.match-profile .pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink); background: #fff; }
.match-profile .pick input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.match-profile .pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.match-own { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.match-own input { font: inherit; font-size: 16px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 14px; padding: 0 14px; color: var(--ink); }
.match-profile .actions { margin: 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.match-stack { position: relative; min-height: 420px; }
.match-stack[hidden] { display: none; }
.mcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; color: var(--text); box-shadow: 0 24px 50px -30px rgba(14, 27, 51, 0.35); touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform 0.28s ease, opacity 0.28s ease; will-change: transform; }
.mcard.top { z-index: 2; cursor: grab; }
.mcard.dragging { transition: none; cursor: grabbing; }
.mcard.under { position: absolute; inset: 0; z-index: 1; transform: scale(0.965) translateY(10px); pointer-events: none; }
.mcard.under .mcard-body, .mcard.under .mcard-more { visibility: hidden; }
.mcard.leaving { position: absolute; left: 0; right: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; }
.mcard.leaving[data-lean="yes"] { transform: translate(120%, 20px) rotate(14deg); }
.mcard.leaving[data-lean="no"] { transform: translate(-120%, 20px) rotate(-14deg); }
.mcard.leaving[data-lean="keep"] { transform: translate(0, -80%); }
.mcard-photos { position: relative; aspect-ratio: 3 / 2; background: var(--soft); }
.mcard-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.mcard-photos img.on { opacity: 1; }
.mcard-dots { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; gap: 4px; z-index: 1; pointer-events: none; }
.mcard-dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.5); }
.mcard-dots i.on { background: #fff; }
.mcard-nav { position: absolute; top: 0; bottom: 0; width: 50%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: inherit; }
.mcard-nav:hover { background: transparent; border: 0; }
.mcard-nav.prev { left: 0; }
.mcard-nav.next { right: 0; }
.mcard-nav:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* The photos: a round arrow on each side shows there are more, and the corner counts them. */
.mcard-nav::after { content: ""; position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: rgba(255, 255, 255, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%230e1b33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 6px 18px -6px rgba(14, 27, 51, 0.55); transition: opacity 0.15s ease; }
.mcard-nav.next::after { right: 12px; }
.mcard-nav.prev::after { left: 12px; transform: scaleX(-1); }
.mcard.top .mcard-nav { cursor: pointer; }
.mcard-photos:not([data-at]) .mcard-nav.prev::after, .mcard-photos[data-at="first"] .mcard-nav.prev::after, .mcard-photos[data-at="last"] .mcard-nav.next::after { opacity: 0; }
.mcard-count { position: absolute; right: 12px; bottom: 12px; z-index: 1; font: 500 12px var(--mono); color: #fff; background: rgba(14, 27, 51, 0.62); border-radius: 999px; padding: 3px 9px; pointer-events: none; }
.mcard.under .mcard-nav::after, .mcard.under .mcard-count { display: none; }
.mcard .card-flags .tag { position: static; font-size: 12px; line-height: 1.4; border-radius: 999px; padding: 3px 10px; background: #fff; color: var(--ink); }
.mcard .card-flags .tag.green { background: #156f15; color: #fff; }
.mcard .card-flags .tag.gold { background: var(--gold); color: var(--ink); }
.mcard .card-flags .tag.ink { background: var(--ink); color: #fff; }
.mcard-said { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 2; font-weight: 600; font-size: 17px; border-radius: 999px; padding: 10px 20px; white-space: nowrap; opacity: 0; transition: opacity 0.12s ease; pointer-events: none; box-shadow: 0 10px 30px -10px rgba(14, 27, 51, 0.5); }
.mcard-said.yes { background: #156f15; color: #fff; }
.mcard-said.no { background: #fff; color: var(--ink); }
.mcard-said.keep { background: var(--accent); color: #fff; }
.mcard[data-lean="yes"] .mcard-said.yes, .mcard[data-lean="no"] .mcard-said.no, .mcard[data-lean="keep"] .mcard-said.keep { opacity: 1; }
.mcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.mcard-body h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.mcard-body h3 a { color: var(--ink); text-decoration: none; }
.mcard-body h3 a:hover { color: var(--accent); }
.mcard-body .price { margin: 0; font: 500 16px var(--mono); color: var(--ink); }
.mcard-facts { margin: 0; font-size: 14px; }
.mcard-scores { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fit-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--mono); background: #e9f5e9; color: #156f15; border-radius: 999px; padding: 2px 2px 2px 10px; white-space: nowrap; }
.fit-chip b { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #156f15; color: #fff; font: 600 12px var(--mono); }
.mcard-tags { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mcard-tags span { font-size: 13px; line-height: 1.4; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.mcard-more-btn { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 44px; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--accent); cursor: pointer; }
.mcard-more-btn:hover { background: var(--accent-soft); border: 0; border-top: 1px solid var(--line); color: var(--accent); }
.mcard-more-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.mcard-more-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mcard-more-btn .v { transition: transform 0.2s ease; }
.mcard-more-btn[aria-expanded="true"] .v { transform: rotate(180deg); }
.mcard.under .mcard-more-btn { visibility: hidden; }
.mcard-more { border-top: 1px solid var(--line); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 16px; user-select: text; -webkit-user-select: text; cursor: auto; }
.mcard-more[hidden] { display: none; }
.mcard-more section { display: flex; flex-direction: column; gap: 8px; }
.mcard-more h4 { margin: 0; font: 400 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mcard-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; }
.mcard-dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.mcard-dl dt { color: var(--muted); }
.mcard-dl dd { margin: 0; font-family: var(--mono); color: var(--ink); }
.mcard-more .button { align-self: flex-start; }

.match-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.match-actions[hidden] { display: none; }
.match-actions .ma { min-height: 52px; border-radius: 999px; padding: 0 20px; gap: 8px; font-size: 15px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.match-actions .ma svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.match-actions .ma.undo { width: 44px; min-height: 44px; padding: 0; color: var(--muted); flex: none; }
.match-actions .ma.undo:disabled { opacity: 0.4; cursor: default; }
.match-actions .ma.no { flex: 1; max-width: 190px; }
.match-actions .ma.no:hover { border-color: var(--ink); background: #fff; }
.match-actions .ma.keep { color: var(--accent); border-color: rgba(21, 85, 192, 0.4); }
.match-actions .ma.keep:hover { background: var(--accent-soft); border-color: var(--accent); }
.match-actions .ma.yes { background: #156f15; border-color: #156f15; color: #fff; flex: 1; max-width: 190px; }
.match-actions .ma.yes:hover { background: #115a11; border-color: #115a11; }
.match-keys { margin: 0; text-align: center; }
@media (hover: none) { .match-keys { display: none; } }

.match-fits { order: -1; display: flex; gap: 14px; align-items: center; background: #fff; border: 2px solid var(--green); border-radius: 22px; padding: 12px; color: var(--text); }
.match-fits[hidden], .match-end[hidden] { display: none; }
.match-fits img { width: 120px; height: 90px; object-fit: cover; border-radius: 14px; flex: none; }
.match-fits-title { display: block; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 30px; line-height: 1; color: #156f15; }
.match-fits p { margin: 6px 0 0; font-size: 15px; }
.match-fits .actions, .match-end .actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.match-end { display: flex; gap: 18px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 24px 0; color: var(--text); overflow: hidden; }
.match-end > div { flex: 1; min-width: 0; padding-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.match-end strong { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.match-end p { margin: 0; }
.match-end-jaine { width: 110px; height: auto; flex: none; }
.match-rail { display: flex; flex-wrap: wrap; gap: 8px; }
.match-thumb { display: block; width: 84px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.match-thumb img { width: 100%; height: 100%; object-fit: cover; }

.match-side { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; color: var(--text); }
.match-side section { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.match-side section[hidden] { display: none; }
.match-side h3 { margin: 0; font: 400 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.match-side p { margin: 0; }
.match-side p:empty { display: none; }
.chip.learned { font: inherit; font-size: 13px; line-height: 1.4; border: 0; min-height: 0; cursor: pointer; padding: 5px 10px; }
.chip.learned::after { content: "\00a0\00d7"; font-weight: 700; }
.chip.learned:hover { background: #d6ecd6; }
.match-side .text-link { padding: 0; min-height: 32px; font-size: 14px; }

/* In the dark hero of /match the stack is the white card on the right; what Jaine knows sits under it. */
.match-hero-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 48px; }
.match-hero-grid.plain { grid-template-columns: minmax(0, 1fr); }
.match-hero .display-hero { font-size: clamp(38px, 4.4vw, 62px); }
.match-hero .actions { margin: 4px 0 0; }
.match-hero.white .band-in { padding-top: 56px; padding-bottom: 72px; }
.match-hero.white .match-hero-grid { margin-top: 0; }
.match-hero.white .match-stats dt { color: var(--ink); }
.match-hero.white .match-stats dd { color: var(--muted); }
.band.white .free-line { color: var(--text); }
.band.white .free-line svg { stroke: #1e911e; }
.match-hero .mhook-arcs .l { stroke: #9fb0cc; }
/* The stack in a band of its own, wide: the home beside what Jaine knows. */
.match-start .band-in { padding-top: 56px; }
.match-start .band-head { max-width: none; margin-bottom: 28px; text-align: center; align-items: center; }
.match-start .matcher.page { grid-template-columns: minmax(0, 520px) minmax(240px, 320px); gap: 40px; }
.match-start { scroll-margin-top: 0; }
.match-hint { position: absolute; left: 50%; top: 118px; z-index: 3; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none; font-size: 15px; font-weight: 500; color: #fff; background: rgba(14, 27, 51, 0.78); border-radius: 999px; padding: 9px 16px 9px 12px; box-shadow: 0 14px 30px -14px rgba(14, 27, 51, 0.7); }
.match-hint svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: match-hand 1.8s ease-in-out infinite; }
.matcher.started .match-hint, .matcher.asking-card .match-hint, .matcher.ended .match-hint { display: none; }
@keyframes match-hand { 0%, 100% { transform: translateX(-5px) rotate(-10deg); } 50% { transform: translateX(5px) rotate(10deg); } }
/* The thin band between the hero and the stack: three steps in a row, each with an arrow down to the stack. */
.match-thin .band-in { padding-top: 40px; padding-bottom: 26px; display: flex; flex-direction: column; gap: 18px; }
.match-thin .eyebrow { margin: 0; }
.match-steps.row { flex-direction: row; gap: 40px; }
.match-steps.row li { flex: 1 1 0; min-width: 0; border-top: 0; padding: 0; grid-template-columns: 36px minmax(0, 1fr); align-content: start; }
.match-steps.row h3 { font-size: 18px; }
.match-steps.row p { font-size: 15px; line-height: 1.5; }
.match-steps .down { grid-column: 1 / -1; justify-self: center; align-self: end; margin-top: 14px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: match-down 1.6s ease-in-out infinite; }
.match-steps li.s1 .down { stroke: #156f15; animation-delay: 0.15s; }
.match-steps li.s2 .down { stroke: #8a5a00; animation-delay: 0.3s; }
@keyframes match-down { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .match-hint svg, .match-steps .down { animation: none; } }
.match-hero-stack { scroll-margin-top: 24px; }
.match-hero .match-jaine { background: rgba(255, 255, 255, 0.96); border-color: transparent; }
.match-hero .match-keys { color: #9fb0cc; }
.match-hero .match-actions .ma.no, .match-hero .match-actions .ma.undo, .match-hero .match-actions .ma.keep { border-color: transparent; }
.match-stats { margin: 0; display: flex; gap: 32px; flex-wrap: wrap; }
.match-stats div { display: flex; flex-direction: column; gap: 2px; }
.match-stats dt { font: 500 28px var(--mono); color: #fff; letter-spacing: -0.02em; }
.match-stats dd { margin: 0; font-size: 14px; color: #9fb0cc; }
.free-line { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; color: #c9d3e6; }
.free-line svg { flex: none; fill: none; stroke: #6fd36f; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.match-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.match-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.match-steps .n { grid-row: span 2; padding-top: 5px; font: 500 14px var(--mono); color: var(--accent); }
.match-steps li.s1 .n { color: #156f15; }
.match-steps li.s2 .n { color: #8a5a00; }
.match-steps h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.match-steps p { margin: 0; font-size: 16px; grid-column: 2; }
/* The first band's picture (board MatchHook): the next home on top, a no leaving left, a yes leaving right. */
.mhook { position: relative; height: 520px; width: 100%; max-width: 600px; margin: 0 auto; }
.mhook-card { position: absolute; width: 41%; background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px -28px rgba(14, 27, 51, 0.45), 0 0 0 1px rgba(14, 27, 51, 0.08); }
.mhook-card .ph { position: relative; display: block; }
.mhook-card img { display: block; width: 100%; height: 170px; object-fit: cover; }
.mhook-card > b { padding: 10px 14px 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.mhook-card .price { padding: 2px 14px 14px; font: 500 13px var(--mono); color: var(--ink); }
.mhook-card.no { left: 0; top: 96px; transform: rotate(-11deg); animation: mhook-no 4.5s ease-in-out infinite alternate; }
.mhook-card.no img { filter: saturate(0.55); }
.mhook-card.yes { right: 0; top: 70px; transform: rotate(10deg); animation: mhook-yes 4.5s ease-in-out infinite alternate; }
.mhook-card.top { left: 28%; top: 64px; width: 44%; z-index: 1; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(14, 27, 51, 0.55), 0 0 0 1px rgba(14, 27, 51, 0.08); }
.mhook-card.top img { height: 200px; }
.mhook-card.top > b { padding: 12px 16px 0; font-size: 18px; letter-spacing: -0.02em; }
.mhook-card.top .price { padding: 2px 16px 0; font-size: 14px; }
.mhook-card.top .facts { padding: 2px 16px 0; font-size: 13px; color: var(--muted); }
.mhook-card.top .mcard-scores { margin: 0; padding: 8px 16px 0; }
.mhook-card.top > :last-child { padding-bottom: 14px; }
.mhook-stamp { position: absolute; top: 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; padding: 5px 10px; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.mhook-stamp.no { left: 12px; transform: rotate(-6deg); background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.mhook-stamp.yes { right: 12px; transform: rotate(6deg); background: #1e911e; color: #fff; }
.mhook svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mhook-arcs { position: absolute; left: 10%; top: 12px; width: 80%; height: 68px; stroke-width: 2; }
.mhook-arcs .l { stroke: #9aa3b5; stroke-dasharray: 3 7; }
.mhook-arcs .r { stroke: #1e911e; stroke-dasharray: 3 7; }
.mhook-btns { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; display: flex; justify-content: center; gap: 10px; }
.mhook-btns span { min-height: 48px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.mhook-btns .no { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); }
.mhook-btns .keep { background: var(--accent-soft); color: var(--accent); }
.mhook-btns .yes { background: #1e911e; color: #fff; font-weight: 600; padding: 0 20px; }
@keyframes mhook-no { from { transform: translateX(5%) rotate(-7deg); } to { transform: translateX(-5%) rotate(-12deg); } }
@keyframes mhook-yes { from { transform: translateX(-5%) rotate(6deg); } to { transform: translateX(5%) rotate(11deg); } }
@media (prefers-reduced-motion: reduce) { .mhook-card.no, .mhook-card.yes { animation: none; } }
/* Jaine's question as a card on the stack: the home it is about, the question, the answers. */
.mq { position: absolute; inset: 0; z-index: 4; overflow: auto; background: #fff; border: 1px solid var(--accent); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 16px; color: var(--text); box-shadow: 0 24px 50px -24px rgba(21, 85, 192, 0.5); animation: mq-in 0.28s ease; transition: transform 0.28s ease, opacity 0.28s ease; }
.mq.gone { opacity: 0; transform: translateY(-16px) scale(0.98); pointer-events: none; }
.mq p { margin: 0; }
.mq-about { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.mq-about img { width: 84px; height: 62px; object-fit: cover; border-radius: 12px; flex: none; }
.mq-about b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.mq-q { display: flex; align-items: flex-start; gap: 12px; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.mq-q img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.mq-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.mq-answers .chip { min-height: 44px; padding: 0 16px; font-size: 15px; cursor: pointer; }
.mq .mq-skip { align-self: flex-start; padding: 0; min-height: 32px; font-size: 14px; }
.mq-note { font-size: 18px; line-height: 1.4; color: #156f15; background: #e9f5e9; border-radius: 14px; padding: 14px 16px; }
.matcher.asking-card .match-actions, .matcher.asking-card .match-keys { visibility: hidden; }
@keyframes mq-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .mq { animation: none; transition: none; } }
/* Jaine's question at work: the no, her question with the answer, the home that comes next. */
.mdemo { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 520px; justify-self: end; }
.mdemo-home { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 0 0 1px rgba(14, 27, 51, 0.08); }
.mdemo-home img { display: block; width: 132px; height: 96px; object-fit: cover; border-radius: 12px; }
.mdemo-home.no img { filter: saturate(0.55); }
.mdemo-home.next { box-shadow: 0 0 0 2px #1e911e; }
.mdemo-home div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mdemo .k { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mdemo-home.next .k { color: #156f15; }
.mdemo-home b { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.mdemo-home .f { font-size: 14px; color: var(--muted); }
.mdemo-home .f strong { font-weight: 600; color: var(--ink); }
.mdemo-home.next .f strong { color: #156f15; }
.mdemo-ask { margin-left: 28px; background: #fff; border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px -28px rgba(14, 27, 51, 0.35), 0 0 0 1px rgba(14, 27, 51, 0.06); }
.mdemo-ask p { margin: 0; }
.mdemo-q { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; font-weight: 600; line-height: 1.35; color: var(--ink); }
.mdemo-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.mdemo-opts span { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(21, 85, 192, 0.35); color: var(--accent); }
.mdemo-opts span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.mdemo-got { font-size: 15px; color: #156f15; background: #e9f5e9; border-radius: 12px; padding: 9px 12px; }
.mdemo-learned { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mdemo-learned .chip-l { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #e9f5e9; color: #156f15; }
.match-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.match-points li { position: relative; padding-left: 28px; }
.match-points li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #156f15; font-weight: 700; }
.match-points b { color: var(--ink); font-weight: 600; }
.match-jaine-media .bubble:not(.user) { left: -12px; bottom: 150px; }
.match-jaine-media .bubble.user { left: auto; right: 0; top: auto; bottom: 86px; }
.match-bands .band .actions { margin: 24px 0 0; }
.match-needs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.match-needs li { border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.match-needs b { font-size: 18px; font-weight: 600; }
.match-needs span { font-size: 15px; color: #dfe9ff; }
.match-wave .wave-body { padding-bottom: 56px; }
.match-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }

/* The yes list and the no list beside the favourites. */
.ytabs { margin: 0 0 20px; }
.ytabs-bar { margin: 0 0 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.ytabs-bar button { font: inherit; font-size: 15px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 999px; padding: 0 18px; min-height: 44px; cursor: pointer; }
.ytabs-bar button i { font: 400 13px var(--mono); font-style: normal; margin-left: 6px; }
.ytabs-bar button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ypanel .ybest { margin: 12px 0; }
.ypanel .ybest[hidden] { display: none; }
.ypanel .ybest .text-link { padding: 0; min-height: 0; white-space: nowrap; }
.ygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 16px 0; }
.ycard { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.ycard img, .ycard .placeholder { display: block; width: 100%; height: 112px; object-fit: cover; background: var(--soft); }
.ycard .heart { right: 8px; top: 8px; width: 38px; height: 38px; }
.ycard > div { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.ycard-name { font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--ink); text-decoration: none; }
.ycard .price { font: 400 12px var(--mono); color: var(--muted); }
.ycard-scores { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.ycard-back { position: absolute; right: 8px; top: 8px; min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.94); color: var(--ink); }
.ycard-back:hover { background: #fff; border: 0; color: var(--accent); }


@media (max-width: 980px) {
  .match-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 32px; }
  .match-hero-stack { max-width: 520px; }
  .match-faq { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 860px) {
  .matcher, .matcher.list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .match-actions .ma { padding: 0 14px; font-size: 14px; }
  .match-jaine { flex-wrap: wrap; }
  .match-jaine .mj-body { flex-basis: calc(100% - 60px); }
  .match-fits img { width: 84px; height: 70px; }
  .match-end-jaine { display: none; }
  .match-end { padding: 20px 20px 0; }
  .match-jaine-media .bubble:not(.user) { left: 0; }
  .mhook { height: 440px; max-width: 420px; }
  .match-steps.row { flex-direction: column; gap: 18px; }
  .match-steps.row li:not(.s2) .down { display: none; }
  .match-start .matcher.page { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .match-start .band-in { padding-top: 36px; }
  .mhook-card img { height: 110px; }
  .mhook-card.top img { height: 140px; }
  .mhook-card.top .facts { display: none; }
  .mhook-card.top { left: 25%; width: 50%; }
  .mhook-stamp { font-size: 12px; padding: 3px 7px; gap: 4px; }
  .mhook-stamp.no { left: 6px; }
  .mhook-stamp.yes { right: 6px; }
  .mhook-btns { gap: 6px; }
  .mhook-btns span { min-height: 44px; padding: 0 12px; font-size: 14px; }
  .mdemo { justify-self: stretch; max-width: none; }
  .mdemo-ask { margin-left: 12px; }
  .mdemo-home { grid-template-columns: 104px minmax(0, 1fr); }
  .mdemo-home img { width: 104px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) { .mcard { transition: none; } }
/* A link that is a button: the same look as a link. */
button.text-link { background: none; border: 0; border-radius: 0; color: var(--accent); cursor: pointer; font-family: inherit; }
button.text-link:hover { background: none; border: 0; color: var(--accent-hover); }
.matcher [hidden], .ytabs [hidden] { display: none !important; }
.match-actions .ma { white-space: nowrap; }
.match-actions .ma.no, .match-actions .ma.yes { min-width: 0; padding: 0 14px; }
.chip.learned { display: inline-block; }
@media (max-width: 980px) {
  .match-hero-grid { display: flex; flex-direction: column; gap: 24px; }
  .match-hero-stack { width: 100%; }
}
@media (max-width: 860px) {
  /* On a phone the favourites dock would lie over the yes and no buttons; the favourites stay in the bar on top. */
  body:has([data-match]) [data-dock] { display: none; }
}
.matcher.ended .match-keys { display: none; }
/* The small stack: a cell in the browse grid and a card in the account. */
.matcher.small { display: block; }
.matcher.small .match-jaine, .matcher.small .match-profile, .matcher.small .match-side, .matcher.small .match-keys, .matcher.small .match-fits, .matcher.small .mcard-more-btn, .matcher.small .match-end-jaine { display: none; }
.matcher.small .match-main { gap: 10px; }
.matcher.small .match-stack { min-height: 300px; }
.matcher.small .mcard { border-radius: 16px; box-shadow: none; }
.matcher.small .mcard-body { padding: 10px 12px 12px; }
.matcher.small .mcard-body h3 { font-size: 16px; }
.matcher.small .mcard-body .price { font-size: 14px; }
.matcher.small .mcard-scores { margin-top: 4px; }
.matcher.small .mcard-tags { margin-top: 4px; gap: 4px; }
.matcher.small .mcard-tags span { font-size: 12px; padding: 2px 8px; }
.matcher.small .mcard-nav::after { width: 30px; height: 30px; margin-top: -15px; background-size: 13px; }
.matcher.small .match-actions { gap: 8px; }
.matcher.small .match-actions .ma { min-height: 44px; width: 44px; padding: 0; flex: none; }
.matcher.small .match-actions .ma.yes, .matcher.small .match-actions .ma.no { flex: 1; width: auto; max-width: none; }
.matcher.small .match-actions .ma span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.matcher.small .match-end { padding: 16px 16px 0; border-radius: 16px; }
.matcher.small .match-end strong { font-size: 17px; }
.match-small-head { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.match-small-head strong { color: var(--ink); font-size: 16px; letter-spacing: -0.01em; }
.match-small-head .text-link { padding: 0; min-height: 0; font-size: 14px; }
.card.match-cell { padding: 14px; background: rgba(234, 240, 251, 0.6); border: 1px solid rgba(21, 85, 192, 0.18); display: block; overflow: visible; }
.match-card { max-width: 400px; margin: 0 0 24px; padding: 14px; border-radius: 22px; background: rgba(234, 240, 251, 0.6); border: 1px solid rgba(21, 85, 192, 0.18); }
.card.match-cell[hidden] { display: none; }
/* Back office, "What sells": every trait's share among the sold homes against the homes for sale. */
.bo-traits { width: 100%; border-collapse: collapse; font-size: 14px; }
.bo-traits th, .bo-traits td { text-align: left; padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.bo-traits thead th { border-top: 0; font: 400 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bo-traits td.n { font-family: var(--mono); white-space: nowrap; }
.bo-traits tr.grp td { background: var(--soft); font-weight: 600; color: var(--ink); }
.bo-traits .up { color: #156f15; font-weight: 600; }
.bo-traits .down { color: var(--muted); }
.bo-traits .bar { display: inline-block; height: 8px; min-width: 2px; border-radius: 4px; background: var(--accent); vertical-align: middle; margin-right: 8px; }
.bo-traits .bar.base { background: #c9d3e6; }
.bo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.bo-tags span { background: #e9f5e9; color: #156f15; border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.bo-tags.less span { background: #fff3d6; color: #8a5a00; }
.bo-tags.lead span { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.bo-sub { margin: 14px 0 8px; font: 400 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bo-traits .less { color: #8a5a00; font-weight: 600; }
.bo-tags small { color: var(--text); font-size: 12px; }

/* Town pages and Spain with one filter (src/places.tsx; canvas boards TownPage, TownPagePhone, SpainFilter and
   LongTailLinks, approved 28 Nov 2026). Light hero under the site's own header, figures in a strip, one section per
   kind of home, the neighbours, questions and Jaine. */
.pl-in { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.pl-hero { padding: 28px 0 56px; }
.pl-crumbs { margin: 0; }
.pl-crumbs a { color: var(--muted); }
.pl-crumbs [aria-current] { color: var(--ink); }
.pl-hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; margin-top: 28px; }
.pl-hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pl-hero-copy p { margin: 0; }
.pl-h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.045em; margin: 0; }
.pl-photo { flex: 1 1 400px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pl-photo img { width: 100%; height: 360px; object-fit: cover; border-radius: 24px; }
.pl-photo figcaption { font-size: 13px; color: var(--muted); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; align-items: center; }
.pl-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; }
.pl-chips a b { font: 500 12px var(--mono); color: var(--muted); }
.pl-chips a:hover { border-color: var(--accent); color: var(--accent); }
.pl-chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pl-chips a.page { border-color: var(--accent); background: var(--accent-soft); }
.pl-chips .muted { margin-right: 4px; font-size: 14px; }
.pl-siblings { margin-top: 32px; }
.pl-hero .free-line { color: var(--text); }
.pl-hero .free-line svg { stroke: #1e911e; }
.pl-facts { background: var(--soft); border-top: 1px solid #eeece6; border-bottom: 1px solid #eeece6; }
.pl-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; }
.pl-facts dl div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.pl-facts dd { margin: 0; font: 400 22px/1.2 var(--mono); color: var(--ink); letter-spacing: -0.02em; }
.pl-facts dt { font-size: 14px; color: var(--muted); line-height: 1.4; }
.pl-sections { display: flex; flex-direction: column; gap: 72px; padding-top: 72px; padding-bottom: 24px; }
.pl-sec { scroll-margin-top: 24px; }
.pl-sec .band-head.row { margin-bottom: 22px; }
.pl-sec .band-head p { margin: 0; }
.pl-h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
.pl-h3 { font-size: 24px; letter-spacing: -0.03em; margin: 0 0 18px; }
.pl .grid { margin-top: 0; gap: 20px; }
.pl-more { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 200px; padding: 24px; border: 1px dashed #c9cfdb; border-radius: 22px; color: var(--ink); text-decoration: none; }
.pl-more b { font-size: 20px; letter-spacing: -0.02em; }
.pl-more span { font-size: 14px; color: var(--muted); }
.pl-more .pl-more-go { font-size: 15px; color: var(--accent); font-weight: 500; margin-top: 6px; }
.pl-more:hover { border-color: var(--accent); }
.pl-others { margin: 0; }
.pl-zones { padding-top: 48px; padding-bottom: 64px; }
.pl-near-in { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.pl-near-copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-near-copy p { margin: 0; }
.pl-near-copy .text-link { padding: 4px 0; }
.pl-table { flex: 999 1 520px; min-width: 0; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.pl-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pl-table th, .pl-table td { padding: 13px 20px; border-bottom: 1px solid #eeece6; text-align: left; }
.pl-table thead th { font-size: 13px; font-weight: 500; color: var(--muted); }
.pl-table .n { text-align: right; font-family: var(--mono); white-space: nowrap; }
.pl-table tbody th { font-weight: 400; }
.pl-table tbody th a { color: var(--ink); }
.pl-table tr.self { background: var(--accent-soft); }
.pl-table tr.self th { font-weight: 600; color: var(--ink); }
.pl-table tbody tr:last-child > * { border-bottom: 0; }
/* On a phone each place takes two lines, its name over its three figures, so the table fits the screen. */
@media (max-width: 560px) {
  .pl-table table, .pl-table thead, .pl-table tbody { display: block; }
  .pl-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #eeece6; }
  .pl-table tbody tr:last-child { border-bottom: 0; }
  .pl-table th, .pl-table td { padding: 4px 14px 12px; border-bottom: 0; font-size: 14px; }
  .pl-table thead th { padding: 12px 14px 10px; }
  .pl-table thead th:first-child { display: none; }
  .pl-table tbody th { grid-column: 1 / -1; padding: 12px 14px 0; font-size: 15px; }
}
.pl-matrix { padding-top: 72px; padding-bottom: 40px; }
.pl-matrix .band-head { margin-bottom: 22px; }
.pl-matrix .band-head p { margin: 0; }
.pl-faq { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 72px; padding-bottom: 72px; }
.pl-faq > h2 { flex: 1 1 280px; min-width: 0; }
.pl-faq > div { flex: 999 1 520px; min-width: 0; }
.pl-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.pl-faq summary { cursor: pointer; font-size: 18px; font-weight: 600; color: var(--ink); }
.pl-faq details p { margin: 10px 0 0; }
.pl-close .band-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.pl-close-copy { flex: 1 1 360px; min-width: 0; display: flex; gap: 18px; align-items: center; }
.pl-close-copy .jaine-avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.pl-close .chat-input { flex: 999 1 460px; min-width: 0; margin: 0; }
.pl-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #dfe6f3; background: #f5f8fd; border-radius: 14px; color: var(--ink); text-decoration: none; }
.pl-line > span:first-child { display: flex; flex-direction: column; }
.pl-line b { font-weight: 600; }
.pl-line span span { font-size: 14px; color: var(--muted); }
.pl-line > span:last-child { color: var(--accent); }
.pl-line:hover { border-color: var(--accent); }
.pl-coast-towns { margin-top: 48px; }
.rail.pl-more-place { padding: 0 0 40px; margin-top: -1px; }
.rail.pl-more-place p { margin: 0; }
@media (max-width: 640px) {
  .pl-in { padding-left: 16px; padding-right: 16px; }
  .pl-hero { padding-bottom: 32px; }
  .pl-hero-grid { gap: 24px; margin-top: 18px; }
  .pl-photo img { height: 220px; border-radius: 18px; }
  .pl-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pl-facts dd { font-size: 17px; }
  .pl-facts dt { font-size: 13px; }
  .pl-sections { gap: 56px; padding-top: 40px; }
  .pl-faq, .pl-near-in { gap: 24px; padding-top: 48px; padding-bottom: 48px; }
}

/* ==== The homepage leads with Match (owner, 2026-11-28; boards HomeMatch, HomeMatchAfter, HomeMatchPhone) ==== */
/* The hero: two sentences on lines of their own, Jaine pointing at the field, the field that starts the stack. */
.hero-band .hero-copy { max-width: 780px; gap: 18px; }
.hero-band .display-hero { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.04; }
.display-hero .line { display: block; }
.display-hero .nowrap { white-space: nowrap; }
.hero-band .display-hero .hl { display: inline-block; padding: 0 0.18em 0.08em 0; margin-right: -0.12em; }
.wish-cue { position: relative; height: 112px; margin: 18px 0 0; }
.wish-cue img { position: absolute; left: 0; top: 0; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7); }
.wish-cue span { position: absolute; left: 88px; top: 6px; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 34px; line-height: 1; color: var(--gold); transform: rotate(-3deg); transform-origin: left center; white-space: nowrap; }
.wish-cue svg { position: absolute; left: 44px; top: 40px; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chat-input.wish { max-width: 720px; padding: 8px 8px 8px 20px; box-shadow: 0 26px 64px -22px rgba(77, 142, 247, 0.6); }
.chat-input.wish .pen { flex: none; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-input.wish .field { position: relative; flex: 1; min-width: 0; display: flex; }
.chat-input.wish input[type="text"] { width: 100%; font-size: 18px; padding: 16px 0 16px 8px; color: var(--ink); }
.chat-input.wish input::placeholder { color: #646c7e; }
.chat-input.wish .caret { position: absolute; left: 1px; top: 50%; width: 2px; height: 24px; margin-top: -12px; border-radius: 1px; background: var(--accent); pointer-events: none; animation: wish-blink 1.1s steps(1) infinite; }
.chat-input.wish input:focus + .caret, .chat-input.wish input:not(:placeholder-shown) + .caret { display: none; }
.chat-input.wish button { min-height: 56px; padding: 0 24px; font-size: 17px; white-space: nowrap; }
@keyframes wish-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chat-input.wish .caret { animation: none; } }
@media (max-width: 560px) {
  .wish-cue { height: 92px; }
  .wish-cue img { width: 56px; height: 56px; }
  .wish-cue span { left: 72px; font-size: 28px; }
  .wish-cue svg { left: 34px; top: 34px; width: 120px; height: 64px; }
  .chat-input.wish { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; border-radius: 24px; padding: 6px 8px 8px 14px; }
  .chat-input.wish .field { flex: 1 1 0; }
  .chat-input.wish input[type="text"] { font-size: 16px; padding: 14px 0 14px 8px; }
  .chat-input.wish button { flex: 1 1 100%; justify-content: center; min-height: 52px; }
}

/* The trust bar between the hero and the stack. */
.tbar { background: #fff; border-bottom: 1px solid var(--line); }
.tbar-in { list-style: none; max-width: 1200px; margin: 0 auto; padding: 18px 32px; box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px; font-size: 15px; color: var(--text); }
.tbar-in li { display: inline-flex; align-items: center; gap: 8px; }
.tbar-in li.n { align-items: baseline; }
.tbar-in .n b { font: 600 18px var(--mono); color: var(--ink); }
.tbar-in li > span b { font-weight: 600; color: var(--ink); }
.tbar-in svg { flex: none; fill: none; stroke: #1e911e; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .tbar-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 14px 20px; font-size: 13px; }
  .tbar-in li:nth-child(n + 3) { grid-column: 1 / -1; align-items: flex-start; }
  .tbar-in .n b { font-size: 16px; }
}

/* The Match band: the cards in motion beside the short title, until the first answer (`on`); then the stack. */
.mh .band-in { padding-top: 88px; padding-bottom: 88px; }
.mh-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "stage copy"; gap: 56px; align-items: center; }
.mh-copy { grid-area: copy; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mh-title { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.mh-body { max-width: 460px; }
.mh-next { align-self: flex-start; }
.mh-stage { grid-area: stage; position: relative; min-height: 640px; min-width: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 80px; }
.mh-side { position: absolute; width: 220px; background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px -28px rgba(14, 27, 51, 0.45), 0 0 0 1px rgba(14, 27, 51, 0.08); }
.mh-side .ph { position: relative; display: block; }
.mh-side img { display: block; width: 100%; height: 160px; object-fit: cover; }
.mh-side > b { padding: 10px 14px 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.mh-side .price { padding: 2px 14px 14px; font: 500 13px var(--mono); color: var(--ink); }
.mh-side.no { left: 0; top: 150px; transform: rotate(-11deg); }
.mh-side.no img { filter: saturate(0.5); }
.mh-side.yes { right: 0; top: 124px; transform: rotate(10deg); }
.mh-stamp { position: absolute; top: 12px; display: inline-flex; align-items: center; gap: 5px; border-radius: 10px; padding: 4px 10px; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.mh-stamp svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mh-stamp.no { left: 12px; transform: rotate(-6deg); background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.mh-stamp.yes { right: 12px; transform: rotate(6deg); background: #1e911e; color: #fff; }
.mh-arcs { position: absolute; left: 50%; top: 0; width: min(520px, 92%); height: 74px; transform: translateX(-50%); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mh-arcs .l { stroke: #9aa3b5; stroke-dasharray: 3 7; }
.mh-arcs .r { stroke: #1e911e; stroke-dasharray: 3 7; }
.mh:not(.on) .matcher { display: block; position: relative; z-index: 2; width: 316px; max-width: 100%; }
.mh:not(.on) .match-side, .mh:not(.on) .match-jaine, .mh:not(.on) .match-profile, .mh:not(.on) .match-keys, .mh:not(.on) .match-fits, .mh:not(.on) .ma.undo, .mh:not(.on) .mcard-more, .mh:not(.on) .mcard-more-btn { display: none; }
.mh:not(.on) .match-stack { min-height: 0; }
.mh:not(.on) .mcard-body h3 { font-size: 18px; }
.mh:not(.on):not(.touched) .match-stack .mcard.top { animation: mh-rock 5.2s ease-in-out 1.2s infinite; }
.mh:not(.on):not(.touched) .match-stack .mcard.top .mcard-said.no { animation: mh-said-no 5.2s ease-in-out 1.2s infinite; }
.mh:not(.on):not(.touched) .match-stack .mcard.top .mcard-said.yes { animation: mh-said-yes 5.2s ease-in-out 1.2s infinite; }
@keyframes mh-rock { 0%, 16%, 50%, 66%, 100% { transform: none; } 26%, 40% { transform: translateX(-44px) rotate(-7deg); } 76%, 90% { transform: translateX(44px) rotate(7deg); } }
@keyframes mh-said-no { 0%, 20%, 44%, 100% { opacity: 0; } 26%, 40% { opacity: 1; } }
@keyframes mh-said-yes { 0%, 70%, 94%, 100% { opacity: 0; } 76%, 90% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mh .match-stack .mcard.top, .mh .match-stack .mcard.top .mcard-said { animation: none !important; } }
.mh.on .band-in { padding-top: 64px; padding-bottom: 72px; }
.mh.on .mh-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage"; gap: 28px; }
.mh.on .mh-copy { align-items: center; text-align: center; }
.mh.on .mh-title { font-size: clamp(28px, 3vw, 38px); }
.mh.on .mh-body, .mh.on .mh-next, .mh.on .mh-side, .mh.on .mh-arcs { display: none; }
.mh.on .mh-stage { display: block; min-height: 0; padding-top: 0; }
.mh.on .matcher.page { grid-template-columns: minmax(0, 520px) minmax(240px, 320px); gap: 40px; }
@media (max-width: 900px) {
  .mh .band-in { padding-top: 48px; padding-bottom: 56px; }
  .mh-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage"; gap: 20px; }
  .mh-stage { min-height: 600px; padding-top: 70px; }
  .mh-side { width: 150px; border-radius: 16px; }
  .mh-side img { height: 110px; }
  .mh-side.no { left: -12px; top: 120px; }
  .mh-side.yes { right: -12px; top: 100px; }
  .mh-side > b, .mh-side .price { font-size: 12px; padding-left: 10px; padding-right: 10px; }
  .mh-stamp { font-size: 12px; padding: 3px 8px; }
  .mh:not(.on) .matcher { width: 290px; }
  .mh-title { font-size: 32px; }
  .mh-body { font-size: 16px; }
  .mh-next { display: none; }
  .mh.on .matcher.page { grid-template-columns: minmax(0, 1fr); }
}

/* The little i's: hover, a keyboard focus or a tap (public/site.js) opens the box. */
.tip { position: relative; display: inline-flex; vertical-align: middle; }
.tip-i { width: 36px; height: 36px; min-height: 0; margin: -8px -4px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--accent); display: inline-grid; place-items: center; gap: 0; cursor: help; font-weight: 500; }
.tip-i:hover { background: var(--accent-soft); border: 0; color: var(--accent); }
.tip-i svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tip-i.with-text { width: auto; height: auto; min-height: 36px; margin: 0; padding: 0 12px 0 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.tip-box { display: none; position: absolute; z-index: 30; width: 300px; max-width: 80vw; box-sizing: border-box; flex-direction: column; gap: 8px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 24px 50px -20px rgba(14, 27, 51, 0.6); font: 400 14px/1.5 var(--sans); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; }
.tip-box::before { content: ""; position: absolute; left: 0; right: 0; height: 12px; }
.tip-box b { font-weight: 600; }
.tip-box b.fit { color: #9cdd9c; }
.tip-box b.value { color: #9cc0ff; }
.tip:hover .tip-box, .tip.open .tip-box, .tip-i:focus-visible + .tip-box { display: flex; }
.tip.down .tip-box { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.tip.down .tip-box::before { top: -12px; }
.tip.up .tip-box { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.tip.up .tip-box::before { bottom: -12px; }
.tip.right .tip-box { left: calc(100% + 4px); top: -12px; }
/* In a card the box lies over the photo, across the card's width. */
.mcard-body { position: relative; }
.mcard .tip { position: static; }
.mcard .tip.up .tip-box { left: 12px; right: 12px; width: auto; max-width: none; transform: none; bottom: calc(100% - 8px); }
.match-keys { margin: 0; text-align: center; }
.match-keys .tip-box { width: 320px; }

/* More about a home: a peek that fades under the facts, the arrow opens and closes it. */
.mcard-more { position: relative; max-height: 52px; overflow: hidden; transition: max-height 0.35s ease; }
.mcard-more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.mcard.more-open .mcard-more { max-height: 1000px; }
.mcard.more-open .mcard-more::after { display: none; }
.mcard-more-btn { border-top: 0; min-height: 48px; }
.mcard-more-btn:hover { border-top: 0; background: #fff; }
.mcard-more-btn span { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; transition: transform 0.25s ease; }
.mcard-more-btn:hover span { background: #dbe6f8; }
.mcard-more-btn[aria-expanded="true"] span { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .mcard-more, .mcard-more-btn span { transition: none; } }

/* The yes band: the steps, the yeses best Fit first, the noes, and the comparison with one request. */
.yb .band-in { display: flex; flex-direction: column; gap: 32px; }
.steps4 { list-style: none; margin: 0; padding: 26px 12px 22px; background: #fff; border-radius: 28px; box-shadow: 0 0 0 1px rgba(14, 27, 51, 0.06), 0 24px 50px -40px rgba(14, 27, 51, 0.4); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps4 li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 10px; }
.steps4 li::before, .steps4 li::after { content: ""; position: absolute; top: 25px; height: 3px; background: var(--line); }
.steps4 li::before { left: 0; right: 50%; }
.steps4 li::after { left: 50%; right: 0; }
.steps4 li:first-child::before, .steps4 li:last-child::after { display: none; }
.steps4 li.done::after, .steps4 li.done + li::before { background: #1e911e; }
.steps4 .dot { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.steps4 .dot svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps4 li.done .dot { background: #1e911e; color: #fff; box-shadow: 0 0 0 6px rgba(30, 145, 30, 0.12); }
.steps4 li.done .dot svg { stroke-width: 2.8; }
.steps4 li.now .dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px rgba(21, 85, 192, 0.16), 0 12px 24px -10px rgba(21, 85, 192, 0.6); }
.steps4 b { margin-top: 4px; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.steps4 li.now b { color: var(--accent); }
.steps4 .sub { font-size: 14px; line-height: 1.4; color: var(--muted); max-width: 210px; }
.yb-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.yb-empty-copy { display: flex; flex-direction: column; gap: 14px; }
.yb-empty-copy .h-band, .yb-head .h-band { margin: 0; }
.yb-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.yb-slots span { min-height: 220px; border: 2px dashed var(--line-strong); border-radius: 18px; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 15px; color: var(--muted); }
.yb-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 32px; }
.yb-head > div { display: flex; flex-direction: column; gap: 10px; }
.yb-order { margin: 0; max-width: 520px; font-size: 15px; color: var(--muted); }
.yb-order .tip-box { left: auto; right: 0; transform: none; }
.yb-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 28px; align-items: start; }
.yb-lists h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.yb-yes h3 { color: #156f15; }
.yb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.yb-card { position: relative; background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(14, 27, 51, 0.08); }
.yb-card.on { box-shadow: 0 0 0 2px var(--accent); }
.yb-ph img, .yb-ph .placeholder { display: block; width: 100%; height: 124px; object-fit: cover; background: var(--soft); }
.yb-heart { right: 8px; top: 8px; }
.yb-b { padding: 10px 14px 4px; display: flex; flex-direction: column; gap: 2px; }
.yb-name { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.yb-name:hover { color: var(--accent); }
.yb-b .price { font: 500 13px var(--mono); color: var(--ink); }
.yb-scores { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.yb-facts { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.yb-acts { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 8px; padding: 0 14px 6px; }
.yb-tick { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; min-height: 46px; margin: 0; font-size: 15px; font-weight: 400; color: var(--ink); cursor: pointer; }
.yb-not { min-height: 44px; padding: 0; font-size: 13px; color: var(--muted); }
.yb-not:hover { color: var(--ink); }
.yb-tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.yb-no ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.yb-no li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 0 0 1px rgba(14, 27, 51, 0.08); }
.yb-no img, .yb-no .placeholder { display: block; width: 72px; height: 56px; object-fit: cover; border-radius: 10px; filter: saturate(0.5); background: var(--soft); }
.yb-no li > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.yb-no a { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.yb-why { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.yb-why .chip { font-size: 12px; padding: 2px 8px; }
.yb-why .text-link { padding: 0 4px; min-height: 32px; font-size: 13px; }
.yb-one { margin: 0; background: var(--soft); border-radius: 16px; padding: 16px 20px; }
.yb-cmp { background: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 0 0 1px rgba(14, 27, 51, 0.08), 0 30px 60px -40px rgba(14, 27, 51, 0.35); }
.yb-cmp > .text-link { align-self: flex-start; padding-top: 0; }
.yb-line { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.35; color: var(--ink); }
.yb-line b { font-weight: 600; }
.yb-keep { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.yb-keep:hover { border: 0; background: #dbe6f8; color: var(--accent); }
.yb-keep svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.yb-keep[aria-pressed="true"] { background: var(--accent); color: #fff; }
.yb-keep[aria-pressed="true"] svg path { fill: currentColor; }
.yb-keep .on, .yb-keep[aria-pressed="true"] .off { display: none; }
.yb-keep[aria-pressed="true"] .on { display: inline; }
.yb-ask { background: var(--soft); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.yb-ask strong { font-size: 17px; font-weight: 600; color: var(--ink); }
.yb-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.yb-fields label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; font-size: 14px; }
.yb-fields input { min-height: 48px; }
.yb-fields button { min-height: 48px; }
.yb-ask .form-note { margin: 0; }
@media (max-width: 900px) {
  .yb-empty { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .yb-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .yb .band-in { gap: 20px; }
  .steps4 { padding: 16px 4px 12px; border-radius: 20px; }
  .steps4 .dot { width: 40px; height: 40px; }
  .steps4 li::before, .steps4 li::after { top: 19px; height: 2px; }
  .steps4 b { font-size: 13px; }
  .steps4 .sub { display: none; }
  .yb-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yb-slots span { min-height: 150px; }
  .yb-slots span:nth-child(3) { display: none; }
  .yb-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 6px; }
  .yb-card { flex: 0 0 170px; scroll-snap-align: start; }
  .yb-cmp { padding: 16px; }
}

/* The coast tiles in a slim row under the map. */
.home-coasts .band-in { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
/* The headline's last word lands further right now that the sentences have lines of their own: a little more ink. */
.hero-band::after { background: linear-gradient(90deg, rgba(14, 27, 51, 0.95) 0%, rgba(14, 27, 51, 0.88) 42%, rgba(14, 27, 51, 0.35) 68%, rgba(14, 27, 51, 0.05) 100%), linear-gradient(180deg, rgba(14, 27, 51, 0.7) 0%, rgba(14, 27, 51, 0) 22%); }

/* The compare page's table in the yes band (owner, 2026-11-28): a heart and "Not for me" with the reason per column. */
.yb-cmp .compare-scroll { margin: 0 -8px; }
.yb-tools { margin-bottom: 0; }
.compare-table thead th > .yb-keep { display: inline-flex; width: 100%; justify-content: center; margin-top: 4px; }
.compare-table .why-list button { min-height: 0; font: inherit; font-size: 13px; border: 1px solid rgba(21, 85, 192, 0.35); color: var(--accent); border-radius: 999px; padding: 5px 10px; background: #fff; text-decoration: none; cursor: pointer; }
.compare-table .why-list button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.value-same { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- The one question to ad visitors (src/views.tsx ConsentBar, public/site.js; owner, 28 Nov 2026) ---------- */
.consent { position: fixed; left: 18px; bottom: 18px; z-index: 45; width: min(380px, calc(100vw - 24px)); color: var(--ink); padding: 14px 16px;
  background: rgba(234, 240, 251, 0.94); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(21, 85, 192, 0.22); border-radius: 20px; box-shadow: 0 24px 50px -24px rgba(21, 85, 192, 0.4); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.45; }
.consent-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-acts .button { min-height: 0; }
body.has-dock .consent { bottom: 92px; }
body.has-consent .site-footer { padding-bottom: 150px; }
@media (max-width: 640px) { .consent { left: 12px; bottom: 12px; } body.has-dock .consent { bottom: 84px; } }
/* Answered in the bar: the request forms do not ask again (the yes counts on the server, src/stats.ts). */
html[data-consent] label.ads-ok { display: none; }
.consent-page { margin: 28px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--accent-soft); }
.consent-page p { margin: 0 0 10px; }
.consent-page .consent-acts { margin: 0; }


/* ---------- Jaine reads a sentence back (public/match.js readBack; owner, 2026-11-28) ---------- */
.match-jaine .mj-said { color: var(--muted); font-style: italic; font-size: 14px; }
.match-jaine .mj-said::before { content: "\201C"; }
.match-jaine .mj-said::after { content: "\201D"; }
.mj-answers .chip.match { font-size: 14px; }
