/* Torbay Open — plain CSS, no framework.
   Palette drawn from the bay itself: harbour navy, bay teal, limestone paper,
   and buoy yellow for the things that need your attention. */

@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&display=swap');

:root {
  --ink: #13233a;
  --ink-soft: #3d4d63;
  --muted: #66758a;
  --bay: #0e6e7a;
  --bay-deep: #0a515a;
  --shallows: #d8ecec;
  --sea: #bfe0e0;
  --land: #f1f2ec;
  --paper: #f6f7f4;
  --white: #ffffff;
  --buoy: #f4b731;
  --buoy-soft: #fdf1d2;
  --flare: #c8323c;
  --flare-soft: #f8e0e1;
  --kelp: #2f7d4e;
  --kelp-soft: #dff0e5;
  --line: #d9ddd6;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5vw, 3.6rem);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--bay-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(40px, 7vw, 88px) 0; }
.section + .section { padding-top: 0; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--ink);
  color: #e8edf3;
  font-size: var(--step--1);
  padding: 8px var(--gutter);
  text-align: center;
}
.demo-banner a { color: var(--buoy); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.brand-sub { display: block; font-size: 0.8rem; color: var(--muted); font-family: var(--body); font-weight: 400; margin-top: 3px; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
}
.nav a:hover { background: var(--shallows); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.nav a.nav-cta { background: var(--buoy); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 700 0.95rem var(--body); color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--white); transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--bay-deep); border-color: var(--bay-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-buoy { background: var(--buoy); border-color: var(--buoy); color: var(--ink); }
.btn-buoy:hover { background: #e8a817; border-color: #e8a817; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-small { padding: 7px 14px; font-size: 0.9rem; border-width: 1.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #c3c9c0; border-radius: var(--radius-s); background: var(--white);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bay); box-shadow: 0 0 0 3px rgba(14,110,122,.18); }
.field { margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--bay); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 7px 14px; border: 1.5px solid #c3c9c0; border-radius: 999px; font-weight: 700; font-size: .92rem; cursor: pointer; background: var(--white); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--buoy); outline-offset: 2px; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero h1 { max-width: 13ch; }
.pulse { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 34ch; }
.pulse strong { font-family: var(--display); font-size: 1.15em; color: var(--ink); }
.pulse .n-open { box-shadow: inset 0 -0.38em var(--buoy-soft); }
.pulse .n-overdue { box-shadow: inset 0 -0.38em var(--flare-soft); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { max-width: none; } }

/* ---------- Bay map ---------- */
.bay-map { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--sea); }
.bay-map svg { width: 100%; height: auto; }
.bay-map .land { fill: var(--land); stroke: #c9cfc4; stroke-width: 2; }
.bay-map .sea-line { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; }
.bay-map .town-label { font: 800 20px var(--display); fill: var(--ink-soft); letter-spacing: -0.01em; }
.bay-map .bay-label { font: 400 italic 18px var(--body); fill: var(--bay-deep); opacity: .75; }
.bay-map .ward-dot { fill: var(--ink-soft); opacity: .22; }
.pin { cursor: pointer; }
.pin circle.core { fill: var(--buoy); stroke: var(--ink); stroke-width: 2; }
.pin.fixed circle.core { fill: var(--kelp); stroke: var(--white); }
.pin.overdue circle.halo { fill: none; stroke: var(--flare); stroke-width: 3; }
.pin:hover circle.core, .pin:focus circle.core { stroke-width: 3.5; }
.pin:focus { outline: none; }
.pin-picked circle { fill: var(--ink); stroke: var(--buoy); stroke-width: 4; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-soft); margin-top: 10px; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--ink); background: var(--buoy); }
.map-legend i.fx { background: var(--kelp); border-color: var(--white); box-shadow: 0 0 0 1px var(--kelp); }
.map-legend i.od { background: transparent; border: 3px solid var(--flare); }
.map-note { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--bay-deep); background: rgba(255,255,255,.7); padding: 2px 8px; border-radius: 999px; }
.map-pick-help { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--white); font-size: var(--step--1); font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.map-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: var(--white); padding: 10px 12px; border-radius: var(--radius-s); font-size: 0.85rem; max-width: 240px; line-height: 1.35; transform: translate(-50%, calc(-100% - 14px)); }

/* ---------- The loop (a real sequence) ---------- */
.loop { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.loop li { counter-increment: step; position: relative; padding: 0 18px 0 0; }
.loop li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--white); font: 800 1.05rem var(--display); margin-bottom: 14px; position: relative; z-index: 1;
}
.loop li::after { content: ''; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: var(--line); }
.loop li:last-child::after { display: none; }
.loop h3 { font-size: 1.1rem; margin-bottom: 6px; }
.loop p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.loop a { font-weight: 700; font-size: .92rem; }
@media (max-width: 860px) {
  .loop { grid-template-columns: 1fr; gap: 22px; }
  .loop li { padding: 0 0 0 58px; }
  .loop li::before { position: absolute; left: 0; top: 0; }
  .loop li::after { top: 44px; bottom: -22px; left: 19px; width: 2px; height: auto; right: auto; }
}

