@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Geist+Mono:wght@300..700&display=swap");

:root {
  --apriq-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --apriq-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --deep-blue: #0B1220; --teal: #0E7C79; --teal-dark: #149C97;
  --surface: #FFFFFF; --surface-raised: #F6F7F8;
  --ink: #0B1220; --ink-2: #556070; --rule: #DCDEE2;
  --series-1: #00968C; --series-2: #C4761A; --series-5: #2A6BC4;
  --good: #1F7A4D; --warning: #9A6B00; --serious: #B04A12;
  --seq-2: #BCDEDB; --seq-5: #1B8F86;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--apriq-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
table, .metric, .tabular, .fig { font-variant-numeric: tabular-nums; }
.provenance, .source, .method, .confidence, .mono {
  font-family: var(--apriq-mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-2);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: var(--teal); }

/* ---- header ---- */
header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule);
}
header .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
/* The wordmark is the master vector asset from brand/, never type set to look like it.
   Setting APRI + a teal Q in CSS was close enough to read as the logo and wrong in every
   detail that matters: letterforms, spacing, and the shape of the Q. */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 23px; width: auto; }
@media (max-width: 720px) { .logo img { height: 20px; } }
header nav { margin-left: auto; display: flex; gap: 22px; font-size: .875rem;
  min-width: 0; overflow-x: auto; scrollbar-width: none; }
header nav::-webkit-scrollbar { display: none; }
header nav a { flex: none; }
header nav a { color: var(--ink-2); text-decoration: none; }
header nav a:hover { color: var(--teal); }

/* ---- hero ---- */
.hero { padding: 68px 0 40px; border-bottom: 1px solid var(--rule);
  background-image: radial-gradient(circle at center, var(--rule) 1.4px, transparent 1.5px);
  background-size: 22px 22px; }
.hero .inner { background: linear-gradient(90deg, #fff 68%, rgba(255,255,255,.55)); padding: 8px 0; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.028em;
  font-weight: 600; margin: 0 0 18px; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; margin: 0 0 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 34px; }
.stat .n { font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; }
.stat .l { font-size: .78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }

/* ---- sections ---- */
section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
h2 + p.sub { color: var(--ink-2); margin: 0 0 28px; max-width: 68ch; }

/* ---- region comparison ---- */
.regions { display: grid; gap: 14px; max-width: 720px; }
.regionrow { display: grid; grid-template-columns: 160px 1fr 66px; align-items: center; gap: 14px; }
.regionrow .name { font-size: .9rem; }
.regionrow .bar { height: 26px; background: var(--surface-raised); border-radius: 3px; overflow: hidden; }
.regionrow .bar i { display: block; height: 100%; background: var(--seq-5); border-radius: 3px; }
.regionrow .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.regionrow .n { color: var(--ink-2); font-size: .75rem; font-family: var(--apriq-mono); }

/* ---- controls ---- */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.controls input[type=search], .controls select {
  font: inherit; font-size: .9rem; padding: 9px 12px; border: 1px solid var(--rule);
  border-radius: 6px; background: var(--surface); color: var(--ink);
}
.controls input[type=search] { min-width: 240px; }
.controls input:focus, .controls select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.seg button { font: inherit; font-size: .85rem; padding: 9px 14px; border: 0; background: var(--surface);
  color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--deep-blue); color: #fff; }
.count { margin-left: auto; font-family: var(--apriq-mono); font-size: .75rem; color: var(--ink-2); }

/* ---- table ---- */
/* The header is sticky and 63px tall, so an in-page anchor that lands flush with the
   viewport top puts its own heading underneath it. Every jump clears the header instead. */
section[id], footer[id], div[id="top"] { scroll-margin-top: 78px; }

.tablewrap { border: 1px solid var(--rule); border-radius: 8px; overflow: auto; max-height: 620px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th { position: sticky; top: 0; background: var(--surface-raised); text-align: left;
  font-weight: 550; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-2); padding: 11px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
thead th.s { cursor: pointer; user-select: none; }
thead th.s:hover { color: var(--teal); }
thead th[data-dir]::after { content: " ↓"; color: var(--teal); }
thead th[data-dir=asc]::after { content: " ↑"; }
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--rule); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface-raised); }
tbody tr[aria-selected=true] { background: #EAF5F4; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.yield { font-weight: 600; }
.pill { font-family: var(--apriq-mono); font-size: .68rem; padding: 2px 7px; border-radius: 999px;
  border: 1px solid currentColor; white-space: nowrap; }
.c-high { color: var(--good); } .c-medium { color: var(--warning); } .c-low { color: var(--serious); }
.empty { padding: 40px; text-align: center; color: var(--ink-2); }

/* ---- provenance drawer ---- */
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(430px, 100vw);
  background: var(--surface); border-left: 1px solid var(--rule); z-index: 60;
  transform: translateX(100%); transition: transform .22s ease; overflow-y: auto;
  box-shadow: -18px 0 44px rgba(11,18,32,.10); }
