/* CityCounts — design system (see design/DESIGN.md) */
:root {
  /* surfaces */
  --paper: #f6f5f1;            /* page background */
  --card: #ffffff;             /* surface: every list, table, card, panel */
  --wash: #efede7;             /* raised: table header row, switch track, neutral chip */
  --wash-2: #e6e3dc;           /* pressed, avatar */
  --line: #e7e4dd;             /* hairline: surface border, row separator */
  --line-2: #d3cfc6;           /* control border */
  /* ink */
  --ink: #17181c;              /* text, titles */
  --ink-2: #55575e;            /* secondary text, 6.6:1 on paper */
  --ink-3: #6b6d75;            /* meta, dates: 4.73:1 on paper, 5.16:1 on card */
  /* accent and votes: neutral, colour-blind-safe, never alone (always with a word) */
  --accent: #4b44a8;  --accent-ink: #3b3595;  --accent-tint: #eeedf8;
  --yes: var(--accent);  --yes-ink: var(--accent-ink);  --yes-tint: var(--accent-tint);
  --no: #b98210;      --no-ink: #7a5609;      --no-tint: #f7efdc;
  --absent: #bdb9b0;  --absent-ink: #55575e;  --absent-tint: #f1efea;
  --for: var(--yes); --for-ink: var(--yes-ink); --for-tint: var(--yes-tint);            /* old names, kept */
  --against: var(--no); --against-ink: var(--no-ink); --against-tint: var(--no-tint);
  /* topics: the palette river.js and spotlight.js already share, named once */
  --topic-land-use: #df8c72;       --topic-transportation: #e7c36c;  --topic-housing: #b7c5a1;
  --topic-economy: #9fb9bf;        --topic-parks: #b8aad0;           --topic-infrastructure: #90b6a6;
  --topic-environment: #d8b3a1;    --topic-arts: #b7bfd8;            --topic-community-health: #ddadaf;
  --topic-safety: #bdc4b3;         --topic-governance: #b0a3be;
  /* type */
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: var(--sans);        /* one family; retires every serif use in one line */
  --fs-h1: 34px;               /* 28 on a phone (below): whole pixels at every width */
  --top-h: 57px;               /* the sticky header's height; the page sheets pin things under it */
  --fs-h2: 20px;  --fs-h3: 16px;  --fs-prose: 16px;  --fs-body: 15px;
  --fs-ui: 14px;  --fs-meta: 13px;  --fs-micro: 12px;  --fs-fig: 22px;
  --cc-h1: 700 var(--fs-h1)/1.12 var(--sans);   --cc-h2-size: var(--fs-h2);
  /* spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  /* shape */
  --r-chip: 6px;  --r-ctl: 8px;  --r: 14px;  --r-sm: 8px;  --r-lg: 14px;
  --shadow-1: 0 0 0 0 transparent;   /* not `none`: `.card` uses it inside a comma list, where `none` would void the whole declaration */
  --shadow-pop: 0 10px 30px rgba(23, 24, 28, 0.14), 0 2px 6px rgba(23, 24, 28, 0.06);

  --gutter: 32px;
  --maxw: 1200px;
  color-scheme: light;
}

@media (max-width: 600px) { :root { --fs-h1: 28px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* the footer closes the window on a short page (404) instead of floating mid-screen: the main block takes the spare height */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
}
main { flex: 1 0 auto; width: 100%; }          /* width: a centred main (margin auto) would otherwise shrink to its content as a flex item */
body > .wrap { flex: 1 0 auto; width: 100%; }  /* a vote page's quotes follow main; they take the spare height instead */
body:has(> .wrap) main { flex: 0 0 auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
/* One page title and one section heading for every page type; page styles keep only their margins. */
h1 { font: var(--cc-h1); letter-spacing: -0.03em; text-wrap: balance; }
h2 { font: 600 var(--fs-h2)/1.3 var(--sans); letter-spacing: -0.015em; }
h3 { font: 600 var(--fs-h3)/1.35 var(--sans); letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: var(--gap, 16px); }
.muted { color: var(--ink-3); }
.sl-docs, .bl-docs, .dl-title .muted { overflow-wrap: anywhere; }
.soft { color: var(--ink-2); }
.small { font-size: 13px; line-height: 1.45; }
.xs { font-size: 13px; line-height: 1.4; }
.serif { font-family: var(--serif); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- editorial masthead ---------- */
.cc-header {
  --cc-bg-page: #fcfcf9; --cc-bg-surface: #fff; --cc-bg-subtle: #f4f4ef;
  --cc-ink-primary: #141413; --cc-ink-secondary: #4a4a46;
  --cc-border-subtle: #e2e2dc; --cc-border-strong: #c8c8bf;
  position: sticky; top: 0; z-index: 100; flex-shrink: 0; overflow: visible;
  background: rgba(252,252,249,.96); border-bottom: 1px solid var(--cc-border-subtle);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cc-header .cc-header-inner { display: flex; align-items: center; height: 56px; gap: 28px; }
.cc-brand-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cc-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--cc-ink-primary); }
.cc-brand svg { display: block; flex-shrink: 0; }
.cc-place-badge { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cc-ink-secondary); background: var(--cc-bg-subtle); border: 1px solid var(--cc-border-subtle); padding: 2px 7px; border-radius: 4px; }
.cc-primary-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 1; min-width: 0; overflow: visible; }
.cc-nav-pillars, .cc-nav-utilities { display: flex; align-items: center; gap: 20px; }
.cc-nav-link { display: inline-flex; position: relative; align-items: center; gap: 6px; min-height: 56px; border-radius: 0; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--cc-ink-secondary); }
.cc-nav-link:hover { color: var(--cc-ink-primary); }
.cc-nav-link[aria-current="page"] { color: var(--cc-ink-primary); font-weight: 600; }
.cc-nav-link[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cc-ink-primary); }
.cc-nav-utilities .cc-nav-link { font-size: 13px; }
.cc-nav-search svg { width: 15px; height: 15px; flex-shrink: 0; }
.cc-nav-burger, .cc-nav-backdrop { display: none; }
@media (min-width: 769px) and (max-width: 1100px) {
  .cc-header .cc-header-inner { gap: 16px; padding-inline: 20px; }
  .cc-brand-group { gap: 6px; }
  .cc-brand { font-size: 16px; gap: 6px; }
  .cc-brand svg { width: 20px; height: 20px; }
  .cc-place-badge { font-size: 10px; padding-inline: 5px; }
  .cc-primary-nav { gap: 12px; }
  .cc-nav-pillars, .cc-nav-utilities { gap: 12px; }
  .cc-nav-link, .cc-nav-utilities .cc-nav-link { font-size: 12px; }
}
@media (max-width: 768px) {
  .cc-header .cc-header-inner { justify-content: space-between; padding-inline: 16px; gap: 12px; }
  .cc-brand { font-size: 17px; }
  .cc-nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--cc-border-subtle); border-radius: 6px; color: var(--cc-ink-primary); }
  .cc-nav-burger:hover, .cc-nav-burger[aria-expanded="true"] { background: var(--cc-bg-subtle); }
  .cc-primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 2; flex-direction: column; align-items: stretch; gap: 12px; max-height: calc(100svh - 57px); padding: 12px 24px 20px; overflow-x: hidden; overflow-y: auto; background: var(--cc-bg-surface); border-bottom: 1px solid var(--cc-border-strong); box-shadow: 0 12px 32px -4px rgba(20,20,19,.10); }
  .cc-header[data-nav-state="open"] .cc-primary-nav { display: flex; animation: cc-nav-reveal .15s ease-out; }
  .cc-nav-pillars, .cc-nav-utilities { flex-direction: column; align-items: stretch; gap: 0; }
  .cc-nav-utilities { border-top: 1px solid var(--cc-border-subtle); padding-top: 8px; }
  .cc-nav-link, .cc-nav-utilities .cc-nav-link { min-height: 44px; font-size: 15px; align-self: flex-start; }
  .cc-nav-link[aria-current="page"]::after { bottom: 3px; }
  .cc-header[data-nav-state="open"] .cc-nav-backdrop { display: block; position: absolute; top: 100%; left: 0; right: 0; height: calc(100svh - 57px); z-index: 1; background: rgba(20,20,19,.18); }
}
@keyframes cc-nav-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cc-header[data-nav-state="open"] .cc-primary-nav { animation: none; } }

