/*
VOICE   civic, plain-spoken, trustworthy: a public comment docket, not a startup
IDEA    a planning office's public-comment desk: ruled forms, a docket of filed ideas
PICTURE the submission form itself, on a white sheet, with the ruled docket below
COLOUR  stone ground, black ink, brick accent for actions and status, white panels
TYPE    Schibsted Grotesk throughout; heavy titles, calm body
LAYOUT  form + how-it-works side by side, docket full width; stacks under 860px
*/
:root{color-scheme:light dark;
  --bg:light-dark(#e7e4df,#171513);--panel:light-dark(#fff,#221f1c);--ink:light-dark(#111,#f1ede7);
  --muted:light-dark(#5d5853,#a9a39b);--rule:light-dark(#cfcac3,#3a3530);--brick:light-dark(#c8371e,#ff6a4d);
  --brick-ink:#fff;--ok:light-dark(#1f6b45,#6fd19c);--soft:light-dark(#f3f1ed,#2a2622)}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 "Schibsted Grotesk",system-ui,sans-serif;overflow-x:clip}
a{color:inherit}
.wrap{max-width:1240px;margin:0 auto}
.band{padding:clamp(24px,4vw,56px) max(5vw,16px)}
header.band{padding-bottom:0}
.mast{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:baseline;justify-content:space-between;border-bottom:3px solid var(--ink);padding-bottom:14px}
.mast .name{font-weight:800;font-size:20px;letter-spacing:-.01em;text-decoration:none}
.mast nav a{color:var(--muted);font-size:15px}
h1{font-size:clamp(32px,5vw,50px);line-height:1.05;letter-spacing:-.02em;margin:28px 0 10px;text-wrap:balance;max-width:20ch}
.lede{font-size:17px;max-width:62ch;color:var(--muted);margin:0}
h2{font-size:26px;line-height:1.15;margin:0 0 6px;letter-spacing:-.01em}
.grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px;align-items:start}
@media(max-width:860px){.grid{grid-template-columns:minmax(0,1fr)}}
.sheet{background:var(--panel);border:1px solid var(--rule);border-radius:6px;padding:clamp(18px,3vw,32px);box-shadow:0 1px 0 var(--rule),0 14px 30px -22px rgba(0,0,0,.35)}
label{display:block;font-weight:600;font-size:15px;margin:18px 0 6px}
label .opt{font-weight:400;color:var(--muted)}
input,select,textarea{width:100%;font:inherit;font-weight:400;font-size:16px;color:var(--ink);background:var(--soft);border:1px solid var(--rule);border-radius:4px;padding:11px 12px;min-height:44px}
textarea{min-height:150px;resize:vertical}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,.chip:focus-visible{outline:3px solid var(--brick);outline-offset:2px}
.row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}
@media(max-width:600px){.row3{grid-template-columns:minmax(0,1fr)}}
.help{font-size:13px;color:var(--muted);margin-top:4px;display:flex;justify-content:space-between;gap:8px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
button,.btn{font:inherit;font-weight:700;font-size:16px;min-height:44px;padding:10px 20px;border-radius:4px;border:2px solid var(--ink);background:var(--ink);color:var(--bg);cursor:pointer}
button.primary{background:var(--brick);border-color:var(--brick);color:var(--brick-ink)}
button.ghost{background:transparent;color:var(--ink)}
button:disabled{opacity:.55;cursor:wait}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:22px}
.err{color:var(--brick);font-weight:600;margin:12px 0 0}
.notice{border-left:6px solid var(--ok);padding:6px 0 6px 18px}
.notice h2{color:var(--ok)}
.steps{list-style:none;margin:0;padding:0;counter-reset:s}
.steps li{counter-increment:s;display:grid;grid-template-columns:44px 1fr;gap:12px;padding:16px 0;border-top:1px solid var(--rule)}
.steps li:first-child{border-top:0;padding-top:4px}
.steps li::before{content:counter(s);font-weight:800;font-size:30px;line-height:1;color:var(--brick)}
.steps b{display:block}
.steps span{color:var(--muted);font-size:15px}
.policy{font-size:14px;color:var(--muted);border-top:3px solid var(--ink);padding-top:14px;margin-top:8px}
.docket-head{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:end;justify-content:space-between;border-bottom:3px solid var(--ink);padding-bottom:14px;margin-bottom:6px}
.docket-head input{max-width:320px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px}
.chip{font:inherit;font-size:14px;font-weight:600;min-height:38px;padding:6px 12px;border-radius:999px;border:1px solid var(--rule);background:var(--panel);color:var(--ink);cursor:pointer}
.chip[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.chip small{font-weight:400;opacity:.75;margin-left:4px}
.post{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr);gap:6px 28px;padding:22px 0;border-bottom:1px solid var(--rule)}
.post .cat{font-size:13px;font-weight:700;color:var(--brick);text-transform:none}
.post .meta{font-size:13px;color:var(--muted)}
.post h3{font-size:20px;line-height:1.25;margin:0 0 6px}
.post p{margin:0;white-space:pre-wrap;max-width:70ch}
@media(max-width:600px){.post{grid-template-columns:minmax(0,1fr)}}
.empty{padding:40px 0;color:var(--muted)}
footer{font-size:13px;color:var(--muted)}

/* admin */
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.tabs button{background:transparent;color:var(--ink);border-color:var(--rule)}
.tabs button[aria-selected=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.card{background:var(--panel);border:1px solid var(--rule);border-radius:6px;padding:18px;margin:14px 0}
.card .top{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:space-between;font-size:13px;color:var(--muted)}
.card label{margin-top:12px}
.card textarea{min-height:110px}
.card .row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px}
@media(max-width:600px){.card .row2{grid-template-columns:minmax(0,1fr)}}
.tag{display:inline-block;font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--soft);border:1px solid var(--rule);color:var(--ink)}
.tag.used{border-color:var(--ok);color:var(--ok)}
pre.digest{background:var(--soft);border:1px solid var(--rule);border-radius:4px;padding:14px;max-height:420px;overflow:auto;white-space:pre-wrap;font-size:14px}
.inline{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:end}
.inline label{margin:0}
.inline input[type=date]{width:auto}
.check{display:flex;align-items:center;gap:8px;font-weight:400;min-height:44px}
.check input{width:20px;min-height:20px}
@media(prefers-reduced-motion:no-preference){.fade{animation:f .35s ease-out}@keyframes f{from{opacity:0;transform:translateY(6px)}}}
.muted{color:var(--muted);font-size:15px}
.small{font-size:13px}
.brief{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;align-items:start;background:var(--panel);border:1px solid var(--rule);border-top:6px solid var(--brick);border-radius:6px;padding:18px;margin-bottom:22px}
.brief h2{font-size:20px;margin:2px 0 4px}
.brief .btn{display:inline-flex;align-items:center;margin-top:12px;text-decoration:none}
.btn.primary{background:var(--brick);border-color:var(--brick);color:var(--brick-ink)}
.doc{width:64px;height:80px;background:var(--soft);border:1px solid var(--rule);border-radius:3px;position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;background-image:repeating-linear-gradient(to bottom,transparent 0 14px,var(--rule) 14px 15px);background-size:70% 60%;background-position:50% 12px;background-repeat:no-repeat}
.doc span{font-size:11px;font-weight:800;background:var(--ink);color:var(--bg);padding:1px 6px;border-radius:2px}
.nav-gap{margin-left:14px}
.sheet.gap{margin-top:22px}
