/* Shared shell: the palette, the reset and the elements every page of this
   site draws the same way. Extracted from the templates that repeated them
   verbatim — a page that wants something else keeps its own rule, in its own
   file, which loads after this one. */
:root { --bg:#0f1419; --panel:#1a212b; --accent:#3fb950; --text:#e6edf3;
            --muted:#8b98a5; --border:#2d3744; --danger:#f85149; }
* { box-sizing:border-box; }
/* The body paints its own ground. /predstoi and /srokove rendered with a transparent body and
   only looked right because the html element happened to carry the colour. */
body { background:var(--bg); color:var(--text); margin:0; }
/* The page-shell header, from before `_site_header.html` existed. Scoped away from it: the
   shared header is `<header class="sh">`, and these bare element rules were reaching inside
   it — bolding its nav links and, through the `button` rule below, giving its burger a 44px
   min-height that made the whole bar taller on every page that loads this file. The site
   header then looked one way on /laws and another on /watch. */
/* `:where()` and not `:not()` on its own: `:not()` carries its argument's specificity, so
   `button:not(.sh button)` weighs (0,1,2) and beats every page's own `.yr`, `.lnk`, `.res`
   button style. That turned the year pills on /srokove into green buttons. `:where()`
   weighs nothing, so these stay the (0,0,1) element rules they always were. */
header:where(:not(.sh)) { border-bottom:1px solid var(--border); padding:14px 20px; }
header:where(:not(.sh)) a { color:var(--text); text-decoration:none; font-weight:600; }
main { max-width:780px; margin:0 auto; padding:28px 22px 60px; }
h1 { font-size:24px; margin:0 0 6px; }
.muted { color:var(--muted); font-size:14px; }
.card { background:var(--panel); border:1px solid var(--border); border-radius:12px;
            padding:18px; margin:16px 0; }
.card.active { border-color:var(--accent); }
label { display:block; font-size:13px; color:var(--muted); margin:12px 0 4px; }
input[type=text], select { width:100%; background:var(--inset,#0d1218); color:var(--text);
      border:1px solid var(--border); border-radius:9px; padding:10px 12px; font-size:15px; }
/* One control = 44px tall and 10px rounded, whether it is a <button> or an <a class="btn">.
   Before this the buttons were 9px radius and a different height from the fields beside them,
   and "a.btn" was simply inline-block — a link that looked like text next to a button that
   looked like a button. */
button:where(:not(.sh button)), a.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px;
             background:var(--accent); color:var(--on-accent,#06210c); border:1px solid transparent;
             border-radius:10px; padding:0 18px; min-height:44px; font:inherit;
             font-size:15px; font-weight:600; cursor:pointer; text-decoration:none; }
button:hover, a.btn:hover { filter:brightness(1.08); }
button.ghost, a.btn.ghost { background:transparent; color:var(--text);
             border-color:var(--border); }
button.ghost:hover, a.btn.ghost:hover { border-color:var(--accent); filter:none; }
table { width:100%; border-collapse:collapse; }
th, td { padding:10px 8px; border-bottom:1px solid var(--border); text-align:left; font-size:14px; }
th { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
td.num { text-align:right; white-space:nowrap; }
a { color:var(--accent); }
.err { color:var(--danger); font-size:13px; }
.tabs { display:flex; gap:8px; margin:14px 0 4px; }
.tabs a { padding:8px 14px; border-radius:9px; border:1px solid var(--border);
              text-decoration:none; color:var(--muted); font-size:14px; }
.tabs a.on { color:var(--text); border-color:var(--accent); }
.pill { font-size:12px; padding:2px 8px; border-radius:20px; border:1px solid var(--border);
            color:var(--muted); }