/* ---------- footer (trust layer) ---------- */
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "note links" "meta links"; gap: 6px 28px; align-items: start; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.foot a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot a:hover { text-decoration-color: var(--ink); }
.foot p { margin: 0; font-size: inherit; line-height: inherit; }
.foot .foot-note { grid-area: note; }
.foot .foot-meta { grid-area: meta; }
.foot .foot-links { grid-area: links; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.foot .foot-note a { display: inline; min-height: 0; }
@media (max-width: 760px) {
  .foot .wrap { grid-template-columns: 1fr; grid-template-areas: "note" "meta" "links"; }
  .foot .foot-links { justify-content: flex-start; }
}

/* ---------- labels: draft / sample / source ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  font: 600 12px/1 var(--sans); letter-spacing: 0;
  padding: 3px 6px 3px; border-radius: var(--r-chip); white-space: nowrap;
}
.tag.sample { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; border: 0; }
.tag.sample::before { content: ''; width: 5px; height: 5px; border-radius: 50%; border: 1.2px dashed var(--ink-3); }
.src {
  display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-size: 13px;   /* one link colour on every page: the accent, as Council and the member pages use */
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; white-space: nowrap;
}
.src:hover { color: var(--ink); text-decoration-color: var(--ink); }
.src svg { width: 11px; height: 11px; }

/* ---------- buttons, segmented control, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 11px 18px; border-radius: var(--r-ctl); font-weight: 500; font-size: 14px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap;
}
.btn:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn.primary:hover { background: #2b2d33; }
.btn.ghost { background: transparent; box-shadow: none; padding: 8px 10px; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); background: var(--wash); }
.btn svg { width: 16px; height: 16px; }

.seg, .cc-seg, #cc-spotlight-app .sp-root-switch, #cc-spotlight-app .sp-action-controls, #cc-river-app .layout-switch, #cc-river-app .view-switch, #cc-river-app .weight-switch { display: inline-flex; padding: 2px; gap: 2px; border: 0; border-radius: var(--r-ctl); background: var(--wash); }
.seg button, .cc-seg > button, #cc-spotlight-app .sp-root-switch > button, #cc-spotlight-app .sp-action-controls > button, #cc-river-app .layout-switch button, #cc-river-app .view-switch button, #cc-river-app .weight-switch button { height: 32px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font: 500 var(--fs-ui)/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.seg button:hover, .cc-seg > button:hover, #cc-spotlight-app .sp-root-switch > button:hover, #cc-spotlight-app .sp-action-controls > button:hover { color: var(--ink); background: none; }
.seg button[aria-pressed="true"], .cc-seg > button[aria-pressed="true"], #cc-spotlight-app .sp-root-switch > button[aria-pressed="true"], #cc-spotlight-app .sp-action-controls > button[aria-pressed="true"], #cc-river-app .layout-switch button[aria-pressed="true"], #cc-river-app .view-switch button[aria-pressed="true"], #cc-river-app .weight-switch button[aria-pressed="true"] { font-weight: 500; background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(23,24,28,.10); }
.seg button .n { color: var(--ink-3); font-weight: 500; margin-left: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-ctl);
  font-size: 13px; font-weight: 500; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); white-space: nowrap;
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
/* the strong-opinion tag beside a quote (CCEvidence.standTag): one style on every page, as the profile's was */
.sp-stand { display: inline-block; font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; margin-bottom: 6px; }

.search {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 40px; border-radius: var(--r-ctl);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3);
}
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); width: 100%; min-width: 0; }
.search svg { width: 16px; height: 16px; flex: none; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* the one filter control (a select, a button, a toggle): 36px high, 8px radius, 14px / 500; 44px and 16px on a phone (16 stops the iOS zoom) */
.cc-ctl, select.sel, .filters .tog,
#cc-river-app .filter-field select, #cc-permitting-app .filters select, #cc-spotlight-app select, #cc-spotlight-app .sp-candidate-menu > summary,
#cc-spotlight-app .sp-reset-focus, #cc-spotlight-app .sp-debate-filter, #cc-spotlight-app .sp-pager button, #cc-spotlight-app .sp-person-nav > button {
  height: 36px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  font: 500 var(--fs-ui)/1 var(--sans); color: var(--ink); background-color: var(--card); box-shadow: none;
}
select.cc-ctl, select.sel, #cc-river-app .filter-field select, #cc-permitting-app .filters select, #cc-spotlight-app select {
  appearance: none; -webkit-appearance: none; padding-right: 30px; background-repeat: no-repeat; background-position: right 10px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2355575e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cc-ctl:hover, select.sel:hover { border-color: var(--ink-3); }
.cc-ctl[aria-pressed="true"], .filters .sel.on { background-color: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .cc-ctl, select.sel, .filters .tog, #cc-river-app .filter-field select, #cc-permitting-app .filters select, #cc-spotlight-app select, #cc-spotlight-app .sp-candidate-menu > summary,
  #cc-spotlight-app .sp-reset-focus, #cc-spotlight-app .sp-debate-filter, #cc-spotlight-app .sp-pager button, #cc-spotlight-app .sp-person-nav > button { height: 44px; min-height: 44px; font-size: 16px; }
  .cc-seg > button, .seg button, #cc-river-app .layout-switch button, #cc-river-app .view-switch button, #cc-river-app .weight-switch button, #cc-spotlight-app .sp-root-switch > button, #cc-spotlight-app .sp-action-controls > button { height: 40px; min-height: 40px; }
}