.drawer[open] { transform: none; }
.drawer .dhead { position: sticky; top: 0; background: var(--surface); padding: 20px 24px 14px;
  border-bottom: 1px solid var(--rule); }
.drawer h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.drawer .dclose { position: absolute; top: 16px; right: 18px; border: 0; background: none;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.drawer .body { padding: 20px 24px 60px; }
.headline { font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; }
.chain { list-style: none; margin: 18px 0 0; padding: 0; border-left: 2px solid var(--rule); }
.chain li { position: relative; padding: 0 0 20px 20px; }
.chain li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--teal); }
.chain .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.chain .v { font-size: .9rem; }
.chain .v.mono { font-size: .74rem; word-break: break-all; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .88rem; }
dl.kv dt { color: var(--ink-2); } dl.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.note { background: var(--surface-raised); border-left: 3px solid var(--warning); padding: 12px 14px;
  font-size: .82rem; margin-top: 18px; border-radius: 0 4px 4px 0; }
.scrim { position: fixed; inset: 0; background: rgba(11,18,32,.34); z-index: 50; opacity: 0;
  pointer-events: none; transition: opacity .22s; }
.scrim[open] { opacity: 1; pointer-events: auto; }

/* ---- method / footer ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--rule); border-radius: 8px; padding: 20px; }
.card h4 { margin: 0 0 8px; font-size: .95rem; font-weight: 600; }
.card p { margin: 0; font-size: .87rem; color: var(--ink-2); }
footer { background: var(--deep-blue); color: #F2F4F6; padding: 46px 0 38px; }
footer a { color: var(--teal-dark); }
footer .attr { font-family: var(--apriq-mono); font-size: .74rem; color: #9AA4B2; line-height: 1.9; }
footer h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #9AA4B2;
  margin: 0 0 10px; font-weight: 500; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 34px; }
@media (max-width: 720px) {
  header nav { gap: 13px; font-size: .8rem; }
  .regionrow { grid-template-columns: 110px 1fr 58px; }
  .stats { gap: 26px; }
  .controls input[type=search] { min-width: 100%; }
}

/* ---- change, trend, evidence ---- */
.up { color: var(--good); } .down { color: var(--serious); }
td .peryr { color: var(--ink-2); font-size: .7rem; margin-left: 2px; }
.spark { color: var(--seq-5); vertical-align: middle; }
.spark circle { fill: currentColor; }
.sparkcell { white-space: nowrap; }
.sparkcell .since { margin-left: 10px; }
thead th.qs { cursor: pointer; user-select: none; }
thead th.qs:hover { color: var(--teal); }
/* Sortable columns should look sortable before you hover them. */
thead th.s::after, thead th.qs::after { content: " \2195"; opacity: .35; }
thead th[data-dir]::after { content: " \2193"; color: var(--teal); opacity: 1; }
thead th[data-dir=asc]::after { content: " \2191"; color: var(--teal); opacity: 1; }

/* On a phone the yield and the rent change are the whole point; region, bonds and the
   evidence pill were pushing them off-screen behind a horizontal scroll nobody discovers. */
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .tablewrap { max-height: 70vh; }
  .count { margin-left: 0; width: 100%; }
  /* Fit the four columns that matter inside the viewport. The yield is the number the
     product exists to deliver; it must not sit behind a horizontal scroll nobody finds. */
  table { font-size: .82rem; }
  tbody td, thead th { padding: 9px 8px; }
  thead th { white-space: normal; font-size: .64rem; letter-spacing: .04em; }
  thead th.s::after, thead th.qs::after { content: ""; }
  .pill { font-size: .62rem; padding: 2px 5px; }
  td .mono { font-size: .62rem; }
}
.matched { font-family: var(--apriq-mono); font-size: .68rem; color: var(--teal); margin-top: 2px; }

