/* (FINAL-FIX2 perf) 3 selector lists in this file whose last compound was a bare :is(...) are written out one selector per alternative, so Blink buckets each by its own class / id / tag instead of testing every element on every style recalc. Each alternative is padded with :not(#zz-) / :not(.zz-) / :not(zz-) so its specificity is what the :is() gave (the most specific alternative); one that cannot be padded down is a class / type more specific only where no rule anywhere could tell the difference (checked against every stylesheet and the DOM), otherwise it stays in a :is() with a never-matching alternative of the full specificity. Same elements, same cascade. */
/* R13 cards.css - Direction A "Quiet Instrument", owner WP2.
   .q-card / .q-row (reusable), then the four map-card families: Century, City, Micro-market (Market), Area (all one `#lv-map .info`).
   Rules: scoped under html.r13 (tokens.css), prefix `html.r13 body #lv-map .info` (1,2,2) + extra classes where an older rule is stronger;
   NO font / letter-spacing / line-height / text-transform / font-variant here (WP6 owns type); px x --ui-scale so the TV (1.7) and 1366x1024 (1.08) follow;
   card position, opacity and transform are set inline by the scripts and stay theirs. Nothing here changes text, order in the DOM, a handler or a data hook.
   Card anatomy (DIRECTIONS A.8): kicker, title, one figure, body, ruled list, nav row. No stat tiles: tiles are list rows (label left, value right, tabular). */

/* ================================================================
   1 - reusable components
   ================================================================ */
html.r13 .q-card {
  box-sizing: border-box; background: var(--surface-card); color: var(--fg);
  border: 0; border-radius: var(--r-card); padding: var(--q-card-pad);
  box-shadow: var(--el-1);
}
/* list row: min 44 (56 with a subtitle), 12 vertical padding, hairline above; leading glyph 20, trailing value right-aligned */
html.r13 .q-row {
  box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--s3);
  min-height: var(--q-row); padding: var(--s3) 0; border-top: 1px solid var(--hairline);
  background: none; box-shadow: none; border-radius: 0; color: var(--fg);
}
html.r13 .q-row:has(small, .q-row__sub) { min-height: var(--q-row-sub); }
html.r13 .q-row__lead { grid-column: 1; width: var(--q-icon); height: var(--q-icon); color: var(--fg-2); }
html.r13 .q-row__main { grid-column: 2; min-width: 0; color: var(--fg); }
html.r13 .q-row__sub { display: block; color: var(--fg-2); }
html.r13 .q-row__val { grid-column: 3; justify-self: end; text-align: right; color: var(--fg); }

/* ================================================================
   2 - map card: material (one solid graphite card, scene ground, in Day too)
   ================================================================ */
html.r13 body #lv-map .info {
  /* the card is graphite on every map ground, so every colour token the old rules read inside it is pointed at the scene roles
     (body.glass-day flips --lg-* to ink on the Day map; the card no longer follows that) */
  --lg-fg: var(--fg); --lg-fg2: var(--fg-2); --lg-fg3: var(--fg-2); --lg-line: var(--hairline);
  --lg-field: rgba(255, 255, 255, .06); --lg-field-hi: rgba(255, 255, 255, .10);
  --ink: var(--fg); --ink-2: var(--fg-2); --muted: var(--fg-2);
  --card-w: var(--q-card-w); --card-pad: calc(var(--q-card-pad) * var(--ui-scale)); --card-gap: var(--s3);
  --card-r: var(--r-card); --card-tile-r: var(--r-inner); --card-shadow: var(--el-1-scene); --card-shadow-day: var(--el-1-scene);
  --card-photo-h: calc(100px * var(--ui-scale));   /* STAB: was 148, so the 40px figure and a two-line title fit the 531px the card may use at 1280x800 */
  background-color: var(--surface-card); background-image: none; color: var(--fg);
  border-radius: var(--r-card); box-shadow: var(--el-1-scene);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* STAB (Apple tone): by Day the map card is 8791's light glass (white .8, ink text), not graphite: the scene roles are re-pointed to ink inside it */
