/* BC Sans, self-hosted (static/fonts/bc-sans/; OFL-1.1 and Apache-2.0). */
@font-face { font-family: "BC Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/bc-sans/BCSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "BC Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/bc-sans/BCSans-Italic.woff2") format("woff2"); }
@font-face { font-family: "BC Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bc-sans/BCSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "BC Sans"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("../fonts/bc-sans/BCSans-BoldItalic.woff2") format("woff2"); }

/* Palette (docs/design-review.md C1): Paper, Ink, Inlet, Ember, Mist and Cedar.
   --for/--against/--recused/--absent colour the council row; shape carries the meaning too. */
:root {
  /* Type scale (C2): body, then 1.25 / 1.6 / 2.25 / 3rem. Step 4 shrinks to 2.25rem on phones. */
  --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: 2.25rem;
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3rem);
  --bg: #f5f7f6; --surface: #ffffff; --text: #1e2a2f; --muted: #4a5a5e;
  --rule: #d9e2e0; --border: #c9d4d2; --accent: #0b5d66; --accent-text: #ffffff;
  --focus: #b45309;
  --for: #0b5d66; --against: #a4500a; --recused: #1e2a2f; --absent: #7d8e91;
  --carried: #3f5b45; --defeated: #a4500a;
  --ok-bg: #e3ede5; --ok-fg: #3f5b45;
  --warn-bg: #fdf0c8; --warn-fg: #6b4500;
  --bad-bg: #f7e6d8; --bad-fg: #8a3f06;
  --info-bg: #dcecee; --info-fg: #0b5d66;
  --stall-bg: #ffe2cc; --stall-fg: #7c2d12;
  --a0: #eef5f5; --a1: #d4e8e9; --a2: #aed3d6; --a3: #86bcc1; --a4: #5fa3aa; --a-fg: #1e2a2f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a1d; --surface: #16252a; --text: #e3ebea; --muted: #a3b3b5;
    --rule: #2e4045; --border: #3a4f54; --accent: #62c1ca; --accent-text: #0f1a1d;
    --focus: #fbbf24;
    --for: #62c1ca; --against: #e8a060; --recused: #e3ebea; --absent: #6f8589;
    --carried: #9ccba6; --defeated: #e8a060;
    --ok-bg: #1c3324; --ok-fg: #b9dec1;
    --warn-bg: #3d3210; --warn-fg: #f6e0a0;
    --bad-bg: #3f2412; --bad-fg: #f6cdb0;
    --info-bg: #133a3f; --info-fg: #bfe6ea;
    --stall-bg: #4a2410; --stall-fg: #ffd3b5;
    --a0: #16252a; --a1: #18363b; --a2: #1d4a50; --a3: #236168; --a4: #2b7a82; --a-fg: #f0f6f6;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "BC Sans", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--step-0); line-height: 1.6;
}
.container { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
main.container { padding-top: 1.5rem; padding-bottom: 3rem; }
/* Headings: bold (BC Sans has 400 and 700 only), slightly tightened, never all caps. */
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: var(--step-3); letter-spacing: -0.015em; }
h2 { font-size: var(--step-2); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; color: var(--muted); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.footer-inner p { margin: 0; }
.footer-legal { display: flex; flex-direction: column; gap: .25rem; }
.site-footer nav a { display: inline-block; min-height: 24px; padding: .125rem 0; overflow-wrap: anywhere; }
.brand { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: .5rem; padding: 1rem 1.25rem; margin-bottom: 2rem; }
.card h2 { margin-top: 0; }
.stack p { margin: 0 0 1rem; }
.narrow { max-width: 24rem; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
input[type=text], input[type=password], input[type=file], select {
  width: 100%; max-width: 28rem; padding: .5rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--muted); border-radius: .25rem;
}
.button { display: inline-block; background: var(--accent); color: var(--accent-text); border: 0; border-radius: .25rem; padding: .55rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; }
.button-small { padding: .25rem .7rem; font-size: .95rem; }
a.button { text-decoration: none; }
a.button:hover { text-decoration: underline; }
.field-error { color: var(--bad-fg); background: var(--bad-bg); display: block; padding: .35rem .6rem; border-radius: .25rem; margin-top: .35rem; }
.field-error ul { margin: 0; padding-left: 1.1rem; }
.field-error a { color: inherit; }
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.message { padding: .6rem .9rem; border-radius: .25rem; background: var(--info-bg); color: var(--info-fg); margin-bottom: .5rem; }
.message.error { background: var(--bad-bg); color: var(--bad-fg); }
.message.success { background: var(--ok-bg); color: var(--ok-fg); }
.table-wrap { overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); }
th { font-size: .9rem; color: var(--muted); }
.note { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); max-width: 28rem; }
.note.failure { color: var(--bad-fg); }
.badge { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .9rem; font-weight: 700; border: 1px solid currentColor; background: var(--info-bg); color: var(--info-fg); }
.badge-processing::before { content: "\27F3\00a0"; content: "\27F3\00a0" / ""; }
.badge-review { background: var(--warn-bg); color: var(--warn-fg); }
.badge-review::before { content: "\270E\00a0"; content: "\270E\00a0" / ""; }
.badge-failed { background: var(--bad-bg); color: var(--bad-fg); }
.badge-failed::before { content: "\2715\00a0"; content: "\2715\00a0" / ""; }
.badge-stalled { background: var(--stall-bg); color: var(--stall-fg); }
.badge-stalled::before { content: "\26A0\00a0"; content: "\26A0\00a0" / ""; }
.badge-published { background: var(--ok-bg); color: var(--ok-fg); }
.badge-published::before { content: "\2713\00a0"; content: "\2713\00a0" / ""; }
.review-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.review-pdf iframe { width: 100%; height: 70vh; border: 1px solid var(--border); background: var(--surface); }
/* Focus inside the PDF viewer is in another document, so the iframe never matches :focus;
   static/js/review.js adds .has-focus instead (accessibility F11). */
