/* Design D: the live site's identity (site.css tokens: Inter, JetBrains Mono, its colours, header, logo) with one claim card,
   one timeline and one page frame used everywhere. */
body.d { background: var(--bg); }
.d .w { max-width: var(--w); }
.d h1, .d h2, .d h3 { color: var(--ink); }
.crb { font-size: 12.5px; color: var(--ink2); padding: 18px 0 0; }
.crb a { color: var(--ink2); } .crb a:hover { color: var(--link-h); }
.lbl { font: 600 11.5px/1.3 var(--ui); text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }

/* status tones: one palette for every outcome and status chip (claim and search cards, agenda tags); dkit.tone picks the class.
   grey heard / in committee, blue recommended / amended, green passed / adopted, amber continued / put off, red failed / tabled /
   withdrawn. Text is at least 4.5:1 on --bg, --bg2, --bg3 and on its own 10% tint, light and dark (tests/test_site_dclaims.py). */
:root { --st-n: #545a64; --st-fwd: #1d4ed8; --st-ok: #2d6a2a; --st-off: #8a5300; --st-no: #a3271c; }
:root[data-theme="dark"] { --st-n: #a3a9b4; --st-fwd: #8fb3ff; --st-ok: #8fd49a; --st-off: #e3b05c; --st-no: #ff8a80; }
.tone-n { --st: var(--st-n); } .tone-fwd { --st: var(--st-fwd); } .tone-ok { --st: var(--st-ok); } .tone-off { --st: var(--st-off); } .tone-no { --st: var(--st-no); }
.st-chip { display: inline-block; padding: 0 7px; border: 1px solid; border-radius: 3px; font: 600 12px/1.5 var(--ui); white-space: nowrap; }

/* header additions: menu button bordered, search icon on phone */
.d .hd .menu button { border: 1px solid var(--rule); border-radius: var(--r); padding: 5px 10px; background: var(--bg); font: 500 13px/1 var(--ui); color: var(--ink); }
.d .hd nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.d .hd .sic { display: none; }
@media (max-width: 860px) { .d .hd .sic { display: inline-flex; align-items: center; color: var(--ink); } .d .hd .sic svg { width: 19px; height: 19px; } }

/* page head */
/* .ph is the D page head; old pages use table.ph (site.css: rows stacked on phones), so tables are left out. div.sec likewise: old pages have h2.sec */
.ph:not(table) { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; padding: 14px 0 22px; border-bottom: 1px solid var(--rule); }
.ph h1 { font: 650 34px/1.12 var(--ui); letter-spacing: -.02em; margin-top: 6px; }
.ph .lede { font-size: 16px; line-height: 1.55; max-width: 62ch; margin-top: 10px; }
.ph .cnt { font-size: 13px; color: var(--ink2); margin-top: 10px; }
.ph .cnt b { color: var(--ink); font-weight: 600; }
.ph .how { font-size: 12.5px; color: var(--ink3); margin-top: 4px; }
@media (max-width: 860px) { .ph:not(table) { grid-template-columns: minmax(0, 1fr); gap: 14px; } .ph h1 { font-size: 28px; } }
.locator { display: block; position: relative; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--bg2); }
.locator img { display: block; width: 100%; height: 190px; object-fit: cover; }
.locator .pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #c8371f; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.locator .go { position: absolute; right: 8px; bottom: 8px; background: var(--bg); border: 1px solid var(--rule); border-radius: 3px; font-size: 12.5px; padding: 3px 8px; color: var(--link); }
@media (max-width: 860px) { .locator img { height: 150px; } }
.ident { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; }
.ident img { width: 112px; height: 140px; object-fit: cover; border-radius: 2px; border: 1px solid var(--rule2); }
@media (max-width: 860px) { .ident { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; } .ident img { width: 76px; height: 96px; } }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r); margin-top: 14px; max-width: 560px; }
.tiles div { padding: 9px 12px; border-left: 1px solid var(--rule); font-size: 12px; color: var(--ink2); }
.tiles div:first-child { border-left: 0; }
.tiles b { display: block; font: 600 19px/1.25 var(--ui); color: var(--ink); }