html.r13 body.glass-day:is([data-level="century"], [data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info {
  --fg: #16161b; --fg-2: rgba(22, 22, 27, .76); --fg-3: rgba(22, 22, 27, .52); --hairline: rgba(22, 22, 27, .08); --surface-card: var(--lg-tint-thick);
  --lg-field: rgba(22, 22, 27, .05); --lg-field-hi: rgba(22, 22, 27, .08);
  box-shadow: inset 0 0 0 1px var(--mf-edge), var(--lg-shadow);
}
html.r13 body #lv-map .info.has-hi { background-color: var(--surface-card); background-image: none; }
html.r13 body #lv-map .info::before { content: none; }       /* the specular rim of the old glass */
/* position: the title block and the card share the 96px top line; the right edge is the gutter, like the top row's */
/* landscape only: in portrait (a rotated tablet) the old bottom sheet stays (css/ux/map.css:204; js/ux/map.js syncSheet measures it). With top set here the sheet was stretched from the title line to the
   bottom edge, map.js read that as a 1180px sheet and pushed the whole side bar 728px up, off the screen (800x1280, 11 touch-replay cases) */
@media (orientation: landscape) {
  html.r13 body:is([data-level="century"], [data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info {
    top: var(--title-top); right: var(--gutter);
    max-height: calc(100dvh - var(--title-top) - var(--orb-zone) * 1.8);      /* ends above the sun dial (the orb zone is the reserved bottom-right square) */
  }
}
html.r13 body #lv-map .info.on { gap: var(--s2); }
html.r13 body #lv-map .info > .k, html.r13 body #lv-map .info > .mm-line, html.r13 body #lv-map .info > .mm-src, html.r13 body #lv-map .info > .mm-why, html.r13 body #lv-map .info > :is(p, ul, .zz-) { margin-top: 0; margin-bottom: 0; }

/* the close x: 44 x 44 at the top-right corner (the old 32px box with a 6px outset is replaced by the real size) */
html.r13 body #lv-map .info > .x {
  width: calc(var(--q-ctl)); height: calc(var(--q-ctl)); min-width: var(--q-ctl); min-height: var(--q-ctl); top: var(--s1); right: var(--s1);
  background: transparent; color: var(--fg-2); border: 0; box-shadow: none;
}
html.r13 body #lv-map .info > .x::after { content: none; }
html.r13 body #lv-map .info > .x svg { width: var(--q-icon); height: var(--q-icon); }
html.r13 body #lv-map .info.has-hi > .x { color: #fff; background: radial-gradient(circle at center, rgba(28, 28, 30, .6) calc(16px * var(--ui-scale)), transparent calc(16px * var(--ui-scale) + .5px)); }
/* room beside the title for the 44 box */
html.r13 body:is([data-level="city"], [data-level="area"], [data-level="market"], [data-level="century"]) #lv-map .info > .x + .k,
html.r13 body:is([data-level="city"], [data-level="area"], [data-level="market"], [data-level="century"]) #lv-map .info > .x + .k + h3,
html.r13 body:is([data-level="city"], [data-level="area"], [data-level="market"], [data-level="century"]) #lv-map .info > .x + h3 { padding-right: calc(var(--q-ctl) - var(--s2)); }

/* ================================================================
   3 - map card: photo header (growth stories, Century trust / scale): the photo stays, the decoration goes
   ================================================================ */
html.r13 body #lv-map .info .hi-acc { display: none; }                      /* the white accent line under the title */
/* (2 November, FINAL-FIX3 F5, QA-A m1 / QA-C D1) the status capsule is the first row of the photo, in the flow, and the caption sits at the foot: a two-line title used to grow up into the capsule's row and the kicker
   ("Growth story · 02") sat under "Announced" with only its ghost showing. The photo is now at least its usual height and grows by the rows it holds, so the capsule, the kicker and the title never overlap */
html.r13 body #lv-map .info .hi, html.r13 body #lv-map .info.gs .hi, html.r13 body #lv-map .info.gs.has-hi .hi { height: auto; min-height: var(--card-photo-h); }
html.r13 body #lv-map .info .hi-tag { position: relative; top: auto; left: auto; align-self: flex-start; flex: none; margin: var(--s3) 0 auto var(--card-pad); box-shadow: none; }
html.r13 body #lv-map .info .hi-cap, html.r13 body #lv-map .info.gs.has-hi .hi-cap { padding: var(--s2) var(--card-pad) var(--s3); }   /* the top padding is the least gap under the status capsule (F5) */

/* (2 November, FINAL-FIX4 F8, QA-C D11) the kicker ("Growth story · 0N") is the second row of the photo, above the scrim that starts under the title: white 64% at 12px measured 1.4:1 on the Business Corridor sky
   and 2.1 to 3.2:1 on two other stories. The caption carries its own backing: a quiet dark band that rises from just above the kicker (a short ramp, so the photo above the pill row stays as it was)
   down to the foot, and the kicker is white at 92% with the existing soft halo. Paint only, no geometry; the pill, the kicker and the title keep their rows */
html.r13 body #lv-map .info .hi-cap::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: calc(var(--s5) * -1) 0 0 0; background: linear-gradient(180deg, rgba(10, 10, 12, 0) 0, rgba(10, 10, 12, .5) calc(var(--s5) + var(--s2))); }
html.r13 body #lv-map .info .hi-cap .k { color: rgba(255, 255, 255, .92); }

/* ================================================================
   4 - map card: figure, sentence, why, source
   ================================================================ */
html.r13 body #lv-map .info.mm > .mm-fig, html.r13 body #lv-map .info.gs.mm > .mm-fig { display: grid; gap: var(--s1); margin: 0; }
html.r13 body #lv-map .info.mm > .mm-fig span { color: var(--fg-2); }
html.r13 body #lv-map .info.mm > p.mm-line { color: var(--fg); margin: 0; }
html.r13 body #lv-map .info.mm > p.mm-why { margin: 0; padding: 0; border: 0; color: var(--fg); }
html.r13 body #lv-map .info.mm > p.mm-why em { color: var(--fg-2); margin-bottom: var(--s1); }
html.r13 body #lv-map .info.mm > p.mm-src, html.r13 body #lv-map .info .mm-src, html.r13 body #lv-map .info .src, html.r13 body #lv-map .info .mm-note { color: var(--fg-2); margin: 0; }
html.r13 body #lv-map .info.mm > p.mm-drv { color: var(--fg-2); margin: 0; }
html.r13 body #lv-map .info.mm > p.mm-drv b { color: var(--fg-2); }
html.r13 body #lv-map .info.mm > p.mm-h, html.r13 body #lv-map .info.mm .mm-h { color: var(--fg-2); margin: var(--s2) 0 0; }
/* the "Sample data" tag beside a kicker: a quiet outline, not a filled pill */
html.r13 body #lv-map .info .sample, html.r13 body #lv-map .info .k .sample {
  background: none; box-shadow: inset 0 0 0 1px var(--hairline); color: var(--fg-2); border: 0; border-radius: var(--r-capsule); padding: 1px var(--s2);
}
/* the "Full table" button inside the compare figure: a 44 hit box around a quiet text button */
html.r13 body #lv-map .info .mm-tbl-b { position: relative; justify-self: start; min-height: var(--q-chip); padding: 0 var(--s4); background: none; box-shadow: inset 0 0 0 1px var(--hairline); color: var(--fg); border-radius: var(--r-capsule); }
html.r13 body #lv-map .info .mm-tbl-b::after { content: ""; position: absolute; inset: -12px -8px; }

/* ================================================================
   5 - map card: the ruled list. KPI tiles, project facts and growth tiles become rows:
       label (and its subtitle) on the left, the figure trailing and right-aligned (tabular via WP6), a hairline above every row.
   ================================================================ */
html.r13 body #lv-map .info.mm > .mm-kpis, html.r13 body #lv-map .info.mm > .mm-kpis.n2, html.r13 body #lv-map .info.mm > .mm-kpis.n3,
html.r13 body #lv-map .info.mm > .mm-kpis.n4, html.r13 body #lv-map .info .pj-facts, html.r13 body #lv-map .info .gs-tiles, html.r13 body #lv-map .info .gs-tiles.n2 {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: var(--s1) 0 0; padding: 0; list-style: none;
}
html.r13 body #lv-map .info.mm > .mm-kpis > div, html.r13 body #lv-map .info .pj-facts > div {
  box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) fit-content(60%); grid-template-areas: "l v" "s v";
  align-items: center; column-gap: var(--s3); row-gap: 0; min-width: 0; min-height: var(--q-row);
  padding: var(--s3) 0; margin: 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: none; box-shadow: none;
}
html.r13 body #lv-map .info.mm > .mm-kpis > div:has(small) { min-height: var(--q-row-sub); }
html.r13 body #lv-map .info.mm > .mm-kpis > div > b, html.r13 body #lv-map .info .pj-facts > div > b {
  grid-area: v; justify-self: end; text-align: right; min-width: 0; color: var(--fg); overflow: visible; text-overflow: clip; white-space: normal; display: block;
}
html.r13 body #lv-map .info.mm > .mm-kpis > div > span, html.r13 body #lv-map .info .pj-facts > div > span { grid-area: l; min-width: 0; color: var(--fg); }
html.r13 body #lv-map .info.mm > .mm-kpis > div > small { grid-area: s; min-width: 0; color: var(--fg-2); }
/* a card with a row of facts and nothing above it keeps the rule only between rows */
html.r13 body #lv-map .info.mm > .mm-kpis[data-tl="kp"] { display: grid; }
html.r13 body #lv-map .info.mm > .mm-kpis[data-tl="kp"][style*="none"] { display: none; }

