/* Melbourne suburb compare
   Direction: wayfinding. A bluestone band with heavy condensed suburb names, like platform signage,
   on a plain pale page. Tram green is for links, focus and selection only; chart colours come from the
   validated data palette. */

:root {
  color-scheme: light;
  --bg:        #fcfcfb;   /* page and chart surface */
  --ink:       #12202a;
  --ink-2:     #4b5963;
  --muted:     #6f7d86;
  --grid:      #e3e6e5;
  --axis:      #c3c9cc;
  --wash:      #eef2f1;   /* hover and selected rows */
  --band:      #14262f;   /* bluestone */
  --band-ink:  #f2f6f5;
  --band-ink-2:#aebdc4;
  --accent:    #0a6b4a;   /* tram green */
  --good:      #006300;
  --bad:       #b3261e;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #1a1a19; --ink: #f0efec; --ink-2: #c3c2b7; --muted: #99978f;
    --grid: #2c2c2a; --axis: #383835; --wash: #242423;
    --band: #0f1b21; --band-ink: #f2f6f5; --band-ink-2: #9fb0b8;
    --accent: #4cc79a; --good: #0ca30c; --bad: #ec7a72;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1a19; --ink: #f0efec; --ink-2: #c3c2b7; --muted: #99978f;
  --grid: #2c2c2a; --axis: #383835; --wash: #242423;
  --band: #0f1b21; --band-ink: #f2f6f5; --band-ink-2: #9fb0b8;
  --accent: #4cc79a; --good: #0ca30c; --bad: #ec7a72;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
}
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.topbar { background: var(--band); color: var(--band-ink); }
.topbar-inner { display: flex; align-items: center; min-height: 3rem; }
.brand { color: var(--band-ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.brand:hover { text-decoration: underline; }

/* Headings */
h1, h2, h3 { margin: 0; line-height: 1.15; }
.display {
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.02;
}
h2 { font-size: 1.375rem; font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 650; }
.lede { color: var(--ink-2); max-width: 40rem; margin: 0.75rem 0 0; }

/* Home */
.home-head { padding: 2.5rem 0 1.5rem; }
.home-head h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); max-width: 14ch; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field label, .field .label { font-size: 0.8125rem; color: var(--ink-2); }
input[type="search"], input[type="text"], select {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--axis); border-radius: 4px; padding: 0.5rem 0.625rem; min-height: 2.5rem;
}
input[type="search"] { width: min(22rem, 100%); }
.seg { display: inline-flex; border: 1px solid var(--axis); border-radius: 4px; overflow: hidden; }
.seg button {
  font: inherit; color: var(--ink); background: var(--bg); border: 0; padding: 0.5rem 1rem; min-height: 2.5rem; cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--axis); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--bg); font-weight: 650; }
.seg button:not([aria-pressed="true"]):hover { background: var(--wash); }
.check { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; font-size: 0.9375rem; }
.check input { width: 1.125rem; height: 1.125rem; accent-color: var(--accent); }
.count { margin-left: auto; color: var(--ink-2); font-size: 0.9375rem; }

