/* Town Hall Link Residences.
   A night-and-paper look: a deep navy cover carrying the 3D model of the district, bright paper for
   reading, one orange for the plot and for every action, rounded shapes, and one drawn icon family. */

/* Typefaces. The @font-face rules from Google Fonts' stylesheet, copied here so the page does not wait
   for a second stylesheet from another server. Files load from fonts.gstatic.com; the two latin files
   are preloaded in layout.mjs. If the fonts change, copy the new rules from the Google Fonts
   css2 stylesheet (latin and latin-ext blocks only) and update the preload links. */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap;
  src: url(https://fonts.gstatic.com/s/bricolagegrotesque/v9/3y9K6as8bTXq_nANBjzKo3IeZx8z6up5BeSl9D4dj_x9PpZBMlGGInHEVA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap;
  src: url(https://fonts.gstatic.com/s/bricolagegrotesque/v9/3y9K6as8bTXq_nANBjzKo3IeZx8z6up5BeSl9D4dj_x9PpZBMlGIInE.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Host Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(https://fonts.gstatic.com/s/hostgrotesk/v5/co3BmWBnlCJ3U42vbbfdwMjZqljm0U0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Host Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(https://fonts.gstatic.com/s/hostgrotesk/v5/co3BmWBnlCJ3U42vbbfdwMjZpFjm.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #111a2e;
  --night-2: #18233d;
  --night-3: #243254;
  --night-ink: #c5cee3;
  --paper: #ffffff;
  --paper-2: #f2f4f9;
  --line: #dce1eb;
  --field-line: #7a849b;
  --ink: #111a2e;
  --ink-2: #4c566e;

  --accent: #ff6b1a;
  --accent-hi: #ff8642;
  --accent-soft: #ffe9dc;
  --accent-ink: #7c2e00;
  --blue: #1f4fe0;
  --est: #ffe2bd;

  --use-homes: #ff6b1a;
  --use-offices: #1f4fe0;
  --use-shops: #111a2e;

  --map-ground: #eef1f6;
  --map-water: #c3ddf2;
  --map-park: #d5e7d2;
  --map-bld: #dde2ea;
  --map-bld-key: #c3cad8;
  --map-road: #ffffff;
  --map-site: #ff6b1a;
  --map-site-ink: #111a2e;
  --map-ink: #111a2e;
  --mrt-ns: #d42e12;
  --mrt-ew: #009645;
  --mrt-jr: #0099aa;
  --mrt-cr: #6f9a0c;

  --r-s: 10px;
  --r: 18px;
  --r-l: 28px;
  --pill: 999px;
  --shadow: 0 24px 48px -28px rgb(17 26 46 / 0.55);
  --shadow-s: 0 10px 24px -16px rgb(17 26 46 / 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --font-text: "Host Grotesk", "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --measure: 39rem;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scrollbar-color: var(--night-3) var(--paper-2); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6;
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--night); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
.stack > p + p, .pending > p + p { margin-top: 0; }
@media (min-width: 600px) { p, li, dd, td, figcaption, summary { text-wrap: pretty; } }

[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.mt { margin-top: clamp(24px, 3vw, 36px); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 60; background: var(--night); color: var(--paper); padding: 10px 14px; font-weight: 700; border-radius: var(--r-s); }
.skip:focus { top: 8px; }

/* ---------- Buttons, tags, form controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border: 0; border-radius: var(--pill); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.15; text-decoration: none; white-space: nowrap;
  background: var(--accent); color: var(--night);
  transition: background-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: var(--shadow-s); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--dark { background: var(--night); color: var(--paper); }
.btn--dark:hover { background: var(--night-3); }
.btn--light { background: var(--paper); color: var(--night); }
.btn--light:hover { background: var(--accent-soft); }
.btn--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--night-ink); }
.btn--ghost:hover { background: var(--night-3); box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 0.9375rem; }
.btn--lg { min-height: 58px; font-size: 1.0625rem; }
.btn--wide { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

.tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; white-space: nowrap;
  font-size: 0.8125rem; font-weight: 650; line-height: 1.3; border-radius: var(--pill);
  background: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.tag--estimate { background: var(--est); box-shadow: none; }
.tag--estimate::before { background: var(--accent); }
.tag--unknown { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink-2); }
.tag--unknown::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }

.field { display: grid; gap: 6px; }
.field label, .fieldset legend { font-weight: 650; font-size: 0.9375rem; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--field-line); border-radius: var(--r-s); caret-color: var(--blue);
  transition: border-color 160ms var(--ease);
}
.field input:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input::placeholder { color: var(--ink-2); }
.field__hint { font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.fieldset legend { padding: 0; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--night); }
.money { position: relative; }
.money::before { content: "S$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 650; color: var(--ink-2); pointer-events: none; }
.money input { padding-left: 2.7rem; }

.reg { display: grid; gap: 14px; padding: 20px; background: var(--paper); color: var(--ink); border-radius: var(--r); }
.reg__row { display: grid; gap: 12px; align-items: end; }
@media (min-width: 480px) { .reg__row { grid-template-columns: 1fr 1fr; } }
.reg__msg { font-size: 0.9375rem; font-weight: 650; padding: 10px 12px; background: var(--paper-2); border-radius: var(--r-s); }
.reg__fine { font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- Top bar ---------- */

.top { position: relative; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.top__in { width: min(100% - 2 * var(--gutter), 1380px); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo act" "menu menu"; align-items: center; gap: 0 16px; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; min-height: 60px; color: var(--ink); text-decoration: none; }
.logo svg { width: 28px; height: 32px; flex: none; }
.logo svg path { fill: var(--accent); stroke: var(--night); stroke-width: 14; stroke-linejoin: round; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo__name b { font-weight: 500; color: var(--ink-2); }
.top__act { grid-area: act; display: flex; gap: 8px; }
.menu { grid-area: menu; min-width: 0; border-top: 1px solid var(--line); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.menu ul { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 0 0 -10px; padding: 6px 0; list-style: none; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--pill); color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.menu a:hover { background: var(--paper-2); }
.menu a[aria-current] { background: var(--night); color: var(--paper); }
@media (max-width: 759px) {
  .top__act .btn span { display: none; }
  .top__act .btn { padding: 0; width: 42px; }
  .top__act .btn + .btn { display: none; }
}
@media (min-width: 1160px) {
  html { scroll-padding-top: 96px; }
  .top { position: sticky; top: 0; }
  .top__in { grid-template-columns: auto 1fr auto; grid-template-areas: "logo menu act"; gap: 0 28px; min-height: 72px; }
  .menu { border-top: 0; margin: 0; padding: 0; }
  .menu ul { justify-content: center; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; }
  .menu a { margin: 0; padding: 0 11px; min-height: 40px; }
}
@media (min-width: 1160px) and (max-width: 1419px) { .top__act .btn--dark { display: none; } }
@media (max-width: 599px) { .menu a { font-size: 0.875rem; } }

/* ---------- The cover (homepage) ---------- */

.cover { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--paper); }
.cover__art { display: block; width: 100%; height: auto; }
.cover__in { position: relative; z-index: 2; display: grid; gap: 20px; padding-block: clamp(28px, 6vw, 44px) 8px; }
.cover h1 { font-size: clamp(2.7rem, 1.2rem + 7.6vw, 5.75rem); font-weight: 800; line-height: 0.94; letter-spacing: -0.035em; }
.cover h1 span { display: block; color: var(--accent); }
.cover__deck { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); line-height: 1.4; color: var(--night-ink); max-width: 30em; }
.cover__deck strong { color: var(--paper); font-weight: 650; }
.cover__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.who { display: flex; align-items: center; gap: 12px; }
.who p { display: grid; font-size: 0.875rem; line-height: 1.35; color: var(--night-ink); }
.who strong { color: var(--paper); font-size: 1rem; }
.face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--night-3); box-shadow: 0 0 0 2px var(--accent); flex: none; }
.cover__figure { position: relative; margin: 0; }
.legend { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 14px var(--gutter) 22px; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: var(--pill); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-3); font-size: 0.875rem; font-weight: 600; color: var(--paper); }
.legend b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); color: var(--night); font-weight: 800; font-size: 0.8125rem; }
.legend li:first-child b { background: var(--accent); }
@media (max-width: 1339px) { .legend .wide { display: none; } }
.legend small { font-size: inherit; font-weight: 500; color: var(--night-ink); }
.cover__credit { padding: 0 var(--gutter) 18px; font-size: 0.75rem; color: var(--night-ink); opacity: 0.8; }
@media (min-width: 1340px) {
  .cover { min-height: min(880px, calc(100svh - 72px)); display: grid; grid-template-rows: 1fr auto; }
  .cover__figure { position: absolute; inset: 0; z-index: 0; }
  .cover__figure picture { display: block; height: 100%; }
  .cover__art { height: 100%; object-fit: cover; object-position: 72% 58%; }
  .cover__figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgb(17 26 46 / 0.94) 30%, rgb(17 26 46 / 0) 60%), linear-gradient(0deg, rgb(17 26 46 / 0.85) 0%, rgb(17 26 46 / 0) 16%); }
  .cover__in { align-content: center; padding-block: 56px 24px; max-width: none; }
  .cover__in > * { max-width: 34rem; }
  .cover__foot { position: relative; z-index: 2; }
  .legend { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-inline: 0; padding-bottom: 10px; }
  .cover__credit { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-inline: 0; }
}