.review-pdf iframe.has-focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.review-motions h3 { margin-bottom: .25rem; }
.motion-card.confirmed { border-left: 6px solid var(--ok-fg); }
.motion-card textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: .25rem; padding: .5rem; }
.motion-card input[type=text] { max-width: 100%; }
.motion-card ul { list-style: none; padding: 0; margin: 0; }
.motion-card ul label { font-weight: 400; display: inline; }
.topics { border: 1px solid var(--border); margin: 0 0 1rem; }
.vote-grid { margin-bottom: 1rem; }
.vote-grid select { width: auto; }
/* Attendance and vote rows: a select and its Save button; nothing submits on change (F2). */
.row-form { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: 0; }
.row-form select { width: auto; max-width: 100%; }
.vote-grid tr.inferred select { opacity: .7; border-style: dashed; }
.inferred-mark { font-style: italic; color: var(--muted); }
.closed-note { background: var(--info-bg); color: var(--info-fg); padding: .5rem .75rem; border-radius: .25rem; }
.flag-list ul { padding-left: 1.25rem; }
.routine-form { margin: 1rem 0; }
.review-layout, .review-motions { min-width: 0; }
@media (min-width: 64rem) {
  main.container:has(.review-layout) { max-width: 96rem; }
  .review-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .review-pdf { position: sticky; top: 1rem; }
  .review-pdf iframe { height: calc(100vh - 6rem); }
}