/* ---------- cards & sections ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.section { margin-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { line-height: 1.2; }
.section-head p { color: var(--ink-2); font-size: 14px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.link { font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link svg { width: 14px; height: 14px; }

/* ---------- faces ---------- */
.face {
  --s: 32px;
  width: var(--s); height: var(--s); border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  background: var(--wash-2); color: var(--ink-2);
  font: 600 calc(var(--s) * 0.36)/1 var(--sans); letter-spacing: -0.01em;
  box-shadow: 0 0 0 2px var(--card);
  transition: background .15s, color .15s, opacity .2s, transform .15s;
  cursor: pointer; user-select: none;
}
.face:hover, .face.is-on { background: var(--ink); color: #fff; }
.face.is-dim { opacity: 0.22; }
.face.lg { --s: 44px; }
.face.xl { --s: 64px; }
.face.sm { --s: 26px; }
.face.xs { --s: 22px; }
.face.self { background: var(--card); color: var(--ink); box-shadow: 0 0 0 2px var(--card), inset 0 0 0 2px var(--ink); }
.face.none { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-3); }
.facepile { display: inline-flex; }
.facepile .face + .face { margin-left: calc(var(--s) * -0.28); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .nm { font-weight: 600; font-size: 14px; line-height: 1.25; }
.who .rl { font-size: 13px; color: var(--ink-3); line-height: 1.3; }

/* ---------- spectrum ---------- */
.spec { --s: 32px; position: relative; }
.spec-poles { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; line-height: 1.35; color: var(--ink-2); margin-bottom: 6px; }
.spec-poles span { max-width: 46%; }
.spec-poles span:last-child { text-align: right; }
.spec-track { position: relative; height: calc(var(--s) + 12px); }
.spec-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--line-2); border-radius: 2px;
}
.spec-track .cap { position: absolute; top: 50%; width: 2px; height: 12px; margin-top: -6px; background: var(--line-2); border-radius: 2px; }
.spec-track .cap.l { left: 0; } .spec-track .cap.r { right: 0; }
.spec-track .mid { position: absolute; left: 50%; top: 50%; width: 1px; height: 8px; margin: -4px 0 0 -0.5px; background: var(--line-2); }
.spec-track .face { position: absolute; top: 50%; left: 0; margin-top: calc(var(--s) / -2); --s: inherit; width: var(--s); height: var(--s); }
.spec-track .face:hover, .spec-track .face.is-on { z-index: 5; }
.spec-track .dot {
  position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #bab6ad; box-shadow: 0 0 0 2px var(--card); cursor: pointer;
}
.spec-track .dot:hover { background: var(--ink-2); }
.spec.is-empty .spec-track::before { background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }

/* issue card on the landscape */
.icard {
  position: relative; padding: 20px 22px 18px; cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.icard:hover { box-shadow: 0 4px 18px rgba(23,24,28,.07), inset 0 0 0 1px var(--line-2); }
.icard-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.icard-head h3 { font-size: 16px; line-height: 1.3; font-weight: 600; flex: 1; }
.icard-head h3 .chev { display: inline-block; margin-left: 4px; color: var(--ink-3); transition: transform .15s; }
.icard:hover .icard-head h3 .chev { transform: translateX(3px); color: var(--ink); }
.icard-meta { font-size: 13px; color: var(--ink-3); margin-top: 3px; font-weight: 400; display: flex; gap: 8px; align-items: center; }
.star { width: 32px; height: 32px; margin: -6px -8px 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--line-2); flex: none; }
.star:hover { color: var(--ink-3); background: var(--wash); }
.star[aria-pressed="true"] { color: var(--ink); }
.star svg { width: 18px; height: 18px; }

.landscape-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* tooltip */
.tip {
  position: fixed; z-index: 100; pointer-events: none; max-width: 260px;
  background: var(--ink); color: #fff; border-radius: var(--r); padding: 9px 12px 10px;
  font-size: 13px; line-height: 1.4; box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tip.show { opacity: 1; transform: none; }
.tip b { display: block; font-size: 14px; font-weight: 600; }
.tip .t2 { color: rgba(255,255,255,.72); }
.tip .t2 { white-space: pre-line; }
.tip .t3 { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.18); font-size: 12px; color: rgba(255,255,255,.6); }
.tip .go { display: none; margin-top: 6px; font-weight: 600; }
.tip.touch { pointer-events: auto; }
.tip.touch .go { display: block; }