/* growth-story tiles: [icon] label ... value */
html.r13 body #lv-map .info .gs-t {
  box-sizing: border-box; display: grid; grid-template-columns: var(--q-icon) minmax(0, 1fr) fit-content(60%); grid-template-areas: "i l v"; align-items: center; column-gap: var(--s3);
  min-height: var(--q-row); padding: var(--s3) 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: none; box-shadow: none; min-width: 0;
}
html.r13 body #lv-map .info .gs-t > .gs-ic, html.r13 body #lv-map .info .gs-t > :is(svg, .zz-) { grid-area: i; width: var(--q-icon); height: var(--q-icon); color: var(--fg-2); }
html.r13 body #lv-map .info .gs-t > b { grid-area: v; justify-self: end; text-align: right; color: var(--fg); white-space: normal; display: block; -webkit-line-clamp: unset; overflow: visible; text-overflow: clip; min-width: 0; }
html.r13 body #lv-map .info .gs-t > span { grid-area: l; min-width: 0; color: var(--fg); }
/* the lane pictogram: drawn on the card, no tile behind it */
html.r13 body #lv-map .info .gs-viz { background: none; box-shadow: none; border-radius: 0; padding: 0; }
html.r13 body #lv-map .info .gs-why { color: var(--fg); }
html.r13 body #lv-map .info .gs-ic, html.r13 body #lv-map .info .gs-why > svg { color: var(--fg-2); }