/* Public site */
.lede { font-size: 1.15rem; max-width: 42rem; }
.home-title { font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.02em; max-width: 20ch; }
.muted { color: var(--muted); }
.breadcrumb { margin-bottom: .5rem; }
.plain-list { padding-left: 1.25rem; }
.search-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-row input { flex: 1 1 14rem; }
input[type=search], input[type=date] { width: 100%; max-width: 28rem; padding: .5rem; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: .25rem; }
.filter-grid { display: grid; grid-template-columns: 1fr; gap: .75rem 1rem; margin-bottom: .75rem; }
@media (min-width: 40rem) { .filter-grid { grid-template-columns: repeat(3, 1fr); } }
.filters select, .filters input[type=search], .filters input[type=date] { max-width: 100%; }
.inline-label { display: inline-block; font-weight: 400; margin-right: 1.25rem; }
.badge-result-carried { background: var(--ok-bg); color: var(--ok-fg); }
.badge-result-carried::before { content: "\2713\00a0"; content: "\2713\00a0" / ""; }
.badge-result-defeated { background: var(--bad-bg); color: var(--bad-fg); }
.badge-result-defeated::before { content: "\2715\00a0"; content: "\2715\00a0" / ""; }
.badge-result-referred, .badge-result-postponed, .badge-result-no_result { background: var(--warn-bg); color: var(--warn-fg); }
.motion-text { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); background: var(--surface); }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; margin: 1rem 0; }
details.procedural { margin-top: 1rem; }
details.procedural summary { cursor: pointer; font-weight: 600; }

/* Alignment table: five-step shade scale; text always carries the value */
.alignment th, .alignment td { text-align: center; white-space: nowrap; }
.alignment td { font-variant-numeric: tabular-nums; }
.alignment tbody th { text-align: left; }
.agree-0 { background: var(--a0); color: var(--a-fg); }
.agree-1 { background: var(--a1); color: var(--a-fg); }
.agree-2 { background: var(--a2); color: var(--a-fg); }
.agree-3 { background: var(--a3); color: var(--a-fg); }
.agree-4 { background: var(--a4); color: var(--a-fg); }
.agree-self, .agree-none { color: var(--muted); }
.legend { font-size: .92rem; color: var(--muted); }

/* --- Design quick wins (docs/design-review.md A1-A8, E1, E2, E5) ------------------------ */

/* A3: header nav. Wide screens show the link row; narrow screens get a <details> menu. */
.nav-menu { display: none; }
.nav-menu summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.nav-menu nav { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .5rem 0; }
@media (max-width: 40rem) {
  .nav-wide { display: none; }
  .nav-menu { display: block; }
}

/* A4: row headings (member names) carry the same weight as the data, not less. */
tbody th[scope=row] { font-size: inherit; color: var(--text); font-weight: 600; }

/* A5: dates and resolution numbers stay on one line. */
.nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* A2 / A1: list rows lead with the agenda title; outcome shows the score and dissenters. */
.row-title { font-weight: 600; text-decoration: none; }
.row-title:hover, .row-title:focus-visible { text-decoration: underline; }
.excerpt { display: block; color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.tally, .dissent { display: block; font-size: .92rem; margin-top: .25rem; }
.tally { font-variant-numeric: tabular-nums; }
.dissent { color: var(--muted); }

/* A3: list tables become stacked rows on phones; each cell shows its column name. */
@media (max-width: 40rem) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--rule); padding: .5rem 0; }
  table.stack td { border: 0; padding: .2rem .75rem; }
  table.stack td[data-label]::before {
    content: attr(data-label); display: block; font-size: .8rem; color: var(--muted);
  }
  table.stack td[data-label="Motion"]::before { display: none; }
  table.stack th[scope=row] { display: block; border: 0; padding: .2rem .75rem; }
}

/* A6: action links sit apart by spacing, not separator characters. */
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: .75rem 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li + li::before { content: "/"; content: "/" / ""; color: var(--muted); margin-right: .25rem; }

/* A7: attendance as one line per status. Scoped to the public <dl>: the review screen's
   attendance card shares the class name, and the grid made it overflow (accessibility F6). */
