/* 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: .4rem 0 2rem; display: grid; gap: .5rem; }
.parts-summary li { display: grid; grid-template-columns: minmax(0, 16rem) auto; gap: 1rem; align-items: center; font-size: .92rem; }
.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; position: sticky; top: 1rem; }
.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; }
  .parts-summary li { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .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:nth-child(2) { grid-column: 1 / -1; }
  .files { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.party { font-size: 1.02rem; font-weight: 650; margin: 1.4rem 0 .3rem; }
.party .muted { font-weight: 400; font-size: .9rem; }
.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 .seg-go { grid-template-columns: 1fr auto; gap: 1rem; margin-top: .3rem; }
  .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; }
}

.part-text { margin: .1rem 0 .8rem; font-size: .95rem; max-width: 68ch; }
.part-preview { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; 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: 1rem 0 3rem; }
.index-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: .5rem 3rem;
  padding: 1.6rem 0 1.7rem; border-top: 3px solid var(--ink); }
.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: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; text-decoration-color: var(--red); }
.index-row h2 a:hover { color: var(--red-ink); }
.index-row.planned { border-top-color: var(--rule); }
.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 a { font-size: .9rem; padding: .45rem .7rem .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; } }