/* body grid */
.bg { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; padding: 18px 0 44px; }
@media (max-width: 860px) { .bg { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.rail section { margin-bottom: 24px; }
.rail .lbl { display: block; margin-bottom: 8px; }
.rl { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.rl li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--rule2); }
.rl li span { color: var(--ink3); font-size: 12.5px; white-space: nowrap; }
.rl .sub { display: block; font-size: 11.5px; color: var(--ink3); font-weight: 600; margin: 10px 0 2px; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; }
.btns a { font: 500 12.5px/1 var(--mono); border: 1px solid var(--rule); border-radius: 3px; padding: 6px 9px; color: var(--ink); }
.ph2 img { width: 100%; display: block; border-radius: 2px; }
.ph2 p { font-size: 12px; color: var(--ink2); margin-top: 5px; }

/* timeline controls */
.tl-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tl-h h2 { font: 600 18px/1.3 var(--ui); }
.tl-sel { font-size: 13px; color: var(--ink2); margin: 4px 0 10px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.seg button { font: 500 13px/1 var(--ui); padding: 8px 12px; border: 0; border-left: 1px solid var(--rule); background: var(--bg); color: var(--ink2); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button i { font-style: normal; opacity: .7; margin-left: 5px; }
.ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; font-size: 13px; color: var(--ink2); }
.ctl select, .ctl input[type=text] { font: 13px var(--ui); padding: 6px 8px; border: 1px solid var(--rule); border-radius: 3px; background: var(--bg); color: var(--ink); }
.ctl label { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 860px) { .seg { display: flex; } .seg button { flex: 1 1 auto; padding: 8px 8px; } }
.dec { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 0 16px; border-top: 1px solid var(--rule); }
.dec > h3 { font: 600 14px/1 var(--ui); padding-top: 18px; position: sticky; top: 60px; align-self: start; color: var(--ink2); }
.dec .cc:first-child { border-top: 0; }
@media (max-width: 860px) { .dec { grid-template-columns: minmax(0, 1fr); } .dec > h3 { position: static; padding: 14px 0 2px; } }
.more { font-size: 13.5px; padding: 12px 0; }
.hist { margin: 14px 0 0; max-width: 520px; }
.hist .bars { display: flex; align-items: flex-end; gap: 3px; height: 48px; }
.hist .bars a, .hist .bars span { flex: 1; background: var(--link); opacity: .3; border-radius: 1px 1px 0 0; min-height: 2px; }
.hist .bars a:hover, .hist .bars span:hover { opacity: .75; }
.hist .xl { display: flex; gap: 3px; font-size: 10.5px; color: var(--ink3); margin-top: 2px; }
.hist .xl span { flex: 1; text-align: center; }
.hist p { font-size: 12px; color: var(--ink3); margin-top: 2px; }

/* the claim card */
.cc { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 16px; padding: 14px 0 14px 14px; border-top: 1px solid var(--rule2); position: relative; }
.cc::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: var(--kc); }
.cc.k-dec { --kc: var(--link); } .cc.k-rep { --kc: var(--warn); } .cc.k-fig { --kc: var(--ok); }
.cc > div { min-width: 0; }
.cc-m { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; font-size: 12.5px; color: var(--ink2); }
.cc-m time { font-weight: 600; color: var(--ink); font-size: 13px; }
.cc-k { font: 600 11px/1.3 var(--ui); text-transform: uppercase; letter-spacing: .05em; color: var(--kc); }
.cc-o { font-size: 12px; padding: 0 6px; border-radius: 2px; border: 1px solid var(--rule); color: var(--ink2); }
.cc-o, .st-chip { color: var(--st, var(--ink2)); background: color-mix(in srgb, var(--st, var(--ink3)) 10%, transparent); border-color: color-mix(in srgb, var(--st, var(--ink3)) 40%, transparent); }
.cc-st { margin-left: auto; font-size: 11.5px; color: var(--ink3); border-bottom: 1px dotted var(--ink3); cursor: help; }
.cc-st.ok { color: var(--ok); border-color: var(--ok); }
.cc-t { font-size: 15px; line-height: 1.5; margin-top: 4px; max-width: 70ch; overflow-wrap: anywhere; }
.cc-f { margin-top: 4px; }
.cc-f b { font: 600 21px/1.25 var(--ui); font-feature-settings: "tnum"; margin-right: 8px; }
.cc-f span { font-size: 14px; }
.cc-p { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--rule); font-size: 13.5px; line-height: 1.5; color: var(--ink2); max-width: 70ch; overflow-wrap: anywhere; }
.cc-p::before { content: "Printed: "; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); }
.cc-s { font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.cc-s .ct { font-family: var(--mono); font-size: 11.5px; }
.cc-scan { display: block; align-self: start; text-align: center; }
.cc > div:only-child { grid-column: 1 / -1; }   /* no thumbnail (a PDF page): the text takes the row */
.cc-g { font-size: 12.5px; color: var(--ink2); margin-top: 4px; }
.cc-scan img, .cc-scan .pdf { display: block; width: 72px; height: 96px; object-fit: cover; object-position: top; border: 1px solid var(--ink3); border-radius: 2px; background: var(--bg2); }
.cc-scan .pdf { display: flex; align-items: center; justify-content: center; font: 600 11px/1 var(--mono); color: var(--ink3); }
.cc-scan small { display: block; font: 10.5px/1.3 var(--mono); color: var(--link); margin-top: 4px; }
.cc-scan:hover img { border-color: var(--link); }
@media (max-width: 860px) { .cc { grid-template-columns: minmax(0, 1fr) 54px; gap: 12px; } .cc-scan img, .cc-scan .pdf { width: 54px; height: 72px; } .cc-scan small { display: none; } .cc-t { font-size: 14.5px; } .cc-st { margin-left: 0; } }

/* scan drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.on { display: block; }
.drawer .bk { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.drawer .pn { position: absolute; right: 0; top: 0; bottom: 0; width: min(860px, 100%); background: var(--bg); border-left: 1px solid var(--rule); display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.drawer .pn > div { padding: 18px; overflow: auto; }
.drawer .pn img { width: 100%; display: block; border: 1px solid var(--rule); }
.drawer .x { font: 500 13px var(--ui); border: 1px solid var(--rule); background: var(--bg); border-radius: 3px; padding: 5px 9px; cursor: pointer; }
@media (max-width: 860px) { .drawer .pn { grid-template-columns: minmax(0, 1fr); } }

/* home */
.hx { padding: 32px 0 10px; }
.hx h1 { font: 650 34px/1.15 var(--ui); letter-spacing: -.02em; }
.hx .lede { font-size: 16px; line-height: 1.55; max-width: 64ch; margin-top: 12px; }
.hx .chk { font-size: 13.5px; color: var(--ink2); margin-top: 8px; max-width: 64ch; }
@media (max-width: 860px) { .hx h1 { font-size: 27px; } }
.one { display: flex; gap: 8px; max-width: 700px; margin: 18px 0 6px; }
.one input { flex: 1; min-width: 0; font: 16px/1.3 var(--ui); padding: 11px 14px; border: 1px solid var(--field-rule); border-radius: var(--r); background: var(--field); color: var(--ink); }
.one button { font: 600 15px/1 var(--ui); padding: 0 18px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; }
.one-hint { font-size: 13px; color: var(--ink2); min-height: 18px; }
.one-ex { font-size: 13px; color: var(--ink2); margin-top: 3px; }
div.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
div.sec .lbl { color: var(--ink); }
div.sec a { font-size: 13px; }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.c4 a { display: block; color: var(--ink); }
.c4 a:hover { text-decoration: none; } .c4 a:hover .t { color: var(--link-h); }
.c4 .im { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; border: 1px solid var(--rule2); background: var(--bg2); }
.c4 .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c4 .im img.scan { object-position: top; }
.c4 .k { display: block; margin-top: 8px; }
.c4 .t { display: block; font: 600 15.5px/1.3 var(--ui); margin-top: 2px; }
.c4 .l { display: block; font-size: 13px; color: var(--ink2); margin-top: 3px; line-height: 1.45; }
.c4 .cr { font-size: 11px; color: var(--ink3); margin-top: 4px; }
.c4 .cr a { color: var(--ink3); text-decoration: underline; }
@media (max-width: 860px) {
  .cards4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .c4 { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 12px; }
  .c4 a { display: contents; } .c4 .im { grid-row: 1 / span 4; aspect-ratio: 1; } .c4 .k { margin-top: 0; } .c4 .cr { grid-column: 2; }
}
.band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.band ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.band li { padding: 5px 0; border-bottom: 1px solid var(--rule2); }
.band p { font-size: 13.5px; color: var(--ink2); margin-bottom: 6px; }
.band .locator img { height: 140px; }
.band .locator { margin-bottom: 8px; }
@media (max-width: 860px) { .band { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 30px 0 40px; }
.ledger div { padding: 12px 14px; border-left: 1px solid var(--rule); font-size: 12.5px; color: var(--ink2); }
.ledger div:first-child { border-left: 0; padding-left: 0; }
.ledger b { display: block; font: 600 18px/1.3 var(--ui); color: var(--ink); font-feature-settings: "tnum"; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr 1fr; } .ledger div:nth-child(3) { border-left: 0; padding-left: 0; } .ledger div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* charts */
.chartbox { border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px 10px; margin-top: 16px; }
.chartbox .seg { margin-bottom: 8px; }
.chartbox svg { width: 100%; height: auto; display: block; color: var(--ink); }
.chartbox text { font: 11.5px var(--ui); fill: var(--ink2); }
.chartbox .rb { fill: var(--link); opacity: .75; } .chartbox a:hover .rb { opacity: 1; }
.chartbox .v { fill: var(--ink); font-weight: 600; }
.chartbox p { font-size: 12.5px; color: var(--ink2); }
@media (max-width: 860px) { .chartbox text { font-size: 15px; } }

/* ask */
.askh { padding: 10px 0 0; max-width: 860px; }
.askh h1 { font: 650 32px/1.15 var(--ui); letter-spacing: -.02em; }
.askh .lede { font-size: 15.5px; margin-top: 8px; max-width: 64ch; }
.exg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.exg ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.exg li { padding: 5px 0; border-top: 1px solid var(--rule2); }
@media (max-width: 860px) { .exg { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.ans { border-top: 2px solid var(--ink); margin-top: 28px; padding-top: 16px; max-width: 860px; }
.ans h2 { font: 600 21px/1.3 var(--ui); max-width: 60ch; }
.ans .stl { font-size: 12.5px; color: var(--ink2); margin: 6px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ans .stl .ok { color: var(--ok); font-weight: 600; }
.ans .prose p { font-size: 15.5px; line-height: 1.6; margin: 0 0 10px; max-width: 70ch; }
.ans .prose ul { font-size: 15px; line-height: 1.55; max-width: 70ch; padding-left: 18px; margin: 0 0 10px; }
.ans h3 { font: 600 11.5px/1.3 var(--ui); text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); margin: 18px 0 6px; }
table.ft { border-collapse: collapse; width: 100%; font-size: 13.5px; font-feature-settings: "tnum"; }
table.ft th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink2); border-bottom: 1px solid var(--rule); padding: 6px 8px 6px 0; }
table.ft td { border-bottom: 1px solid var(--rule2); padding: 7px 8px 7px 0; vertical-align: top; }
table.ft td.n { text-align: right; white-space: nowrap; }
.tblwrap { overflow-x: auto; }

/* search */
.sgrid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 6px 0 44px; }
.facets fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.facets legend { padding: 0; margin-bottom: 6px; }
.facets label { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 3px 0; }
.facets label span { color: var(--ink3); font-size: 12.5px; }
.facets .yr { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.facets .yr input { width: 62px; font: 13px var(--ui); padding: 5px 6px; border: 1px solid var(--rule); border-radius: 3px; }
@media (max-width: 860px) { .sgrid { grid-template-columns: minmax(0, 1fr); gap: 8px; } .facets { display: none; } }
.ents { list-style: none; margin: 0; padding: 0; }
.ents li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--rule2); font-size: 14.5px; }
.ents li .lbl { padding-top: 3px; }
.ents li small { grid-column: 2; font-size: 12.5px; color: var(--ink2); }
@media (max-width: 860px) { .ents li { grid-template-columns: minmax(0, 1fr); } .ents li small { grid-column: 1; } }