/* Tablets have room for the value column but not for the metadata. The evidence pill must
   never be the thing that falls off — it is what qualifies the number beside it. */
@media (max-width: 900px) { .hide-md { display: none; } }

/* iPhone SE and similar. One column narrower again so the growth figure stays on screen
   rather than sitting just past the right edge. */
@media (max-width: 400px) {
  .hide-xs { display: none; }
}

/* ---- what the median hides ---- */
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.colhead { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-2); font-weight: 550; margin: 0 0 10px; }
@media (max-width: 860px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }
.nowat { font-family: var(--apriq-mono); font-size: .68rem; color: var(--ink-2);
  margin-top: 3px; }
@media (max-width: 720px) {
  /* Both ends of the distribution must stay on screen: the comparison IS the section. */
  #quartiles .nowat { font-size: .62rem; }
  #quartiles td:first-child, #quartiles th:first-child { max-width: 128px; }
}
/* Below about 350px even the wrapped dollar line costs more width than the top-quarter
   column can spare. The comparison wins; the levels go. */
@media (max-width: 350px) {
  #quartiles .nowat { display: none; }
  #quartiles tbody td, #quartiles thead th { padding: 8px 4px; }
  #quartiles thead th { font-size: .6rem; letter-spacing: 0; }
}

/* ---- the rental pool ---- */
.poolchart { margin-top: 30px; border: 1px solid var(--rule); border-radius: 8px;
  padding: 16px 16px 8px; }
.poolchart svg { width: 100%; height: auto; display: block; }
.poolline { fill: none; stroke: var(--teal); stroke-width: 2; }
.poolarea { fill: var(--teal); opacity: .07; }
.poolgrid { stroke: var(--rule); stroke-width: 1; }
.poollabel { fill: var(--ink-2); font-size: 11px; font-family: var(--apriq-mono); }
.poolaxis { display: flex; justify-content: space-between; font-family: var(--apriq-mono);
  font-size: .68rem; color: var(--ink-2); margin-top: 6px; }
.note { font-size: .9rem; color: var(--ink-2); margin: 22px 0 0; max-width: 68ch;
  border-left: 2px solid var(--rule); padding-left: 14px; }

/* ---- coverage matrix ---- */
.cov { font-family: var(--apriq-mono); font-size: .72rem; letter-spacing: .02em;
  white-space: nowrap; }
.cov-published { color: var(--good); }
.cov-held { color: var(--warning); }
.cov-blocked { color: var(--ink-2); }
.cov-none { color: var(--ink-2); opacity: .65; }
#coverage td:first-child strong { font-weight: 550; }
#coverage .why { display: block; font-size: .68rem; color: var(--ink-2); margin-top: 2px; }

/* ---- long histories ---- */
#hist-tabs { gap: 8px; }
.histtab { font: inherit; font-size: .82rem; padding: 7px 14px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink-2); border-radius: 6px; cursor: pointer; }
.histtab[aria-selected="true"] { background: var(--deep-blue); color: #fff;
  border-color: var(--deep-blue); }
.histtab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
thead th.hs { cursor: pointer; user-select: none; }
thead th.hs:hover { color: var(--teal); }
.basis { font-family: var(--apriq-mono); font-size: .68rem; color: var(--ink-2); }
.histpanel[hidden] { display: none; }
thead th.ss { cursor: pointer; user-select: none; }
thead th.ss:hover { color: var(--teal); }

