/* Gold Coast Council Watch — achromatic ledger (taste-skill app sheet, seed 1888938618).
   Shell: no sidebar. A 52px top bar over a centred 1152px column: five destinations, public readers.
   Ledger grid at 1152: 104 date + 16 + 1fr decision + 16 + 170 result, inside 20px padding.
   Face: a blue-grey ledger ground; each councillor's name in teal when they voted for and red when
   they voted against. The chrome holds no colour. */
:root {
  --ground: #f2f4f7;
  --surface: #ffffff;
  --raised: #eef0f3;
  --active: #e6e9ee;
  --border: #e3e6ea;
  --rule: #eef0f2;
  --control: #cfd4db;
  --text: #0a0a0a;
  --muted: #5f6368;
  --primary: #141414;
  --hue: #00a4a3;        /* the logo's full stop: votes for and bars */
  --hue-ink: #007c7b;    /* the same teal darkened to 5:1 for words */
  --negative: #c4242a;
  --for: var(--hue);          /* voted for: the logo's teal */
  --for-ink: var(--hue-ink);
  --against: #c4242a;         /* voted against: red, 5.6:1 on white */
  --against-ink: #c4242a;
  --blue: #1d5fbf;
  --amber: #a85a00;
  --fill: #007c7b;            /* filled controls with white text: the selected tab, the switch */
  --for-chip-ink: #006564;    /* teal and amber words on their tinted chips, held at 4.5:1 */
  --amber-chip-ink: #8a4700;
  --pill-warning-bg: #fffbeb;
  --pill-warning-ink: #92400e;
  --pill-warning-edge: #fde68a;
  --pill-neutral-bg: #eef0f3;
  --pill-neutral-ink: #3d3d3d;
  --radius-card: 8px;
  --radius-control: 6px;
  --radius-chip: 4px;
  --gap: 12px;
  --pad: 24px;
  --control-height: 36px;
  --font: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Outfit", "Geist", system-ui, sans-serif;   /* menu links, matched to the logo */
  --mast-bg: #ffffff;
  --field-edge: #b9c1cc;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235f6368' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mast-fade: rgb(15 23 42 / 0.07);
  --fs-title: 24px;
  --fs-section: 16px;
  --fs-body: 14px;
  --fs-small: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b0b0c; --surface: #141415; --raised: #1c1c1e; --active: #26262a;
    --border: #262628; --rule: #1f1f21; --control: #3d3d42; --text: #f4f4f5; --muted: #b4b4b4;
    --primary: #f4f4f5; --hue: #1cb8b6; --hue-ink: #43cfcd; --negative: #ff8273; --against: #ff6b5e; --against-ink: #ff7b6f; --blue: #8db3ff; --amber: #f0a64a; --for-chip-ink: #43cfcd; --amber-chip-ink: #f0a64a; --fill: #0d6f6e; --mast-bg: #141415; --mast-fade: rgb(0 0 0 / 0.45); --field-edge: #4a4f57; --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23b4b4b4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --pill-warning-bg: #2a2412; --pill-warning-ink: #e9bf5a; --pill-warning-edge: #4a3d16;
    --pill-neutral-bg: #232325; --pill-neutral-ink: #d4d4d4; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b0b0c; --surface: #141415; --raised: #1c1c1e; --active: #26262a;
  --border: #262628; --rule: #1f1f21; --control: #3d3d42; --text: #f4f4f5; --muted: #b4b4b4;
  --primary: #f4f4f5; --hue: #1cb8b6; --hue-ink: #43cfcd; --negative: #ff8273; --against: #ff6b5e; --against-ink: #ff7b6f; --blue: #8db3ff; --amber: #f0a64a; --for-chip-ink: #43cfcd; --amber-chip-ink: #f0a64a; --fill: #0d6f6e; --mast-bg: #141415; --mast-fade: rgb(0 0 0 / 0.45); --field-edge: #4a4f57; --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23b4b4b4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --pill-warning-bg: #2a2412; --pill-warning-ink: #e9bf5a; --pill-warning-edge: #4a3d16;
  --pill-neutral-bg: #232325; --pill-neutral-ink: #d4d4d4; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.gccw { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--fs-body)/1.45 var(--font); font-variant-numeric: tabular-nums; }
.gccw a { color: inherit; text-decoration-color: var(--control); text-underline-offset: 3px; }
.gccw a:hover { text-decoration-color: currentColor; }
.gccw :focus-visible { outline: 2px solid var(--hue-ink); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 1152px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gccw a.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--surface); padding: 8px 12px; border-radius: var(--radius-control); z-index: 50; text-decoration: none; }
.gccw a.skip:focus { left: 16px; }