dl.attendance { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
dl.attendance dt { font-weight: 600; }
dl.attendance dd { margin: 0; }

/* A8: collapsible filter panel. */
.filter-panel { margin: .5rem 0 1rem; }
.filter-panel summary { cursor: pointer; font-weight: 600; }
.filter-panel[open] summary { margin-bottom: .75rem; }

/* E1: on review pages the header spans the same wide container as the content. */
@media (min-width: 64rem) {
  body:has(.review-layout) .header-inner { max-width: 96rem; }
}

/* E2: compact flags. */
.flag-item { margin-bottom: 1rem; }
.flag-title, .flag-message { margin: 0 0 .35rem; }
.flag-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.flag-form input[type=text] { flex: 1 1 14rem; max-width: none; }
.flag-form label { flex-basis: 100%; margin: 0; }  /* visible label above the note (F10) */
.button-quiet { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
/* Meeting list: pause automatic updates (accessibility F9). Pressed reads as filled. */
.polling-control { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; }
.polling-control .note { margin: 0; }
#pause-updates[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.resolved-flags { margin: .5rem 0 1rem; color: var(--muted); }
.resolved-flags summary { cursor: pointer; }
@media (max-width: 40rem) {
  .nav-menu[open] { flex-basis: 100%; }
  /* Short cells (date, item, resolution) sit side by side with an inline label. */
  table.stack td.nowrap { display: inline-block; width: auto; }
  table.stack td.nowrap[data-label]::before { display: inline; margin-right: .35rem; }
}

/* --- The council row (docs/design-review.md B1-B4) ------------------------------------- */

/* One mark per seat, mayor first then by surname. Shape carries the vote and colour backs
   it up, so the row reads in greyscale, in print and in forced-colours mode. */
.seat { display: inline-grid; place-items: center; width: .85rem; height: .85rem; flex: none;
  vertical-align: middle; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.seat::before { content: ""; display: block; box-sizing: border-box; }
.seat-for::before { width: 100%; height: 100%; border-radius: 50%; background: var(--for); }
.seat-against::before { width: 85%; height: 85%; background: var(--against); }
.seat-recused::before { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--recused); }
.seat-absent::before { width: 35%; height: 35%; border-radius: 50%; background: var(--absent); }
@media (forced-colors: active) {
  .seat::before { forced-color-adjust: none; }
  .seat-for::before, .seat-against::before { background: CanvasText; }
  .seat-recused::before { border-color: CanvasText; }
  .seat-absent::before { background: GrayText; }
}

/* B2: the compact row in list cells, between the tally and the dissenters. */
.council-row { display: flex; gap: .3rem; align-items: center; margin-top: .35rem; }

/* B4: the inline key above lists and the legend on the methodology page. */
.council-key { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: .92rem; color: var(--muted); }
.key-item { display: inline-flex; align-items: center; gap: .35rem; }
.council-legend { list-style: none; padding: 0; margin: 1rem 0; }
.council-legend li { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .4rem; }
.council-legend .seat { position: relative; top: .1rem; }

/* B3: the large row on a motion page, names under each seat. */
.council-seats { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem .5rem;
  grid-template-columns: repeat(auto-fill, minmax(5rem, 7rem)); }
.council-seats li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.council-seats .seat { width: 2rem; height: 2rem; margin-bottom: .4rem; }
.council-seats .seat-recused::before { border-width: 3px; }
.seat-name { font-weight: 700; font-size: .95rem; }
.seat-vote, .seat-detail { font-size: .9rem; color: var(--muted); line-height: 1.3; }
.footnote, .legend-link { font-size: .92rem; color: var(--muted); max-width: 42rem; }
@media (max-width: 40rem) {
  .council-seats { grid-template-columns: repeat(4, 1fr); }
}

/* C4: motion headline (outcome and score, then the agenda title) and the quoted resolution. */
.headline-result { display: block; font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.headline-icon { font-size: .7em; margin-right: .35rem; }
.headline-result.result-carried { color: var(--carried); }
.headline-result.result-defeated { color: var(--defeated); }
.headline-title { display: block; font-size: var(--step-2); margin-top: .35rem; }
.motion-meta { display: block; color: var(--muted); font-size: var(--step-0); font-weight: 400; margin-top: .75rem; }
.quote { margin: 1.25rem 0; padding: 0 0 0 1rem; border-left: 4px solid var(--rule); max-width: 42rem; }
.quote blockquote { margin: 0; font-size: .97rem; }
.quote figcaption { margin-top: .5rem; font-size: .92rem; color: var(--muted); }

/* --- Reviewer comfort (docs/design-review.md E3, E4) ------------------------------------ */

/* E3: motion cards collapse to a one-line summary; <details>, no script. */
.motion-card { padding: .75rem 1rem; margin-bottom: .75rem; }
.motion-details > summary { cursor: pointer; list-style: none; }
.motion-details > summary::-webkit-details-marker { display: none; }
.card-title { font-size: 1.1rem; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.card-title::before { content: "\25B8"; content: "\25B8" / ""; color: var(--muted); width: .8rem; }
.motion-details[open] .card-title::before { content: "\25BE"; content: "\25BE" / ""; }
.card-no { white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-subject { font-weight: 400; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: .4rem 0 0 1.4rem; }
.card-meta .council-row { margin-top: 0; }
.card-body { margin-top: .75rem; padding-top: .5rem; border-top: 1px solid var(--rule); }

/* E4: progress pinned above the motions; anchors land below it. */
.review-progress { position: sticky; top: 0; z-index: 1; background: var(--bg); padding: .5rem 0; margin-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.review-progress progress { display: block; width: 100%; height: .6rem; accent-color: var(--accent); }
.review-progress p { margin: .35rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.motion-card, .flag-item, #publish, #flag-list { scroll-margin-top: 6rem; }
/* Every focus scroll stops below the sticky progress bar, not only jumps to cards and flags
   (accessibility F3, WCAG 2.4.11). */
html:has(.review-progress) { scroll-padding-top: 7rem; }

/* --- Wordmark (docs/design-review.md C3): the council row in miniature ------------------ */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { height: .7rem; width: auto; flex: none; }
.brand-mark .mark-for { fill: var(--for); }
.brand-mark .mark-against { fill: var(--against); }
@media (forced-colors: active) {
  .brand-mark .mark-for, .brand-mark .mark-against { fill: CanvasText; }
}

/* --- Meeting page by agenda section (docs/design-review.md D3) -------------------------- */
tbody.agenda-section th[scope=rowgroup] { padding: 1.5rem .75rem .4rem; background: var(--bg); border-bottom: 2px solid var(--rule); }
.section-title { margin: 0; font-size: var(--step-1); color: var(--text); }
.section-no { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .2rem; }
.consent-items { margin-top: .5rem; font-size: .92rem; }
.consent-items summary { cursor: pointer; color: var(--accent); }
.consent-items ul { margin: .35rem 0 0; padding-left: 1.1rem; }
@media (max-width: 40rem) {
  table.stack th[scope=rowgroup] { display: block; padding: 1.25rem .75rem .4rem; }
}

/* --- Alignment (docs/design-review.md D4): the description sits above the scrolling matrix */
.table-intro { max-width: 42rem; margin-bottom: .75rem; }

/* --- Safer staff actions (docs/accessibility.md, F8 and F13) ----------------------------- */

/* Consequential actions are a <details>: the summary looks like the button, and opening it
   shows what happens and a "Yes, ..." button. No JavaScript needed. */
.meeting-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; margin: 1rem 0; }
.confirm-action > summary { list-style: none; cursor: pointer; }
.confirm-action > summary::-webkit-details-marker { display: none; }
.confirm-action[open] > summary { box-shadow: inset 0 0 0 2px var(--accent); }
.confirm-action > form { margin-top: .5rem; padding: .75rem 1rem; max-width: 28rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: .25rem; }
.confirm-action > form .note { margin: 0 0 .75rem; }
.motion-card .confirm-action { margin-top: 1rem; }

/* Field errors sit under their field, linked by aria-describedby (Django 5.2). */
.errorlist { list-style: none; margin: .35rem 0 0; padding: .35rem .6rem; border-radius: .25rem;
  color: var(--bad-fg); background: var(--bad-bg); max-width: 28rem; }
.motion-card ul.errorlist { padding: .35rem .6rem; margin-top: .35rem; }
/* Motion form fields: a <div>, since an error list can't sit inside a <p>. */
.motion-card .field { margin: 0 0 1rem; }
