/* Usnesení Pardubice V.
   After pardubice.eu: the city's red as a full-width band, its cool grey (#e8ecf0) for
   alternating list rows, near-black type. One memorable device: the seat strip – every vote
   drawn as one tile per seat with a notch where the majority starts. Status lives in the
   type: a resolution number that did not pass is struck through. Red means the city and
   "against / failed", nothing else. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-stretch: 75% 100%; font-display: swap;
  src: url(/static/fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-stretch: 75% 100%; font-display: swap;
  src: url(/static/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #de091c;        /* city signature */
  --red-ink: #b00716;    /* red as text on white, 6.0:1 */
  --grey: #e8ecf0;       /* city surface */
  --ink: #191c1f;        /* city text */
  --ink-2: #3b3f44;
  --muted: #5f6368;      /* 5.9:1 on white, 5.1:1 on grey */
  --rule: #c9cfd6;
  --field: #7d838b;      /* form borders, 3.8:1 */
  --pro: #067352;        /* city green #0aa477, deepened for text */
  --pro-tile: #067352;
  --abst: #965200;
  --abst-tile: #b86e00;
  --off: #d6dbe0;
  --wrap: 1120px;
  --tile: 14px;
  --gap: 3px;
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink);
  font: 400 1rem/1.55 "Bricolage Grotesque", system-ui, sans-serif; font-optical-sizing: auto;
  font-variant-numeric: tabular-nums; }
