/* 2027 — Next stop: Northside.
   Brisbane told by river and rail: navy signage, river blue, stop-sign yellow,
   mangrove green. Overpass (a road-sign face) throughout. */
:root {
  --navy: #0B2545;
  --river: #0A6AA1;
  --stop: #FFC72C;
  --mangrove: #2E7D4F;
  --coral: #E4572E;
  --sky: #EAF4FA;
  --white: #FFFFFF;
  --ground: #F4F8FB;
  --card: #FFFFFF;
  --ink: #0B2545;
  --soft: #4A6584;
  --line: #D5E2EC;
  --tick: #2E7D4F;
  --shadow: 0 14px 40px rgba(11, 37, 69, .14);
  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --ground: #071A31; --card: #0F2A4A; --ink: #EAF4FA; --soft: #9DB6CF; --line: #1D3D63; --sky: #0B2545; --tick: #5FC48D; --shadow: 0 14px 40px rgba(0, 0, 0, .4); }
}
:root[data-theme="dark"] { color-scheme: dark; --ground: #071A31; --card: #0F2A4A; --ink: #EAF4FA; --soft: #9DB6CF; --line: #1D3D63; --sky: #0B2545; --tick: #5FC48D; --shadow: 0 14px 40px rgba(0, 0, 0, .4); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--stop); color: var(--navy); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--stop); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.fine { font-size: .9rem; color: var(--soft); }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--navy); color: var(--white); padding-top: env(safe-area-inset-top, 0px); }
.bar .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.15rem/1 var(--font); text-decoration: none; letter-spacing: -.01em; }
.brand i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--stop); color: var(--navy); font-style: normal; font-size: .8rem; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav a { flex: none; padding: 8px 12px; border-radius: 999px; font: 700 .92rem/1 var(--font); text-decoration: none; color: #C9D8E8; transition: background .2s, color .2s; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { background: var(--stop); color: var(--navy); }
.who { flex: none; display: flex; align-items: center; gap: 6px; font: 700 .85rem/1 var(--font); }
.who button { border: 2px solid rgba(255, 255, 255, .3); background: transparent; color: var(--white); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.who button[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- login ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; background: var(--navy) center / cover no-repeat; position: relative; padding: 24px; }
.gate::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 37, 69, .35), rgba(11, 37, 69, .85)); }
.gate .sign { position: relative; width: min(440px, 100%); background: var(--navy); color: var(--white); border-radius: 18px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.gate small { font: 800 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--stop); }
.gate h1 { font: 800 2.6rem/.95 var(--font); letter-spacing: -.02em; }
.gate p { color: #C9D8E8; }
.gate .pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gate .pick button { padding: 14px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .25); background: transparent; color: var(--white); font: 800 1.2rem/1 var(--font); cursor: pointer; }
.gate .pick button[aria-pressed="true"] { background: var(--stop); color: var(--navy); border-color: var(--stop); }
.gate input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: var(--white); }
.gate .go { padding: 14px; border: 0; border-radius: 12px; background: var(--stop); color: var(--navy); font: 800 1.05rem/1 var(--font); cursor: pointer; }
.gate .err { color: #FFB4A2; font-size: .92rem; min-height: 1.2em; }

/* ---------- page heads ---------- */
.head { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.head .ph { position: absolute; inset: -8% 0; background: center / cover no-repeat; transform: translateY(calc(var(--py, 0) * 1px)) scale(1.06); }
.head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 37, 69, .92) 0%, rgba(11, 37, 69, .55) 55%, rgba(11, 37, 69, .1) 100%); }
.head .wrap { position: relative; z-index: 1; padding-block: 96px 64px; display: grid; gap: 14px; }
.head small { font: 800 .8rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--stop); }
.head h1 { font: 800 clamp(2.6rem, 6vw, 4.8rem)/.95 var(--font); letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; }
.head p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #DCE8F3; max-width: 46ch; }

/* entrance: words and pictures rise into place at their own pace */
.rise { --e: 1; transform: translateY(calc((1 - var(--e)) * var(--d, 40px))); }
.rise.slow { --d: 90px; }

