
/* ── Root + rhythm ───────────────────────────────────────────────────────── */
.pi {
  color: var(--ink-700);
  background: var(--paper-100);
  overflow-x: clip;
  font-variant-numeric: tabular-nums lining-nums;
}
.pi *, .pi *::before, .pi *::after { box-sizing: border-box; }

/* ── Breadcrumb bar (shared with the suburb page) ────────────────────────── */
.pi-crumbbar { background: var(--paper-100); padding: 16px 0 4px; }
.pi-crumbbar--ondark { background: var(--pm-dark-bg); padding: 18px 0 2px; }
.pi-crumbs__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.pi-crumbs__item { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pi-crumbs__link, .pi-crumbs__here {
  font-size: 12.5px; letter-spacing: 0; text-decoration: none;
}
.pi-crumbs__link { color: var(--ink-500); }
.pi-crumbs__link:hover { color: var(--accent-500); }
.pi-crumbs__here { color: var(--ink-700); }
.pi-crumbs__sep { color: var(--paper-400); font-size: 12.5px; }
.pi-crumbbar--ondark .pi-crumbs__link { color: var(--pm-dark-dim); }
.pi-crumbbar--ondark .pi-crumbs__link:hover { color: #fff; }
.pi-crumbbar--ondark .pi-crumbs__here { color: #fff; }
.pi-crumbbar--ondark .pi-crumbs__sep { color: var(--pm-dark-faint); }

/* ═══ Dark hero ════════════════════════════════════════════════════════════ */
.pi-hero {
  position: relative; background: var(--pm-dark-bg); color: #fff;
  padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 108px);
  overflow: hidden;
}
.pi-hero__inner { position: relative; max-width: 900px; }
.pi-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pm-dark-dim);
  margin: 0 0 22px;
}
.pi-hero__eyebrow::before {
  content: ""; width: 2px; height: 16px; border-radius: 2px;
  background: var(--accent-500); display: inline-block;
}
.pi-hero__h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--pm-display); line-height: 1.0; letter-spacing: -0.042em;
  color: #fff; margin: 0; text-wrap: balance; max-width: 15ch;
}
.pi-hero__h1 em { font-style: normal; color: var(--accent-500); }
.pi-hero__lede {
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; color: var(--pm-dark-dim);
  max-width: var(--pm-measure-product); margin: 22px 0 0; text-wrap: pretty;
}
.pi-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.5vw, 40px); }

/* The one central visual: the four numbers every suburb page answers. A ruled
   list — mono index, a bold term, a plain-English line — not a metric grid. */
.pi-answers {
  list-style: none; margin: clamp(36px, 4.5vw, 56px) 0 0; padding: 0;
  max-width: 760px; display: grid; gap: 0;
}
.pi-answers__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 20px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--pm-dark-line);
}
.pi-answers__item:last-child { border-bottom: 1px solid var(--pm-dark-line); }
.pi-answers__n {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--accent-200);
}
.pi-answers__term {
  font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; color: #fff;
  letter-spacing: -0.01em; grid-column: 2; margin: 0;
}
.pi-answers__d {
  font-size: 14px; line-height: 1.55; color: var(--pm-dark-dim);
  grid-column: 2; margin: 4px 0 0;
}

/* ═══ State list (national hub) ════════════════════════════════════════════ */
.pi-states { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pi-state {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 16px 24px; padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--paper-300);
}
.pi-states .pi-state:last-child { border-bottom: 1px solid var(--paper-300); }
.pi-state__main { min-width: 0; }
a.pi-state { text-decoration: none; transition: background var(--dur-1) var(--ease); }
a.pi-state:hover { background: var(--paper-150); }
a.pi-state:hover .pi-state__name { color: var(--accent-500); }
a.pi-state:hover .pi-state__arrow { transform: translateX(4px); color: var(--accent-500); }
a.pi-state:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 3px; border-radius: var(--r-2); }
.pi-state__name {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink-900); letter-spacing: -0.02em; margin: 0; transition: color var(--dur-1) var(--ease);
}
.pi-state__blurb { font-size: 14.5px; line-height: 1.55; color: var(--ink-600); margin: 8px 0 0; max-width: 60ch; }
.pi-state__side { display: flex; align-items: center; gap: 16px; }
.pi-state__tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500);
  white-space: nowrap;
}
.pi-state__tag--soon { color: var(--ink-300); }
.pi-state__arrow { color: var(--ink-500); transition: transform var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.pi-state--soon { color: var(--ink-500); }
.pi-state--soon .pi-state__name { color: var(--ink-500); }
.pi-states__note { font-size: 13.5px; color: var(--ink-500); margin: 20px 0 0; }

/* ═══ Fact rows (what each page shows) ─────────────────────────────────────── */
.pi-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pi-facts__item {
  display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  gap: 12px 40px; padding: 20px 0; border-top: 1px solid var(--paper-300);
}
.pi-facts__item:last-child { border-bottom: 1px solid var(--paper-300); }
.pi-facts__k { font-size: 16px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; }
.pi-facts__d { font-size: 14.5px; line-height: 1.6; color: var(--ink-600); margin: 0; }

/* ═══ Local example vs actual property ─────────────────────────────────────── */
.pi-versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pi-versus__col {
  border: 1px solid var(--paper-300); border-radius: var(--r-3);
  padding: clamp(24px, 2.6vw, 32px); background: var(--paper-100);
}
.pi-versus__col--product { background: var(--paper-150); border-color: var(--paper-300); }
.pi-versus__k {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 14px;
}
.pi-versus__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink-900); margin: 0; letter-spacing: -0.015em; }
.pi-versus__body { font-size: 14.5px; line-height: 1.6; color: var(--ink-600); margin: 12px 0 0; }

/* ═══ NSW data-source block ────────────────────────────────────────────────── */
.pi-source { border-left: 2px solid var(--accent-500); padding-left: 24px; }
.pi-source__k {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 10px;
}
.pi-source__body { font-size: 15px; line-height: 1.6; color: var(--ink-700); margin: 0; max-width: 74ch; }
.pi-source__body + .pi-source__body { margin-top: 12px; }

/* ═══ Listing (approved suburbs) + empty/review-safe state ─────────────────── */
.pi-listing { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pi-listing__empty {
  border: 1px dashed var(--paper-400); border-radius: var(--r-3);
  padding: clamp(24px, 3vw, 36px); background: var(--paper-150);
}
.pi-listing__empty-k {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 12px;
}
.pi-listing__empty-body { font-size: 15px; line-height: 1.62; color: var(--ink-600); margin: 0; max-width: 72ch; }

/* ═══ Related suburbs (suburb page) + shared suburb-link list ──────────────── */
.pi-related__list, .pi-suburblist {
  list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.pi-related__link, .pi-suburblist a {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--paper-300); border-radius: var(--r-3);
  padding: 18px 20px; text-decoration: none; background: var(--paper-100);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.pi-related__link:hover, .pi-suburblist a:hover { border-color: var(--accent-500); background: var(--paper-150); }
.pi-related__link:focus-visible, .pi-suburblist a:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }
.pi-related__name, .pi-suburblist__name { font-size: 15.5px; font-weight: 600; color: var(--ink-900); }
.pi-related__link:hover .pi-related__name, .pi-suburblist a:hover .pi-suburblist__name { color: var(--accent-500); }
.pi-related__meta, .pi-suburblist__meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-500);
}

/* ═══ Hub → directory browse link ──────────────────────────────────────────── */
.pi-hub__browse { margin-top: clamp(24px, 3vw, 36px); }
.pi-hub__browsenote { font-size: 13.5px; line-height: 1.55; color: var(--ink-500); margin: 12px 0 0; max-width: 62ch; }

/* ═══ A–Z suburb directory (lightweight text-link index) ───────────────────── */
.pi-dir__filter { margin: 0 0 clamp(20px, 3vw, 32px); max-width: 520px; }
.pi-dir__filterlabel {
  display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 8px;
}
.pi-dir__search {
  width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--paper-300);
  border-radius: var(--r-2); background: var(--paper-100); color: var(--ink-900);
  font-size: 15px; font-family: var(--font-display);
}
.pi-dir__search:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 1px; border-color: var(--accent-500); }
.pi-dir__count { font-size: 13px; color: var(--ink-500); margin: 8px 0 0; font-variant-numeric: tabular-nums lining-nums; }

.pi-dir__az {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 clamp(24px, 3vw, 36px);
  padding: 12px 0; border-top: 1px solid var(--paper-300); border-bottom: 1px solid var(--paper-300);
}
.pi-dir__azlink {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px;
  padding: 0 6px; border-radius: var(--r-2); text-decoration: none;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--ink-600);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.pi-dir__azlink:hover { background: var(--paper-200); color: var(--accent-500); }
.pi-dir__azlink:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }

.pi-dir__group { margin: 0 0 clamp(28px, 3.5vw, 40px); scroll-margin-top: 96px; }
.pi-dir__letter {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--accent-500); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--paper-300);
}
.pi-dir__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 20px;
}
.pi-dir__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 7px 6px; text-decoration: none; border-radius: var(--r-2);
  border-bottom: 1px solid transparent; transition: background var(--dur-1) var(--ease);
}
.pi-dir__link:hover { background: var(--paper-150); }
.pi-dir__link:hover .pi-dir__name { color: var(--accent-500); }
.pi-dir__link:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 1px; }
.pi-dir__name { font-size: 14.5px; color: var(--ink-900); font-weight: 500; min-width: 0; }
.pi-dir__pc {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-500);
  font-variant-numeric: tabular-nums lining-nums; flex-shrink: 0;
}

/* ═══ Closing CTA (dark) ───────────────────────────────────────────────────── */
.pi-cta { position: relative; background: var(--pm-dark-bg); color: #fff; overflow: hidden; }
.pi-cta__inner { position: relative; max-width: 760px; }
.pi-cta__title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--pm-h2);
  line-height: 1.04; letter-spacing: -0.03em; color: #fff; margin: 0; text-wrap: balance;
}
.pi-cta__title em { font-style: normal; color: var(--accent-200); }
.pi-cta__body { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: var(--pm-dark-dim); margin: 18px 0 0; max-width: var(--pm-measure-product); }
.pi-cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .pi-versus { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pi-state { grid-template-columns: minmax(0, 1fr); }
  .pi-state__side { justify-content: space-between; }
  .pi-facts__item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pi-answers__item { grid-template-columns: auto minmax(0, 1fr); }
}

/* ── Reduced motion — no hover transforms settle instantly ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  a.pi-state, a.pi-state:hover .pi-state__arrow, .pi-state__arrow,
  .pi-related__link, .pi-suburblist a, .pi-state__name {
    transition: none !important;
  }
}


.ry { font-family: var(--font-sans); color: var(--ink-700); font-variant-numeric: tabular-nums lining-nums; }
.ry *, .ry *::before, .ry *::after { box-sizing: border-box; }

/* ═══ Icons — one small set, 1.5 stroke, never filled ═════════════════════ */
.ry-ico { width: 16px; height: 16px; flex: none; color: var(--accent-500); }

/* ═══ Rolling digits — a headline figure settles like a counter ═══════════ */
/* The reel's digits and the separators are generated content, so the document
   holds the figure once, in the visually hidden span beside them. */
.ry-roll { display: inline-block; white-space: nowrap; }
.ry-roll__d {
  display: inline-block; position: relative; line-height: 1;
  clip-path: inset(-0.02em -0.06em);
}
.ry-roll__d::before { content: "8"; visibility: hidden; }
.ry-roll__reel {
  position: absolute; left: 0; top: 0; display: block;
  transform: translateY(calc(var(--d) * -1em));
  transition: transform 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ry-roll__reel::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; white-space: pre; display: block; line-height: 1; }
.ry-roll__s::before { content: attr(data-c); }
/* A one-off roll from zero on first paint. CSS only: it needs no script. */
.ry-roll--intro .ry-roll__reel {
  animation: ry-roll-in 1300ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
  animation-delay: calc(var(--i) * 110ms + 260ms);
}
@keyframes ry-roll-in { from { transform: translateY(0); } }

/* ═══ The equation — the formula is the interface ═════════════════════════ */
.ry-stage { background: var(--paper-100); padding: 0 0 clamp(56px, 7vw, 96px); }
.ry-eq {
  display: grid; align-items: end;
  grid-template-columns: minmax(0, 0.92fr) auto minmax(0, 0.34fr) auto minmax(0, 1.16fr) auto minmax(0, 1.18fr);
  column-gap: clamp(14px, 2vw, 30px);
  border-top: 1px solid var(--ink-900); border-bottom: 1px solid var(--paper-300);
  padding: 30px 0 36px;
}
.ry-eq__term { min-width: 0; }
.ry-eq__k {
  display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-height: 16px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-500); margin: 0 0 14px;
}
.ry-eq__k label { cursor: pointer; }
/* Where a seeded value comes from, until the reader changes it. */
.ry-prov {
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.08em; color: var(--accent-700);
  transition: color var(--dur-2) var(--ease);
}
.ry-prov::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent-500); transition: background var(--dur-2) var(--ease); }
.ry-prov--edited { color: var(--warn-600); }
.ry-prov--edited::before { background: var(--warn-600); }
.ry-eq__op {
  font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; color: var(--ink-500);
  line-height: 1; padding-bottom: 20px; user-select: none;
}
.ry-eq__fixed {
  font-size: clamp(30px, 3.5vw, 46px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  color: var(--ink-500); padding-bottom: 8px; border-bottom: 2px solid transparent; white-space: nowrap;
}

/* Hero field — an underlined display-size number, not a boxed input. */
.ry-hero {
  position: relative; display: flex; align-items: baseline; gap: 6px; line-height: 1;
  border-bottom: 2px solid var(--paper-400); padding-bottom: 8px;
  transition: border-color var(--dur-2) var(--ease);
}
/* The underline draws in blue from the left on focus. */
.ry-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent-500);
  transform: scaleX(0.18); transform-origin: left center; transition: transform 380ms var(--ease);
}
.ry-hero:hover { border-bottom-color: var(--ink-300); }
.ry-hero:focus-within::after { transform: scaleX(1); }
.ry-hero__pre { font-size: clamp(20px, 2.3vw, 30px); font-weight: 500; color: var(--ink-500); }
.ry-hero__input {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; outline: none; padding: 0; margin: 0;
  width: 100%; min-width: 0; font-family: inherit; font-variant-numeric: inherit;
  font-size: clamp(30px, 3.5vw, 46px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; height: 1.08em;
  color: var(--ink-900); caret-color: var(--accent-500);
}
.ry-hero__input::placeholder { color: var(--paper-400); }
.ry-hero__suf { font-size: 14px; color: var(--ink-500); white-space: nowrap; }

.ry-eq__res { min-width: 0; }
.ry-eq__v {
  font-size: clamp(60px, 6.8vw, 100px); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  color: var(--accent-500); margin: -0.06em 0 0; padding-bottom: 2px; white-space: nowrap;
}
.ry-eq__v small { font-size: 0.5em; letter-spacing: -0.02em; margin-left: 2px; font-weight: 600; }
.ry-eq__v--empty { color: var(--paper-400); }

.ry-eq__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap;
  padding-top: 22px;
}
.ry-eq__sum { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-600); text-wrap: pretty; }
.ry-eq__sum b { color: var(--ink-900); font-weight: 600; }
.ry-eq__hint { color: var(--ink-500); }

/* Disclosure button — opens the costs-and-loan analysis. */
.ry-more {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ink-900);
  background: var(--paper-100); border: 1px solid var(--paper-300); border-radius: var(--r-2);
  padding: 13px 18px 13px 20px; min-height: 48px; text-align: left;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.ry-more:hover { background: var(--paper-150); border-color: var(--paper-400); }
.ry-more:active { transform: scale(0.985); }
.ry-more:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-color: var(--accent-500); }
.ry-more__glyph {
  position: relative; flex: none; width: 20px; height: 20px; border-radius: 999px; background: var(--accent-500);
  transition: transform 380ms var(--ease);
}
.ry-more__glyph::before, .ry-more__glyph::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: #fff;
  transform: translate(-50%, -50%); transition: transform 380ms var(--ease);
}
.ry-more__glyph::after { transform: translate(-50%, -50%) rotate(90deg); }
.ry-more[aria-expanded="true"] .ry-more__glyph { transform: rotate(180deg); }
.ry-more[aria-expanded="true"] .ry-more__glyph::after { transform: translate(-50%, -50%) rotate(0deg); }

/* ═══ The fold — the analysis opens and closes by height ══════════════════ */
/* Always in the document. Closed, it is collapsed, hidden and (from script)
   inert; a page's <noscript> rule shows it when there is no script to open it. */
.ry-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 620ms var(--ease); }
.ry-fold[data-open="true"] { grid-template-rows: 1fr; }
/* overflow: clip keeps the result panel sticky inside the fold; hidden is the
   fallback where clip is not supported. */
.ry-fold__inner {
  min-height: 0; overflow: hidden; overflow: clip; visibility: hidden; opacity: 0;
  transition: opacity 320ms var(--ease), visibility 0s linear 620ms;
}
.ry-fold[data-open="true"] > .ry-fold__inner {
  visibility: visible; opacity: 1;
  transition: opacity 560ms var(--ease) 140ms, visibility 0s;
}

/* ═══ After costs and the loan ════════════════════════════════════════════ */
.ry-adv { background: var(--paper-150); padding: var(--pm-chapter-pad) 0; scroll-margin-top: 72px; }
.ry-adv__grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 6vw, 96px); align-items: start;
}
.ry-smark { display: inline-flex; align-items: center; gap: 10px; }
.ry-smark .ry-ico { margin-left: 2px; }