/* approvals and recognition: ruled rows with the tick */
html.r13 body #lv-map .info.mm .mm-checks { display: grid; gap: 0; margin: 0; padding: 0; }
html.r13 body #lv-map .info.mm .mm-checks li { padding-top: var(--s2); padding-bottom: var(--s2); border-top: 1px solid var(--hairline); color: var(--fg); }
html.r13 body #lv-map .info.mm .mm-checks li::before { border-color: var(--fg-2); top: calc(var(--s2) + .28rem); }
/* resident stories: one rule above each quote */
html.r13 body #lv-map .info .quote { margin: 0; padding: var(--s3) 0 0; border: 0; border-top: 1px solid var(--hairline); background: none; box-shadow: none; }
html.r13 body #lv-map .info .quote cite, html.r13 body #lv-map .info .quote cite span { color: var(--fg-2); }

/* ================================================================
   6 - map card: the nav row (Previous / Next) and the rush-hour switch
   ================================================================ */
html.r13 body #lv-map .info .nav { margin: 0; padding-top: var(--s2); gap: var(--s2); border-top: 1px solid var(--hairline); }
html.r13 body #lv-map .info .nav .pill { min-height: var(--q-ctl); background: none; color: var(--fg-2); box-shadow: none; }
html.r13 body #lv-map .info .nav .pill:active { background: var(--lg-field-hi); color: var(--fg); }
html.r13 body #lv-map .info .pl-peak { margin: 0; padding-top: var(--s3); border-top: 1px solid var(--hairline); }
html.r13 body #lv-map .info .pl-peak .seg { background: var(--lg-field); box-shadow: none; border-radius: var(--r-capsule); }
html.r13 body #lv-map .info .pl-pnote { color: var(--fg-2); }

