/* ============================================================
   SuburbIQ — "Editorial cartography"
   Warm paper, hairline rules, serif display, sans figures.
   Palette validated with dataviz/scripts/validate_palette.js
   light #0B7A5E/#C24A1B/#0E76A8 · dark #22A183/#DE6E3E/#3E9BD4
   ============================================================ */
:root{
  --paper:#FBF9F5; --paper-2:#F4F1EA; --surface:#FFFFFF;
  --ink:#14181B; --ink-2:#454D53; --muted:#727B83; --faint:#9AA1A8;
  --rule:#E7E1D6; --rule-2:#D6CEC0;
  --accent:#0B7A5E; --accent-2:#08624B; --accent-wash:#EAF3F0;
  --up:#C24A1B; --up-wash:#FBEFE9;
  --down:#0E76A8; --down-wash:#E9F2F8;
  --grid:#E7E1D6;
  --max:1180px;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  color-scheme:light;

  /* ---- AAA+++ STUDIO PREMIUM additions (2026-07-30) -----------------------
     Ported BY HAND from _shared/datasite.css §1 + §20, because SuburbIQ keeps
     its own stylesheet and no propagation script writes into it (work order:
     SL = site-local). Values must stay byte-identical to the shared master or
     the two Identity A implementations drift. Strictly ADDITIVE: nothing above
     is renamed, no radius, hairline, paper or accent value is changed.
     Spec: _plans/AAA-PLUS-STUDIO-PREMIUM.md §2.1 / §3.                      */

  /* Aliases so the ported §20 rules can be copied from the shared master
     verbatim. SuburbIQ names its hairlines --rule/--rule-2; the shared master
     names them --line/--line-2. Alias rather than rename — 250 built pages
     resolve against --rule. */
  --line:var(--rule); --line-2:var(--rule-2);
  --radius:6px; --radius-sm:4px;

  /* The third voice. Identity A was Fraunces + Inter and nothing else, so no
     figure read as *measured*. This is the specification register: dates,
     units, codes, source vintages, step numbers. System stack only — the
     zero-new-requests constraint means we never load a mono font file. */
  --mono:ui-monospace,"SF Mono","Cascadia Code",Consolas,Menlo,monospace;
  --fs-mono:.8125rem;

  --paper-deep:#F0EBE0;
  --accent-deep:color-mix(in srgb,var(--accent) 78%,var(--ink));
  --on-accent:#FFFFFF;
  /* Supersedes the hand-picked #EAF3F0: same intent, but derived from the
     accent so light and dark stay in step with one declaration. */
  --accent-wash:color-mix(in srgb,var(--accent) 7%,var(--paper));

  /* The ONE elevating shadow. On this site it is spent on the lead panel and
     nothing else — the free-appraisal CTA is the reason the site exists. */
  --shadow-lift:0 1px 0 rgba(20,24,27,.05), 0 24px 48px -32px rgba(20,24,27,.25);

  --t-fast:140ms; --t-med:220ms; --t-slow:420ms;
  --ease-out:cubic-bezier(0.25,1,0.4,1);
  --ease-inout:cubic-bezier(0.45,0.05,0.25,1);

  --fs-stat:clamp(2.8rem,8vw,4.8rem);
  --track-label:.11em;
  --grain-alpha:.028;
}
/* Dark mode is WARM BASALT, not a grey inversion.
   Identity A's whole material argument is warm paper; the old cool charcoal
   #121416 meant the brand became a different brand after sunset — the single
   strongest material cue (warmth) died at night. Same doctrine as the trades
   pair's #171613 and the shared master. Contrast verified: #EDE9DF on #161512
   = 14.4:1, #C7C1B4 = 9.6:1, #9C968A = 5.6:1. The three dark accents are
   UNCHANGED (they were validated with dataviz/scripts/validate_palette.js). */
:root[data-theme="dark"]{
  --paper:#161512; --paper-2:#1C1B17; --surface:#1E1C18;
  --ink:#EDE9DF; --ink-2:#C7C1B4; --muted:#9C968A; --faint:#6E6960;
  --rule:#312F28; --rule-2:#413E35;
  --line:var(--rule); --line-2:var(--rule-2);
  --paper-deep:#131210;
  --accent:#22A183; --accent-2:#3FBD9D;
  --up:#DE6E3E; --up-wash:rgba(222,110,62,.13);
  --down:#3E9BD4; --down-wash:rgba(62,155,212,.13);
  --grid:#312F28;
  /* Dark elevation is a SURFACE STEP plus a hairline, never a shadow. A cast
     shadow on a dark ground is grey mush — it reads as a rendering artifact. */
  --shadow-lift:none;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}*{margin:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.001ms!important;transition-duration:.001ms!important}}