/* Inputs — ruled rows, never a boxed form. */
.ry-group + .ry-group { margin-top: 40px; }
.ry-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.ry-group__k {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-500); margin: 0;
}
.ry-group__sum { font-size: 13px; color: var(--ink-500); margin: 0; text-align: right; }
.ry-group__sum b { color: var(--ink-900); font-weight: 600; }
.ry-rows { border-top: 1px solid var(--paper-300); }
.ry-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--paper-300); min-height: 66px;
}
.ry-row__label { min-width: 0; font-size: 15px; color: var(--ink-900); line-height: 1.35; }
.ry-row__label label { cursor: pointer; }
.ry-row__label small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-500); margin-top: 2px; }
.ry-row__ctl { display: flex; align-items: center; gap: 8px; flex: none; }
.ry-row__note { margin: 0; padding: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--warn-600); }

/* Row field — the design-system input, sized for a public page. */
.ry-field {
  display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px;
  background: var(--paper-100); border: 1px solid var(--paper-300); border-radius: var(--r-2);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.ry-field:hover { border-color: var(--paper-400); }
.ry-field:focus-within { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.ry-field__pre, .ry-field__suf { font-size: 14px; color: var(--ink-500); white-space: nowrap; }
.ry-field__input {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; outline: none; padding: 0; margin: 0;
  width: 7ch; min-width: 0; text-align: right; font-family: inherit; font-variant-numeric: inherit;
  font-size: 16px; font-weight: 600; color: var(--ink-900); caret-color: var(--accent-500);
}
.ry-field--wide .ry-field__input { width: 9ch; }
.ry-field--narrow .ry-field__input { width: 4.5ch; }

/* Stepper buttons beside a field. */
.ry-step {
  flex: none; width: 36px; height: 44px; border-radius: var(--r-2); cursor: pointer;
  border: 1px solid var(--paper-300); background: var(--paper-100); color: var(--ink-700);
  font-family: var(--font-sans); font-size: 18px; line-height: 1; display: grid; place-items: center;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.ry-step:hover { background: var(--paper-200); border-color: var(--paper-400); }
.ry-step:active { transform: scale(0.94); background: var(--paper-300); }
.ry-step:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-color: var(--accent-500); }

/* Segmented control — a thumb slides to the chosen option. */
.ry-seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-2); background: var(--paper-200); flex: none; }
.ry-seg__thumb {
  position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: var(--r-1);
  background: var(--paper-100); box-shadow: var(--shadow-2);
  transition: transform 340ms var(--ease), width 340ms var(--ease);
}
.ry-seg--strong .ry-seg__thumb { background: var(--accent-900); box-shadow: none; }
.ry-seg__btn {
  position: relative; z-index: 1; font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; color: var(--ink-600);
  min-width: 40px; min-height: 38px; padding: 0 10px; border: 0; border-radius: var(--r-1); background: transparent; cursor: pointer;
  transition: color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
.ry-seg--strong .ry-seg__btn { font-size: 13px; padding: 0 14px; }
.ry-seg__btn:hover { color: var(--ink-900); }
.ry-seg__btn:active { transform: scale(0.97); }
.ry-seg__btn[aria-pressed="true"] { color: var(--ink-900); }
.ry-seg--strong .ry-seg__btn[aria-pressed="true"] { color: #fff; }
.ry-seg__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); }
/* Before the thumb has been measured — on the server and without JavaScript —
   the pressed button carries the selected style itself. */
.ry-seg:not([data-thumb]) .ry-seg__btn[aria-pressed="true"] { background: var(--paper-100); box-shadow: var(--shadow-1); }
.ry-seg--strong:not([data-thumb]) .ry-seg__btn[aria-pressed="true"] { background: var(--accent-900); box-shadow: none; }

.ry-reset {
  appearance: none; border: 0; background: transparent; cursor: pointer; padding: 10px 0; margin-top: 14px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--ink-600);
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  transition: color var(--dur-1) var(--ease);
}
.ry-reset:hover:not(:disabled) { color: var(--accent-500); }
.ry-reset:hover:not(:disabled) svg { transform: rotate(-50deg); }
.ry-reset:disabled { color: var(--ink-300); cursor: default; }
.ry-reset:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-radius: var(--r-1); }
.ry-reset svg { width: 14px; height: 14px; transition: transform 380ms var(--ease); }

/* ═══ The result — one dominant figure on navy, then the ladder ═══════════ */
.ry-result { position: sticky; top: 92px; min-width: 0; }
.ry-out {
  position: relative; overflow: hidden; background: var(--accent-900); color: #fff;
  border-radius: var(--r-4); padding: clamp(26px, 2.8vw, 38px);
}
/* The brand's dotted field, fading out from the top right corner. */
.ry-out::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--pm-dark-line) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 100% 0%, #000 0%, transparent 72%);
}
.ry-out > * { position: relative; }
.ry-out__k {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pm-dark-dim); margin: 0;
}
.ry-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: var(--r-1);
  border: 1px solid var(--pm-dark-line); color: #fff; letter-spacing: 0.08em;
  animation: ry-chip-in 320ms var(--ease) both;
}
@keyframes ry-chip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ry-out__v {
  display: flex; align-items: baseline; flex-wrap: wrap;
  font-size: clamp(56px, 6vw, 86px); font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  color: #fff; margin: 16px 0 0; white-space: nowrap;
  transition: color var(--dur-3) var(--ease);
}
.ry-out__v small { font-size: 0.2em; font-weight: 500; letter-spacing: 0; color: var(--pm-dark-dim); margin-left: 12px; }
.ry-out__sign { margin-right: 0.04em; }
.ry-out__v--neg { color: #FCA5A5; }
.ry-out__v--pos { color: #86EFAC; }
.ry-out__v--empty { color: var(--pm-dark-faint); }
.ry-out__u { font-size: 15px; line-height: 1.55; color: var(--pm-dark-dim); margin: 14px 0 0; max-width: 44ch; text-wrap: pretty; }
.ry-back {
  appearance: none; border: 0; background: transparent; cursor: pointer; padding: 0; margin: 12px 0 0;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: #fff;
  min-height: 36px; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: underline; text-decoration-color: var(--pm-dark-faint); text-underline-offset: 4px;
}
.ry-back:hover { text-decoration-color: #fff; }
.ry-back:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-500); border-radius: var(--r-1); }
.ry-out .ry-lad { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--pm-dark-line); }

.ry-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 28px 0 0; border-top: 1px solid var(--pm-dark-line); }
.ry-fact { padding: 16px 0 0; min-width: 0; }
.ry-fact dt { font-size: 12.5px; line-height: 1.4; color: var(--pm-dark-dim); margin: 0; }
.ry-fact dd { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #fff; margin: 6px 0 0; white-space: nowrap; }
.ry-fact dd small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--pm-dark-dim); }

/* How the result adds up — one level below the panel, on the page. */
.ry-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 22px 0 0; padding: 0 2px; }
.ry-sums div { min-width: 0; }
.ry-sums dt { font-size: 12.5px; line-height: 1.4; color: var(--ink-500); margin: 0; }
.ry-sums dd { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900); margin: 4px 0 0; }
.ry-sums dd small { font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-500); }

.ry-read {
  margin: 26px 0 0; border-left: 2px solid var(--accent-500); padding-left: 18px;
  font-size: 15px; line-height: 1.6; color: var(--ink-700); text-wrap: pretty;
}
.ry-read b { color: var(--ink-900); font-weight: 600; }
/* Both sit under the result panel and take its column, which is already a
   reading width. A character cap on top of that only left a ragged gap. */
.ry-small { margin: 16px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-500); text-wrap: pretty; }

/* ═══ Stress test ═════════════════════════════════════════════════════════ */
.ry-sc { background: var(--paper-100); padding: var(--pm-chapter-pad) 0; }
.ry-sc__list { border-top: 1px solid var(--ink-900); margin: 0; padding: 0; }
.ry-sc__row {
  position: relative; display: grid; align-items: center; cursor: pointer;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 148px 132px;
  gap: 8px clamp(16px, 2.4vw, 36px);
  padding: 18px 16px 18px 46px; border-bottom: 1px solid var(--paper-300);
  transition: background var(--dur-2) var(--ease);
}
/* The chosen line is marked by a navy edge that draws down from the top. */
.ry-sc__row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent-900);
  transform: scaleY(0); transform-origin: top center; transition: transform 340ms var(--ease);
}
.ry-sc__row--on::before { transform: scaleY(1); }
.ry-sc__row:hover { background: var(--paper-150); }
.ry-sc__row:active { background: var(--paper-200); }
.ry-sc__row--on { background: var(--paper-150); }
.ry-sc__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ry-sc__dot {
  position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 999px;
  border: 1.5px solid var(--paper-400); background: var(--paper-100);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.ry-sc__row--on .ry-sc__dot { border-color: var(--accent-900); box-shadow: inset 0 0 0 4px var(--paper-100), inset 0 0 0 9px var(--accent-900); }
.ry-sc__radio:focus-visible ~ .ry-sc__dot { box-shadow: 0 0 0 3px var(--accent-100); border-color: var(--accent-500); }
.ry-sc__row--on .ry-sc__radio:focus-visible ~ .ry-sc__dot {
  box-shadow: inset 0 0 0 4px var(--paper-100), inset 0 0 0 9px var(--accent-900), 0 0 0 3px var(--accent-100);
}
.ry-sc__name { font-size: 16px; font-weight: 500; color: var(--ink-900); min-width: 0; }
.ry-sc__name small { display: block; font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--ink-500); margin-top: 3px; }
.ry-sc__bar { position: relative; height: 12px; min-width: 0; }
.ry-sc__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--paper-300); }
.ry-sc__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; transform-origin: left center; transition: width var(--pm-dur-build) var(--ease); }
.ry-sc__fill--neg {
  background-image: repeating-linear-gradient(-45deg, var(--neg-600) 0 1.5px, transparent 1.5px 6px);
  box-shadow: inset 0 0 0 1px var(--neg-600);
}
.ry-sc__fill--pos { background: var(--pos-600); }
.ry-sc__v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); text-align: right; white-space: nowrap; }
.ry-sc__v--neg { color: var(--neg-600); }
.ry-sc__v--pos { color: var(--pos-600); }
.ry-sc__d { font-size: 13.5px; color: var(--ink-600); text-align: right; white-space: nowrap; }
.ry-sc__d--base { color: var(--ink-500); }
/* The note belongs to the list above it, so it runs the list's width. */
.ry-sc__foot { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-500); text-wrap: pretty; }

/* ═══ Mobile result bar (shown below 1024px while the result is off screen) ═ */
.ry-bar {
  display: none; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  appearance: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-sans);
  background: var(--accent-900); color: #fff; border-radius: var(--r-3); box-shadow: var(--shadow-3);
  padding: 12px 18px; align-items: center; justify-content: space-between; gap: 14px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.ry-bar--on { opacity: 1; transform: none; pointer-events: auto; }
.ry-bar__k { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pm-dark-dim); }
.ry-bar__v { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.ry-bar__v--neg { color: #FCA5A5; }
.ry-bar__v--pos { color: #86EFAC; }
.ry-bar__sub { font-size: 12px; line-height: 1.45; color: var(--pm-dark-dim); text-align: right; }
.ry-bar:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-200), var(--shadow-3); }

/* ═══ Responsive — the equation and the result recompose, they do not shrink ═ */
@media (max-width: 1180px) {
  /* Small laptops and landscape tablets: the two columns share the width
     equally and keep a full gutter, so neither the form nor the result is
     squeezed. */
  .ry-adv__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .ry-facts, .ry-sums { gap: 0 18px; }
  .ry-fact dd { font-size: 18px; }
}
@media (max-width: 1023px) {
  .ry-adv__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .ry-result { position: static; order: -1; }
  .ry-bar { display: flex; }
}
@media (max-width: 860px) {
  /* The result leads on a phone: it stays in view above the keyboard while the
     two fields below it are edited. */
  .ry-eq { grid-template-columns: minmax(0, 1fr); row-gap: 26px; align-items: stretch; padding: 22px 0 28px; }
  .ry-eq__op, .ry-eq__fixedterm { display: none; }
  .ry-eq__res { order: -1; padding-bottom: 22px; border-bottom: 1px solid var(--paper-300); }
  .ry-eq__res .ry-eq__k { margin-bottom: 12px; }
  .ry-eq__v { font-size: clamp(64px, 21vw, 96px); padding-bottom: 0; }
  .ry-hero__input { font-size: clamp(34px, 10vw, 46px); }
  .ry-hero__pre { font-size: 26px; }
  .ry-eq__foot { flex-direction: column; align-items: stretch; padding-top: 20px; }
  .ry-more { justify-content: space-between; }
  /* Scenario rows restack: the name on its own line, the result and its change
     beneath it, then the bar across the full width. */
  .ry-sc__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; align-items: baseline; padding: 16px 4px 18px 40px; }
  .ry-sc__dot { left: 10px; top: 28px; margin-top: 0; }
  .ry-sc__name { grid-column: 1 / -1; }
  .ry-sc__v { order: 2; text-align: left; }
  .ry-sc__d { order: 3; text-align: right; }
  .ry-sc__bar { order: 4; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ry-out { padding: 22px 20px 24px; }
  .ry-out__v { font-size: clamp(52px, 17vw, 68px); }
  .ry-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ry-facts .ry-fact:nth-child(3) { grid-column: 1 / -1; }
  .ry-sums { gap: 0 14px; }
  .ry-sums dd { font-size: 15px; }
  .ry-sums dd small { display: block; }
  .ry-row { min-height: 62px; }
  .ry-row--stack { flex-wrap: wrap; row-gap: 10px; padding: 14px 0; }
  .ry-row--stack .ry-row__label { flex: 1 1 100%; }
  .ry-row--stack .ry-row__ctl { flex: 1 1 100%; justify-content: flex-start; }
  .ry-row--stack .ry-field { flex: 1 1 auto; }
  .ry-row--stack .ry-field__input { width: 100%; }
  .ry-row--stack .ry-seg--strong { display: flex; width: 100%; }
  .ry-row--stack .ry-seg--strong .ry-seg__btn { flex: 1 1 0; min-height: 42px; }
}

/* ═══ The two rental yield pages — width ══════════════════════════════════ */
/* Both pages are product and data stages, so a wide screen gets more of them:
   the shell grows with the viewport, always keeping 60px of outer margin, up to
   1440px. Below 1320px nothing changes. Editorial (narrow) chapters keep their
   reading width, and a chapter heading keeps the same share of the wider shell. */
:is(.yp, .ryp) .pm-shell:not(.pm-shell--narrow) { max-width: min(1440px, max(var(--pm-shell-max), 100vw - 120px)); }
:is(.yp, .ryp) .pm-h2 { max-width: min(1040px, 100%); }
/* A ladder label's small print never ends on a one-word line. */
:is(.yp, .ryp) .ry-lad__n small { text-wrap: balance; }

/* ═══ The two rental yield pages — entrances on scroll ════════════════════ */
/* Reveal (trigger="entry") arms a block that is out of sight and releases it
   when it comes into view, once. Arming is instant and unseen: the fade belongs
   to the entrance, never to the hiding. */
:is(.yp, .ryp) .sa-reveal--armed:not(.is-in) { transform: translateY(26px); transition: none; }
:is(.yp, .ryp) .sa-reveal--armed.is-in { transition: opacity 720ms var(--ease), transform 920ms var(--ease); }
@keyframes rv-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-grow { from { transform: scaleX(0); } }
@keyframes rv-photo { from { clip-path: inset(5% 5% 5% 5% round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }

/* A chapter heading arrives as its three lines, not as one block. */
:is(.yp, .ryp) .rv-head.sa-reveal--armed:not(.is-in) { opacity: 1; transform: none; }
:is(.yp, .ryp) .rv-head.sa-reveal--armed:not(.is-in) .pm-sectionhead > * { opacity: 0; }
:is(.yp, .ryp) .rv-head.sa-reveal--armed.is-in .pm-sectionhead > * { animation: rv-in 860ms var(--ease) backwards; }
:is(.yp, .ryp) .rv-head.sa-reveal--armed.is-in .pm-sectionhead > :nth-child(2) { animation-delay: 90ms; }
:is(.yp, .ryp) .rv-head.sa-reveal--armed.is-in .pm-sectionhead > :nth-child(3) { animation-delay: 190ms; }

/* Rows of a list or a table follow one another in. Table rows only fade: a
   transform on a table row is not dependable everywhere. */
:is(.yp, .ryp) .rv-rows.sa-reveal--armed.is-in :is(.rv-row, .yp-rail__item, .yp-take > li, .yp-factors > li, .yp-sum, .yp-links > li, .ryp-gaps > li, .ryp-links > li, .ry-sc__row) {
  animation: rv-in 760ms var(--ease) backwards; animation-delay: calc(var(--rvi, 0) * 80ms + 140ms);
}
:is(.yp, .ryp) .rv-rows.sa-reveal--armed.is-in :is(.yp-fit, .yp-mv) tbody tr {
  animation: rv-fade 700ms var(--ease) backwards; animation-delay: calc(var(--rvi, 0) * 80ms + 160ms);
}
:is(.yp, .ryp) .rv-rows :is(.rv-row, .yp-rail__item, .yp-take > li, .yp-factors > li, .yp-sum, .yp-links > li, .ryp-gaps > li, .ryp-links > li, .ry-sc__row, .yp-fit tbody tr, .yp-mv tbody tr):nth-child(2) { --rvi: 1; }
:is(.yp, .ryp) .rv-rows :is(.rv-row, .yp-rail__item, .yp-take > li, .yp-factors > li, .yp-sum, .yp-links > li, .ryp-gaps > li, .ryp-links > li, .ry-sc__row, .yp-fit tbody tr, .yp-mv tbody tr):nth-child(3) { --rvi: 2; }
:is(.yp, .ryp) .rv-rows :is(.rv-row, .yp-rail__item, .yp-take > li, .yp-factors > li, .yp-sum, .yp-links > li, .ryp-gaps > li, .ryp-links > li, .ry-sc__row, .yp-fit tbody tr, .yp-mv tbody tr):nth-child(4) { --rvi: 3; }
:is(.yp, .ryp) .rv-rows :is(.rv-row, .yp-rail__item, .yp-take > li, .yp-factors > li, .yp-sum, .yp-links > li, .ryp-gaps > li, .ryp-links > li, .ry-sc__row, .yp-fit tbody tr, .yp-mv tbody tr):nth-child(5) { --rvi: 4; }
:is(.yp, .ryp) .rv-rows :is(.rv-row, .yp-rail__item, .yp-take > li, .yp-factors > li, .yp-sum, .yp-links > li, .ryp-gaps > li, .ryp-links > li, .ry-sc__row, .yp-fit tbody tr, .yp-mv tbody tr):nth-child(6) { --rvi: 5; }
:is(.yp, .ryp) .rv-rows :is(.rv-row, .yp-rail__item, .yp-take > li, .yp-factors > li, .yp-sum, .yp-links > li, .ryp-gaps > li, .ryp-links > li, .ry-sc__row, .yp-fit tbody tr, .yp-mv tbody tr):nth-child(n + 7) { --rvi: 6; }

/* The yield ladder grows from the left, one level after another, and each value
   follows its bar. */
:is(.yp, .ryp) .ry-lad__fill { transform-origin: left center; }
:is(.yp, .ryp) .sa-reveal--armed.is-in .ry-lad__fill,
.ry-fold[data-open="true"] .ry-out .ry-lad__fill {
  animation: rv-grow 940ms var(--ease) backwards; animation-delay: calc(var(--lad, 0) * 150ms + 320ms);
}
:is(.yp, .ryp) .sa-reveal--armed.is-in .ry-lad__v,
.ry-fold[data-open="true"] .ry-out .ry-lad__v {
  animation: rv-fade 520ms var(--ease) backwards; animation-delay: calc(var(--lad, 0) * 150ms + 760ms);
}
.ry-lad > :nth-child(2) { --lad: 1; }
.ry-lad > :nth-child(3) { --lad: 2; }

/* Headline digits roll up from zero as their block arrives: the equation's
   result when it scrolls into view, the cash flow when the analysis opens. */
:is(.yp, .ryp) .sa-reveal--armed.is-in .ry-eq__v .ry-roll__reel,
.ry-fold[data-open="true"] .ry-out__v .ry-roll__reel {
  animation: ry-roll-in 1200ms cubic-bezier(0.16, 0.84, 0.24, 1) backwards;
  animation-delay: calc(var(--i) * 100ms + 240ms);
}

/* Scenario bars draw out from the left with their rows. */
:is(.yp, .ryp) .rv-rows.sa-reveal--armed.is-in .ry-sc__fill {
  animation: rv-grow 820ms var(--ease) backwards; animation-delay: calc(var(--rvi, 0) * 80ms + 380ms);
}

/* ═══ Reduced motion — final state immediately ════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Reveal never arms under reduced motion, so no entrance rule above applies;
     the analysis' opening animations are switched off here. */
  .ry-roll__reel, .ry-roll--intro .ry-roll__reel { transition: none !important; animation: none !important; }
  .ry-lad__fill, .ry-lad__v, .ry-sc__fill, .ry-sc__row { animation: none !important; }
  .ry-fold, .ry-fold__inner, .ry-fold[data-open="true"] > .ry-fold__inner { transition: none !important; }
  .ry-chip { animation: none !important; }
  .ry-sc__fill, .ry-sc__row, .ry-sc__row::before, .ry-sc__dot, .ry-more, .ry-more__glyph,
  .ry-more__glyph::before, .ry-more__glyph::after, .ry-bar, .ry-field, .ry-hero, .ry-hero::after,
  .ry-step, .ry-seg__thumb, .ry-seg__btn, .ry-reset, .ry-reset svg, .ry-prov, .ry-prov::before, .ry-out__v {
    transition: none !important;
  }
}

/* On paper nothing waits for a scroll. */
@media print {
  :is(.yp, .ryp) .sa-reveal--armed,
  :is(.yp, .ryp) .sa-reveal--armed :is(.pm-sectionhead > *, .yp-cmp__bar, .yp-cmp__v, .yp-mx td, .yp-photo__frame, .yp-photo__frame img, .ryp-photo img) {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  :is(.yp, .ryp) .yp-cmp::after { opacity: 1 !important; }
}


.yp { font-family: var(--font-sans); color: var(--ink-700); font-variant-numeric: tabular-nums lining-nums; overflow-x: clip; }
.yp *, .yp *::before, .yp *::after { box-sizing: border-box; }
.yp-up { color: var(--pos-600); }
.yp-down { color: var(--neg-600); }
.yp-k {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-500); margin: 0;
}
.yp-h3 {
  font-family: var(--font-display); font-size: var(--pm-h3); font-weight: 600; letter-spacing: -0.024em;
  line-height: 1.15; color: var(--ink-900); margin: 0; text-wrap: balance;
}
.yp-body { font-size: 15px; line-height: 1.64; color: var(--ink-700); margin: 12px 0 0; max-width: 62ch; text-wrap: pretty; }
/* A long label gets a shorter phone form rather than a smaller font. The full
   text stays in the accessibility tree; the short form is decorative. */
.yp-narrow { display: none; }

/* ═══ Hero — one figure, and the photograph that sets the subject ═════════ */
.yp-hero { position: relative; background: var(--paper-100); padding: clamp(20px, 2.6vw, 40px) 0 clamp(52px, 6vw, 92px); }
.yp-hero__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--paper-300) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 58% 70% at 8% 0%, #000 6%, transparent 70%);
  mask-image: radial-gradient(ellipse 58% 70% at 8% 0%, #000 6%, transparent 70%);
}
.yp-hero .pm-shell { position: relative; }
.yp-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(40px, 6vw, 104px); align-items: center;
}
.yp-h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1.08; letter-spacing: -0.032em; color: var(--ink-900); margin: 18px 0 0; text-wrap: balance;
}
.yp-h1 em { font-style: normal; color: var(--accent-500); }
.yp-figure { margin: clamp(14px, 2vw, 28px) 0 0; }
.yp-figure__v {
  font-size: clamp(112px, 14.6vw, 224px); font-weight: 600; letter-spacing: -0.066em; line-height: 1;
  color: var(--ink-900); margin: 0 0 0 -0.045em; white-space: nowrap;
}
.yp-figure__v small { font-size: 0.42em; font-weight: 600; letter-spacing: -0.03em; color: var(--accent-500); margin-left: 0.06em; }
.yp-figure__k {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-500); margin: 6px 0 0;
}
.yp-hero__lede {
  font-size: clamp(16px, 1.42vw, 19px); line-height: 1.6; color: var(--ink-600);
  max-width: 50ch; margin: clamp(22px, 2.4vw, 32px) 0 0; text-wrap: pretty;
}
.yp-hero__lede strong { color: var(--ink-900); font-weight: 600; }
.yp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(26px, 2.8vw, 36px); }