/* compare bars: one neutral family; the Mirai bar is the warm white (colour never means project) */
html.r13 body #lv-map .info.mm .cb:not(.me) .cb-t u { background: var(--ramp-3); }
html.r13 body #lv-map .info.mm .cb:not(.me) .cb-b { background: var(--lg-field-hi); color: var(--fg); }
html.r13 body #lv-map .info.mm .cb.me .cb-t u { background: var(--emph); box-shadow: none; }
html.r13 body #lv-map .info.mm .cb-s { background: var(--emph); color: var(--primary-fg); box-shadow: none; }
html.r13 body #lv-map .info.mm .cb-t { background: var(--lg-field); }

/* more contrast: the hairlines between rows are drawn stronger */
@media (prefers-contrast: more) { html.r13 body #lv-map .info { --hairline: rgba(255, 255, 255, .3); } }

/* STAB: on the TV (x1.7) the card's content grows with the scale, the screen does not: a shorter photo and a taller allowance (it still ends above the orb) so it is not cropped */
html.r13.tv body #lv-map .info { --ui-scale: 1.4; --card-photo-h: calc(64px * var(--ui-scale)); }   /* PERF/TV: the card's own scale (type, rows, padding via the tokens re-declared for it in tokens.css) is 1.4, not the page's 1.7, so the tallest card (Market) fits the room above the orb without a scroll */
@media (orientation: landscape) {
  html.r13.tv body:is([data-level="century"], [data-level="city"], [data-level="area"], [data-level="market"]) #lv-map .info { max-height: calc(100dvh - var(--title-top) - var(--orb-zone) * 1.45); }
}

/* Choose cards (3 November): the three round buttons (shortlist, compare, where) sat on the plan's top-right corner and covered the drawing. They now sit in the card's
   bottom row, on the right, level with the status line (the row is as tall as the buttons), so the plan has its whole frame and every margin around the buttons is equal. */
html.r13 body #lv-choose .cx-act { top: auto; bottom: calc(.5rem * var(--ui-scale, 1)); right: calc(.6rem * var(--ui-scale, 1)); }
html.r13 body #lv-choose .cx-tx { padding-bottom: calc(.5rem * var(--ui-scale, 1)); }
html.r13 body #lv-choose .cx-tx > .cx-st { display: flex; align-items: center; min-height: calc(44px * var(--ui-scale, 1)); margin-bottom: 0; }

/* Choose, the building beside the title ("379 homes fit", 3 November): the five towers sat in columns as wide as their own content (34, 43, 42, 34, 46px) with a fixed gap, so the bars were 9 to 14px apart
   and the names, centred under bars of different widths, looked unevenly set. The towers now share the row in five equal columns: bars and names are centred in their column, so the names
   are evenly spaced (every centre the same distance from the next) and "Equinox" fits its own column. */
html.r13 body #lv-choose .cb-tws { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; width: 100%; min-width: calc(252px * var(--ui-scale, 1)); align-items: end; }   /* 50px columns: "Beacon" and "Cypher" are 8px apart (they were 3 to 4px in 46px columns); the note beside it keeps 23px clear */
html.r13 body #lv-choose .cb-tw { min-width: 0; justify-items: center; }

/* ---------- Site updates: the month timeline (3 November) ---------- */
/* The month list had no line (the Calm pass made the rail transparent), dots that floated at different heights against their month, and 16px of side padding that did not match the page's margin.
   The rows now hang on one hairline: every dot sits on it, level with its month; each row has the same padding (14px / 16px, text 44px in), the same 4px between rows, and the list starts on the
   page margin. The line runs inside the list (it scrolls with it), from the first dot down, fading out. The chosen row's card sits over the line, its dot a solid white. */
html.r13 body #media-lib .ml-tl { padding: 8px 12px 48px calc(var(--edge-1) + var(--safe-l)); }
html.r13 body #media-lib .ml-list { position: relative; display: grid; gap: 4px; }
html.r13 body #media-lib .ml-rail { left: 16.5px; right: auto; top: 22px; bottom: 0; width: 1px; background: linear-gradient(rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .34) 70%, rgba(255, 255, 255, 0) 100%); }
html.r13 body #media-lib .ml-m { margin: 0; padding: 14px 16px 14px 44px; border-radius: 16px; min-height: 0; }
html.r13 body #media-lib .ml-dot { left: 14px; top: 19px; width: 6px; height: 6px; margin: 0; border: 0; background: rgba(245, 245, 247, .55); box-shadow: 0 0 0 4px var(--mf-ground-dark, #0f0f12); }
html.r13 body #media-lib .ml-m.on .ml-dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }
html.r13 body #media-lib .ml-mo { line-height: 16px; }
html.r13 body #media-lib .ml-mt { margin-top: 4px; }
html.r13 body #media-lib .ml-mc { margin-top: 6px; }

/* Choose (3 November), two fixes from the user's screenshot:
   1. The Compare button turned black with no label once two homes were ticked. close2.css fills it with an ink sweep (.cx-fill) and sets the label to the on-ink white, but the Calm pass (mf-close.css)
      made the "ready" button a light field with ink words; the fill was left, so the words were ink on ink. The button is now the light field it was meant to be: the fill is clear, the label stays
      ink (readable at 4.5:1+), and "ready" shows as the stronger field.
   2. The tower names under the building chart ("Astra ... Equinox") ended 4px below the top of the card grid, so scrolled cards ran under the names. The grid starts 16px lower: 12px clear of the names. */
html.r13 body #lv-choose .cx-tacts [data-compare] .cx-fill:not(#zz-) { background: transparent; }
html.r13 body #lv-choose .cx-tacts [data-compare].cx-ready:not(#zz-) { background-color: var(--lg-field-hi); color: var(--lg-fg); }
html.r13 body #lv-choose .cx-grid { margin-top: 16px; }

/* the tray's shortlist ("Shortlist (2)", 3 November) opens the shortlist sheet: it is a button now (js/modes.js): pointer cursor, a soft field on hover and press, a visible focus ring */
html.r13 body #lv-choose .cx-short { cursor: pointer; border-radius: 999px; margin: -6px; padding: 6px 14px 6px 6px; transition: background-color 160ms var(--mc-ease-fade, ease); }
html.r13 body #lv-choose .cx-short:active { background-color: rgba(22, 22, 27, .06); }
@media (hover: hover) { html.r13 body #lv-choose .cx-short:hover { background-color: rgba(22, 22, 27, .04); } }
html.r13 body #lv-choose .cx-short:focus-visible { outline: 2px solid rgba(22, 22, 27, .6); outline-offset: 2px; }

/* Choose: "Clear filters" (3 November) sits in the filter row, right after the Size / Budget / Tower menus, and shows whenever a filter is set (it used to appear only when nothing matched, at the far right under the building chart) */
html.r13 body #lv-choose .cx-menu-clear { display: inline-flex; align-items: center; min-height: var(--q-ctl, 44px); margin: 0; padding: 0 var(--s4, 16px); border: 0; border-radius: var(--r-capsule, 999px); background: transparent; color: var(--lg-fg2, rgba(22, 22, 27, .72)); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(22, 22, 27, .3); transition: background-color 160ms var(--mc-ease-fade, ease), color 160ms var(--mc-ease-fade, ease); }
html.r13 body #lv-choose .cx-menu-clear:active { background-color: rgba(22, 22, 27, .06); }
@media (hover: hover) { html.r13 body #lv-choose .cx-menu-clear:hover { color: var(--lg-fg, #16161b); } }
html.r13 body #lv-choose .cx-menu-clear:focus-visible { outline: 2px solid rgba(22, 22, 27, .6); outline-offset: 2px; }

/* Choose: the Compare button in the tray has three states (3 November): nothing ticked, it is a quiet grey button that still answers a press ("Please add a property to compare");
   one or more ticked, it turns into an ink-outlined capsule with full-ink words so it reads as live; two or more, the outline gets a soft ink fill (ready). Price & plan stays the one solid ink button. */
html.r13 body #lv-choose .cx-tacts [data-compare][aria-disabled="true"]:not(.cx-has):not(#zz-):not(#zz-) { color: rgba(22, 22, 27, .55); }
html.r13 body #lv-choose .cx-tacts [data-compare].cx-has:not(#zz-):not(#zz-) { background-color: #fff; color: #16161b; box-shadow: inset 0 0 0 1.5px #16161b; }
html.r13 body #lv-choose .cx-tacts [data-compare].cx-has.cx-ready:not(#zz-):not(#zz-) { background-color: rgba(22, 22, 27, .07); }
html.r13 body #lv-choose .cx-tacts [data-compare].cx-has svg:not(#zz-) { color: #16161b; }

/* Shortlist sheet (3 November): with a few homes the cards sat in five 219px tracks at the left and the rest of the sheet was empty. The cards now take the width: up to three across, each at most 34rem,
   centred as a group, so two homes fill the sheet and one home sits in the middle at a good size. Their plans grow with them. */
html.r13 body #sheet.sl .sm-cards { grid-template-columns: repeat(auto-fit, minmax(20rem, 34rem)); justify-content: center; gap: 24px; }
html.r13 body #sheet.sl .sl-home .sm-pl { aspect-ratio: 3 / 2; height: auto; }
html.r13 body #sheet.sl .sl-home .sm-pl img { width: 100%; height: 100%; object-fit: contain; }
html.r13 body #sheet.sl:not(.rel) .sl-sheet { display: flex; flex-direction: column; min-height: 100%; }
html.r13 body #sheet.sl:not(.rel) .sl-sheet > .sm-cards { flex: 1 1 auto; align-content: center; padding-bottom: 3rem; }   /* the group of cards sits in the middle of the room under the title, not at the top of an empty sheet */

/* Choose: the tray and the orb on one line (3 November). The orb is centred in its 96px corner; the tray sat on the gutter, so its centre was 19px lower than the orb's. In landscape the tray's bottom is lifted by half the difference, so both centres share a line. */
@media (orientation: landscape) {
  html.r13 body #lv-choose .cx-tray:not(#zz-):not(#zz-) { bottom: calc(var(--edge-1) + var(--safe-b) + (var(--orb-zone) - 58px * var(--ui-scale, 1)) / 2); }
}

/* ---------- Price page: "Compare prices" sheet (3 November, js/sales.js compare()) ---------- */
/* One column per shortlisted home, one row per part of the cost. Numbers are right-aligned and tabular so they read down a column; the lowest figure in a row is bold with a small "Lowest" tag;
   the all-inclusive row is the largest. Rows are ruled, not boxed. */
html.r13 body #sheet.pxc .pxc-sheet { max-width: 64rem; margin: 0 auto; }
html.r13 body #sheet.pxc .pxc-hide { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: rgba(22, 22, 27, .72); font: 400 max(.95rem, 15px)/1.4 var(--sans); }
html.r13 body #sheet.pxc .pxc-hide svg { width: 20px; height: 20px; flex: none; }
html.r13 body #sheet.pxc .pxc-hide .cx-btn { margin-left: auto; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(22, 22, 27, .08); color: #16161b; }
html.r13 body #sheet.pxc .pxc-r { display: grid; grid-template-columns: minmax(10rem, 1.15fr) repeat(var(--n), minmax(0, 1fr)); column-gap: 20px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(22, 22, 27, .09); }
html.r13 body #sheet.pxc .pxc-h { border-top: 0; align-items: end; padding-top: 4px; }
html.r13 body #sheet.pxc .pxc-h .pxc-c b { display: block; font: 600 max(1.05rem, 17px)/1.25 var(--sans); }
html.r13 body #sheet.pxc .pxc-h .pxc-c small { display: block; margin-top: 2px; color: rgba(22, 22, 27, .64); font: 400 max(.8rem, 13px)/1.35 var(--sans); }
html.r13 body #sheet.pxc .pxc-l { color: rgba(22, 22, 27, .72); font: 400 max(.95rem, 15px)/1.3 var(--sans); }
html.r13 body #sheet.pxc .pxc-c { text-align: right; min-width: 0; }
html.r13 body #sheet.pxc .pxc-r:not(.pxc-h) .pxc-c b { font: 500 max(1rem, 16px)/1.3 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
html.r13 body #sheet.pxc .pxc-c.best b { font-weight: 700; }
html.r13 body #sheet.pxc .pxc-c em { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(22, 22, 27, .08); font: 600 12px/1.3 var(--sans); font-style: normal; color: #16161b; vertical-align: 2px; }
html.r13 body #sheet.pxc .pxc-c small { display: block; margin-top: 2px; color: rgba(22, 22, 27, .64); font: 400 12px/1.3 var(--sans); }
html.r13 body #sheet.pxc .pxc-r.tot { padding: 20px 0; border-top: 1.5px solid #16161b; }
html.r13 body #sheet.pxc .pxc-r.tot .pxc-l { color: #16161b; font-weight: 600; }
html.r13 body #sheet.pxc .pxc-r.tot .pxc-c b { font-size: max(1.4rem, 22px); }
html.r13 body #sheet.pxc .pxc-note { margin: 18px 0 0; color: rgba(22, 22, 27, .64); font: 400 12px/1.4 var(--sans); }
html.r13 body #sheet.pxc .hid { font-style: normal; color: rgba(22, 22, 27, .4); }
/* the page's own button, beside Show prices and Offers: nothing to add (it is a .px-btn) */
/* the floor plan of each home at the head of its column (3 November) */
html.r13 body #sheet.pxc .pxc-fp { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; max-height: 190px; margin: 0 0 14px; border-radius: 16px; background: rgba(22, 22, 27, .05); overflow: hidden; }
html.r13 body #sheet.pxc .pxc-fp img { width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; mix-blend-mode: multiply; }