/* report */
.cover { width: 112px; border: 1px solid var(--rule); border-radius: 2px; display: block; }
dl.meta { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 12px; font-size: 13.5px; margin-top: 12px; }
dl.meta dt { color: var(--ink2); } dl.meta dd { margin: 0; }

/* about */
.doc { max-width: 760px; padding: 10px 0 44px; }
.doc h1 { font: 650 32px/1.15 var(--ui); letter-spacing: -.02em; margin-top: 6px; }
.doc h2 { font: 600 18px/1.3 var(--ui); margin: 28px 0 8px; }
.doc p { font-size: 15.5px; line-height: 1.6; margin: 0 0 10px; }
.doc table.ft { margin: 6px 0 10px; }
.tagk { display: inline-block; font-size: 12px; border-bottom: 1px dotted; }
.cc.k-bg { --kc: var(--ink3); } .rl li.x { border-top: 0; padding: 0; }

/* iteration after the panel */
.insh { margin: 14px 0 4px; max-width: 66ch; }
.insh ul { list-style: none; margin: 6px 0 0; padding: 0; }
.insh li { font-size: 14px; line-height: 1.5; padding: 5px 0; border-top: 1px solid var(--rule2); }
.insh li time { font-weight: 600; margin-right: 6px; white-space: nowrap; }
.insh li a { font-size: 12.5px; white-space: nowrap; }
.cc-m a.sid { font: 10.5px var(--mono); color: var(--ink3); }
details.cite { margin-top: 8px; font-size: 13px; } details.cite summary { cursor: pointer; color: var(--link); }
details.cite p { font: 12px/1.5 var(--mono); background: var(--bg2); border: 1px solid var(--rule); border-radius: 3px; padding: 8px; margin-top: 6px; }
.cc-st { border-bottom: 0; background: var(--bg2); padding: 1px 6px; border-radius: 2px; }
.cc-st.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); }
table.dtab { border-collapse: collapse; width: 100%; font-size: 13.5px; font-feature-settings: "tnum"; }
table.dtab th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink2); border-bottom: 1px solid var(--rule); padding: 6px 8px 6px 0; vertical-align: bottom; }
table.dtab td { border-bottom: 1px solid var(--rule2); padding: 7px 8px 7px 0; vertical-align: top; }
table.dtab td.n { text-align: right; white-space: nowrap; }
.tblwrap table.dtab { min-width: 520px; }