/* Browse table */
.table-wrap { overflow-x: auto; margin: 0 0 2rem; }
table.browse { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.browse th, .browse td { padding: 0.625rem 0.5rem; text-align: right; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.browse th:first-child, .browse td:first-child { text-align: left; }
.browse th.left, .browse td.left { text-align: left; }
.browse thead th { position: sticky; top: 0; background: var(--bg); font-weight: 600; font-size: 0.8125rem; color: var(--ink-2); vertical-align: bottom; white-space: normal; min-width: 5.5rem; }
.browse thead th:first-child { min-width: 8rem; }
.browse th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; font-weight: inherit; }
.browse th button:hover { color: var(--ink); text-decoration: underline; }
.browse th[aria-sort="ascending"] button::after { content: " \25B2"; font-size: 0.6em; }
.browse th[aria-sort="descending"] button::after { content: " \25BC"; font-size: 0.6em; }
.browse tbody tr:hover { background: var(--wash); }
.browse td { font-variant-numeric: tabular-nums; }
.browse td a { font-weight: 600; }
.browse .na { color: var(--muted); }
.up { color: var(--bad); }       /* rent rising is bad news for renters */
.down { color: var(--good); }
.dagger { color: var(--muted); font-size: 0.75em; margin-left: 0.15em; }
.fine { color: var(--ink-2); font-size: 0.875rem; max-width: 46rem; }
.empty { padding: 2rem 0; color: var(--ink-2); }

/* Suburb page */
.band { background: var(--band); color: var(--band-ink); padding: 1.25rem 0 2rem; }
.band a { color: var(--band-ink-2); }
.band .crumb { font-size: 0.9375rem; }
.band h1 { font-size: clamp(3rem, 11vw, 6.5rem); margin-top: 0.75rem; overflow-wrap: anywhere; }
.band .where { color: var(--band-ink-2); margin: 0.75rem 0 0; max-width: 42rem; }
.band .compare-with { margin-top: 1.25rem; max-width: 24rem; }
.band .field label { color: var(--band-ink-2); }
.band input { background: var(--bg); }

.headline { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; padding: 2rem 0 1rem; align-items: end; }
@media (min-width: 52rem) { .headline { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); } }
.hero-num { font-size: clamp(3.5rem, 12vw, 5rem); font-weight: 750; line-height: 1; letter-spacing: -0.02em; }
.hero-num small { font-size: 0.32em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 0.25rem; }
.hero-cap { margin: 0.5rem 0 0; color: var(--ink-2); max-width: 28rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.25rem 2rem; margin: 0; }
.stat dt { font-size: 0.8125rem; color: var(--ink-2); }
.stat dd { margin: 0.125rem 0 0; }
.stat .v { font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
.stat .s { font-size: 0.8125rem; color: var(--ink-2); }
.notice { border-left: 4px solid var(--accent); padding: 0.5rem 0 0.5rem 0.875rem; margin: 1rem 0; color: var(--ink); max-width: 46rem; }
.notice.warn { border-left-color: var(--s2); }
.filters { padding: 1rem 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); margin-top: 1.5rem; }
.charts { display: grid; gap: 2.5rem 3rem; grid-template-columns: 1fr; padding: 2rem 0; }
@media (min-width: 60rem) { .charts.two { grid-template-columns: 1fr 1fr; } }
.chart-block { min-width: 0; }
.chart-block .sub { color: var(--ink-2); font-size: 0.875rem; margin: 0.25rem 0 0.75rem; max-width: 36rem; }

/* Charts */
.legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.key { display: inline-block; width: 1.125rem; height: 0; border-top: 3px solid currentColor; border-radius: 2px; }
.plot { position: relative; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.plot svg:focus-visible { outline-offset: 4px; }
.g-grid { stroke: var(--grid); stroke-width: 1; }
.g-axis { stroke: var(--axis); stroke-width: 1; }
.g-tick { fill: var(--muted); font-size: 12px; font-family: inherit; }
.g-endlabel { fill: var(--ink-2); font-size: 12px; font-weight: 600; font-family: inherit; }
.g-cross { stroke: var(--axis); stroke-width: 1; }
.g-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-dot { stroke: var(--bg); stroke-width: 2; }
.g-dot.hollow { fill: var(--bg); stroke-width: 2; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 9rem; max-width: 16rem;
  background: var(--bg); border: 1px solid var(--axis); border-radius: 6px; padding: 0.5rem 0.625rem;
  font-size: 0.8125rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.tip[hidden] { display: none; }
.tip .head { color: var(--ink-2); margin-bottom: 0.25rem; }
.tip .row { display: flex; align-items: baseline; gap: 0.5rem; }
.tip .row .key { flex: none; transform: translateY(-0.2em); }
.tip .row b { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.tip .row span { color: var(--ink-2); }
.tip .note { color: var(--ink-2); margin: 0.125rem 0 0 1.6rem; }
.chart-actions { margin-top: 0.5rem; }
.linkbtn { font: inherit; font-size: 0.875rem; color: var(--accent); background: none; border: 0; padding: 0.25rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.15em; }
.table-view { max-height: 18rem; overflow: auto; margin-top: 0.5rem; border: 1px solid var(--grid); }
.table-view table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { padding: 0.375rem 0.625rem; text-align: right; border-bottom: 1px solid var(--grid); }
.table-view th:first-child, .table-view td:first-child { text-align: left; }
.table-view thead th { position: sticky; top: 0; background: var(--bg); font-weight: 600; }
.chart-foot { font-size: 0.8125rem; color: var(--ink-2); margin: 0.5rem 0 0; }
.hollow-key { display: inline-block; width: 0.625rem; height: 0.625rem; border: 2px solid currentColor; border-radius: 50%; vertical-align: -1px; }

/* Compare table */
.cmp { width: 100%; max-width: 46rem; border-collapse: collapse; font-size: 0.9375rem; margin-top: 1.5rem; }
.cmp th, .cmp td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--grid); text-align: right; font-variant-numeric: tabular-nums; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--ink-2); font-weight: 400; }
.cmp thead th { font-weight: 700; vertical-align: bottom; }
.cmp .key { margin-right: 0.4rem; vertical-align: 0.2em; }
.pickers { display: grid; gap: 1rem 2rem; grid-template-columns: 1fr; padding: 1.5rem 0 1rem; }
@media (min-width: 40rem) { .pickers { grid-template-columns: 1fr 1fr; } }
.picked { font-size: 1.25rem; font-weight: 700; margin: 0.25rem 0 0; }
.picked .key { margin-right: 0.5rem; vertical-align: 0.25em; }