/* At a glance: uneven tiles with an icon each */
.glance { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.glance li { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: var(--r); background: var(--paper-2); }
.glance .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 6px; }
.glance strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.05; }
.glance span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; }
.glance .is-lead { grid-column: 1 / -1; background: var(--night) url(/assets/img/plot.svg) no-repeat right 22px top 22px / 84px auto; color: var(--paper); }
.glance .is-lead span { color: var(--night-ink); }
@media (max-width: 899px) { .glance .is-lead { padding-right: 104px; background-size: 64px auto; } }
.glance .is-lead strong { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); }
@media (min-width: 900px) {
  .glance { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .glance li { grid-column: span 3; padding: 24px; }
  .glance .is-lead { grid-column: span 6; grid-row: span 2; align-content: end; padding: 32px; background-size: 150px auto; background-position: right 32px top 32px; }
  .glance .is-wide { grid-column: span 6; }
}
/* The narrowest four-across tiles: a little less padding and a smaller figure, so "4 developers" stays on one line.
   The rows are shorter for it, so the plot outline on the lead tile shrinks to stay clear of the figure. */
@media (min-width: 900px) and (max-width: 1023px) {
  .glance li { padding: 20px 18px; }
  .glance strong { font-size: 1.5rem; }
  .glance .is-lead { background-size: 100px auto; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 7.5vw, 108px); }
.section--alt { background: var(--paper-2); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(22px, 3vw, 36px); }
.section__head h2 { max-width: 18em; }
.more { font-weight: 700; }
.more a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.more a::after { content: ""; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 180ms var(--ease); }
.more a:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .more a::after { transition: none; } .more a:hover::after { transform: none; } }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
}
.stack { display: grid; gap: 18px; align-content: start; }
.note { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; max-width: 34rem; }
.src { display: block; font-size: 0.8125rem; color: var(--ink-2); max-width: 30rem; }
.src a { color: inherit; }

