/* KUM viewer: minimal, typographic. Three text styles only (Figma "KUM Min"):
     --t-title  30 / Medium  the dossier title
     --t-text   17 / Regular article text, section headings, the city name
     --t-small  14 / Regular everything in the interface
   Emphasis comes from colour (ink / muted / faint) and thin lines, not from weight. */
@font-face {
  font-family: "Hanken Grotesk"; src: url("HankenGrotesk.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --text: #3e3e41;
  --muted: #6b6b70;
  --faint: #9a9aa0;
  --line: #e3e1dc;
  --field: #d8d5cf;
  --hover: #f1efe9;
  --src-bg: #f8f7f4;     /* "Izvori" sections: a very light warm gray */
  --mark: #ffe58a;
  --mark-on: #ffb547;
  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --top: 64px;
  --side: 300px;
  --gut: 24px;
  --rail: 216px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 24px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 14px/1.4 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code { font: 0.86em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--hover);
  padding: 0.1em 0.3em; overflow-wrap: anywhere; }
mark { background: var(--mark); color: inherit; padding: 0 1px; }
mark.on { background: var(--mark-on); outline: 2px solid var(--mark-on); }
.muted { color: var(--muted); }
.quiet { color: var(--muted); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round;
  stroke-linejoin: round; flex: 0 0 auto; }
.logo { display: block; width: 54px; height: 18px; fill: var(--ink); }

/* ---------- top bar: logo · date | search | Čitanje · Kontakt · Odjava */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 30;
  display: flex; align-items: center; padding: 0 var(--gut);
  background: linear-gradient(var(--ink), var(--ink)) center bottom / calc(100% - 2 * var(--gut)) 1.5px no-repeat, var(--bg);
}
.brand-wrap { flex: 0 0 auto; width: calc(var(--side) + 72px); display: flex; align-items: center; gap: 14px; }
.updated { color: var(--faint); white-space: nowrap; }
.top-search { position: relative; flex: 0 1 440px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--field); padding: 0 0 6px; color: var(--faint); }
.top-search:focus-within { border-bottom-color: var(--ink); color: var(--ink); }
.top-search input { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0;
  outline: none; padding: 0; }
.top-search input::placeholder { color: var(--faint); }
.top-search input::-webkit-search-cancel-button { display: none; }
.key { font: inherit; color: var(--faint); }
.search-cancel { display: none; }
.top-links { margin-left: auto; padding-left: 24px; display: flex; align-items: center; gap: 32px; white-space: nowrap; }
body.home-izvori .top-link[href="/"] { text-decoration: underline; text-underline-offset: 3px; }
.top-act { display: inline-flex; align-items: center; gap: 6px; }
.top-link:hover, .top-act:hover { text-decoration: underline; text-underline-offset: 3px; }
.search-btn { display: none; }
.icon-btn { display: none; width: 32px; height: 32px; margin-left: -6px; place-items: center; }
.i-menu { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.i-menu .i-close { display: none; }
body.nav-open .i-menu .i-open { display: none; }
body.nav-open .i-menu .i-close { display: inline; }

/* ---------- layout: sidebar | article | rail */
.layout { display: flex; padding: var(--top) var(--gut) 0; min-height: 100vh; }
.sidebar {
  position: sticky; top: var(--top); height: calc(100vh - var(--top)); width: var(--side); flex: 0 0 var(--side);
  display: flex; flex-direction: column; padding-right: 24px; border-right: 1px solid var(--line);
}
.side-head { display: flex; flex-direction: column; gap: 20px; padding: 24px 0 12px; }
.side-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 32px; }
.side-foot, .scrim, .print-head, .facts-inline, .read-bar, .read-ctx, .read-exit { display: none; }
main { flex: 1; min-width: 0; padding: 40px 0 120px 72px; }
main > * { max-width: 640px; }
body.wide main > * { max-width: 980px; }
.rail { flex: 0 0 var(--rail); width: var(--rail); padding: 40px 0 0 16px; }
.rail-in { position: sticky; top: calc(var(--top) + 40px); max-height: calc(100vh - var(--top) - 56px); overflow-y: auto;
  scrollbar-width: none; }

/* city: a dropdown, many cities will come */
.city-select { position: relative; }
.cs-btn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 0 8px; font-size: 17px; line-height: 1.6;
  border-bottom: 1px solid var(--field); text-align: left; }
.cs-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-btn .chev { width: 14px; height: 14px; stroke-width: 1.4; transition: transform .15s; }
.city-select.open .cs-btn { border-bottom: 1.5px solid var(--ink); padding-bottom: 7.5px; }
.city-select.open .chev { transform: rotate(180deg); }
.cs-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: min(420px, 60vh);
  overflow-y: auto; background: var(--bg); border: 1px solid var(--ink); padding: 12px 6px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.cs-filter { width: calc(100% - 20px); margin: 0 10px 8px; font: inherit; color: var(--ink); background: none; border: 0;
  border-bottom: 1px solid var(--field); padding: 0 0 8px; outline: none; }
