/* ── Design tokens ── */
:root {
  --bg:          oklch(97.6% 0.005 80);
  --bg-card:     oklch(99.4% 0.003 80);
  --bg-section:  oklch(99.2% 0.003 80);
  --bg-inset:    oklch(98.4% 0.004 80);
  --border:      oklch(91% 0.006 78);
  --border-light:oklch(94% 0.006 78);
  --text:        oklch(27% 0.008 70);
  --text-light:  oklch(44% 0.008 70);
  --text-muted:  oklch(56% 0.01 70);
  --accent:      oklch(52% 0.108 42);
  --accent-hover:oklch(43% 0.09 42);
  --good:        oklch(52% 0.09 150);
  --warn:        oklch(62% 0.11 70);
  --bad:         oklch(54% 0.13 25);
  --good-bg:     oklch(94% 0.045 150);
  --warn-bg:     oklch(95% 0.05 80);
  --bad-bg:      oklch(94% 0.04 25);
  --fav:         oklch(62% 0.21 22);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body { min-height: 100%; }  /* not height: the sticky header sticks within body, which must be as tall as the page */
body {
  font-family: Archivo, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
textarea, input, button { font-family: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 600; }

/* ── Animations ── */
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:1} }
@keyframes sweep { 0%{transform:translateX(-110%)} 100%{transform:translateX(420%)} }
@keyframes fade-in { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }

/* ── Utility ── */
.mono-tiny { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--text-muted); }
.accent-text { color: var(--accent); }

.warn-text { color: var(--warn); }

.hint-text { font-size: 14px; color: var(--text-muted); }

/* ── Buttons ── */
.btn-pill {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 500; line-height: 1;
  padding: 15px 28px; border-radius: 999px;
  border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.btn-accent  { background: var(--accent);  color: oklch(98.5% 0.004 80); }
.btn-accent:hover  { background: var(--accent-hover); color: oklch(98.5% 0.004 80); }

/* ── Header ── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 20px 64px;
  position: sticky; top: 0; z-index: 30;
  background: oklch(97.6% 0.005 80);  /* solid: the grid's rows scroll under it, below the grid's own sticky head */
  border-bottom: 1px solid var(--border);
}
.header-brand { display: flex; align-items: center; gap: 12px; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.brand-sub  { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
/* ── Form elements ── */

/* ── Analyse section (logged-in) ── */

/* ── Loading ── */

/* ── Requirements panel ── */

/* ── Error ── */
.error-box {
  margin-top: 24px; padding: 16px 20px;
  background: oklch(97% 0.02 25); border: 1px solid oklch(88% 0.04 25);
  border-radius: 10px; color: oklch(36% 0.08 25); font-size: 14px;
}

/* ── Report section ── */
.report-section { padding: 36px 64px 24px; max-width: 1400px; margin: 0 auto; }
.report-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.report-heading h2 { font-size: 40px; letter-spacing: -0.028em; margin-bottom: 14px; }

/* ── Locked paywall state ── */

/* ── Apartment card ── */

.score-track { height: 6px; border-radius: 999px; background: oklch(93% 0.006 78); overflow: hidden; }
.score-fill  { height: 100%; border-radius: 999px; }

/* Facts panel */

.apt-facts-inner { border: 1px solid oklch(92% 0.006 78); border-radius: 10px; background: var(--bg-inset); padding: 20px 24px 22px; }
.facts-panel-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.facts-list { display: grid; gap: 4px; }

.fact-row-wrap { border-bottom: 1px solid oklch(93% 0.006 78); padding-bottom: 12px; }
.fact-row-wrap:last-child { border-bottom: none; padding-bottom: 0; }
/* What the flat has no answer for, above its lines */
.facts-to-check {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: oklch(96% 0.006 78);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.fact-row { display: grid; grid-template-columns: 19px 1fr auto auto; gap: 16px; align-items: baseline; }
.fact-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 4px;
  font-size: 11.5px; font-weight: 600; flex-shrink: 0; transform: translateY(2px);
}
.fact-mark.good { background: var(--good-bg); color: var(--good); }
.fact-mark.warn { background: var(--warn-bg); color: oklch(44% 0.09 70); }
.fact-mark.bad  { background: var(--bad-bg);  color: var(--bad); }
.fact-mark.none { background: oklch(95.5% 0.004 78); color: oklch(62% 0.01 70); }
.fact-mark.info { background: oklch(94% 0.004 78); color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 10.5px; }
.fact-text { font-size: 14.5px; line-height: 1.5; color: oklch(30% 0.008 70); }
.fact-req  { color: oklch(54% 0.01 70); }
.fact-link {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  text-decoration: none; color: oklch(58% 0.06 42);
  border-bottom: 1px solid oklch(88% 0.02 45); white-space: nowrap;
}
.fact-link:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }

.fact-detail-btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  background: none; border: 1px solid var(--border-light); border-radius: 999px;
  padding: 4px 10px; cursor: pointer; color: oklch(50% 0.01 70); white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.fact-detail-btn:hover { border-color: var(--accent); color: var(--accent); }
.fact-detail {
  margin: 16px 0 4px 35px; border-left: 2px solid oklch(90% 0.025 45); padding-left: 20px;
  animation: fade-in 0.25s ease both;
}
.fact-detail-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; font-size: 13.5px; padding-bottom: 8px; }
.fact-detail-left { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.fact-detail-key { color: oklch(52% 0.01 70); }
a.fact-detail-key { color: var(--accent); text-decoration: none; border-bottom: 1px solid oklch(75% 0.06 42); }
a.fact-detail-key:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }
.fact-detail-addr { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: oklch(60% 0.01 70); }
.fact-detail-val { color: oklch(30% 0.008 70); text-align: right; white-space: nowrap; }
.fact-detail-note { font-size: 12.5px; line-height: 1.5; color: oklch(50% 0.01 70); margin: 8px 0 0; }
.fact-detail-source { font-size: 12px; color: oklch(60% 0.01 70); margin-top: 10px; }
.fact-detail-source a { font-size: 12px; }