.prose { display: grid; gap: 16px; align-content: start; max-width: var(--measure); }
.prose > p + p { margin-top: 0; }
.prose > h3 { margin-top: 14px; }
.prose > h2:not(:first-child) { margin-top: 26px; }
.prose ul, .prose ol:not(.steps):not(.timeline) { margin: 0; padding-left: 1.25em; display: grid; gap: 9px; }
.prose li::marker { color: var(--accent-ink); font-weight: 700; }

/* Facts lists */
.spec { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.spec__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 20px; align-items: start; }
.spec__row + .spec__row { border-top: 1px solid var(--line); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; grid-column: 1 / -1; max-width: 38rem; }
.spec .tag { grid-column: 2; grid-row: 1; }
.spec small { display: block; margin-top: 3px; font-size: 0.8125rem; color: var(--ink-2); max-width: 30rem; }
@media (min-width: 760px) {
  .spec__row { grid-template-columns: 14rem 1fr auto; }
  .spec dd { grid-column: 2; }
  .spec .tag { grid-column: 3; }
  .split .spec__row { grid-template-columns: 1fr auto; }
  .split .spec dd { grid-column: 1 / -1; }
  .split .spec .tag { grid-column: 2; }
}
.spec__row:not(:has(.tag)) dd { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .wrap > .spec .spec__row:not(:has(.tag)) dd, .stack > .spec .spec__row:not(:has(.tag)) dd { grid-column: 2 / -1; }
}

/* Tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.table caption { text-align: left; font-weight: 700; padding: 0 4px 12px; }
.table th, .table td { padding: 14px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 500; }
.table td { max-width: 34rem; }
.table thead th { border-top: 0; background: var(--paper-2); font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); vertical-align: bottom; }
.table tbody tr:first-child > * { border-top: 0; }
.table thead + tbody tr:first-child > * { border-top: 1px solid var(--line); }
.table tbody th { font-weight: 700; }
.table .num { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.table small { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); max-width: 30rem; }
.table tfoot td, .table tfoot th { font-weight: 750; background: var(--paper-2); }
@media (max-width: 759px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table--stack tr { display: grid; gap: 5px; padding: 16px 18px; border-top: 1px solid var(--line); }
  .table--stack tbody tr:first-child { border-top: 0; }
  .table--stack th, .table--stack td { display: block; padding: 0; border: 0 !important; background: none; max-width: none; }
  .table--stack th[scope="row"] { display: block; font-size: 1.0625rem; }
  .table--stack td::before { content: attr(data-label); display: block; margin-top: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
  .table--stack td:not([data-label])::before, .table--stack td[data-label=""]::before { content: none; }
  .table--stack .num { text-align: left; white-space: normal; }
  .table--stack tfoot tr { background: var(--paper-2); }
}

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 14px; padding: 16px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.steps strong { display: block; }

/* Timeline: a rail with a dot for each date */
.timeline { margin: 0; padding: 0; list-style: none; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr; gap: 4px; padding: 0 0 22px 30px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 0.5em; bottom: -0.5em; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--night); }
.timeline li:has(.tag--estimate)::after { box-shadow: inset 0 0 0 3px var(--accent); }
.timeline li:has(.tag--unknown)::after { box-shadow: inset 0 0 0 2px var(--ink-2); }
.timeline__when { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.timeline .tag { justify-self: start; }
@media (min-width: 760px) {
  .timeline li { grid-template-columns: 11rem 1fr auto; gap: 4px 20px; align-items: baseline; }
}
.split .timeline li { grid-template-columns: 1fr; }

/* Updates */
.updates { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.updates li { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: var(--paper-2); }
.section--alt .updates li { background: var(--paper); }
.updates time { font-weight: 700; font-size: 0.875rem; color: var(--accent-ink); }
.updates p { margin: 0; line-height: 1.45; }

/* MRT lines */
.lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lines li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.lines i, .map__key i { display: inline-block; width: 34px; height: 0; border-top: 6px solid; flex: none; }
.lines i { margin-top: 0.68em; }
.map__key i { width: 26px; border-top-width: 5px; }
i.key-ns { border-top-color: var(--mrt-ns); }
i.key-ew { border-top-color: var(--mrt-ew); }
i.key-jr { border-top-color: var(--mrt-jr); border-top-style: dashed; }
i.key-cr { border-top-color: var(--mrt-cr); border-top-style: dashed; }
i.key-walk { border-top-color: var(--ink); border-top-style: dotted; }

/* Nearby places: a list of icon rows */
.nearby { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.nearby li { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.nearby .icon { width: 46px; height: 46px; padding: 11px; border-radius: var(--r-s); background: var(--accent-soft); color: var(--accent-ink); }
.nearby strong { display: block; line-height: 1.25; }
.nearby span { color: var(--ink-2); font-size: 0.875rem; }
.nearby b { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; white-space: nowrap; }

/* Land-use bars */
.uses { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.uses li { display: grid; gap: 6px 20px; }
.uses__name { font-weight: 700; }
.uses__rule { color: var(--ink-2); font-size: 0.9375rem; }
.uses__bar { position: relative; height: 22px; border-radius: var(--pill); background: var(--paper-2); overflow: hidden; }
.section--alt .uses__bar { background: var(--paper); }
.uses__fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--pill); }
.uses__fill--range { border: 2px dashed currentColor; }
@media (min-width: 760px) {
  .uses li { grid-template-columns: 12rem 1fr; align-items: baseline; }
  .uses__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Prices */
.prices { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.prices__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 20px; align-items: start; }
.prices__row + .prices__row { border-top: 1px solid var(--line); }
.prices__row.is-plot { background: var(--accent-soft); }
.prices__proj { font-weight: 700; }
.prices__num { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; white-space: nowrap; text-align: right; }
.prices__desc { grid-column: 1 / -1; }
.prices small { display: block; margin-top: 2px; font-weight: 500; font-size: 0.8125rem; color: var(--ink-2); }
.prices .tag { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
@media (min-width: 760px) {
  .prices__row { grid-template-columns: 12rem 1fr 12rem 8rem; align-items: center; }
  .prices__desc { grid-column: 2; grid-row: 1; }
  .prices__num { grid-column: 3; }
  .prices .tag { grid-column: 4; grid-row: 1; justify-self: end; margin-top: 0; }
}

/* Bars: one value per row on a shared scale */
.bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.bars__name { font-weight: 700; }
.bars__name small { display: block; font-weight: 500; font-size: 0.8125rem; color: var(--ink-2); }
.bars__num { font-family: var(--font-display); font-weight: 700; white-space: nowrap; text-align: right; }
.bars__bar { grid-column: 1 / -1; height: 14px; border-radius: var(--pill); background: var(--night); min-width: 6px; transition: width 260ms var(--ease); }
.bars .is-plot .bars__bar { background: var(--accent); }
.bars .is-est .bars__bar { background: var(--est); box-shadow: inset 0 0 0 2px var(--accent); }
@media (prefers-reduced-motion: reduce) { .bars__bar { transition: none; } }

/* Developers */
.devs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.devs li { display: grid; grid-template-columns: 46px 1fr; gap: 2px 14px; padding: 14px 16px 14px 12px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.devs .icon { grid-row: span 2; width: 46px; height: 46px; padding: 11px; border-radius: var(--r-s); background: var(--night); color: var(--paper); }
.devs strong { font-size: 1.0625rem; align-self: end; }
.devs span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; }

/* Not-yet boxes */
.pending { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-l); background: var(--paper); border: 1.5px dashed var(--ink-2); }
.pending > .icon { width: 34px; height: 34px; color: var(--accent); }
.pending h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2rem); }
.pending .tag { justify-self: start; }

/* Tools: three link tiles */
.tools { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.tools a { position: relative; display: grid; gap: 6px; height: 100%; padding: 24px 24px 56px; border-radius: var(--r-l); background: var(--night); color: var(--paper); text-decoration: none; transition: transform 200ms var(--ease), background-color 200ms var(--ease); }
.tools a:hover { transform: translateY(-3px); background: var(--night-3); }
.tools .icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 8px; }
.tools strong { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.tools span { color: var(--night-ink); font-size: 0.9375rem; line-height: 1.45; }
.tools .go { position: absolute; left: 24px; bottom: 22px; width: 22px; height: 22px; margin: 0; color: var(--paper); }
.tools li:first-child a { background: var(--accent); color: var(--night); }
.tools li:first-child a:hover { background: var(--accent-hi); }
.tools li:first-child .icon, .tools li:first-child .go { color: var(--night); }
.tools li:first-child span { color: var(--night); }
@media (min-width: 760px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .tools a { transition: none; } .tools a:hover { transform: none; } }

/* Figures, map */
.fig { margin: 0; display: grid; gap: 10px; align-content: start; }
.plotfig { display: block; width: 100%; max-width: 440px; height: auto; }
.plotfig__shape { fill: var(--accent); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.plotfig__dim { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.plotfig__t { font-family: var(--font-text); font-size: 19px; font-weight: 650; fill: var(--ink); }
.plotfig__t--on { font-family: var(--font-display); font-weight: 700; font-size: 26px; fill: var(--night); }

.mapfig { margin: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--map-ground); }
.map__canvas { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.map__defs { position: absolute; }
.map__view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map__view--wide { display: none; }
.map__key { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0; padding: 12px 18px; list-style: none; background: var(--paper); border-top: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.map__key li { display: inline-flex; align-items: center; gap: 7px; }
.map__key .map__credit { flex: 1 0 100%; font-weight: 500; color: var(--ink-2); }
@media (min-width: 600px) {
  .map__canvas { aspect-ratio: 1160 / 940; }
  .map__view--wide { display: block; }
  .map__view--tall { display: none; }
}
.m-ground { fill: var(--map-ground); }
.m-water { fill: var(--map-water); }
.m-canal { fill: none; stroke: var(--map-water); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.m-park { fill: var(--map-park); }
.m-bld { fill: var(--map-bld); }
.m-bld--key { fill: var(--map-bld-key); }
.m-road { fill: none; stroke: var(--map-road); stroke-linecap: round; stroke-linejoin: round; }
.m-road--minor { stroke-width: 9; }
.m-road--major { stroke-width: 17; }
.m-rail { fill: none; stroke-width: 8; stroke-linejoin: round; }
.m-rail--ew { stroke: var(--mrt-ew); }
.m-rail--ns { stroke: var(--mrt-ns); }
.m-rail--jrl { stroke: var(--mrt-jr); stroke-dasharray: 22 12; }
.m-rail--crl { stroke: var(--mrt-cr); stroke-dasharray: 22 12; }
.m-crbox { fill: var(--map-ground); stroke: var(--mrt-cr); stroke-width: 5; stroke-dasharray: 14 9; }
.m-link { fill: none; stroke: var(--map-ink); stroke-width: 5; stroke-dasharray: 1 11; stroke-linecap: round; }
.m-site { fill: var(--map-site); stroke: var(--map-ink); stroke-width: 5; stroke-linejoin: round; }
.m-stn { fill: var(--paper); stroke: var(--map-ink); stroke-width: 6; }
.m-leader, .m-scale { fill: none; stroke: var(--map-ink); stroke-width: 3; }
.m-callout { fill: var(--paper); stroke: var(--map-ink); stroke-width: 2; }
.m-none { fill: none; stroke: none; }
.m-label { font-family: var(--font-text); fill: var(--map-ink); font-weight: 600; }
.m-label--halo { paint-order: stroke; stroke: var(--map-ground); stroke-width: 7px; stroke-linejoin: round; }
.m-label--strong { font-weight: 700; fill: var(--ink); }
.m-label--sub { font-weight: 500; fill: var(--ink-2); }
.m-label--plot { font-family: var(--font-display); font-weight: 700; fill: var(--map-site-ink); }
.m-label--onsite { fill: var(--map-site-ink); }
.m-label--road { fill: var(--ink-2); font-weight: 600; letter-spacing: 0.02em; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat, var(--paper-2); transition: transform 200ms var(--ease), background-color 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent); }
.faq details p { padding: 0 20px 20px; max-width: 44rem; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Who runs this site */
.agent { display: grid; gap: 16px; padding: 22px; border-radius: var(--r-l); background: var(--paper-2); align-content: start; }
.section--alt .agent { background: var(--paper); }
.agent__face { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--line); box-shadow: 0 0 0 3px var(--accent); }
.agent dl { margin: 0; display: grid; gap: 10px; }
.agent dl div { display: grid; gap: 2px; }
.agent dt { color: var(--ink-2); font-weight: 600; font-size: 0.875rem; }
.agent dd { margin: 0; font-weight: 700; }
.ph { display: inline-block; padding: 2px 9px; border: 1.5px dashed var(--ink-2); border-radius: var(--r-s); color: var(--ink-2); font-weight: 600; }

/* ---------- Inner pages: title panel ---------- */

.pagehead { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--paper); padding-block: clamp(22px, 3vw, 36px) clamp(28px, 4vw, 48px); }
.pagehead__mark { position: absolute; z-index: -1; right: -40px; top: -30px; height: 150%; width: auto; opacity: 0.5; }
.pagehead__mark path { fill: var(--night-2); stroke: var(--night-3); stroke-width: 3; stroke-linejoin: round; }
.pagehead__in { display: grid; gap: 16px; }
.pagehead h1 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; max-width: 16em; }
.pagehead__lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.45; color: var(--night-ink); max-width: 38rem; }
.pagehead__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.pagehead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.875rem; font-weight: 600; color: var(--night-ink); }
.pagehead .tag { background: var(--night-3); color: var(--paper); box-shadow: none; }
.pagehead .tag::before { background: var(--paper); }
.pagehead .tag--estimate::before { background: var(--accent); }
.pagehead .tag--unknown::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--paper); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 600; color: var(--night-ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.crumbs a { color: var(--paper); }
.toc { margin-top: 10px; }
.toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--pill); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-3); color: var(--paper); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.toc a:hover { background: var(--night-3); }
.pagehead__in > * { min-width: 0; }
@media (max-width: 759px) {
  .toc ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; }
}