/* A photograph in a frame, with a caption that says what it is not. */
.yp-photo { margin: 0; min-width: 0; }
.yp-photo__frame { border-radius: var(--r-4); overflow: hidden; background: var(--paper-200); }
.yp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yp-photo figcaption {
  margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-500);
}
.yp-hero__photo .yp-photo__frame { aspect-ratio: 4 / 5; }
/* The portrait keeps its 4:5 crop and sits against the right edge of the page.
   It stops growing once it is 600px tall, or 62% of the screen's height, so a
   wider page does not push the figures beneath it off the first screen. */
.yp-hero__photo { justify-self: end; width: min(100%, calc(min(600px, 62vh) * 0.8)); }
/* On first paint the hero photograph eases out of a slightly tighter crop. */
.yp-hero__photo .yp-photo__frame { animation: yp-frame-in 1300ms var(--ease) 60ms both; }
.yp-hero__photo img { animation: yp-photo-in 1900ms var(--ease) 60ms both; }
.yp-hero__photo figcaption { animation: pm-rise var(--pm-dur-stage) var(--ease) 700ms both; }
/* The figures under the hero join its first-paint build only where the first
   screen is tall enough to show them. On a shorter screen they are below the
   fold, so nothing plays unseen: Reveal brings them in when they are reached. */
@media (min-width: 901px) and (min-height: 1000px) {
  .yp-firstscreen { animation: pm-rise var(--pm-dur-stage) var(--ease) both; animation-delay: var(--rd, 0ms); }
}
@keyframes yp-frame-in { from { opacity: 0; clip-path: inset(5% 5% 5% 5% round 12px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 12px); } }
@keyframes yp-photo-in { from { transform: scale(1.08); } to { transform: scale(1); } }
/* Photographs further down ease in the same way when they come into view. */
.sa-reveal--armed .yp-photo__frame { clip-path: inset(5% 5% 5% 5% round 12px); }
.sa-reveal--armed .yp-photo__frame img { transform: scale(1.07); }
.sa-reveal--armed.is-in .yp-photo__frame { clip-path: inset(0 0 0 0 round 12px); transition: clip-path 1200ms var(--ease); }
.sa-reveal--armed.is-in .yp-photo__frame img { transform: none; transition: transform 1700ms var(--ease); }

/* The two medians and the metropolitan benchmark — one level below the figure. */
.yp-rail {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(44px, 5.4vw, 80px) 0 0;
  border-top: 1px solid var(--ink-900);
}
.yp-rail__item { padding: 22px 28px 0 0; min-width: 0; }
.yp-rail__item + .yp-rail__item { border-left: 1px solid var(--paper-300); padding-left: 28px; }
.yp-rail dt {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-500); margin: 0;
}
.yp-rail dd { margin: 14px 0 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.036em; line-height: 1; color: var(--ink-900); }
.yp-rail dd.yp-rail__note { margin-top: 10px; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--ink-500); text-wrap: balance; }
/* The disclaimer belongs to the rail, so it runs the rail's full width and
   wraps where the sentence does, not at a character count. */
.yp-scope { margin: 26px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-600); text-wrap: pretty; }
.yp-scope b { color: var(--ink-900); font-weight: 600; }

/* ═══ Exhibits ════════════════════════════════════════════════════════════ */
.yp-exh { margin: 0; min-width: 0; }
.yp-exh__foot {
  margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--paper-300);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-500); text-wrap: pretty;
}

/* 01 · In context — one bar per area on a shared scale, with a dashed line at
   the benchmark so every other area reads against it. */
.yp-cmp {
  position: relative; margin: 0; padding: 26px 0 4px; list-style: none; display: grid; gap: 18px;
  border-top: 1px solid var(--ink-900); --name: 260px; --gap: 28px;
}
.yp-cmp::after {
  content: ""; position: absolute; top: 12px; bottom: 0; width: 0; border-left: 1px dashed var(--ink-300);
  left: calc(var(--name) + var(--gap) + (100% - var(--name) - var(--gap)) * var(--ref));
}
.yp-cmp__row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); column-gap: var(--gap); align-items: center; }
.yp-cmp__name { font-size: 15px; color: var(--ink-700); min-width: 0; }
.yp-cmp__name small { display: block; font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.yp-cmp__row--subject .yp-cmp__name { color: var(--ink-900); font-weight: 600; }
.yp-cmp__track { display: flex; align-items: center; gap: 14px; min-width: 0; }
.yp-cmp__bar { height: 26px; border-radius: 3px; background: var(--accent-200); flex: none; transform-origin: left center; }
.yp-cmp__row--subject .yp-cmp__bar { background: var(--accent-900); }
.yp-cmp__row--metro .yp-cmp__bar { background: var(--accent-500); }
.yp-cmp__v { position: relative; z-index: 1; font-size: 15px; font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.yp-cmp__row--subject .yp-cmp__v { font-size: 22px; letter-spacing: -0.025em; }
/* The bars grow from zero, top to bottom, when the chart comes into view. */
.sa-reveal--armed .yp-cmp__bar { transform: scaleX(0); }
.sa-reveal--armed .yp-cmp__v, .sa-reveal--armed .yp-cmp::after { opacity: 0; }
.sa-reveal--armed.is-in .yp-cmp__bar { transform: scaleX(1); transition: transform 900ms var(--ease) calc(var(--i) * 85ms + 180ms); }
.sa-reveal--armed.is-in .yp-cmp__v { opacity: 1; transition: opacity 420ms var(--ease) calc(var(--i) * 85ms + 700ms); }
.sa-reveal--armed.is-in .yp-cmp::after { opacity: 1; transition: opacity 600ms var(--ease) 1000ms; }

/* How the two medians moved — the reason the yield changed, read across a line. */
.yp-move {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 6vw, 96px); align-items: start; margin-top: clamp(60px, 7vw, 104px);
}
.yp-shift { display: flex; align-items: flex-end; gap: 18px; margin: 30px 0 0; }
.yp-shift__then, .yp-shift__now {
  display: flex; flex-direction: column; font-size: clamp(30px, 3.3vw, 46px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1; white-space: nowrap;
}
.yp-shift small {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-500); margin-bottom: 10px;
}
.yp-shift__then { color: var(--ink-500); }
.yp-shift__now { color: var(--ink-900); }
.yp-shift__arrow { color: var(--accent-500); width: 48px; flex: none; padding-bottom: 0.32em; }
.yp-shift__arrow svg { display: block; width: 48px; height: 12px; }
.yp-mv { width: 100%; border-collapse: collapse; margin: 0; }
.yp-mv th, .yp-mv td { padding: 14px 0 14px 24px; text-align: right; border-bottom: 1px solid var(--paper-300); vertical-align: baseline; }
.yp-mv tr > :first-child { padding-left: 0; text-align: left; }
.yp-mv thead th {
  font-size: 14px; font-weight: 600; color: var(--ink-900); line-height: 1.35;
  border-bottom: 1px solid var(--ink-900); padding-top: 0; vertical-align: bottom;
}
.yp-mv thead td { border-bottom: 1px solid var(--ink-900); }
.yp-mv thead th small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-500); margin-top: 2px; }
/* A period ("January to March 2026") never breaks: the line turns before it. */
.yp-nb { white-space: nowrap; }
.yp-mv tbody th { font-size: 14.5px; font-weight: 400; color: var(--ink-700); text-wrap: balance; }
.yp-mv td { font-size: 15px; font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.yp-mv__lead th { color: var(--ink-900); font-weight: 600; }
.yp-mv__lead td { font-size: 22px; letter-spacing: -0.02em; }

/* ═══ 02 · Your numbers — the lead-in to the calculator island ════════════ */
.yp-model { background: var(--paper-100); padding: var(--pm-chapter-pad) 0 clamp(28px, 3.2vw, 44px); scroll-margin-top: 72px; }
.yp-model .pm-sectionhead { margin-bottom: 0; }

/* ═══ 03 · Sensitivity — a grid of yields around the medians ══════════════ */
.yp-sens { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); gap: clamp(36px, 5.4vw, 88px); align-items: start; }
.yp-sens__grid { overflow: hidden; }
.yp-mx { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.yp-mx th, .yp-mx td { position: relative; height: 58px; padding: 0 6px; text-align: center; }
.yp-mx thead th {
  height: 44px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--ink-500); border-bottom: 1px solid var(--ink-900);
}
.yp-mx tbody th {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-500);
  text-align: left; padding-left: 0; border-bottom: 1px solid var(--paper-300);
}
.yp-mx .yp-mx__mid { color: var(--ink-900); font-weight: 600; }
.yp-mx thead th.yp-mx__corner { text-align: left; padding-left: 0; }
.yp-mx__corner span { display: block; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; }
.yp-mx__corner span:first-child { text-align: right; padding-right: 10px; }
.yp-mx td {
  font-size: 15px; font-weight: 500; color: var(--ink-700); border-bottom: 1px solid var(--paper-300);
  transition: box-shadow var(--dur-1) var(--ease);
}
.yp-mx td.yp-mx__metro { background: var(--accent-50); color: var(--accent-700); font-weight: 600; }
.yp-mx td.yp-mx__bench { background: var(--accent-900); color: #fff; font-weight: 600; }
/* A crosshair follows the pointer: the hovered cell's row and column are tinted,
   so the rent and the price it belongs to are easy to read off. */
.yp-mx td::before, .yp-mx td::after {
  content: ""; position: absolute; background: var(--ink-900); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
.yp-mx td::before { left: -2000px; right: -2000px; top: 0; bottom: 0; }
.yp-mx td::after { top: -2000px; bottom: -2000px; left: 0; right: 0; }
.yp-mx td:hover::before, .yp-mx td:hover::after { opacity: 0.05; }
.yp-mx td:hover { box-shadow: inset 0 0 0 1.5px var(--accent-500); }
.yp-mx td.yp-mx__bench:hover { box-shadow: inset 0 0 0 1.5px var(--accent-200); }
/* The grid fills in along its diagonal when it comes into view. */
.sa-reveal--armed .yp-mx td { opacity: 0; }
.sa-reveal--armed.is-in .yp-mx td {
  opacity: 1;
  transition: opacity 520ms var(--ease) calc(var(--d) * 55ms + 160ms), box-shadow var(--dur-1) var(--ease);
}
.yp-mx__key { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.yp-mx__swatch { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-700); }
.yp-mx__swatch::before { content: ""; width: 12px; height: 12px; border-radius: 2px; flex: none; }
.yp-mx__swatch--bench::before { background: var(--accent-900); }
.yp-mx__swatch--metro::before { background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent-200); }
.yp-take { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yp-take li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--paper-300); }
.yp-take .ry-ico { width: 20px; height: 20px; margin-top: 2px; }
.yp-take p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-600); text-wrap: pretty; }
.yp-take b { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; text-wrap: balance; }

/* ═══ 04 · By size — a real table at every width ══════════════════════════ */
.yp-fit { width: 100%; border-collapse: collapse; margin: 0; }
.yp-fit th, .yp-fit td { padding: 18px 0 18px 20px; text-align: right; border-bottom: 1px solid var(--paper-300); vertical-align: baseline; }
.yp-fit th:first-child, .yp-fit td:first-child { padding-left: 0; text-align: left; }
.yp-fit thead th {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-500); border-bottom: 1px solid var(--ink-900); padding-top: 0; padding-bottom: 12px;
}
.yp-fit tbody th { font-size: 16px; font-weight: 600; color: var(--ink-900); }
.yp-fit tbody th small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-500); margin-top: 2px; }
.yp-fit td { font-size: 15px; color: var(--ink-700); }
.yp-fit td.yp-fit__rent { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); }
.yp-fit td.yp-fit__price { font-weight: 600; color: var(--ink-900); }
.yp-fit td.yp-fit__price--mid { color: var(--accent-500); }
.yp-fit tbody tr { transition: background var(--dur-2) var(--ease); }
.yp-fit tbody tr:hover { background: var(--paper-150); }