/* ---- top bar ---- */
/* a white bar, like a website's, that fades into the page through a soft grey band; the menu is set
   bold in Outfit, the geometric face closest to the logo's lettering, and turns teal on hover */
.mast { background: var(--mast-bg); position: relative; z-index: 6; }
.mast::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none;
  background: linear-gradient(to bottom, var(--mast-fade), transparent); /* taste-skill-ignore: the fade under the top bar was asked for */ }
.mast .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: block; flex: none; text-decoration: none !important; }
.brand img { display: block; height: 38px; width: auto; }
@media (max-width: 760px) { .mast .wrap { min-height: 58px; } .brand img { height: 30px; } }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a, .menu summary, .menu-sheet a { font-family: var(--font-brand); font-weight: 700; letter-spacing: 0.005em; }
.nav a { position: relative; text-decoration: none; padding: 8px 12px; font-size: 16px; color: var(--text); transition: color 0.15s ease; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--hue); transform: scaleX(0); transition: transform 0.2s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--hue-ink); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--hue-ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--control); border-radius: 999px; background: var(--mast-bg); font-size: 15px; transition: color 0.15s ease, border-color 0.15s ease; }
.menu summary:hover, .menu[open] summary { color: var(--hue-ink); border-color: var(--hue); }
.menu summary::-webkit-details-marker { display: none; }
.menu-sheet { position: absolute; right: 0; top: 46px; z-index: 20; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 6px; display: grid; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); /* taste-skill-ignore: the menu floats */ }
.menu-sheet a { text-decoration: none; padding: 12px 14px; border-radius: var(--radius-control); font-size: 16px; color: var(--text); }
.menu-sheet a:hover { color: var(--hue-ink); background: color-mix(in srgb, var(--hue) 9%, var(--surface)); }
.menu-sheet a[aria-current="page"] { color: var(--hue-ink); }
.nav a { white-space: nowrap; }
@media (max-width: 1080px) { .nav { display: none; } .menu { display: block; } }   /* seven links need about 1,060px */
@media (prefers-reduced-motion: reduce) { .nav a, .nav a::after, .menu summary { transition: none; } }