/* ---- market lists on a state hub ---- */
.marketlist { list-style: none; padding: 0; margin: 0 0 34px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 22px; }
.marketlist li { display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.marketlist a { color: var(--ink); text-decoration: none; }
.marketlist a:hover { color: var(--teal); text-decoration: underline; }
.crumb { margin: 0 0 10px; }
.crumb a { color: var(--ink-2); }
.why { display: block; font-weight: 400; font-size: .72rem; color: var(--ink-2); margin-top: 2px; }

/* ---- the bar a claim has to clear ---- */
.criteria { margin: 0 0 8px; padding-left: 22px; max-width: 68ch; }
.criteria li { margin-bottom: 9px; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.criteria li::marker { color: var(--teal); font-family: var(--apriq-mono); font-size: .8rem; }

/* ============================================================================
   The geography ladder: Australia, state, region, market.
   Built to design/site-foundation.html, which was drawn before any of this
   existed and turned out to be the answer to "the homepage is confusing".
   ============================================================================ */

/* ---- header search ---- */
.find { position: relative; flex: 1; max-width: 24rem; margin-left: 8px; }
.find input { width: 100%; font: inherit; font-size: .9rem; padding: 8px 12px;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--surface-raised);
  color: var(--ink); }
.find input::placeholder { color: var(--ink-2); }
.find input:focus { outline: 2px solid var(--teal); outline-offset: 1px;
  background: var(--surface); }
.findout { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 18px 44px rgba(11,18,32,.13); overflow: hidden; }
.findout a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 13px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.findout a:hover, .findout a:focus,
.findout a[aria-selected="true"] { background: var(--surface-raised); }
.findout a[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--teal); }
.findout .fn { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.findout .fw { font-family: var(--apriq-mono); font-size: .66rem; color: var(--ink-2);
  white-space: nowrap; letter-spacing: .04em; }
/* The answer, beside the name. A result row that only names a place makes the visitor click
   to learn a figure the search index is already carrying. */
.findout .fr { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.findout .fr span { font-weight: 400; font-size: .72em; color: var(--ink-2); }
.findnone { margin: 0; padding: 13px; font-size: .84rem; color: var(--ink-2); }
/* The search is the site's front door, and hiding it below 900px took it off every page a
   search engine actually lands someone on — every market, state and region page has exactly
   one search input, this one. It wraps to its own row instead. */
@media (max-width: 900px) {
  header .wrap { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 8px; }
  .find { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  header nav { order: 2; }
}

/* ---- breadcrumb ---- */
.trail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  font-size: .8125rem; margin: 0 0 12px; padding: 0; list-style: none; }
.trail li { display: flex; gap: 6px; align-items: baseline; }
.trail li + li::before { content: "›"; color: var(--rule); }
.trail a { color: var(--ink-2); text-decoration: none; }
.trail a:hover { color: var(--teal); text-decoration: underline; }
.trail [aria-current] { color: var(--ink-2); font-family: var(--apriq-mono);
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---- page head ---- */
/* Only the top. `.pagehead` is also a `.wrap`, and the shorthand here reset the wrap's
   24px side padding to zero - every breadcrumb and heading sat flush against the edge
   of a phone screen while the panels below it stayed correctly inset. */
.pagehead { padding-top: 30px; }
.pagehead h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.06;
  letter-spacing: -.028em; font-weight: 600; margin: 0; }
.pagehead .covers { font-size: .9375rem; margin: 6px 0 0; max-width: 62ch; }
.pagehead .unit { color: var(--ink-2); font-size: .9375rem; margin: 8px 0 0; max-width: 62ch; }
.headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  flex-wrap: wrap; }

/* The sentences that do the actual work of this rebuild: a figure with the comparison a
   reader would otherwise have to already know. Set larger than body text on purpose —
   it is the first thing to read, not a caption under the number. */
.reading { margin: 22px 0 0; max-width: 60ch; font-size: 1.0625rem; line-height: 1.6; }
.reading p { margin: 0 0 8px; }
.reading p:first-child { font-size: 1.1875rem; letter-spacing: -.012em; color: var(--ink); }
.reading p + p { color: var(--ink-2); font-size: 1rem; }

/* ---- metric grid ---- */
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin: 28px 0 0; }
.metric { background: var(--surface); padding: 18px 20px; display: flex;
  flex-direction: column; gap: 4px; min-width: 0; }