/* ---------- Generic layout pieces ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
.split-wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(18px, 3vw, 28px); }
.panel-tint { background: var(--shallows); border-color: transparent; }
.page-head { padding: clamp(32px, 6vw, 64px) 0 clamp(18px, 3vw, 28px); }
.page-head p { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }

.stat-line { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 6px 0 0; padding: 0; list-style: none; }
.stat-line li { color: var(--ink-soft); }
.stat-line b { font-family: var(--display); font-size: 1.6rem; color: var(--ink); margin-right: 6px; }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-rule > li { padding: 16px 0; border-top: 1px solid var(--line); }
.list-rule > li:first-child { border-top: 0; padding-top: 0; }

.status { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--buoy-soft); color: #6b4d00; white-space: nowrap; }
.status-fixed, .status-kept, .status-adopted, .status-approved, .status-published, .status-done { background: var(--kelp-soft); color: var(--kelp); }
.status-overdue, .status-missed, .status-broken, .status-reopened, .status-rejected { background: var(--flare-soft); color: var(--flare); }
.status-sent, .status-acknowledged, .status-claimed, .status-ballot { background: var(--shallows); color: var(--bay-deep); }
.status-draft, .status-needs-check { background: #ececec; color: var(--ink-soft); }
.tag { display: inline-block; font-size: 0.8rem; color: var(--ink-soft); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; background: var(--white); }
.meta { font-size: var(--step--1); color: var(--muted); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Ideas & votes ---------- */
.idea { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px 28px; }
.idea:first-child { border-top: 0; }
.idea h3 { font-size: 1.15rem; margin-bottom: 4px; }
.idea p { margin: 0 0 8px; color: var(--ink-soft); }
.vote-btns { display: flex; gap: 6px; margin-top: 10px; }
.vote-btns button { font: 700 .9rem var(--body); padding: 7px 14px; border-radius: 999px; border: 1.5px solid #c3c9c0; background: var(--white); color: var(--ink); cursor: pointer; }
.vote-btns button[aria-pressed="true"][data-vote="agree"] { background: var(--kelp); border-color: var(--kelp); color: var(--white); }
.vote-btns button[aria-pressed="true"][data-vote="disagree"] { background: var(--flare); border-color: var(--flare); color: var(--white); }
.vote-btns button[aria-pressed="true"][data-vote="pass"] { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--white); }
.townbars { display: grid; gap: 7px; font-size: .85rem; }
.townbar { display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 8px; }
.townbar .bar { height: 8px; background: #e6e8e3; border-radius: 999px; overflow: hidden; }
.townbar .bar > span { display: block; height: 100%; background: var(--bay); border-radius: 999px; }
.townbar .pct { text-align: right; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 720px) { .idea { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { font: 700 .95rem var(--body); padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Council Decoded ---------- */
.episode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); margin-bottom: 40px; }
.episode-head { grid-column: 1 / -1; padding: 18px 0 14px; }
.episode-head h3 { font-size: var(--step-2); margin: 0 0 6px; }
.episode section { padding: 16px 20px 18px 0; border-top: 1px solid var(--line); }
.episode section + section { padding-left: 20px; border-left: 1px solid var(--line); }
.episode h4 { font-size: 1rem; margin-bottom: 6px; color: var(--bay-deep); }
.episode p { font-size: .98rem; margin: 0; }
.episode-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .episode { grid-template-columns: 1fr; } .episode section + section { padding-left: 0; border-left: 0; } }

.promise-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.promise-table th { text-align: left; font-weight: 700; color: var(--muted); font-size: .85rem; padding: 0 12px 8px 0; border-bottom: 1.5px solid var(--ink); }
.promise-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 760px) {
  .promise-table thead { display: none; }
  .promise-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .promise-table td { display: block; border: 0; padding: 2px 0; }
}

/* ---------- Volunteer ---------- */
.task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.task:first-child { border-top: 0; }
.task h3 { font-size: 1.05rem; margin: 0 0 4px; }
.task p { margin: 0 0 6px; font-size: .95rem; color: var(--ink-soft); }
.match { font-size: .8rem; font-weight: 700; color: var(--bay-deep); }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.cells div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.cells b { display: block; font-size: .95rem; }
.cells span { font-size: .85rem; color: var(--muted); }
.module { border-top: 1px solid var(--line); padding: 14px 0; }
.module summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.module p { margin: 10px 0; color: var(--ink-soft); }