/* Read next */
.closing { border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 80px); }
.related { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.related a { position: relative; display: grid; gap: 4px; height: 100%; padding: 20px 56px 20px 20px; border-radius: var(--r); background: var(--paper-2); color: var(--ink); text-decoration: none; transition: background-color 200ms var(--ease), transform 200ms var(--ease); }
.related a:hover { background: var(--accent-soft); transform: translateY(-2px); }
.related strong { font-family: var(--font-display); font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.2; }
.related span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.related .icon { position: absolute; right: 18px; top: 20px; width: 22px; height: 22px; color: var(--accent); }
.related time { font-weight: 600; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .related a { transition: none; } .related a:hover { transform: none; } }

/* ---------- The Ask band ---------- */

.ask { background: var(--night); color: var(--paper); padding-block: clamp(52px, 7vw, 96px); }
.ask__in { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ask h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
.ask__pitch { display: grid; gap: 18px; }
.ask__lede { font-size: 1.1875rem; line-height: 1.45; color: var(--night-ink); max-width: 30em; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--night); stroke-width: 2.6; margin-top: 1px; }
.ask__act { display: grid; gap: 14px; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-l); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-3); }
.ask__or { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--night-ink); }
.ask__or::before, .ask__or::after { content: ""; flex: 1; height: 1px; background: var(--night-3); }
@media (min-width: 900px) { .ask__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* ---------- Calculators ---------- */

.calc { display: grid; gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.calc__form { display: grid; gap: 18px; padding: 22px; background: var(--paper); border-radius: var(--r-l); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.calc__out { display: grid; gap: 18px; align-content: start; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-s); background: var(--paper-2); }
.seg label { position: relative; min-width: 0; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 6px; border-radius: 7px; font-size: 0.9375rem; font-weight: 650; line-height: 1.2; text-align: center; }
.seg input:checked + span { background: var(--night); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.range { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.range label { font-weight: 650; font-size: 0.9375rem; }
.range output { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.range input[type="range"] { grid-column: 1 / -1; width: 100%; height: 32px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.range .field__hint { grid-column: 1 / -1; }
.calc__form details { border-top: 1px solid var(--line); padding-top: 14px; }
.calc__form summary { cursor: pointer; font-weight: 650; font-size: 0.9375rem; margin-left: 1.1em; }
.calc__form details[open] > summary { margin-bottom: 16px; }
.calc__form button[type="reset"] { justify-self: start; background: var(--paper-2); min-height: 44px; padding: 9px 18px; font-size: 0.9375rem; }
.calc__form button[type="reset"]:hover { background: var(--line); box-shadow: none; transform: none; }
.sum { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.sum > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 13px 18px; align-items: baseline; }
.sum > div + div { border-top: 1px solid var(--line); }
.sum dt { font-weight: 500; }
.sum dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.sum small { display: block; grid-column: 1 / -1; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); max-width: 30rem; }
.sum > .is-total { background: var(--night); color: var(--paper); padding-block: 16px; }
.sum > .is-total dt { font-weight: 700; }
.sum > .is-total dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.1; color: var(--accent); }
.sum > .is-total small { color: var(--night-ink); }
.calc__warn { padding: 12px 14px; border-radius: var(--r-s); background: var(--accent-soft); font-size: 0.9375rem; line-height: 1.45; }

/* ---------- Footer, contact rail, phone bar ---------- */

.foot { background: var(--night); color: var(--night-ink); padding-block: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 48px); font-size: 0.9375rem; border-top: 1px solid var(--night-3); }
.foot a { color: var(--paper); }
.foot__top { display: grid; gap: 12px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--night-3); }
.foot__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -0.02em; color: var(--paper); }
.foot__brand svg { width: 34px; height: 40px; flex: none; }
.foot__brand path { fill: var(--accent); stroke: var(--paper); stroke-width: 12; stroke-linejoin: round; }
.foot__blurb { max-width: 40rem; }
.foot__grid { display: grid; gap: 28px; }
.foot h2 { font-family: var(--font-text); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; color: var(--paper); margin-bottom: 10px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.foot__legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--night-3); font-size: 0.8125rem; max-width: 60rem; }
.foot .ph { border-color: var(--night-ink); color: var(--night-ink); padding: 1px 7px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr 1.3fr; } }