.cs-label { margin: 0; padding: 4px 10px; color: var(--muted); }
.cs-menu a { display: flex; gap: 8px; padding: 7px 10px; }
.cs-menu a span { flex: 1; }
.cs-menu a small { font-size: 14px; color: var(--faint); }
.cs-menu a:hover { background: var(--hover); }
.cs-menu a.cur { box-shadow: inset 2px 0 0 var(--ink); }

/* type tabs: Tragovi · Firme · Organi */
.type-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--line); }
.type-tabs button { padding: 0 0 8px; color: var(--muted); margin-bottom: -1px; border-bottom: 1.5px solid transparent;
  white-space: nowrap; }
.type-tabs button small { font-size: 14px; color: var(--faint); margin-left: 2px; }
.type-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.type-tabs button:hover { color: var(--ink); }

/* the list; a dot marks a dossier this browser has not opened yet */
.side-items { list-style: none; margin: 0; padding: 0; }
.side-items a { position: relative; display: block; padding: 9px 8px 9px 14px; }
.side-items a span { display: block; color: var(--ink); }
.side-items a small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.side-items li:not(.read) a::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--ink); }
.side-items li.read a span { color: var(--muted); }
.side-items li.read a small { color: var(--faint); }
.side-items li.cur a { box-shadow: inset 2px 0 0 var(--ink); }
.side-items li.cur a span { color: var(--ink); }
.side-items li.cur a small { color: var(--muted); }
.side-items a:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* right rail: facts, contents, PDF */
.rail-h { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.rail-facts { margin-bottom: 40px; }
.fact { display: flex; gap: 0; line-height: 1.4; margin-bottom: 6px; }
.fk { flex: 0 0 80px; color: var(--muted); }
.fk:empty { display: none; }
.fv { flex: 1; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.fv sup.fnref { display: none; }
.rail-toc { list-style: none; margin: 0 0 24px; padding: 0; }
.rail-toc a { display: flex; gap: 10px; padding: 3px 0; color: var(--muted); }
.rail-toc a::before { content: "—"; color: var(--line); }
.rail-toc a:hover { color: var(--ink); }
.rail-toc a.on { color: var(--ink); }
.rail-toc a.on::before { color: var(--ink); }
.pdf-btn { display: inline-flex; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.rail-pdf { margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 10px 14px; background: var(--ink); color: var(--bg); text-align: center;
}

/* ---------- the article */
.md { font-size: 17px; line-height: 1.6; color: var(--text); overflow-wrap: break-word; }
.md h1 { font-size: 30px; line-height: 1.16; font-weight: 500; letter-spacing: -0.014em; color: var(--ink); margin: 0 0 14px; }
.md h2, .md h3 { font-size: 17px; line-height: 1.6; font-weight: 400; color: var(--ink); }
.md h2 { margin: 48px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.md h3 { margin: 28px 0 8px; }
.md h4, .md h5, .md h6 { font-size: 14px; font-weight: 400; color: var(--muted); margin: 20px 0 6px; }
.md .anchor { display: none; }
.md p, .md ul, .md ol { margin: 0 0 14px; }
.md ul { list-style: none; padding-left: 30px; }
.md ul > li { position: relative; }
.md ul > li::before { content: "—"; position: absolute; left: -30px; color: var(--faint); }
.md ol { padding-left: 24px; }
.md li { margin: 6px 0; }
.md li > ul, .md li > ol { margin: 6px 0; }
.md strong, .md b { font-weight: 500; color: var(--ink); }
.md em, .md i { font-style: normal; color: var(--muted); }  /* no italic: a fourth style */
.md a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.md a:hover { text-decoration-color: var(--ink); }
.md a.ext::after { content: "↗"; margin-left: 2px; color: var(--faint); text-decoration: none; display: inline-block; }
.md blockquote { margin: 0 0 18px; padding-left: 16px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.5;
  color: var(--muted); }
.md blockquote.lead-note { padding: 0; border: 0; margin: 0 0 10px; }
.md blockquote.lead-note strong { font-weight: 400; color: var(--muted); }
.md blockquote p:last-child { margin-bottom: 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0 14px; }
.md hr + p { font-size: 14px; color: var(--muted); }
.md pre { background: var(--hover); padding: 12px 14px; overflow-x: auto; font-size: 14px; }
.md pre code { background: none; padding: 0; }
.md a.codelink code { text-decoration: underline; }
.md sup.fnref { font-size: 14px; line-height: 0; vertical-align: baseline; margin-left: 2px; }
.md sup.fnref a { color: var(--faint); text-decoration: none; }
.md sup.fnref a:hover { color: var(--ink); }
.md ol.footnotes { font-size: 14px; line-height: 1.5; padding-left: 28px; overflow-wrap: anywhere; }
.md ol.footnotes li { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.md ol.footnotes li::marker { color: var(--faint); }
.md ol.footnotes li:target { background: var(--hover); }
/* "Izvori" sections (server.py wrap_sources): their own warm gray block */
.md .src-sec { background: var(--src-bg); border-radius: 12px; margin: 48px 0 24px; padding: 4px 24px 12px; }
.md .src-sec > h2 { margin-top: 0; border-top: 0; padding-top: 18px; }
.md .src-sec + .src-sec { margin-top: 16px; }
.md .src-sec > :last-child { margin-bottom: 8px; }
.md .src-sec ol.footnotes li:last-child { border-bottom: 0; }
.md ol.footnotes code { font-size: 12px; word-break: break-all; }
.md a.fnback { color: var(--faint); text-decoration: none; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.4; color: var(--ink); }
.md th, .md td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.md th { font-weight: 400; color: var(--muted); white-space: nowrap; border-bottom-color: var(--ink); }
.md td a { word-break: break-word; }
/* long tables: app.js folds everything after the 5th row behind a button */
.md .table-wrap.tw-collapsed tbody > tr:nth-child(n+6) { display: none; }
.md .table-wrap.tw-collapsed { margin-bottom: 0; }
.md .tw-more { display: block; margin: 4px 0 22px; padding: 8px 0; font: inherit; font-size: 14px; color: var(--ink);
  background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--field);
  text-underline-offset: 4px; }
.md .tw-more:hover { text-decoration-color: var(--ink); }
.md .task { color: var(--muted); }
.tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 0 0 8px; color: var(--muted); margin-bottom: -1px; border-bottom: 1.5px solid transparent; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.badge { color: var(--muted); white-space: nowrap; }

/* ---------- reading mode: only the text */
body.reading .topbar, body.reading .sidebar, body.reading .rail { display: none; }
body.reading .layout { padding-top: 0; }
body.reading main { padding: 110px 16px 120px; }
body.reading main > * { max-width: 680px; margin-left: auto; margin-right: auto; }
body.reading .read-bar { display: block; position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 31; }
body.reading .read-bar span { display: block; height: 100%; width: 0; background: var(--ink); }
body.reading .read-ctx { display: block; position: fixed; top: 22px; left: var(--gut); margin: 0; color: var(--faint); z-index: 31; }
body.reading .read-exit { display: inline-flex; align-items: center; gap: 6px; position: fixed; top: 20px; right: var(--gut); z-index: 31;
  background: var(--bg); padding: 2px 0 2px 8px; }
body.reading .read-exit:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- search, Kontakt, messages */
main > h1:first-child { font-size: 30px; line-height: 1.16; font-weight: 500; letter-spacing: -0.014em; margin: 0 0 20px; }
.search-form { margin-bottom: 24px; }
.search-form .row { display: flex; gap: 16px; align-items: flex-end; }
.search-form input[type=search] { flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--ink); background: none;
  border: 0; border-bottom: 1px solid var(--field); padding: 6px 0 8px; outline: none; }
.search-form input[type=search]:focus { border-bottom-color: var(--ink); }
.search-form select { font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--field);
  padding: 6px 0 8px; border-radius: 0; }
.search-form button, .login button { font: inherit; color: var(--bg); background: var(--ink); padding: 9px 18px; }
.search-form .kinds { flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; color: var(--muted); align-items: center; }
.chk { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.chk input { accent-color: var(--ink); margin: 0; }
.results { list-style: none; padding: 0; margin: 0; }
.rescount { margin: 0 0 4px; }
.res { padding: 16px 0; border-bottom: 1px solid var(--line); }
.res-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.res-h > a { font-size: 17px; line-height: 1.4; color: var(--ink); margin-right: 4px; }
.res-h > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.res .pill { color: var(--muted); }
.snip { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.snip mark { color: var(--ink); }
.help { color: var(--muted); max-width: 640px; }
.hlbar {
  position: fixed; right: var(--gut); bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--ink); padding: 4px 4px 4px 12px;
}
.hlbar span { margin-right: 6px; color: var(--muted); min-width: 56px; }
.hlbar button { width: 30px; height: 30px; }
.hlbar button:hover { background: var(--hover); }
.kontakt .lead { color: var(--ink); }
.kontakt .mail-btn { display: inline-block; padding: 10px 16px; background: var(--ink); color: var(--bg); text-decoration: none;
  overflow-wrap: anywhere; }

/* ---------- home: the sources KUM is built from (/) */
.hz { max-width: 980px; }
.hz-head { max-width: 680px; }
.hz-kicker { margin: 0 0 10px; color: var(--muted); }
.hz h1 { font-size: 30px; line-height: 1.16; font-weight: 500; letter-spacing: -0.014em; margin: 0 0 16px; }
.hz-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.hz-lead b { font-weight: 500; color: var(--ink); }
.hz-lead + .hz-lead { margin-top: 12px; }
.hz h2 { font-size: 17px; line-height: 1.6; font-weight: 400; margin: 0; }
.hz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0 10px;
  border-top: 1.5px solid var(--ink); padding-top: 16px; }
.hz-stat b, .src-num b { display: block; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.hz-stat b { font-size: 30px; line-height: 1.16; letter-spacing: -0.014em; margin-bottom: 6px; }
.hz-stat span { color: var(--muted); }
.hz-asof { margin: 0 0 56px; color: var(--faint); }
.hz-gap { height: 48px; }
.src-group { margin: 0 0 48px; }
.src-group > h2 { padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.src-list { list-style: none; margin: 0; padding: 0; }
.src { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.src h3 { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 400; color: var(--ink); }
.src-pub { margin: 0 0 8px; color: var(--muted); }
.src-what { margin: 0 0 8px; color: var(--text); line-height: 1.5; max-width: 600px; }
.src-link { color: var(--faint); }
.src-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.src-num { text-align: right; }
.src-num b { font-size: 17px; line-height: 1.5; }
.src-num span { color: var(--muted); }
.src-num small { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.src-num .src-cov { color: var(--faint); }
.src-more { margin: -16px 0 56px; color: var(--muted); }
.src-more h2 { margin-bottom: 6px; }
.src-more p { margin: 0; line-height: 1.8; }
.src-more a { color: var(--text); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.src-more a:hover { text-decoration-color: var(--ink); }
.hz-propose { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 28px 32px;
  background: var(--hover); margin: 0 0 56px; }
.hz-propose p { margin: 6px 0 0; max-width: 520px; color: var(--text); line-height: 1.5; }
.hz-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.btn { display: inline-block; padding: 10px 18px; background: var(--ink); color: var(--bg); text-decoration: none; cursor: pointer; }
.md a.btn { color: var(--bg); text-decoration: none; }
.btn:hover { background: #000; }
.btn-quiet { color: var(--muted); overflow-wrap: anywhere; }
.btn-quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hz-cities h2 { padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.hz-city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hz-city { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line); font-size: 17px; }
.hz-city small { font-size: 14px; color: var(--faint); }
.hz-city:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- home: Flip, the archive in charts, comments, how often KUM changes */
.hz-h { font-size: 30px !important; line-height: 1.16 !important; font-weight: 500 !important; letter-spacing: -0.014em;
  margin: 0 0 16px !important; }
.hz-src-k { margin-top: 8px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.hf, .ha, .hk, .ga { margin: 0 0 72px; }
.hf-text { max-width: 700px; }
.hf-text p:not(.hz-kicker) { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.hf-text b { font-weight: 500; color: var(--ink); }
.hf-steps { list-style: none; margin: 32px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  counter-reset: none; position: relative; }
.hf-steps li { position: relative; padding: 0 20px 0 0; }
.hf-steps li::before { content: ""; position: absolute; left: 30px; right: 8px; top: 15px; height: 1px; background: var(--field); }
.hf-steps li:last-child::before { display: none; }
.hf-steps li::after { content: ""; position: absolute; right: 8px; top: 11px; border: 4px solid transparent;
  border-left: 6px solid var(--field); }
.hf-steps li:last-child::after { display: none; }
.hf-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink);
  color: var(--bg); font-variant-numeric: tabular-nums; margin-bottom: 12px; position: relative; z-index: 1; }
.hf-steps li:last-child .hf-n { background: #eb6834; }
.hf-steps b { display: block; font-size: 17px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.hf-steps p { margin: 0; color: var(--muted); line-height: 1.5; }

.hc { margin: 0; min-width: 0; }
.hc-title { font-size: 17px; color: var(--ink); margin: 0 0 2px; }
.hc-sub { color: var(--muted); margin: 0 0 14px; line-height: 1.5; max-width: 640px; }
.hc-note { color: var(--faint); margin: 18px 0 0; line-height: 1.5; max-width: 760px; }
.hc-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 0 0 12px; color: var(--text); }
.hc-legend li { display: flex; align-items: center; gap: 6px; }
.hc-legend small { color: var(--faint); font-size: 14px; }
.k-poziv { background: #2a78d6; } .k-bez { background: #eb6834; } .k-izuzeto { background: #1baf7a; }
.g-dos { background: #eb6834; } .g-code { background: #2a78d6; }

/* horizontal bars: label | bar | value */
.hb { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hb li { display: grid; grid-template-columns: minmax(130px, 240px) minmax(0, 1fr) 72px; align-items: center; gap: 12px; }
.hb-wide li { grid-template-columns: 100px minmax(0, 1fr) 190px; align-items: start; }
.hb-l { color: var(--text); line-height: 1.3; }
a.hb-l:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hb-t { display: block; height: 14px; background: var(--hover); border-radius: 0 3px 3px 0; overflow: hidden; }
.hb-wide .hb-t { margin-top: 3px; }
.hb-b { display: block; height: 100%; background: #2a78d6; border-radius: 0 3px 3px 0; }
.hb-city { background: var(--ink); }
.hb-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.hb-v small { display: block; color: var(--faint); font-size: 12px; }
.hc-flags { margin-top: 8px; padding: 24px 28px; background: var(--src-bg); }

/* vertical stacked bars: value per year */
.ha-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; margin-top: 4px; }
.vb { position: relative; display: flex; align-items: flex-end; gap: 18px; height: 230px; padding: 22px 0 0 46px;
  border-bottom: 1px solid var(--field); margin-bottom: 40px; }
.vb-grid { position: absolute; inset: 22px 0 0 46px; pointer-events: none; }
.vb-g { position: absolute; left: 0; right: 0; border-top: 1px solid #efede8; }
.vb-g i { position: absolute; right: calc(100% + 6px); top: -8px; font-style: normal; font-size: 12px; color: var(--faint);
  white-space: nowrap; }
.vb-c { position: relative; flex: 1; max-width: 90px; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: stretch; }
.vb-bar { display: flex; flex-direction: column; overflow: hidden; border-radius: 3px 3px 0 0; }
.vb-s { display: block; min-height: 1px; }
.vb-v { font-size: 12px; color: var(--ink); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums;
  margin-bottom: 4px; }
.vb-x { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); text-align: center;
  color: var(--muted); white-space: nowrap; line-height: 1.2; }
.vb-x small { display: block; font-size: 11px; color: var(--faint); }

/* comments */
.hk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 36px 36px 32px;
  background: var(--hover); }
.hk-text p:not(.hz-kicker):not(.pnote) { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--text); }
.hk-text b { font-weight: 500; color: var(--ink); }
.hk-text .pnote { margin-top: 18px; }
.hk-form { margin-top: 0; gap: 18px; }
.hk-form textarea { background: var(--bg) !important; }
.hk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hk .err { color: var(--ink); background: var(--mark); padding: 8px 12px; margin: 0; }
.hk-done { align-self: center; padding: 24px; background: var(--bg); }
.hk-done b { font-size: 17px; font-weight: 500; color: var(--ink); }
.hk-done p { margin: 8px 0 0; color: var(--text); line-height: 1.5; }

/* how often KUM changes */
.ga-lead { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--text); max-width: 680px; }
.ga-stats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ga-stats b { display: block; font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--ink);
  font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.ga-stats span { color: var(--muted); }
.gb { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 18px; border-bottom: 1px solid var(--field);
  margin-bottom: 26px; }
.gb-c { position: relative; flex: 1; max-width: 64px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.gb-bar { display: flex; flex-direction: column; overflow: hidden; border-radius: 3px 3px 0 0; }
.gb-s { display: block; }
.gb-v { font-size: 12px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; line-height: 1;
  min-height: 12px; margin-bottom: 3px; }
.gb-x { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--faint);
  white-space: nowrap; }
.gb-today .gb-x { color: var(--ink); }
.gb-c:hover .gb-s, .vb-c:hover .vb-s { filter: brightness(0.9); }

/* ---------- /znaci: Flip's rule families */
.hc-more { margin: 16px 0 0; }
.hc-more a, a.hb-l { color: var(--text); }
.hc-more a { text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.hc-more a:hover { text-decoration-color: var(--ink); color: var(--ink); }
.zn-page .back { margin: 0 0 18px; }
.zn-page .back a { color: var(--muted); }
.zn-page .hz-lead + .hz-lead { margin-top: 12px; }
.zn-toc { margin: 40px 0 56px; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.zn-toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px; }
.zn-toc a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line);
  color: var(--text); }
.zn-toc a:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.zn-toc b { font-weight: 400; color: var(--faint); font-variant-numeric: tabular-nums; }
.zn { margin: 0 0 64px; scroll-margin-top: calc(var(--top) + 16px); }
.zn-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--ink); }
.zn-h h2 { font-size: 24px; line-height: 1.2; font-weight: 500; margin: 0; color: var(--ink); }
.zn-n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zn-code { margin: 8px 0 0; }
.zn-code code { color: var(--muted); }
.zn-note { margin: 12px 0 0; padding: 8px 12px; background: var(--mark); color: var(--ink); max-width: 680px; }
.zn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 40px; margin-top: 12px; }
.zn-text h3 { font-size: 14px; font-weight: 400; color: var(--muted); margin: 18px 0 4px; }
.zn-text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.zn-rules { list-style: none; margin: 4px 0 0; padding: 0; }
.zn-rules li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.zn-rules li p { font-size: 14px; line-height: 1.5; color: var(--text); }
.zn-r { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.zn-r code { font-size: 12px; color: var(--muted); background: none; padding: 0; }
.zn-r b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.zn-ex { align-self: start; margin-top: 18px; padding: 20px 22px; background: var(--src-bg); border-left: 3px solid #eb6834; }
.zn-ex-none { border-left-color: var(--field); }
.zn-ex-k { margin: 0 0 8px; color: var(--muted); }
.zn-ex-t { display: block; font-size: 17px; line-height: 1.4; color: var(--ink); margin-bottom: 10px; }
.zn-ex-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.zn-ex blockquote { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--text); }
.zn-ex p { line-height: 1.5; color: var(--text); }
.zn-flip { margin: 0 0 10px; color: var(--muted) !important; font-size: 13px; overflow-wrap: anywhere; }
.zn-flip code { font-size: 12px; }
.zn-ex-more { margin: 0; }
.zn-ex-more a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }

/* ---------- propose a source (/predlog-izvora) */
.predlog .back { font-size: 14px; margin: 0 0 18px; }
.predlog .back a { text-decoration: none; color: var(--muted); }
.predlog .lead { color: var(--ink); }
.predlog .err { color: var(--ink); background: var(--mark); padding: 8px 12px; font-size: 14px; }
.pform { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; font-size: 14px; }
.pform label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.pform .req, .pform .opt { color: var(--faint); margin-left: 6px; }
.pform input:not([type=radio]), .pform textarea { font: inherit; font-size: 17px; line-height: 1.5; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--field); padding: 6px 0 8px; outline: none; border-radius: 0; }
.pform textarea { resize: vertical; border: 1px solid var(--field); padding: 8px 10px; }
.pform input:focus, .pform textarea:focus { border-color: var(--ink); }
.pform fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pform legend { color: var(--muted); padding: 0; margin-bottom: 8px; }
.pform label.radio { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); cursor: pointer; }
.pform input[type=radio] { accent-color: var(--ink); margin: 0; }
.pform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.pnote { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; border-left: 1px solid var(--ink); padding-left: 12px; }
.pform .btn { align-self: flex-start; font-size: 14px; }

/* ---------- login */
.login-page { display: grid; place-items: center; min-height: 100vh; }
.login form { width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 14px; }
.login h1 { margin: 0 0 6px; display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 400; color: var(--faint); }
.login .logo { width: 72px; height: 24px; }
.login p { margin: 0; }
.login input { font: inherit; font-size: 17px; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--field);
  padding: 6px 0 8px; outline: none; }
.login input:focus { border-bottom-color: var(--ink); }
.login .err { color: var(--ink); }

/* ---------- resizable sidebar */
.side-resizer { position: absolute; top: 0; right: -5px; width: 9px; height: 100%; z-index: 5; cursor: col-resize;
  touch-action: none; outline: none; }
.side-resizer::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent; }
.side-resizer:hover::after, .side-resizer:focus-visible::after, body.resizing .side-resizer::after { background: var(--ink); }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing main, body.resizing .rail { pointer-events: none; }

/* ================================================================== no room for the rail */
@media screen and (max-width: 1240px) {
  .rail { display: none; }
  .facts-inline { display: block; margin: 22px 0 8px; font-size: 14px; line-height: 1.4; color: var(--ink); }
  .facts-inline .rail-h { margin-bottom: 10px; }
  .facts-acts { margin: 18px 0 0; font-size: 14px; }
  main { padding-right: 0; }
}

/* ================================================================== phones and small tablets */
@media screen and (max-width: 860px) {
  .hz-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; margin-top: 36px; }
  .hz-stat b { font-size: 24px; }
  .src { grid-template-columns: 1fr; gap: 8px; }
  .src-num { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .src-num small { margin: 0; flex-basis: 100%; }
  .hz-propose { flex-direction: column; align-items: stretch; padding: 22px 18px; gap: 18px; }
  .hz-actions { align-items: flex-start; }
  .hz-city-list { grid-template-columns: 1fr; }
  .hz-h { font-size: 24px !important; }
  .zn-toc ul { grid-template-columns: 1fr; }
  .zn-grid { grid-template-columns: 1fr; gap: 8px; }
  .zn-h h2 { font-size: 20px; }
  .zn-ex { padding: 16px; margin-left: -4px; margin-right: -4px; }
  .hf, .ha, .hk, .ga { margin-bottom: 56px; }
  .hf-steps { grid-template-columns: 1fr; gap: 18px; margin: 24px 0 32px; }
  .hf-steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; padding: 0; }
  .hf-steps li::before { left: 15px; top: 34px; bottom: -14px; right: auto; width: 1px; height: auto; }
  .hf-steps li::after { display: none; }
  .hf-n { grid-row: span 2; margin: 0; }
  .hc-flags { padding: 18px 16px; margin-left: -4px; margin-right: -4px; }
  .hb li { grid-template-columns: minmax(0, 1fr) 64px; gap: 4px 10px; }
  .hb-l { grid-column: 1 / -1; }
  .hb-wide li { grid-template-columns: minmax(0, 1fr) 170px; }
  .ha-grid { grid-template-columns: 1fr; gap: 36px; }
  .vb { gap: 12px; height: 200px; }
  .hk { grid-template-columns: 1fr; gap: 24px; padding: 24px 18px; }
  .hk-row { grid-template-columns: 1fr; }
  .ga-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
  .gb { gap: 2px; height: 120px; }
  .gb-v { font-size: 10px; }
}
@media screen and (max-width: 860px) {
  :root { --top: calc(52px + env(safe-area-inset-top)); --gut: 16px; }
  .topbar { gap: 12px; padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    transition: transform .22s ease; }
  body.bar-hidden .topbar { transform: translateY(-100%); }
  .icon-btn { display: grid; }
  .brand-wrap { width: auto; flex: 1; min-width: 0; gap: 12px; }
  .upd-w { display: none; }
  .top-search { display: none; }
  .top-links { gap: 14px; }
  .search-btn { display: inline-flex; }
  .top-link { display: none; }
  body.nav-open .read-btn { display: none; }
  body.search-open .topbar > :not(.top-search) { display: none; }
  body.search-open .top-search { display: flex; flex: 1; padding: 0 0 6px; color: var(--ink); }
  body.search-open .key { display: none; }
  body.search-open .search-cancel { display: block; padding: 0 0 0 8px; }
  .top-search input { font-size: 16px; }

  .layout { display: block; padding: var(--top) 0 0; }
  /* the list: a full screen of its own, opened by ☰ */
  .sidebar {
    position: fixed; left: 0; right: 0; top: var(--top); bottom: 0; height: auto; z-index: 25; width: auto;
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    border-right: 0; background: var(--bg);
    transform: translateX(-100%); visibility: hidden;
    transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s;
  }
  body.nav-open .sidebar { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2,.8,.2,1); }
  body.nav-open .topbar { transform: none; }
  body.nav-open { overflow: hidden; }
  .side-resizer { display: none; }
  .side-head { padding-top: 20px; }
  .side-items a { padding-top: 10px; padding-bottom: 10px; }
  .side-items li:not(.read) a::before { top: 17px; }
  .side-foot { display: flex; gap: 28px; align-items: center; height: 56px; flex: 0 0 auto;
    border-top: 1.5px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .cs-menu { max-height: 60vh; }

  main { padding: 24px max(16px, env(safe-area-inset-right)) calc(80px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .md ul { padding-left: 24px; }
  .md ul > li::before { left: -24px; }
  body.reading main { padding-top: 72px; }
  body.reading .read-ctx { top: 18px; }
  body.reading .read-exit { top: 16px; }

  /* tables that fit stay tables; the rest become one block per row (app.js adds .cards) */
  .table-wrap.cards { overflow: visible; }
  .table-wrap.cards table, .table-wrap.cards tbody, .table-wrap.cards tr, .table-wrap.cards td { display: block; width: auto; }
  .table-wrap.cards thead { display: none; }
  .table-wrap.cards tr { padding: 4px 0 10px; border-top: 1px solid var(--ink); margin-bottom: 14px; }
  .table-wrap.cards td { display: grid; grid-template-columns: minmax(92px, 36%) minmax(0, 1fr); gap: 12px; padding: 7px 0;
    border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .table-wrap.cards td::before { content: attr(data-label); color: var(--muted); }
  .table-wrap.cards td:first-child { display: block; padding: 8px 0; }
  .table-wrap.cards td:first-child::before { display: block; }
  .table-wrap.cards td:last-child { border-bottom: 0; }
  .table-wrap.cards td.empty { display: none; }

  .search-form .row { flex-wrap: wrap; }
  .search-form .row > input[type=search] { flex: 1 1 100%; }
  .search-form select { flex: 1; }
  .hlbar { left: 16px; right: auto; bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.ov-open .hlbar { display: none; }
}

.scrim { position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.3); }
body.fn-open .scrim { display: block; }
/* a source shown in place when its number is tapped (phone) */
.fn-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 47; max-width: 640px; margin: 0 auto;
  background: var(--bg); border-top: 1.5px solid var(--ink);
  transform: translateY(105%); visibility: hidden;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), visibility 0s linear .24s;
}
body.fn-open .fn-sheet { transform: none; visibility: visible; transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.fn-sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 4px; }
.fn-sheet .sheet-head p { margin: 0; color: var(--muted); }
.sheet-x { width: 32px; height: 32px; font-size: 15px; color: var(--muted); }
.fn-body { padding: 4px 16px 8px; max-height: min(55vh, 55dvh); overflow-y: auto; overscroll-behavior: contain;
  font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.fn-body p { margin: 0 0 10px; }
.fn-body a { text-decoration: underline; text-underline-offset: 3px; }
.fn-foot { padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); }
.fn-foot a { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .sidebar, .fn-sheet, .topbar { transition: none !important; }
}

/* ================================================================== PDF / print: one clean A4 document */
@page { size: A4; margin: 15mm 14mm 16mm; }
@media print {
  html, body { background: #fff !important; color: #111; }
  body { font-size: 9.5pt; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .sidebar, .rail, .hlbar, .tabs, .scrim, .fn-sheet, .toast, .pdf-btn, .facts-acts, .md .anchor,
  .side-resizer, .read-bar, .read-ctx, .read-exit, .md .tw-more { display: none !important; }
  .md .table-wrap.tw-collapsed tbody > tr { display: table-row !important; }
  .layout { display: block; padding: 0; min-height: 0; }
  main { padding: 0 !important; }
  main > * { max-width: none !important; }
  .print-head { display: flex; justify-content: space-between; gap: 3px 12px; flex-wrap: wrap; font-size: 8pt; color: #555;
    border-bottom: 1px solid #111; padding-bottom: 5px; margin-bottom: 10px; }
  .print-head .print-contact { flex-basis: 100%; }
  .facts-inline { display: block !important; margin: 8px 0; font-size: 9pt; }
  .facts-inline .rail-h { font-size: 9.5pt; margin-bottom: 4px; }
  .fact { margin-bottom: 2px; }
  mark, mark.on { background: none; outline: 0; padding: 0; }
  .md { font-size: 10pt; color: #222; }
  .md h1 { font-size: 17pt; margin: 6px 0 8px; }
  .md h2, .md h3 { font-size: 10.5pt; break-after: avoid; page-break-after: avoid; }
  .md h2 { margin: 16px 0 6px; padding-top: 6px; }
  .md p, .md li { orphans: 3; widows: 3; }
  .md p, .md ul, .md ol { margin-bottom: 7px; }
  .md a { text-decoration: none; color: #1a4f8f; }
  .md blockquote { font-size: 9pt; break-inside: avoid; }
  .md pre { white-space: pre-wrap; font-size: 8pt; break-inside: avoid; }
  .table-wrap, .table-wrap.cards { overflow: visible !important; margin: 0 0 10px; }
  .md table { font-size: 7.5pt; line-height: 1.3; }
  .md th, .md td { padding: 3px 5px 3px 0; overflow-wrap: break-word; word-break: normal; }
  .md th { white-space: normal; }
  .md thead { display: table-header-group; }
  .md tr { break-inside: avoid; page-break-inside: avoid; }
  .md sup.fnref { white-space: nowrap; font-size: 8pt; }
  .md ol.footnotes { font-size: 8pt; line-height: 1.4; }
  .md ol.footnotes li { break-inside: avoid; margin-bottom: 3px; padding-bottom: 3px; }
  .md ol.footnotes li:target { background: none; }
  .md a.fnback { display: none; }
  .md .src-sec { margin: 16px 0 8px; padding: 2px 10px 6px; border-radius: 6px; }
  .md .src-sec > h2 { padding-top: 8px; }
}
@media screen and (max-width: 860px) {
  .md .src-sec { padding: 2px 16px 8px; margin-left: -4px; margin-right: -4px; }
  .md .src-sec ol.footnotes { padding-left: 22px; }
}

/* ---------- statistics (/stats): the same three styles */
.stats-page { background: var(--bg); }
.st-page { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.st-head h1 { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 400; color: var(--faint); }
.st-links { display: flex; gap: 24px; }
.st-links a:hover { text-decoration: underline; }
.st-period { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 6px; border-bottom: 1px solid var(--line); }
.st-period a { padding-bottom: 8px; color: var(--muted); margin-bottom: -1px; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.st-period a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.st-note { color: var(--muted); margin: 8px 0 18px; }
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.st-tile { padding-top: 12px; border-top: 1px solid var(--line); }
.st-k { color: var(--muted); }
.st-v { font-size: 30px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.st-d { color: var(--faint); }
.st-card { margin-bottom: 28px; min-width: 0; }
.st-card h2 { margin: 0 0 10px; font-size: 17px; font-weight: 400; padding-top: 12px; border-top: 1px solid var(--line); }
.st-sub { color: var(--muted); margin: -4px 0 10px; }
.st-empty { margin: 0; }
.st-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.st-chart { display: block; width: 100%; height: auto; overflow: visible; }
.st-col { fill: var(--ink); }
.st-hit { fill: transparent; }
g:hover > .st-col { opacity: .6; }
.st-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.st-base { stroke: var(--muted); stroke-width: 1; }
.st-ax { fill: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.st-card details { margin-top: 10px; }
.st-card summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.st-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.st-table { width: 100%; border-collapse: collapse; }
.st-table th { text-align: left; color: var(--muted); font-weight: 400; padding: 4px 8px 6px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.st-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.st-table tr:last-child td { border-bottom: 0; }
.st-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-table td.bar { position: relative; min-width: 90px; }
.st-bar { position: absolute; right: 8px; top: 7px; height: 18px; max-width: calc(100% - 16px); background: var(--hover); }
.st-table td.bar b { position: relative; font-weight: 400; }
.st-table small { font-size: 14px; white-space: nowrap; }
.st-kind { color: var(--muted); white-space: nowrap; }
.nowrap { white-space: nowrap; }
@media screen and (max-width: 860px) {
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-grid2 { grid-template-columns: minmax(0, 1fr); }
  .t-recent td:nth-child(3) { min-width: 160px; }
  .st-ax { font-size: 20px; }
}
