:root {
  color-scheme: light;
  --navy: #082c46;
  --navy-deep: #052337;
  --teal: #087f86;
  --teal-dark: #06676d;
  --teal-soft: #e9f6f5;
  --coral: #df7855;
  --ink: #172e3e;
  --muted: #536975;
  --subtle: #70818c;
  --line: #dfe7eb;
  --canvas: #f3f6f8;
  --white: #fff;
  --amber: #845413;
  --amber-bg: #fff8e9;
  --shadow: 0 3px 15px rgb(16 51 70 / 4%);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.5; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #e8a344; outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 20; padding: 12px 18px; transform: translateY(-160%); background: white; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

/* The original square logo artwork is framed here, without modifying it. */
.topbar { min-height: 86px; display: flex; align-items: center; gap: 38px; padding: 16px 30px; background: var(--navy); color: white; box-shadow: 0 2px 8px rgb(6 31 46 / 10%); }
.brand { flex: 0 0 auto; display: block; border-radius: 7px; background: white; }
.brand-frame { position: relative; display: block; width: 304px; height: 52px; overflow: hidden; border-radius: 7px; }
.brand-frame img { position: absolute; width: 324px; height: 324px; max-width: none; left: -8px; top: -74px; }
.topnav { display: flex; align-self: stretch; align-items: stretch; gap: 26px; }
.topnav a { position: relative; display: flex; align-items: center; padding: 0 2px; color: #d4e0e8; font-size: .94rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.topnav a:hover, .topnav a.active { color: white; }
.topnav a.active::after { content: ""; position: absolute; height: 3px; bottom: -16px; left: 0; right: 0; background: #4ebbb6; border-radius: 3px 3px 0 0; }
.course-badge { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #dbe7ef; font-size: .78rem; white-space: nowrap; border: 1px solid #365368; border-radius: 30px; padding: 7px 12px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #5dc6bd; flex-shrink: 0; }

.app-shell { display: grid; grid-template-columns: 254px minmax(0, 1fr); min-height: calc(100vh - 86px); max-width: 1920px; margin: auto; }
.sidebar { background: var(--white); border-right: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; min-width: 0; }
.eyebrow { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: var(--teal-dark); line-height: 1.5; }
.sidebar-title { padding-bottom: 21px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.sidebar-title .eyebrow { font-size: .61rem; letter-spacing: .105em; }
.sidebar-title h2 { margin: 5px 0 0; font-size: 1.65rem; font-weight: 650; letter-spacing: -.035em; }
.field-label { display: block; margin: 22px 0 8px; font-size: .83rem; font-weight: 650; color: #2c4555; }
select, input[type="search"], input[type="number"] { width: 100%; min-height: 42px; border: 1px solid #cbd8df; border-radius: 6px; padding: 9px 11px; background-color: white; color: var(--ink); font-size: .87rem; }
select { padding-right: 7px; }
input::placeholder { color: #758592; }
select:hover, input:hover { border-color: #8eabb7; }
input:focus, select:focus { border-color: var(--teal); }
.field-hint { margin: 7px 0 0; font-size: .73rem; color: var(--muted); line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: 6px; padding: 9px 15px; border: 1px solid transparent; font-size: .86rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .15s, border-color .15s; }
.button.primary { color: white; background: var(--teal); border-color: var(--teal); }
.button.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button.secondary { background: white; border-color: #cbd8df; color: #294756; }
.button.secondary:hover { background: #f8fbfc; border-color: #98b1bd; }
.button span[aria-hidden] { font-size: 1.2rem; line-height: 1; }
.full-width { width: 100%; }
#compareToggle { margin-top: 18px; }
#compareToggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); }
.compare-controls { padding: 0 0 2px; }
.control-section { margin-top: 24px; padding-top: 1px; border-top: 1px solid var(--line); }
.segmented { display: flex; gap: 3px; background: #edf2f4; padding: 3px; border: 1px solid #e0e7eb; border-radius: 7px; }
.segmented button { flex: 1; min-height: 34px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: .85rem; font-weight: 600; }
.segmented button:hover { background: #e1ebee; }
.segmented button.selected { background: white; color: var(--teal-dark); box-shadow: 0 1px 4px #b8cbdc60; }
.currency-input { position: relative; }
.currency-input span { display: block; margin: -2px 0 6px; color: var(--muted); font-size: .72rem; }
.sidebar-note { display: flex; align-items: flex-start; gap: 8px; padding: 14px 11px; border-radius: 6px; background: #eef6f8; margin-top: 24px; color: #456271; font-size: .79rem; }
.sidebar-note p { margin: 0; }
.sidebar-note > span { color: var(--teal); }
.text-button { display: inline-block; border: 0; color: var(--teal-dark); background: transparent; padding: 0; font-size: .83rem; font-weight: 600; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
#resetFilters { align-self: flex-start; margin: 24px 0; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; color: var(--muted); }
.small-rule { display: block; width: 25px; height: 3px; border-radius: 3px; background: var(--teal); margin-bottom: 14px; }
.sidebar-bottom p { font-size: .83rem; line-height: 1.7; margin-bottom: 12px; }
.sidebar-bottom a { font-size: .74rem; font-weight: 600; text-decoration: none; }
.sidebar-bottom a:hover { text-decoration: underline; }

.main-content { min-width: 0; padding: 32px 34px 22px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(1.65rem, 2.15vw, 2.3rem); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; margin: 6px 0 10px; }
.page-heading p { color: var(--muted); font-size: .83rem; margin: 0; }
.page-heading > .button { flex: 0 0 auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #d3dee4; margin-bottom: 24px; }
.tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 13px 18px 14px; margin-bottom: -1px; font-size: .89rem; font-weight: 600; }
.tabs button:hover { color: var(--teal-dark); background: #eaf1f3; border-radius: 6px 6px 0 0; }
.tabs button.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.metric-card { padding: 21px 23px 19px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; }
.metric-card.accent { background: var(--teal-soft); border-color: #cce4e3; }
.metric-label { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-bottom: 7px; }
.metric-value { color: var(--navy); font-size: clamp(1.9rem, 2.6vw, 2.65rem); line-height: 1.18; letter-spacing: -.04em; font-weight: 650; overflow-wrap: anywhere; }
.metric-card.accent .metric-value { color: var(--teal-dark); }
.metric-detail { display: block; color: var(--muted); font-size: .75rem; margin-top: 9px; line-height: 1.5; }
.metric-detail .source-badge { margin-top: 2px; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 22px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 21px 23px 12px; }
.panel-header h2 { font-size: 1.04rem; font-weight: 650; line-height: 1.35; letter-spacing: -.015em; margin: 0 0 5px; }
.panel-header p { color: var(--muted); font-size: .76rem; line-height: 1.5; margin: 0; }
.pill, .tag { display: inline-flex; gap: 5px; align-items: center; border: 1px solid #d8e6e9; color: #416675; background: #f5f9fa; border-radius: 30px; padding: 4px 9px; font-size: .68rem; font-weight: 600; line-height: 1.4; flex: 0 0 auto; }
.chart-body { padding: 10px 20px 8px; }
.chart-caption { padding: 2px 23px 18px; color: var(--muted); font-size: .72rem; line-height: 1.55; margin: 0; }
.legend { display: flex; align-items: center; flex-wrap: wrap; column-gap: 17px; row-gap: 6px; margin: 9px 0 6px; color: var(--muted); font-size: .73rem; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; height: 8px; width: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); }
.legend-dot.compare, .legend-dot.estimated { background: var(--coral); }
.bar-chart { display: flex; flex-direction: column; gap: 7px; padding: 6px 0; }
.bar-row { width: 100%; display: grid; grid-template-columns: minmax(80px, 1.05fr) minmax(90px, 1.8fr) 51px; align-items: center; gap: 10px; color: var(--ink); background: transparent; border: 1px solid transparent; padding: 4px 5px; border-radius: 5px; min-height: 30px; text-align: left; }
button.bar-row:hover { background: #f0f6f8; }
.bar-row.is-selected { background: #edf7f6; border-color: #cde9e5; }
.bar-name { font-size: .76rem; line-height: 1.3; overflow-wrap: anywhere; }
.bar-track { display: block; position: relative; height: 18px; background: #f0f4f6; border-radius: 3px; overflow: hidden; min-width: 0; }
.bar-fill { display: block; position: absolute; height: 100%; top: 0; left: 0; background: var(--teal); border-radius: 2px; min-width: 1px; }
.bar-fill.estimated, .bar-fill.compare { background: var(--coral); }
.bar-fill.negative { background: #738b9c; }
.bar-row.is-selected .bar-fill { background: var(--navy); }
.zero-line { position: absolute; z-index: 1; width: 1px; height: 100%; top: 0; background: #718b98; }
.bar-value { color: #355365; font-size: .76rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: "Segoe UI", Arial, sans-serif; }
.chart-svg text { fill: var(--muted); font-size: 12px; }
.chart-svg .grid-line { stroke: #e1e9ed; stroke-width: 1; }
.chart-svg .axis-label { fill: #617480; font-size: 11px; }
.chart-svg .axis-title { fill: #4a6371; font-size: 12px; font-weight: 500; }
.chart-svg .line-primary { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .line-compare { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 6 4; }
.chart-svg .dot-primary { fill: var(--teal); stroke: white; stroke-width: 2; }
.chart-svg .dot-compare { fill: var(--coral); stroke: white; stroke-width: 2; }
.chart-svg .scatter-dot { fill: #79b6b9; opacity: .65; stroke: white; stroke-width: .7; }
.chart-svg .scatter-highlight { fill: var(--teal-dark); stroke: white; stroke-width: 2.5; opacity: 1; }
.chart-svg .scatter-highlight.compare { fill: var(--coral); }
.chart-svg .scatter-compare { fill: var(--coral); stroke: white; stroke-width: 2.5; opacity: 1; }
.chart-svg .scatter-dot[data-suburb] { cursor: pointer; }
.chart-svg .scatter-dot[data-suburb]:hover { opacity: 1; stroke: var(--navy); stroke-width: 2; }
.chart-svg .zero-axis { stroke: #8ea6b0; stroke-width: 1; stroke-dasharray: 4 4; }
.chart-svg .value-label, .chart-svg .point-label { fill: var(--navy); font-weight: 650; font-size: 12px; paint-order: stroke; stroke: white; stroke-width: 4px; stroke-linejoin: round; }
.importance-summary { padding: 15px 6px 10px; }
.importance-number { color: var(--teal-dark); font-size: clamp(3.2rem, 5vw, 4.4rem); font-weight: 650; line-height: 1.05; letter-spacing: -.055em; margin-bottom: 28px; }
.importance-number small { font-size: .5em; margin-left: 3px; }
.importance-number > span { display: block; color: var(--muted); font-size: .88rem; font-weight: 500; letter-spacing: 0; margin-top: 12px; }
.share-track { height: 15px; background: #a6cbd6; border-radius: 5px; overflow: hidden; }
.share-track > span { display: block; height: 100%; background: var(--teal); }
.share-labels { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; margin-bottom: 27px; color: var(--muted); font-size: .73rem; }
.share-labels span:first-child { color: var(--teal-dark); font-weight: 600; }
.importance-summary p { color: var(--muted); font-size: .84rem; line-height: 1.8; margin-bottom: 15px; }
.importance-summary p:last-child { padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 5px; }

.context-note { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; padding: 15px 19px; border: 1px solid #f0dfb6; border-left: 3px solid #d4a446; border-radius: 7px; background: var(--amber-bg); color: #725321; font-size: .8rem; }
.context-note p { margin: 3px 0 0; line-height: 1.6; }
.context-note strong { color: #73501b; font-weight: 650; }
.notice-icon { flex: 0 0 auto; font-size: 1.2rem; line-height: 1.2; }
.detail-panel { margin-bottom: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 8px 23px 23px; }
.detail-card { min-width: 0; padding: 17px 19px; border: 1px solid #dce7eb; border-radius: 7px; background: #fbfdfd; }
.detail-card h3 { margin: 0 0 12px; font-size: 1.12rem; font-weight: 650; letter-spacing: -.015em; }
.detail-card p { color: var(--muted); font-size: .8rem; margin-bottom: 8px; }
.detail-stats { margin: 0; }
.detail-stats div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid #e7edef; }
.detail-stats div:last-child { border: 0; }
.detail-stats dt { color: var(--muted); font-size: .79rem; font-weight: 400; }
.detail-stats dd { margin: 0; text-align: right; color: var(--ink); font-weight: 650; font-size: .86rem; font-variant-numeric: tabular-nums; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.source-badge { display: inline-block; padding: 3px 7px; border-radius: 4px; font-weight: 500; font-size: .67rem; line-height: 1.45; color: #496573; background: #edf2f5; border: 1px solid #dbe5ea; }
.source-badge.published { background: #e8f4f0; color: #236d5d; border-color: #d0e9e1; }
.source-badge.estimated { background: #fcf0e7; color: #8e572b; border-color: #f0ddcd; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 23px; color: var(--muted); font-size: .76rem; border-top: 1px solid var(--line); }
.table-toolbar p { margin: 0; }
.table-wrapper { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .79rem; }
th, td { padding: 12px 18px; border-bottom: 1px solid #e6edf0; vertical-align: middle; }
th { color: #46606f; background: #f7f9fb; font-size: .7rem; font-weight: 650; line-height: 1.4; }
td { color: #37505f; }
th:first-child, td:first-child { padding-left: 23px; }
th:last-child, td:last-child { padding-right: 23px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-selected { background: #eef8f6; }
tbody tr:hover { background: #f4f8fa; }
td button { background: transparent; border: 0; padding: 0; color: var(--teal-dark); font: inherit; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.table-select.selected { color: var(--navy); text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.table-select.selected::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); vertical-align: middle; margin-right: 6px; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.pagination { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.pagination button { display: inline-flex; align-items: center; justify-content: center; min-height: 33px; padding: 6px 10px; border: 1px solid #cbd8df; background: white; color: #355365; border-radius: 4px; font-size: .75rem; }
.pagination button:not(:disabled):hover { background: var(--teal-soft); border-color: #96c1c1; }
.empty-state { padding: 42px 24px; color: var(--muted); text-align: center; background: #fafcfd; border-radius: 8px; font-size: .86rem; }
.empty-state h2, .empty-state h3 { margin-bottom: 9px; }
.empty-state p:last-child { margin-bottom: 0; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; color: var(--subtle); font-size: .71rem; }
.page-footer a { text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.standalone-page { max-width: 1280px; margin: auto; padding: 50px 46px 32px; }
.hero { position: relative; border: 1px solid #cddfe5; border-radius: 16px; background: linear-gradient(115deg, #fff 12%, #edf6f7 100%); padding: 48px 48px 44px; overflow: hidden; }
.hero::after { content: ""; pointer-events: none; position: absolute; width: 370px; height: 370px; border: 60px solid rgb(8 127 134 / 4%); border-radius: 50%; right: -180px; top: -200px; }
.hero-kicker { font-size: .74rem; letter-spacing: .14em; font-weight: 700; color: var(--teal-dark); text-transform: uppercase; margin-bottom: 15px; }
.hero-title { max-width: 820px; font-size: clamp(2rem, 4vw, 3.65rem); font-weight: 650; line-height: 1.12; letter-spacing: -.05em; margin-bottom: 20px; }
.hero-title em { color: var(--teal-dark); font-style: normal; }
.hero-copy { max-width: 730px; font-size: 1.03rem; color: #4d6574; line-height: 1.8; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .button { padding: 12px 20px; }
.hero-footnote { color: var(--muted); font-size: .75rem; line-height: 1.7; margin: 26px 0 0; }
.overview-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 34px; }
.overview-stat { padding: 23px 25px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.overview-stat strong { display: block; color: var(--navy); font-size: 2rem; letter-spacing: -.04em; line-height: 1.25; font-weight: 650; }
.overview-stat span, .overview-stat p { display: block; margin: 7px 0 0; font-size: .8rem; color: var(--muted); }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.question-card { padding: 27px 25px; border: 1px solid var(--line); border-radius: 10px; background: white; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.question-number { display: inline-flex; align-items: center; align-self: flex-start; min-height: 30px; padding: 7px 9px; border-radius: 5px; background: var(--teal-soft); color: var(--teal-dark); font-size: .64rem; font-weight: 700; letter-spacing: .035em; line-height: 1.5; margin-bottom: 23px; }
.question-card h2, .question-card h3 { font-size: 1.25rem; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 13px; }
.question-card p { color: var(--muted); font-size: .86rem; line-height: 1.7; margin-bottom: 24px; }
.question-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); background: transparent; border: 0; padding: 0; text-align: left; font-size: .83rem; font-weight: 650; text-decoration: none; margin-top: auto; align-self: flex-start; }
.question-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.overview-disclaimer { color: var(--muted); font-size: .79rem; line-height: 1.7; padding: 19px 3px 0; margin: 7px 0 0; }
.about-intro { max-width: 850px; margin-bottom: 30px; }
.about-intro h1 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.2; letter-spacing: -.04em; font-weight: 650; margin: 7px 0 15px; }
.about-intro p { font-size: .99rem; line-height: 1.8; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.about-card { background: white; padding: 26px 28px; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; }
.about-card h2 { font-size: 1.2rem; font-weight: 650; line-height: 1.35; margin-bottom: 15px; letter-spacing: -.02em; }
.about-card h3 { font-size: .95rem; margin-top: 24px; margin-bottom: 9px; }
.about-card p, .about-card li { color: #4e6573; font-size: .85rem; line-height: 1.8; }
.about-card p:last-child { margin-bottom: 0; }
.about-card ul, .about-card ol { padding-left: 20px; }
.about-card li { padding-left: 3px; margin: 8px 0; }
.about-card.wide, .about-card.full-width { grid-column: 1 / -1; }
.formula { display: block; padding: 13px 15px; border: 1px solid #dce9ec; border-radius: 6px; background: #f0f6f7; color: #235466; font-family: Consolas, "Courier New", monospace; font-size: .8rem; line-height: 1.7; overflow-wrap: anywhere; white-space: normal; }
.source-list { list-style: none; padding: 0 !important; margin: 0; }
.source-list li { padding: 12px 0; border-bottom: 1px solid #e5edf0; margin: 0; }
.source-list li:last-child { border: 0; }
.source-list a { font-weight: 600; font-size: .85rem; overflow-wrap: anywhere; }
.source-list code { display: block; color: #72848e; font-size: .69rem; overflow-wrap: anywhere; line-height: 1.7; margin-top: 4px; }
.source-list p { font-size: .75rem; margin: 4px 0 0; }
.source-list li > span { display: block; color: var(--subtle); font-size: .73rem; line-height: 1.6; margin-top: 3px; overflow-wrap: anywhere; }
.source-section, .attribution { margin-top: 22px; }
.source-section .source-list { margin-bottom: 21px; }
.source-section p code { font-size: .83em; padding: 2px 5px; background: #edf4f6; border-radius: 3px; }
.attribution { border-top: 3px solid #94bfc6; }
.attribution > a { display: inline-block; margin-top: 4px; font-size: .85rem; font-weight: 600; }
.noscript { padding: 24px; margin: 30px; background: white; border: 1px solid var(--line); }

@media (min-width: 1600px) {
  .app-shell { grid-template-columns: 278px minmax(0, 1fr); }
  .sidebar { padding: 32px 28px; }
  .main-content { padding: 40px 45px 28px; }
  .chart-grid { gap: 26px; }
  .chart-body { padding: 14px 26px 10px; }
  .bar-chart { gap: 9px; }
  .bar-row { min-height: 34px; }
}
@media (max-width: 1190px) {
  .topbar { padding: 14px 24px; gap: 26px; }
  .topnav { gap: 20px; }
  .topnav a.active::after { bottom: -14px; }
  .course-badge { display: none; }
  .app-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .sidebar { padding: 26px 19px; }
  .main-content { padding: 29px 24px 22px; }
  .page-heading { align-items: flex-start; gap: 16px; }
  .page-heading h1 { font-size: 1.75rem; }
  .metric-card { padding: 18px; }
  .metric-grid { gap: 13px; }
  .chart-grid { gap: 16px; }
  .panel-header { padding: 19px 18px 10px; flex-wrap: wrap; }
  .chart-body { padding: 10px 13px 8px; }
  .chart-caption { padding-left: 18px; padding-right: 18px; }
  .bar-row { grid-template-columns: minmax(70px, 1fr) minmax(45px, 1.1fr) 43px; gap: 6px; padding-left: 2px; padding-right: 2px; }
  .bar-name, .bar-value { font-size: .72rem; }
  .tabs button { padding-left: 13px; padding-right: 13px; font-size: .82rem; }
}
@media (max-width: 999px) {
  .topbar { gap: 22px; flex-wrap: wrap; padding: 14px 22px 0; }
  .brand-frame { width: 284px; height: 49px; }
  .brand-frame img { width: 306px; height: 306px; left: -8px; top: -70px; }
  .topnav { margin-left: auto; gap: 19px; min-height: 62px; }
  .topnav a { font-size: .84rem; }
  .topnav a.active::after { bottom: 0; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 21px 25px 17px; display: block; }
  .sidebar-title { padding: 0; border: 0; margin-bottom: 16px; display: flex; gap: 14px; align-items: center; }
  .sidebar-title h2 { font-size: 1.2rem; margin: 0; }
  .sidebar-title .eyebrow { font-size: .64rem; }
  #suburbControls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 23px; align-items: start; }
  #suburbControls > .field-label, #suburbControls > input, #suburbControls > select, #suburbControls > .field-hint { grid-column: 1; }
  #suburbControls > .field-label:first-child { margin-top: 0; }
  #suburbControls > #compareToggle, #suburbControls > .compare-controls { grid-column: 1; }
  #growthControls, #liveabilityControls { grid-column: 2; grid-row: 1 / span 12; margin: 0; border: 0; padding: 0; }
  .control-section > .field-label:first-child { margin-top: 0; }
  .sidebar-bottom { display: none; }
  #resetFilters { margin: 18px 0 0; }
  #driverControls { max-width: 600px; }
  #driverControls .field-label:first-child { margin-top: 0; }
  .sidebar-note { margin-top: 17px; }
  .main-content { padding: 27px 25px 22px; }
  .chart-grid { grid-template-columns: 1fr; gap: 20px; }
  .chart-body { padding: 8px 23px 10px; }
  .panel-header { padding: 22px 24px 12px; }
  .chart-caption { padding-left: 24px; padding-right: 24px; }
  .chart-svg { max-height: 450px; }
  .bar-row { grid-template-columns: minmax(115px, 1fr) minmax(100px, 2.5fr) 58px; gap: 12px; }
  .bar-name, .bar-value { font-size: .8rem; }
  .bar-chart { gap: 8px; }
  .bar-track { height: 20px; }
  .bar-row { min-height: 34px; }
  .standalone-page { padding: 35px 25px 28px; }
  .hero { padding: 34px 32px; }
  .overview-grid { gap: 14px; }
  .question-card { padding: 24px 20px; }
}
@media (max-width: 650px) {
  :root { font-size: 14px; }
  .topbar { padding: 13px 16px 0; gap: 9px; }
  .brand-frame { width: 270px; height: 46px; }
  .brand-frame img { width: 291px; height: 291px; left: -7px; top: -66px; }
  .topnav { width: 100%; margin: 0; gap: 21px; min-height: 49px; justify-content: flex-start; }
  .topnav a { font-size: .85rem; }
  .sidebar { padding: 20px 18px; }
  .sidebar-title { margin-bottom: 18px; }
  #suburbControls { column-gap: 16px; }
  .field-label { margin-top: 19px; font-size: .8rem; }
  .field-hint { font-size: .72rem; }
  select, input[type="search"], input[type="number"] { min-height: 42px; padding: 9px 8px; font-size: .83rem; }
  #compareToggle { font-size: .78rem; padding-left: 8px; padding-right: 8px; min-height: 42px; }
  .main-content { padding: 25px 16px 20px; }
  .page-heading { display: block; margin-bottom: 19px; }
  .page-heading h1 { font-size: 1.9rem; line-height: 1.22; }
  .page-heading > .button { margin-top: 17px; }
  .page-heading .eyebrow { font-size: .64rem; }
  .tabs { gap: 0; margin-bottom: 18px; }
  .tabs button { flex: 1; padding: 11px 6px 12px; font-size: .8rem; line-height: 1.4; }
  .metric-grid { gap: 9px; margin-bottom: 18px; }
  .metric-card { padding: 14px 11px; border-radius: 7px; }
  .metric-value { font-size: 1.65rem; }
  .metric-label { font-size: .72rem; line-height: 1.4; margin-bottom: 9px; }
  .metric-detail { font-size: .68rem; }
  .panel-header { padding: 19px 17px 10px; }
  .panel-header h2 { font-size: 1.12rem; }
  .panel-header p { font-size: .78rem; }
  .chart-body { padding: 7px 12px 8px; }
  .chart-caption { padding-left: 17px; padding-right: 17px; }
  .bar-row { grid-template-columns: minmax(83px, 1.1fr) minmax(70px, 1.7fr) 45px; gap: 7px; }
  .bar-name, .bar-value { font-size: .76rem; }
  .bar-track { height: 18px; }
  .bar-chart { gap: 6px; }
  .chart-svg .axis-label { font-size: 12px; }
  .context-note { padding: 14px 13px; gap: 10px; font-size: .79rem; }
  .detail-grid { padding: 8px 17px 17px; gap: 13px; grid-template-columns: 1fr; }
  .detail-card { padding: 16px; }
  .table-toolbar { padding: 13px 17px; font-size: .73rem; }
  table { min-width: 580px; }
  th, td { padding: 11px 13px; }
  th:first-child, td:first-child { padding-left: 17px; }
  th:last-child, td:last-child { padding-right: 17px; }
  .page-footer { margin-top: 23px; font-size: .7rem; }
  .standalone-page { padding: 27px 16px 25px; }
  .hero { padding: 30px 24px; border-radius: 11px; }
  .hero-title { font-size: 2.55rem; }
  .hero-kicker { font-size: .66rem; }
  .hero-copy { font-size: .97rem; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { padding: 11px 15px; }
  .overview-stat-grid { gap: 9px; margin: 17px 0 25px; }
  .overview-stat { padding: 17px 13px; }
  .overview-stat strong { font-size: 1.8rem; }
  .overview-stat span, .overview-stat p { font-size: .73rem; }
  .overview-grid, .about-grid { grid-template-columns: 1fr; gap: 17px; }
  .question-card { padding: 25px; }
  .question-number { margin-bottom: 18px; }
  .question-card h2, .question-card h3 { font-size: 1.4rem; }
  .question-card p { font-size: .92rem; margin-bottom: 18px; }
  .about-card { padding: 23px; }
  .about-card h2 { font-size: 1.3rem; }
  .about-card p, .about-card li { font-size: .9rem; }
}
@media (max-width: 359px) {
  .topnav { gap: 14px; }
  .topnav a { font-size: .8rem; }
  #suburbControls { display: block; }
  #growthControls, #liveabilityControls { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { padding: 17px; }
  .metric-value { font-size: 2rem; }
  .overview-stat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  body { background: white; }
  .topbar { background: white; color: var(--navy); border-bottom: 1px solid var(--line); }
  .topnav, .course-badge, .sidebar, #download, .tabs, .page-footer, .skip-link { display: none !important; }
  .app-shell { display: block; }
  .main-content, .standalone-page { padding: 20px 0; }
  .panel, .metric-card, .detail-card, .about-card { break-inside: avoid; box-shadow: none; }
  .chart-grid { grid-template-columns: 1fr 1fr; }
  .table-wrapper { overflow: visible; }
  table { min-width: 0; }
}