/* ---------- Concept (head office) ---------- */
.engine { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.engine-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.engine ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); }
.engine ul li { margin-bottom: 4px; }
.engine .why { font-size: .95rem; background: var(--shallows); padding: 14px 16px; border-radius: var(--radius-m); align-self: start; }
@media (max-width: 900px) { .engine { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.timeline li { padding: 18px 20px 0 0; border-top: 3px solid var(--ink); }
.timeline li + li { padding-left: 20px; }
.timeline b { font-family: var(--display); font-size: 1.15rem; display: block; margin-bottom: 6px; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; gap: 18px; } .timeline li + li { padding-left: 0; } }

/* ---------- Organiser ---------- */
.org-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding: 32px 0 80px; }
.org-nav { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; }
.org-nav button { text-align: left; font: 700 .95rem var(--body); padding: 10px 14px; border: 0; border-radius: var(--radius-s); background: none; color: var(--ink-soft); cursor: pointer; display: flex; justify-content: space-between; }
.org-nav button:hover { background: var(--shallows); color: var(--ink); }
.org-nav button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.badge { background: var(--buoy); color: var(--ink); border-radius: 999px; font-size: .75rem; padding: 1px 8px; }
@media (max-width: 900px) { .org-layout { grid-template-columns: 1fr; } .org-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .org-nav button { white-space: nowrap; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 28px; }
.kpis div { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.kpis b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.kpis span { font-size: .9rem; color: var(--ink-soft); }
.kpis .attention b { color: #8a6200; }
.row { padding: 16px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row h4 { font-family: var(--body); font-size: 1.02rem; margin: 0 0 4px; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.flag { font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--flare-soft); color: var(--flare); }
.ai-note { font-size: .8rem; color: var(--muted); }
.ai-note b { color: var(--bay-deep); }
pre.draft { white-space: pre-wrap; font: 400 .95rem/1.55 var(--body); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; margin: 10px 0; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.checklist .ok { color: var(--kelp); font-weight: 800; }
.checklist .no { color: var(--flare); font-weight: 800; }
.login { max-width: 420px; margin: 60px auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d3df; padding: 40px 0 28px; margin-top: 40px; font-size: var(--step--1); }
.site-footer a { color: var(--white); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.imprint { border-top: 1px solid rgba(255,255,255,.15); grid-column: 1 / -1; padding-top: 16px; color: #9fb0c3; }
.powered { grid-column: 1 / -1; margin: -22px 0 0; color: #9fb0c3; font-size: .9rem; }
.powered a { color: #fff; font-weight: 700; }

/* ---------- Demo watermark ---------- */
.watermark { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; pointer-events: none; overflow: hidden; }
.watermark span { font-family: var(--display); font-weight: 800; font-size: min(28vw, 36vh); line-height: 1; letter-spacing: -.02em; color: rgba(19, 35, 58, .07); transform: rotate(-35deg); white-space: nowrap; user-select: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 50; box-shadow: 0 10px 30px rgba(19,35,58,.25); }
.toast.error { background: var(--flare); }
.notice { padding: 14px 16px; border-radius: var(--radius-s); background: var(--buoy-soft); border-left: 4px solid var(--buoy); margin: 12px 0; }
.notice.ok { background: var(--kelp-soft); border-color: var(--kelp); }
.empty { color: var(--muted); padding: 18px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer .wrap > :not(.imprint), .demo-banner, .btn, .vote-btns { display: none !important; }
  .site-footer .powered { display: block !important; }
  body { background: #fff; }
}

/* Problems page: keep the map in view and the list to a scrollable panel */
@media (min-width: 900px) {
  .map-sticky { position: sticky; top: 24px; align-self: start; }
  .list-scroll { max-height: 760px; overflow-y: auto; padding-right: 8px; border-bottom: 1px solid var(--line); }
}

/* ---------- About: candidate profile ---------- */
.profile { border-top: 3px solid var(--ink); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.profile-photo { margin: 0; }
.profile-photo img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--shallows); }
.profile-lead { font-family: var(--display); font-size: var(--step-1); line-height: 1.35; color: var(--ink); margin-top: 0; }
.profile-text h3 { margin-top: 1.4em; }
.profile-more-h { margin-top: 44px; }
.profile-links { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.profile-links a { display: block; height: 100%; padding: 12px 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.profile-links a:hover, .profile-links a:focus-visible { border-color: var(--bay); }
.profile-links .cover { display: block; aspect-ratio: 1 / 1; margin-bottom: 12px; border-radius: 8px; overflow: hidden; background: var(--shallows); }
.profile-links .cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-links .kind { display: block; font-size: .8rem; font-weight: 600; color: var(--bay); margin-bottom: 4px; }
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } }
