/* GNHUSA brand tokens, sampled from the logo (charcoal wordmark, globe blue, the ring of figures) and gnhusa.org
   (Inter). Chart colors validated with the dataviz skill's palette checker in both modes. */
:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --line: #e7e2d8;
  --ink: #201820;
  --ink-2: #57505a;
  --muted: #847c84;
  --c1: #1080c0;          /* globe blue: the data color */
  --c2: #b01080;          /* ring magenta */
  --c3: #f09030;          /* ring orange */
  --c4: #5b3fa0;          /* violet: 4th series only (validated after c1–c3) */
  --q0: #ece7de; --q1: #dcebf6; --q2: #a8cfe9; --q3: #5fa7d6; --q4: #1080c0; --q5: #0a5480;  /* sequential (OKLab L checked) */
  --map-off: #e7e2d8;
  --spark: #c8c2b8;
  --up: #3d7330;
  --down: #b02020;
  --chip: #eef5fb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161416; --surface: #1e1b1e; --line: #34303a;
    --ink: #f2eef0; --ink-2: #c9c3c7; --muted: #9a949a;
    --c1: #1f8fd0; --c2: #cc4a9c; --c3: #c67a22; --c4: #8a70d6; --q0: #2c2830; --q1: #24384a; --q2: #2a5a7e; --q3: #2f7cad; --q4: #4ba2dc; --q5: #93cdf2; --map-off: #34303a; --spark: #5a555c;
    --up: #8cc66a; --down: #ff8a80; --chip: #1c2a36;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161416; --surface: #1e1b1e; --line: #34303a;
  --ink: #f2eef0; --ink-2: #c9c3c7; --muted: #9a949a;
  --c1: #1f8fd0; --c2: #cc4a9c; --c3: #c67a22; --c4: #8a70d6; --q0: #2c2830; --q1: #24384a; --q2: #2a5a7e; --q3: #2f7cad; --q4: #4ba2dc; --q5: #93cdf2; --map-off: #34303a; --spark: #5a555c;
  --up: #8cc66a; --down: #ff8a80; --chip: #1c2a36;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--c1); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* header */
header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand img { display: block; height: 36px; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 6px; padding: 3px 6px; } }
.util { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
.util a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { header.top .wrap { flex-wrap: wrap; row-gap: 6px; } .util { flex-wrap: wrap; gap: 6px 14px; } }
@media (max-width: 420px) { .brand img { height: 28px; } .util { margin-left: 0; width: 100%; gap: 6px 12px; font-size: 13px; } header.top .wrap { gap: 10px; } }
.util a:hover { color: var(--c1); }
.util .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c3); margin-left: 4px; vertical-align: 2px; }
.page-intro { color: var(--ink-2); max-width: 680px; }
.goalrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.goalrow h3 { margin: 0; font-size: 15px; }
.goalrow .now { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .goalrow { grid-template-columns: 1fr; } }
main { padding: 20px 0 48px; }

/* title */
.title-row { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; margin-bottom: 14px; }
h1 { font: 600 30px/1.1 Oswald, Inter, sans-serif; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.updated { margin: 0; color: var(--muted); font-size: 14px; }

/* headline tiles: the 5-second read */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; }
.tile h2 { font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0; }
.tile .big { font-size: 38px; font-weight: 600; line-height: 1.1; margin: 6px 0 2px; letter-spacing: -0.01em; }
.change { margin: 0; font-size: 13px; color: var(--muted); }
.change.up { color: var(--up); }
.change.down { color: var(--down); }
.change.up::before { content: "▲ "; font-size: 10px; }
.change.down::before { content: "▼ "; font-size: 10px; }
.spark { display: block; margin-top: 8px; width: 100%; height: auto; max-height: 40px; }
.spark path { fill: none; stroke: var(--spark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--c1); stroke: var(--surface); stroke-width: 2; }
@media (max-width: 520px) { .tile .big { font-size: 30px; } .tile { min-height: 0; } }
.lock { font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; vertical-align: 1px; }