a { color: var(--red-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: 1.45rem; margin: 2.6rem 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 9; }
.skip:focus { left: .5rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.note { color: var(--muted); font-size: .9rem; }
sup { font-size: .7em; color: var(--muted); }

/* header + band: one red surface, like the city's page heads */
.top { background: var(--red); color: #fff; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem 2rem; flex-wrap: wrap;
  padding-top: .9rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.28); }
.brand { color: #fff; text-decoration: none; font-size: 1.15rem; font-stretch: 85%; }
.brand b { font-weight: 800; }
.top nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.top nav a { color: #fff; text-decoration: none; font-weight: 500; padding: .65rem 0; margin: -.45rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-bottom-color: #fff; }
.top :focus-visible, .band :focus-visible { outline-color: #fff; }
.band { background: var(--red); color: #fff; }
.band .wrap { padding-top: 1.6rem; padding-bottom: 2.4rem; }
.band h1 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); font-weight: 800; font-stretch: 88%; margin: .2rem 0 0; max-width: 22ch; letter-spacing: -.025em; }
.band a { color: #fff; }
.band-lead { margin: 1rem 0 0; max-width: 60ch; font-size: 1.05rem; }
.crumbs { font-size: .92rem; }
.crumbs a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); }

.band-home .wrap { padding-bottom: 2.8rem; }
.band-home.compact h1 { font-size: 1.35rem; font-weight: 600; }
.search { display: flex; align-items: flex-end; gap: 1rem; margin-top: 1.6rem; max-width: 820px; }
.search input[type=search] { flex: 1; min-width: 0; font: inherit; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500;
  color: #fff; background: transparent; border: 0; border-bottom: 3px solid #fff; padding: .25rem 0 .35rem; border-radius: 0; }
.search input[type=search]::placeholder { color: rgba(255,255,255,.78); }
.search input[type=search]:focus { outline: none; border-bottom-width: 5px; padding-bottom: .2rem; }
.search input[type=search]::-webkit-search-cancel-button { filter: invert(1); }
.search button { font: inherit; font-weight: 700; font-size: 1rem; color: var(--red-ink); background: #fff; border: 0;
  padding: .7rem 1.4rem; cursor: pointer; border-radius: 3px; }
.search button:hover { background: var(--ink); color: #fff; }

main { padding-top: 1.6rem; padding-bottom: 4rem; }

/* filter as a sentence */
.sentence p { margin: 0; font-size: 1.08rem; line-height: 2.4; color: var(--ink-2); max-width: 70ch; }
.sentence select, .sentence input { font: inherit; color: var(--ink); background: transparent; border: 0;
  border-bottom: 2px solid var(--field); padding: 0 .1rem; border-radius: 0; max-width: 100%; }
.sentence select:hover, .sentence input:hover { border-bottom-color: var(--ink); }
.sentence input { width: 7.5em; }
.sentence select { max-width: 17em; text-overflow: ellipsis; }
.sentence button { font: inherit; font-weight: 700; font-size: .95rem; margin-left: .4rem; padding: .6rem 1rem; color: #fff;
  background: var(--ink); border: 0; border-radius: 3px; cursor: pointer; }
.sentence a { font-size: .95rem; margin-left: .5rem; }

.results-head { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 .6rem; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; font-size: .85rem; color: var(--ink-2); margin: 0 0 1rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { display: inline-block; width: var(--tile); height: var(--tile); border-radius: 2px; }
.legend .lg-notch { width: 2px; height: 20px; background: var(--ink); border-radius: 0; }
.order { font-size: .92rem; color: var(--muted); margin: 0 0 .8rem; }

/* list rows: alternating city grey, no cards */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: .2rem 1.6rem; padding: 1.1rem 1rem 1.15rem; }
.row:nth-child(odd) { background: var(--grey); }
.row-no { padding-top: .1rem; }
.row h3 { font-size: 1.12rem; font-weight: 650; margin: 0; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { text-decoration: underline; }
.row-meta { margin: .25rem 0 0; font-size: .92rem; color: var(--muted); }
.row-text { margin: .35rem 0 0; color: var(--ink-2); max-width: 68ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-vote { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; padding-top: .3rem; }

/* the number is the status */
.no { font-weight: 700; font-size: 1.05rem; white-space: nowrap; font-stretch: 90%; }
.no-neprijato { text-decoration: line-through 3px var(--red); color: var(--muted); }
.no-castecne { text-decoration: underline wavy 2px var(--abst-tile); text-underline-offset: .25em; }
.no-neovereno { color: var(--muted); }
.no-revoked { text-decoration: line-through double 2px var(--ink); color: var(--muted); }
.no-amended { text-decoration: underline dotted 3px var(--ink); text-underline-offset: .2em; }
.no-big { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin: .4rem 0 0; color: #fff; line-height: 1; }
.band .no-neprijato { text-decoration-color: var(--ink); color: rgba(255,255,255,.75); }
.band .no-revoked { text-decoration-color: #fff; color: rgba(255,255,255,.75); }
.band .no-castecne, .band .no-amended { text-decoration-color: #fff; }
.band .no-revoked { text-decoration-style: double; }
.st { font-weight: 650; color: var(--ink); }
.st-ok { color: var(--pro); }
.st-no { color: var(--red-ink); }
.st-part { color: var(--abst); }

/* seat strip */
.seats { position: relative; display: inline-grid; grid-template-columns: repeat(var(--n), var(--tile)); gap: var(--gap); }
.seats i { display: block; width: var(--tile); height: var(--tile); border-radius: 2px; font-style: normal; }
.t-pro { background: var(--pro-tile); }
/* proti carries a minus so it never depends on red vs green alone */
.t-proti { background: linear-gradient(#fff, #fff) center / 60% 2px no-repeat, var(--red); }
.t-zdrzel { background: repeating-linear-gradient(135deg, var(--abst-tile) 0 2px, #fff 2px 4px); box-shadow: inset 0 0 0 1.5px var(--abst-tile); }
.t-nehl { box-shadow: inset 0 0 0 1.5px var(--field); background: #fff; }
/* an empty chair: a dot where the member would sit */
.t-off { background: radial-gradient(circle, var(--field) 0 2px, transparent 2.5px); }
.notch { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink);
  left: calc(var(--q) * (var(--tile) + var(--gap)) - var(--gap) / 2 - 1px); }
.seats-cap { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.part-tiles { display: inline-flex; gap: var(--gap); }
.part-tiles i { display: block; width: var(--tile); height: var(--tile); border-radius: 50%; }
.part-tiles .t-pro, .part-tiles .t-proti { border-radius: 50%; }
.seats-l { --gap: 4px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 2.35rem)); margin: .4rem 0 1.5rem; max-width: 100%; }
.seats-l .notch { left: calc((100% + var(--gap)) * var(--q) / var(--n) - var(--gap) / 2 - 1.5px); }
.seats-l i { width: 100%; height: auto; aspect-ratio: 1; display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: #fff; border-radius: 3px; }
.seats-l .t-zdrzel, .seats-l .t-nehl { color: var(--ink); }
.seats-l .t-zdrzel { text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.seats-l .t-off { color: var(--muted); background: radial-gradient(circle at 50% 82%, var(--field) 0 2.5px, transparent 3px); box-shadow: inset 0 0 0 1px var(--rule); }
.seats-l .t-proti { background: linear-gradient(#fff, #fff) 50% 84% / 50% 2px no-repeat, var(--red); }
.seats-l .t-zdrzel { background: repeating-linear-gradient(135deg, #f1d6a8 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 2px var(--abst-tile); }
.seats-l.bare i { font-size: 0; }
.seats-l .notch { top: -6px; bottom: -6px; width: 3px; }
.seats-l .notch::after { content: "potřeba " attr(data-q); position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px;
  font-size: .72rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* rows inside the two-column detail layout: vote goes under the text */
.detail .row { grid-template-columns: 7rem minmax(0, 1fr); }
.detail .row-vote { grid-column: 2; flex-direction: row; align-items: center; gap: .8rem; padding-top: .4rem; }

/* resolution detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.verdict { font-size: 1.15rem; line-height: 1.4; margin: .2rem 0 1rem; max-width: 52ch; }
.verdict b { display: block; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; font-stretch: 88%; letter-spacing: -.02em; line-height: 1.05; margin-bottom: .35rem; }
.v-prijato b { color: var(--pro); } .v-neprijato b { color: var(--red-ink); } .v-castecne b { color: var(--abst); } .v-neovereno b { color: var(--muted); }
.verdict .muted { font-size: 1rem; }
.revoked-note { font-size: 1.05rem; font-weight: 600; margin: 0 0 1.2rem; padding: .5rem 0 .5rem .9rem; border-left: 4px double var(--ink); max-width: 52ch; }
.verdict-seats { margin: .2rem 0 2rem; }
.parts-summary { list-style: none; padding: 0; margin: .6rem 0 2rem; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .75rem 1.1rem; max-width: 68ch; }
.parts-summary li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; font-size: .95rem; }
.ps-seats { padding-top: .2rem; }
.verdict-sub { display: block; font-size: 1rem; font-weight: 400; color: var(--muted); margin-top: .25rem; }
.summary { font-size: 1.08rem; color: var(--ink-2); max-width: 64ch; margin: 0 0 .5rem; }
.derived-mark { font-weight: 650; color: var(--muted); }
.text { white-space: pre-line; font-size: 1.04rem; line-height: 1.6; max-width: 68ch; padding: 1.1rem 1.3rem; background: var(--grey); }
.text-proposed { background: #fff; outline: 2px dashed var(--field); outline-offset: -2px; color: var(--ink-2); }
.detail-side { font-size: .95rem; border-top: 3px solid var(--ink); padding-top: .8rem; }
.facts { margin: 0; }
.facts dt { font-weight: 650; margin-top: .9rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: .1rem 0 0; color: var(--ink-2); line-height: 1.9; }
.source { margin: 1.6rem 0 0; line-height: 1.9; }
.side-h { font-size: 1rem; font-weight: 650; margin: 1.3rem 0 .3rem; }
.side-h:first-child { margin-top: 0; }
.people { margin: 0; line-height: 1.9; }
.plain { list-style: none; margin: 0; padding: 0; line-height: 1.6; }

.vote { margin: 0 0 2.4rem; }
.vote-title { font-weight: 650; font-size: 1.05rem; margin: 0 0 .5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.vote-out { font-size: .95rem; }
.o-prijato { color: var(--pro); } .o-neprijato { color: var(--red-ink); } .o-none { color: var(--muted); }
.vote-sum { margin: .2rem 0 .7rem; color: var(--ink-2); }
.rollcall { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: 0; }
.rollcall dt { font-weight: 650; }
.rollcall dd { margin: 0; color: var(--ink-2); line-height: 1.9; }
.rollcall dd a { color: var(--ink-2); text-decoration-color: var(--rule); }
.rollcall dd a:hover { color: var(--red-ink); }
.rc-pro { color: var(--pro); } .rc-proti { color: var(--red-ink); } .rc-zdrzel { color: var(--abst); }
.rc-nehlasoval, .rc-omluven, .rc-nepritomen { color: var(--muted); }
.raw { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.raw summary { cursor: pointer; }
.raw p { margin: .3rem 0 0; font-style: italic; }
.motion { margin: -1.6rem 0 2.4rem; }
blockquote { white-space: pre-line; margin: .3rem 0 0; padding: .6rem 1rem; border-left: 3px solid var(--rule); color: var(--ink-2); }
.agenda dt { font-weight: 650; margin-top: 1rem; }
.agenda dd { margin: .25rem 0 0; color: var(--ink-2); max-width: 68ch; }

/* switch (segmented links) */
.switch { display: inline-flex; border: 2px solid var(--ink); border-radius: 3px; margin: 0 0 1.4rem; flex-wrap: wrap; }
.switch a { padding: .35rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.switch a[aria-current] { background: var(--ink); color: #fff; }

/* meetings calendar */
.year-no { font-size: 2.6rem; font-weight: 800; font-stretch: 85%; color: var(--ink); margin: 2.4rem 0 .4rem; letter-spacing: -.03em; }
.cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 2px; }
.cal li a { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 .7rem; padding: .7rem .9rem; text-decoration: none; color: var(--ink); background: var(--grey); height: 100%; }
.cal li.cal-zmo a { background: var(--ink); color: #fff; }
.cal li a:hover { outline: 2px solid var(--red); outline-offset: -2px; }
.cal-date { grid-row: span 2; font-size: 1.3rem; font-weight: 700; }
.cal-what { font-weight: 600; }
.cal-n { font-size: .85rem; opacity: .8; }

.people-list { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: 2.5rem; }
.people-list li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--grey); }
.people-list a { font-weight: 600; color: var(--ink); }

table.ledger { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ledger th { text-align: left; font-weight: 650; padding: .5rem .6rem; border-bottom: 2px solid var(--ink); }
.ledger td { padding: .55rem .6rem; vertical-align: top; }
.ledger tbody tr:nth-child(odd) { background: var(--grey); }
.ledger td a { color: var(--ink); text-decoration: none; }
.ledger td a:hover { text-decoration: underline; }
.inferred { text-decoration: underline dotted 1.5px var(--muted); text-underline-offset: .2em; cursor: help; }
.choice { font-weight: 650; }
.c-pro { color: var(--pro); } .c-proti { color: var(--red-ink); } .c-zdrzel { color: var(--abst); } .c-nehlasoval { color: var(--muted); }

.empty { background: var(--grey); padding: 1.2rem 1.4rem; max-width: 68ch; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 0; }
.pager a { font-weight: 700; padding: .5rem .9rem; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; border-radius: 3px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; }
.lead-text { font-size: 1.15rem; }
pre { background: var(--ink); color: #f1f3f5; padding: .9rem 1.1rem; overflow-x: auto; font-size: .85rem; }
.files { columns: 2; }
.method li { margin: .5rem 0; }

footer { border-top: 6px solid var(--red); background: var(--grey); color: var(--ink-2); font-size: .9rem; }
footer .wrap { padding-top: 1.4rem; padding-bottom: 2.4rem; }
footer p { max-width: 80ch; }

@media (max-width: 920px) {
  .detail { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .detail-side { position: static; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-vote { align-items: flex-start; padding-top: .5rem; }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .top nav { gap: 1rem; }
  .band .wrap { padding-bottom: 1.8rem; }
  .search { flex-direction: column; align-items: stretch; }
  .sentence p { line-height: 2.2; font-size: 1rem; }
  .row { padding: 1rem .8rem; }
  .seats-l { --gap: 2px; grid-template-columns: repeat(var(--n), minmax(0, 2.35rem)); }
  .seats-l i { font-size: 0; border-radius: 2px; }
  .switch { display: flex; flex-direction: column; }
  .switch a + a { border-top: 2px solid var(--ink); }
  .sentence select, .sentence input { min-height: 2.75rem; }
  .ledger td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: .85rem; }
  .detail .row { grid-template-columns: minmax(0, 1fr); }
  .detail .row-vote { grid-column: 1; }
  .rollcall { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rollcall dd { margin-bottom: .5rem; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; padding: .5rem .4rem; }
  .ledger td { padding: 0; }
  .ledger td.nowrap { white-space: normal; }
  .ledger td:nth-child(2) { grid-column: 1 / -1; }
  .files { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.club { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: .4rem 2.5rem;
  border-top: 3px solid var(--ink); padding: .9rem 0 1.6rem; }
.club-name { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.club-name .muted { display: block; font-weight: 400; font-size: .88rem; margin-top: .25rem; }
.club-seats { display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: .55rem; }
.club-seats i { width: var(--tile); height: var(--tile); background: var(--ink); border-radius: 2px; }
.club-people { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: 2rem; }
.club-people li { break-inside: avoid; padding: .3rem 0 .45rem; }
.club-people a { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .club { grid-template-columns: 1fr; } .club-people li { border-bottom: 1px solid var(--grey); } }
.seats-l.bare .t-proti { background: linear-gradient(#fff, #fff) center / 50% 3px no-repeat, var(--red); }
.seats-l.bare .t-off { background: radial-gradient(circle, var(--field) 0 2.5px, transparent 3px); }

/* big number in the band: underlines collide with the h1 below, so partial states are
   said in a quiet suffix instead (the strike for "not passed" stays – it sits mid-glyph) */
.band .no-big.no-castecne, .band .no-big.no-amended { text-decoration: none; }
.band .no-big.no-castecne::after, .band .no-big.no-amended::after {
  font-size: .32em; font-weight: 600; letter-spacing: 0; margin-left: .6em; vertical-align: .55em;
  padding: .15em .5em; border: 2px solid rgba(255,255,255,.85); border-radius: 3px; }
.band .no-big.no-castecne::after { content: "prošlo zčásti"; }
.band .no-big.no-amended::after { content: "zčásti zrušeno"; }
.band .no-big.no-castecne.no-amended::after { content: "zčásti, zčásti zrušeno"; }
.band .no-big + h1 { margin-top: .6rem; }

/* filter sentence: inline words on wide screens, labelled rows on phones */
.sentence .m { display: none; }
.sentence .seg { white-space: nowrap; }
.sentence .seg-who input { width: 9.5em; }
@media (max-width: 600px) {
  .sentence p { display: grid; gap: .55rem; line-height: 1.4; }
  .sentence .w { display: none; }
  .sentence .m { display: block; font-size: .9rem; color: var(--muted); }
  .sentence .seg { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); align-items: center; white-space: normal; }
  .sentence .seg-who { grid-template-columns: 5.2rem minmax(0, 1fr) minmax(0, 7rem); gap: .5rem; }
  .sentence select, .sentence input, .sentence .seg-who input { width: 100%; max-width: none; min-height: 2.75rem; }
  .sentence-go { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; margin-top: .85rem; }
  .sentence button { margin: 0; width: 100%; min-height: 2.9rem; }
}
@media (min-width: 601px) {
  .sentence select, .sentence input { height: 1.75em; vertical-align: baseline; line-height: 1.2; }
  /* own chevron: the native one sits at a different distance in every browser */
  .sentence select { appearance: none; -webkit-appearance: none; cursor: pointer; padding: 0 1.05em 0 .1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23191c1f' stroke-width='1.6'/%3E%3C/svg%3E") right .2em center / .6em no-repeat; }
  /* the sentence is the filter; the button stands beside the whole block, not in its flow */
  .sentence { display: flex; align-items: center; gap: 1rem 2.5rem; }
  .sentence p { flex: 0 1 auto; }
  .sentence-go { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
    padding-left: 2.5rem; border-left: 2px solid var(--grey); align-self: stretch; justify-content: center; }
  .sentence button { margin: 0; }
  .sentence-go a { margin: 0; }
}

.part-text { margin: .1rem 0 .8rem; font-size: .95rem; max-width: 68ch; }
.part-preview { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: .15rem; }
.parts-summary li { align-items: start; }

/* ---- portal ------------------------------------------------------------------------- */
.brand { font-size: 1.25rem; font-stretch: 85%; letter-spacing: -.01em; }
.brand b { font-weight: 800; }
/* nav links stretch to the hairline so the active underline sits on it */
.top-inner { padding-bottom: 0; align-items: stretch; }
.brand { align-self: center; padding-bottom: .9rem; }
.portal-nav { display: flex; gap: 0 1.3rem; flex-wrap: wrap; align-items: stretch; }
.portal-nav a { display: flex; align-items: center; margin: 0; padding: .2rem 0 .9rem; font-weight: 650; border-bottom: 3px solid transparent; }
.portal-nav a:hover, .portal-nav a[aria-current] { border-bottom-color: #fff; }
/* planned sections: lighter weight and a dashed underline – not dimmed, so they keep contrast */
.portal-nav a.soon { font-weight: 400; }
.portal-nav a.soon > :first-child { }
.portal-nav a.soon { text-decoration: underline dashed 1px rgba(255,255,255,.65); text-underline-offset: .3em; }
/* "Data a API" is a utility, not a section */
.portal-nav a.util { margin-left: .4rem; padding-left: 1.3rem; border-left: 1px solid rgba(255,255,255,.4); font-weight: 400; }
.portal-nav a.util[aria-current], .portal-nav a.util:hover { border-bottom-color: #fff; }

/* section tabs on the band's lower edge, the active one merges into the page */
.sub-band { background: var(--red); }
.sub-nav { display: flex; gap: .3rem; overflow-x: auto; }
.sub-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .9rem .55rem;
  border-radius: 4px 4px 0 0; white-space: nowrap; }
.sub-nav a:hover { background: rgba(255,255,255,.14); }
.sub-nav a[aria-current] { background: #fff; color: var(--ink); }
.sub-band + main { padding-top: 2rem; }
.band-section .wrap { padding-bottom: 1.4rem; }

/* three band sizes: portal home, portal page / planned section, inside a section */
.band-portal h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); max-width: 16ch; }
.band-portal .band-lead { font-size: 1.15rem; max-width: 52ch; }
.band-portal .band-lead.small { font-size: 1rem; margin-top: .9rem; }
.band-page h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 26ch; }
.band-section h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.band-section .no-big { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.independent { margin: 1.4rem 0 0; font-size: .9rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.35); max-width: 52ch; }

/* home: an index of the questions the portal answers */
.index { margin: 3rem 0 4rem; }
.index-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: .5rem 3rem;
  padding: 0; }
.index-row + .index-row { margin-top: clamp(3.5rem, 8vw, 5.5rem); }  /* space, not rules, between sections */
.index-row h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; font-stretch: 88%; letter-spacing: -.02em; }
.index-row h2 a { color: var(--ink); text-decoration: none; }
.index-row h2 a:hover { color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.index-row.planned h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.index-row.planned h2 a { color: var(--muted); text-decoration: none; }
.index-row.planned h2 a:hover { color: var(--ink); text-decoration: underline; }
.index-row.planned a { color: var(--ink-2); }
.index-meta p { margin: 0 0 .4rem; color: var(--ink-2); }
.index-name { font-weight: 650; color: var(--ink) !important; }
.index-name .muted { font-weight: 400; }
.index-latest { grid-column: 1 / -1; margin-top: .6rem; }
.index-sub { font-weight: 650; margin: 0 0 .4rem; }
.rows-compact .row { padding: .8rem .9rem; }
.rows-compact .row-text { -webkit-line-clamp: 1; }
.ask { max-width: 64ch; margin-top: 2.4rem; }
.ask h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.ask-q { font-size: 1.35rem; font-weight: 650; margin: 0 0 .4rem; }

/* planned section page */
.planned-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.planned-page h2 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.planned-page h2:first-child { margin-top: 0; }
.links { padding-left: 1.1rem; line-height: 1.9; margin: 0; }
.planned-side { border-top: 3px solid var(--ink); padding-top: .8rem; }
.examples { list-style: none; padding: 0; margin: 0; }
.examples li { font-size: 1.15rem; font-weight: 600; padding: .6rem 0; border-bottom: 1px solid var(--grey); }

.prose.wide { max-width: none; }
.catalog td { vertical-align: top; }
.catalog .planned td { color: var(--muted); }
pre { white-space: pre-wrap; word-break: break-all; }
.key { display: inline-block; width: .75rem; height: .75rem; margin-right: .4rem; vertical-align: -.05em; border-radius: 2px; }
.key-zmo { background: var(--ink); box-shadow: 0 0 0 1px #fff; }
.key-rmo { background: var(--grey); box-shadow: inset 0 0 0 1px var(--field); }
.foot { display: grid; gap: .3rem; }
.foot-brand { font-size: 1.15rem; font-stretch: 85%; margin: 0 0 .3rem; }
.foot-brand b { font-weight: 800; }

@media (max-width: 920px) {
  .index-row, .planned-page { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hide-m { display: none; }
  .top-inner { flex-direction: column; align-items: stretch; gap: .2rem; padding-top: .7rem; }
  .brand { padding-bottom: .2rem; align-self: flex-start; }
  .top .portal-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 1.1rem; font-size: .95rem;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 1.5rem; }
  .top .portal-nav::-webkit-scrollbar { display: none; }
  .top .portal-nav a { white-space: nowrap; padding-bottom: .7rem; margin: 0; flex: none; }
  .top .portal-nav a.util { padding-left: 1.1rem; margin-left: 0; }
  .sub-nav { gap: 0; margin-inline: -.55rem; }
  .sub-nav a { font-size: .9rem; padding: .45rem .55rem .5rem; }
  .band-section .band-lead { font-size: .95rem; }
}

/* ---- round 2 fixes ---- */
/* the strip is only as wide as its tiles, so the notch (computed from 100%) lands right */
.seats-l { width: fit-content; max-width: 100%; }
/* links in data tables are the page's main actions */
.catalog a { color: var(--red-ink); text-decoration: underline; }
.catalog a:hover { text-decoration-thickness: 2px; }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.band-section h1 { max-width: 32ch; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band-page h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.brand { align-self: flex-end; padding-bottom: 1.05rem; }
.portal-nav a.soon[aria-current] { text-decoration: none; }
.util-m { display: none; }
.examples li { font-size: 1.05rem; font-weight: 400; }
@supports (field-sizing: content) {
  @media (min-width: 601px) { .sentence select, .sentence input { field-sizing: content; min-width: 4em; } }
}
@media (max-width: 600px) {
  .top-inner { display: grid; grid-template-columns: 1fr auto; }
  .brand { align-self: center; padding-bottom: .2rem; }
  .util-m { display: block; align-self: center; color: #fff; font-weight: 400; font-size: .92rem; padding: .3rem 0 .2rem; }
  .top .portal-nav { grid-column: 1 / -1; }
  .top .portal-nav a.util { display: none; }
  .switch { display: inline-flex; flex-direction: row; }
  .switch a + a { border-top: 0; }
  .switch a { padding: .45rem .7rem; font-size: .9rem; }
}
.ledger.catalog td a { color: var(--red-ink); text-decoration: underline; }
.top .portal-nav a { margin: 0; }

/* ---- round 3: header, construction, footer, about ---------------------------------------- */
/* header without hairlines: the active page is a solid white bar, a section under
   construction carries a striped bar like barrier tape */
.top-inner { border-bottom: 0; padding-top: .9rem; }
.brand { align-self: center; padding-bottom: .9rem; }
.top .portal-nav a { border-bottom: 0; padding: .35rem 0 .75rem; position: relative; text-decoration: none; }
.top .portal-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 3px; }
.top .portal-nav a[aria-current]::after, .top .portal-nav a:hover::after { background: #fff; }
.top .portal-nav a.soon::after { background: repeating-linear-gradient(135deg, #fff 0 4px, transparent 4px 8px); height: 4px; opacity: .9; }
.top .portal-nav a.soon[aria-current]::after { background: repeating-linear-gradient(135deg, #fff 0 4px, transparent 4px 8px); opacity: 1; height: 5px; }
.top .portal-nav a.util { border-left: 0; padding-left: 0; margin-left: 1.2rem; font-weight: 400; }
.band { border-top: 1px solid rgba(255,255,255,.22); }
.sub-band { border-top: 0; }

/* barrier tape: the Czech red-and-white "zábrana", for parts under construction */
.tape { margin: 0 0 2rem; padding: 12px; background: repeating-linear-gradient(135deg, var(--red) 0 16px, #fff 16px 32px); }
.tape p { margin: 0; background: #fff; padding: .7rem 1rem; font-size: 1.02rem; }
.tape-label { display: inline-block; font-size: .78rem; font-weight: 650; color: var(--ink); padding: .05rem .5rem .05rem 1.6rem;
  background: linear-gradient(#fff, #fff) 1.2rem 0 / 100% 100% no-repeat,
              repeating-linear-gradient(135deg, var(--red) 0 4px, #fff 4px 8px); border: 1px solid var(--red); border-radius: 2px; vertical-align: .15em; }

/* who is behind it – right under the hero, plain and specific */
.about { max-width: 72ch; margin: .4rem 0 2.6rem; padding-left: 1.1rem; border-left: 4px solid var(--ink); }
.about h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.about p { margin: 0 0 .5rem; color: var(--ink-2); }

/* footer sits at the bottom of short pages, no white strip below it */
html { background: var(--grey); }
body { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
body > main { flex: 1 0 auto; width: 100%; }
body > footer { flex-shrink: 0; }

.search-plain { margin: 1.2rem 0; max-width: 640px; }
.search-plain input[type=search] { color: var(--ink); border-bottom-color: var(--ink); }
.search-plain input[type=search]::placeholder { color: var(--muted); }
.search-plain button { background: var(--ink); color: #fff; }

@media (max-width: 600px) {
  .top-inner { padding-top: .6rem; }
  .top .portal-nav a.util { display: none; }
}
.top-inner { align-items: center; }
.brand { padding: .35rem 0 .75rem; align-self: auto; }
.band { border-top: 0; }
@media (max-width: 600px) { .top-inner { align-items: stretch; } .brand { padding: .2rem 0; } }
@media (max-width: 600px) { .parts-summary.b-zmo { grid-template-columns: minmax(0, 1fr); } .parts-summary.b-zmo li { gap: .3rem; } }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand img { width: 1.75em; height: 1.75em; flex: none; }
.foot-brand { display: flex; align-items: center; gap: .5rem; }
.foot-brand img { width: 1.6em; height: 1.6em; }
/* attendance */
.term-pick { margin: 0 0 .6rem; font-size: 1rem; }
.term-pick a, .term-pick b { margin-right: .7rem; }
.year-no.small { font-size: 1.6rem; margin: 1.8rem 0 .6rem; }
.rank { max-width: 62rem; }
.rank td { vertical-align: middle; }
.rank-bar-h { width: 40%; }
.rank-bar { display: block; height: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); border-radius: 2px; overflow: hidden; min-width: 6rem; }
.rank-bar i { display: block; height: 100%; background: var(--ink); }
.att { margin: 0 0 1rem; }
.att-h { margin: 0 0 .35rem; font-size: .95rem; }
.att-tiles { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; max-width: 20rem; }
.att-tiles i, .att-legend i { display: block; width: 10px; height: 10px; border-radius: 1.5px; }
.att-tiles .a-present, .att-legend .a-present { background: var(--ink); }
.att-tiles .a-excused, .att-legend .a-excused { background: repeating-linear-gradient(135deg, var(--field) 0 1.5px, #fff 1.5px 3px); box-shadow: inset 0 0 0 1px var(--field); }
.att-tiles .a-absent, .att-legend .a-absent { background: #fff; box-shadow: inset 0 0 0 1.5px var(--red); }

.att-legend { font-size: .8rem; margin: .2rem 0 .6rem; }
@media (max-width: 600px) { .rank-bar-h, .rank-bar-c { display: none; } }
.foot-links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
/* maps */
.map { width: 100%; background: var(--grey); border: 1px solid var(--rule); }
.map-all { height: min(72vh, 680px); margin: 1.2rem 0 .6rem; }
.map-detail { height: 320px; max-width: 68ch; margin: .4rem 0 .6rem; }
.map:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.place-list { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; font-size: .95rem; max-width: 68ch; }
.pk { display: inline-block; width: 12px; height: 12px; margin-right: .4rem; vertical-align: -1px; }
.pk-parcel { background: rgba(222, 9, 28, .3); box-shadow: inset 0 0 0 1.5px var(--red); }
.pk-address { background: var(--red); border-radius: 50%; box-shadow: 0 0 0 2px #fff inset; border: 1px solid var(--red); }
.pk-street { height: 4px; vertical-align: 3px; background: var(--red); border-radius: 2px; width: 16px; }
.map-legend { margin: 0 0 .3rem; }
.map-legend .pk { margin-right: .1rem; }
.street-index { list-style: none; padding: 0; margin: 0; columns: 3 14rem; column-gap: 2rem; }
.street-index li { padding: .2rem 0; break-inside: avoid; }
.map-pop { font: inherit; font-size: .9rem; line-height: 1.35; color: var(--ink); max-height: min(15rem, 40vh); overflow-y: auto; overscroll-behavior: contain; padding-right: .3rem; }
.map-pop p { margin: 0 0 .45rem; }
.map-pop-h { font-weight: 700; }
.map-pop a { color: var(--ink); }
.map-pop small { color: var(--muted); white-space: nowrap; }
.map-pop-more { color: var(--muted); }
.maplibregl-popup-content { border-radius: 3px; padding: .7rem .9rem; font-family: inherit; }
@media (max-width: 600px) { .map-all { height: 62vh; } .street-index { columns: 2; column-gap: 1rem; } }

/* ===== section: úřední deska (keep together at the end of the file) ===== */
.deska-switches { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .4rem; }
.deska-switches .switch { margin-bottom: .9rem; }
.hint { position: relative; align-self: flex-start; margin: .15rem 0 .9rem -.4rem; }
.hint summary { list-style: none; cursor: pointer; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--ink-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.hint summary::-webkit-details-marker { display: none; }
.hint summary:hover, .hint[open] summary { border-color: var(--ink); color: var(--ink); }
.hint summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.hint-body { position: absolute; z-index: 5; top: 2.1rem; left: 0; width: min(26rem, calc(100vw - 2.5rem)); padding: .8rem 1rem; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.12); font-size: .92rem; line-height: 1.45; }
.hint-body p { margin: 0 0 .5rem; }
.hint-body p:last-child { margin: 0; }
@media (max-width: 40rem) { .deska-switches { position: relative; } .hint { position: static; } .hint-body { left: 0; right: 0; width: auto; top: calc(100% - .6rem); } }
.deska-kinds { margin: 0 0 .4rem; font-size: .95rem; line-height: 2; max-width: 80ch; }
.deska-kinds a { margin-right: .9rem; white-space: nowrap; color: var(--ink-2); }
.deska-kinds a[aria-current] { color: var(--ink); font-weight: 650; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.deska-kinds .muted { font-size: .85rem; }
.notices .row { grid-template-columns: 6.5rem minmax(0, 1fr) 11rem; }
.notices h3 { font-size: 1.05rem; font-weight: 650; line-height: 1.35; }
.notice-day { display: block; font-weight: 700; font-size: 1.05rem; font-stretch: 90%; white-space: nowrap; }
.notice-year { display: block; font-size: .85rem; color: var(--muted); }
.notice-board { display: block; margin-top: .35rem; font-size: .8rem; color: var(--ink-2); line-height: 1.25; }
.notices h3 { overflow-wrap: anywhere; }
.notice-files { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .92rem; line-height: 1.45; }
.notice-files li { overflow-wrap: anywhere; margin: 0 0 .3rem; }
.file-ext { font-size: .75rem; font-weight: 650; color: var(--muted); margin-left: .25rem; }
.notice-ref { margin: .15rem 0 0; font-size: .85rem; color: var(--ink-2); overflow-wrap: anywhere; line-height: 1.35; }
.notice-ref span { display: block; color: var(--muted); font-size: .78rem; }
.deska-about { margin-top: 2.6rem; padding-top: .2rem; border-top: 3px solid var(--ink); }
.deska-about h2 { font-size: 1.15rem; margin: .8rem 0 .4rem; }
@media (max-width: 600px) {
  .notices .row { grid-template-columns: minmax(0, 1fr); }
  .notice-ref span { display: inline; }
  .notice-day, .notice-year { display: inline; }
  .notice-board { display: inline; margin: 0 0 0 .5rem; }
}
/* pro lidi: cards, the notice page, the reviewers' preview */
.card-row .row-text { display: block; overflow: visible; }
.card-body { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 1.1rem; align-items: start; align-content: start; }
.card-vis { width: 60px; height: 60px; display: grid; place-items: center; }
.card-vis-sign img { width: 52px; height: 52px; object-fit: contain; }
.card-vis-photo img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; display: block; }
.card-vis-icon { border-radius: 50%; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.card-row .row-meta .human { color: var(--red-ink); font-weight: 650; margin-right: .15rem; }
.card-row .row-text { margin-top: .45rem; }
.card-vis-raw { background: none; box-shadow: inset 0 0 0 1.5px var(--rule); color: var(--muted); }
.card-side { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.flip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem .35rem .55rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; font: inherit; font-size: .85rem; font-weight: 600; line-height: 1.2; color: var(--ink); cursor: pointer; white-space: nowrap; }
.flip svg { flex: none; transition: transform .45s ease; }
.flip:hover, .is-flipped .flip { background: var(--ink); color: #fff; }
.is-flipped .flip svg { transform: rotate(180deg); }
.flip .flip-to-front, .is-flipped .flip .flip-to-back { display: none; }
.is-flipped .flip .flip-to-front { display: inline; }
.flip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.card-flip { display: grid; }
.card-flip.ready { perspective: 1800px; }
.card-flip.ready > .card-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-flip.animate > .card-face { transition: transform .55s cubic-bezier(.3, .7, .2, 1); }
.card-flip.ready > .card-back { transform: rotateY(180deg); }
.card-flip.flipped > .card-front { transform: rotateY(-180deg); }
.card-flip.flipped > .card-back { transform: rotateY(0deg); }
.card-flip.ready:not(.flipped) > .card-back, .card-flip.flipped > .card-front { pointer-events: none; }   /* the hidden face still sits on top for hit-testing */
@media (prefers-reduced-motion: reduce) { .card-flip.animate > .card-face { transition: none; } }
@media (max-width: 600px) {
  .card-body .card-text { display: contents; }
  .card-body > .card-vis { grid-row: 1 / span 2; }
  .card-body h3, .card-body .row-meta { grid-column: 2; }
  .card-body .card-text > :not(h3):not(.row-meta) { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .card-body { grid-template-columns: 44px minmax(0, 1fr); column-gap: .8rem; } .card-vis { width: 44px; height: 44px; } .card-vis-sign img { width: 40px; height: 40px; } .card-vis-photo img { width: 44px; height: 44px; } .card-vis-icon svg { width: 22px; height: 22px; } }
.human-tag { color: var(--red-ink); font-weight: 650; }
.official-title { margin: .55rem 0 0; font-size: .85rem; color: var(--muted); max-width: 68ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deadline { margin: .5rem 0 0; font-size: .95rem; color: var(--ink); }
.deadline b { color: var(--red-ink); }
.digest .lead-text { font-size: 1.15rem; line-height: 1.55; max-width: 62ch; margin: 0 0 1.4rem; }
.act { border-left: 6px solid var(--red); background: var(--grey); padding: .9rem 1.2rem; max-width: 62ch; margin: 0 0 1.6rem; }
.act-h { font-size: 1.1rem; margin: 0 0 .3rem; }
.act p { margin: 0; color: var(--ink-2); }
.digest-facts { max-width: 62rem; display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .45rem 1.5rem; margin: 0 0 1.8rem; }
.digest-facts dt { margin: 0; }
.digest-facts dd { margin: 0; }
@media (max-width: 600px) { .digest-facts { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .digest-facts dd { margin-bottom: .5rem; } }
.signs { list-style: none; padding: 0; margin: .4rem 0 1.6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem 1.4rem; }
.signs li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .8rem; align-items: start; font-size: .95rem; }
.signs img { width: 64px; height: 64px; object-fit: contain; }
.sign-code { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--rule); font-weight: 700; }
.sign-change { font-size: .85rem; font-weight: 650; }
.plate { display: grid; place-items: center; width: 64px; min-height: 40px; padding: 3px; border: 2px solid #111; border-radius: 3px; background: #fff; font: 700 .55rem/1.15 system-ui, sans-serif; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
.sign-nova .sign-change { color: var(--pro); }
.sign-odstranit .sign-change { color: var(--red-ink); }
.sign-odstranit img { opacity: .55; filter: grayscale(1); }
.sign-zustava .sign-change { color: var(--muted); }
.sign-vymena .sign-change { color: var(--abst); }
.plate-blank { background: repeating-linear-gradient(0deg, #fff 0 9px, #e8ecf0 9px 11px); }
.pic { margin: 0 0 1.6rem; max-width: 62rem; }
.pic img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }
.pic figcaption { font-size: .9rem; margin-top: .4rem; color: var(--ink-2); }
.ortho-box { position: relative; width: 100%; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .6rem; }
.parking img { background: #fff; padding: .6rem; max-width: 46rem; }
.dmarks { list-style: none; padding: 0; margin: .3rem 0 .4rem; display: grid; gap: .35rem; }
.dmarks li { display: flex; gap: .55rem; align-items: baseline; font-size: .98rem; color: var(--ink); }
.dm-n { flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem; background: var(--ink-2); }
.dm-nove .dm-n { background: var(--pro); }
.dm-zrusene .dm-n { background: var(--red); }
.dm-misto .dm-n { background: var(--muted); }
.ortho-box img, .ortho-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ortho-box svg circle { fill: var(--red); stroke: #fff; stroke-width: 4; }
.ortho-box svg .ln { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.ortho-box svg .ar { fill: rgba(222, 9, 28, .25); stroke: var(--red); stroke-width: 4; }
.budget-fig { margin: .4rem 0 1.8rem; max-width: 62rem; }
.budget-axis, .budget li { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; }
.budget-axis { font-size: .8rem; font-weight: 650; color: var(--muted); }
.budget-axis span:first-child { grid-column: 2; text-align: right; padding-right: .6rem; }
.budget-axis span:last-child { grid-column: 3; padding-left: .6rem; }
.budget { list-style: none; padding: 0; margin: .2rem 0 .5rem; }
.budget li { align-items: center; min-height: 2.9rem; font-size: .95rem; }
.b-label { padding-right: 1rem; line-height: 1.3; }
.b-side { display: flex; align-items: center; gap: .45rem; align-self: stretch; }
.b-neg { justify-content: flex-end; border-right: 2px solid var(--ink); padding-right: 0; }
.b-pos { padding-left: 0; }
.b-bar { height: 16px; width: calc(var(--w) * .82); min-width: 3px; }
.b-pos .b-bar { background: var(--pro); border-radius: 0 2px 2px 0; }
.b-neg .b-bar { background: var(--red); border-radius: 2px 0 0 2px; }
.b-val { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .85rem; font-weight: 650; }
.b-in .b-val { color: var(--pro); }
.b-out .b-val { color: var(--red-ink); }
.budget-fig figcaption { font-size: .85rem; margin-top: .3rem; }
@media (max-width: 600px) {
  .budget li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: .3rem 0; }
  .budget-axis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .budget-axis span:first-child { grid-column: 1; }
  .budget-axis span:last-child { grid-column: 2; }
  .b-label { grid-column: 1 / -1; padding: 0 0 .2rem; }
}
.original { margin: 2.4rem 0 1rem; max-width: 62rem; padding-top: .2rem; border-top: 3px solid var(--ink); }
.original h2 { font-size: 1.15rem; margin: .8rem 0 .2rem; }
.original > .muted { margin: 0 0 .6rem; font-size: .92rem; }
.original summary { cursor: pointer; font-weight: 650; padding: .6rem 0; }
.ai-note { margin-top: 1.6rem; }
.digest-top { margin: 0 0 .6rem; font-size: .92rem; color: var(--muted); }
.digest-top .human-tag { margin: 0 .3rem 0 0; }
.drafts { list-style: none; padding: 0; margin: 0; }
.draft { border-top: 6px solid var(--ink); padding: 1.4rem 0 3rem; }
.draft-head { margin: 0 0 .3rem; }
.draft-title { font-size: 1.6rem; margin: 0 0 1rem; }
.draft-problems { background: #fff4e5; border-left: 6px solid var(--abst-tile); padding: .7rem 1rem; margin: 0 0 1rem; max-width: 62ch; }
.draft-problems ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.draft-review { background: var(--grey); padding: .8rem 1rem; margin: 0 0 1.4rem; max-width: 62ch; font-size: .95rem; }
.draft-review p { margin: 0 0 .4rem; }
@media (max-width: 600px) {
}
/* reviewers' preview of cards */
.review-bar { background: #fff4e5; border-bottom: 3px solid var(--abst-tile); font-size: .95rem; }
.review-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; padding-top: .6rem; padding-bottom: .6rem; }
.review-inner nav { display: flex; gap: 1rem; margin-left: auto; }
.review-bar button, .draft-actions button, .draft-actions .btn { font: inherit; font-size: .9rem; font-weight: 650; padding: .35rem .8rem;
  border: 2px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.draft-actions .btn { background: var(--ink); color: #fff; }
.review-bar button:hover, .draft-actions button:hover { background: var(--ink); color: #fff; }
.review-list { margin: 0 0 2rem; }
.review-label { font-size: .85rem; font-weight: 650; color: var(--abst); margin: 0 0 .4rem; }
.review-list .rows { margin-bottom: 1.6rem; }
.review-notes { margin: 2rem 0 1rem; background: #fff4e5; border-left: 6px solid var(--abst-tile); padding: .7rem 1.1rem; max-width: 62ch; font-size: .95rem; }
.review-notes summary { font-weight: 650; cursor: pointer; }
.review-notes p, .review-notes ul { margin: .5rem 0 0; }
.draft-list .row { grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: start; }
.draft-actions { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; }
.draft-flag { margin: .4rem 0 0; font-size: .9rem; color: var(--abst); }
@media (max-width: 600px) { .draft-actions { flex-direction: row; } .review-inner nav { margin-left: 0; } }
/* ===== end úřední deska ===== */

/* spending by chapter: donut + legend with every value as text */
.spend-fig { margin: .4rem 0 1.8rem; display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 28rem); gap: 1rem 2rem; align-items: center; }
.spend-fig svg { width: 100%; height: auto; }
.spend-fig .spend-total { font-size: 17px; font-weight: 750; fill: var(--ink); }
.spend-fig .spend-sub { font-size: 11px; fill: var(--muted); }
.spend-legend { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.spend-legend li { display: grid; grid-template-columns: .8rem minmax(0, 1fr) auto 3.2rem; gap: .6rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid #e6e6e3; }
.spend-legend i { width: .8rem; height: .8rem; border-radius: 2px; }
.spend-legend .s-val { font-variant-numeric: tabular-nums; text-align: right; }
.spend-legend .s-pct { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.spend-fig figcaption { grid-column: 1 / -1; font-size: .85rem; }
@media (max-width: 40rem) { .spend-fig { grid-template-columns: 1fr; } .spend-fig svg { max-width: 14rem; margin: 0 auto; } }