body{
  font-family:var(--sans);background:var(--paper);color:var(--ink);
  line-height:1.62;letter-spacing:-.006em;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;font-size:16.5px;
}
img,svg{display:block;max-width:100%}
a{color:var(--accent)}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 28px}
/* Keep the container centred (so its left padding matches every other section)
   and constrain the reading measure on the children instead. */
.narrow > *{max-width:680px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:640px){.wrap{padding:0 20px}body{font-size:16px}}

/* ---------- type ---------- */
h1,h2,h3,.serif{font-family:var(--serif);font-weight:500;letter-spacing:-.02em;font-variation-settings:"SOFT" 0,"WONK" 0}
h1{font-size:clamp(2.4rem,6.2vw,4.4rem);line-height:1.02;letter-spacing:-.033em}
h2{font-size:clamp(1.55rem,3.2vw,2.15rem);line-height:1.14;letter-spacing:-.024em}
h3{font-size:1.12rem;line-height:1.3;letter-spacing:-.018em}
.eyebrow{
  display:inline-block;font-family:var(--sans);font-size:.7rem;font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;color:var(--accent);
}
.deck{font-size:1.16rem;line-height:1.55;color:var(--ink-2);max-width:60ch;margin-top:18px}
.prose p{margin-top:17px;color:var(--ink-2);font-size:1.03rem}
.prose p:first-child{margin-top:0}
.prose strong{color:var(--ink);font-weight:600}
.prose h2{margin-top:38px}
.note{font-size:.875rem;color:var(--muted);line-height:1.6}
em{font-style:italic}

/* ---------- masthead ---------- */
.masthead{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--paper) 88%,transparent);
  backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--rule)}
.masthead-in{display:flex;align-items:center;justify-content:space-between;gap:16px;height:62px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);
  font-family:var(--serif);font-weight:600;font-size:1.22rem;letter-spacing:-.03em}
.brand svg{width:27px;height:27px;flex:none}
.nav{display:flex;gap:4px;align-items:center}
.nav a{color:var(--ink-2);text-decoration:none;font-size:.9rem;font-weight:500;padding:7px 12px;border-radius:7px;transition:.16s}
.nav a:hover{color:var(--ink);background:var(--paper-2)}
@media(max-width:880px){.nav a.hide-sm{display:none}}
.tbtn{width:34px;height:34px;border-radius:8px;border:1px solid var(--rule);display:grid;place-items:center;color:var(--muted);transition:.16s}
.tbtn:hover{color:var(--ink);border-color:var(--rule-2)}

/* ---------- editorial hero ---------- */
.hero{padding:56px 0 40px;border-bottom:1px solid var(--rule)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:56px;align-items:end}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr;gap:34px;align-items:start}}
.crumbs{font-size:.82rem;color:var(--muted);padding:20px 0 0}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--accent);text-decoration:underline}

/* the hero figure — SANS, proportional figures (dataviz rule) */
.figure-hero{font-family:var(--sans);font-size:clamp(3rem,9vw,5.4rem);font-weight:650;
  letter-spacing:-.045em;line-height:.95;color:var(--ink);font-variant-numeric:proportional-nums}
.figure-unit{font-size:.94rem;font-weight:500;color:var(--muted);letter-spacing:0;margin-top:8px}
.delta{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;font-weight:600;
  padding:4px 10px;border-radius:999px;letter-spacing:-.01em}
.delta.up{color:var(--up);background:var(--up-wash)}
.delta.down{color:var(--down);background:var(--down-wash)}
.delta.flat{color:var(--muted);background:var(--paper-2)}

/* ---------- rules & sections ---------- */
section{padding:44px 0}
.sec-head{display:flex;align-items:baseline;gap:14px;padding-bottom:14px;margin-bottom:24px;border-bottom:1px solid var(--rule)}
.sec-head h2{flex:1}
.sec-num{font-family:var(--sans);font-size:.7rem;font-weight:600;letter-spacing:.15em;color:var(--faint);text-transform:uppercase}
.sec-sub{color:var(--muted);font-size:.93rem;margin-top:-14px;margin-bottom:24px;max-width:70ch}