.info-icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; margin-left: 5px;
  border-radius: 50%; background: oklch(90% 0.01 70); color: oklch(48% 0.01 70);
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 700;
  cursor: help; vertical-align: middle; outline: none;
}
.info-icon:hover, .info-icon:focus { background: oklch(83% 0.02 70); color: oklch(30% 0.01 70); }
.info-icon-tip {
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 230px;
  background: oklch(22% 0.01 70); color: oklch(97% 0.004 80);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.45;
  padding: 7px 9px; border-radius: 6px; text-align: left; white-space: normal;
  visibility: hidden; opacity: 0; transition: opacity 0.12s ease; pointer-events: none; z-index: 20;
}
.info-icon:hover .info-icon-tip, .info-icon:focus .info-icon-tip { visibility: visible; opacity: 1; }

/* Commute journey legs — a compact timeline instead of generic key/value rows */
.fact-detail-leg {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 2px;
  font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed oklch(92% 0.015 70);
}
.fact-detail-leg:last-child { border-bottom: none; }
.fact-detail-leg-label { color: oklch(30% 0.008 70); font-weight: 600; }
.fact-detail-leg-dur { color: oklch(50% 0.01 70); margin-left: auto; white-space: nowrap; }
.fact-detail-leg-stops {
  flex-basis: 100%; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: oklch(58% 0.01 70);
}
.fact-detail-leg--walk { opacity: 0.7; }
.fact-detail-leg--walk .fact-detail-leg-label { font-weight: 400; }

/* Verdict + actions */

.apt-listing-link { font-size: 13px; font-weight: 500; }

/* ── Footer ── */
/* Under the report, as far below it as from the page's bottom, and as wide */
body.report-page .site-footer { max-width: 1400px; margin: 0 auto; padding: 0 64px 24px; }
.site-footer { padding: 44px 64px 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-header { padding: 20px 24px; }
  .report-section { padding: 24px 24px 16px; }
  .site-footer { padding-left: 24px; padding-right: 24px; padding-bottom: 16px; gap: 8px 16px; }
  body.report-page .site-footer { padding: 0 24px 16px; }
}
/* The address and the name share a line on the narrowest phones */
@media (max-width: 399px) {
  .footer-tagline { display: none; }
}

/* ── Compare grid ── */
.cgrid-card {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: clip;  /* not hidden: that would make the card the header row's scroller, and it wouldn't stick */
  background: var(--bg-card);
  box-shadow: 0 1px 2px oklch(27% 0.008 70 / 0.03);
}
/* Six columns share the width: the grid fits the card, never scrolling sideways */