/* ---- title row ---- */
.title-row { display: grid; gap: 12px; padding-block: 44px 28px; }
.title-row > div { min-width: 0; }
.title-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.gccw h1 { font-size: var(--fs-title); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.subline { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.subline b { color: var(--text); font-weight: 500; }
.stamp { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hue); flex: none; }

/* ---- filters ---- */
.filters { background: var(--ground); z-index: 5; padding-top: 6px; }
.frow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gccw input[type="search"], .gccw select {
  font: inherit; font-size: 15px; color: var(--text); background-color: var(--surface); height: 48px;
  border: 1.5px solid var(--field-edge); border-radius: 10px; padding: 0 14px; min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gccw input[type="search"]:hover, .gccw select:hover { border-color: var(--muted); }
.gccw input[type="search"]:focus, .gccw select:focus { outline: none; border-color: var(--hue-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue) 28%, transparent); /* taste-skill-ignore: a focus ring */ }
.gccw select { flex: 0 0 auto; max-width: 100%; appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.search { position: relative; flex: 1 1 13rem; display: block; min-width: 0; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.gccw .search input[type="search"] { width: 100%; padding-left: 42px; }
.gccw input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.fsel { display: contents; }
#f-m { max-width: 19rem; }
.fsel select[hidden] { display: none; }
.ftoggle { display: none; font: inherit; font-weight: 600; height: 48px; padding: 0 16px; border: 1.5px solid var(--field-edge); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
@media (max-width: 760px) {
  .ftoggle { display: inline-block; }
  .fsel { display: none; width: 100%; gap: var(--gap); flex-wrap: wrap; }
  .fsel.open { display: flex; }
  .fsel select { flex: 1 1 10rem; }
  #f-m { max-width: none; }
  .fsel .switch { min-height: 44px; }
  .listhead { padding-block: 10px 8px; }
  .search { flex-basis: 12rem; }
}
.gccw input::placeholder { color: var(--muted); }
.tabbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 13px; border-radius: 999px; font-weight: 600; white-space: nowrap; background: var(--tab-bg); color: var(--tab-ink); }
.tab .c { font-weight: 400; opacity: 0.8; }
.tab .chev { font-weight: 400; opacity: 0.7; }
.tab:hover { filter: brightness(0.97); }
.tab:focus-visible { outline: 2px solid var(--hue-ink); outline-offset: 2px; }
.tab-split { --tab-bg: color-mix(in srgb, var(--against) 12%, var(--surface)); --tab-ink: var(--against-ink); }
.tab-cr { --tab-bg: color-mix(in srgb, var(--blue) 12%, var(--surface)); --tab-ink: var(--blue); }
.tab-closed, .tab-all { --tab-bg: var(--raised); --tab-ink: var(--text); }
.tab[aria-pressed="true"] { background: var(--fill); color: #fff; }
.tab[aria-pressed="true"] .c, .tab[aria-pressed="true"] .chev { opacity: 0.9; }
.switch { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; white-space: nowrap; margin-left: auto; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--control); position: relative; flex: none; transition: background-color 0.15s ease; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.switch input:checked + .track { background: var(--fill); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--hue-ink); outline-offset: 2px; }
.clear { font: inherit; height: var(--control-height); padding: 0 14px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--against) 55%, transparent); background: var(--surface); color: var(--against-ink); cursor: pointer; white-space: nowrap; }
.clear:hover { background: color-mix(in srgb, var(--against) 6%, var(--surface)); }
.clear[hidden] { display: none; }

/* the number boxes: one strip split by hairlines; a coloured dot names each figure, the figure stays
   in ink, a line of context sits under it, and the box for the open tab carries its colour as a rule */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tile { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 18px; border-left: 1px solid var(--rule); min-width: 0; }
.tile:first-child { border-left: 0; }
button.tile { cursor: pointer; transition: background-color 0.15s ease; }
button.tile:hover { background: var(--raised); }
button.tile:focus-visible { outline: 2px solid var(--hue-ink); outline-offset: -2px; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tile); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.tile[aria-pressed="true"] { background: color-mix(in srgb, var(--tile) 6%, var(--surface)); }
.tile[aria-pressed="true"]::after { transform: scaleX(1); }
.tile .l { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.tile .l::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tile); flex: none; }
.tile .n { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.tile .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meet { --tile: var(--hue); }
.tile-dec { --tile: var(--blue); }
.tile-split { --tile: var(--against); }
.tile-cr { --tile: var(--amber); }
@media (prefers-reduced-motion: reduce) { .tile::after, button.tile { transition: none; } }
@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 12px 14px 14px; }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .tile .n { font-size: 26px; }
  .tile .sub { white-space: normal; }
  .switch { margin-left: 0; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tab { justify-content: center; height: 44px; padding: 0 10px; }
  .tabs .tab:last-child { grid-column: 1 / -1; }
}

.listhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-block: 20px 12px; }
.count { color: var(--muted); margin: 0; }