/* ---------- stat row (hairlines, not boxes) ---------- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:0;border-top:1px solid var(--rule)}
.stat{padding:18px 22px 18px 0;border-right:1px solid var(--rule)}
.stat:last-child{border-right:0}
@media(max-width:720px){.stat{border-right:0;border-bottom:1px solid var(--rule);padding-right:0}.stat:last-child{border-bottom:0}}
.stat .k{font-size:.71rem;font-weight:600;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
.stat .v{font-size:1.72rem;font-weight:620;letter-spacing:-.032em;margin-top:7px;line-height:1.1;font-variant-numeric:proportional-nums}
.stat .s{font-size:.82rem;color:var(--muted);margin-top:3px}

/* ---------- cards (used sparingly) ---------- */
.panel{background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:26px}
.grid{display:grid;gap:22px}
.g2{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}

/* ---------- charts ---------- */
.chart-wrap{position:relative}
.chart{width:100%;height:auto;overflow:visible}
.chart .gridline{stroke:var(--grid);stroke-width:1;shape-rendering:crispEdges}
.chart .series-line{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.chart .series-area{fill:var(--accent);opacity:.10}
.chart .end-dot{fill:var(--accent);stroke:var(--surface);stroke-width:2}
.chart .tick{fill:var(--muted);font-size:11.5px;font-family:var(--sans);font-variant-numeric:tabular-nums}
.chart .endlabel{fill:var(--ink);font-size:12.5px;font-weight:650;font-family:var(--sans)}
.chart .hit{fill:transparent;cursor:crosshair}
.chart .cursor-line{stroke:var(--rule-2);stroke-width:1;opacity:0}
.chart .cursor-dot{fill:var(--accent);stroke:var(--surface);stroke-width:2;opacity:0}
.tip{position:absolute;pointer-events:none;opacity:0;transform:translate(-50%,-118%);
  background:var(--ink);color:var(--paper);padding:7px 11px;border-radius:6px;font-size:.8rem;
  white-space:nowrap;transition:opacity .12s;z-index:5;font-variant-numeric:tabular-nums}
.tip b{font-weight:650}

/* distribution strip — where this suburb sits across Auckland */
.strip{width:100%;height:auto;overflow:visible}
.strip .tickmark{stroke:var(--rule-2);stroke-width:1}
.strip .you{stroke:var(--accent);stroke-width:2.5;stroke-linecap:round}
.strip .axis{stroke:var(--rule);stroke-width:1}
.strip text{fill:var(--muted);font-size:11.5px;font-family:var(--sans)}
.strip .youtext{fill:var(--ink);font-weight:650;font-size:12.5px}

/* horizontal bars (bedrooms) */
.bars{display:grid;gap:12px;margin-top:4px}
.bar-row{display:grid;grid-template-columns:104px 1fr auto;gap:14px;align-items:center}
/* these are spans — they must be block-level or width/height are ignored */
.bar-track{display:block;height:22px;position:relative;background:var(--paper-2);border-radius:0 4px 4px 0}
.bar-fill{display:block;height:22px;background:var(--accent);border-radius:0 4px 4px 0;min-width:2px}
.bar-row .lbl{font-size:.9rem;color:var(--ink-2)}
.bar-row .val{font-size:.94rem;font-weight:620;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.bar-row .cnt{font-size:.78rem;color:var(--faint);font-variant-numeric:tabular-nums}
@media(max-width:560px){.bar-row{grid-template-columns:88px 1fr auto;gap:10px}}

/* SVG text scales with the viewBox, so bump it on narrow screens or the
   labels render at ~5px. 720-unit viewBox at ~350px wide = 0.49 scale. */
@media(max-width:760px){
  .chart .tick{font-size:21px}
  .chart .endlabel{font-size:23px}
  .strip text{font-size:20px}
  .strip .youtext{font-size:23px}
}

/* ---------- tables ---------- */
.table-wrap{overflow-x:auto;border-top:1px solid var(--rule-2)}
table{border-collapse:collapse;width:100%;font-size:.94rem;min-width:440px}
th,td{text-align:left;padding:11px 16px 11px 0;border-bottom:1px solid var(--rule);white-space:nowrap}
th{font-size:.7rem;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);font-weight:600}
th.sortable{cursor:pointer;user-select:none}
th.sortable:hover{color:var(--ink)}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;padding-right:0}
td:last-child,th:last-child{padding-right:0}
tbody tr:hover{background:var(--paper-2)}
td a{color:var(--ink);font-weight:550;text-decoration:none;border-bottom:1px solid var(--rule-2)}
td a:hover{color:var(--accent);border-color:var(--accent)}
.pos{color:var(--up)}.neg{color:var(--down)}