/* kit additions (dkit.py): the embedded map and the map box without a picture */
.locator iframe { display: block; width: 100%; height: 190px; border: 0; }
.locator.noimg { min-height: 90px; display: flex; align-items: flex-end; }
@media (max-width: 860px) { .locator iframe { height: 150px; } }
/* tables in a scroll wrapper: no sticky header (site.css sticks thead th at top 52px; inside an overflow box that pushes the
   header down over the first rows), as site.css does for .tw */
.tblwrap thead th, table.dtab thead th { position: static; }
/* the header between phone and wide desktop: six menu items, the search box, the city line and the theme button must fit;
   the right block shrinks, the city line goes below 1200 px, the search box becomes the search button below 1080 px */
.d .hd .right { min-width: 0; flex-shrink: 1; }
.d .hd .hs { min-width: 0; flex: 0 1 300px; } .d .hd .hs input { width: 100%; min-width: 150px; }
@media (max-width: 1200px) { .d .hd .city { display: none; } .d .hd .w { gap: 20px; } .d .hd nav { gap: 18px; } }
@media (max-width: 1080px) { .d .hd .hs { display: none; } .d .hd .ib.sb { display: flex; } }
/* type-ahead (d.js): the list under the one box, the header search and the phone search bar; the kind in grey, "Ask: …" last */
.sg-on { position: relative; }
.sg { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px 0; list-style: none; text-align: left;
  background: var(--bg); border: 1px solid var(--rule2); border-radius: var(--r); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.sg a { display: block; padding: 10px 14px; font: 15px/1.35 var(--ui); color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg .k { color: var(--ink3); }
.sg [aria-selected="true"] a, .sg a:hover { background: var(--bg2); }
.sg .ask { border-top: 1px solid var(--rule); color: var(--link); }
.d .hd .hs .sg { left: auto; width: min(380px, calc(100vw - 32px)); }

/* kit additions (dkit.docs_frame): the docs layout. Sidebar left, content, "On this page" rail right (only with 3+ sections);
   the content comes first in the page, so on phones it leads and the sidebar follows it. Group labels in sentence case. Prefix dx: the live docs index uses .dk. */
.dx { display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-areas: "nav main"; gap: 44px; align-items: start; margin-top: 8px; }
.dx.dx-r { grid-template-columns: 210px minmax(0, 1fr) 190px; grid-template-areas: "nav main rail"; }
.dx > * { min-width: 0; }
.dx-c { grid-area: main; }
.dx-nav { grid-area: nav; } .dx-rail { grid-area: rail; }
.dx-nav, .dx-rail { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; display: flex; flex-direction: column; font-size: 13.5px; padding: 18px 0 24px; }
.dx-g { font: 600 13px/1.3 var(--ui); color: var(--ink); text-transform: none; letter-spacing: 0; margin: 18px 0 6px; }
.dx-g:first-child { margin-top: 0; }
.dx-nav a, .dx-rail a { color: var(--ink2); padding: 4px 0 4px 10px; border-left: 2px solid var(--rule2); line-height: 1.35; }
.dx-nav a[aria-current] { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
.dx-nav a:hover, .dx-rail a:hover { color: var(--ink); text-decoration: none; }
.dx-c .dd, .dx-c .doc { max-width: 760px; }
.dx-c p a, .dx-c li a { overflow-wrap: anywhere; }   /* a long address in the text wraps on phones */
@media (max-width: 1100px) { .dx.dx-r { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "nav main"; } .dx-rail { display: none; } }
@media (max-width: 760px) {
  .dx, .dx.dx-r { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "nav"; gap: 12px; }
  .dx-nav { position: static; max-height: none; overflow: visible; border-top: 1px solid var(--rule); padding-top: 16px; }
}

/* pages built before dkit.tone carry the outcome word as the class ("cc-o passed first reading"): same palette, no rebuild needed */
.cc-o.passed, .cc-o.adopted, .cc-o.approved, .cc-o.granted, .cc-o.carried, .cc-o.signed { --st: var(--st-ok); }
.cc-o.refused, .cc-o.failed, .cc-o.tabled, .cc-o.rejected, .cc-o.withdrawn, .cc-o.vetoed, .cc-o.denied, .cc-o.defeated { --st: var(--st-no); }
.cc-o.continued, .cc-o.postponed, .cc-o.deferred { --st: var(--st-off); }
.cc-o.amended, .cc-o.recommended { --st: var(--st-fwd); }
/* pages built before scan_html dropped the empty box: hide the grey "PDF" box (the card's "PDF page ↗" link opens the page) */
.cc-scan:has(> .pdf) { display: none; }
.cc:has(> .cc-scan > .pdf) > div { grid-column: 1 / -1; }