.metric .k { font-family: var(--apriq-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.metric .v { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 600; letter-spacing: -.02em;
  line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric .v small { font-size: .52em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.metric .p { font-family: var(--apriq-mono); font-size: .6875rem; color: var(--ink-2); }
@media (min-width: 62rem) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Six figures rather than four. Three across reads as two even rows at every width instead of
   a full row and a stranded pair. */
.metrics.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 62rem) { .metrics.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- chips ---- */
.chip { font-family: var(--apriq-mono); font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--rule);
  color: var(--ink-2); display: inline-block; white-space: nowrap; }
.chip.obs { color: var(--teal); border-color: var(--teal); }
.chip.calc { color: var(--warning); border-color: var(--warning); }

/* ---- panels ---- */
.panel { border: 1px solid var(--rule); border-top: 0; background: var(--surface);
  padding: 22px 20px; }
.metrics + .panel { border-top: 0; }
.panel > h2, .panel > h3 { font-size: 1.0625rem; margin: 0 0 3px; font-weight: 600;
  letter-spacing: -.01em; }

/* A section heading above a metric grid: "Rental market", "Population and housing pipeline".
   The market page carried one subject and needed none; with a second below it, an unbroken
   run of panels reads as one long list rather than as two things. */
.sectionhead { font-size: 1.25rem; margin: 0 0 4px; }
.wrap > .cap { color: var(--ink-2); font-size: .9375rem; margin: 0 0 20px; max-width: 68ch;
  line-height: 1.55; }
.panel > .cap { color: var(--ink-2); font-size: .875rem; margin: 0 0 16px; max-width: 68ch; }
.panel table { font-size: .9rem; }
.panel table th { text-align: left; font-family: var(--apriq-mono); font-size: .6875rem;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  padding: 8px 6px; border-bottom: 1px solid var(--rule); background: none; position: static; }
.panel table td { padding: 9px 6px; border-bottom: 1px solid var(--rule); }
.panel table td.r, .panel table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.panel table tbody tr { cursor: auto; }
.panel table tbody tr:last-child td,
.panel table tbody tr:last-child th { border-bottom: 0; }
/* The label column of a key/value table is a row header, not a column header, so it keeps
   the body rule rather than inheriting the uppercase column-head border. */
.panel table tbody th { border-bottom: 1px solid var(--rule); font-weight: 500; }
.here td { background: var(--surface-raised); font-weight: 600; }

/* ---- what is missing, said once and without apology ---- */
.gap { background: var(--surface-raised); border-left: 2px solid var(--rule);
  padding: 14px 16px; font-size: .875rem; color: var(--ink-2); margin: 0; }
.gap + .gap { border-top: 1px solid var(--rule); }

/* ---- tier cards: states, regions ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px; margin: 0; padding: 0; list-style: none; }
.tile { border: 1px solid var(--rule); border-radius: 8px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tile a.t { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em;
  color: var(--ink); text-decoration: none; }
.tile a.t:hover { color: var(--teal); }
/* What the number is, said before the number. The cards shipped without this and read as a
   dollar sign with no noun attached. */
.tile .k { font-family: var(--apriq-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.tile .v small { font-size: .5em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.tile .v { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.tile .d { font-size: .84rem; color: var(--ink-2); }
/* The note under a card is a sentence, not a machine label. Set in mono at .68rem it was
   four lines of code-face type explaining why a state has no figure - the one line standing
   between a reader and a false comparison, and the hardest line on the card to read. */
.tile .p { font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
.tile.quiet { background: var(--surface-raised); }

/* ---- the A to Z of markets ---- */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none;
  font-family: var(--apriq-mono); font-size: .78rem; }
.az a { display: inline-block; min-width: 26px; text-align: center; padding: 4px 5px;
  border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink-2); }
.az a:hover { border-color: var(--teal); color: var(--teal); }
.azgroup { margin: 0 0 26px; }
.azgroup h3 { font-family: var(--apriq-mono); font-size: .8rem; letter-spacing: .14em;
  color: var(--ink-2); font-weight: 500; margin: 0 0 8px; scroll-margin-top: 78px; }

/* ---- chart ---- */
.plot { margin: 0; }
.plot svg { width: 100%; height: auto; display: block; overflow: visible; }
.plotline { fill: none; stroke: var(--teal); stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; }
.plotarea { fill: var(--teal); opacity: .08; }
.plotgrid { stroke: var(--rule); stroke-width: 1; }
.plotax { font-family: var(--apriq-mono); font-size: 10px; fill: var(--ink-2); }
.plotend { font-family: var(--apriq-mono); font-size: 12px; fill: var(--ink); font-weight: 500; }
.plotdot { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }

/* ---- the doorways on the landing page ---- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; margin: 30px 0 0; }
.door { border: 1px solid var(--rule); border-radius: 8px; padding: 18px;
  text-decoration: none; color: var(--ink); display: block; }
.door:hover { border-color: var(--teal); }
.door strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.door span { font-size: .86rem; color: var(--ink-2); }

/* ---- big landing search ---- */
.bigfind { margin: 26px 0 0; max-width: 34rem; position: relative; }
.bigfind input { width: 100%; font: inherit; font-size: 1.0625rem; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); }
.bigfind input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagehead { padding-top: 20px; }
}

/* A table wider than the phone must scroll inside itself, never take the page with it.
   The method page's source register is five columns and overflowed a 360px viewport by
   145px, which turns every page on the site into one that scrolls sideways.
   `display: block` makes the table its own scroll container; the rows still lay out as a
   table inside it, and the column widths become content-based, which is what we want on a
   narrow screen anyway. */
.panel > table { display: block; max-width: 100%; overflow-x: auto; }
@media (min-width: 46rem) { .panel > table { display: table; } }

/* ---- the analysis page's own map ----------------------------------------------------
   Four of its sections are New South Wales because only New South Wales publishes what they
   need, and they happen to come first. Without this a visitor scrolls through four of them
   and concludes the site is a New South Wales site. */
.pagemap { list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 20px; }
.pagemap li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.pagemap a { color: var(--ink); text-decoration: none; }
.pagemap a:hover { color: var(--teal); text-decoration: underline; }
.pagemap span { font-family: var(--apriq-mono); font-size: .68rem; color: var(--ink-2);
  white-space: nowrap; }
.covers-note { font-size: .875rem; color: var(--ink-2); margin: 0 0 6px; max-width: 70ch; }
.covers-note strong { color: var(--ink); font-weight: 600; }

/* ---- the numbers behind a chart ----------------------------------------------------- */
.numbers summary { cursor: pointer; font-size: .9rem; color: var(--teal); padding: 4px 0; }
.numbers summary::marker { color: var(--ink-2); }
.numbers table { margin-top: 12px; }
.numbers[open] summary { margin-bottom: 4px; }

/* ---- sortable, searchable tables --------------------------------------------------------
   A council page can list 186 suburbs. The table is rendered complete and already ranked,
   so it is whole with no JavaScript; these are the affordances table.js adds on top. */
.panel table th .sortbtn { all: unset; display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; width: 100%; }
.panel table th.r .sortbtn { justify-content: flex-end; }
.panel table th .sortbtn:hover { color: var(--teal); }
.panel table th .sortbtn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.panel table th .arrow::after { content: '\2195'; opacity: .35; font-size: .8em; }
.panel table th[aria-sort="ascending"] .arrow::after { content: '\2191'; opacity: 1; }
.panel table th[aria-sort="descending"] .arrow::after { content: '\2193'; opacity: 1; }
.panel table th[aria-sort]:not([aria-sort="none"]) { color: var(--teal); }

.tablefilter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.tablefilter label { font-family: var(--apriq-mono); font-size: .6875rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.tablefilter input { flex: 1 1 200px; min-width: 0; padding: 8px 11px; font: inherit;
  font-size: .875rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface); color: var(--ink); }
.tablefilter input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px;
  border-color: var(--teal); }
.tfcount { font-size: .78rem; color: var(--ink-2); }

/* The alphabet list on a state page carries 347 postcodes; the same search applies. */
.listfilter { margin: 0 0 18px; }
.azgroup[hidden] { display: none; }

/* ---- the analysis index, and the walk between its pieces ---------------------------------
   /analysis/ was one 911 KB page carrying eight unrelated pieces of work. Each has its own
   address now, so the index has one job: say what each is and which states it covers. */
.analysisindex { list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.analysisindex a { display: block; height: 100%; border: 1px solid var(--rule);
  border-radius: 8px; padding: 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); }
.analysisindex a:hover { border-color: var(--teal); }
.analysisindex a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.analysisindex strong { display: block; font-size: 1rem; line-height: 1.3; margin-bottom: 7px; }
.analysisindex a:hover strong { color: var(--teal); }
.analysisindex .k { display: block; font-family: var(--apriq-mono); font-size: .66rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 9px; }
.analysisindex .d { display: block; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }

.pagewalk { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.pagewalk a { flex: 1 1 240px; max-width: 46%; text-decoration: none; color: var(--ink);
  font-size: .92rem; line-height: 1.35; }
.pagewalk a:hover { color: var(--teal); }
.pagewalk .next { text-align: right; }
.pagewalk a span { display: block; font-family: var(--apriq-mono); font-size: .66rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 4px; }
@media (max-width: 620px) {
  .pagewalk a { max-width: none; }
  .pagewalk .next { text-align: left; }
}

/* ---- what it costs by size --------------------------------------------------------------
   Three states cross dwelling type with bedroom count and all of it was being thrown away.
   The cell carries its own evidence, because a $2,898 four-bedroom house on a withheld count
   is a different claim from one on ninety leases. */
.panel table td .why { font-family: var(--apriq-mono); font-size: .62rem;
  text-transform: uppercase; letter-spacing: .04em; }
.panel table td .none { color: var(--ink-2); font-size: .78rem; }

/* A wide matrix on a narrow screen scrolls inside its own box rather than pushing the page. */
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch;
  /* A scroll box with no edge reads as a clipped table rather than a scrollable one. */
  background:
    linear-gradient(to right, var(--surface) 30%, transparent),
    linear-gradient(to left, var(--surface) 30%, transparent) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.08), transparent),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.08), transparent) 100% 0;
  background-repeat: no-repeat; background-size: 32px 100%, 32px 100%, 12px 100%, 12px 100%;
  background-attachment: local, local, scroll, scroll; }