/* ═══ 05 · Method — the sums, then the same three levels as a ladder ══════ */
.yp-method { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.yp-sums { margin: 0; border-top: 1px solid var(--ink-900); }
.yp-sum {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 176px; column-gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--paper-300);
}
.yp-sum dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin: 0; font-size: 15px; color: var(--ink-900); min-width: 0; }
.yp-sum dt small { flex: 1 1 100%; font-size: 12.5px; line-height: 1.5; color: var(--ink-500); text-wrap: balance; }
.yp-sum__v { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink-900); text-align: right; white-space: nowrap; }
.yp-sum--minus .yp-sum__v { font-weight: 500; color: var(--ink-600); }
.yp-sum__r { margin: 0; text-align: right; min-width: 0; }
.yp-sum__r b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--accent-500); white-space: nowrap; }
.yp-sum__r small { display: block; font-size: 12px; line-height: 1.4; color: var(--ink-500); margin-top: 5px; }
.yp-sum__r--neg b { color: var(--neg-600); }
.yp-sum--total { background: var(--paper-100); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.yp-sum--total dt { font-weight: 600; }
.yp-method__lad .ry-lad { margin-top: 22px; }
.yp-note { margin: 30px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-500); text-wrap: pretty; }

/* ═══ 06 · What moves it ══════════════════════════════════════════════════ */
.yp-factors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yp-factors li {
  display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); gap: 12px clamp(32px, 5vw, 88px);
  padding: clamp(24px, 2.8vw, 38px) 0; border-bottom: 1px solid var(--paper-300);
}
.yp-factors__fig { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink-900); margin: 0; white-space: nowrap; }
.yp-factors__fig small {
  display: block; font-size: 13.5px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--ink-500);
  margin-top: 10px; max-width: 30ch; white-space: normal; text-wrap: balance;
}
.yp-factors .yp-body { max-width: 78ch; }
.yp-more { margin: 26px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-600); text-wrap: pretty; }
.yp-more a, .yp-attrib a { color: var(--accent-700); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.yp-more a:focus-visible, .yp-attrib a:focus-visible, .yp-src__link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-radius: 2px; }

/* ═══ 07 · Sources, dates and limits ══════════════════════════════════════ */
.yp-src { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yp-src li { padding: 22px 0; border-bottom: 1px solid var(--paper-300); }
.yp-src__name { font-size: 16px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; color: var(--ink-900); margin: 0; text-wrap: balance; }
.yp-src__what { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-600); }
.yp-src__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-700); }
.yp-src__meta b { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); margin-right: 6px; }
.yp-src__link {
  display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent-700); text-decoration: none;
}
.yp-src__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.yp-attrib { margin: 24px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-600); text-wrap: pretty; }
.yp-limits { margin-top: 40px; }
.yp-limits ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.yp-limits li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.62; color: var(--ink-700); text-wrap: pretty; }
.yp-limits li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 9px; height: 1px; background: var(--ink-500); }
.yp-reviewed { margin: 20px 0 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.yp-sources .pm-disc { margin-top: 36px; }

/* ═══ Questions ═══════════════════════════════════════════════════════════ */
.yp-faq { columns: 2; column-gap: clamp(28px, 4vw, 64px); }
.yp-faq__item { break-inside: avoid; border-top: 1px solid var(--paper-300); }
.yp-faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 18px 0;
}
.yp-faq__item summary::-webkit-details-marker { display: none; }
.yp-faq__q { font-size: 15.5px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; margin: 0; text-wrap: balance; transition: color var(--dur-1) var(--ease); }
.yp-faq__glyph { flex-shrink: 0; width: 18px; height: 18px; position: relative; top: 2px; }
.yp-faq__glyph::before, .yp-faq__glyph::after { content: ""; position: absolute; background: var(--ink-500); transition: transform var(--dur-2) var(--ease); }
.yp-faq__glyph::before { left: 2px; right: 2px; top: 8px; height: 2px; }
.yp-faq__glyph::after { top: 2px; bottom: 2px; left: 8px; width: 2px; }
.yp-faq__item[open] .yp-faq__glyph::after { transform: scaleY(0); }
.yp-faq__item summary:hover .yp-faq__q { color: var(--accent-700); }
.yp-faq__item summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-radius: var(--r-1); }
.yp-faq__a { font-size: 14px; line-height: 1.62; color: var(--ink-600); margin: 0; padding: 0 26px 20px 0; text-wrap: pretty; }

/* ═══ Related ═════════════════════════════════════════════════════════════ */
.yp-links { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-900); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.yp-links a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; height: 100%;
  padding: 20px 0; border-bottom: 1px solid var(--paper-300); text-decoration: none; color: inherit;
}
.yp-links__t { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-900); transition: color var(--dur-1) var(--ease); }
.yp-links__d { grid-column: 1; font-size: 13.5px; line-height: 1.5; color: var(--ink-500); text-wrap: pretty; }
.yp-links__go { grid-row: 1 / span 2; grid-column: 2; color: var(--ink-300); transition: transform var(--dur-2) var(--ease), color var(--dur-1) var(--ease); }
.yp-links__go svg { width: 18px; height: 18px; display: block; }
.yp-links a:hover .yp-links__t { color: var(--accent-500); }
.yp-links a:hover .yp-links__go { transform: translateX(4px); color: var(--accent-500); }
.yp-links a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-radius: var(--r-1); }

/* ═══ Closing band — from the benchmark to the actual listing ═════════════ */
.yp-cta { position: relative; background: var(--pm-dark-bg); color: #fff; overflow: hidden; padding: clamp(72px, 9vw, 136px) 0; }
.yp-cta .pm-shell { position: relative; }
.yp-cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.yp-cta__title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.03; letter-spacing: -0.038em; margin: 0; color: #fff; text-wrap: balance;
}
.yp-cta__title em { font-style: normal; color: var(--accent-500); }
.yp-cta__body { font-size: clamp(15px, 1.45vw, 17px); line-height: 1.62; color: var(--pm-dark-dim); margin: 20px 0 0; max-width: 52ch; text-wrap: pretty; }
.yp-cta__row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(28px, 3.4vw, 40px); }
.yp-cta__photo .yp-photo__frame { aspect-ratio: 16 / 11; background: var(--pm-dark-line); }
.yp-cta__photo figcaption { color: var(--pm-dark-dim); }

/* ═══ Responsive — recomposed, not shrunk ═════════════════════════════════ */
@media (max-width: 1100px) {
  .yp-cmp { --name: 220px; --gap: 22px; }
  .yp-sum { grid-template-columns: minmax(0, 1fr) auto 150px; }
}
@media (max-width: 900px) {
  /* The figure leads; the photograph becomes a wide band beneath the copy. */
  .yp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .yp-hero__photo { justify-self: stretch; width: 100%; }
  /* The caption sits below the first screen on a phone: it is simply there. */
  .yp-hero__photo figcaption { animation: none; }
  .yp-hero__photo .yp-photo__frame { aspect-ratio: 16 / 9; }
  .yp-move, .yp-sens, .yp-method { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .yp-cta__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .yp-faq { columns: 1; }
  .yp-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .yp-wide {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .yp-narrow { display: inline; }
  .yp-hero { padding-top: 14px; padding-bottom: 44px; }
  /* A focused page on a phone: chapters keep their order and lose some air. */
  .yp .pm-chapter { padding: 56px 0; }
  .yp .pm-chapter--tight { padding: 40px 0; }
  .yp-model { padding: 56px 0 24px; }
  .yp-move { margin-top: 48px; }
  .yp-limits { margin-top: 32px; }
  .yp-figure__v { font-size: clamp(104px, 31vw, 148px); }
  /* The rail becomes three ruled rows: label and value on one line. */
  .yp-rail { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .yp-rail__item, .yp-rail__item + .yp-rail__item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline;
    padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--paper-300);
  }
  .yp-rail dd { margin: 0; font-size: 24px; text-align: right; }
  .yp-rail dd.yp-rail__note { grid-column: 1 / -1; margin-top: 6px; text-align: left; font-size: 12.5px; }
  /* Comparison rows stack: the name above its bar. */
  .yp-cmp { --name: 0px; --gap: 0px; gap: 16px; }
  .yp-cmp__row { grid-template-columns: minmax(0, 1fr); row-gap: 7px; }
  .yp-cmp__bar { height: 22px; }
  .yp-cmp::after { display: none; }
  .yp-shift { gap: 14px; }
  .yp-shift__arrow { width: 36px; }
  .yp-shift__arrow svg { width: 36px; }
  .yp-mv th, .yp-mv td { padding: 13px 0 13px 12px; }
  .yp-mv thead th { font-size: 13px; }
  .yp-mv thead th small { font-size: 11.5px; }
  .yp-mv tbody th, .yp-mv td { font-size: 14px; }
  .yp-mv tbody th { white-space: nowrap; }
  .yp-mv__lead td { font-size: 17px; }
  .yp-mx th, .yp-mx td { height: 50px; padding: 0 2px; }
  .yp-mx td { font-size: 13.5px; }
  .yp-mx thead th { font-size: 10px; letter-spacing: 0.02em; }
  .yp-mx tbody th { font-size: 10.5px; letter-spacing: 0.02em; }
  .yp-mx__corner span { font-size: 8.5px; letter-spacing: 0.06em; }
  .yp-fit__chg { display: none; }
  .yp-fit th, .yp-fit td { padding: 15px 0 15px 12px; }
  .yp-fit thead th { font-size: 9.5px; letter-spacing: 0.06em; }
  .yp-fit tbody th, .yp-fit td { font-size: 14px; }
  .yp-fit td.yp-fit__rent { font-size: 16px; }
  .yp-fit tbody th small { font-size: 11.5px; }
  /* Each sum keeps its amount beside the label; a result drops to its own line. */
  .yp-sum { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .yp-sum__r { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; }
  .yp-sum__r:empty { display: none; }
  .yp-sum__r b { font-size: 24px; }
  .yp-sum__r small { margin-top: 0; }
  .yp-sum--total { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .yp-factors li { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .yp-factors__fig { font-size: 32px; }
  .yp-factors__fig small { margin-top: 6px; max-width: none; }
  .yp-hero__cta .pm-btn, .yp-cta__row .pm-btn { flex: 1 1 auto; justify-content: center; }
}

/* ═══ Reduced motion — final state immediately ════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .yp-hero__photo .yp-photo__frame, .yp-hero__photo img, .yp-hero__photo figcaption, .yp-firstscreen { animation: none !important; }
  .yp-photo__frame, .yp-photo__frame img, .yp-cmp__bar, .yp-cmp__v, .yp-cmp::after,
  .yp-mx td, .yp-mx td::before, .yp-mx td::after, .yp-fit tbody tr, .yp-faq__q,
  .yp-faq__glyph::before, .yp-faq__glyph::after, .yp-links__t, .yp-links__go {
    transition: none !important;
  }
}



/* ── The central visual: every dwelling type on one scale ───────────────── */
.yp .yn-lad { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-900); }
.yp .yn-lad__row {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 32px; align-items: center;
  padding: 40px 0 26px; border-bottom: 1px solid var(--paper-300);
}
.yp .yn-stack > * + * { margin-top: clamp(56px, 6vw, 88px); }
.yp .yn-lad__name { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--ink-900); letter-spacing: -0.01em; }
.yp .yn-lad__name small { display: block; margin-top: 4px; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--ink-500); letter-spacing: 0; }
.yp .yn-lad__track { position: relative; height: 44px; border-radius: 4px; background: var(--paper-150); }
.yp .yn-lad__bar {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent-200);
  transform-origin: left center;
}
.yp .yn-lad__row--lead .yn-lad__bar { background: var(--accent-900); }
.yp .yn-lad__row--limited .yn-lad__bar {
  background-color: var(--paper-100); background-image: repeating-linear-gradient(-45deg, var(--accent-200) 0 1.5px, transparent 1.5px 6px);
  box-shadow: inset 0 0 0 1px var(--accent-200);
}
.yp .yn-lad__v {
  position: absolute; top: 50%; transform: translateY(-50%); margin-left: 14px;
  font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: -0.025em; color: var(--ink-900);
  font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.yp .yn-lad__row--lead .yn-lad__v { font-size: 30px; }
.yp .yn-lad__tick {
  position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 1.5px solid var(--accent-500);
}
.yp .yn-lad__tick span {
  position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); margin-bottom: 3px;
  font-family: var(--font-mono); font-size: 11px; line-height: 16px;
  letter-spacing: 0.04em; color: var(--accent-500); white-space: nowrap;
}
.yp .yn-lad__facts {
  grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 13.5px; color: var(--ink-700); font-variant-numeric: tabular-nums lining-nums;
}
.yp .yn-lad__facts b { color: var(--ink-900); font-weight: 600; }
.yp .yn-lad__none {
  position: absolute; inset: 0; border-radius: 4px; display: flex; align-items: center; padding: 0 16px;
  background-image: repeating-linear-gradient(-45deg, var(--paper-300) 0 1px, transparent 1px 7px);
  border: 1px dashed var(--paper-300); font-size: 14px; color: var(--ink-500);
}
.yp .yn-lad__basis { grid-column: 2; margin: 10px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-500); text-wrap: pretty; }
.sa-reveal--armed .yn-lad__bar { transform: scaleX(0); }
.sa-reveal--armed .yn-lad__v, .sa-reveal--armed .yn-lad__tick { opacity: 0; }
.sa-reveal--armed.is-in .yn-lad__bar { transform: scaleX(1); transition: transform 900ms var(--ease) calc(var(--i) * 110ms + 160ms); }
.sa-reveal--armed.is-in .yn-lad__v { opacity: 1; transition: opacity 420ms var(--ease) calc(var(--i) * 110ms + 760ms); }
.sa-reveal--armed.is-in .yn-lad__tick { opacity: 1; transition: opacity 500ms var(--ease) 1100ms; }

/* ── The comparison table ──────────────────────────────────────────────── */
.yp .yn-table-wrap { margin-top: clamp(44px, 5vw, 72px); overflow-x: auto; }
.yp .yn-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums lining-nums; }
.yp .yn-table caption { caption-side: bottom; text-align: left; padding-top: 14px; font-size: 13px; line-height: 20px; color: var(--ink-500); }
.yp .yn-table th, .yp .yn-table td { padding: 14px 0 14px 18px; border-bottom: 1px solid var(--paper-300); text-align: right; vertical-align: top; }
.yp .yn-table th:first-child, .yp .yn-table td:first-child { padding-left: 0; text-align: left; }
.yp .yn-table thead th {
  font-family: var(--font-mono); font-size: 11px; line-height: 16px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
  border-bottom: 1px solid var(--ink-900);
}
.yp .yn-table tbody th { font-weight: 600; color: var(--ink-900); }
.yp .yn-table td small, .yp .yn-table th small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-500); margin-top: 2px; }
.yp .yn-table a { color: var(--ink-900); text-decoration: none; border-bottom: 1px solid var(--paper-300); }
.yp .yn-table a:hover { color: var(--accent-500); border-color: var(--accent-500); }
.yp .yn-dim { color: var(--ink-300); }

/* ── Type selector above the calculator ────────────────────────────────── */
.yp .yn-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 0 0 28px; }
.yp .yn-picker__label { font-size: 15px; color: var(--ink-700); }

/* ── Census dwelling mix: one stacked bar, labelled directly ───────────── */
.yp .yn-mix { margin: 0; }
.yp .yn-mix__bar { display: flex; height: 48px; border-radius: 4px; overflow: hidden; background: var(--paper-150); }
.yp .yn-mix__seg { height: 100%; transform-origin: left center; }
.yp .yn-mix__seg--house { background: var(--accent-900); }
.yp .yn-mix__seg--semi { background: var(--accent-500); }
.yp .yn-mix__seg--flat { background: var(--accent-200); }
.yp .yn-mix__seg--other { background: var(--paper-300); }
.yp .yn-mix__keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.yp .yn-mix__keys li { border-top: 2px solid var(--paper-300); padding-top: 12px; font-size: 13.5px; color: var(--ink-700); }
.yp .yn-mix__keys li[data-k="house"] { border-color: var(--accent-900); }
.yp .yn-mix__keys li[data-k="semi"] { border-color: var(--accent-500); }
.yp .yn-mix__keys li[data-k="flat"] { border-color: var(--accent-200); }
.yp .yn-mix__keys b { display: block; font-size: 24px; line-height: 30px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.sa-reveal--armed .yn-mix__seg { transform: scaleX(0); }
.sa-reveal--armed.is-in .yn-mix__seg { transform: scaleX(1); transition: transform 800ms var(--ease) calc(var(--i) * 120ms + 120ms); }

.yp .yn-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.yp .yn-near { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-900); }
.yp .yn-near li { border-bottom: 1px solid var(--paper-300); }
.yp .yn-near a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 16px 0;
  color: var(--ink-900); text-decoration: none; font-variant-numeric: tabular-nums lining-nums;
}
.yp .yn-near a:hover .yn-near__n { color: var(--accent-500); }
.yp .yn-near__n { font-size: 16px; font-weight: 500; transition: color 160ms var(--ease); }
.yp .yn-near__y { font-size: 16px; font-weight: 600; }
.yp .yn-near__d { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-500); }

