/* Opora: tokens and components, copied from Aptechka's aptechka.css (which follows Papirka's papirka.css).
   Visual B «Ладонь», chosen by the owner on 2026-12-04 inside the umbrella «Коло»: terracotta #B4532A (Opora's
   colour in the network ring), peach #F2C9A8 and sage #7A8F6B as decoration, paper #FBF4EE. Links use the deeper
   terracotta (AA on every surface); text on terracotta is white (4.99:1). Ink is text only, never a background (the
   network's rule). Light and dark themes; html[data-theme] is set by theme.js (stored choice, else the system setting). */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --paper: #FBF4EE; --ink: #3A1D10; --terra: #B4532A; --terra-deep: #9A4322; --peach: #F2C9A8;
  --sage: #7A8F6B; --sage-soft: #EEF2EA; --sage-ink: #4E5E43;
  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-2: #F5E8DD;
  --line: #EBDDD1;
  --line-strong: #DCC9BA;
  --text: var(--ink);
  --muted: #6B4A3A;
  --label: #7D6253;
  --brand: var(--terra);
  --brand-hover: var(--terra-deep);
  --brand-ink: #FFFFFF;
  --brand-ink-2: #F8DCCB;
  --brand-soft: #F8E6DA;
  --brand-soft-line: #EFD3C1;
  --link: var(--terra-deep);
  --accent: var(--peach);
  --accent-soft: #FCEBDD;
  --accent-ink: #6A3A1E;
  --on-accent: var(--ink);
  --ok: #2E7458; --ok-soft: #E1F1E8;
  --danger: #A3281B; --danger-soft: #FBE4DE;
  --focus: var(--terra);
  --mark-bg: var(--terra); --mark-fg: var(--peach);
  --shadow: 0 1px 2px rgba(58, 29, 16, .05), 0 8px 24px rgba(58, 29, 16, .07);
  --radius: 24px; --radius-s: 16px;
  --marker: linear-gradient(transparent 60%, var(--peach) 60%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1714; --surface: #2A201B; --surface-2: #352821; --line: #45352C; --line-strong: #5A463A;
    --text: #F5E9E1; --muted: #CDB8AC; --label: #B9A294; --brand: #F4A27C; --brand-hover: #F8BC9E;
    --brand-ink: #1E1714; --brand-ink-2: #B4532A; --brand-soft: #352821; --brand-soft-line: #4D3A2F;
    --link: #F4A27C; --accent-soft: #3D2A1E; --accent-ink: #F6CFAE; --ok: #86D6AE; --ok-soft: #1D3A2C;
    --danger: #FF9F8C; --danger-soft: #45201B; --focus: var(--peach); --mark-bg: #F4A27C; --mark-fg: var(--peach);
    --sage-soft: #26301F; --sage-ink: #B9CCAA;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .3);
    --marker: linear-gradient(transparent 78%, #8A4A2C 78%, #8A4A2C 92%, transparent 92%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1E1714; --surface: #2A201B; --surface-2: #352821; --line: #45352C; --line-strong: #5A463A;
  --text: #F5E9E1; --muted: #CDB8AC; --label: #B9A294; --brand: #F4A27C; --brand-hover: #F8BC9E;
  --brand-ink: #1E1714; --brand-ink-2: #B4532A; --brand-soft: #352821; --brand-soft-line: #4D3A2F;
  --link: #F4A27C; --accent-soft: #3D2A1E; --accent-ink: #F6CFAE; --ok: #86D6AE; --ok-soft: #1D3A2C;
  --danger: #FF9F8C; --danger-soft: #45201B; --focus: var(--peach); --mark-bg: #F4A27C; --mark-fg: var(--peach);
  --sage-soft: #26301F; --sage-ink: #B9CCAA;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .3);
  --marker: linear-gradient(transparent 78%, #8A4A2C 78%, #8A4A2C 92%, transparent 92%);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font);
}
img, svg { display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
/* the word that matters in a title */
.hl { background: var(--marker); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.ic { width: 20px; height: 20px; flex: none; }
.ic-s { width: 16px; height: 16px; flex: none; }
.ic-l { width: 24px; height: 24px; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: var(--gap, 16px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 900px) {
  body { font-size: 17px; }
  h1 { font-size: 48px; letter-spacing: -.035em; }
  h2 { font-size: 26px; }
  .wrap { padding: 0 32px; }
}

/* ------------------------------------------------------------------ header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo .on-dark { display: none; }
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }
.nav { display: none; gap: 4px; margin-left: 20px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current] { background: var(--surface-2); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
@media (min-width: 900px) {
  .site-header .wrap { height: 72px; }
  .nav { display: flex; }
  .only-mobile { display: none !important; }
}
@media (max-width: 899px) { .only-desktop { display: none !important; } }

/* language switch */
.lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang a {
  min-width: 40px; text-align: center; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--muted); text-decoration: none; letter-spacing: .02em;
}
.lang a[aria-current] { background: var(--brand); color: var(--brand-ink); }
.lang-compact {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--text);
}

/* ------------------------------------------------------------------ buttons, inputs, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1.5px solid transparent;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--link); padding: 0 8px; }
.btn-s { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text);
  text-decoration: none; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; line-height: 1.35; white-space: nowrap;
}
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-soon { background: var(--accent-soft); color: var(--accent-ink); }
.tag-late { background: var(--danger-soft); color: var(--danger); }
.tag-neutral { background: var(--surface-2); color: var(--muted); }

/* ------------------------------------------------------------------ cards and blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-shadow { box-shadow: var(--shadow); }
.panel { background: var(--surface-2); border-radius: var(--radius); padding: 18px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--label); }
.section { padding: 32px 0; }
@media (min-width: 900px) { .section { padding: 56px 0; } .card { padding: 24px; } }

/* callouts */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 16px; border-radius: var(--radius-s); border: 1px solid;
}
.callout .ic-l { margin-top: 1px; }
.callout-deadline { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.callout-deadline .ic-l { color: var(--accent-ink); }
.callout-info { background: var(--brand-soft); border-color: var(--brand-soft-line); }
.callout-info .ic-l { color: var(--brand); }
.callout h3 { font-size: 17px; margin-bottom: 4px; }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* meta line under a title */
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); align-items: center; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.checked { color: var(--ok); font-weight: 700; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 22px 48px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-soft-line);
}
.steps > li::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { color: var(--muted); }

/* sources */
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.sources .dom { font-size: 13px; color: var(--muted); }

/* disclaimer */
.disclaimer { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* rows (lists of links) */
.rows { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.row {
  display: grid; grid-template-columns: 44px 1fr 20px; gap: 14px; align-items: center; padding: 14px 16px;
  color: var(--text); text-decoration: none; border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface-2); }
.row .badge-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.row strong { display: block; font-weight: 700; line-height: 1.3; }
.row .sub { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.row > svg:last-child { color: var(--muted); }

/* key-value list */
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .not-gov { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-weight: 600; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--muted); }
/* The donations line (network/donate.json). */
.site-footer .donate { margin: 0; color: var(--text); }
.site-footer .donate a { font-weight: 600; white-space: nowrap; }
/* The «Created by otwiero» credit (network/credit.json), at the right end of the last footer row; the wordmark is
   assets/otwiero.svg (no font, nothing loaded from otwiero.pl). */
.site-footer .footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; }
.site-footer .made-by a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-footer .made-by a:hover span, .site-footer .made-by a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .made-by .otwiero { display: inline-block; width: 4.35em; height: 1em; vertical-align: -0.03em; color: #e0157a; filter: drop-shadow(0 0 3px rgba(224, 21, 122, 0.45)); }