/* ---------- sections ---------- */
.section { padding-block: 72px; display: grid; gap: 24px; }
.section > header { display: grid; gap: 8px; max-width: 70ch; }
.section h2 { font: 800 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--font); letter-spacing: -.02em; }
.section h2 + p { color: var(--soft); font-size: 1.08rem; }
.eyebrow-free { display: none; }
.pill { display: inline-block; justify-self: start; background: var(--stop); color: var(--navy); border-radius: 999px; padding: 3px 10px; font: 800 .76rem/1.4 var(--font); letter-spacing: .02em; }
.pill.blue { background: var(--river); color: var(--white); }
.pill.green { background: var(--mangrove); color: var(--white); }
.pill.outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 1px 8px; }
.pill.coral { background: var(--coral); color: var(--white); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; box-shadow: 0 1px 0 var(--line); }
.card h3 { font: 800 1.15rem/1.25 var(--font); }
.card .big { font: 800 1.7rem/1.05 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card .suburb { color: var(--soft); font-size: .92rem; }

/* ---------- the line (timeline) ---------- */
.line { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding-top: 30px; }
.line::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 8px; border-radius: 4px; background: var(--river); }
.line .fill { position: absolute; left: 12px; top: 11px; height: 8px; border-radius: 4px; background: var(--stop); width: calc((100% - 24px) * var(--f, 0)); }
.line li { position: relative; display: grid; gap: 2px; cursor: pointer; }
.line li::before { content: ""; position: absolute; top: -29px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 5px solid var(--navy); transition: transform .3s; }
.line li.here::before { background: var(--stop); transform: scale(1.2); }
.line li.past::before { background: var(--navy); }
.line b { font: 800 1.15rem/1.15 var(--font); }
.line span { color: var(--soft); font-size: .95rem; }

/* ---------- tiles to sections ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 18px; min-height: 260px; display: grid; align-content: end; color: var(--white); text-decoration: none; background: var(--navy) center / cover no-repeat; isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 37, 69, 0) 30%, rgba(11, 37, 69, .9)); z-index: -1; }
.tile .in { padding: 20px; display: grid; gap: 6px; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.tile:hover .in { transform: translateY(-6px); }
.tile h3 { font: 800 1.5rem/1.05 var(--font); }
.tile p { color: #DCE8F3; font-size: .95rem; }

/* ---------- fly-through ---------- */
.fly { position: relative; }
.fly .stage { position: sticky; top: 60px; height: calc(100vh - 60px); overflow: hidden; background: #0B2545; }
#map { position: absolute; inset: 0; }
.fly .stage .veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 26, 49, .55) 0%, rgba(7, 26, 49, 0) 45%); }
.fly .stops { position: relative; margin-top: calc(-100vh + 60px); pointer-events: none; }
.stopcard { min-height: 100vh; display: flex; align-items: center; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: 20px; }
.stopcard .sign { pointer-events: auto; width: min(420px, 100%); background: var(--navy); color: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); margin-left: max(0px, calc((100vw - 1200px) / 2)); }
.stopcard .sign .pic { aspect-ratio: 16 / 9; background: #13355E center / cover no-repeat; }
.stopcard .sign .body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.stopcard small { font: 800 .76rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--stop); }
.stopcard h2 { font: 800 2.3rem/.95 var(--font); letter-spacing: -.02em; }
.stopcard p { color: #C9D8E8; font-size: .98rem; }
.stopcard dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; }
.stopcard dt { font: 700 .72rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .08em; color: #8FB0CF; }
.stopcard dd { margin: 0; font: 800 1.1rem/1.2 var(--font); font-variant-numeric: tabular-nums; }
.stopcard .intro h2 { font-size: 3rem; }
.maplegend { position: absolute; right: 16px; bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 2; }
.maplegend span { background: rgba(11, 37, 69, .85); color: var(--white); border-radius: 999px; padding: 6px 10px; font: 700 .78rem/1 var(--font); display: flex; gap: 6px; align-items: center; }
.maplegend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.progressline { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(520px, 70vw); height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); z-index: 2; }
.progressline i { display: block; height: 100%; border-radius: 2px; background: var(--stop); width: calc(var(--t, 0) * 100%); }