@media (max-width: 900px) {
  .yp .yn-lad__row { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding: 22px 0; }
  .yp .yn-lad__facts, .yp .yn-lad__basis { grid-column: 1; }
  .yp .yn-lad__facts { margin-top: 16px; }
  .yp .yn-two { grid-template-columns: minmax(0, 1fr); }
  .yp .yn-mix__keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .yp .yn-lad__track { height: 38px; }
  .yp .yn-lad__v { font-size: 20px; }
  .yp .yn-lad__row--lead .yn-lad__v { font-size: 24px; }
  .yp .yn-table { font-size: 13px; }
  .yp .yn-table th, .yp .yn-table td { padding: 12px 0 12px 12px; }
  .yp .yn-table--wide thead { display: none; }
  .yp .yn-table--wide tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; border-bottom: 1px solid var(--paper-300); }
  .yp .yn-table--wide th, .yp .yn-table--wide td { border: 0; padding: 2px 0; text-align: left; }
  .yp .yn-table--wide td[data-label]::before { content: attr(data-label) " "; color: var(--ink-500); font-size: 12px; }
  .yp .yn-table--wide th[scope="row"] { grid-column: 1 / -1; padding-bottom: 6px; }
  .yp .yn-table--wide td[data-label="Periods"], .yp .yn-table--wide td[data-label="Sample"], .yp .yn-table--wide td[data-label="Area"] { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .yp .yn-lad__bar, .yp .yn-lad__v, .yp .yn-lad__tick, .yp .yn-mix__seg, .yp .yn-near__n { transition: none !important; }
  .sa-reveal--armed .yn-lad__bar, .sa-reveal--armed .yn-mix__seg { transform: none !important; }
  .sa-reveal--armed .yn-lad__v, .sa-reveal--armed .yn-lad__tick { opacity: 1 !important; }
}


.yh { --yh-bg: var(--paper-100); }
.yh .pm-bg-soft { --yh-bg: var(--paper-150); }
.yh :is(.yh-hero--au, .yh-hero--state) { --yh-bg: var(--pm-dark-bg); }
.yh summary { list-style: none; }
.yh summary::-webkit-details-marker { display: none; }
.yh-foot { max-width: none; }

/* Chapter rhythm. A hub has many chapters, so they sit a little closer than a flagship page’s,
   and two chapters on the same paper share one gap instead of stacking two. */
.yh .pm-chapter, .yh .yp-model { padding-top: clamp(60px, 7vw, 104px); }
.yh .pm-chapter { padding-bottom: clamp(60px, 7vw, 104px); }
.yh .pm-chapter--tight { padding: clamp(44px, 5vw, 72px) 0; }
.yh .pm-bg-paper + .pm-bg-paper, .yh .pm-bg-soft + .pm-bg-soft, .yh .pm-bg-paper + .yp-model, .yh .yh-bridge + .pm-bg-paper { padding-top: 0; }
.yh .pm-sectionhead { margin-bottom: clamp(32px, 4vw, 56px); }

/* A plus that becomes a minus when its row opens. */
.yh summary > i { flex: none; position: relative; width: 18px; height: 18px; }
.yh summary > i::before, .yh summary > i::after { content: ""; position: absolute; background: var(--ink-500); transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.yh summary > i::before { left: 2px; right: 2px; top: 8px; height: 2px; }
.yh summary > i::after { top: 2px; bottom: 2px; left: 8px; width: 2px; }
.yh details[open] > summary > i::after { transform: scaleY(0); }
.yh summary:hover > i::before, .yh summary:hover > i::after { background: var(--accent-500); }
.yh summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-radius: var(--r-1); }

/* ═══ Heroes ══════════════════════════════════════════════════════════════ */
.yh-hero { position: relative; }
.yh-hero--au, .yh-hero--state { background: var(--pm-dark-bg); color: var(--paper-100); padding: clamp(28px, 3.6vw, 60px) 0 clamp(52px, 6vw, 92px); overflow: hidden; }
.yh-hero--city { background: var(--paper-100); padding: clamp(20px, 2.6vw, 40px) 0 clamp(48px, 5.4vw, 80px); }
.yh-hero .pm-shell { position: relative; }
.yh-hero__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(24px, 3.4vw, 56px); align-items: center; }
.yh-hero--state .yh-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); }
.yh-hero--city .yh-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); }
.yh-hero__copy { min-width: 0; }
.yh-hero .pm-smark { margin-bottom: clamp(16px, 1.8vw, 22px); }

.yh-h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.06;
  letter-spacing: -0.034em; margin: 0; text-wrap: balance; color: var(--ink-900);
}
:is(.yh-hero--au, .yh-hero--state) .yh-h1 { color: var(--paper-100); }
.yh-h1 em { font-style: normal; color: var(--accent-500); }
.yh-h1--display { font-size: var(--pm-display); line-height: 0.99; letter-spacing: -0.044em; }

.yh-hero__lede { margin: clamp(18px, 2vw, 26px) 0 0; max-width: 58ch; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.6; color: var(--pm-dark-dim); text-wrap: pretty; }
.yh-hero--au .yh-hero__lede { max-width: 46ch; margin-top: clamp(20px, 2.2vw, 28px); font-size: clamp(16px, 1.42vw, 19px); line-height: 1.56; }
.yh-hero--city .yh-hero__lede { color: var(--ink-600); }
.yh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.6vw, 34px); }
.yh-hero .pm-btn--ondark:focus-visible { box-shadow: 0 0 0 3px var(--pm-dark-faint); }

/* The one figure the hub's data supports. */
.yh-fig { margin: clamp(22px, 2.6vw, 36px) 0 0; }
.yh-fig__k { margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pm-dark-dim); }
.yh-fig__v { margin: 10px 0 0 -0.04em; font-size: clamp(64px, 8.2vw, 124px); line-height: 0.94; font-weight: 600; letter-spacing: -0.056em; white-space: nowrap; color: var(--paper-100); }
.yh-fig__v small { font-size: 0.42em; font-weight: 600; letter-spacing: -0.03em; color: var(--accent-500); margin-left: 0.06em; }
.yh-fig__d { margin: 14px 0 0; max-width: 54ch; font-size: 15px; line-height: 1.55; color: var(--pm-dark-dim); text-wrap: pretty; }
.yh-fig__delta { font-weight: 600; color: var(--paper-100); white-space: nowrap; }
/* A 2021 Census figure is shown, and visibly not current. */
.yh-fig--dated .yh-fig__v { color: var(--pm-dark-dim); }
.yh-hero--city .yh-fig__k { color: var(--ink-500); }
.yh-hero--city .yh-fig__v { font-size: clamp(72px, 10.4vw, 164px); color: var(--ink-900); }
.yh-hero--city .yh-fig__d { color: var(--ink-600); }
.yh-hero--city .yh-fig__delta { color: var(--ink-900); }
.yh-hero--city .yh-fig--dated .yh-fig__v { color: var(--ink-500); }

/* What each tone of the atlas means. */
.yh-key { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; max-width: 560px; border-top: 1px solid var(--pm-dark-line); }
.yh-key li { display: grid; grid-template-columns: 16px 150px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--pm-dark-line); font-size: 13.5px; line-height: 1.45; }
.yh-key i { align-self: center; justify-self: center; width: 9px; height: 9px; border-radius: 999px; background: var(--paper-100); }
.yh-key li[data-k="rent"] i { background: var(--accent-500); }
.yh-key li[data-k="census"] i { width: 5px; height: 5px; background: var(--pm-dark-faint); }
.yh-key b { font-weight: 500; color: var(--paper-100); }
.yh-key span { color: var(--pm-dark-dim); }

/* The ledger: what is and is not published for the area. */
.yh-ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(40px, 5vw, 76px) 0 0; border-top: 1px solid var(--pm-dark-line); }
.yh-ledger__item { min-width: 0; padding: 20px 24px 0 0; }
.yh-ledger__item + .yh-ledger__item { padding-left: 24px; border-left: 1px solid var(--pm-dark-line); }
.yh-ledger dt { display: flex; align-items: center; gap: 9px; margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pm-dark-dim); }
.yh-ledger dt i { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--accent-500); }
.yh-ledger__item[data-on="false"] dt i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pm-dark-faint); }
.yh-ledger dd { margin: 10px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--paper-100); text-wrap: balance; }
.yh-ledger__item[data-on="false"] dd { font-weight: 400; color: var(--pm-dark-dim); }
.yh-hero--city .yh-ledger { border-top-color: var(--ink-900); }
.yh-hero--city .yh-ledger__item + .yh-ledger__item { border-left-color: var(--paper-300); }
.yh-hero--city .yh-ledger dt { color: var(--ink-500); }
.yh-hero--city .yh-ledger__item[data-on="false"] dt i { box-shadow: inset 0 0 0 1.5px var(--ink-300); }
.yh-hero--city .yh-ledger dd { color: var(--ink-900); }
.yh-hero--city .yh-ledger__item[data-on="false"] dd { color: var(--ink-500); }

/* ═══ The dot atlas ═══════════════════════════════════════════════════════ */
.yh-map { position: relative; }
.yh-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.yh-dots { fill: none; stroke-linecap: round; }
.yh-map__hit { fill: transparent; stroke: none; }
/* Solid: yields. Blue: current rents. Small and faint: the 2021 Census only. */
.yh-map__st { stroke: var(--paper-100); stroke-width: 4.8; }
.yh-map__st[data-k="rent"] { stroke: var(--accent-500); }
.yh-map__st[data-k="census"] { stroke: var(--pm-dark-faint); stroke-width: 2.3; }
.yh-map--light .yh-map__st { stroke: var(--paper-400); stroke-width: 4.4; }
.yh-map--light .yh-map__st[data-k="census"] { stroke: var(--paper-400); stroke-width: 2.3; }

/* Australia: the continent is the navigation. */
.yh-stage { position: relative; padding: 26px clamp(72px, 6.6vw, 96px) 30px 0; }
.yh-map--au { animation: yh-wipe 1500ms var(--ease) 140ms backwards; }
.yh-map--au .yh-map__st { cursor: pointer; transition: opacity 260ms var(--ease), stroke 260ms var(--ease); }
.yh-map--au svg:hover .yh-map__st:not(:hover) { opacity: 0.42; }
.yh-map--au .yh-map__st[data-k="census"]:hover { stroke: var(--pm-dark-dim); }
@keyframes yh-wipe { from { clip-path: circle(0% at 84% 64%); } to { clip-path: circle(150% at 84% 64%); } }

/* Cities: a node, and a tag that says which. */
.yh-node { position: absolute; width: 0; height: 0; z-index: 2; text-decoration: none; }
.yh-node i { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 999px; background: var(--accent-500); box-shadow: 0 0 0 2px var(--yh-bg); }
.yh-node--cap i { left: -5.5px; top: -5.5px; width: 11px; height: 11px; box-shadow: 0 0 0 2px var(--paper-100), 0 0 0 4.5px var(--yh-bg); }
.yh-node b {
  position: absolute; white-space: nowrap; padding: 4px 7px; border-radius: 3px; background: var(--yh-bg);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-100);
}
.yh-node--e b { left: 14px; top: 0; transform: translateY(-50%); }
.yh-node--w b { right: 14px; top: 0; transform: translateY(-50%); }
.yh-node--n b { left: 0; bottom: 12px; transform: translateX(-50%); }
.yh-node--s b { left: 0; top: 12px; transform: translateX(-50%); }
.yh-node--ne b { left: 9px; bottom: 7px; }
.yh-node--se b { left: 9px; top: 7px; }
.yh-node--sw b { right: 9px; top: 7px; }
.yh-map--au .yh-node { animation: yh-pop 520ms var(--ease) 1150ms backwards; pointer-events: none; }
.yh-map--au .yh-node--cap { animation-delay: 950ms; }
@keyframes yh-pop { from { opacity: 0; transform: scale(0.4); } }

/* On a state, the tags are the links to its cities. */
.yh-node--tag b {
  padding: 6px 10px; border-radius: var(--r-1); border: 1px solid var(--pm-dark-line);
  font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 500;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
a.yh-node--tag:hover b, a.yh-node--tag:focus-visible b { background: var(--accent-500); border-color: var(--accent-500); color: var(--paper-100); }
a.yh-node--tag:hover i, a.yh-node--tag:focus-visible i { background: var(--paper-100); }
a.yh-node:focus-visible { outline: none; }
a.yh-node--tag:focus-visible b { box-shadow: 0 0 0 3px var(--pm-dark-faint); }
.yh-map--state .yh-node { animation: yh-pop 520ms var(--ease) 900ms backwards; }
.yh-map--light .yh-node--tag b { border-color: var(--paper-300); color: var(--ink-900); }
.yh-map--light .yh-node--quiet b { color: var(--ink-600); }
.yh-map--light .yh-node--quiet i { background: var(--ink-300); }
.yh-map--light .yh-node--here b { background: var(--accent-900); border-color: var(--accent-900); color: var(--paper-100); }
.yh-map--light .yh-node--here i { left: -6.5px; top: -6.5px; width: 13px; height: 13px; box-shadow: 0 0 0 2px var(--paper-100), 0 0 0 4px var(--accent-500); }
.yh-map--light a.yh-node--tag:focus-visible b { box-shadow: 0 0 0 3px var(--accent-100); }

/* The readout: the state under the pointer, and the figure its page leads with. */
.yh-read { position: absolute; left: 0; bottom: 0; z-index: 3; width: min(318px, 48%); padding: 15px 18px 16px; border: 1px solid var(--pm-dark-line); border-radius: var(--r-3); background: var(--pm-dark-bg); pointer-events: none; }
@keyframes yh-read { from { opacity: 0; transform: translateY(5px); } }
.yh-read__k { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; font-weight: 600; color: var(--paper-100); }
.yh-read__k span { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pm-dark-dim); white-space: nowrap; }
.yh-read__v { display: flex; align-items: baseline; gap: 9px; margin: 10px 0 0; font-size: 38px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--paper-100); white-space: nowrap; }
.yh-read__v small { font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--pm-dark-dim); }
.yh-read__d { margin: 9px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--pm-dark-dim); text-wrap: pretty; }

/* A state at its own scale. */
.yh-hero--state .yh-hero__visual { padding: 8px clamp(88px, 9vw, 132px) 8px 8px; }
.yh-map--state, .yh-map--city { margin: 0 auto; aspect-ratio: var(--c) / var(--r); width: min(100%, calc(min(500px, 56vh) * var(--c) / var(--r))); }
.yh-map--state svg { animation: yh-wipe-in 1200ms var(--ease) 160ms backwards; }
@keyframes yh-wipe-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.yh-hero__where { display: flex; align-items: center; gap: 16px; margin: clamp(22px, 2.6vw, 34px) 0 0; }
.yh-hero__where span { font-size: 14px; font-weight: 500; color: var(--paper-100); }
.yh-hero__where small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--pm-dark-dim); }
.yh-locator { flex: none; width: 66px; height: auto; overflow: visible; }
.yh-locator path { fill: none; stroke: var(--pm-dark-faint); stroke-width: 4.4; stroke-linecap: round; }
.yh-locator .yh-locator__on { stroke: var(--paper-100); stroke-width: 6.4; }
.yh-locator__pin { fill: var(--accent-500); stroke: var(--paper-100); stroke-width: 2; }

/* A city: its own ABS area, and every published suburb where it is. */
.yh-local { margin: 0; min-width: 0; }
/* A city shown on its state leaves room on the right for the coast’s tags. */
.yh-local--state { padding-right: clamp(108px, 9vw, 132px); }
.yh-map--city { width: min(100%, calc(min(600px, 66vh) * var(--c) / var(--r))); }
.yh-map--city .yh-dots { stroke: var(--paper-300); stroke-width: 4.2; }
.yh-map--city svg { animation: yh-wipe-in 1200ms var(--ease) 160ms backwards; }
.yh-sub {
  position: absolute; z-index: 1; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 999px;
  background: var(--accent-200); box-shadow: 0 0 0 1.5px var(--paper-100);
  animation: yh-pop 420ms var(--ease) backwards; animation-delay: calc(var(--i) * 5ms + 520ms);
}
.yh-map--city[data-dense] .yh-sub { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; box-shadow: 0 0 0 1px var(--paper-100); }
.yh-sub--2 { background: var(--accent-500); }
.yh-sub--3 { background: var(--accent-900); }
.yh-sub.yh-sub--0 { background: var(--paper-100); box-shadow: inset 0 0 0 1.5px var(--ink-300), 0 0 0 1px var(--paper-100); }
.yh-sub.yh-sub:hover { z-index: 4; box-shadow: 0 0 0 2px var(--paper-100), 0 0 0 4px var(--accent-500); }
.yh-sub::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  padding: 6px 9px; border-radius: var(--r-1); background: var(--accent-900); color: var(--paper-100);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--dur-1) var(--ease);
}
.yh-sub--left::after { left: auto; right: -6px; transform: none; }
.yh-sub:hover::after { opacity: 1; }
.yh-local__cap { margin: clamp(16px, 2vw, 24px) 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-500); text-wrap: pretty; }
.yh-local__cap span { display: block; }
.yh-local__key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; padding: 0; font-size: 12.5px; color: var(--ink-700); }
.yh-local__key li { display: inline-flex; align-items: center; gap: 7px; }
.yh-local__key li::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--accent-200); }
.yh-local__key li[data-b="2"]::before { background: var(--accent-500); }
.yh-local__key li[data-b="3"]::before { background: var(--accent-900); }
.yh-local__key li[data-b="0"]::before { background: var(--paper-100); box-shadow: inset 0 0 0 1.5px var(--ink-300); }

/* Small silhouettes for navigation. */
.yh-glyph { display: block; overflow: visible; }
.yh-glyph path { fill: none; stroke: var(--accent-900); stroke-width: 5.6; stroke-linecap: round; transition: stroke var(--dur-2) var(--ease); }
.yh-glyph[data-k="rent"] path { stroke: var(--accent-500); }
.yh-glyph[data-k="census"] path { stroke: var(--paper-400); stroke-width: 3.4; }