.scrollx table { min-width: 640px; }
.tablefilter + .scrollx { margin-top: 0; }

/* ---- the market finder -------------------------------------------------------------------
   A question box on top of the ranked tables, not a replacement for them. It is hidden until
   its script runs, so a reader without JavaScript sees the complete tables and no dead form. */
.finder { border: 1px solid var(--rule); border-radius: 10px; padding: 22px;
  margin: 0 0 26px; background: var(--surface); }
.finder h2 { margin: 0 0 6px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 18px; margin: 18px 0 0; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-family: var(--apriq-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-2); }
.field select, .field input { padding: 8px 10px; font: inherit; font-size: .875rem;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--surface);
  color: var(--ink); width: 100%; }
.field select:focus-visible, .field input:focus-visible { outline: 2px solid var(--teal);
  outline-offset: 1px; border-color: var(--teal); }
/* Off, with the reason underneath — never a control that looks live and returns nothing. */
.field.off label { opacity: .5; }
.field.off select, .field.off input { opacity: .45; cursor: not-allowed; }
.fieldwhy:not(:empty) { font-size: .7rem; line-height: 1.4; color: var(--ink-2); }
.findergo { display: flex; gap: 10px; margin: 18px 0 0; }
.findergo button { padding: 9px 18px; font: inherit; font-size: .875rem; font-weight: 500;
  border-radius: 6px; border: 1px solid var(--teal); background: var(--teal); color: #fff;
  cursor: pointer; }