/* The flats' heads stay in view as the rows scroll by, under the page's own sticky header */
.cgrid-header-row {
  display: flex;
  align-items: stretch;
  position: sticky;
  top: var(--site-header-h, 0px);
  z-index: 5;
}
.cgrid-label {
  flex: 0 0 250px;
  width: 250px;
  background: oklch(98.6% 0.004 80);
  border-right: 1px solid var(--border);
  /* sticky positioning declared on individual elements that need it */
}
.cgrid-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
}
/* "Favourites" at the top, level with the names and their hearts; "Match score" at the bottom */
.cgrid-header-label {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid oklch(90% 0.006 78);
}
.cgrid-match-sort {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(48% 0.01 70);
  text-align: left;
  transition: color 0.15s;
}
.cgrid-match-sort[data-active], .cgrid-match-sort:hover { color: var(--accent); }
/* "Favourites" in the corner is the favourites' must; its pill keeps its room while off */
.cgrid-fav-must {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(48% 0.01 70);
  transition: color 0.15s;
}
.cgrid-fav-must:hover, .cgrid-fav-must[aria-pressed="true"] { color: var(--accent); }
.cgrid-fav-must .cgrid-must-pill { margin-left: 0; visibility: hidden; }
.cgrid-fav-must[aria-pressed="true"] .cgrid-must-pill {
  visibility: visible;
  background: oklch(94% 0.04 45);
  color: oklch(42% 0.09 42);
  border-color: oklch(52% 0.108 42);
}
/* A favourite's heart: before its name on a desktop, on its photo's corner on a phone */
.cgrid-head-fav {
  width: 0.85em;
  height: 0.85em;
  margin-right: 5px;
  vertical-align: -0.08em;
  fill: var(--fav);
}
.cgrid-group-toggle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--accent);
  white-space: nowrap;
  flex: 0 0 auto;
}

.cgrid-head-col {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  padding: 13px 16px 14px;
  display: flex;
  flex-direction: column;
  /* button reset + clickable */
  background: var(--bg-card);
  border: none;
  border-right: 1px solid oklch(93% 0.006 78);
  border-top: 3px solid transparent;
  border-bottom: 1px solid oklch(90% 0.006 78);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-top-color 0.15s, background 0.15s;
}
.cgrid-head-col[data-selected] {
  border-top-color: var(--accent);
  background: oklch(97.5% 0.012 42);
}
.cgrid-head-col:hover:not([data-selected]) {
  background: oklch(98.2% 0.004 80);
}
.cgrid-apt-name {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cgrid-match-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.cgrid-match-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cgrid-match-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text);
}
.cgrid-score-track {
  height: 4px;
  border-radius: 999px;
  background: oklch(92% 0.006 78);
  overflow: hidden;
}
.cgrid-score-fill { height: 100%; border-radius: 999px; }

.cgrid-group-head {
  display: flex;
  align-items: stretch;
  background: oklch(98.4% 0.004 80);
}
.cgrid-group-fill {
  flex: 1 1 0;
  min-width: 0;
  background: oklch(98.4% 0.004 80);
  border-bottom: 1px solid oklch(94.5% 0.006 78);
}
.cgrid-group-label {
  padding: 10px 20px;
  background: oklch(98.4% 0.004 80);
  border-bottom: 1px solid oklch(94.5% 0.006 78);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(58% 0.01 70);
}

.cgrid-row {
  display: flex;
  align-items: stretch;
}
.cgrid-row-label {
  flex: 0 0 250px;
  width: 250px;
  background: oklch(98.6% 0.004 80);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid oklch(94.5% 0.006 78);
  padding: 8px 14px 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* The whole name is the row's toggle (a must, or a sort); its button is there for the keyboard */
.cgrid-row-label[data-toggle] { cursor: pointer; }
.cgrid-row-btn {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text);
  transition: color 0.15s;
  font-family: inherit;
}
.cgrid-row-label[data-toggle]:hover .cgrid-row-btn { color: var(--accent); }
.cgrid-must-pill {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: none;
  color: oklch(58% 0.01 70);
  border: 1px solid oklch(89% 0.006 78);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
/* The sort arrow always keeps its room, so the row that's sorted doesn't rewrap its name */
.cgrid-caret {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  flex: 0 0 0.75em;
}

.cgrid-cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 16px;
  border-right: 1px solid oklch(94.5% 0.006 78);
  border-bottom: 1px solid oklch(94.5% 0.006 78);
  background: var(--bg-card);
  overflow: hidden;
}
.cgrid-best-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--good);
  flex-shrink: 0;
  margin-left: auto;
}
/* One line always ("best" beside its value, which ends in "…" if they don't fit), so a row is
   the same height whichever flat is best */