/* ═══ Navigation ══════════════════════════════════════════════════════════ */
.yh-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 88px); }
.yh-index li { border-top: 1px solid var(--paper-300); }
.yh-index li:nth-child(-n+2) { border-top-color: var(--ink-900); }
.yh-index li:nth-last-child(-n+2) { border-bottom: 1px solid var(--paper-300); }
.yh-index a {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) auto 20px; grid-template-areas: "g n f go" "g d d go";
  column-gap: 20px; row-gap: 8px; align-items: center; padding: 22px 0; color: var(--ink-900); text-decoration: none;
}
.yh-index__g { grid-area: g; width: 78px; height: 70px; }
.yh-index__n { grid-area: n; min-width: 0; }
.yh-index__n b { display: block; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; font-weight: 600; letter-spacing: -0.026em; transition: color var(--dur-2) var(--ease); }
.yh-index__n small, .yh-places__n small { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.yh-index__f { grid-area: f; text-align: right; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; font-weight: 600; letter-spacing: -0.036em; white-space: nowrap; }
.yh-index__f small, .yh-places__f small { display: block; margin-top: 7px; font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-500); }
.yh-index__d { grid-area: d; font-size: 13px; line-height: 1.5; color: var(--ink-500); text-wrap: pretty; }
.yh-index__go, .yh-places__go { color: var(--ink-300); transition: transform var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.yh-index__go { grid-area: go; }
.yh-index li[data-k="census"] .yh-index__f { color: var(--ink-500); }
.yh-index a:hover .yh-index__n b, .yh-places__list a:hover .yh-places__n b, .yh-others a:hover b { color: var(--accent-500); }
.yh-index a:hover .yh-index__go, .yh-places__list a:hover .yh-places__go { transform: translateX(5px); color: var(--accent-500); }
.yh-index a:hover .yh-glyph path, .yh-others a:hover .yh-glyph path { stroke: var(--accent-500); }
.yh-index a:focus-visible, .yh-places__list a:focus-visible, .yh-others a:focus-visible, .yh-rank__list a:focus-visible, .yh-dir__list a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-radius: var(--r-1); }

.yh-places { display: grid; gap: clamp(40px, 5vw, 72px); }
.yh-places--split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 88px); align-items: start; }
.yh-places__h { margin: 0 0 14px; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-900); }
.yh-places__h span { margin-left: 6px; font-weight: 400; color: var(--ink-500); }
.yh-places__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yh-places__list li { border-bottom: 1px solid var(--paper-300); }
.yh-places__list a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 20px; column-gap: 14px; align-items: center; padding: 14px 0; color: var(--ink-900); text-decoration: none; }
.yh-places__dot { justify-self: center; width: 7px; height: 7px; border-radius: 999px; background: var(--accent-500); }
.yh-places__dot--cap { width: 11px; height: 11px; border: 2px solid var(--yh-bg); outline: 1.5px solid var(--accent-500); }
.yh-places__list li[data-k="census"] .yh-places__dot { background: var(--ink-300); outline-color: var(--ink-300); }
.yh-places__n { min-width: 0; }
.yh-places__n b { display: block; font-size: 17px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; transition: color var(--dur-2) var(--ease); }
.yh-places__n small { margin-top: 4px; }
.yh-places__f { text-align: right; font-size: 19px; line-height: 1; font-weight: 600; letter-spacing: -0.024em; white-space: nowrap; }
.yh-places__f small { margin-top: 5px; font-size: 12px; }
.yh-places__list li[data-k="census"] .yh-places__f { color: var(--ink-500); }
.yh-places__list--large a { padding: 20px 0; }
.yh-places__list--large .yh-places__n b { font-size: clamp(20px, 1.9vw, 24px); }
.yh-places__list--large .yh-places__f { font-size: clamp(22px, 2.2vw, 28px); }
/* A state with several cities sets them two to a row, so a name and its figure stay close. */
.yh-places__list--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 88px); border-top: 0; }
.yh-places__list--pair li { border-top: 1px solid var(--paper-300); border-bottom: 0; }
.yh-places__list--pair li:nth-child(-n+2) { border-top-color: var(--ink-900); }
.yh-places__list--pair li:nth-last-child(-n+2) { border-bottom: 1px solid var(--paper-300); }

.yh-others { margin-top: clamp(40px, 5vw, 72px); }
.yh-others ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ink-900); }
.yh-others li { border-bottom: 1px solid var(--paper-300); }
.yh-others a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 14px 18px 0; color: var(--ink-900); text-decoration: none; }
.yh-others .yh-glyph { width: 46px; height: 42px; margin-bottom: 8px; }
.yh-others b { font-size: 14.5px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; transition: color var(--dur-2) var(--ease); }
.yh-others small { font-size: 12.5px; color: var(--ink-500); }

/* ═══ Houses beside apartments ════════════════════════════════════════════ */
.yh-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.yh-types--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.yh-type { margin: 0; min-width: 0; }
.yh-type__img { aspect-ratio: 16 / 9; }
.yh-type__img picture { display: block; width: 100%; height: 100%; }
.yh-type__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yh-type figcaption { padding: clamp(20px, 2.2vw, 28px) 0 0; }
.yh-type__k { margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.yh-type__v { margin: 12px 0 0 -0.035em; font-size: var(--pm-outcome); line-height: 0.95; font-weight: 600; letter-spacing: -0.05em; color: var(--ink-900); white-space: nowrap; }
.yh-type__v small { font-size: 0.42em; font-weight: 600; letter-spacing: -0.03em; color: var(--accent-500); margin-left: 0.06em; }
.yh-type__v small.yh-type__w { font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--ink-500); margin-left: 12px; }
.yh-type__d { margin: 14px 0 0; max-width: 48ch; font-size: 15px; line-height: 1.55; color: var(--ink-700); text-wrap: pretty; }
.yh-type__s { margin: 6px 0 0; max-width: 62ch; font-size: 12.5px; line-height: 1.5; color: var(--ink-500); text-wrap: pretty; }
.yh-types + .sa-reveal .yh-foot { margin-top: clamp(28px, 3.4vw, 44px); }
.yh-census__spread { margin-bottom: clamp(56px, 7vw, 96px); }

/* A second exhibit inside a chapter. */
.yh-also { margin-top: clamp(64px, 8vw, 112px); scroll-margin-top: 96px; }
.yh-also__head { margin: 0 0 clamp(24px, 3vw, 40px); }
.yh-also__h { margin: 0; font-family: var(--font-display); font-size: var(--pm-h3); line-height: 1.15; font-weight: 600; letter-spacing: -0.024em; color: var(--ink-900); text-wrap: balance; }
.yh-also__lede { margin: 10px 0 0; max-width: var(--pm-measure-product); font-size: 15px; line-height: 1.6; color: var(--ink-600); text-wrap: pretty; }

/* ═══ Houses and units for each area, on one scale ════════════════════════ */
.yh-pairs__key { display: flex; justify-content: flex-end; gap: 22px; margin: 0 0 12px; font-size: 13px; color: var(--ink-700); }
.yh-pairs__key span { display: inline-flex; align-items: center; gap: 8px; }
.yh-pairs__key span::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--accent-900); }
.yh-pairs__key span[data-s="unit"]::before { background: var(--accent-500); }
.yh-pairs__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yh-pairs__row { display: grid; grid-template-columns: 290px minmax(0, 1fr); column-gap: 32px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--paper-300); }
.yh-pairs__n { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--ink-700); }
.yh-pairs__n small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; font-weight: 400; color: var(--ink-500); }
.yh-pairs__row--lead .yh-pairs__n { font-weight: 600; color: var(--ink-900); }
.yh-pairs__track { position: relative; height: 40px; }
.yh-pairs__grid { position: absolute; top: -20px; bottom: -21px; width: 0; border-left: 1px solid var(--paper-200); }
.yh-pairs__join { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--accent-100); transform-origin: left center; }
.yh-pairs__row--lead .yh-pairs__join { background: var(--accent-200); }
.yh-pairs__dot { position: absolute; top: 50%; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px; background: var(--accent-900); box-shadow: 0 0 0 3px var(--yh-bg); }
.yh-pairs__dot--unit { background: var(--accent-500); }
.yh-pairs__dot b { position: absolute; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900); white-space: nowrap; }
.yh-pairs__dot--after b { left: 22px; }
.yh-pairs__dot--before b { right: 22px; }
.yh-pairs__row--lead .yh-pairs__dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.yh-pairs__row--lead .yh-pairs__dot b { font-size: 19px; letter-spacing: -0.02em; }
.yh-pairs__row--lead .yh-pairs__dot--after b { left: 26px; }
.yh-pairs__row--lead .yh-pairs__dot--before b { right: 26px; }
.yh-pairs__axis { display: grid; grid-template-columns: 290px minmax(0, 1fr); column-gap: 32px; }
.yh-pairs__axis > div { position: relative; height: 28px; }
.yh-pairs__axis > div span, .yh-spec__axis span { position: absolute; top: 10px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.02em; color: var(--ink-500); white-space: nowrap; }
/* The scale’s end labels sit inside it, so nothing hangs over the edge of a phone. */
.yh-pairs__axis > div span:first-child, .yh-spec__axis span:first-child { transform: none; }
.yh-pairs__axis > div span:last-child, .yh-spec__axis span:last-child { transform: translateX(-100%); }

/* ═══ Rents as dwelling type × bedrooms ═══════════════════════════════════ */
.yh-matrix { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.yh-matrix thead td { width: 210px; border-bottom: 1px solid var(--ink-900); }
.yh-matrix thead th { padding: 0 0 12px 22px; text-align: left; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); border-bottom: 1px solid var(--ink-900); }
.yh-matrix tbody th { padding: 26px 16px 26px 0; text-align: left; vertical-align: top; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-900); border-bottom: 1px solid var(--paper-300); }
.yh-matrix tbody td { position: relative; padding: 24px 16px 34px 22px; vertical-align: top; border-bottom: 1px solid var(--paper-300); border-left: 1px solid var(--paper-300); }
.yh-matrix td b { display: block; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; font-weight: 600; letter-spacing: -0.034em; color: var(--ink-900); }
.yh-matrix__delta { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--ink-700); }
.yh-matrix td small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-500); }
.yh-matrix__bar { position: absolute; left: 22px; right: 16px; bottom: 14px; height: 4px; border-radius: 2px; background: var(--paper-200); overflow: hidden; }
.yh-matrix__bar span { display: block; height: 100%; border-radius: 2px; background: var(--accent-200); transform-origin: left center; }
.yh-matrix td.yh-matrix__lead { background: var(--paper-100); box-shadow: inset 0 0 0 1.5px var(--accent-500); }
.yh-matrix__lead .yh-matrix__bar span { background: var(--accent-900); }
.yh-matrix__limited .yh-matrix__bar span { background-color: var(--paper-100); background-image: repeating-linear-gradient(-45deg, var(--accent-200) 0 1.5px, transparent 1.5px 5px); }
.yh-matrix td.yh-matrix__none { color: var(--ink-500); font-size: 22px; }

/* ═══ Ruled tables: councils, Census, target prices ═══════════════════════ */
.yh-rows, .yh-presets { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.yh-rows caption { caption-side: bottom; padding-top: 14px; text-align: left; font-size: 12.5px; line-height: 1.55; color: var(--ink-500); text-wrap: pretty; }
.yh-rows :is(th, td), .yh-presets :is(th, td) { padding: 14px 0 14px 20px; border-bottom: 1px solid var(--paper-300); text-align: right; vertical-align: middle; }
.yh-rows :is(th, td):first-child, .yh-presets :is(th, td):first-child { padding-left: 0; text-align: left; }
.yh-rows thead th, .yh-presets thead th { padding-top: 0; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); border-bottom: 1px solid var(--ink-900); }
.yh-rows tbody th, .yh-presets tbody th { font-size: 15.5px; font-weight: 600; color: var(--ink-900); }
.yh-rows tbody th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-500); }
.yh-rows a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--paper-400); transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.yh-rows a:hover { color: var(--accent-500); border-color: var(--accent-500); }
.yh-rows a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-radius: 2px; }
.yh-rows__rank { display: inline-block; width: 34px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-500); }
/* A dash for “not published” is still text: it keeps a readable contrast. */
.yh-rows .yn-dim, .yh-dir__y .yn-dim { color: var(--ink-500); }
.yh-rows td.yh-rows__lead { width: 36%; }
.yh-rows__cell { display: grid; grid-template-columns: 62px 68px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; }
.yh-rows__cell b { font-size: 16px; font-weight: 600; color: var(--ink-900); }
.yh-rows__delta { font-size: 12.5px; color: var(--ink-500); white-space: nowrap; }
.yh-rows__bar { height: 6px; border-radius: 3px; background: var(--paper-200); overflow: hidden; }
.yh-rows__bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent-200); transform-origin: left center; }
.yh-rows tbody tr:first-child .yh-rows__bar span { background: var(--accent-900); }
.yh-rows__own th, .yh-rows__own td { color: var(--ink-900); font-weight: 600; }
.yh-rows--census { margin-top: clamp(44px, 5vw, 72px); }
.yh-presets { margin-top: clamp(28px, 3.4vw, 44px); }
.yh-presets small { font-size: 12.5px; color: var(--ink-500); }
.yh-presets td { font-weight: 500; color: var(--ink-900); }

.yh-more { border-bottom: 1px solid var(--paper-300); }
.yh-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 15.5px; font-weight: 600; color: var(--ink-900); }
.yh-more > summary small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--ink-500); }
.yh-more[open] > summary { border-bottom: 1px solid var(--ink-900); margin-bottom: 14px; }
.yh-more[open] { border-bottom: 0; }

/* ═══ Price for a target yield ════════════════════════════════════════════ */
.yh-dial { --yh-bg: var(--pm-dark-bg); display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(26px, 3.6vw, 52px); border-radius: var(--r-4); background: var(--pm-dark-bg); color: var(--paper-100); }
.yh-dial__k { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pm-dark-dim); }
.yh-dial__v { margin: 12px 0 14px -0.03em; font-size: clamp(56px, 6vw, 88px); line-height: 0.95; font-weight: 600; letter-spacing: -0.05em; white-space: nowrap; }
.yh-dial__v small { font-size: 0.42em; letter-spacing: -0.03em; color: var(--accent-500); margin-left: 0.06em; }
.yh-dial__slider { position: relative; height: 40px; }
.yh-dial__rail { position: absolute; left: 0; right: 0; top: 18px; height: 4px; border-radius: 2px; background: var(--pm-dark-line); overflow: hidden; pointer-events: none; }
.yh-dial__rail span { display: block; height: 100%; background: var(--accent-500); }
.yh-dial__range { position: relative; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; }
.yh-dial__range::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.yh-dial__range::-moz-range-track { height: 4px; background: transparent; }
.yh-dial__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 999px; background: var(--paper-100); border: 6px solid var(--accent-500); transition: transform var(--dur-1) var(--ease); }
.yh-dial__range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 999px; background: var(--paper-100); border: 6px solid var(--accent-500); }
.yh-dial__range:active::-webkit-slider-thumb { transform: scale(1.12); }
.yh-dial__range:focus-visible { outline: none; }
.yh-dial__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--pm-dark-faint); }
.yh-dial__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--pm-dark-faint); }
.yh-dial__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--pm-dark-dim); }
.yh-dial__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.yh-dial__preset {
  min-width: 52px; min-height: 38px; padding: 0 14px; border-radius: var(--r-2); border: 1px solid var(--pm-dark-line); background: transparent;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--paper-100); cursor: pointer;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
.yh-dial__preset:hover { border-color: var(--pm-dark-dim); }
.yh-dial__preset:active { transform: scale(0.97); }
.yh-dial__preset[aria-pressed="true"] { background: var(--paper-100); border-color: var(--paper-100); color: var(--ink-900); }
.yh-dial__preset:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--pm-dark-faint); }
.yh-dial__out { list-style: none; margin: 0; padding: 0; }
.yh-dial__out li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 14px; align-items: end; padding: 24px 0; border-top: 1px solid var(--pm-dark-line); }
.yh-dial__out li:first-child { padding-top: 0; border-top: 0; }
.yh-dial__out li:last-child { padding-bottom: 0; }
.yh-dial__n { margin: 0; font-size: 15px; font-weight: 500; color: var(--paper-100); }
.yh-dial__n small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--pm-dark-dim); }
.yh-dial__p { margin: 0; text-align: right; font-size: clamp(30px, 3.6vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.yh-dial__p small { margin-left: 9px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--pm-dark-dim); }
.yh-dial__track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--pm-dark-line); overflow: hidden; }
.yh-dial__bar { display: block; height: 100%; border-radius: 3px; background: var(--accent-500); transition: width var(--pm-dur-build) var(--ease); }