/* ---------- ticks ---------- */
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item { position: relative; background: var(--card); border-radius: var(--r); display: grid; grid-template-columns: 96px minmax(0, 1fr); overflow: hidden; transition: background .3s, opacity .3s; box-shadow: 0 1px 0 var(--line); }
.item > img { width: 96px; height: 100%; min-height: 96px; object-fit: cover; }
.item .body { padding: 14px 54px 14px 16px; display: grid; gap: 5px; align-content: center; min-width: 0; }
.item label { font: 800 1.08rem/1.25 var(--font); cursor: pointer; }
.item .how { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--soft); font-size: .9rem; }
.item p { color: var(--soft); font-size: .95rem; }
.item .by { font-size: .8rem; color: var(--soft); }
.tk, .item input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 28px; height: 28px; margin: 0; border: 3px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; display: inline-grid; place-content: center; }
.item input[type=checkbox] { position: absolute; top: 14px; right: 14px; }
.tk::after, .item input[type=checkbox]::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.tk:checked, .item input[type=checkbox]:checked { background: var(--tick); border-color: var(--tick); animation: pop .3s ease-out; }
.tk:checked::after, .item input[type=checkbox]:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.item:has(input:checked) { background: color-mix(in srgb, var(--tick) 12%, var(--card)); }
.item:has(input:checked) label { text-decoration: line-through; text-decoration-thickness: 2px; }
.item:has(input:checked) > img { opacity: .5; }
@keyframes pop { 45% { transform: scale(1.18); } }
.hide-done .item:has(input:checked), .hide-done .sheet li:has(input:checked) { display: none; }

/* ---------- tabs and picks ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font: 700 .95rem/1 var(--font); }
.tabs button img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--white); }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tabs .sl:not(:empty) { font: 800 .72rem/1 var(--font); font-style: normal; background: var(--stop); color: var(--navy); border-radius: 999px; padding: 4px 7px; }
.panel { display: grid; gap: 16px; animation: fade .4s cubic-bezier(.16, 1, .3, 1); }
@keyframes fade { from { transform: translateY(10px); } }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick { background: var(--card); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; align-content: start; border: 2px solid transparent; min-width: 0; box-shadow: 0 1px 0 var(--line); }
.pick:has(.short input:checked) { border-color: var(--tick); }
.pick .shot { aspect-ratio: 4 / 3; background: #FFFFFF; border-radius: 10px; overflow: hidden; }
.pick .shot img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pick h3 { font: 800 1.12rem/1.25 var(--font); }
.pick .pp { font: 800 1.9rem/1 var(--font); color: var(--river); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .pick .pp { color: var(--stop); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pick .pp { color: var(--stop); } }
.pick .sub, .pick .but { color: var(--soft); font-size: .92rem; }
.pick .but::before { content: "But: "; font-weight: 800; }
.pick .links { display: flex; flex-wrap: wrap; gap: 6px; }
.pick .links a, .btn-line { font: 700 .82rem/1 var(--font); text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 10px; background: transparent; cursor: pointer; }
.pick .links a:hover, .btn-line:hover { background: var(--ink); color: var(--card); }
.short { display: flex; gap: 8px; align-items: center; font: 800 .95rem/1 var(--font); cursor: pointer; }
.note { max-width: 75ch; }

/* ---------- votes and comments ---------- */
.vote { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .85rem; }
.vote .row { display: flex; align-items: center; gap: 4px; }
.vote .row b { min-width: 34px; font: 800 .82rem/1 var(--font); }
.vote button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--line); font-size: 20px; line-height: 1; }
.vote button.on { color: var(--stop); }
.vote .row.me button { color: color-mix(in srgb, var(--soft) 45%, transparent); }
.vote .row.me button.on { color: var(--stop); }
.vote .row:not(.me) button { cursor: default; }
.agree { font: 800 .74rem/1.4 var(--font); border-radius: 999px; padding: 2px 8px; background: var(--mangrove); color: var(--white); }
.thread { display: grid; gap: 8px; }
.thread summary { cursor: pointer; font: 700 .88rem/1 var(--font); color: var(--soft); width: fit-content; }
.thread ul { display: grid; gap: 6px; margin-top: 8px; }
.thread li { font-size: .92rem; background: var(--sky); border-radius: 10px; padding: 8px 10px; }
.thread li b { font-weight: 800; margin-right: 6px; }
.thread li time { color: var(--soft); font-size: .78rem; margin-left: 6px; }
.thread form { display: flex; gap: 6px; margin-top: 6px; }
.thread input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); }
.thread button { border: 0; border-radius: 10px; padding: 8px 12px; background: var(--navy); color: var(--white); font-weight: 800; cursor: pointer; }
:root[data-theme="dark"] .thread button { background: var(--stop); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .thread button { background: var(--stop); color: var(--navy); } }