/* ---- councillor summary ---- */
.crcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: var(--gap); }
.crcard-head { padding: 16px 20px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; }
.crcard h2 { margin: 0; font-size: var(--fs-section); font-weight: 600; }
.crcard .sub { color: var(--muted); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 12px 0 16px; }
.stats > div { padding: 4px 20px; border-left: 1px solid var(--rule); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.stats > div:first-child { border-left: 0; }
.stats dt { color: var(--muted); font-size: var(--fs-small); }
.stats dd { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.stats dd small { font-size: 14px; color: var(--muted); font-weight: 400; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .stats > div:nth-child(3n + 1) { border-left: 0; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { border-left: 0; padding-inline: 16px; }
}

/* ---- the ledger ---- */
/* the list: each decision its own card with a gap between, under a quiet column header */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger.single { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.rows { display: grid; gap: 10px; }
.row { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.15s ease; }
.row:hover { border-color: var(--field-edge); }
.row:has(.row-h[aria-expanded="true"]) { border-color: color-mix(in srgb, var(--hue) 55%, var(--border)); }
.lhead { display: grid; grid-template-columns: 104px minmax(0, 1fr) 170px 34px; gap: 16px; padding: 0 20px 8px; color: var(--muted); font-size: var(--fs-small); }
.lhead .r { text-align: right; }
.row-h { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: grid; grid-template-columns: 104px minmax(0, 1fr) 170px 34px; gap: 4px 16px; width: 100%; padding: 18px 20px; align-items: start; }
.row-h:hover { background: var(--raised); }
.row-h:focus-visible { outline: 2px solid var(--hue-ink); outline-offset: -2px; }
.row-h[aria-expanded="true"], .row-h[aria-expanded="true"]:hover { background: var(--surface); }
/* an open row stays white: the chevron turns and fills, and the card's border takes a light teal */
.row-chev { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--field-edge); color: var(--muted); justify-self: end; transition: transform 0.2s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.row-chev .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.row-h:hover .row-chev { border-color: var(--hue-ink); color: var(--hue-ink); }
.row-h[aria-expanded="true"] .row-chev { transform: rotate(180deg); background: var(--fill); border-color: var(--fill); color: #fff; }
.hint { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.hint .ic { width: 14px; height: 14px; stroke-width: 2.2; }
@media (prefers-reduced-motion: reduce) { .row-chev { transition: none; } }
.row-date { color: var(--muted); padding-top: 1px; white-space: nowrap; }
.row-title { font-size: 16px; font-weight: 600; line-height: 1.4; display: block; color: var(--text); }
.row-h[aria-expanded="true"] .row-title { font-weight: 700; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 13px; align-items: center; }
.row-out { text-align: right; white-space: nowrap; padding-top: 1px; }
.out-note { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: 4px; }
@media (max-width: 760px) {
  .lhead { display: none; }
  .row-h { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .rows { gap: 8px; }
  .row-date { grid-column: 1; grid-row: 1; font-size: var(--fs-small); align-self: center; }
  .row-chev { grid-column: 2; grid-row: 1; width: 30px; height: 30px; }
  .hint { display: none; }
  .row-main { grid-column: 1 / -1; }
  .row-out { grid-column: 1 / -1; text-align: left; padding-top: 4px; }
  .row-out .out-note { display: inline; margin-left: 6px; }
}


/* chips: results, labels and councillor names */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; text-decoration: none !important; background: var(--chip-bg, var(--raised)); color: var(--chip-ink, var(--text)); border: 1px solid var(--chip-edge, transparent); }
.chip.grey { --chip-bg: var(--raised); --chip-ink: var(--muted); }
.chip.meet { --chip-bg: var(--surface); --chip-ink: var(--text); --chip-edge: var(--field-edge); }
.chip.committee { --chip-bg: color-mix(in srgb, var(--text) 7%, var(--surface)); --chip-ink: var(--text); font-weight: 600; }
@media (max-width: 760px) { .chip.meet, .chip.committee { white-space: normal; height: auto; min-height: 26px; padding-block: 3px; line-height: 1.3; } }
.chip.for, .chip.carried { --chip-bg: color-mix(in srgb, var(--for) 15%, var(--surface)); --chip-ink: var(--for-chip-ink); }
.chip.against, .chip.lost, .chip.split { --chip-bg: color-mix(in srgb, var(--against) 12%, var(--surface)); --chip-ink: var(--against-ink); }
.chip.mover { --chip-bg: color-mix(in srgb, var(--blue) 12%, var(--surface)); --chip-ink: var(--blue); }
.chip.warn { --chip-bg: var(--pill-warning-bg); --chip-ink: var(--pill-warning-ink); --chip-edge: var(--pill-warning-edge); }
.chip.strong { font-weight: 700; --chip-edge: currentColor; }
.chip.me { font-weight: 700; --chip-edge: currentColor; }
.chip.out { height: 28px; padding: 0 12px; font-weight: 600; }
a.chip:hover { --chip-edge: currentColor; }
.gccw a.chip { color: var(--chip-ink, var(--text)); }   /* chips that link keep their own ink */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.row-b { padding: 4px 20px 22px 140px; display: grid; gap: 14px; background: var(--surface); }
@media (max-width: 760px) { .row-b { padding: 4px 16px 18px; } }
.row-b > * { margin: 0; }
.rec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px 14px; }
.rec b { display: block; font-size: var(--fs-small); color: var(--muted); font-weight: 500; margin-bottom: 4px; }
/* the motion: paragraphs with air between them, the minutes' numbering as real lists */
.motion { font-size: 15px; line-height: 1.6; color: var(--text); }
.motion.small { font-size: 14px; }
.motion p { margin: 0 0 12px; }
.motion > :last-child, .motion li > :last-child { margin-bottom: 0; }
.m-ol { margin: 0 0 12px; padding-left: 2em; display: grid; gap: 10px; }
.m-ol .m-ol { margin: 10px 0 0; padding-left: 1.8em; gap: 6px; }
.m-ol > li { padding-left: 6px; }
.m-ol > li::marker { font-weight: 700; color: var(--hue-ink); }
.m-ol .m-ol > li::marker { font-weight: 600; color: var(--muted); }
.m-ul { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 6px; }
.motion > .m-ul { margin-bottom: 12px; }
.m-ul > li::marker { color: var(--hue-ink); }
.motion-att { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.att-h { margin: 0 0 6px; font-weight: 600; color: var(--text); }
.att-list { margin: 0; padding-left: 1.6em; display: grid; gap: 4px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.mono { font-family: var(--font); letter-spacing: 0.01em; }
.roll { display: grid; gap: 10px; }
.roll-g { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: center; }
@media (max-width: 520px) { .roll-g { grid-template-columns: 1fr; gap: 4px; } }
.roll-g > span { color: var(--muted); }
.roll-g.g-for > span { color: var(--for-chip-ink); }
.roll-g.g-against > span { color: var(--against-ink); }
.roll-g.g-for > span, .roll-g.g-against > span { font-weight: 600; }
.note { color: var(--muted); }
.note.q { color: var(--pill-warning-ink); }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.links a { font-weight: 500; }
/* document and recording links: an icon, then the words; teal on hover like the menu */
a.doc { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: color 0.15s ease; }
a.doc span { text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px; }
a.doc:hover { color: var(--hue-ink); }
a.doc:hover span { text-decoration-color: currentColor; }
.ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-youtube { width: 20px; height: 20px; }
.tbl a.doc { font-weight: 500; }
.tbl .ic { width: 15px; height: 15px; }
.more { display: block; width: 100%; margin: 12px 0 0; font: inherit; font-family: var(--font-brand); font-weight: 700; height: 48px; background: var(--surface); border: 1.5px solid var(--field-edge); border-radius: 12px; color: var(--text); cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; }
.more:hover { border-color: var(--hue-ink); color: var(--hue-ink); }
.empty { padding: 32px 20px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }

/* ---- pages ---- */
.section-h { font-size: var(--fs-section); font-weight: 600; margin: 32px 0 6px; }
.section-sub { margin: 0 0 12px; color: var(--muted); max-width: 72ch; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 20px; }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 900px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-cards > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .grid-cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 20px; display: grid; gap: 8px; text-decoration: none !important; }
.card:hover { border-color: var(--control); }
.card h3 { margin: 0; font-size: var(--fs-section); font-weight: 600; }
.card .sub { color: var(--muted); margin: 0; }
.card .fig { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.card .fig small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.bar { height: 8px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--against); border-radius: 999px; }
.align-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.align-cols > div + div { border-left: 1px solid var(--rule); padding-left: 40px; }
.col-h { font-size: var(--fs-small); color: var(--muted); font-weight: 400; margin: 0 0 6px; }
@media (max-width: 760px) { .align-cols { grid-template-columns: 1fr; gap: 16px; } .align-cols > div + div { border-left: 0; padding-left: 0; } }
.align-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.align-list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 6.5rem; gap: 16px; align-items: center; min-height: 32px; }
.align-list .track { height: 8px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.align-list .track i { display: block; height: 100%; background: var(--text); border-radius: 999px; }
.align-list .v { text-align: right; }
.align-list .v small { color: var(--muted); margin-left: 4px; }
@media (max-width: 520px) { .align-list li { grid-template-columns: 6.5rem minmax(0, 1fr) 5rem; gap: 10px; } .align-list .v small { display: none; } }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.tbl { border-collapse: collapse; width: 100%; }
.tbl th, .tbl td { text-align: left; padding: 11px 20px; vertical-align: top; }
.tbl th { font-size: var(--fs-small); color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--border); }
.tbl td { border-top: 1px solid var(--rule); }
.tbl tr:first-child td { border-top: 0; }
.tbl .num { text-align: right; }
.tbl td.nowrap { white-space: nowrap; }
.tbl a { text-decoration: none; font-weight: 500; }
.tbl a:hover { text-decoration: underline; }
.prose { max-width: 68ch; font-size: 15px; line-height: 1.6; padding-bottom: 16px; }
.prose h2 { font-size: 18px; font-weight: 600; margin: 32px 0 8px; }
.prose p, .prose li { margin: 0 0 12px; }
.prose .callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 14px 16px; }
.prose .callout p:last-child { margin: 0; }

/* ---- meeting calendar ---- */
/* the next meeting leads, set like a diary page: a date block, then what and when. Council meetings
   carry the logo's teal, committees the blue, everything else stays grey. */
.g-council { --g: var(--hue); --g-ink: var(--for-chip-ink); }
.g-committee { --g: var(--blue); --g-ink: var(--blue); }
.g-other { --g: var(--muted); --g-ink: var(--muted); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; color: var(--hue-ink); letter-spacing: 0.02em; }
.next { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 28px; }
.next-date { display: grid; justify-items: center; align-content: center; height: 96px; border-radius: 10px; background: var(--fill); color: #fff; line-height: 1.1; }
.next-date .dw, .next-date .mo { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.9; }
.next-date .dn { font-family: var(--font-brand); font-size: 38px; font-weight: 700; }
.next-main { display: grid; gap: 6px; min-width: 0; }
.next h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.next-when { margin: 0; color: var(--muted); font-size: 15px; }
.next .links { margin: 4px 0 0; }
@media (max-width: 560px) {
  .next { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .next-date { height: 72px; }
  .next-date .dn { font-size: 28px; }
  .next h2 { font-size: 17px; }
}
.seg .tab { min-width: 92px; justify-content: center; }
#f-cal { max-width: 19rem; }
.cal-sub { margin: 14px 0 4px; align-items: baseline; gap: 6px 12px; }
.cal-sub .note { font-size: 13px; }
.switch[hidden] { display: none; }
.mhead { margin-top: 28px; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px 14px 16px; scroll-margin-top: 24px; }
.mrow:target { border-color: var(--g); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 22%, transparent); /* taste-skill-ignore: marks the meeting a calendar day linked to */ }
.mrow-date { display: grid; justify-items: center; line-height: 1.1; }
.mrow-date .dw { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mrow-date .dn { font-size: 24px; font-weight: 700; color: var(--g-ink); letter-spacing: -0.02em; }
.mrow-main { display: grid; gap: 2px; min-width: 0; }
.mrow-main .row-meta { margin-top: 4px; }
.mrow-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.mrow .links { justify-content: flex-end; gap: 6px 18px; margin: 0; font-size: 14px; }
.mrow.past { background: color-mix(in srgb, var(--surface) 55%, var(--ground)); }
.mrow.past .dn { color: var(--muted); }
@media (max-width: 760px) {
  .mrow { grid-template-columns: 44px minmax(0, 1fr); padding: 12px 14px 12px 12px; gap: 6px 14px; }
  .mrow .links { grid-column: 2; justify-content: flex-start; }
}
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 16px; }
.cal-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.cal-head h2 { margin: 0; min-width: 11ch; text-align: center; font-size: 17px; font-weight: 700; }
.cal-nav { font: inherit; font-size: 22px; line-height: 1; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--field-edge); background: var(--surface); color: var(--text); cursor: pointer; }
.cal-nav:hover:not(:disabled) { border-color: var(--hue-ink); color: var(--hue-ink); }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-today { margin-left: auto; border-style: solid; border-color: var(--field-edge); color: var(--text); }
.cal-today:hover { background: var(--raised); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 8px 10px; font-size: 12px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--rule); }
.cal-day { min-height: 112px; padding: 6px 6px 8px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n + 7) { border-right: 0; }
.cal-day.blank { background: color-mix(in srgb, var(--ground) 60%, var(--surface)); }
.cal-day:nth-child(7n + 6), .cal-day:nth-child(7n + 7) { background: color-mix(in srgb, var(--ground) 35%, var(--surface)); }
.cal-n { font-size: 13px; font-weight: 600; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; }
.cal-day.past .cal-n { color: var(--muted); font-weight: 500; }
.cal-day.today .cal-n { background: var(--fill); color: #fff; }
.cal-hol { font-size: 11px; line-height: 1.25; color: var(--amber-chip-ink); }
.cal-pill { display: block; font-size: 12px; line-height: 1.3; padding: 3px 7px; border-radius: 6px; text-decoration: none !important; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--g) 14%, var(--surface)); color: var(--g-ink) !important; }
.cal-pill .t { font-weight: 500; }
.cal-pill:hover { background: color-mix(in srgb, var(--g) 24%, var(--surface)); }
.cal-day.past .cal-pill { opacity: 0.7; }
@media (max-width: 760px) {
  .cal-head { padding: 10px 12px; gap: 8px; }
  .cal-head h2 { min-width: 0; flex: 1; font-size: 16px; white-space: nowrap; }
  .cal-dow { padding: 6px 2px; text-align: center; font-size: 11px; }
  .cal-day { min-height: 58px; padding: 4px 2px; align-items: center; gap: 3px; }
  .cal-hol { display: none; }
  .cal-day.hol .cal-n { box-shadow: inset 0 -2px 0 var(--amber); border-radius: 4px; }
  /* phones: each meeting is a coloured bar under the day; the list below names them */
  .cal-pill { width: 100%; height: 6px; padding: 0; font-size: 0; border-radius: 3px; background: var(--g); }
  .cal-pill .t { display: none; }
}
.cal-foot { margin-top: 28px; font-size: 13px; max-width: 90ch; }

/* ---- contact ---- */
.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .contact-aside { position: sticky; top: 24px; } }
.cform { display: grid; gap: 18px; padding: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; }
.cform input[type="text"], .cform input[type="email"], .cform select, .cform textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--control); border-radius: var(--radius-control); padding: 10px 12px; min-height: 44px; }
.cform textarea { resize: vertical; line-height: 1.5; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--hue-ink); outline-offset: 0; border-color: var(--hue-ink); }
.cform [aria-invalid="true"] { border-color: var(--against-ink); }
.help { margin: 0; color: var(--muted); font-size: 13px; }
.err { margin: 0; color: var(--against-ink); font-size: 13px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn { font: inherit; font-family: var(--font-brand); font-weight: 700; font-size: 16px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--fill); color: #fff; cursor: pointer; transition: filter 0.15s ease; }
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible { outline: 2px solid var(--hue-ink); outline-offset: 3px; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok, .form-note.ok { color: var(--for-chip-ink); }
.form-status.bad, .form-note.bad { color: var(--against-ink); }
.form-note { margin: 0; padding: 12px 14px; border-radius: var(--radius-control); font-weight: 500; background: var(--raised); }
.contact-aside { display: grid; gap: 12px; }
.contact-aside h2 { margin: 0 0 6px; font-size: var(--fs-section); font-weight: 600; }
.contact-aside p { margin: 0; color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---- footer: a dark data-company close. Ink ground with a faint dot grid, the white logo, three
   menus, and a live panel of the record's figures; teal is the only accent. Same in both themes. ---- */
.foot {
  --f-bg: #0b1014; --f-ink: #eef1f4; --f-muted: #a3adb8; --f-rule: rgb(255 255 255 / 0.09); --f-accent: #2ccac7;
  margin-top: 64px; color: var(--f-muted); background-color: var(--f-bg);
  background-image: radial-gradient(rgb(255 255 255 / 0.055) 1px, transparent 1.2px); /* taste-skill-ignore: the dot grid is the footer's texture, asked for as a tech look */
  background-size: 22px 22px; border-top: 1px solid rgb(44 202 199 / 0.35);
}
.foot .wrap { padding-block: 56px 28px; display: grid; gap: 44px; }
.foot a { color: var(--f-ink); text-decoration: none; }
.foot h2 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--f-muted); letter-spacing: 0.02em; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.foot-logo img { display: block; height: 44px; width: auto; }
.foot-line { margin: 16px 0 22px; max-width: 34ch; font-size: 15px; line-height: 1.55; color: var(--f-muted); }
.foot-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.foot .foot-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-family: var(--font-brand); font-weight: 700; font-size: 15px; background: var(--f-accent); color: #062322; transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.foot .foot-btn:hover { filter: brightness(1.08); }
.foot .foot-btn.ghost { background: transparent; color: var(--f-ink); border: 1px solid rgb(255 255 255 / 0.22); }
.foot .foot-btn.ghost:hover { border-color: var(--f-accent); color: var(--f-accent); filter: none; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { font-family: var(--font-brand); font-weight: 700; font-size: 15px; transition: color 0.15s ease; }
.foot-cols a:hover, .foot-cols a:focus-visible { color: var(--f-accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 32px; padding-top: 22px; border-top: 1px solid var(--f-rule); font-size: 13px; }
.foot-bottom p { margin: 0; max-width: 90ch; line-height: 1.55; }
.foot .foot-top-link { white-space: nowrap; color: var(--f-muted); transition: color 0.15s ease; }
.foot .foot-top-link:hover { color: var(--f-accent); }
.foot :focus-visible { outline: 2px solid var(--f-accent); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 1000px) {
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .foot .wrap { padding-block: 40px 24px; gap: 32px; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .foot-logo img { height: 36px; }
}

.loading { padding: 48px 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .row-h, .tab, .nav a, .card { transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease; }
}

/* phones: chips and small labels at 13px or more (after the base chip rules, so they win) */
@media (max-width: 760px) {
  .row-meta .chip, .chips .chip { height: 26px; font-size: 13px; padding: 0 9px; }
  .row-date, .stats dt, .out-note, .count, .stamp, .tile .l, .tile .sub, .lhead, .col-h { font-size: 13px; }
  }