/* Suburb picker */
.picker { position: relative; }
.picker input { width: 100%; }
.picker ul {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 20; margin: 0; padding: 0; list-style: none;
  background: var(--bg); color: var(--ink); border: 1px solid var(--axis); border-radius: 4px; max-height: 18rem; overflow: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.picker li { padding: 0.5rem 0.75rem; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.picker li small { color: var(--ink-2); }
.picker li[aria-selected="true"], .picker li:hover { background: var(--wash); }

/* Footer */
.footer { border-top: 1px solid var(--grid); margin-top: 3rem; padding: 1.5rem 0 3rem; color: var(--ink-2); font-size: 0.875rem; }
.footer p { max-width: 46rem; margin: 0 0 0.75rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
h1:focus { outline: none; }
.seg { align-self: flex-start; }

.home-head h1.compare-title { font-size: clamp(2.25rem, 7vw, 4rem); max-width: none; margin-top: 0.75rem; }
.hero-num.none { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 40rem) { .browse th:nth-child(2), .browse td:nth-child(2) { display: none; } }

/* Navigation */
.topbar-inner { gap: 1.5rem; flex-wrap: wrap; padding-top: 0.25rem; padding-bottom: 0.25rem; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--band-ink-2); text-decoration: none; font-size: 0.9375rem; padding: 0.5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--band-ink); }
.nav a[aria-current="page"] { color: var(--band-ink); border-bottom-color: var(--accent); }
.nav a[hidden] { display: none; }
.topbar :focus-visible { outline-color: var(--band-ink); }

/* Selectors and tools */
.selectors { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: flex-end; }
.hint { font-size: 0.8125rem; color: var(--ink-2); }
.tools { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.5rem 1rem; border-radius: 4px; background: var(--accent); color: var(--bg); font-weight: 650; text-decoration: none; border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--accent); }
input[type="number"] { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--axis); border-radius: 4px; padding: 0.5rem 0.625rem; min-height: 2.5rem; width: 100%; }
input:disabled { opacity: 0.5; }
.controls .selectors { margin-right: 0.25rem; }

/* Map */
:root { --nodata: #e1e5e4; --seq1: #dbe9f8; --seq2: #a9cbef; --seq3: #6fa6e2; --seq4: #3f80cc; --seq5: #1f58a3; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --nodata: #2f2f2d; --seq1: #1f3a5c; --seq2: #2a5a94; --seq3: #3a7ccc; --seq4: #6aa4e6; --seq5: #a9cbef; } }
:root[data-theme="dark"] { --nodata: #2f2f2d; --seq1: #1f3a5c; --seq2: #2a5a94; --seq3: #3a7ccc; --seq4: #6aa4e6; --seq5: #a9cbef; }
.map { position: relative; width: 100%; border: 1px solid var(--grid); background: var(--wash); overflow: hidden; border-radius: 4px; }
.map-svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; }
.map.dragging .map-svg { cursor: grabbing; }
.m-sub { stroke: var(--bg); stroke-width: 0.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.m-sub:hover { stroke: var(--ink); stroke-width: 1.5; }
.m-sub.sel { stroke: var(--ink); stroke-width: 2.5; }
.m-ring { fill: none; stroke: var(--ink-2); stroke-opacity: 0.45; stroke-dasharray: 4 4; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.m-ring.hl { stroke: var(--accent); stroke-opacity: 1; stroke-dasharray: none; stroke-width: 2.5; }
.m-ringlabel, .m-cbdlabel { fill: var(--ink); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; pointer-events: none; font-family: inherit; }
.m-cbd { fill: var(--ink); stroke: var(--bg); stroke-width: 2; pointer-events: none; }
.map-controls { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.map-controls button { font: inherit; min-width: 2.5rem; min-height: 2.5rem; background: var(--bg); color: var(--ink); border: 1px solid var(--axis); border-radius: 4px; cursor: pointer; }
.map-controls button:hover { background: var(--wash); }
.map-tip { white-space: nowrap; }
.tip .head.strong { color: var(--ink); font-weight: 700; }
.locate { padding: 1rem 0 0; }
.locate .sub { color: var(--ink-2); font-size: 0.875rem; margin: 0.25rem 0 0.75rem; }
.map-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 60rem) { .map-layout { grid-template-columns: minmax(0, 1fr) 17rem; } }
.scale ul { list-style: none; margin: 0.5rem 0; padding: 0; font-size: 0.875rem; }
.scale li { display: flex; align-items: center; gap: 0.5rem; padding: 0.15rem 0; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 1.25rem; height: 0.875rem; border: 1px solid var(--axis); border-radius: 2px; flex: none; }
.scale-title { font-weight: 650; margin: 0; }
.map-info { margin-top: 1rem; border-top: 1px solid var(--grid); padding-top: 1rem; }
.map-info h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.map-info .stats { grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.map-info .stat .v { font-size: 1.125rem; }

/* Finder */
.finder { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; padding: 1rem 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.finder .selectors { grid-column: 1 / -1; }
.rentrow { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; align-items: end; }
.summary { font-weight: 650; margin: 1rem 0; }
.find-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 64rem) { .find-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .find-map { position: sticky; top: 1rem; align-self: start; } }
.find-list .table-wrap { margin-bottom: 0.5rem; }
.find-layout > *, .map-layout > * { min-width: 0; }

/* Pages, breadcrumbs, lists */
.crumbs { font-size: 0.875rem; color: var(--ink-2); padding: 1rem 0 0; }
.crumbs a { color: inherit; }
.band .crumbs { padding-top: 0; color: var(--band-ink-2); }
.static-page { padding-bottom: 1rem; }
.static-page h1 { font-size: clamp(2.25rem, 7vw, 4rem); margin: 0.75rem 0 0; overflow-wrap: anywhere; }
.static-page h2, .related h2, .section-h { margin: 2rem 0 0.75rem; }
.prose { max-width: 46rem; }
.prose li { margin: 0.4rem 0; }
.home-head.tight { padding-top: 0.5rem; }
.summary-text { margin: 1.25rem 0 0; max-width: 46rem; }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2rem; }
.linklist li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--grid); }
.linklist li span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.related { display: grid; gap: 0 3rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .related { grid-template-columns: 1fr 1fr; } }
.footlinks { margin-top: 1rem; }
.more { margin: 0 0 1.5rem; }
.band-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-end; margin-top: 1.25rem; }
.band-row .compare-with { margin-top: 0; flex: 1 1 18rem; }
.linkbtn.light { color: var(--band-ink); }