/* ---------- search ---------- */
.search{position:relative;max-width:480px;margin-top:26px}
.search input{width:100%;padding:14px 17px;font-size:1rem;font-family:var(--sans);
  border:1px solid var(--rule-2);background:var(--surface);color:var(--ink);border-radius:5px}
.search input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-wash)}
.results{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);background:var(--surface);
  border:1px solid var(--rule-2);border-radius:5px;overflow:hidden;display:none;
  box-shadow:0 12px 34px -14px rgba(20,24,27,.28)}
.results a{display:flex;justify-content:space-between;gap:12px;padding:10px 15px;text-decoration:none;
  color:var(--ink);font-size:.93rem;border-bottom:1px solid var(--rule)}
.results a:last-child{border-bottom:0}
.results a:hover,.results a.sel{background:var(--accent-wash)}
.results .m{color:var(--muted);font-variant-numeric:tabular-nums}

/* ---------- forms ---------- */
label{display:block;font-size:.8rem;font-weight:600;color:var(--ink-2);margin-bottom:6px}
input[type=number],input[type=text],select{width:100%;padding:11px 13px;font-size:1rem;font-family:var(--sans);
  border:1px solid var(--rule-2);background:var(--surface);color:var(--ink);border-radius:5px;font-variant-numeric:tabular-nums}
input:focus,select:focus{outline:0;border-color:var(--accent)}
.field{margin-bottom:15px}
.readout{border-top:2px solid var(--accent);padding-top:16px;margin-bottom:20px}
.readout .k{font-size:.71rem;font-weight:600;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
.readout .v{font-size:2.5rem;font-weight:650;letter-spacing:-.04em;line-height:1.05;margin-top:6px;color:var(--accent);font-variant-numeric:proportional-nums}

/* ---------- pills, buttons, cta ---------- */
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:#fff;text-decoration:none;
  font-weight:600;font-size:.95rem;padding:12px 22px;border-radius:5px;transition:.16s}
.btn:hover{background:var(--accent-2)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--rule-2)}
.btn.ghost:hover{background:var(--paper-2)}
.pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}
.pill{padding:6px 13px;border-radius:999px;border:1px solid var(--rule-2);text-decoration:none;
  color:var(--ink-2);font-size:.86rem;transition:.16s}
.pill:hover{border-color:var(--accent);color:var(--accent)}
.cta{border:1px solid var(--rule-2);border-left:3px solid var(--accent);background:var(--surface);padding:32px 34px;border-radius:4px}
.cta h2{font-size:1.5rem}
.cta p{color:var(--ink-2);margin-top:10px;max-width:58ch;font-size:1rem}
.cta .btn{margin-top:20px}

/* ---------- faq ---------- */
details{border-bottom:1px solid var(--rule)}
summary{cursor:pointer;padding:16px 0;font-weight:550;font-size:1.02rem;list-style:none;
  display:flex;justify-content:space-between;gap:14px;align-items:center;color:var(--ink)}
summary::-webkit-details-marker{display:none}
summary::after{content:"";width:9px;height:9px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);
  transform:rotate(45deg);flex:none;margin-right:4px;transition:transform .18s}