/* ---------- sheets ---------- */
.sheet { background: var(--card); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; box-shadow: 0 1px 0 var(--line); }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.sheet-head h3 { font: 800 1.4rem/1.2 var(--font); }
.count { font: 800 .9rem/1 var(--font); background: var(--sky); border-radius: 999px; padding: 6px 12px; font-variant-numeric: tabular-nums; }
.sheet.complete .count { background: var(--tick); color: var(--white); }
.sheet .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.sheet h4 { font: 800 .95rem/1.2 var(--font); color: var(--soft); margin-bottom: 4px; }
.sheet label { display: flex; gap: 12px; align-items: center; padding: 6px 0; cursor: pointer; }
.sheet label:has(input:checked) span { text-decoration: line-through; opacity: .6; }

/* ---------- suburbs ---------- */
.suburbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.suburb { background: var(--card); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow); }
.suburb .pic { position: relative; aspect-ratio: 3 / 2; background: var(--navy) center / cover no-repeat; }
.suburb .pic .stopname { position: absolute; left: 14px; bottom: 14px; background: var(--navy); color: var(--white); border-radius: 10px; padding: 8px 12px; font: 800 1.3rem/1 var(--font); display: flex; gap: 8px; align-items: center; }
.suburb .pic .stopname i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--stop); }
.suburb .body { padding: 16px 18px 18px; display: grid; gap: 10px; align-content: start; }
.suburb dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; }
.suburb dt { font: 700 .7rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.suburb dd { margin: 0; font: 800 1.05rem/1.2 var(--font); font-variant-numeric: tabular-nums; }
.suburb dd.over { color: var(--coral); }
.suburb p { font-size: .94rem; color: var(--soft); }
.suburb .facts { display: grid; gap: 4px; font-size: .9rem; }
.suburb .facts b { font-weight: 800; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters button { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font: 700 .88rem/1 var(--font); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.compare { overflow-x: auto; background: var(--card); border-radius: var(--r); }
.compare table { width: 100%; border-collapse: collapse; min-width: 720px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.compare th { font: 800 .74rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--soft); cursor: pointer; }
.compare td.over { color: var(--coral); font-weight: 800; }
.compare td.ok { color: var(--mangrove); font-weight: 800; }

/* ---------- homes ---------- */
.homes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home { background: var(--card); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; box-shadow: 0 1px 0 var(--line); }
.home h3 { font: 800 1.15rem/1.25 var(--font); }
.home .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.home .price { font: 800 1.5rem/1 var(--font); color: var(--river); }
.home p { font-size: .94rem; color: var(--soft); }

/* ---------- names ---------- */
.names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.name { background: var(--card); border-radius: 18px; padding: 22px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.name h3 { font: 800 2.2rem/1 var(--font); letter-spacing: -.02em; }
.name .full { font-size: 1.05rem; color: var(--soft); }
.name .full b { color: var(--ink); }
.name .likes { display: flex; gap: 6px; flex-wrap: wrap; }
.say { border: 2px solid var(--ink); background: transparent; border-radius: 999px; padding: 6px 12px; font: 800 .85rem/1 var(--font); cursor: pointer; justify-self: start; }
.toggle { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.toggle button { border: 0; background: transparent; padding: 8px 14px; font: 800 .9rem/1 var(--font); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.add { display: flex; gap: 8px; flex-wrap: wrap; }
.add input, .add select { padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); min-width: 0; }
.add button { border: 0; border-radius: 10px; padding: 10px 16px; background: var(--navy); color: var(--white); font-weight: 800; cursor: pointer; }
:root[data-theme="dark"] .add button { background: var(--stop); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .add button { background: var(--stop); color: var(--navy); } }

/* ---------- money ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.calc .inputs { display: grid; gap: 12px; }
.calc label { display: grid; gap: 4px; font: 700 .85rem/1.2 var(--font); color: var(--soft); }
.calc input[type=range] { width: 100%; accent-color: var(--river); }
.calc output { font: 800 1.1rem/1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 10px; }
.barrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: .92rem; }
.barrow .track { height: 14px; border-radius: 7px; background: var(--sky); overflow: hidden; }
.barrow .track i { display: block; height: 100%; border-radius: 7px; background: var(--river); width: 0; transition: width .8s cubic-bezier(.16, 1, .3, 1); }
.barrow b { text-align: right; font-variant-numeric: tabular-nums; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ledger td.num, .ledger th.num { text-align: right; }
.ledger input { width: 100%; padding: 6px 8px; border: 2px solid var(--line); border-radius: 8px; background: var(--card); }

/* ---------- notes ---------- */
.notes { display: grid; gap: 12px; }
.notecard { background: var(--card); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 6px; box-shadow: 0 1px 0 var(--line); }
.notecard .by { font: 800 .8rem/1 var(--font); color: var(--soft); }
.compose { display: grid; gap: 8px; }
.compose textarea { min-height: 90px; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); resize: vertical; }
.compose .row { display: flex; gap: 8px; flex-wrap: wrap; }
.compose select { padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); }
.compose button { border: 0; border-radius: 10px; padding: 10px 16px; background: var(--navy); color: var(--white); font-weight: 800; cursor: pointer; }

.photo { position: relative; overflow: hidden; border-radius: 18px; }
.photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.photo figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--navy); color: var(--white); border-radius: 10px; padding: 6px 12px; font: 800 .9rem/1.2 var(--font); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; font: 700 .9rem/1 var(--font); z-index: 50; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.toast.on { transform: translateX(-50%) translateY(0); }

@media (max-width: 1000px) {
  .g3, .g4, .picks, .suburbs, .names, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .g2, .g3, .g4, .picks, .suburbs, .names, .tiles, .items, .homes, .sheet .cols { grid-template-columns: 1fr; }
  .line { grid-template-columns: 1fr; padding-top: 0; padding-left: 34px; }
  .line::before { left: 9px; right: auto; top: 6px; bottom: 6px; width: 8px; height: auto; }
  .line .fill { left: 9px; top: 6px; width: 8px; height: calc((100% - 12px) * var(--f, 0)); }
  .line li::before { top: 2px; left: -34px; }
  .stopcard { align-items: flex-end; padding-bottom: 48px; }
  .stopcard .sign .pic { display: none; }
  .barrow { grid-template-columns: 110px minmax(0, 1fr) 76px; }
  .who span { display: none; }
  .head .wrap { padding-block: 72px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { --e: 1 !important; }
  .head .ph { transform: none; }
  *, *::after, *::before { animation: none !important; transition: none !important; }
}

/* skip cards */
.card.flip { text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; }
.card.flip[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.card.flip[aria-pressed="true"] h3 { color: var(--stop); }

/* journeys and houses */
.dests { display: flex; flex-wrap: wrap; gap: 6px; }
.dests button { display: flex; align-items: center; gap: 6px; border: 2px solid transparent; background: rgba(11, 37, 69, .85); color: var(--white); border-radius: 999px; padding: 6px 11px; font: 700 .8rem/1 var(--font); cursor: pointer; transition: opacity .2s, transform .25s cubic-bezier(.16, 1, .3, 1); }
.dests button:hover { transform: translateY(-2px); }
.dests button[aria-pressed="false"] { opacity: .45; }
.dests button i { width: 10px; height: 10px; border-radius: 50%; }
.section .dests button { background: var(--navy); }
.times { display: grid; gap: 5px; margin-top: 4px; }
.times li { display: grid; grid-template-columns: 10px auto 1fr; gap: 8px; align-items: baseline; font-size: .9rem; }
.times li i { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.times li b { font-weight: 800; }
.times li span { color: var(--soft); text-align: right; font-variant-numeric: tabular-nums; }
.stopcard .times li span { color: #C9D8E8; }
.times.compact li { font-size: .84rem; }
.exn { color: var(--stop) !important; font: 800 .82rem/1.3 var(--font); }
.exs summary { cursor: pointer; font: 800 .9rem/1 var(--font); width: fit-content; }
.exs ul { display: grid; gap: 8px; margin-top: 8px; }
.ex { background: var(--sky); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; font-size: .9rem; }
.ex > div:first-child { display: grid; }
.ex > div:first-child span { color: var(--soft); }
.exp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.exa { display: flex; gap: 6px; flex-wrap: wrap; }
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; }
#xmap { min-height: 560px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.xpanel { background: var(--card); border-radius: 18px; padding: 20px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.xpanel small { font: 800 .74rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--river); }
.xpanel h3 { font: 800 1.5rem/1.1 var(--font); }
.xprice { font: 800 1.6rem/1 var(--font); color: var(--river); }
.maplegend .dests { justify-content: flex-end; }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } #xmap { min-height: 420px; } }

.shuffle { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
#shuffled { cursor: pointer; font: 800 clamp(1.6rem, 3.6vw, 2.6rem)/1.1 var(--font); color: var(--river); }

.trend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 220px; margin-top: 8px; }
.tcol { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; height: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.tcol b { font: 800 .8rem/1 var(--font); }
.tcol .tbar { align-self: end; height: var(--h); background: var(--river); border-radius: 8px 8px 3px 3px; }
.tcol em { font: 700 .82rem/1 var(--font); font-style: normal; color: var(--soft); }


/* housing */
.verdict { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.35; max-width: 46ch; border-left: 6px solid var(--stop); padding-left: 18px; margin: 0 0 28px; }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duel h4 { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--soft); }
.duel .grid { grid-template-columns: 1fr; gap: 12px; padding: 0; }
.card.for { border-top: 4px solid var(--mangrove); }
.card.against { border-top: 4px solid var(--coral); }
@media (max-width: 760px) { .duel { grid-template-columns: 1fr; } }
.trade svg { width: 100%; height: auto; display: block; }
.trade .gl { stroke: var(--line); stroke-width: 1; }
.trade .ax { fill: var(--soft); font-size: 13px; }
.trade .band { fill: var(--stop); opacity: .16; }
.trade .bandl { fill: var(--soft); font-size: 12px; font-weight: 700; }
.trade .dl { fill: var(--ink); font-size: 14px; font-weight: 700; }
.trade .dot circle { stroke: var(--card); stroke-width: 3; transition: r .2s; }
.trade .dot:hover circle, .trade .dot:focus circle { r: 15; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--soft); margin: 10px 0 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* feedback */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; background: var(--navy); color: #fff; border: 2px solid var(--stop); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
.fab:hover { background: var(--river); }
dialog.fb { border: 0; border-radius: 18px; padding: 24px; width: min(560px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
dialog.fb::backdrop { background: rgba(11, 37, 69, .55); }
dialog.fb h3 { margin: 0 0 6px; }
dialog.fb textarea { width: 100%; min-height: 110px; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--ground); color: inherit; font: inherit; margin: 10px 0; }
dialog.fb .row { display: flex; justify-content: flex-end; gap: 10px; }
.fblist { list-style: none; padding: 0; margin: 18px 0 0; max-height: 240px; overflow: auto; display: grid; gap: 10px; }
.fblist li { font-size: .9rem; border-top: 1px solid var(--line); padding-top: 10px; }
.fblist p { margin: 4px 0 0; }