/* ═══ Every published suburb on one scale ═════════════════════════════════ */
.yh-spec__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 clamp(20px, 2.4vw, 30px); }
.yh-spec__pick { font-size: 15px; color: var(--ink-700); }
.yh-spec__plot { border-top: 1px solid var(--ink-900); }
.yh-spec__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; align-items: center; padding: 40px 0 26px; border-bottom: 1px solid var(--paper-300); }
.yh-spec__n { margin: 0; font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-900); }
.yh-spec__n small { display: block; font-size: 13px; line-height: 20px; font-weight: 400; letter-spacing: 0; color: var(--ink-500); }
.yh-spec__track { position: relative; height: 54px; cursor: pointer; touch-action: pan-y; }
.yh-spec__track:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-radius: var(--r-1); }
.yh-spec__m { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--accent-900); opacity: 0.42; transform-origin: 50% 100%; transition: left 760ms var(--ease), opacity 320ms var(--ease); }
.yh-spec__m--off { opacity: 0; }
.yh-spec__end { position: absolute; bottom: calc(100% + 5px); font-size: 12px; line-height: 16px; color: var(--ink-500); white-space: nowrap; pointer-events: none; }
.yh-spec__end b { font-weight: 600; color: var(--ink-900); }
.yh-spec__end--left { transform: translateX(calc(-100% + 1px)); }
.yh-spec__end--right { transform: translateX(-1px); }
.yh-spec__ends { display: none; }
.yh-spec__none { position: absolute; inset: 0; display: flex; align-items: center; margin: 0; padding: 0 14px; border-radius: var(--r-1); border: 1px dashed var(--paper-400); font-size: 13.5px; color: var(--ink-500); }
.yh-spec__ref { position: absolute; top: -8px; bottom: -8px; z-index: 1; width: 0; border-left: 1.5px solid var(--accent-500); pointer-events: none; }
.yh-spec__ref b { position: absolute; left: 7px; top: calc(100% - 4px); font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.02em; color: var(--accent-500); white-space: nowrap; }
.yh-spec__ref--left b { left: auto; right: 7px; }
.yh-spec__tip { position: absolute; top: 0; bottom: 0; z-index: 3; width: 0; text-decoration: none; }
.yh-spec__tipline { position: absolute; top: -7px; bottom: -7px; left: -1.5px; width: 3px; border-radius: 2px; background: var(--accent-500); }
.yh-spec__tipcard {
  position: absolute; left: 9px; bottom: calc(100% + 9px); display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline;
  padding: 9px 13px 10px; border-radius: var(--r-2); background: var(--accent-900); color: var(--paper-100); white-space: nowrap; box-shadow: var(--shadow-3);
  animation: yh-read 200ms var(--ease) both;
}
.yh-spec__tip--left .yh-spec__tipcard { left: auto; right: 9px; }
.yh-spec__tipcard b { font-size: 14px; font-weight: 600; }
.yh-spec__tipcard em { font-style: normal; font-size: 14px; font-weight: 600; text-align: right; color: var(--accent-200); }
.yh-spec__tipcard small { grid-column: 1 / -1; margin-top: 3px; font-size: 11.5px; color: var(--pm-dark-dim); }
.yh-spec__tip:focus-visible { outline: none; }
.yh-spec__axis { position: relative; height: 30px; margin-left: 232px; }

.yh-rank { margin-top: clamp(40px, 5vw, 68px); }
/* Both dwelling types are in the HTML; the one not chosen is put away (and shown again where there is no script to choose). */
.yh-rank[data-off] { display: none; }
.yh-rank__h { margin: 0 0 18px; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-900); }
.yh-rank__h span { font-size: 15px; font-weight: 400; color: var(--ink-500); letter-spacing: 0; }
.yh-rank__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 88px); }
.yh-rank__list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yh-rank__list li { border-bottom: 1px solid var(--paper-300); }
.yh-rank__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; row-gap: 2px; padding: 13px 0; color: var(--ink-900); text-decoration: none; }
.yh-rank__n { font-size: 16px; font-weight: 500; transition: color var(--dur-2) var(--ease); }
.yh-rank__d { font-size: 12.5px; color: var(--ink-500); }
.yh-rank__y { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.yh-rank__list a:hover .yh-rank__n { color: var(--accent-500); }

/* ═══ Every published suburb, as links ════════════════════════════════════ */
.yh-find { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 22px; }
.yh-find__label { font-size: 15px; color: var(--ink-700); }
.yh-find__input {
  width: min(100%, 320px); height: 44px; padding: 0 14px; border: 1px solid var(--paper-300); border-radius: var(--r-2); background: var(--paper-100);
  font-family: var(--font-sans); font-size: 15px; color: var(--ink-900); transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.yh-find__input::placeholder { color: var(--ink-500); }
.yh-find__input:hover { border-color: var(--paper-400); }
.yh-find__input:focus { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.yh-find__count { margin: 0; font-size: 13px; color: var(--ink-500); }
.yh-dir__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 12px; font-size: 13px; color: var(--ink-500); }
.yh-dir__head span[data-t] { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink-900); }
.yh-dir__head span[data-t]::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--accent-900); }
.yh-dir__head span[data-t="unit"], .yh-dir__y[data-t="unit"] { color: var(--accent-500); }
.yh-dir__head span[data-t="unit"]::before { background: var(--accent-500); }
.yh-dir__group { border-top: 1px solid var(--ink-900); }
.yh-dir__group + .yh-dir__group { margin-top: 28px; }
.yh-dir__group > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 14px; cursor: pointer; }
.yh-dir__group h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-900); }
.yh-dir__group h3 span { margin-left: 6px; font-weight: 400; color: var(--ink-500); }
.yh-dir__list { list-style: none; margin: 0; padding: 0 0 4px; columns: 4; column-gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--paper-300); }
.yh-dir__list li { break-inside: avoid; border-bottom: 1px solid var(--paper-300); }
.yh-dir__list a { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px; column-gap: 8px; align-items: baseline; padding: 10px 0; font-size: 14.5px; color: var(--ink-900); text-decoration: none; }
.yh-dir__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; transition: color var(--dur-2) var(--ease); }
.yh-dir__n small { margin-left: 7px; font-size: 12px; font-weight: 400; color: var(--ink-500); }
.yh-dir__y { text-align: right; font-size: 14px; font-weight: 500; }
.yh-dir__list a:hover .yh-dir__n { color: var(--accent-500); }

/* ═══ Census profile ══════════════════════════════════════════════════════ */
.yh-mix { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yh-mix__row { display: grid; grid-template-columns: 210px minmax(0, 1fr) 176px; gap: 10px 24px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--paper-300); }
.yh-mix__row--own { padding: 20px 0; }
.yh-mix__n { font-size: 15px; color: var(--ink-700); }
.yh-mix__row--own .yh-mix__n { font-weight: 600; color: var(--ink-900); }
.yh-mix__bar { display: flex; height: 16px; border-radius: 3px; overflow: hidden; background: var(--paper-200); }
.yh-mix__row--own .yh-mix__bar { height: 46px; border-radius: 4px; }
.yh-mix__seg { position: relative; height: 100%; min-width: 0; overflow: hidden; transform-origin: left center; }
.yh-mix__seg--house { background: var(--accent-900); }
.yh-mix__seg--semi { background: var(--accent-500); }
.yh-mix__seg--flat { background: var(--accent-200); }
.yh-mix__seg--other { background: var(--paper-300); }
.yh-mix__seg b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 500; color: var(--paper-100); white-space: nowrap; }
.yh-mix__seg--flat b, .yh-mix__seg--other b { color: var(--ink-900); }
.yh-mix__v { text-align: right; font-size: 13px; color: var(--ink-700); }
.yh-mix__keys { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 24px 0 0; padding: 0; }
.yh-mix__keys li { padding-top: 12px; border-top: 2px solid var(--paper-300); font-size: 13.5px; line-height: 1.45; color: var(--ink-700); }
.yh-mix__keys li[data-k="house"] { border-color: var(--accent-900); }
.yh-mix__keys li[data-k="semi"] { border-color: var(--accent-500); }
.yh-mix__keys li[data-k="flat"] { border-color: var(--accent-200); }
.yh-mix__keys b { display: block; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); }
/* Where the two headline shares already lead the chapter, the keys only name the colours. */
.yh-mix__keys--quiet b { font-size: 15px; line-height: 22px; letter-spacing: 0; }

/* ═══ What is published, sources, the bridge to Investor ══════════════════ */
.yh-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 56px); align-items: start; }
.yh-note__list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yh-note__list li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--paper-300); font-size: 14.5px; line-height: 1.58; color: var(--ink-700); text-wrap: pretty; }
.yh-note__list li::before { content: ""; position: absolute; left: 1px; top: 21px; width: 9px; height: 9px; border-radius: 999px; background: var(--accent-500); }
.yh-note__list[data-on="false"] li { color: var(--ink-500); }
.yh-note__list[data-on="false"] li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-300); }

.yh-method { margin: 0 0 clamp(36px, 4vw, 52px); }
.yh-src__k { margin-top: 4px; }
.yh-src { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yh-src li { border-bottom: 1px solid var(--paper-300); }
.yh-src summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; cursor: pointer; }
.yh-src__name { display: block; font-size: 15.5px; line-height: 1.35; font-weight: 600; color: var(--ink-900); transition: color var(--dur-2) var(--ease); }
.yh-src summary:hover .yh-src__name { color: var(--accent-700); }
.yh-src summary small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ink-500); }
.yh-src__body { padding: 0 34px 20px 0; font-size: 14px; line-height: 1.62; color: var(--ink-700); }
.yh-src__body p { margin: 0; text-wrap: pretty; }
.yh-src__body dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin: 14px 0 12px; }
.yh-src__body dt { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.yh-src__body dd { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-900); }

.yh-bridge { background: var(--paper-100); padding: 0 0 clamp(60px, 7vw, 104px); }
.yh-bridge__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 22px 26px; border-radius: var(--r-3); background: var(--paper-150); }
.yh-bridge__in p { flex: 1 1 420px; margin: 0; max-width: 78ch; font-size: 15px; line-height: 1.55; color: var(--ink-700); text-wrap: pretty; }
.yh-bridge__in b { font-weight: 600; color: var(--ink-900); }
.yh-bridge__in .pm-btn { flex: none; }

/* ═══ Entrances — armed by Reveal, played once when the block is in view ══ */
.yh-stagger.sa-reveal--armed:not(.is-in) { opacity: 1; transform: none; }
.yh-stagger.sa-reveal--armed:not(.is-in) :is(li, h3) { opacity: 0; }
.yh-stagger.sa-reveal--armed.is-in { transition: none; }
.yh-stagger.sa-reveal--armed.is-in :is(li, h3) { animation: rv-in 700ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
.sa-reveal--armed.is-in .yh-type__v .ry-roll__reel { animation: ry-roll-in 1200ms cubic-bezier(0.16, 0.84, 0.24, 1) backwards; animation-delay: calc(var(--i) * 100ms + 300ms); }
.sa-reveal--armed .yh-pairs__join { transform: scaleX(0); }
.sa-reveal--armed .yh-pairs__dot { transform: scale(0); }
.sa-reveal--armed.is-in .yh-pairs__join { transform: scaleX(1); transition: transform 760ms var(--ease) calc(var(--i) * 90ms + 260ms); }
.sa-reveal--armed.is-in .yh-pairs__dot { transform: scale(1); transition: transform 460ms var(--ease) calc(var(--i) * 90ms + 180ms); }
.sa-reveal--armed.is-in .yh-pairs__dot--after { transition-delay: calc(var(--i) * 90ms + 720ms); }
.sa-reveal--armed :is(.yh-matrix__bar span, .yh-rows__bar span, .yh-mix__seg) { transform: scaleX(0); }
.sa-reveal--armed.is-in :is(.yh-matrix__bar span, .yh-rows__bar span) { transform: scaleX(1); transition: transform 760ms var(--ease) calc(var(--i) * 45ms + 240ms); }
.sa-reveal--armed.is-in .yh-mix__seg { transform: scaleX(1); transition: transform 800ms var(--ease) calc(var(--i) * 70ms + 160ms); }
.sa-reveal--armed .yh-spec__m { transform: scaleY(0); }
.sa-reveal--armed.is-in .yh-spec__m { transform: scaleY(1); transition: transform 560ms var(--ease) calc(var(--o) * 7ms + 160ms), left 760ms var(--ease), opacity 320ms var(--ease); }
.sa-reveal--armed .yh-spec__end, .sa-reveal--armed .yh-spec__ref { opacity: 0; }
.sa-reveal--armed.is-in .yh-spec__end, .sa-reveal--armed.is-in .yh-spec__ref { opacity: 1; transition: opacity 500ms var(--ease) 1000ms; }

/* ═══ Responsive — layouts change, they do not shrink ═════════════════════ */
@media (min-width: 1680px) {
  .yh-hero__grid { gap: 96px; }
  .yh-stage { padding-right: 120px; }
}
@media (max-width: 1180px) {
  .yh-dir__list { columns: 3; }
  .yh-pairs__row, .yh-pairs__axis { grid-template-columns: 230px minmax(0, 1fr); }
  .yh-read__d { display: none; }
}
@media (max-width: 1023px) {
  .yh-hero__grid, .yh-hero--state .yh-hero__grid, .yh-hero--city .yh-hero__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 56px); }
  .yh-stage { max-width: 620px; margin: 0 auto; padding: 22px 84px 8px 4px; }
  /* The map is the hero: on a narrow screen it comes straight after the buttons, and its key follows it. */
  .yh-hero--au .yh-hero__grid { gap: 0; }
  .yh-hero--au .yh-hero__copy { display: contents; }
  .yh-hero--au .yh-hero__visual { order: 2; margin-top: clamp(28px, 6vw, 44px); }
  .yh-hero--au .yh-key { order: 3; max-width: none; margin-top: clamp(24px, 5vw, 36px); }
  .yh-map--au .yh-node--w b { right: auto; left: 14px; }
  .yh-read { display: none; }
  .yh-hero--state .yh-hero__visual { padding: 0 96px 0 4px; }
  .yh-map--state, .yh-map--city { margin: 0; width: min(100%, calc(min(420px, 60vh) * var(--c) / var(--r))); }
  .yh-hero--city .yh-local { max-width: 560px; }
  .yh-local--state { padding-right: 120px; }
  .yh-index { grid-template-columns: minmax(0, 1fr); }
  .yh-index li:nth-child(2) { border-top-color: var(--paper-300); }
  .yh-index li:nth-last-child(2) { border-bottom: 0; }
  .yh-places--split, .yh-places__list--pair { grid-template-columns: minmax(0, 1fr); }
  .yh-places__list--pair li:nth-child(2) { border-top-color: var(--paper-300); }
  .yh-places__list--pair li:nth-last-child(2) { border-bottom: 0; }
  .yh-others ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yh-dial { grid-template-columns: minmax(0, 1fr); }
  .yh-mix__row { grid-template-columns: 180px minmax(0, 1fr) 150px; }
}
@media (max-width: 900px) {
  .yh-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4px; }
  .yh-ledger__item { padding-bottom: 18px; }
  .yh-ledger__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .yh-ledger__item:nth-child(n + 3) { border-top: 1px solid var(--pm-dark-line); }
  .yh-hero--city .yh-ledger__item:nth-child(n + 3) { border-top-color: var(--paper-300); }
  .yh-dir__list { columns: 2; }
  .yh-spec__row { grid-template-columns: minmax(0, 1fr); row-gap: 34px; padding: 22px 0 18px; }
  .yh-spec__axis { margin-left: 0; }
  .yh-pairs__row { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 18px 0 22px; }
  .yh-pairs__axis { grid-template-columns: minmax(0, 1fr); }
  .yh-pairs__axis > span { display: none; }
  .yh-pairs__grid { top: -6px; bottom: -22px; }
  .yh-mix__row { grid-template-columns: minmax(0, 1fr) auto; }
  .yh-mix__row .yh-mix__bar { grid-column: 1 / -1; grid-row: 2; }
  .yh-mix__keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yh-note { grid-template-columns: minmax(0, 1fr); }
  .yh-rows td.yh-rows__lead { width: 44%; }
}
@media (max-width: 720px) {
  .yh-hero--au, .yh-hero--state { padding-top: 22px; padding-bottom: 48px; }
  .yh-key li { grid-template-columns: 16px minmax(0, 1fr); row-gap: 2px; }
  .yh-key span { grid-column: 2; }
  .yh-stage { padding: 18px 72px 4px 0; }
  .yh-map__st { stroke-width: 5.6; }
  .yh-map__st[data-k="census"] { stroke-width: 3; }
  .yh-hero--state .yh-hero__visual { padding: 0 116px 0 0; }
  .yh-node b { font-size: 9.5px; padding: 3px 5px; }
  /* On a phone the suburb dots are a picture, not targets: the directory below is how a suburb is opened. */
  .yh-sub { pointer-events: none; }
  .yh-node--tag b { font-size: 12.5px; padding: 5px 8px; }
  .yh-hero__cta .pm-btn, .yh-bridge__in .pm-btn { flex: 1 1 auto; justify-content: center; }
  .yh-fig__v { font-size: clamp(60px, 19vw, 84px); }
  .yh-hero--city .yh-fig__v { font-size: clamp(64px, 21vw, 96px); }
  .yh-index a { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 14px; padding: 18px 0; }
  .yh-index__g { width: 52px; height: 48px; }
  .yh-index__go, .yh-places__go, .yh-index__d { display: none; }
  .yh-index a { grid-template-areas: "g n f"; }
  .yh-places__list a { grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 12px; }
  .yh-others ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  /* The two dwelling types stay side by side on a phone: they are a comparison. */
  .yh-types { gap: 14px; }
  .yh-types--one { max-width: 340px; }
  .yh-type__img { aspect-ratio: 4 / 3; border-radius: var(--r-3); }
  .yh-type figcaption { padding-top: 16px; }
  .yh-type__k { font-size: 10px; letter-spacing: 0.08em; }
  .yh-type__v { margin-top: 8px; font-size: clamp(38px, 11.4vw, 52px); white-space: normal; }
  .yh-type__v small.yh-type__w { display: block; margin: 8px 0 0; font-size: 13px; line-height: 1.3; }
  .yh-type__d { margin-top: 10px; font-size: 13.5px; line-height: 1.5; }
  .yh-type__s { font-size: 12px; }
  .yh-pairs__row--lead .yh-pairs__dot b { font-size: 16px; }
  .yh-rank__cols { grid-template-columns: minmax(0, 1fr); }
  .yh-dir__list { columns: 1; }
  .yh-dir__list a { padding: 13px 0; grid-template-columns: minmax(0, 1fr) 58px 58px; }
  .yh-spec__end { display: none; }
  .yh-spec__ref b { top: auto; bottom: calc(100% + 2px); }
  .yh-spec__ends { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; margin: 0; font-size: 12.5px; line-height: 18px; color: var(--ink-500); }
  .yh-spec__ends b { font-weight: 600; color: var(--ink-900); }
  .yh-spec__track { height: 48px; }
  .yh-spec__row { row-gap: 12px; }
  .yh-spec__tipcard { bottom: calc(100% + 6px); }
  .yh-mix__seg b { display: none; }
  .yh-mix__row--own .yh-mix__bar { height: 34px; }
  .yh-src__body dl { grid-template-columns: minmax(0, 1fr); }
  .yh-src__body { padding-right: 0; }
  .yh-bridge__in { padding: 20px; }

  /* The rent matrix becomes one block per dwelling type, two figures to a row. */
  .yh-matrix, .yh-matrix tbody { display: block; }
  .yh-matrix thead, .yh-matrix td.yh-matrix__none { display: none; }
  .yh-matrix tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink-900); padding-bottom: 18px; }
  .yh-matrix tbody th { grid-column: 1 / -1; display: block; padding: 18px 0 10px; border: 0; }
  .yh-matrix tbody td { display: block; padding: 14px 12px 26px 12px; border-left: 0; border-bottom: 0; border-top: 1px solid var(--paper-300); }
  .yh-matrix tbody td::before { content: attr(data-label); display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
  .yh-matrix__bar { left: 12px; right: 12px; bottom: 12px; }

  /* Ruled tables become labelled stacks. */
  .yh-rows thead, .yh-presets thead { display: none; }
  .yh-rows tbody tr, .yh-presets tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--paper-300); }
  .yh-rows :is(th, td), .yh-presets :is(th, td) { display: block; padding: 0; border: 0; text-align: left; }
  .yh-rows tbody th, .yh-presets tbody th, .yh-rows td.yh-rows__lead { grid-column: 1 / -1; width: auto; }
  .yh-rows tbody th { padding-bottom: 6px; }
  .yh-rows td[data-label]:not(.yh-rows__lead)::before, .yh-presets td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 400; color: var(--ink-500); }
  .yh-rows__cell { grid-template-columns: 62px 66px minmax(0, 1fr); padding-bottom: 6px; }
  .yh-presets tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yh-presets tbody th { padding-bottom: 8px; }
  .yh-presets td small { display: block; }
  .yh-dial__p small { display: block; margin: 6px 0 0; }
}
@media (max-width: 400px) {
  .yh-stage { padding-right: 66px; }
  .yh-hero--state .yh-hero__visual { padding-right: 112px; }
  .yh-ledger dd { font-size: 14px; }
}