details[open] summary::after{transform:rotate(-135deg)}
details .body{padding:0 0 18px;color:var(--ink-2);font-size:.98rem;max-width:66ch}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--rule);background:var(--paper-2);margin-top:52px;padding:44px 0 34px}
.foot-grid{display:grid;gap:28px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.foot-grid h4{font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:11px}
.foot-grid a{display:block;color:var(--ink-2);text-decoration:none;font-size:.9rem;padding:3px 0}
.foot-grid a:hover{color:var(--accent)}
.foot-base{margin-top:30px;padding-top:20px;border-top:1px solid var(--rule);font-size:.82rem;color:var(--muted);max-width:88ch}
.foot-base p{margin-top:9px}

/* ============================================================================
   AAA+++ STUDIO PREMIUM — the mechanics layer
   Ported from _shared/datasite.css §20 (spec §3, §4, §6.1). Rules are copied
   from the shared master rather than reinvented so the two Identity A
   implementations cannot drift. Everything here is a NEW selector or an
   additive property on an existing one — no rule below removes or overrides a
   layout property, so CLS stays 0.00.
   ========================================================================== */

/* ---- the mono "spec" voice (§3.4) --------------------------------------- */
/* Provenance, units, codes and vintages set as specification, not prose. This
   single register is the loudest signal that someone measured something. */
.spec,.srcline,.crumbs,.vintage,.freshness,.kicker,.eyebrow,.sec-num,.figure-unit{
  font-family:var(--mono);font-size:var(--fs-mono);letter-spacing:.06em;
  font-variant-numeric:tabular-nums lining-nums;
}
.spec{color:var(--muted)}
.kicker,.eyebrow,.sec-num{text-transform:uppercase;letter-spacing:var(--track-label);font-weight:400}
.kicker,.eyebrow{color:var(--accent-deep)}
.sec-num{color:var(--faint)}
.figure-unit{letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

/* ---- optical type scale + real Fraunces tuning (§3.1) ------------------- */
/* Fraunces is already served as a variable font with its opsz 9-144 axis. The
   axis was never used, which is why display type read like one weight applied
   everywhere. Two extremes per page: display ~84, stat 144. */
h1,.figure-hero-serif{font-optical-sizing:none;font-variation-settings:"opsz" 84,"SOFT" 0,"WONK" 0}
.stat-display{
  font-family:var(--serif);font-weight:340;font-size:var(--fs-stat);line-height:.92;
  font-variation-settings:"opsz" 144,"SOFT" 0,"WONK" 0;letter-spacing:-.02em;
  font-variant-numeric:proportional-nums lining-nums;
}
.stat-display .u{font-family:var(--mono);font-size:.26em;letter-spacing:.08em;color:var(--muted);vertical-align:.5em;margin-left:.3em}

/* ---- hairline discipline: the keel (§3.3) ------------------------------- */
/* A 44x2 accent rule above every section head gives the page a datum line,
   which is what stops a long page from reading as stacked boxes.
   .sec-head is a baseline-aligned flex row, so the keel is positioned rather
   than inserted as a flex item — that keeps the h2/number baseline intact. */
h2.sec::before,.keel::before{content:"";display:block;width:44px;height:2px;background:var(--accent);margin-bottom:14px}
.sec-head{position:relative;padding-top:18px}
.sec-head::before{content:"";position:absolute;top:0;left:0;width:44px;height:2px;background:var(--accent)}

/* ---- tabular numerals with intent (§3.4) ------------------------------- */
/* Compared or copied -> tabular (columns must not jiggle). Display typography
   -> proportional (the hero figure and the yield readout keep theirs). */
.num,td.n,.result-v,.stat .v.num,.pager{font-variant-numeric:tabular-nums lining-nums}

/* ---- grain: paper as material (§3.5) ---------------------------------- */
/* Pure CSS, one fixed non-interactive layer, zero requests. The dead-flat hex
   fill was what made the ground read as a CSS variable rather than paper. */
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  opacity:var(--grain-alpha);
  background-image:
    repeating-linear-gradient(0deg, rgba(20,24,27,.9) 0 1px,transparent 1px 3px),
    repeating-linear-gradient(90deg,rgba(20,24,27,.7) 0 1px,transparent 1px 4px);
  background-size:3px 3px,4px 4px;mix-blend-mode:multiply;
}
:root[data-theme="dark"] body::before{mix-blend-mode:screen;opacity:.02}
/* Lift the content above the grain. .masthead is deliberately excluded — it is
   already position:sticky at z-index 50; re-declaring position here would kill
   the sticky header. */
.crumbs,.hero,section,.foot{position:relative;z-index:1}
@media print{body::before{display:none}}

/* ---- focus & hover with intent (§3.6) --------------------------------- */
/* Hover on a text link DRAWS an underline; it does not swap a colour. Hover on
   a card darkens its hairline and never moves it (motion there would cost CLS
   and reads as a template animation). Focus is never removed. */
a.draw,.rel-card .rel-t,.prose p a,.note a,details .body a{
  text-decoration:none;
  background:linear-gradient(var(--accent),var(--accent)) 0 100% / 0 1px no-repeat;
  transition:background-size var(--t-med) var(--ease-out);
}
a.draw:hover,a.draw:focus-visible,.rel-card:hover .rel-t,
.prose p a:hover,.prose p a:focus-visible,.note a:hover,.note a:focus-visible,
details .body a:hover,details .body a:focus-visible{background-size:100% 1px}
.crumbs .sep{color:var(--faint);margin:0 .5em}
.crumbs [aria-current]{color:var(--ink-2)}

/* ---- elevation: exactly one shadow (§3.2) ----------------------------- */
.panel,.stat,.table-wrap,.cta,.rel-card{box-shadow:none}
.lift,.lead-panel{box-shadow:var(--shadow-lift)}
:root[data-theme="dark"] .lift,
:root[data-theme="dark"] .lead-panel{box-shadow:none;background:var(--surface);border-color:var(--rule-2)}

/* ---- entrance choreography (§3.7) ------------------------------------- */
/* Above the fold, once, on load. Gated behind no-preference so reduced-motion
   and no-JS readers get the finished page rather than content stranded at
   opacity 0 — the failure mode reveal-on-scroll libraries ship with. */
@media (prefers-reduced-motion:no-preference){
  .reveal{animation:aaa-rise var(--t-slow) var(--ease-out) both}
  .reveal-2{animation-delay:60ms}
  .reveal-3{animation-delay:120ms}
  @keyframes aaa-rise{from{opacity:0;transform:translateY(12px)}}
}

/* ---- the promoted source line (§6.4) --------------------------------- */
/* Doctrine: no figure without a source line, no source line without a date.
   On SuburbIQ this is the product, not decoration — a suburb statistic with no
   vintage is worthless to a buyer and dangerous in an appraisal conversation.
   Identical position under every figure, chart and table, on every page. */
.srcline{
  display:block;border-top:1px solid var(--rule);padding-top:8px;margin-top:12px;
  color:var(--muted);text-transform:uppercase;line-height:1.5;
}
.srcline .sep{color:var(--faint);margin:0 .5em}
.srcline a{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--rule-2)}
.srcline a:hover{color:var(--ink-2);border-bottom-color:var(--accent)}

