/* New-launch guide template
   Layout: one long mobile-first page; sticky header + section pills; each module is a full-width band
   inside a 1180px column. Deliberately single dark look ("garden at dusk"), set per project via tokens. */
:root {
  --bg: #0e1612;
  --bg-2: #111b16;
  --surface: #15211b;
  --surface-2: #1c2b23;
  --surface-3: #243529;
  --line: #2b3d33;
  --line-2: #3a4f43;
  --text: #ebf0ea;
  --muted: #a6b5ab;
  --faint: #8b9d91;            /* 5:1 or better on every surface */
  --accent: #cfae6b;          /* brass: active states, size bars */
  --accent-ink: #1a1408;
  --sun: #f07a3a;             /* brand orange: sun, primary call to action */
  --sun-ink: #1d0d03;
  --good: #69c08b;
  --warn: #e0b04f;
  --bad: #e07a6a;
  --wa: #25d366;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 28px);
  --col: 1180px;
  --header-h: 56px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 58px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--col); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- who publishes the guide: the first line of every page ---------- */
.indie { margin: 0; padding: 8px var(--gutter); background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--text); font-size: .84rem; line-height: 1.45; text-align: center; text-wrap: balance; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--text); }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hdr-visit { white-space: nowrap; }
@media (max-width: 560px) { #hdr-visit { display: none; } }
.bar .spacer { flex: 1; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; font-size: .88rem;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: .7rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
.badge[data-n="0"] { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 500; font-size: .95rem; text-decoration: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { background: color-mix(in srgb, var(--sun) 88%, white); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-wa { background: var(--wa); color: #052412; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: .85rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- section pills ---------- */
.pills-nav {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 39;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.pills { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: .86rem; text-decoration: none; white-space: nowrap;
}
.pill:hover { color: var(--text); }
.pill[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill .badge { height: 16px; min-width: 16px; font-size: .66rem; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,22,18,.30) 0%, rgba(14,22,18,.50) 30%, rgba(14,22,18,.86) 58%, rgba(14,22,18,.97) 80%, var(--bg) 100%);
}
.hero-inner { padding-top: clamp(170px, 36vw, 340px); padding-bottom: 28px; }
.hero .eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.eyebrow { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.hero h1 {
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1.02;
  margin: 10px 0 12px; letter-spacing: .005em; text-wrap: balance;
}
.hero .tagline { max-width: 38ch; color: #e6ede6; text-shadow: 0 1px 12px rgba(0,0,0,.55); font-size: clamp(1rem, 2.2vw, 1.18rem); font-weight: 300; margin: 0 0 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat { background: var(--bg-2); padding: 14px 16px; min-width: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.1; color: var(--text); }
.stat span { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: 4px; }
.source-note { color: var(--faint); font-size: .76rem; margin-top: 10px; }

/* ---------- sections ---------- */
.band { padding-block: clamp(44px, 7vw, 76px); border-top: 1px solid var(--line); }
.band:nth-of-type(even) { background: var(--bg-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.sec-head > div { min-width: 0; max-width: 62ch; }
.sec-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 4.2vw, 2.6rem); line-height: 1.1; margin: 6px 0 8px; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .84rem; }
.tiny { font-size: .74rem; }

/* chips / segmented controls */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; font-size: .85rem; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.chip .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.chip .sun-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 13px; cursor: pointer; font-size: .85rem; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.legend3d { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend3d span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend3d i { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* ---------- units grid ---------- */
.unit-controls { display: grid; gap: 14px; margin-bottom: 16px; }
.unit-controls > *, .sim > *, .fac > *, .loc > *, .calc > *, .visit > *, .cmp > *, .why > *, .sl-grid > *, .plans-grid > *, .tiles > * { min-width: 0; }
.block-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.block-tabs::-webkit-scrollbar { display: none; }
.block-tab {
  flex: none; text-align: left; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  border-radius: 12px; padding: 8px 14px; cursor: pointer; min-width: 104px;
}
.block-tab b { display: block; color: var(--text); font-weight: 500; font-size: .98rem; }
.block-tab span { font-size: .74rem; }
.block-tab[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.grid-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; margin: 4px 0 10px; }
.grid-scroll { overflow: auto; max-height: min(78vh, 900px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overscroll-behavior: contain; }
table.elev { border-collapse: separate; border-spacing: 3px; font-size: .72rem; min-width: max-content; }
table.elev th { position: sticky; background: var(--surface); color: var(--muted); font-weight: 500; z-index: 2; }
table.elev thead th { top: 0; padding: 6px 2px 4px; text-align: center; z-index: 3; }
table.elev thead th .stk { display: block; color: var(--text); font-size: .8rem; }
table.elev thead th .fc { display: block; font-size: .64rem; letter-spacing: .06em; }
table.elev thead th .fc i { font-style: normal; color: var(--sun); }
table.elev tbody th { left: 0; padding: 0 6px; text-align: right; font-size: .74rem; min-width: 34px; }
table.elev thead th:first-child { left: 0; z-index: 4; }
.cell {
  width: 64px; height: 38px; border: 0; border-radius: 7px; cursor: pointer; padding: 3px 4px; text-align: left;
  color: #1b221e; line-height: 1.15; position: relative; display: block;
}
.cell .t { display: block; font-weight: 600; font-size: .7rem; white-space: nowrap; }
.cell .z { display: block; font-size: .66rem; opacity: .82; }
.cell:hover { outline: 2px solid var(--text); outline-offset: 0; }
.cell.dim { opacity: .16; }
.cell.sel { outline: 2px solid var(--sun); outline-offset: 1px; }
.cell .heart { position: absolute; top: 3px; right: 4px; width: 9px; height: 9px; color: #b3261e; }
.cell-na { height: 38px; border-radius: 7px; border: 1px dashed var(--line-2); color: var(--faint); font-size: .62rem; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2px; }
tr.terrace td { padding: 0; }
.terrace-row { height: 26px; border-radius: 7px; background: repeating-linear-gradient(135deg, #1f3327 0 8px, #243b2e 8px 16px); color: var(--good); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- sheet (unit / plan detail) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(4, 8, 6, .62); z-index: 60; opacity: 0; transition: opacity .2s ease; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto;
  background: var(--bg-2); border-top: 1px solid var(--line-2); border-radius: 20px 20px 0 0;
  padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(102%); transition: transform .26s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow);
  overscroll-behavior: contain;
}
.sheet.open { transform: none; }
@media (min-width: 900px) {
  .sheet { left: auto; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--line-2); transform: translateX(102%); padding-top: 18px; }
}
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 2px auto 10px; }
@media (min-width: 900px) { .sheet .grab { display: none; } }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.sheet-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin: 2px 0 2px; line-height: 1.1; }
.sheet .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .78rem; border: 1px solid var(--line); }
.tag.sun { color: var(--sun); border-color: color-mix(in srgb, var(--sun) 40%, var(--line)); }
.tag.cat i { width: 10px; height: 10px; border-radius: 3px; }
.plan-frame { position: relative; background: #f7f6f2; border-radius: 12px; padding: 10px; display: flex; align-items: center; justify-content: center; min-height: 220px; cursor: zoom-in; }
.plan-frame img { max-height: 58vh; width: auto; object-fit: contain; }
.plan-note { font-size: .78rem; color: var(--muted); margin: 8px 2px 0; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 14px; margin: 16px 0; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.sheet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.sheet-actions .wide { grid-column: 1 / -1; }

/* sun timeline */
.suntl { margin-top: 12px; }
.suntl .row-t { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: center; margin: 5px 0; }
.suntl .track { position: relative; height: 12px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.suntl .seg-sun { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #f7a24a, var(--sun)); border-radius: 99px; }
.suntl .axis { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
.suntl .ticks { display: flex; justify-content: space-between; font-size: .66rem; color: var(--faint); }

/* ---------- 3D ---------- */
.sim { display: grid; gap: 14px; }
@media (min-width: 980px) { .sim { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1410; border: 1px solid var(--line); aspect-ratio: 1 / 1.12; max-width: 100%; touch-action: none; }
@media (max-width: 719px) { .stage .info { font-size: .8125rem; max-width: 78%; padding: 8px 11px; } .lbl3d { font-size: .72rem; padding: 3px 8px; } }
@media (min-width: 720px) { .stage { aspect-ratio: 16 / 10; } }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage .overlay { position: absolute; z-index: 3; left: 10px; top: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.stage .info {
  pointer-events: auto; max-width: min(360px, 78%); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; font-size: .8rem; line-height: 1.4;
}
.stage .info b { font-weight: 600; }
.stage .info .st { color: var(--sun); font-weight: 500; }
.stage .compass { width: 46px; height: 46px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid var(--line-2); display: grid; place-items: center; }
.stage .compass svg { width: 40px; height: 40px; transition: transform .1s linear; }
.stage .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 20px; }
.stage .hint { position: absolute; z-index: 3; left: 10px; bottom: 10px; font-size: .72rem; color: var(--muted); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 4px 9px; border-radius: 99px; pointer-events: none; }
.lbl3d { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: none; white-space: nowrap; font-size: .7rem; padding: 2px 7px; border-radius: 99px; background: rgba(9, 15, 12, .72); color: #e8efe9; border: 1px solid rgba(255,255,255,.14); }
.lbl3d.blk { font-weight: 600; letter-spacing: .03em; }
.lbl3d.place { background: rgba(28, 58, 36, .78); color: #cfe9d4; }
.lbl3d.mrt { background: rgba(120, 72, 22, .85); color: #fff1e0; }
.lbl3d.road { background: rgba(40, 40, 40, .75); }
.panel { padding: 14px; display: grid; gap: 14px; }
.panel .ctl { display: grid; gap: 7px; }
.sim-pick { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.panel .ctl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.panel .ctl-head output { font-weight: 500; }
input[type="range"] { width: 100%; accent-color: var(--sun); height: 28px; }
select, input[type="text"], input[type="tel"], input[type="number"], input[type="date"], textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text);
}
textarea { min-height: 84px; resize: vertical; }
input[type="date"], select { min-width: 0; max-width: 100%; }
.visit-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 420px) { .visit-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.status-line { font-size: .88rem; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.status-line.sunny { border-color: color-mix(in srgb, var(--sun) 50%, var(--line)); }

/* ---------- floor plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
@media (min-width: 720px) { .plans-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; } }
.plan-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; cursor: pointer; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); color: var(--text); }
.plan-card:hover { border-color: var(--line-2); }
.plan-card .thumb { background: #f7f6f2; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 8px; }
.plan-card .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.plan-card .thumb .noplan { color: #5b6259; font-size: .875rem; text-align: center; padding: 0 12px; }   /* a type without a drawing */
.plan-card .body { padding: 10px 12px 12px; display: grid; gap: 3px; font-size: .92rem; }
.plan-card .body b { font-weight: 500; }
.plan-card .body .sz { font-family: var(--font-display); font-size: 1.25rem; }

/* ---------- facilities ---------- */
.fac { display: grid; gap: 16px; }
@media (min-width: 980px) { .fac { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.map-wrap { position: relative; min-width: 0; }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #1b2a20; }
.map-inner { position: relative; }
.map-zoom, .map-cap, .fl-s { display: none; }
.map-box img { width: 100%; height: auto; }
.mk {
  position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff;
  background: var(--sun); color: #1d0d03; font-size: .6rem; font-weight: 700; display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .15s ease, opacity .2s ease;
}
.mk.off { opacity: .15; }
.mk.hot { transform: translate(-50%, -50%) scale(1.45); z-index: 3; background: var(--accent); }
.fac-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 560px; overflow: auto; }
.fac-list li button { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; cursor: pointer; color: var(--text); }
.fac-list li button:hover, .fac-list li button[aria-pressed="true"] { border-color: var(--accent); }
.fac-list .no { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: var(--accent); }
.fac-list .nm { font-weight: 500; }
.fac-list .dt { display: block; color: var(--muted); font-size: .8rem; }
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-top: 18px; scrollbar-width: thin; }
.gallery figure { flex: none; width: min(78vw, 420px); margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; cursor: zoom-in; background: var(--surface); }
.gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.gallery figcaption b { color: var(--text); font-weight: 500; }

/* ---------- location ---------- */
.loc { display: grid; gap: 16px; }
@media (min-width: 900px) { .loc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.loc .card { padding: 16px; min-width: 0; }
.loc h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin: 0 0 10px; }
.mrt-hero { display: flex; gap: 14px; align-items: center; }
.mrt-hero .ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #9d5a1f; display: grid; place-items: center; flex: none; font-weight: 600; color: #f0b27a; font-size: .8rem; text-align: center; line-height: 1.05; }
.times { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 7px; }
.times li { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: .88rem; }
.times .bar { grid-column: 1 / -1; height: 4px; border-radius: 9px; background: var(--surface-3); overflow: hidden; margin-top: -3px; }
.times .bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.times .m { text-align: right; color: var(--muted); }
.amen { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.amen li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; background: var(--surface); padding: 10px 12px; }
.amen li b { font-weight: 500; }
.amen li span { color: var(--muted); font-size: .8rem; display: block; }
.amen li .d { text-align: right; color: var(--accent); font-size: .85rem; white-space: nowrap; }
.maps { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.maps figure { flex: none; width: min(84vw, 520px); margin: 0; scroll-snap-align: start; }
.maps img { border-radius: 12px; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; background: var(--surface); cursor: zoom-in; }
.maps figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* ---------- compare ---------- */
.cmp { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cmp .card { padding: 12px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.cmp .big { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.sizebar { height: 6px; background: var(--surface-3); border-radius: 9px; overflow: hidden; }
.sizebar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.cmp .plan-frame { min-height: 180px; }
.cmp .plan-frame img { max-height: 280px; }
.cmp dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: .85rem; }
.cmp dt { color: var(--muted); }
.cmp dd { margin: 0; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; color: var(--muted); text-align: center; }

/* ---------- shortlist ---------- */
.sl-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 14px; }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.sl-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.sl-card .thumb { background: #f7f6f2; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 8px; }
.sl-card .thumb img { max-height: 100%; width: auto; }
.sl-card .body { padding: 12px; display: grid; gap: 4px; }
.sl-card .body .u { font-family: var(--font-display); font-size: 1.35rem; }
.sl-card .acts { display: flex; gap: 8px; padding: 0 12px 12px; }
.confirm { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; }

/* ---------- calculator ---------- */
.calc { display: grid; gap: 16px; }
@media (min-width: 980px) { .calc { grid-template-columns: 360px minmax(0, 1fr); align-items: start; } }
.calc form { padding: 16px; display: grid; gap: 14px; }
.calc .field { display: grid; gap: 6px; }
.calc .field > span { font-size: .82rem; color: var(--muted); }
.calc .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.tile .k { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tile .v { font-family: var(--font-display); font-size: 1.35rem; margin-top: 4px; line-height: 1.15; overflow-wrap: anywhere; }
.tile .s { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.tile.hl { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
table.t th, table.t td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { color: var(--muted); font-weight: 500; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; background: var(--surface); }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.done td { color: var(--muted); }
table.t tfoot td { font-weight: 600; }
.pill-note { display: inline-block; font-size: .68rem; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); margin-left: 6px; white-space: nowrap; }
.notes { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.notes li { margin: 3px 0; }

/* ---------- why ---------- */
.why { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.why .card { padding: 16px; }
.why .card b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; margin-bottom: 6px; }
.why .card p { margin: 0; color: var(--muted); font-size: .9rem; }
.sub-h { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 30px 0 4px; }

/* ---------- visit ---------- */
.visit { display: grid; gap: 16px; }
@media (min-width: 900px) { .visit { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.visit form { padding: 16px; display: grid; gap: 12px; }
.agent-card { padding: 16px; display: grid; gap: 10px; }
.agent-top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.ph { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); padding: 0 4px; border-radius: 4px; }
.msg-preview { white-space: pre-wrap; font-size: .82rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--muted); max-height: 180px; overflow: auto; }

/* ---------- footer ---------- */
footer.site-footer { border-top: 1px solid var(--line); padding-block: 34px calc(90px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .8rem; }
footer .cols { display: grid; gap: 18px; }
@media (min-width: 900px) { footer .cols { grid-template-columns: 1fr 2fr; } }
footer p { margin: 0 0 8px; max-width: 90ch; }

/* ---------- bottom action bar (phones) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; justify-content: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);   /* solid bar: page text must not show through the buttons */
}
.dock .btn { flex: 1; max-width: 260px; }
@media (min-width: 900px) { .dock { display: none; } footer.site-footer { padding-bottom: 34px; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5, 8, 6, .94); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; color: var(--text); }
.lb-top .cap { font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-view { flex: 1; overflow: hidden; position: relative; touch-action: none; cursor: grab; }
.lb-view img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.lb-view.light { background: #f7f6f2; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 99px; font-size: .88rem; opacity: 0; transition: all .25s ease; z-index: 90; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* view analysis */
.viewbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 8px 0 6px; background: var(--surface-3); }
.viewbar i { display: block; height: 100%; }
.viewlegend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .74rem; color: var(--muted); }
.viewlegend span { display: inline-flex; align-items: center; gap: 5px; }
.viewlegend b { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.viewlist { margin: 10px 0 4px; padding-left: 18px; font-size: .88rem; display: grid; gap: 5px; }
.viewlist b { font-weight: 500; }
.tag.view-pool { color: #7fd0f0; border-color: rgba(63,179,227,.45); }
.tag.view-park { color: #9fd08c; border-color: rgba(113,179,94,.45); }
.tag.view-open { color: #d6e6f0; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* 3D info card: compact on phones (time, date and view are shown in the panel below) */
.stage .info .i-less { display: none; }
@media (max-width: 719px) { .stage .info .i-more { display: none; } .stage .info .i-less { display: inline; } }
.stage .hint { transition: opacity .6s ease; }
.stage .hint.used { opacity: 0; }

/* partial drawing (PES strip etc.) shown under the full layout */
.plan-frame-part { margin-top: 8px; }
.plan-frame-part img { max-height: 300px; width: auto; max-width: 100%; margin: 0 auto; display: block; }

/* ---------- listed prices (agents' links on showflat.app; see "listed prices" in js/app.js) ---------- */
.cell .p { display: block; font-size: .66rem; font-weight: 600; white-space: nowrap; }
table.elev.has-p .cell, table.elev.has-p .cell-na { height: 50px; }
.cell.gone { opacity: .42; filter: saturate(.35); }
.cell.dim { opacity: .16; }                       /* a filter still wins over "not on the list" */
.legend i.gone-key { background: var(--muted); opacity: .42; }
.price-note { margin: 10px 0 0; font-size: .78rem; color: var(--muted); max-width: 80ch; }
.price-box { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.price-box .k { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-box .v { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.15; margin-top: 2px; }
.price-box .s { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.price-box.gone { border-color: var(--line-2); background: var(--surface); }
.price-box.gone .v { font-size: 1.25rem; }
.listed { color: var(--accent); }
.listed.none { color: var(--muted); }
.sl-card .body .listed { font-family: var(--font-display); font-size: 1.2rem; }
.sl-card .body .listed.none { font-family: var(--font-body); font-size: .84rem; }
.calc .field > span.for { color: var(--accent); }

/* ---------- phones: larger type, stronger contrast, bigger touch targets ----------
   Most visitors open the guide from a chat link on a phone. Below 720px nothing is set smaller than 12px,
   reading text is 14-16px, every control is at least 40px tall, and wide tables become stacked rows. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, select, input, label, summary { touch-action: manipulation; }
@supports (height: 100dvh) {
  .sheet { max-height: 92dvh; }
  .grid-scroll { max-height: min(78dvh, 900px); }
  .plan-frame img { max-height: 58dvh; }
}
/* floor plans are drawings with small print: say that they open full screen */
@media (hover: none) {
  .plan-frame[role="button"]::after {
    content: "Tap to enlarge"; position: absolute; right: 10px; bottom: 10px; pointer-events: none;
    font: 500 .75rem/1 var(--font-body); color: #f3f6f2; background: rgba(14, 22, 18, .82); padding: 7px 11px; border-radius: 99px;
  }
}
@media (max-width: 719px) {
  html { scroll-padding-top: calc(var(--header-h) + 66px + env(safe-area-inset-top, 0px)); }
  body { line-height: 1.6; }
  .small { font-size: .9rem; }
  .tiny { font-size: .8125rem; }
  .label { font-size: .75rem; letter-spacing: .12em; color: var(--muted); }
  .eyebrow { font-size: .75rem; letter-spacing: .2em; }
  .brand small { font-size: .72rem; letter-spacing: .12em; }
  .hero .tagline { font-weight: 400; font-size: 1.06rem; }
  .stat span { font-size: .875rem; }
  .source-note { font-size: .8125rem; color: var(--muted); }
  footer.site-footer { font-size: .875rem; }

  /* controls: 40px or taller */
  .icon-btn { height: 44px; min-width: 44px; }
  .badge { min-width: 20px; height: 20px; font-size: .75rem; }
  .pill { height: 40px; padding: 0 16px; font-size: .9375rem; }
  .pill .badge { height: 18px; min-width: 18px; font-size: .72rem; }
  .chip { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
  .chip .dot, .chip .sun-dot { width: 12px; height: 12px; }
  .seg button { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
  .btn { min-height: 46px; font-size: 1rem; }
  .btn-sm { min-height: 40px; padding: 0 15px; font-size: .9rem; }
  .check { font-size: .9375rem; min-height: 40px; }
  .check input { width: 22px; height: 22px; }
  .linkish { padding: 8px 0; }
  select, input[type="text"], input[type="tel"], input[type="number"], input[type="date"], textarea { min-height: 46px; font-size: 1rem; }
  input[type="range"] { height: 38px; }

  /* units: filters in single swipeable rows so the grid comes sooner; larger cells */
  .unit-controls { gap: 12px; }
  .unit-controls .chips, .block-tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .unit-controls .chips::-webkit-scrollbar { display: none; }
  .block-tab { padding: 10px 14px; min-width: 116px; }
  .block-tab b { font-size: 1.02rem; }
  .block-tab span { font-size: .8125rem; }
  #grid-hint { color: var(--muted); }
  table.elev { font-size: .8125rem; border-spacing: 3px; width: 100%; }
  table.elev thead th { padding: 8px 2px 5px; }
  table.elev thead th:first-child { font-size: .72rem; padding-inline: 0; }
  .fl-l { display: none; }
  .fl-s { display: inline; }
  table.elev thead th .stk { font-size: .9rem; }
  table.elev thead th .fc { font-size: .75rem; }
  table.elev tbody th { font-size: .875rem; min-width: 26px; padding: 0 4px 0 2px; }
  .cell { width: 100%; min-width: 68px; height: 48px; padding: 5px 6px; border-radius: 8px; line-height: 1.2; }
  .cell .t { font-size: .875rem; }
  .cell .z { font-size: .8125rem; opacity: .92; white-space: nowrap; }
  .cell .heart { width: 11px; height: 11px; }
  .cell-na { height: 48px; min-width: 68px; font-size: .8125rem; color: var(--muted); border-radius: 8px; }
  .terrace-row { height: 30px; font-size: .75rem; }
  .legend { gap: 8px 16px; }
  .legend span { font-size: .875rem; }
  .legend i { width: 14px; height: 14px; }

  /* unit and layout sheets */
  .tag { height: 30px; padding: 0 11px; font-size: .8125rem; }
  .plan-note { font-size: .875rem; }
  .kv { font-size: .9375rem; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 10px 14px; }
  .viewbar { height: 14px; }
  .viewlegend { font-size: .8125rem; gap: 6px 14px; }
  .viewlegend b { width: 11px; height: 11px; }
  .viewlist { font-size: .9375rem; gap: 7px; }
  .suntl .row-t, .suntl .axis { grid-template-columns: 64px minmax(0, 1fr); }
  .suntl .track { height: 14px; }
  .suntl .ticks { font-size: .75rem; color: var(--muted); }
  .sheet-actions .btn { min-height: 48px; }

  /* 3D */
  .stage .info { font-size: .8125rem; }
  .lbl3d { font-size: .75rem; padding: 3px 8px; }
  .lbl3d.blk { font-size: .8125rem; min-width: 30px; padding-inline: 7px; text-align: center; }
  .lbl3d.blk .pre { display: none; }   /* block number only: the full names cover each other on a small screen */
  .stage .hint { font-size: .78rem; }
  .status-line { font-size: .9375rem; }
  .panel { gap: 16px; }

  /* facilities: the plan opens to a size where the numbers can be read, and moves under the finger */
  .map-box { overflow: auto; overscroll-behavior: contain; max-height: 68vh; -webkit-overflow-scrolling: touch; }
  .map-box.zoomed .map-inner { width: var(--fac-zoom, 230%); }   /* facilities.siteplan.zoomPct sets --fac-zoom */
  .mk { width: 12px; height: 12px; font-size: 0; border-width: 1.5px; }
  .mk::before { content: ""; position: absolute; inset: -8px; }
  .mk.hot { width: 24px; height: 24px; font-size: .72rem; border-width: 2px; transform: translate(-50%, -50%); }
  .map-box.zoomed .mk { width: 26px; height: 26px; font-size: .72rem; border-width: 2px; }
  .map-box.zoomed .mk.hot { width: 32px; height: 32px; font-size: .8rem; }
  .map-zoom {
    display: inline-flex; align-items: center; gap: 6px; position: absolute; z-index: 4; right: 10px; top: 10px; min-height: 40px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 86%, transparent); color: var(--text);
    font-size: .9rem; font-weight: 500; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .map-cap:not([hidden]) {
    display: flex; align-items: center; gap: 10px; position: absolute; z-index: 4; left: 10px; right: 10px; bottom: 10px; padding: 9px 12px;
    border-radius: 12px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--text);
    font-size: .9375rem; line-height: 1.3; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;
  }
  .map-cap b { flex: none; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
  .fac-list { max-height: 62vh; }
  .fac-list li button { grid-template-columns: 32px minmax(0, 1fr); padding: 11px 12px; }
  .fac-list .no { width: 28px; height: 28px; font-size: .8rem; }
  .fac-list .dt { font-size: .875rem; }
  .gallery figcaption, .maps figcaption { font-size: .875rem; }

  /* location, compare, calculator, why */
  .times li { font-size: .9375rem; }
  .amen li span { font-size: .875rem; }
  .amen li .d { font-size: .9rem; }
  .mrt-hero .ring { font-size: .85rem; }
  .cmp dl { font-size: .9rem; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 10px; }
  .calc .field > span { font-size: .875rem; }
  .tile .k { font-size: .75rem; letter-spacing: .08em; color: var(--muted); }
  .tile .s { font-size: .8125rem; }
  .pill-note { font-size: .75rem; }
  .notes { font-size: .875rem; }
  .why .card p { font-size: .9375rem; }
  .msg-preview { font-size: .875rem; }
  table.t { font-size: .875rem; }
  table.t th { font-size: .75rem; }

  /* wide tables become one block per row: the first cell is the heading, the rest are labelled values */
  table.t.stack { min-width: 0; }
  table.t.stack thead { display: none; }
  table.t.stack tbody, table.t.stack tfoot { display: block; }
  table.t.stack tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  table.t.stack tfoot tr { border-bottom: 0; background: var(--surface); }
  table.t.stack td { display: block; padding: 0; border: 0; text-align: left; font-size: .9375rem; min-width: 0; overflow-wrap: anywhere; }
  table.t.stack td.r { text-align: left; }
  table.t.stack td:first-child { grid-column: 1 / -1; font-size: 1rem; font-weight: 500; }
  table.t.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 1px; }
  table.t.stack td:empty, table.t.stack td.nil { display: none; }   /* no value: drop the label too */
  table.t.stack td.wide { grid-column: 1 / -1; }

  /* listed prices */
  table.elev.has-p .cell, table.elev.has-p .cell-na { height: 66px; }
  .cell .p { font-size: .8125rem; }
  .price-note { font-size: .875rem; }
  .price-box .k { font-size: .75rem; }
  .price-box .s { font-size: .875rem; }
  .sl-card .body .listed.none { font-size: .875rem; }
  #sl-by { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }   /* five sort choices: swipe, do not wrap */
  #sl-by::-webkit-scrollbar { display: none; }
  #sl-by button { flex: none; }

  /* calculator choices: equal full-width buttons instead of a pill that wraps */
  #calc-form .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
  #calc-form .seg button { border-radius: 12px; padding-inline: 6px; min-height: 42px; }
  #calc-form #c-p1, #calc-form #c-p2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* sun & view: one picker per row so the stack name is never cut off */
  .sim-pick { grid-template-columns: minmax(0, 1fr); }
}
@supports (height: 100dvh) { @media (max-width: 719px) { .map-box { max-height: 68dvh; } .fac-list { max-height: 62dvh; } } }