.rail { display: none; }
@media (min-width: 1340px) {
  .rail { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; gap: 8px; justify-items: end; }
  .rail__btn { display: inline-flex; align-items: center; justify-content: flex-end; height: 52px; min-width: 52px; padding: 0 15px; border-radius: var(--pill); background: var(--night); color: var(--paper); text-decoration: none; font-weight: 700; font-size: 0.9375rem; white-space: nowrap; box-shadow: var(--shadow), 0 0 0 2px var(--paper); }
  .rail__btn .icon { width: 22px; height: 22px; }
  .rail__btn span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width 260ms var(--ease), opacity 200ms var(--ease), margin 260ms var(--ease); }
  .rail__btn:hover span, .rail__btn:focus-visible span { max-width: 14rem; opacity: 1; margin-left: 10px; }
  .rail__btn--main { background: var(--accent); color: var(--night); }
  .rail__btn--main span { max-width: 14rem; opacity: 1; margin-left: 10px; }
  .is-scrolled .rail__btn--main:not(:hover):not(:focus-visible) span { max-width: 0; opacity: 0; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .rail__btn span { transition: none; } }

.actions { display: none; }
@media (max-width: 1339px) {
  .foot { padding-bottom: calc(clamp(32px, 4vw, 48px) + 76px + env(safe-area-inset-bottom)); }
  .actions { position: fixed; inset: auto 0 8px 0; margin-inline: auto; width: min(100% - 16px, 460px); z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.25fr; padding: 5px; gap: 4px; border-radius: var(--pill); background: var(--night); box-shadow: var(--shadow), 0 0 0 1px var(--night-3); margin-bottom: env(safe-area-inset-bottom); }
  .actions a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; border-radius: var(--pill); color: var(--paper); text-decoration: none; font-weight: 700; font-size: 0.9375rem; }
  .actions a.is-main { background: var(--accent); color: var(--night); }
  .actions .icon { width: 20px; height: 20px; }
}