/* ---- the method mini-spec (§4) --------------------------------------- */
/* A prose paragraph titled "how we compute this" is skipped by every reader.
   Numbered, ruled, with the formula in the mono voice, it gets read — and it
   is the visible half of the E-E-A-T claim. */
.method{margin:34px 0}
.method ol{list-style:none;margin:0;padding:0;counter-reset:mstep}
.method li{counter-increment:mstep;border-top:1px solid var(--rule);padding:14px 0 14px 44px;position:relative;color:var(--ink-2)}
.method li:last-child{border-bottom:1px solid var(--rule)}
.method li::before{
  content:counter(mstep,decimal-leading-zero);position:absolute;left:0;top:14px;
  font-family:var(--mono);font-size:var(--fs-mono);letter-spacing:.06em;color:var(--accent-deep);
}
.method .formula{
  font-family:var(--mono);font-size:.875rem;background:var(--accent-wash);
  border:1px solid var(--rule);border-radius:var(--radius-sm);padding:12px 14px;margin:10px 0 0;
  overflow-x:auto;white-space:pre;color:var(--ink-2);
}

/* ---- related cards that earn the click (§6.1) ------------------------ */
/* Identical rounded boxes with a generic blurb gave the reader no reason to
   click. The reason line is mandatory and must not be transplantable to
   another card; the freshness chip is the network's E-E-A-T at the point of
   the click. */
.rel-grid{display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin-top:26px}
.rel-card{
  display:flex;flex-direction:column;gap:8px;padding:18px 18px 14px;
  background:var(--surface);border:1px solid var(--rule);border-top:2px solid var(--accent);
  border-radius:0 0 var(--radius) var(--radius);text-decoration:none;color:inherit;
  transition:border-color var(--t-fast) var(--ease-out);
}
.rel-card:hover{border-color:var(--rule-2);border-top-color:var(--accent)}
.rel-card .rel-t{font-weight:650;color:var(--ink);font-size:1.02rem;align-self:flex-start;font-family:var(--sans);letter-spacing:-.01em}
.rel-card .rel-why{color:var(--ink-2);font-size:.92rem;line-height:1.5;margin:0}
.rel-card .freshness{margin-top:auto;padding-top:10px;color:var(--faint);align-self:flex-end}

/* ---- table caption vintage chip (§4) --------------------------------- */
.vintage{
  display:inline-block;border:1px solid var(--rule-2);border-radius:var(--radius-sm);
  padding:2px 7px;color:var(--muted);text-transform:uppercase;margin-left:10px;
}

/* ---- confident emptiness (§3.5 companion) ---------------------------- */
/* At least one full-width breath per page. Cheap sites fill; expensive sites
   breathe. */
.breathe{min-height:18vh}
@media(max-width:640px){.breathe{min-height:10vh}}