/* Sustainability / Impact areas */
.area { margin-top: 30px; }
h2.area-h { font: 600 22px/1.1 Oswald, Inter, sans-serif; text-transform: uppercase; letter-spacing: .03em; margin: 0; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.picks ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.picks li { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font-size: 14px; }
.picks a { color: var(--ink); text-decoration: none; }
.picks .count { color: var(--c3); font-size: 12px; font-weight: 600; margin-left: 4px; }
.card { scroll-margin-top: 16px; }
.card .right { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
button.star { font: inherit; font-size: 13px; line-height: 1; color: var(--spark); background: none; border: 1px solid transparent; border-radius: 99px; padding: 2px 6px; cursor: pointer; }
button.star:hover { border-color: var(--line); color: var(--muted); }
button.star.on { color: var(--c3); }
button.star .n { font-size: 11px; font-weight: 600; color: var(--muted); }
p.legend { display: block; }
.solo { font-size: 34px; font-weight: 600; margin: 18px 0 14px; line-height: 1.1; }
.solo span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* small multiples */
h2.section, h3.section { font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; margin: 26px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; }
.card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .name { font-weight: 600; font-size: 14px; }
.card .per { font-size: 12px; color: var(--muted); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 6px 0 0; padding: 0; font-size: 12px; color: var(--ink-2); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sw.c1 { background: var(--c1); } .sw.c2 { background: var(--c2); } .sw.c3 { background: var(--c3); } .sw.c4 { background: var(--c4); }
.sw.ln { height: 3px; width: 14px; border-radius: 2px; vertical-align: 3px; }

svg.chart { display: block; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
svg.chart .axis { stroke: var(--line); stroke-width: 1; }
svg.chart .tick { fill: var(--muted); font-size: 10px; }
svg.chart .end { fill: var(--ink); font-size: 11px; font-weight: 600; }
svg.chart path.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.chart path.line.c1 { stroke: var(--c1); }
svg.chart path.line.c2 { stroke: var(--c2); }
svg.chart path.line.c3 { stroke: var(--c3); } svg.chart path.line.c4 { stroke: var(--c4); }
svg.chart .pt.c3 { fill: var(--c3); opacity: .6; } svg.chart .pt.c4 { fill: var(--c4); opacity: .6; }
svg.chart path.line.focus { stroke-width: 3.5; }
svg.chart path.line.avg { stroke-width: 2; pointer-events: none; }
svg.chart .pt.c2 { fill: var(--c2); opacity: .6; }
svg.chart .pt.c1 { fill: var(--c1); opacity: .45; }
svg.chart path.line.old { stroke: var(--spark); stroke-width: 1.5; }
svg.chart path.line.old.o1 { stroke: var(--muted); }
svg.chart .end.muted { fill: var(--muted); font-weight: 500; }
svg.chart .dot.c1 { fill: var(--c1); stroke: var(--surface); stroke-width: 2; }
svg.chart path.bar.c1 { fill: var(--c1); } svg.chart path.bar.c2 { fill: var(--c2); } svg.chart path.bar.c3 { fill: var(--c3); }
svg.chart .hit { fill: transparent; cursor: default; }
svg.chart .hit:hover { fill: var(--ink); fill-opacity: .05; }
.empty { color: var(--muted); font-size: 13px; }

details.data { margin-top: 4px; font-size: 12px; color: var(--ink-2); }
details.data summary { cursor: pointer; color: var(--muted); list-style: none; }
details.data summary::-webkit-details-marker { display: none; }
details.data summary::before { content: "＋ "; }
details.data[open] summary::before { content: "－ "; }
details.data table { width: 100%; border-collapse: collapse; margin-top: 6px; }
details.data th, details.data td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line); }
details.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.src { color: var(--muted); margin: 6px 0 2px; }
.pending { position: relative; }
.pending svg .ghost { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 5; }
.pending p { margin: 4px 0 2px; font-size: 13px; color: var(--muted); }
.attention { margin: 16px 0 8px; max-width: 760px; background: var(--surface); border: 1px solid var(--c3); border-radius: 12px; padding: 10px 14px; }
.attention ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; overflow-wrap: anywhere; }
.attention li { margin: 6px 0; }
.checkin { margin: 20px 0 8px; max-width: 760px; }
form.checkin { display: grid; gap: 18px; }
.checkin .field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.checkin .field select, .checkin .field textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.checkin .field .measure { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
fieldset.scale { border: 0; margin: 0; padding: 0; }
fieldset.scale legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; line-height: 1.35; }
fieldset.scale .measure { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.scale .buttons { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.scale .buttons label { position: relative; }
.scale .buttons input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale .buttons span { display: grid; place-items: center; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .1s, border-color .1s; }
.scale .buttons label:hover span { border-color: var(--c1); }
.scale .buttons input:focus-visible + span { outline: 2px solid var(--c1); outline-offset: 2px; }
.scale .buttons input:checked + span { background: var(--c1); border-color: var(--c1); color: #fff; }
.scale .ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 420px) { .scale .buttons { gap: 3px; } .scale .buttons span { height: 38px; font-size: 13px; } }
.happy ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.happy li { margin: 4px 0; }
ul.hub { list-style: none; padding: 0; max-width: 680px; }
ul.emails { list-style: none; padding: 0; margin: 6px 0; font-size: 14px; }
ul.emails li { padding: 4px 0; }
form.inline { display: inline; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.inline-form input, .inline-form select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; flex: 1 1 220px; max-width: 360px; }
button.linklike { background: none; border: 0; padding: 0 0 0 8px; color: var(--c1); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.legend-codes span { margin-right: 12px; white-space: nowrap; }
.legend-codes.wrap span { white-space: normal; display: inline-block; margin-bottom: 4px; }
.att-scroll { overflow-x: auto; max-width: 100%; }
table.att { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.att th, table.att td { padding: 4px 6px; text-align: center; border-bottom: 1px solid var(--line); }
table.att th { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.2; }
table.att .name { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--bg); }
table.att td.c { width: 26px; font-weight: 600; }
table.att td.p { color: var(--c1); }
table.att td.t { color: var(--c1); opacity: .7; }
table.att td.n { color: var(--ink-2); }
table.att td.x { color: var(--c2); }
table.att td.a, table.att td.q { color: var(--muted); font-weight: 400; }
table.att .tot { white-space: nowrap; color: var(--ink-2); }
table.att tr.inactive td { opacity: .7; }
ul.hub li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
ul.hub li.sep { border-top: 0; padding: 18px 0 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; color: #fff; background: var(--c3); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.checkin .thanks { background: var(--chip); border-radius: 8px; padding: 8px 12px; }
.card .more { margin: 6px 0 0; font-size: 12px; }
.card.wide { grid-column: span 2; }
@media (max-width: 640px) { .card.wide { grid-column: auto; } }
.shape-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 6px; }
figure.smap { margin: 0; }
figure.smap figcaption { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
figure.smap svg { display: block; width: 100%; height: auto; }
.pending-map { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; display: grid; align-content: start; min-height: 120px; }
use.st, .sw.st { stroke: var(--surface); stroke-width: 1; }
use.st:hover { stroke: var(--ink); stroke-width: 2; }
.st.q0 { fill: var(--q0); background: var(--q0); } .st.q1 { fill: var(--q1); background: var(--q1); }
.st.q2 { fill: var(--q2); background: var(--q2); } .st.q3 { fill: var(--q3); background: var(--q3); }
.st.q4 { fill: var(--q4); background: var(--q4); } .st.q5 { fill: var(--q5); background: var(--q5); }
.st.on { fill: var(--c1); background: var(--c1); } .st.off { fill: var(--map-off); background: var(--map-off); }
.maplegend { margin-top: 8px; }
.fresh { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.fresh::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--muted); }
.fresh.live::before { background: var(--c1); }
.fresh.stale { color: var(--ink-2); font-weight: 600; }
.fresh.stale::before { background: var(--c3); }
.fresh.archive::before { background: transparent; border: 1px solid var(--muted); }
.goalbox { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
svg.goals { display: block; width: 100%; height: auto; }
svg.goals .now { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
svg.goals .dot.c1 { fill: var(--c1); stroke: var(--surface); stroke-width: 1.5; }
svg.goals .dot.c3 { fill: var(--c3); stroke: var(--surface); stroke-width: 1.5; }
svg.goals .median { stroke: var(--ink); stroke-width: 2; }
svg.goals .tick { fill: var(--muted); font-size: 10px; }
.setgoal summary { cursor: pointer; font-size: 12px; color: var(--muted); }
form.setgoal, .setgoal form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 6px; }
.setgoal label { display: grid; gap: 2px; font-size: 12px; color: var(--ink-2); }
.setgoal input { width: 110px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.years { margin: 28px 0 8px; max-width: 760px; }
.badge-k { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.badge-k.minutes { border-color: var(--c1); color: var(--c1); }
.badge-k.draft { border-color: var(--c3); color: var(--ink); }
.badge-k.approved_draft { border-color: var(--c1); color: var(--ink-2); }
.badge-k.agenda { border-style: dashed; color: var(--muted); }
table.meetings td { padding: 6px 10px 6px 0; }
.minutes { max-width: 760px; }
.minutes-text { white-space: pre-wrap; font-size: 14px; line-height: 1.55; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-wrap: anywhere; }
.minutes-draft { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 10px; }
.minutes-draft h3 { font-size: 16px; margin: 12px 0 4px; } .minutes-draft h4 { font-size: 14px; margin: 12px 0 2px; }
.minutes-draft ul { margin: 4px 0; padding-left: 18px; } .minutes-draft p { margin: 6px 0; }
.draft-note { border-left: 4px solid var(--c3); background: var(--surface); padding: 8px 12px; border-radius: 6px; font-size: 13px; color: var(--ink-2); margin: 6px 0 10px; }
.draft-note.ok { border-left-color: var(--c1); }
.fn-ref { margin: -6px 0 14px; }
.fn-ref a { text-decoration: none; margin-left: 1px; }
details.footnote { max-width: 760px; margin: 20px 0 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
details.footnote summary { cursor: pointer; }
details.footnote p { margin: 6px 0; }
.llm-note { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c3); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--ink-2); margin: 8px 0 18px; }
.tl { overflow-x: auto; margin: 0 0 6px; padding-bottom: 6px; }
.tl-rail { list-style: none; display: flex; margin: 0; padding: 0; min-width: max-content; position: relative; }
.tl-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line); }
.tl-rail li { width: 112px; flex: 0 0 auto; }
.tl-node { position: relative; display: grid; justify-items: center; gap: 3px; padding: 0 6px 6px; text-decoration: none; color: var(--ink-2); border-radius: 8px; }
.tl-node .dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.tl-node .yr { font-weight: 700; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-node .hl { font-size: 11px; line-height: 1.3; text-align: center; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl-node:hover .dot, .tl-node:focus-visible .dot { border-color: var(--c1); }
.tl-node.on .dot { background: var(--c1); border-color: var(--c1); box-shadow: 0 0 0 3px var(--surface); }
.tl-node.on .yr { color: var(--c1); }
.tl-panels { max-width: 760px; }
.tl-panel { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.tl-panel:target, .tl-panels:not(:has(.tl-panel:target)) .tl-panel.latest { display: block; }
.tl-panel h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; }
.tl-panel h2 .yr { color: var(--c1); margin-right: 6px; }
.tl-panel .summary { color: var(--ink-2); font-size: 15px; }
.tl-panel h3.section { margin: 14px 0 4px; }
.hl-list { margin: 4px 0 8px; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.hl-list li { margin: 4px 0; }
.events { margin: 28px 0 8px; max-width: 900px; }
.eventlist { width: 100%; border-collapse: collapse; font-size: 14px; }
.eventlist th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.eventlist td { vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.eventlist .when { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.eventlist .links { white-space: nowrap; font-size: 13px; }
details.year { border-top: 1px solid var(--line); padding: 10px 0; }
details.year summary { cursor: pointer; font-size: 15px; }
details.year p, details.year ul { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
details.year li { margin: 3px 0; }
.small { font-size: 12px; }
.feedback { margin: 28px 0 8px; max-width: 640px; }
.feedback form { display: grid; gap: 10px; }
.feedback label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.feedback select, .feedback textarea, .feedback input[type=text] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
.feedback .btn { justify-self: start; }
.feedback .thanks { background: var(--chip); border-radius: 8px; padding: 8px 12px; }
.feedback .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.card .lead { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
ul.entries { list-style: none; margin: 8px 0 0; padding: 0; max-height: 220px; overflow-y: auto; }
ul.entries li { padding: 3px 0; border-top: 1px solid var(--line); }
ul.entries .when { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
ul.entries .note { color: var(--muted); }

#tip { position: fixed; z-index: 10; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }

.foot { margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 4px 0; }
.muted { color: var(--muted); }

/* admin pages (sign-in, bank, email preview) */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.notice { background: var(--chip); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.sub { color: var(--ink-2); }
.small { font-size: 13px; }
form.stack { display: grid; gap: 12px; max-width: 420px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.btn { display: inline-block; font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 9px 16px; background: var(--c1); color: #fff; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--c1); border: 1px solid var(--line); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.pill { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--chip); color: var(--ink-2); }
table { border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

footer { border-top: 1px solid var(--line); padding: 16px 0 32px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.acct-actions form { margin: 0; }

/* board terms */
.terms-up { list-style: none; padding: 0; margin: 0; }
.terms-up li { padding: 6px 0; border-top: 1px solid var(--line); }
.terms-up .when { display: inline-block; min-width: 76px; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13px; }
.terms-up li.final .when { color: var(--ink); font-weight: 600; }
.terms-scroll { overflow-x: auto; max-width: 100%; }
svg.terms { min-width: 640px; width: 100%; height: auto; display: block; }
svg.terms .grid { stroke: var(--line); stroke-width: 1; }
svg.terms .who { fill: var(--ink); font-size: 12px; font-weight: 600; }
svg.terms rect.term.past { fill: var(--q2); }
svg.terms rect.term.current { fill: var(--c1); }
svg.terms rect.term.future { fill: none; stroke: var(--c1); stroke-dasharray: 3 2; stroke-width: 1; }
svg.terms .tn { font-size: 10px; font-weight: 600; fill: var(--surface); }
svg.terms .tn.past { fill: var(--ink); }
svg.terms .tn.future { fill: var(--c1); }
svg.terms rect.office { fill: var(--c4); }
svg.terms rect.office.open { opacity: .45; }
svg.terms .cap { fill: var(--ink-2); font-size: 10px; font-weight: 600; }
svg.terms .today { stroke: var(--ink); stroke-width: 1.5; }
svg.terms .today-l { fill: var(--ink); font-size: 10px; }
.sw.term-past { background: var(--q2); } .sw.term-current { background: var(--c1); }
.sw.term-future { background: none; border: 1px dashed var(--c1); box-sizing: border-box; }
.sw.term-office { background: var(--c4); height: 5px; vertical-align: 2px; }
.cap-l { color: var(--ink-2); font-size: 11px; }
table.terms-t { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.terms-t th, table.terms-t td { padding: 5px 10px 5px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.terms-t th { font-size: 11px; color: var(--muted); font-weight: 600; }
.pill.final { color: var(--ink); }
svg.terms .who.unclear { fill: var(--muted); font-weight: 500; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--muted); }
.st-dot.good, svg.terms .st.good { background: var(--c1); fill: var(--c1); }
.st-dot.low, svg.terms .st.low { background: var(--c3); fill: var(--c3); }
.st-dot.absent, svg.terms .st.absent { background: var(--c2); fill: var(--c2); }
.st-dot.new, svg.terms .st.new { background: none; border: 1.5px solid var(--muted); box-sizing: border-box; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.record { border-top: 1px solid var(--line); padding: 10px 0; }
.rec-h { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.rec-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--ink-2); max-width: 720px; }
svg.terms rect.term.alum { fill: var(--q1); }
svg.terms .who.alum { fill: var(--ink-2); font-weight: 500; }
svg.terms .grp { fill: var(--ink-2); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.sw.term-alum { background: var(--q1); }
svg.mtimes .mark { stroke-width: 1.5; }
svg.mtimes .mark.sched { stroke: var(--muted); stroke-dasharray: 3 3; }
svg.mtimes .mark.called, svg.mtimes .mark.adj { stroke: var(--ink); }
svg.mtimes .mark-l { font-size: 10px; fill: var(--ink-2); }
svg.chart path.line.est { stroke-dasharray: 4 3; opacity: .75; }
svg.chart .pt.est { fill: var(--surface); stroke: var(--c1); stroke-width: 1.2; }
.pilot { font-size: 12px; color: var(--ink-2); margin: 6px 0 0; }
.pilot.tiles-note { margin: -4px 0 14px; }
.rec-list { list-style: none; padding: 0; margin: 0; }
.rec-list li { padding: 7px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.rec-list .when { display: inline-block; min-width: 92px; color: var(--ink-2); font-size: 13px; }
.rec-h1 { overflow-wrap: anywhere; }
table.activity td.act { min-width: 30px; white-space: nowrap; font-size: 11px; }
table.activity td.act b { color: var(--c1); margin-left: 2px; }
table.activity td.before { background: none; }
.m { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 0; }
.m.came { background: var(--c1); }
.m.missed { border: 1.5px solid var(--muted); box-sizing: border-box; }
.attention { position: relative; }
.attention button.x { float: right; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 2px 0 8px; cursor: pointer; }
.attention button.x:hover { color: var(--ink); }
.attention > button.x { position: absolute; top: 8px; right: 10px; float: none; }
.attention li button.x { font-size: 15px; }
.tile .big { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* headline numbers stay on one line */

/* ---------------------------------------------------------------- site menu (nav.py) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
nav.site { display: flex; align-items: center; gap: 4px; flex: 1; font-size: 14px; }
nav.site .top-link, nav.site summary { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
nav.site summary { list-style: none; }
nav.site summary::-webkit-details-marker { display: none; }
nav.site summary::after { content: " ▾"; font-size: 11px; color: var(--muted); }
nav.site .top-link:hover, nav.site summary:hover, nav.site details[open] > summary { background: var(--chip); color: var(--ink); }
nav.site .here > summary, nav.site .top-link.here { color: var(--ink); font-weight: 600; }
details.drop { position: relative; }
.drop-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.drop-panel.right { left: auto; right: 0; min-width: 160px; }
.drop-panel a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.drop-panel a:hover, .drop-panel a[aria-current] { background: var(--chip); }
.drop-panel a[aria-current] { font-weight: 600; }
.drop-h { margin: 8px 10px 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.drop-h:first-child { margin-top: 2px; }
.drop-panel .drop-all { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 8px; color: var(--c1); font-size: 13px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill-due { font-size: 12px; font-weight: 600; color: #fff; background: var(--c3); border-radius: 999px; padding: 3px 10px; text-decoration: none; white-space: nowrap; }
.badge-n { display: inline-block; min-width: 18px; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; color: #fff; background: var(--c3); border-radius: 999px; padding: 0 5px; margin-left: 2px; }
details.menu-toggle { display: none; }
.crumbs { margin: 14px 0 -6px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--c1); }
@media (max-width: 720px) {
  details.menu-toggle { display: block; margin-left: auto; }
  details.menu-toggle summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
  details.menu-toggle summary::-webkit-details-marker { display: none; }
  header.top .wrap { flex-wrap: wrap; }
  nav.site { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 12px; }
  nav.site.open { display: flex; }
  nav.site details.drop { width: 100%; }
  .drop-panel, .drop-panel.right { position: static; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; }
  .drop-panel a { white-space: normal; }
  .nav-right { margin-left: 0; flex-direction: column; align-items: stretch; }
  .pill-due { align-self: flex-start; margin: 4px 10px; }
}

/* ---------------------------------------------------------------- feedback, in the corner of every page */
.fb-open { position: fixed; right: 16px; bottom: 16px; z-index: 40; font-size: 14px; font-weight: 600; color: #fff; background: var(--c1); border-radius: 999px; padding: 9px 16px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.fb-open:hover { filter: brightness(1.08); }
dialog.fb { width: min(420px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 12px 36px rgba(0,0,0,.25); }
dialog.fb:target { display: block; position: fixed; inset: auto 16px 70px auto; margin: 0; z-index: 50; }   /* no-JS fallback */
dialog.fb::backdrop { background: rgba(0,0,0,.25); }
.fb-form { display: grid; gap: 10px; padding: 16px 18px 14px; position: relative; }
.fb-form h2 { margin: 0; font-size: 17px; }
.fb-sub { margin: -6px 0 0; }
.fb-form .x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.fb-kind { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.fb-form textarea, .fb-form input[type=text] { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; box-sizing: border-box; }
.fb-form label.small { display: grid; gap: 4px; color: var(--ink-2); }
.fb-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb-row { margin: 0; display: flex; align-items: center; gap: 10px; }
.fb-about { margin: 0; }
.fb-toast { position: fixed; right: 16px; bottom: 64px; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.fb-note { margin: 10px 0; }
.fb-note.board { border-color: var(--c1); }
.fb-note.done { opacity: .65; }
.fb-meta { margin: 0 0 4px; overflow-wrap: anywhere; }
.fb-text { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
footer { padding-bottom: 64px; }   /* room for the feedback button */
ul.hub .badge { justify-self: start; width: fit-content; }
details.more-cards { margin: 10px 0 4px; }
details.more-cards > summary { cursor: pointer; font-size: 14px; color: var(--c1); padding: 4px 0; }
details.more-cards[open] > summary { margin-bottom: 10px; }
svg.chart path.bar.partial { opacity: .45; }
svg.chart .dot.est { fill: var(--surface); stroke: var(--c1); stroke-width: 1.5; }
.basis { display: inline-block; background: var(--chip); border-radius: 8px; padding: 4px 10px; margin: 4px 0 2px; }
.g-out { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.g-out.awarded { background: var(--c1); color: #fff; }
.g-out.declined { background: var(--c2); color: #fff; }
.g-out.pending { background: var(--c3); color: #fff; }
.grant-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 12px; max-width: 760px; }
.grant-form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.grant-form label.wide { grid-column: 1 / -1; }
.grant-form input, .grant-form select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