/* Focus rings on the dark grounds */
.cover :focus-visible, .pagehead :focus-visible, .ask :focus-visible, .foot :focus-visible, .rail :focus-visible, .actions :focus-visible, .tools a:focus-visible { outline-color: var(--paper); }
.ask .reg :focus-visible { outline-color: var(--blue); }
.tools li:first-child a:focus-visible, .actions a.is-main:focus-visible { outline-color: var(--night); outline-offset: -5px; }

/* The sources list on the privacy page */
.sourcelist { margin: 0; padding-left: 1.6em; display: block; font-size: 0.9375rem; color: var(--ink-2); }
.sourcelist li { margin-bottom: 7px; break-inside: avoid; }
.sourcelist a { color: var(--ink); }
@media (min-width: 900px) { .sourcelist { columns: 2; column-gap: 56px; } }

/* Nothing may push the page wider than the screen: columns can shrink, and a table that cannot stack scrolls inside its own box. */
.split > *, .stack > *, .calc > * { min-width: 0; }
@media (max-width: 759px) {
  .table:not(.table--stack) th, .table:not(.table--stack) td { padding: 12px; }
}

/* 7. Below the wide layout the menu is one row that scrolls sideways, fading out at the right edge. */
@media (max-width: 1159px) {
  .menu { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .menu ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 48px; }
  .menu ul::-webkit-scrollbar { display: none; }
}

