/* Civic Assembly: the resident page, the door notice and the convener page. Light and dark, phone first, no external fonts. */
:root { color-scheme: light dark; --ink: #1b1f27; --soft: #4a5362; --bg: #fbfbf8; --card: #ffffff; --line: #d8dbe2; --accent: #0b6b4a; --accent-ink: #ffffff; --warn: #8a4b00; }
@media (prefers-color-scheme: dark) { :root { --ink: #e7e9ee; --soft: #aab3c2; --bg: #0f1115; --card: #171a21; --line: #2b3341; --accent: #5fd8a2; --accent-ink: #0b1a13; --warn: #e0b98a; } }
:root[data-theme="light"] { --ink: #1b1f27; --soft: #4a5362; --bg: #fbfbf8; --card: #ffffff; --line: #d8dbe2; --accent: #0b6b4a; --accent-ink: #ffffff; --warn: #8a4b00; }
:root[data-theme="dark"] { --ink: #e7e9ee; --soft: #aab3c2; --bg: #0f1115; --card: #171a21; --line: #2b3341; --accent: #5fd8a2; --accent-ink: #0b1a13; --warn: #e0b98a; }
body.civic { margin: 0; background: var(--bg); color: var(--ink); font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
body.civic main { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.15rem 4rem; }
body.civic h1 { font-size: 1.5rem; margin: 0 0 .5rem; line-height: 1.25; }
body.civic h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
body.civic p { margin: 0 0 1rem; }
body.civic .q { font-size: 1.15rem; color: var(--ink); }
body.civic .small, body.civic .hint { color: var(--soft); font-size: .9rem; }
body.civic a { color: var(--accent); }
body.civic a:focus-visible, body.civic button:focus-visible, body.civic input:focus-visible, body.civic textarea:focus-visible, body.civic select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
body.civic .card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin: 0 0 1rem; }
body.civic label { display: block; font-weight: 700; margin: 1rem 0 .3rem; }
body.civic input, body.civic textarea, body.civic select { width: 100%; box-sizing: border-box; padding: .6rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
body.civic textarea { min-height: 6rem; resize: vertical; }
body.civic button, body.civic .btn { display: inline-block; font: inherit; padding: .65rem 1.2rem; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; margin-top: .8rem; }
body.civic button.ghost { background: transparent; color: var(--accent); }
body.civic button[disabled] { opacity: .6; cursor: default; }
body.civic .row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
body.civic .row button { margin-top: .4rem; }
body.civic .pill { display: inline-block; font-size: .8rem; padding: .1rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); }
body.civic .pill.warn { border-color: var(--warn); color: var(--warn); }
body.civic ul.ideas { list-style: none; padding: 0; margin: 0; }
body.civic li.idea { border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; margin: 0 0 .7rem; background: var(--card); }
body.civic li.idea .body { margin: 0 0 .4rem; }
body.civic .msg { padding: .7rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); margin: 1rem 0; }
body.civic .msg[hidden] { display: none; }
body.civic .theme { border-left: 3px solid var(--accent); padding-left: .8rem; margin: 1rem 0; }
body.civic .hidden, body.civic [hidden] { display: none; }
body.civic dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
body.civic dl.facts dt { font-weight: 700; }
body.civic dl.facts dd { margin: 0; word-break: break-all; }
body.civic .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
@media (max-width: 30rem) { body.civic dl.facts { grid-template-columns: 1fr; } }

body.civic .skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: .5rem 1rem; }
body.civic .skip:focus { left: 0; z-index: 10; }
body.civic .msg.warn { border-color: var(--warn); }