/* Area chips and cards */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chips a { padding: 0.375rem 0.875rem; border: 1px solid var(--axis); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.chips a:hover { background: var(--wash); }
.chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 650; }
.hero-search { max-width: 34rem; margin-top: 1.5rem; }
.hero-search input { min-height: 3rem; font-size: 1.0625rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card { display: block; padding: 1rem 1.125rem; border: 1px solid var(--axis); border-radius: 6px; color: var(--ink); text-decoration: none; background: var(--bg); }
.card:hover { background: var(--wash); border-color: var(--accent); }
.card h3 { font-size: 1.25rem; }
.card-n, .card-none { color: var(--ink-2); font-size: 0.875rem; margin: 0.125rem 0 0.75rem; }
.card dl { margin: 0; display: grid; gap: 0.25rem; }
.card dl div { display: flex; justify-content: space-between; gap: 1rem; }
.card dt { color: var(--ink-2); font-size: 0.875rem; }
.card dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.tool-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.tool { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.125rem; border-left: 4px solid var(--accent); background: var(--wash); color: var(--ink); text-decoration: none; }
.tool:hover strong { text-decoration: underline; }
.tool span { color: var(--ink-2); font-size: 0.9375rem; }

/* Leaderboards */
.lb-grid { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; padding: 1.5rem 0 0.5rem; }
@media (min-width: 52rem) { .lb-grid { grid-template-columns: repeat(3, 1fr); } }
.lb h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.lb ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.lb li { counter-increment: n; display: flex; gap: 0.5rem; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--grid); font-size: 0.9375rem; }
.lb li a::before { content: counter(n) ". "; color: var(--muted); }
.lb li span { font-variant-numeric: tabular-nums; font-weight: 650; }
.lb .fine { margin: 0.25rem 0 0; font-size: 0.8125rem; }

/* Advertising: space is only reserved when an ad (or a layout placeholder) is switched on */
.ad { margin: 2rem 0; min-height: 6.5rem; text-align: center; position: relative; }
.ad[hidden] { display: none; }
.ad::before { content: "Advertisement"; display: block; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.ad.placeholder { border: 1px dashed var(--axis); color: var(--muted); display: flex; align-items: center; justify-content: center; min-height: 7.5rem; }
.ad.placeholder::before { position: absolute; top: 0.25rem; left: 0.5rem; margin: 0; }

/* Phones: keep the suburb name in view while the table scrolls sideways */
@media (max-width: 40rem) {
  .browse th:first-child, .browse td:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; box-shadow: 1px 0 0 var(--grid); }
  .browse tbody tr:hover td:first-child { background: var(--wash); }
}

.home-head h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); max-width: 22ch; }
[hidden] { display: none !important; }