/* ---------- Cover and layout between the phone and the full overlay ---------- */

.legend__note { background: transparent !important; box-shadow: none !important; padding-left: 4px !important; color: var(--night-ink) !important; font-weight: 500 !important; }
.legend__note::before { content: ""; width: 20px; height: 0; border-top: 2px dotted var(--paper); }

/* Tablets held upright: the whole tall picture, at a capped width so it does not outgrow the screen. */
@media (min-width: 560px) and (max-width: 899px) {
  .cover__art { max-width: 620px; height: auto; margin-inline: auto; }
}

/* 900 to 1339px: two columns, so the picture shares the opening with the headline.
   The cover fills the first screen, but never grows taller than the picture can fill
   (the picture's height at the full width of its column, plus the foot). */
@media (min-width: 900px) and (max-width: 1339px) {
  .cover { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-rows: 1fr auto; grid-template-areas: "text art" "foot foot"; min-height: min(100svh - 118px, 55vw + 142px); }
  .cover__in { grid-area: text; width: auto; margin: 0; gap: 16px; padding: 28px 20px 16px var(--gutter); align-content: center; }
  .cover__deck { font-size: 1.125rem; }
  .legend { padding-bottom: 8px; }
  .cover__foot { padding-bottom: 68px; }
  .cover h1 { font-size: clamp(3rem, 5.4vw, 4.25rem); }
  .cover__figure { grid-area: art; min-height: 460px; position: relative; }
  .cover__figure picture { position: absolute; inset: 0; display: block; }
  /* The image box is as wide as the picture itself, so the fade below lands on the picture's own edges. */
  .cover__art { width: auto; max-width: 100%; height: 100%; margin-inline: auto; object-fit: contain; object-position: 50% 100%; }
  .cover__foot { grid-area: foot; }
}
/* With the menu in the logo row the bar is 72px, so the cover reaches the bottom of the screen. */
@media (min-width: 1160px) and (max-width: 1339px) {
  .cover { min-height: min(100svh - 72px, 55vw + 142px); }
}
/* Wherever the tall picture stands free of the screen edges (it is capped at 620px), its sides fade into the navy instead of ending in a cut. */
@media (min-width: 621px) and (max-width: 1339px) {
  .cover__art { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
}

@media (min-width: 1340px) {
  .legend { padding-right: min(16rem, 22%); }
}

/* 4. In a two-column section the map stays in view while the longer column scrolls past. */
@media (min-width: 900px) {
  .split > .mapfig { position: sticky; top: 24px; }
}
@media (min-width: 1160px) {
  .split > .mapfig { top: 96px; }
}

/* ---------- Neighbourhood photographs ---------- */

.photos__head { margin: clamp(36px, 5vw, 56px) 0 16px; font-size: 1.25rem; }
.photos__wrap { margin-top: clamp(28px, 4vw, 44px); }
.photos { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.photos::-webkit-scrollbar { display: none; }
.photos li { scroll-snap-align: start; min-width: 0; }
.photos figure { margin: 0; display: grid; gap: 10px; }
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.photos figcaption { display: grid; gap: 2px; line-height: 1.35; }
.photos figcaption strong { font-size: 0.9375rem; }
.photos figcaption small { font-size: 0.8125rem; color: var(--ink-2); }
.photos figcaption a { color: inherit; }
@media (min-width: 600px) {
  .photos { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 900px) {
  .photos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photos--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.photos + .note { margin-top: 14px; text-wrap: balance; }