/* ---------- votes: chips, cells, strips ---------- */
.v { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 3px 9px 3px 7px; border-radius: var(--r-chip); white-space: nowrap; }
.v svg { width: 12px; height: 12px; }
.v.for { background: var(--for-tint); color: var(--for-ink); }
.v.against { background: var(--against-tint); color: var(--against-ink); }
.v.absent { background: var(--absent-tint); color: var(--ink-3); }
.v.conflict { background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.cell { width: 26px; height: 26px; border-radius: var(--r-ctl); display: inline-grid; place-items: center; flex: none; }
.cell svg { width: 13px; height: 13px; }
.cell.for { background: var(--for); color: #fff; }
.cell.against { background: var(--against); color: #fff; }
.cell.absent { background: var(--absent-tint); color: var(--ink-3); }
.cell.conflict { background: var(--card); color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line-2); }

.strip { display: inline-flex; gap: 2px; vertical-align: middle; }
.strip i { width: 7px; height: 14px; border-radius: 2px; background: var(--absent-tint); }
.strip i.for { background: var(--for); }
.strip i.against { background: var(--against); }
.strip i.conflict { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }

.result { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.result b { color: var(--ink); font-weight: 600; }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- the two sides of a vote ---------- */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sd { background: var(--card); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.sd-h { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-weight: 600; font-size: 15px; }
.sd-h svg { width: 16px; height: 16px; }
.sd-h b { margin-left: auto; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sd.for .sd-h { background: var(--for-tint); color: var(--for-ink); box-shadow: inset 0 3px 0 var(--for); }
.sd.against .sd-h { background: var(--against-tint); color: var(--against-ink); box-shadow: inset 0 3px 0 var(--against); }
.sd ul { list-style: none; margin: 0; padding: 4px 20px 8px; }
.sd-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.sd-item:first-child { border-top: 0; }
.sd-item .face { --s: 36px; }
.sd-item .nm { font-weight: 600; font-size: 14px; line-height: 1.3; margin-top: 1px; }
.sd-q { font-family: var(--serif); font-size: 16px; line-height: 1.4; margin-top: 6px; }
.sd-g { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.sd-none { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.sd-empty { padding: 16px 0; color: var(--ink-3); font-size: 14px; }
.sd-apart { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-top: 14px; padding: 12px 20px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.sd-apart .lbl { font-size: 13px; color: var(--ink-3); min-width: 72px; }
.sd-apart .who { gap: 8px; }
.sd-apart .nm { font-weight: 600; font-size: 14px; }
@media (max-width: 860px) {
  .sides { grid-template-columns: 1fr; gap: 12px; }
  .sd-h, .sd ul { padding-left: 16px; padding-right: 16px; }
  .sd-apart { padding: 12px 16px; }
}

/* ---------- vote detail ---------- */
.vd { max-width: 880px; }
.vd .k { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.proc-banner { background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px 18px; font-size: 14px; line-height: 1.5; margin-bottom: 22px; }
.proc-banner b { font-weight: 600; }
.vd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--ink-2); }
.vd-issue:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.vd-title { margin-top: 12px; overflow-wrap: anywhere; }
h2.vd-title { font: 600 var(--cc-h2-size)/1.3 var(--sans); letter-spacing: -0.02em; }
.vd-title .tag { position: relative; top: -6px; font-family: var(--sans); }
.vd-noplain { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.vd-sub { margin-top: 28px; padding: 22px 24px 20px; display: grid; gap: 20px; }
.acts ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.acts li { display: grid; gap: 3px; color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.acts li .bar { height: 6px; border-radius: 3px; background: var(--wash); margin-bottom: 6px; }
.acts li b { font-weight: 600; font-size: 14px; color: var(--ink-3); }
.acts li.on .bar { background: var(--ink); }
.acts li.on b { color: var(--ink); }
.acts li.on .s { color: var(--ink-2); }
.acts .does { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 18px; }
.fact { padding-right: 12px; }
.fact .k { font-size: 12px; }
.fact .val { margin-top: 5px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.fact .val.none { color: var(--ink-3); font-weight: 400; }
.plan { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.plan .k { font-size: 12px; }
.plan .pl { font-size: 14px; font-weight: 500; }
.plan .sep { color: var(--ink-3); margin: 0 8px; font-weight: 400; }
.vd-case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.case { padding: 18px 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.case .k svg { width: 13px; height: 13px; }
.case.for .k { color: var(--for-ink); }
.case.against .k { color: var(--against-ink); }
.case p { margin-top: 8px; font-family: var(--serif); font-size: 16px; line-height: 1.45; }
.case p.none { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.case-none { margin-top: 16px; font-size: 14px; color: var(--ink-3); padding: 0 4px; }
.vd-vote { margin-top: 44px; }
.vd-result { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.vd-result .big { font: 600 var(--fs-fig)/1.1 var(--sans); letter-spacing: -0.02em; margin-top: 4px; }
.vd-result .big .num { color: var(--ink-2); font-weight: 500; }
.vd-result .strip { gap: 3px; }
.vd-result .strip i { width: 14px; height: 30px; border-radius: 4px; }
.vd-record { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.vd-record blockquote { margin: 12px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--line-2); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.vd-src { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; align-items: center; }
.vd-src .grow { flex: 1; }
@media (max-width: 860px) {
  .vd-sub { padding: 18px 16px; margin-top: 20px; }
  .acts ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .fact { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .fact .val { margin-top: 0; font-size: 14px; }
  .fact + .fact { border-left: 0; padding-left: 0; }
  .vd-case { grid-template-columns: 1fr; gap: 12px; }
  .vd-result .big { font-size: 22px; }
  .vd-result .strip i { width: 10px; height: 24px; }
}

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.stat .l { font-size: 13px; color: var(--ink-3); }
.stat .val { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
.stat .val small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.stat .s { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------- quotes ---------- */
.quote { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--ink); letter-spacing: -0.005em; }
.quote::before { content: '“'; }
.quote::after { content: '”'; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .landscape-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .icard { padding: 16px 16px 14px; }
  .section { margin-top: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stats { grid-template-columns: 1fr; gap: 0; background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
  .stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l val" "s val"; align-items: center; padding: 11px 16px; background: none; box-shadow: none; border-radius: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stat .l { grid-area: l; font-size: 13px; color: var(--ink); font-weight: 500; }
  .stat .s { grid-area: s; }
  .stat .val { grid-area: val; font-size: 16px; margin: 0; }
  .foot { margin-top: 64px; }
  .foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot .foot-note a, .cc-prose a[href^="mailto:"] { padding-block: 14px; }   /* the address in a sentence: a 44px hit area without changing the line */
  .quote { font-size: 16px; }
}
@media (max-width: 1000px) {
  /* Footer links retain their three-column phone layout. */
  .foot .foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
}

/* mover marks */
.face.mover { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.cell.moved { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
.mv-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink); padding: 2px 7px; border-radius: var(--r-chip); box-shadow: inset 0 0 0 1.5px var(--ink); white-space: nowrap; }

/* ---------- vote infographic card (one screen, shareable) ---------- */
.vd { max-width: 1200px; }
.vx { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); overflow: hidden; }
.vx-main { padding: 26px 30px 22px; display: grid; gap: 16px; align-content: start; }
.vx .vd-title { margin-top: 2px; }
.vx .k { font-size: 12px; }
.vx-does p { font-size: 15px; margin-top: 6px; }
.vx-acts { display: flex; gap: 4px; margin-top: 8px; }
.vx-acts span { flex: 1; text-align: center; font-size: 13px; font-weight: 500; padding: 6px 4px; border-radius: 8px; background: var(--wash); color: var(--ink-3); }
.vx-acts span.on { background: var(--ink); color: #fff; }
.vx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vx-facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vx-facts b { display: block; font-size: 14px; font-weight: 600; margin-top: 3px; line-height: 1.35; }
.vx-facts b.none { color: var(--ink-3); font-weight: 400; }
.vx-case { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vx-case .case { box-shadow: none; padding: 14px 16px; border-radius: 14px; }
.vx-case .case.for { background: var(--for-tint); }
.vx-case .case.against { background: var(--against-tint); }
.vx-case .case p { font-size: 15px; margin-top: 6px; }
.vx-plan { font-size: 13px; font-weight: 500; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vx-vote { background: none; border-left: 1px solid var(--line); padding: 26px 26px 18px; display: flex; flex-direction: column; gap: 12px; }
.vx-res { font: 600 var(--fs-fig)/1.1 var(--sans); letter-spacing: -0.02em; }
.vx-res .num { color: var(--ink-2); font-weight: 500; }
.vx-vote .strip { gap: 3px; } .vx-vote .strip i { flex: 1; height: 12px; border-radius: 3px; } .vx-vote .strip { display: flex; }
.vx-side { border-radius: 14px; padding: 12px 14px; }
.vx-side.for { background: var(--for-tint); } .vx-side.against { background: var(--against-tint); }
.vx-sh { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.vx-side.for .vx-sh { color: var(--for-ink); } .vx-side.against .vx-sh { color: var(--against-ink); }
.vx-sh svg { width: 14px; height: 14px; } .vx-sh b { margin-left: auto; font-size: 20px; }
.vx-faces { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.vx-f { display: grid; justify-items: center; gap: 3px; font-size: 12px; color: var(--ink-2); }
.vx-f .face { --s: 36px; background: #fff; }
.vx-apart { font-size: 13px; color: var(--ink-3); }
.vx-foot { margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-3); padding-top: 6px; }
@media (max-width: 860px) {
  .vx { grid-template-columns: 1fr; }
  .vx-main { padding: 18px 16px; gap: 14px; }
  .vx-acts span { font-size: 12px; padding: 6px 2px; }
  .vx-case { grid-template-columns: 1fr; }
  .vx-vote { border-left: 0; border-top: 1px solid var(--line); padding: 18px 16px; }
  .vx-res { font-size: 22px; }
}

/* SITE_1: a blank position is shown as its own state, not as Absent */
.v.none, .cell.none { color: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.vd-topic { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.vd-marks { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin-top: 14px; }

/* ---------- QUOTE_REPORT_1: report a problem with a quote (lanes/frontend/DESIGN-C.md) ---------- */
button.report { min-height: 32px; }
dialog.qr { width: min(440px, calc(100vw - 24px)); max-height: min(86vh, 720px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-pop); overflow: hidden; }
dialog.qr[open] { display: flex; }
dialog.qr::backdrop { background: rgba(23, 24, 28, 0.45); }
.qr-box { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.qr-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 0 14px; min-height: 48px; }
.qr-top button { min-height: 44px; min-width: 44px; padding: 0 8px; font-size: 14px; color: var(--ink-2); }
.qr-x { font-size: 20px; line-height: 1; }
.qr-body { padding: 0 18px 14px; overflow-y: auto; min-height: 0; }
.qr-ctx { margin: 2px 0 12px; padding: 7px 10px; background: var(--wash); border-radius: var(--r-sm); font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
dialog.qr h2 { margin: 0 0 10px; font: 600 16px/1.3 var(--sans); outline: none; }
.qr-choice { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; margin: 0 0 8px; padding: 11px 14px;
  text-align: left; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-ctl); }
.qr-choice::after { content: '\203A' / ''; color: var(--ink-3); font-size: 16px; }  /* decorative: not part of the button's name */
.qr-choice:hover { border-color: var(--ink-3); background: var(--paper); }
.qr-choice.on { border-color: var(--for); background: var(--for-tint); }
.qr-choice.soft { color: var(--ink-2); border-style: dashed; }
.qr-ok { margin: 0 0 12px; padding: 12px 14px; background: var(--for-tint); border-radius: var(--r-ctl); font-size: 14px; }
.qr-err { margin: 8px 0 0; padding: 8px 10px; background: var(--against-tint); border: 1px solid var(--against); border-radius: var(--r-sm); font-size: 13px; color: var(--against-ink); }
dialog.qr textarea, dialog.qr input[type=email] { display: block; width: 100%; margin: 0 0 8px; padding: 9px 11px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.qr-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.qr-btns button { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: var(--r-sm); }
.qr-primary { background: var(--ink); color: #fff; }
.qr-primary:disabled { background: var(--line-2); color: var(--ink-3); cursor: default; }
.qr-secondary { border: 1px solid var(--line-2); color: var(--ink); }
.qr-quiet { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 0 4px; }
.qr-email-note { margin: 5px 2px 0; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.qr-email-note a { text-decoration: underline; text-underline-offset: 2px; }
.qr-foot { margin: 0; padding: 9px 18px 12px; border-top: 1px solid var(--line); background: var(--paper); font-size: 12px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 640px) {
  dialog.qr { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 85vh; border-radius: var(--r) var(--r) 0 0; border-bottom: 0; }
}

/* CC_EVIDENCE_1: styles for the shared motion evidence (cc.js). A host sets these on its own root and nothing else (the site's own values are the defaults, so a page without a host root, the vote page, reads the same):
   --ce-ink, --ce-sub, --ce-line, --ce-paper (page colours), --ce-link (link colour), --ce-stick (how far down a speaker heading pins, under the host's own
   pinned layers). A group may set --ce-person (the council panel colours a speaker's rule and name to match the chart). */
:root{--ce-ink:var(--ink);--ce-sub:var(--ink-2);--ce-line:var(--line);--ce-paper:var(--card);--ce-link:var(--accent)}
.ce-voter-groups{display:grid;gap:8px}
.ce-voter-group{--vote-ink:var(--absent-ink);--vote-wash:var(--absent-tint);display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:8px}
.ce-voter-group[data-vote=yes]{--vote-ink:var(--yes-ink);--vote-wash:var(--yes-tint)}
.ce-voter-group[data-vote=no]{--vote-ink:var(--no-ink);--vote-wash:var(--no-tint)}
.ce-voter-group[data-vote=conflict]{--vote-ink:var(--ink-2);--vote-wash:var(--card)}
.ce-voter-group[data-vote=conflict] .ce-chip{border-color:var(--line-2)}
.ce-voter-group h4{display:flex;align-items:center;flex-wrap:nowrap;white-space:nowrap;gap:4px;font-size:12px;font-weight:600;margin:4px 0 0;color:var(--vote-ink)}
.ce-voter-group h4 span{display:grid;place-items:center;min-width:19px;height:19px;border-radius:6px;background:var(--vote-wash);font-variant-numeric:tabular-nums}
.ce-voter-group ul{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:0;padding:0}
.ce-chip{display:flex;align-items:start;gap:6px;max-width:100%;padding:4px 6px;border:1px solid transparent;border-radius:var(--r-chip);background:var(--vote-wash);font-size:12px;line-height:1.35;color:var(--ce-ink);overflow-wrap:anywhere}
.ce-chip[data-focused=true]{border-color:var(--vote-ink)}
.ce-chip strong{font-weight:600}
/* the !important resets win over a host's own generic button styles (a host styles buttons as pills; these are text) */
/* a voter who spoke is a filter: a dotted underline says tap, filled says on */
.ce-chip>button{font:inherit;color:inherit!important;background:none!important;border:0!important;border-radius:0!important;padding:0!important;min-height:0!important;text-align:left;cursor:pointer;text-decoration:underline dotted;text-decoration-color:var(--vote-ink);text-underline-offset:3px;overflow-wrap:anywhere}
.ce-chip>a{color:inherit!important;text-decoration:underline dotted;text-decoration-color:var(--vote-ink);text-underline-offset:3px;overflow-wrap:anywhere}
.ce-chip>a:hover{text-decoration-style:solid}
.ce-chip:has(>button[aria-pressed=true]){background:var(--vote-ink);color:#fff}
.ce-chip>button[aria-pressed=true]{text-decoration:none}
@media(pointer:coarse){.ce-chip>button,.ce-chip>a{min-height:32px!important;display:inline-flex;align-items:center}}
.ce-debate{min-width:0;max-width:64ch;margin-top:14px;border-top:1px solid var(--ce-line)}
.ce-group{--quote-ink:var(--ink-3);margin:0 0 6px}
.ce-group[data-vote=yes]{--quote-ink:var(--yes-ink)}
.ce-group[data-vote=no]{--quote-ink:var(--no-ink)}
.ce-group[data-vote=conflict]{--quote-ink:var(--ink-2)}
.ce-speaker{position:sticky;top:var(--ce-stick,0);z-index:2;display:flex;align-items:center;gap:7px;margin:0;padding:9px 0 5px;background:var(--ce-paper);font:600 var(--fs-meta)/1.3 var(--sans);color:var(--ce-person,var(--ce-ink))}
.ce-who{position:relative}
.ce-speaker:has(>.ce-identity[data-identity=guess]),.ce-guess-name{color:var(--ink-2)}
.ce-identity{position:relative;display:inline-block;margin-left:1px;vertical-align:middle;font:400 14px/1 var(--sans);color:var(--ink-3)}
.ce-identity[data-identity=confident]{color:var(--accent)}
.ce-identity>summary{display:inline-flex;align-items:center;justify-content:center;width:20px;min-height:24px;list-style:none;cursor:pointer;padding:0;border:0;background:none;white-space:nowrap}
.ce-identity>summary::-webkit-details-marker{display:none}
.ce-identity>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ce-identity::details-content{content-visibility:visible}
.ce-identity>.ce-identity-tip{display:none;position:absolute;top:calc(100% + 8px);left:var(--ce-tip-left,-115px);z-index:5;box-sizing:border-box;width:250px;max-width:calc(100vw - 32px);padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--card);box-shadow:0 5px 18px rgba(23,24,28,.14);color:var(--ink);font:400 13px/1.4 var(--sans);white-space:normal}
.ce-identity-tip::before{content:"";position:absolute;top:-5px;left:var(--ce-tip-pointer,125px);width:8px;height:8px;transform:translateX(-50%) rotate(45deg);background:var(--card);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.ce-identity-heading{display:block;margin-bottom:5px;font-size:12px}
.ce-identity-state{display:block;margin-bottom:2px}
.ce-identity[open]>.ce-identity-tip,.ce-identity:not([data-dismissed]):hover>.ce-identity-tip,.ce-identity:not([data-dismissed]):has(>summary:focus-visible)>.ce-identity-tip{display:block}
.ce-debate .ce-quote{margin:0 0 8px;padding:2px 0 2px 12px;border:0;border-left:2px solid var(--ce-person,var(--quote-ink))}
.ce-debate .ce-quote blockquote{font:italic 400 var(--fs-ui)/1.5 var(--sans);margin:0;padding:0;border:0;color:var(--ink);white-space:pre-line;overflow-wrap:anywhere}
.ce-debate .ce-quote[data-expanded=false] blockquote{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
.ce-debate .ce-quote[data-preview-complete=true] blockquote{display:block;-webkit-line-clamp:unset;overflow:visible}
.ce-foot{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:0 14px;font-size:var(--fs-micro);line-height:1.4;margin-top:2px;color:var(--ce-sub)}   /* relative: the hidden report label inside is absolute and must not escape a scrolling host (it stretched the Council page by 350px) */
.ce-foot a,.ce-foot button{display:inline-flex;align-items:center;min-height:32px;font-size:var(--fs-micro);color:var(--ce-link)}
.ce-foot a{text-decoration:underline;text-underline-offset:3px}   /* the clip link is underlined on every host, as Council's is */
.ce-foot button{background:none!important;border:0!important;border-radius:0!important;padding:2px 0!important;min-height:32px!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ce-foot .ce-expand{white-space:nowrap;font-size:13px!important}
.ce-foot [hidden]{display:none}
.ce-foot .qr-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ce-foot .report{min-width:32px;justify-content:center;color:var(--ce-sub)}
@media(max-width:760px),(pointer:coarse){.ce-foot a,.ce-foot button{min-height:44px!important;min-width:44px;justify-content:center}.ce-foot .report{min-width:44px}}
.ce-quote:has(.ce-player){scroll-margin-top:64px}
.ce-player{margin-top:6px;container-type:inline-size}
.ce-video-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}
.ce-video-controls a,.ce-video-controls button{display:inline-flex;align-items:center;min-height:44px;color:var(--ce-link)}
.ce-video-controls button{border:0!important;background:none!important;padding:0!important;color:var(--ce-ink);font-size:12px;cursor:pointer}
.ce-player iframe{display:block;width:100%;height:400px;height:clamp(280px,calc(56.25cqw + 70px),400px);border:1px solid var(--ce-line);background:var(--ce-paper)}
@media(max-width:700px){.ce-player iframe{height:280px}}
/* hiding speakers changes the height below a pinned row: without this the browser keeps re-anchoring the scroll position and the panel shakes */
.ce-debate,.ce-debate *{overflow-anchor:none}
/* anything scrolled to or focused lands below the host's pinned layers, not behind them */
.ce-chip>button,.ce-foot a,.ce-foot button{scroll-margin-top:calc(var(--ce-stick,0px) + 44px)}
/* the quotation marks and the ellipsis of a passage that starts or stops part-way are drawn here, so the quoted words stay exactly the caption's */
.ce-quote blockquote::before{content:"\201C\2026"}
.ce-quote blockquote[data-open="sentence"]::before{content:"\201C"}
.ce-quote blockquote::after{content:"\201D"}
.ce-quote blockquote[data-cut~="end"]::after{content:"\2026\201D"}
.ce-quote blockquote [data-gap]::before{content:"\2026 "}
/* the exchange card (cc.js exchange): the quote card with a labelled block per part. An answer sits in from the card's rule on a hairline of its own, upright and quieter */
.ce-exchange .ce-part+.ce-part{margin-top:8px}
.ce-exchange .ce-who{font:400 var(--fs-meta)/1.4 var(--sans);color:var(--ce-sub);margin-bottom:2px}
.ce-exchange .ce-who b{font-weight:600;color:var(--ce-ink)}
.ce-exchange .ce-title{font-weight:400;color:var(--ce-sub)}
.ce-exchange .ce-title::before{content:", "}
.ce-exchange .ce-part[data-other]{margin-left:0;padding-left:0;border-left:0}
.ce-debate .ce-exchange blockquote{font-style:normal;color:var(--ce-ink)}
.ce-exchange .ce-part+.ce-part{margin-top:12px}
.cc-discussion-context{margin-top:16px;padding-top:12px;border-top:1px solid var(--ce-line)}
.cc-discussion-context>h3{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:0;font:600 var(--fs-ui)/1.4 var(--sans)}
.cc-discussion-context>h3>a{font-size:var(--fs-meta);font-weight:400}
.cc-discussion-context>.ce-debate{margin-top:8px;border-top:0}
.cc-discussion-context .ce-group{margin-bottom:14px}
.cc-discussion-loading{padding:12px 0;color:var(--ce-sub);font-size:var(--fs-meta)}
.sl-q blockquote::before{content:"\2026 "}
.sl-q blockquote[data-cut~="end"]::after{content:" \2026"}

/* One back link ("← All votes", "← All bills", "← All motions"): the same size and place on every page that has one. */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 10px 0 6px; font-size: 14px; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.back svg { width: 14px; height: 14px; }

/* One expand glyph for every accordion and expander: a down chevron, turned over while open. Put the class on the <summary> or button. */
.cc-chev{list-style:none;cursor:pointer}
.cc-chev::-webkit-details-marker{display:none}
.cc-chev::after,#cc-spotlight-app .sp-topic-nav>summary::after{content:"";flex:none;display:inline-block;width:.42em;height:.42em;margin:-.22em 0 0 .6em;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);transition:transform .15s}
details[open]>.cc-chev::after,.cc-chev[aria-expanded=true]::after,#cc-spotlight-app .sp-topic-nav[open]>summary::after{transform:translateY(.28em) rotate(-135deg)}

/* ---------- phone tap targets: every link and button 44px tall (the pages' own sheets add their own) ---------- */
@media (max-width: 860px) {
  .ce-chip>button, .ce-chip>a { min-height: 44px !important; display: inline-flex; align-items: center; }
  .bl-links, .motion-links { row-gap: 0; }   /* 44px link rows wrap without a gap between the rows */
  .bl-links, #cc-permitting-app .decision-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }   /* a record's links in two even columns */
  .bl-list .src { display: inline-flex; align-items: center; min-height: 44px; }
  a.src, .vd-src a, .vx-foot a, .open-full a { display: inline-flex; align-items: center; min-height: 44px; }
  summary.cc-chev { display: flex; align-items: center; min-height: 44px; }
  /* voter chips: the count heading sits above one left-aligned flowing row, every chip the same height */
  .ce-voter-group { grid-template-columns: minmax(0, 1fr); }
  .ce-voter-group ul { justify-content: flex-start; }
  .ce-chip { align-items: center; min-height: 36px; }
  .ce-chip>button, .ce-chip>a { margin: -4px 0; }   /* the 44px hit area reaches past the 36px chip */
}

/* ---------- one surface for every list and table: a card with a hairline border, a header row where there are columns, hairlines between rows ---------- */
.cc-surface { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.cc-surface-head { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--wash); border-bottom: 1px solid var(--line); font: 600 var(--fs-micro)/1.3 var(--sans); color: var(--ink-2); }
.cc-surface-row { display: block; padding: 12px 16px; font-size: var(--fs-ui); }
.cc-surface-row + .cc-surface-row { border-top: 1px solid var(--line); }
.cc-surface-row:hover:has(a, button), a.cc-surface-row:hover { background: var(--paper); }
.cc-surface-row[aria-current="true"] { background: var(--paper); box-shadow: inset 3px 0 0 var(--ink); }
.cc-row-date  { font-size: var(--fs-meta); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-row-title { font: 600 var(--fs-body)/1.35 var(--sans); color: var(--ink); }
.cc-row-meta  { font-size: var(--fs-meta); color: var(--ink-2); }
@media (max-width: 700px) {
  .cc-surface-head { display: none; }
  .cc-surface-row { padding: 12px 14px; }
}

/* ---------- card: one subject, padded ---------- */
.cc-card { padding: 24px; }
.cc-card > h2:first-child { margin: 0 0 12px; }
@media (max-width: 860px) { .cc-card { padding: 16px; } }

/* ---------- prose pages (about, methods, terms, privacy, corrections): one column, one hierarchy ---------- */
/* the column sits on the shared card surface (spec 3.3), 720px measure inside it, centred in the container like a document */
.cc-prose { box-sizing: content-box; max-width: 720px; margin: 32px auto 0; padding: 32px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
@media (max-width: 860px) { .cc-prose { margin-top: 20px; padding: 16px; } }
.cc-video { margin: 0 0 20px; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cc-video-place { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.cc-video-place svg { flex: none; color: var(--ink); }
.cc-video-place b { color: var(--ink); font-weight: 600; }
.cc-video-place span { margin-left: auto; color: var(--ink-3); }
.cc-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #17191c; }
.cc-prose h1 { margin: 0 0 12px; }
.cc-prose .lead { margin: 0 0 20px; font: 400 var(--fs-h2)/1.45 var(--sans); color: var(--ink); text-wrap: pretty; }
.cc-prose .meta, .cc-prose .legal-date { margin: 0 0 20px; font-size: var(--fs-meta); color: var(--ink-3); }
.cc-prose h2 { margin: 32px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.cc-prose p, .cc-prose li { margin: 12px 0; font-size: var(--fs-prose); line-height: 1.6; }
.cc-prose b, .cc-prose strong { font-weight: 600; }   /* 700 is the page title's alone */
.cc-prose ul { padding-left: 22px; margin: 12px 0; }
.cc-prose a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cc-prose a.btn { text-decoration: none; }
.cc-facts { display: grid; grid-template-columns: 180px minmax(0, 1fr); margin: 24px 0 0; border-top: 1px solid var(--line); }
.cc-facts dt, .cc-facts dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cc-facts dt { padding-right: 24px; font: 600 var(--fs-ui)/1.6 var(--sans); }
.cc-facts dd { font: 400 var(--fs-prose)/1.6 var(--sans); }
.cc-facts dt:last-of-type, .cc-facts dd:last-of-type { border-bottom: 0; }   /* the card's edge closes the list */
@media (max-width: 700px) { .cc-facts { grid-template-columns: 1fr; } .cc-facts dt { padding-bottom: 0; border-bottom: 0; } .cc-facts dd { padding-top: 4px; } }
.cc-prose .steps, main .steps { counter-reset: step; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 24px 0; padding: 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }   /* the three steps: one ruled row, hairlines between, like the fact sheet (no box inside the card) */
main .steps li { justify-items: start; text-align: left; padding: 16px 16px 16px 0; counter-increment: step; }
main .steps li + li { border-left: 1px solid var(--line); padding-left: 16px; }
main .steps li::before, main .steps li + li::before { content: counter(step); position: static; left: auto; top: auto; font: 600 var(--fs-meta)/1 var(--sans); color: var(--ink-3); }
main .steps .step-icon { display: none; }
main .steps b { font: 600 var(--fs-h3)/1.35 var(--sans); }
@media (max-width: 700px) { .cc-prose .steps, main .steps { grid-template-columns: 1fr; } main .steps li + li { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

/* ---------- bill page: the title, section heads and source links join the site type (out-ranks the template's inline rules) ---------- */
h1.bl-title { font: var(--cc-h1); letter-spacing: -0.03em; }
.bl-sec h2 { font-size: var(--fs-h2); }
.bl .src { color: var(--accent); }
.bl .bl-list .src { display: inline-flex; align-items: center; color: var(--accent); }
.bl .bl-q blockquote, .bl .bl-w { max-width: 96ch; }   /* a reading measure inside the wide card */   /* one link style: the document links look like the vote rows' links */
.bl .bl-list .src { font-size: var(--fs-meta); }
.bl-res .result { font-size: var(--fs-meta); }
.bl-list .muted { display: block; margin-top: 2px; }   /* a document's title on its own line under its link */

/* ---------- one quote card, one Yes / No / Absent chip, on every surface: the vote page's quotes sit on a surface (a card), and the speaker's vote is a chip ---------- */
section:has(> .ce-debate){background:var(--card);box-shadow:inset 0 0 0 1px var(--line);border-radius:var(--r);padding:24px}
section:has(> .ce-debate)>.ce-debate{margin-top:0;border-top:0}   /* the card's padding is the space above the first speaker, the same on every host */
@media(max-width:860px){section:has(> .ce-debate){padding:16px}}   /* as .cc-card on a phone */
@media(min-width:861px){.vwrap section:has(> .ce-debate){padding-inline:30px}}   /* a vote page's stacked cards share the vote card's 30px inset */
/* the vote page: the wrapper the build puts round the quotes (site/build.py speaker_quote_section) had its own hairline; the card is the edge now.
   Where the card is wide the groups run down two newspaper columns, each speaker kept whole, so neither column ends with a hole. */
.vwrap section.sl:has([data-ce-vote-quotes]){margin-top:16px;padding-top:0;border-top:0}
@media(min-width:1000px){
  .vwrap [data-ce-vote-debate] .ce-debate{display:block;columns:auto;max-width:74ch}
  .vwrap [data-ce-vote-debate] .ce-group{break-inside:avoid}   /* a speaker's quotes stay under the speaker's name: no column opens with an unattributed quote */
  .vwrap [data-ce-vote-debate] .ce-speaker{position:static}
}
.vwrap .sl-n{font-size:var(--fs-meta)}
.vwrap .sl-proc{font-size:var(--fs-ui);font-weight:600}
/* who introduced a motion (council_ui.py writes it after <main>): a row on its own card in the record rows' type, never loose on the page */
.motion-introductions{margin-top:16px;padding:6px 30px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);border-radius:var(--r);font-size:var(--fs-ui);line-height:1.45}
.motion-introductions>div{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;min-height:44px}
.motion-introductions strong{font-weight:600}
.motion-introductions a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;color:var(--accent);font-size:var(--fs-meta);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.motion-introductions a:hover{color:var(--ink);text-decoration-color:var(--ink)}
@media(max-width:860px){.motion-introductions{padding-inline:16px}}
.vwrap .vd-record{margin-top:24px}   /* the motion's text sits close under its title, as in the Motions pane */
/* the chip (spec 3.4): one status style for every status mark; a variant says Yes, No, Absent, or outlines it (a link, or a gap in the record). A chip is never a control. */
.cc-chip, .li .proc, .bl .dv, #cc-permitting-app .tag, #cc-permitting-app .decision-status, .gap, .vd-issue, #cc-river-app .evidence-count{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border:0;border-radius:var(--r-chip);font:500 var(--fs-micro)/1 var(--sans);letter-spacing:0;text-transform:none;white-space:nowrap;color:var(--ink-2);background:var(--wash);box-shadow:none}
.cc-chip.is-yes{color:var(--yes-ink);background:var(--yes-tint)}
.cc-chip.is-no{color:var(--no-ink);background:var(--no-tint)}
.cc-chip.is-absent{color:var(--absent-ink);background:var(--absent-tint)}
.cc-chip.is-line,.gap,.vd-issue{background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
.li .proc,.bl .dv{text-transform:capitalize}
.ce-speaker .cc-chip{flex:0 0 auto}

/* Council evidence panel: the motion's own words are body text (14), over the frozen river sheet's 13 */
#cc-river-app .evidence-body .recorded-motion { font-size: var(--fs-ui); line-height: 1.55; }
/* the heading above a vote's exchanges, and the one line under it */
.ce-qa-head{margin:28px 0 10px}
.ce-qa-head h2{font:600 var(--fs-h3)/1.35 var(--sans);margin:0 0 2px}
.ce-qa-head p{font:400 var(--fs-meta)/1.4 var(--sans);color:var(--ce-sub);margin:0}

/* the councillor menu (TASK-F1): one sticky line of drop-downs; a panel opens under the line. The page sets --cc-menu-top (what the line sticks under).
   A page's own button rules are scoped by id (#cc-spotlight-app button, #cc-river-app button) and beat a class rule, so the properties a page styles are !important here:
   the line and its toggles look the same on every page (TASK-F1n N1, N2) */
.cc-menu{position:sticky;top:var(--cc-menu-top,0px);z-index:6;display:flex;align-items:center;gap:8px;height:var(--cc-menu-h,60px);padding:8px 0;margin:0;background:var(--cc-menu-paper,var(--paper));border-bottom:1px solid var(--cc-menu-line,var(--line))}
.cc-menu>button{flex:0 1 auto;min-width:0;display:inline-flex;align-items:center;gap:6px;max-width:50%;min-height:44px!important;height:44px!important;padding:0 14px!important;border:1px solid var(--cc-menu-line,var(--line))!important;border-radius:999px!important;background:#fff!important;color:var(--cc-menu-ink,var(--ink))!important;font:inherit;font-size:14px!important;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
/* TASK-F3a 14: a drop-down that names a choice shrinks and cuts its words with an ellipsis, so the line stays on a 375 screen; the toggles keep their width */
.cc-menu>button[data-menu=agenda],.cc-menu>button[data-menu=votes],.cc-menu>button[data-menu=stands]{flex:none}
.cc-menu>button[aria-expanded=true]{background:var(--cc-menu-ink,var(--ink))!important;border-color:transparent!important;color:#fff!important}
.cc-menu-n{flex:none;min-width:20px;padding:0 5px;border-radius:999px;background:rgba(0,0,0,.08);font-size:12px;line-height:20px;text-align:center}
.cc-menu>button[aria-expanded=true] .cc-menu-n{background:rgba(255,255,255,.2)}
.cc-menu-panel{position:absolute;top:100%;left:0;right:0;z-index:7;display:flex;flex-wrap:wrap;gap:6px;max-width:100vw;max-height:calc(100vh - var(--cc-menu-top,0px) - var(--cc-menu-h,60px));overflow:auto;overscroll-behavior:contain;padding:10px 0;background:var(--cc-menu-paper,var(--paper));border-bottom:1px solid var(--cc-menu-line,var(--line));box-shadow:0 8px 16px rgba(0,0,0,.08)}
.cc-menu-panel>button{min-height:44px!important;padding:0 12px!important;border:1px solid var(--cc-menu-line,var(--line))!important;border-radius:999px!important;background:#fff!important;color:inherit!important;font:inherit;font-size:14px!important;line-height:1.3;cursor:pointer}
.cc-menu-panel>button[aria-pressed=true]{background:var(--cc-menu-ink,var(--ink))!important;border-color:transparent!important;color:#fff!important}
/* TASK-F1m S8: one row of five at 375, the buttons 44 px high; TASK-F1n N3: the buttons are compact at 480 px and under, the same on every page */
@media(max-width:480px){.cc-menu{gap:3px}.cc-menu>button{padding:0 6px!important;font-size:12px!important}.cc-menu-panel{padding:8px 0}}

/* One line of page and filter ancestry. The last part yields space to its links. */
.cc-breadcrumb{font-size:12px;line-height:1.5;margin:0 0 12px;color:var(--muted);min-width:0}
.cc-breadcrumb ol{display:flex;align-items:center;list-style:none;padding:0;margin:0;white-space:nowrap;min-width:0}
.cc-breadcrumb li{display:flex;align-items:center;flex:none;min-width:0}
.cc-breadcrumb li+li:before{content:"›";margin:0 6px}
.cc-breadcrumb li:last-child{flex:0 1 auto;overflow:hidden}
.cc-breadcrumb li:last-child span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-breadcrumb a{color:inherit;text-decoration:none}
.cc-breadcrumb a:hover{text-decoration:underline}
.cc-menu-label{min-width:0;overflow:hidden;text-overflow:ellipsis}

.cc-menu>button.cc-menu-area{flex:0 1 auto}
@media(max-width:480px){.cc-menu>button{flex:none;padding:0 4px!important}.cc-menu>button.cc-menu-area{flex:0 1 auto}}