.cgrid-cell-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.cgrid-mark {
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.cgrid-mark.good { color: var(--good); }
.cgrid-mark.bad  { color: var(--bad); }
.cgrid-mark.warn { color: var(--warn); }
.cgrid-cell-value {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* A listing-text row on a desktop: the listing's words in place of the tick, two lines at most (in full
   on hover); every cell keeps room for both lines, so the row's height never depends on the flats shown */
.cgrid-row--quotes .cgrid-cell-main { min-height: calc(2 * 1.35 * 12px); align-items: center; }
.cgrid-cell-quote {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.cgrid-cell-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 3px 0 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cgrid-bar-row {
  height: 5px;
  background: oklch(93% 0.006 78);
  border-radius: 999px;
  margin-top: 7px;
  overflow: hidden;
}
.cgrid-bar-fill {
  height: 100%;
  border-radius: 999px;
}
.cgrid-bar-row--none { visibility: hidden; }
.cgrid-bar-gap { height: 6px; }  /* half a bar's room (its 7px margin + 5px), above and below */


/* ── Write-up panel ── */
.cgrid-wu-photos {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

/* Favourite: a white heart on the main photo, with a blurred dark outline so it reads on any photo;
   solid red and a little bigger once pressed. The outline is the SVG's own (see HEART_SVG) and only
   the size animates, which Safari does as smoothly as Chrome. */
.cgrid-fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
/* Even sizes keep the heart on whole pixels (46 − 36 = 5px each side), and its own layer has Safari
   scale it as one image: centred on a half pixel, Safari snaps it left and right as it grows */
.cgrid-fav-btn svg {
  width: 36px;
  height: 36px;
  overflow: visible;
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.6, 1);
}
.cgrid-fav-btn .fav-shadow { fill: none; stroke: oklch(0% 0 0 / 0.55); stroke-width: 3; stroke-linejoin: round; }
.cgrid-fav-btn .fav-heart  { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.cgrid-fav-btn[aria-pressed="true"] svg { transform: scale(1.2); }
.cgrid-fav-btn[aria-pressed="true"] .fav-heart { fill: var(--fav); stroke: var(--fav); }
@media (hover: hover) {
  .cgrid-fav-btn:hover svg { transform: scale(1.1); }
  .cgrid-fav-btn:hover .fav-heart { fill: oklch(100% 0 0 / 0.45); }
  .cgrid-fav-btn[aria-pressed="true"]:hover svg { transform: scale(1.3); }
  .cgrid-fav-btn[aria-pressed="true"]:hover .fav-heart { fill: var(--fav); }
}
.cgrid-fav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 50%; }

/* Swiping on a phone: the flats either side ride along, edge to edge, while the card is dragged */
.cgrid-writeup { position: relative; }
.cgrid-writeup--beside {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.cgrid-writeup--next { left: 100%; box-shadow: inset 1px 0 0 var(--border); }
.cgrid-writeup--prev { right: 100%; box-shadow: inset -1px 0 0 var(--border); }
@media (prefers-reduced-motion: reduce) { .cgrid-fav-btn svg { transition: none; } }
.cgrid-wu-photo-main {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.cgrid-wu-photo-row {
  display: flex;
  gap: 3px;
}
.cgrid-wu-photo-thumb {
  flex: 1;
  min-width: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
/* A flat with fewer photos keeps the three slots: a blank one stands in */
.cgrid-wu-photo-blank {
  background: repeating-linear-gradient(135deg, oklch(95.5% 0.004 80) 0 6px, oklch(93% 0.005 80) 6px 12px);
}
.cgrid-writeup {
  border-bottom: 1px solid oklch(93% 0.006 78);
  background: oklch(98.2% 0.004 80);
}
.cgrid-wu-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: 32px;
  padding: 22px 28px 28px;
}
.cgrid-wu-left {
  display: flex;
  flex-direction: column;
}

/* The rank beside the name and the details, its figures centred on the two together (between the
   name's capitals and the details' baseline); the link under them, on the Features box's left edge */
.cgrid-wu-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cgrid-wu-rank {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 6px;  /* its figures centred on the name and the details */
  flex-shrink: 0;
}
.cgrid-wu-titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.cgrid-wu-address {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}
.cgrid-wu-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}
.cgrid-wu-listing-link { align-self: flex-start; margin-top: 12px; }
.cgrid-wu-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cgrid-wu-facts {
  margin-top: 20px;
}
/* On a phone the photos sit on top of the Features (after the two-column rule, so it wins) */
.cgrid-card--phone .cgrid-wu-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
/* On a desktop, with photos, the photos set the row's height: the right column adds none
   of its own, stretches to the photos' bottom, and the Features list scrolls */
.cgrid-card:not(.cgrid-card--phone) .cgrid-wu-inner--photos .cgrid-wu-photos { margin-bottom: 0; }
.cgrid-card:not(.cgrid-card--phone) .cgrid-wu-inner--photos .cgrid-wu-right { contain: size; }
.cgrid-card:not(.cgrid-card--phone) .cgrid-wu-inner--photos .cgrid-wu-facts {
  flex: 1;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
.cgrid-card:not(.cgrid-card--phone) .cgrid-wu-inner--photos .cgrid-wu-facts .facts-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  padding-right: 14px;
}
/* A styled scrollbar is always shown and takes its own width, unlike
   macOS's overlay one, so the list reads as scrollable */
.cgrid-card:not(.cgrid-card--phone) .cgrid-wu-inner--photos .cgrid-wu-facts .facts-list::-webkit-scrollbar { width: 6px; }
.cgrid-card:not(.cgrid-card--phone) .cgrid-wu-inner--photos .cgrid-wu-facts .facts-list::-webkit-scrollbar-track {
  background: oklch(93% 0.006 78);
  border-radius: 999px;
}
.cgrid-card:not(.cgrid-card--phone) .cgrid-wu-inner--photos .cgrid-wu-facts .facts-list::-webkit-scrollbar-thumb {
  background: oklch(78% 0.01 70);
  border-radius: 999px;
}
@supports not selector(::-webkit-scrollbar) {
  .cgrid-card:not(.cgrid-card--phone) .cgrid-wu-inner--photos .cgrid-wu-facts .facts-list {
    scrollbar-width: thin;
    scrollbar-color: oklch(78% 0.01 70) oklch(93% 0.006 78);
  }
}

/* ── Report rows: remove button, add-row form ── */

.cgrid-row-delete {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cgrid-row-delete:hover { background: var(--bad-bg); color: var(--bad); }
.cgrid-add-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid oklch(94.5% 0.006 78);
  background: var(--bg-card);
}
.cgrid-add-form {
  flex: 0 0 250px;
  width: 250px;
  display: flex;
  gap: 6px;
  padding: 10px 14px 10px 20px;
  background: oklch(98.6% 0.004 80);
  border-right: 1px solid var(--border);
}
.cgrid-add-input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px dashed oklch(84% 0.01 78);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
}
.cgrid-add-input:focus { outline: none; border-style: solid; border-color: var(--accent); }
.cgrid-add-input:disabled { color: var(--text-muted); }
.cgrid-add-btn {
  flex: 0 0 auto;
  font: inherit;
  font-size: 12.5px;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.cgrid-add-btn:hover { background: var(--accent-hover); }
.cgrid-add-btn:disabled { opacity: 0.5; cursor: default; }
.cgrid-add-status {
  margin: 0;
  padding: 0 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.cgrid-add-status.error { color: var(--bad); }
/* Its example slides (a transform needs a box); kept out of the live region's announcements */
.cgrid-add-hint { display: inline-block; white-space: nowrap; }
/* A smaller screen gives the six columns more of the width (a phone or tablet narrows it further) */
@media (max-width: 1200px) {
  .cgrid-label, .cgrid-row-label, .cgrid-add-form { flex: 0 0 200px; width: 200px; }
  .cgrid-head-col, .cgrid-cell { padding-left: 12px; padding-right: 12px; }
}

/* A small phone on its side gets the desktop layout (see phoneQuery in script.js): a narrower
   name column leaves the six columns room for their values */
@media (max-width: 760px) {
  .cgrid-card:not(.cgrid-card--phone) :is(.cgrid-label, .cgrid-row-label, .cgrid-add-form) { flex: 0 0 150px; width: 150px; }
  .cgrid-card:not(.cgrid-card--phone) :is(.cgrid-head-col, .cgrid-cell) { padding-left: 8px; padding-right: 8px; }
  .cgrid-card:not(.cgrid-card--phone) .cgrid-header-label,
  .cgrid-card:not(.cgrid-card--phone) .cgrid-row-label,
  .cgrid-card:not(.cgrid-card--phone) .cgrid-group-label { padding-left: 14px; padding-right: 10px; }
}

/* ── Compare grid on a phone: the top six flats fit the width, no sideways scroll ── */
@media (max-width: 600px) {
  .report-section { padding: 20px 16px 16px; }
  body.report-page .site-footer { padding: 0 16px 16px; }
  .cgrid-card { border-radius: 10px; }
  .cgrid-wu-inner { padding: 16px 16px 20px; }
  .cgrid-wu-rank { font-size: 29px; margin-top: 5.5px; }
  .cgrid-wu-address { font-size: 16.5px; }
}

/* ── The selected flat's card on a phone: the same shape for every flat, so sorting or
   swiping (which change the flat shown) never moves what's under it ── */
/* The name and the details take one line each (the details the monthly rent only, see the
   script), ending in "…" when longer, so the card is one height with nothing held in reserve */
.cgrid-card--phone .cgrid-wu-address,
.cgrid-card--phone .cgrid-wu-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cgrid-card--phone .cgrid-wu-facts { margin-top: 16px; }
.cgrid-card--phone .apt-facts-inner { padding: 14px 14px 16px; }
/* Experiment: the Features list keeps one height (seven lines and half the next, so it reads as
   cut off), whatever a flat has, and scrolls inside; at its ends a scroll carries on to the page */
.cgrid-card--phone .facts-list {
  height: 335px;
  overflow-y: auto;
  align-content: start;
  padding-right: 10px;
}
.cgrid-card--phone .facts-list::-webkit-scrollbar { width: 4px; }
.cgrid-card--phone .facts-list::-webkit-scrollbar-track { background: oklch(93% 0.006 78); border-radius: 999px; }
.cgrid-card--phone .facts-list::-webkit-scrollbar-thumb { background: oklch(78% 0.01 70); border-radius: 999px; }
/* A fact is one line, level with its mark: "name → value" (ending in "…" if it doesn't fit), then
   its source link and Details, a chevron that turns down when open */
.cgrid-card--phone .fact-row {
  grid-template-columns: 19px minmax(0, 1fr) auto auto;
  grid-template-rows: 28px;
  gap: 0 10px;
  align-items: center;
}
.cgrid-card--phone .fact-mark { transform: none; }
.cgrid-card--phone .fact-text {
  font-size: 13.5px;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cgrid-card--phone .fact-link { font-size: 10px; }
.cgrid-card--phone .fact-detail-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 0;  /* the word stays for screen readers; the chevron shows */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Drawn from two borders, not a "›" (a glyph isn't centred in its own box): a turned corner, nudged
   back by the half it points with so it sits in the middle either way */
.cgrid-card--phone .fact-detail-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateX(-1.5px) rotate(-45deg);
  transition: transform 0.15s;
}
.cgrid-card--phone .fact-detail-btn[aria-expanded="true"]::after { transform: translateY(-1.5px) rotate(45deg); }
.cgrid-card--phone .fact-row > span:empty { width: 0; }
.cgrid-card--phone .fact-detail { margin-left: 31px; padding-left: 12px; }
/* Details: each value under its name, wrapping, so a long one can't widen the card */
.cgrid-card--phone .fact-row-wrap { min-width: 0; }
.cgrid-card--phone .fact-detail-row { flex-direction: column; align-items: stretch; gap: 2px; position: relative; }
.cgrid-card--phone .fact-detail-val { text-align: left; white-space: normal; }
/* A tooltip spans its row instead of centring on the icon, which can sit near the edge */
.cgrid-card--phone .fact-detail .info-icon { position: static; }
.cgrid-card--phone .fact-detail .info-icon-tip { left: 0; right: 0; bottom: 100%; transform: none; width: auto; max-width: none; }
.cgrid-card--phone .cgrid-label,
.cgrid-card--phone .cgrid-row-label { flex: 0 0 112px; width: 112px; }

.cgrid-card--phone .cgrid-header-label { padding: 11px 6px 8px 10px; gap: 2px; }
.cgrid-top-count {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
}
.cgrid-card--phone .cgrid-match-sort { font-size: 8.5px; letter-spacing: 0.08em; gap: 3px; align-self: flex-start; }
.cgrid-card--phone .cgrid-fav-must { font-size: 8.5px; letter-spacing: 0.08em; gap: 4px; }
.cgrid-card--phone .cgrid-head-col { position: relative; }
.cgrid-card--phone .cgrid-head-fav {
  position: absolute;
  top: 10px;    /* just inside the photo's top right corner */
  right: 10px;
  width: 10px;
  height: 10px;
  margin: 0;
  stroke: #fff;
  stroke-width: 2;
  paint-order: stroke;
}
/* "Favourites" level with the hearts, "Match score" with the scores, the count between them */
.cgrid-card--phone .cgrid-header-label { justify-content: space-between; align-items: flex-start; }

.cgrid-card--phone .cgrid-head-col {
  padding: 6px 3px 7px;
  border-top-width: 2px;
  align-items: stretch;
  gap: 4px;
}
.cgrid-head-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
}
.cgrid-head-nophoto {
  background: repeating-linear-gradient(135deg, oklch(95.5% 0.004 80) 0 4px, oklch(92.5% 0.005 80) 4px 8px);
}
.cgrid-head-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 1.3em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text);
}
/* A flat that misses a must: its photo greyed and faded (its name is greyed on desktop) */
.cgrid-head-btn[data-fails-must] .cgrid-head-photo { filter: grayscale(1); opacity: 0.45; }
.cgrid-head-btn[data-fails-must] .cgrid-head-score { color: oklch(78% 0.008 70); }
/* …and on desktop its match score and bar, beside the greyed name */
.cgrid-head-btn[data-fails-must] .cgrid-match-score,
.cgrid-head-btn[data-fails-must] .cgrid-match-label { color: oklch(78% 0.008 70); }
.cgrid-head-btn[data-fails-must] .cgrid-score-fill { filter: grayscale(1); opacity: 0.45; }

.cgrid-card--phone .cgrid-group-label { padding: 7px 6px 7px 10px; font-size: 8.5px; letter-spacing: 0.1em; }
/* Shown only once the row is a must; until then it keeps its room so toggling never moves the grid */
.cgrid-must-pill--off { visibility: hidden; }

/* A phone's rows are all one height, fitting a name of two lines (longer ones end in "…"); a
   must's pill and the × sit to the right of the name, as on a desktop */
.cgrid-card--phone .cgrid-row { height: 44px; }
.cgrid-card--phone .cgrid-row-label { padding: 4px 2px 4px 10px; gap: 2px; overflow: hidden; }
.cgrid-card--phone .cgrid-row-btn {
  align-self: stretch;
  padding: 0;
  font-size: 11px;
  line-height: 1.25;
  gap: 3px;
}
.cgrid-card--phone .cgrid-row-btn > span:first-child {
  flex: 0 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
/* A row that can't be removed keeps its pill off the edge (the ×'s whole room would split "Favourites") */
.cgrid-card--phone .cgrid-row-label:not(:has(.cgrid-row-delete)) { padding-right: 10px; }
.cgrid-card--phone .cgrid-row-label[data-toggle="sort"] .cgrid-row-btn { align-items: center; }
.cgrid-card--phone .cgrid-row-label[data-toggle="must"] .cgrid-row-btn { align-items: center; }
.cgrid-card--phone .cgrid-must-pill { font-size: 7px; letter-spacing: 0.04em; padding: 2px 4px; }
.cgrid-card--phone .cgrid-row-delete { flex: 0 0 18px; width: 18px; height: 18px; font-size: 13px; }

.cgrid-card--phone .cgrid-cell {
  padding: 7px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cgrid-cell-short {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  color: var(--text);
  white-space: nowrap;
}
.cgrid-cell-short.warn { color: var(--warn); }
/* A limit's tick or cross, beside the value */
.cgrid-cell-checked { display: inline-flex; align-items: center; gap: 2px; }
/* A value and a ✓ take the same height, so a row doesn't grow when a ✓ comes into view */
.cgrid-card--phone .cgrid-cell-short,
.cgrid-card--phone .cgrid-mark { line-height: 16px; }
/* The photo and the bar keep clear of the column's edges (the value may use the whole width) */
.cgrid-card--phone .cgrid-bar-row { width: auto; align-self: stretch; height: 3px; margin: 5px 6px 0; flex-shrink: 0; }
.cgrid-card--phone .cgrid-head-photo { width: auto; margin: 0 4px 0 5px; }  /* as far from the sides as from the top */
.cgrid-card--phone .cgrid-bar-gap { height: 4px; flex-shrink: 0; }

.cgrid-card--phone .cgrid-add-row { flex-wrap: wrap; }
.cgrid-card--phone .cgrid-add-form { flex: 1 1 100%; width: auto; padding: 10px; border-right: none; }
.cgrid-card--phone .cgrid-add-status { padding: 0 10px 10px; }

/* ── Report page before a report is opened ── */
.report-empty {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
}

/* ── Tester guide (the bare address on the test build) ── */
/* Title on top; the two step lists side by side; then one full-width panel: what to add on the
   left, rows to try on the right. One column when narrow */
.guide { max-width: 72rem; margin: 0 auto; padding: 56px 24px 24px; display: grid; gap: 44px; }
.guide-page .site-footer { padding-top: 20px; }
/* Install a little wider than Build, so its paste step fits one line */
.guide-pair { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.guide-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px 40px; align-items: start;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px;
  box-shadow: 0 1px 2px oklch(27% 0.008 70 / 0.04); }
.guide-panel .guide-rows { background: var(--bg-inset); border-color: var(--border-light); }
.guide-points { padding-left: 1.1em; display: grid; gap: 6px; line-height: 1.55; }
.guide-points li::marker { color: var(--accent); }
/* Header and footer share the content's edges */
.guide-page .site-header, .guide-page .site-footer { padding-left: max(24px, calc((100% - 72rem) / 2 + 24px));
  padding-right: max(24px, calc((100% - 72rem) / 2 + 24px)); }
@media (max-width: 900px) {
  .guide { max-width: 44rem; padding-top: 40px; gap: 36px; }
  .guide-pair, .guide-panel { grid-template-columns: minmax(0, 1fr); }
  .guide-panel { padding: 24px 20px; }
  .guide-page .site-header, .guide-page .site-footer { padding-left: max(24px, calc((100% - 44rem) / 2 + 24px));
    padding-right: max(24px, calc((100% - 44rem) / 2 + 24px)); }
}
.guide h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.guide h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.guide p, .guide ul, .guide ol, .guide dl { margin: 0; }
.guide-intro, .guide-section { display: grid; gap: 14px; }
.guide-intro .btn-pill { display: inline-block; text-decoration: none; margin-top: 6px; }
.guide-hint { font-size: 14px; color: var(--text-muted); }
.guide code { font-family: 'IBM Plex Mono', monospace; font-size: 13px; background: var(--bg-inset);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
/* Words on the browser's or RentRay's own screens (buttons, switches), set apart from the grey
   chips for things you type */
.guide-ui { font-weight: 600; white-space: nowrap; color: var(--accent-hover); }
.guide-link { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-color: oklch(80% 0.05 45);
  text-underline-offset: 3px; }
.guide-link:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
/* An address with its copy icon inside the same chip */
.guide-chip { display: inline-flex; align-items: center; vertical-align: baseline; white-space: nowrap;
  background: var(--bg-inset); border: 1px solid var(--border); border-radius: 6px; padding-right: 2px; }
.guide-chip code { background: none; border: 0; padding: 1px 4px 1px 7px; }
.guide-copy { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 20px;
  padding: 0; margin: 0; border: 0; border-left: 1px solid var(--border); border-radius: 0 5px 5px 0;
  background: none; color: var(--text-muted); cursor: pointer; }
.guide-copy:hover { color: var(--accent); background: var(--bg-card); }
.guide-copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.guide-copy .icon-done { display: none; }
.guide-copy.copied { color: var(--good); }
.guide-copy.copied .icon-copy { display: none; }
.guide-copy.copied .icon-done { display: block; }
.guide-slot { font-style: italic; color: var(--accent); }
.guide-slot::before { content: "‹"; } .guide-slot::after { content: "›"; }
.guide-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide-steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.guide-steps > li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.guide-steps > li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--accent);
  font: 500 13px/30px 'IBM Plex Mono', monospace; text-align: center; }
.guide-steps > li > div { padding-top: 3px; display: grid; gap: 4px; line-height: 1.55; }
.guide-rows { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: grid; gap: 12px; }
.guide-rows ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.guide-rows li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--border-light); padding-bottom: 8px; font-size: 14px; }
.guide-rows li:last-child { border-bottom: none; padding-bottom: 0; }
.guide-typed { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; }
.guide-ticker { display: block; overflow: hidden; flex: 1 1 auto; min-width: 0; }
.guide-ticker .guide-typed { display: inline-block; white-space: nowrap; }

/* ── Home page (the bare address on rentray.co.uk; tools/build_static_site.py) ── */
/* Shares the guide's width and edges: the pitch, eight things it checks, the example reports, a
   note to write in */
.home-intro { display: grid; gap: 16px; max-width: 46rem; }
.home h1 { font-size: 42px; line-height: 1.08; }
.home-lede { font-size: 18px; line-height: 1.6; color: var(--text-light); }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px !important; }
.home-cta .btn-pill, .home-contact .btn-pill { text-decoration: none; }
.home-section { display: grid; gap: 18px; }
.home-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-features li { display: flex; flex-direction: column; gap: 8px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; }
.home-features h3 { font-size: 16px; }
.home-features p { font-size: 14.5px; line-height: 1.55; color: var(--text-light); }
/* What you'd type for it, at the card's foot */
.home-features .home-try { margin-top: auto; padding-top: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--accent); }
.home-features .home-try::before { content: "+ "; color: var(--text-muted); }
.home-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 16px; }
.home-example { display: flex; flex-direction: column; gap: 10px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 22px; color: var(--text); text-decoration: none; transition: border-color 0.15s; }
.home-example:hover { border-color: var(--accent); color: var(--text); }
.home-example-facts { font-size: 16px; font-weight: 600; }
.home-filters { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.home-filters li { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; background: var(--bg-inset);
  border: 1px solid var(--border-light); border-radius: 6px; padding: 2px 8px; }
.home-open { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 500; color: var(--accent); }
.home-contact { align-items: center; }
.home-contact > p { justify-self: end; }
@media (max-width: 1100px) {
  .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home h1 { font-size: 32px; }
  .home-lede { font-size: 16.5px; }
  .home-contact > p { justify-self: start; }
}
@media (max-width: 600px) {
  .home-features { grid-template-columns: minmax(0, 1fr); }
}