/* ═══ Reduced motion — the final state, at once ═══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .yh-map--au, .yh-map--state svg, .yh-map--city svg, .yh-node, .yh-sub, .yh-spec__tipcard,
  .yh-stagger.sa-reveal--armed :is(li, h3), .yh-type__v .ry-roll__reel { animation: none !important; }
  .yh-stagger.sa-reveal--armed :is(li, h3) { opacity: 1 !important; }
  .yh-map__st, .yh-node b, .yh-node i, .yh-glyph path, .yh-index__n b, .yh-index__go, .yh-places__n b, .yh-places__go, .yh-others b,
  .yh-pairs__join, .yh-pairs__dot, .yh-matrix__bar span, .yh-rows__bar span, .yh-mix__seg, .yh-spec__m, .yh-spec__end, .yh-spec__ref,
  .yh-dial__bar, .yh-dial__preset, .yh-rank__n, .yh-dir__n, .yh-find__input, .yh-src__name, .yh summary > i::before, .yh summary > i::after { transition: none !important; }
  .sa-reveal--armed :is(.yh-pairs__join, .yh-pairs__dot, .yh-matrix__bar span, .yh-rows__bar span, .yh-mix__seg, .yh-spec__m) { transform: none !important; }
  .sa-reveal--armed :is(.yh-spec__end, .yh-spec__ref) { opacity: 1 !important; }
}


/* ═══ The pin and its neighbours ══════════════════════════════════════════ */
.yl-map { margin: 0 auto; }
.yl-map--state .yh-map__st { stroke: var(--paper-300); stroke-width: 3.2; }
.yl-ctx { animation: yl-fade 700ms var(--ease) 520ms backwards; }
@keyframes yl-fade { from { opacity: 0; } }
.yl-ctx { fill: none; stroke-linecap: round; }
.yl-ctx__c { stroke: var(--ink-300); stroke-width: 6; }
.yl-ctx__in { stroke: var(--paper-100); stroke-width: 3.4; }
.yl-ctx__b { stroke: var(--accent-500); stroke-width: 6.6; }
.yl-ctx__a { stroke: var(--accent-900); stroke-width: 6.6; }
.yl-map .yh-dots { stroke: var(--paper-200); }
.yl-mark {
  position: absolute; z-index: 1; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 999px;
  background: var(--paper-100); box-shadow: inset 0 0 0 1.5px var(--ink-300), 0 0 0 1px var(--paper-100);
  animation: yh-pop 420ms var(--ease) backwards; animation-delay: calc(var(--i) * 40ms + 620ms);
}
.yl-mark--A { background: var(--accent-900); box-shadow: 0 0 0 1.5px var(--paper-100); }
.yl-mark--B { background: var(--accent-500); box-shadow: 0 0 0 1.5px var(--paper-100); }
.yl-mark:hover { z-index: 4; box-shadow: 0 0 0 2px var(--paper-100), 0 0 0 4px var(--accent-500); }
.yl-mark::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  padding: 6px 9px; border-radius: var(--r-1); background: var(--accent-900); color: var(--paper-100);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--dur-1) var(--ease);
}
.yl-mark:hover::after { opacity: 1; }
.yl-pin { position: absolute; z-index: 3; width: 0; height: 0; animation: yh-pop 560ms var(--ease) 420ms backwards; }
.yl-pin i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 999px; background: var(--accent-900); box-shadow: 0 0 0 3px var(--paper-100), 0 0 0 5px var(--accent-500); }
.yl-pin b {
  position: absolute; left: 16px; top: 0; transform: translateY(-50%); padding: 6px 10px; border-radius: var(--r-1);
  background: var(--accent-900); color: var(--paper-100); font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
}
.yl-pin--left b { left: auto; right: 16px; }
.yl-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; padding: 0; font-size: 12.5px; color: var(--ink-700); }
.yl-key li { display: inline-flex; align-items: center; gap: 7px; }
.yl-key li::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--paper-100); box-shadow: inset 0 0 0 1.5px var(--ink-300); }
.yl-key li[data-t="A"]::before { background: var(--accent-900); box-shadow: none; }
.yl-key li[data-t="B"]::before { background: var(--accent-500); box-shadow: none; }
.yl-key li[data-t="here"]::before { width: 11px; height: 11px; background: var(--accent-900); box-shadow: 0 0 0 2px var(--paper-100), 0 0 0 3.5px var(--accent-500); }

/* ═══ Tier tags ═══════════════════════════════════════════════════════════ */
.yl-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }
.yl-tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--paper-100); box-shadow: inset 0 0 0 1.5px var(--ink-300); }
.yl-tag[data-t="A"]::before { background: var(--accent-900); box-shadow: none; }
.yl-tag[data-t="B"]::before { background: var(--accent-500); box-shadow: none; }

/* ═══ The postcode benchmark (NSW suburbs that share a published postcode) ═ */
.yl-bench { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px, 4vw, 64px); margin: 0; padding: 26px 0 0; border-top: 1px solid var(--ink-900); }
.yl-bench__k { margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.yl-bench__v { margin: 12px 0 0; font-size: clamp(56px, 7vw, 96px); line-height: 0.92; font-weight: 600; letter-spacing: -0.045em; color: var(--ink-900); font-variant-numeric: tabular-nums lining-nums; }
.yl-bench__v small { margin-left: 8px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-500); }
.yl-bench__d { margin: 14px 0 0; max-width: 44ch; font-size: 14px; line-height: 1.55; color: var(--ink-600); text-wrap: pretty; }
.yl-bench__go { display: inline-flex; align-items: center; gap: 10px; margin: clamp(28px, 3vw, 40px) 0 0; }

/* ═══ Who rents, and from whom (2021 Census) ══════════════════════════════ */
.yl-rent { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yl-rent li { display: grid; grid-template-columns: minmax(150px, 15rem) minmax(0, 1fr) 5.5rem; align-items: center; column-gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--paper-300); }
.yl-rent__n { font-size: 15px; font-weight: 500; color: var(--ink-900); }
.yl-rent__n small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--ink-500); }
.yl-rent__bar { height: 10px; border-radius: 2px; background: var(--paper-200); overflow: hidden; }
.yl-rent__bar span { display: block; height: 100%; background: var(--accent-500); transform-origin: left center; }
.yl-rent li[data-own] .yl-rent__bar span { background: var(--accent-900); }
.sa-reveal--armed .yl-rent__bar span { transform: scaleX(0); }
.sa-reveal--armed.is-in .yl-rent__bar span { transform: scaleX(1); transition: transform 760ms var(--ease) calc(var(--i, 0) * 60ms + 240ms); }
.yl-rent__v { text-align: right; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); font-variant-numeric: tabular-nums lining-nums; }
.yl-rent li[data-none] .yl-rent__v { font-size: 13px; font-weight: 400; color: var(--ink-500); }
.yl-landlords { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-700); }
.yl-landlords b { margin-right: 6px; font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums lining-nums; }

/* ═══ How it compares: the place pinned on its city's distribution (2021) ═ */
.yl-cmp { margin: 0; }
.yl-cmp__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.yl-cmp__row { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px); align-items: end; padding: 30px 0 22px; border-bottom: 1px solid var(--paper-300); }
.yl-cmp__k { margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.yl-cmp__v { margin: 10px 0 0; font-size: clamp(30px, 3vw, 40px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; color: var(--ink-900); font-variant-numeric: tabular-nums lining-nums; }
.yl-cmp__v small { margin-left: 7px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-500); }
.yl-cmp__s { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-700); }
.yl-cmp__strip { min-width: 0; }
.yl-cmp__plot { position: relative; height: 92px; border-bottom: 1px solid var(--ink-900); }
.yl-cmp__hist { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64px; transform-origin: bottom center; }
.yl-cmp__cols { fill: var(--accent-100); }
.yl-cmp__col { fill: var(--accent-200); }
.yl-cmp__pin { position: absolute; bottom: 0; width: 0; height: 100%; }
.yl-cmp__pin::before { content: ""; position: absolute; left: -1px; bottom: 0; width: 2px; height: 76px; background: var(--accent-900); }
.yl-cmp__pin i { position: absolute; left: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 999px; background: var(--accent-900); box-shadow: 0 0 0 3px var(--paper-100), 0 0 0 4.5px var(--accent-500); }
.yl-cmp__pin b {
  position: absolute; left: 0; top: 0; transform: translateX(-50%); padding: 4px 8px; border-radius: var(--r-1);
  background: var(--accent-900); color: var(--paper-100); font-size: 12px; line-height: 1.1; font-weight: 600; white-space: nowrap;
}
.yl-cmp__pin[data-edge="start"] b { transform: translateX(-10px); }
.yl-cmp__pin[data-edge="end"] b { transform: translateX(calc(-100% + 10px)); }
.yl-cmp__ref { position: absolute; bottom: 0; width: 0; height: 64px; border-left: 1.5px dashed var(--ink-500); }
.yl-cmp__ref b { position: absolute; left: 6px; top: -2px; font-size: 11.5px; font-weight: 500; line-height: 1.1; color: var(--ink-500); white-space: nowrap; }
.yl-cmp__ref[data-side="left"] b { left: auto; right: 6px; }
.yl-cmp__ends { display: flex; justify-content: space-between; margin: 10px 0 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-500); font-variant-numeric: tabular-nums lining-nums; }
.yl-cmp__peers { margin-top: clamp(48px, 6vw, 80px); }
.yl-cmp__h { margin: 0; font-size: var(--pm-h3); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); text-wrap: balance; }
.yl-cmp__sum { margin: 12px 0 22px; max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--ink-700); text-wrap: pretty; }
.yl-cmp__table tbody th { width: 34%; }
.sa-reveal--armed .yl-cmp__hist { transform: scaleY(0); }
.sa-reveal--armed .yl-cmp__pin, .sa-reveal--armed .yl-cmp__ref { opacity: 0; }
.sa-reveal--armed.is-in .yl-cmp__hist { transform: scaleY(1); transition: transform 640ms var(--ease) calc(var(--i, 0) * 90ms + 200ms); }
.sa-reveal--armed.is-in .yl-cmp__pin, .sa-reveal--armed.is-in .yl-cmp__ref { opacity: 1; transition: opacity 420ms var(--ease) calc(var(--i, 0) * 90ms + 640ms); }

/* ═══ Identity and neighbours ═════════════════════════════════════════════ */
.yl-id { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 88px); margin: 0; border-top: 1px solid var(--ink-900); }
.yl-id div { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--paper-300); }
.yl-id dt { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); padding-top: 3px; }
.yl-id dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-900); text-wrap: pretty; }
.yl-id dd small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-500); }
.yl-formed { margin: 22px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-700); }
.yh-places__list li[data-k="yield"] .yh-places__dot { background: var(--accent-900); }
.yh-places__list li[data-k="census"] .yh-places__dot { background: var(--paper-100); box-shadow: inset 0 0 0 1.5px var(--ink-300); }
.yl-more { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: clamp(28px, 3vw, 40px) 0 0; }

/* ═══ Directories ═════════════════════════════════════════════════════════ */
.yl-letters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.yl-letters a, .yl-letters span {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; height: 52px; padding: 0 8px;
  border: 1px solid var(--paper-300); border-radius: var(--r-2); background: var(--paper-100); color: var(--ink-900); text-decoration: none;
  font-size: 17px; font-weight: 600; line-height: 1; transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.yl-letters small { margin-top: 5px; font-size: 10.5px; font-weight: 500; color: var(--ink-500); font-variant-numeric: tabular-nums lining-nums; }
.yl-letters a:hover { border-color: var(--accent-500); }
.yl-letters a:focus-visible { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.yl-letters [aria-current="page"] { border-color: var(--accent-900); background: var(--accent-900); color: var(--paper-100); }
.yl-letters [aria-current="page"] small { color: var(--paper-300); }
.yl-dir { columns: 3 15rem; column-gap: clamp(28px, 4vw, 64px); margin: 0; padding: 0; list-style: none; }
.yl-dir li { break-inside: avoid; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--paper-300); }
.yl-dir a { min-width: 0; color: var(--ink-900); font-size: 15px; font-weight: 500; text-decoration: none; }
.yl-dir a:hover { color: var(--accent-500); }
.yl-dir a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); border-radius: var(--r-1); }
.yl-dir small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-500); }
.yl-dir .yl-tag { font-size: 9.5px; }
.yl-tally { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 clamp(26px, 3vw, 38px); padding: 0; list-style: none; }
.yl-tally li { font-size: 14px; color: var(--ink-700); }
.yl-tally b { margin-right: 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); font-variant-numeric: tabular-nums lining-nums; }

/* The finder: a search over every suburb and locality, loaded a shard at a time. */
.yl-find { position: relative; max-width: 640px; }
.yl-find__label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 500; color: var(--ink-900); }
.yl-find__input {
  width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--paper-300); border-radius: var(--r-2); background: var(--paper-100);
  font: inherit; font-size: 16px; color: var(--ink-900); transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.yl-find__input::placeholder { color: var(--ink-500); }
.yl-find__input:hover { border-color: var(--paper-400); }
.yl-find__input:focus { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.yl-find__hint { margin: 8px 0 0; font-size: 13px; color: var(--ink-500); }
.yl-find__list { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--paper-300); border-radius: var(--r-2); background: var(--paper-100); max-height: 360px; overflow-y: auto; }
.yl-find__list li + li { border-top: 1px solid var(--paper-200); }
.yl-find__list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--ink-900); text-decoration: none; }
.yl-find__list a:hover, .yl-find__list a[aria-selected="true"] { background: var(--paper-150); }
.yl-find__list a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-500); }
.yl-find__list b { font-size: 15px; font-weight: 500; }
.yl-find__list small { font-size: 12.5px; color: var(--ink-500); }
.yl-find__noscript { margin: 8px 0 0; font-size: 13px; color: var(--ink-500); }
.yl-states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-900); }
.yl-states li { border-bottom: 1px solid var(--paper-300); }
.yl-states a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; color: var(--ink-900); text-decoration: none; font-size: 15px; font-weight: 500; }
.yl-states a:hover { color: var(--accent-500); }
.yl-states small { font-size: 12.5px; font-weight: 400; color: var(--ink-500); font-variant-numeric: tabular-nums lining-nums; }

@media (max-width: 900px) {
  .yl-id { grid-template-columns: minmax(0, 1fr); }
  .yl-states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .yl-cmp__row { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding: 26px 0 20px; }
  .yl-cmp__read { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; }
  .yl-cmp__k { grid-column: 1 / -1; }
  .yl-cmp__s { margin: 0; text-align: right; }
}
@media (max-width: 720px) {
  .yl-cmp__table tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yl-cmp__table tbody th { width: auto; }
}
@media (max-width: 640px) {
  .yl-cmp__v { font-size: 28px; }
  .yl-cmp__s { font-size: 13px; }
  .yl-cmp__plot { height: 86px; }
  .yl-cmp__hist { height: 58px; }
  .yl-cmp__pin::before { height: 70px; }
  .yl-cmp__ref { height: 58px; }
  .yl-rent li { grid-template-columns: minmax(0, 1fr) 4.5rem; row-gap: 8px; }
  .yl-rent__bar { grid-column: 1 / -1; grid-row: 2; }
  .yl-id div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .yl-letters a, .yl-letters span { min-width: 44px; height: 46px; font-size: 15px; }
  .yl-pin b { font-size: 12px; padding: 5px 8px; }
  .yl-dir { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .yl-mark, .yl-pin, .yl-ctx { animation: none !important; }
  .yl-cmp__hist, .yl-cmp__pin, .yl-cmp__ref { transition: none !important; }
  .sa-reveal--armed .yl-cmp__hist { transform: none !important; }
  .sa-reveal--armed :is(.yl-cmp__pin, .yl-cmp__ref) { opacity: 1 !important; }
  .yl-rent__bar span, .yl-letters a, .yl-find__input { transition: none !important; }
  .sa-reveal--armed .yl-rent__bar span { transform: none !important; }
}