.findergo .ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.findergo button:hover { filter: brightness(1.08); }
.findergo button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.comparebar { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 12px 18px; margin: 0 0 18px; border: 1px solid var(--teal);
  border-radius: 8px; background: var(--surface-raised); font-size: .875rem; }
.comparebar .cmpgo { font-weight: 500; color: var(--teal); }

/* A checkbox column needs a header for screen readers and none for eyes. */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- comparison --------------------------------------------------------------------------
   The measures run down the side and the markets across the top, because a reader compares
   one measure at a time and a row is easier to follow than a column. */
table.cmp th[scope="row"] { text-align: left; font-weight: 500; width: 30%; min-width: 190px; }
table.cmp th[scope="col"] { text-align: left; vertical-align: bottom; }
table.cmp td { text-align: left; font-variant-numeric: tabular-nums; }
table.cmp tr.sect th { padding-top: 22px; font-family: var(--apriq-mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.panel.warn { border-left: 3px solid var(--teal); }
.panel.warn h2 { margin-top: 0; }


/* ---- market signals ----
   Four readings side by side, each carrying its own evidence. Deliberately not a scorecard:
   no ranking, no totals row, no colour scale implying one end is good and the other bad. The
   band tints a single rule at the top of each card so a reader can scan direction without the
   layout making a recommendation the words refuse to make. */
.signals { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin: 24px 0 0; }
@media (min-width: 48rem) { .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.signal { background: var(--surface); padding: 20px; border-top: 2px solid var(--rule); }
.signal > h3 { font-size: .6875rem; font-family: var(--apriq-mono); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.signal .verdict { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em;
  margin: 0 0 6px; line-height: 1.25; }
.signal .what { color: var(--ink-2); font-size: .875rem; margin: 0 0 10px; line-height: 1.5; }
.signal .why { color: var(--ink-2); font-size: .875rem; margin: 0 0 10px; line-height: 1.5;
  border-left: 2px solid var(--rule); padding-left: 10px; }
.signal .numbers { margin: 0; }
.signal .numbers summary { font-family: var(--apriq-mono); font-size: .6875rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); cursor: pointer;
  padding: 4px 0; }
.signal .numbers table { width: 100%; font-size: .8125rem; margin-top: 6px; }
.signal .numbers th { text-align: left; font-weight: 400; color: var(--ink-2);
  padding: 5px 6px 5px 0; border-bottom: 1px solid var(--rule); font-family: inherit;
  font-size: .8125rem; letter-spacing: 0; text-transform: none; }
.signal .numbers td { padding: 5px 0 5px 6px; border-bottom: 1px solid var(--rule);
  vertical-align: top; }
.signal .numbers td.r { text-align: right; font-variant-numeric: tabular-nums;
  font-weight: 500; white-space: nowrap; }
.signal .numbers td.mono { font-size: .6875rem; color: var(--ink-2); }
.signal .numbers .provenance { margin: 10px 0 0; font-size: .75rem; line-height: 1.55; }
/* Direction only. Not a verdict on the market, and not a scale from bad to good. */
.signal.well-above { border-top-color: var(--teal); }
.signal.above { border-top-color: var(--teal); }
.signal.below, .signal.well-below { border-top-color: var(--ink-2); }
.signal.insufficient { border-top-color: var(--rule); }
.signal.insufficient .verdict { color: var(--ink-2); font-weight: 500; }

/* On a phone the evidence table has three columns and no room for them: the period column
   ("June quarter 2026 against a year earlier") pushed past the viewport and was clipped, which
   is worse than wrapping because nothing indicates the text continues. Below 34rem each row
   becomes a small stack — label, figure, period — which reads better than a squeezed table and
   cannot overflow. */
@media (max-width: 34rem) {
  .signal .numbers table, .signal .numbers tbody, .signal .numbers tr,
  .signal .numbers th, .signal .numbers td { display: block; width: auto; }
  .signal .numbers tr { padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .signal .numbers tr:last-child { border-bottom: 0; }
  .signal .numbers th, .signal .numbers td { border: 0; padding: 0; }
  .signal .numbers td.r { text-align: left; font-size: 1rem; margin: 2px 0; }
  .signal .numbers td.mono { white-space: normal; }
}

/* ---- Housing Balance: the thirty-second summary and the six states ----------------------
   The summary sits above everything else on a market page, so it has to work before the
   reader has decided to read anything. Three rules do most of that: the verdict is a word and
   not a number, the states wrap rather than scroll on a phone, and nothing technical appears
   until "Why?" is opened. */
#summary { background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.9rem; }
.summaryhead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.summaryhead .sectionhead { margin-bottom: .35rem; }

/* The geography badge. A reader should never have to infer whether a figure was measured for
   the place they are looking at, so the answer is beside the heading rather than in a note. */
.geobadge { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 650;
  padding: .28rem .55rem; border-radius: 3px; white-space: nowrap;
  background: var(--line); color: var(--ink); }
.geobadge.weighted_correspondence { background: #e8eef7; color: #24446f; }
.geobadge.parent_geography { background: #f2ece2; color: #6b5533; }
.geobadge.not_defensibly_mappable { background: #f3f0ee; color: #6a6a6a; }

.states { display: grid; gap: .55rem; margin: 1.1rem 0 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.state { border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: 3px; padding: .6rem .7rem; background: #fff; }
.state .k { display: block; font-size: .76rem; color: var(--quiet); letter-spacing: .02em; }
.state .v { display: block; font-size: 1.02rem; line-height: 1.25; margin-top: .18rem; }
/* Above and below are not good and bad. A market with weak demand is not a worse market, and
   colouring them as a verdict would be the recommendation this product refuses to make. So the
   bar marks direction only, at low saturation, and the word carries the meaning. */
.state.above { border-left-color: #4a6f9c; }
.state.below { border-left-color: #9c7a4a; }
.state.in-line { border-left-color: #8d8d8d; }
.state.insufficient { border-left-color: var(--line); background: #fbfaf9; }
.state.insufficient .v { color: var(--quiet); font-size: .92rem; }

#balance { border-top: 1px solid var(--line); padding: 1.8rem 0 2rem; }
#balance .gap { margin: .8rem 0 1rem; }

@media (max-width: 460px) {
  .states { grid-template-columns: repeat(2, 1fr); }
  .summaryhead { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* On a phone the nav has one more item than it used to and a longer label in it. A scrolling
   nav is a legitimate pattern and a word cut mid-way is not: it reads as a broken page rather
   than as something to swipe. Below 480px it wraps instead, which costs a row and reads as
   deliberate. */
@media (max-width: 480px) {
  header nav { overflow-x: visible; flex-wrap: wrap; row-gap: 6px; column-gap: 14px;
    margin-left: 0; flex-basis: 100%; }
}
