/* ============================================================
   Behind the Scenes of European Improv — onepager raportu
   Design 937.design: białe tło, czarne „kurtyny”, trzy kolory
   jako znaki (czerwony = ryzyko, niebieski = dane, żółty = światło).
   Thunder tylko w nagłówkach; dane, tabele i tekst w kroju systemowym.
   ============================================================ */

@font-face {
  font-family: "Thunder";
  src: url("../fonts/thunder-extrabold-lc.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Redaction 20";
  src: url("../fonts/redaction20-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --paper-warm: #F2F1ED;
  --ink: #0B0B0C;
  --ink-86: rgba(11, 11, 12, .86);
  --ink-66: rgba(11, 11, 12, .66);
  --ink-50: rgba(11, 11, 12, .5);
  --rule: rgba(11, 11, 12, .9);
  --rule-soft: rgba(11, 11, 12, .14);
  --rule-dark: rgba(255, 255, 255, .18);

  --red: #EF0000;
  --blue: #005FB1;
  --yellow: #FECE00;

  /* skala odpowiedzi „gdyby lider zniknął” — ta sama na każdym wykresie */
  --carry: #005FB1;
  --slow: #8FB4DC;
  --stop: #54565B;
  --itsme: #EF0000;

  /* zmienne, których używa treść wyciągnięta z raportu */
  --accent: var(--blue);
  --rest: #C3C6CB;
  --soft: #F2F1ED;
  --seq-hi: #005FB1;
  --line: var(--rule-soft);
  --ink-2: var(--ink-86);
  --ink-3: var(--ink-66);

  --bold: "Thunder", "Archivo Narrow", Impact, sans-serif;
  --orn: "Redaction 20", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-ui: var(--sans);

  --gut: clamp(16px, 3.6vw, 56px);
  --cell: 24px;
  --sp: clamp(56px, 7vw, 104px);
  --sp-head: clamp(32px, 4vw, 56px);
  --top: 58px;
  --side: 300px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* warstwy */
  --z-sticky: 20;
  --z-top: 40;
  --z-scrim: 50;
  --z-drawer: 60;
  --z-tip: 80;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0;
  padding-top: var(--top);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.62;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: var(--z-tip); background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; font-size: 14px; }
.skip:focus { top: 10px; }

/* ---------- nagłówki: Thunder ---------- */
h1, h2, h3, h4 {
  font-family: var(--bold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .014em;
  word-spacing: .05em;
  line-height: .9;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em, h3 em {
  font-family: var(--orn);
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  font-size: .62em;
  letter-spacing: -0.01em;
}

/* Thunder w małych rozmiarach potrzebuje więcej powietrza między literami i słowami */
.gives h3, .findings h3, .trow-title, .ch-body h3, .tcard h4 {
  letter-spacing: .032em;
  word-spacing: .06em;
  line-height: .96;
}
.big, .kb-num, .ch-no, .fno, .trow-no { letter-spacing: .012em; }

/* ---------- siatka: pasy (linie poziome) i rama (linie pionowe) ---------- */
.band { border-bottom: 1px solid var(--rule-soft); position: relative; overflow-x: clip; }
.frame {
  max-width: 1440px;
  margin: 0 auto;
  border-left: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
  position: relative;
}
/* krzyżyki na przecięciach linii */
.band > .frame::before,
.band > .frame::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 11px; height: 11px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 11px no-repeat;
  z-index: 2;
  pointer-events: none;
}
.band > .frame::before { left: -6px; }
.hero > .frame::before, .hero > .frame::after { display: none; }
.band > .frame::after { right: -6px; }
.band.dark > .frame::before, .band.dark > .frame::after {
  background:
    linear-gradient(#fff, #fff) center / 11px 1px no-repeat,
    linear-gradient(#fff, #fff) center / 1px 11px no-repeat;
}

/* komórki z włosowymi liniami: kontener w kolorze linii, komórki na papierze */
.cells { display: grid; gap: 1px; background: var(--rule-soft); }
.cells > * { background: var(--paper); min-width: 0; }

.dark { background: var(--ink); color: #fff; border-bottom-color: var(--rule-dark); }
.dark .frame { border-color: var(--rule-dark); }
.dark .cells { background: var(--rule-dark); }
.dark .cells > * { background: var(--ink); }

.lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-66);
  margin-bottom: 4px;
}
.dark .lbl { color: rgba(255, 255, 255, .64); }

/* ---------- górny pasek ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--top);
  z-index: var(--z-top);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar-in {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gut);
  display: flex;
  align-items: center;
  gap: 18px;
  border-left: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
}
.brand { text-decoration: none; font-weight: 650; font-size: 15px; white-space: nowrap; }
.brand span { color: var(--ink-66); font-weight: 400; }
.brand .brand-title { font-family: var(--bold); font-weight: 800; text-transform: uppercase; font-size: 19px; letter-spacing: .03em; word-spacing: .06em; color: var(--ink); line-height: 1; }
.brand .brand-title em { font-family: var(--orn); font-weight: 400; font-style: normal; text-transform: none; font-size: .86em; letter-spacing: 0; }
.now {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--ink-66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.now.on { opacity: 1; }
.now b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.top-link, .toc-btn {
  font: 600 14px/1 var(--sans);
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule);
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.top-link:hover, .toc-btn:hover { background: var(--ink); color: #fff; }
.toc-btn { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- hero ---------- */
.hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-soft); }
.hero-meta > div { padding: 16px var(--gut) 18px; font-size: 15px; line-height: 1.4; }
.hero-meta > div + div { padding-left: var(--cell); }
.hero-title { padding: clamp(40px, 7vw, 96px) var(--gut) clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--rule-soft); }
.hero-title h1 { font-size: clamp(2.75rem, 9.2vw, 9rem); line-height: .84; letter-spacing: .006em; word-spacing: .03em; }
.hero-title h1 em { display: inline-block; margin: 0 .04em; }
.hero-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hero-text { padding: clamp(32px, 4vw, 56px) var(--gut); display: flex; flex-direction: column; gap: 28px; border-right: 1px solid var(--rule-soft); }
.lede { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.34; letter-spacing: -0.02em; max-width: 30ch; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--sans);
  padding: 15px 20px;
  background: var(--ink); color: #fff;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.hero-note { font-size: 14px; color: var(--ink-66); max-width: 46ch; margin-top: auto; }

.hero-film { margin: 0; position: relative; min-width: 0; aspect-ratio: 16 / 9; align-self: stretch; background: #EEEDE9; overflow: hidden; }
.hero-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; }
.film-ctrl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; align-items: stretch; transition: top .2s, bottom .2s; }
.is-film .film-ctrl { bottom: auto; top: 16px; }
.is-film .film-btn { display: none; }
.film-sound {
  display: inline-flex; align-items: center; gap: 10px;
  font: 650 14px/1 var(--sans); color: var(--ink);
  background: var(--yellow); border: 1px solid var(--ink);
  padding: 10px 14px 10px 11px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 11, 12, .18);
  transition: background .2s, color .2s;
}
.film-sound:hover { background: var(--ink); color: #fff; }
.film-sound .snd-ico { width: 20px; height: 20px; flex: 0 0 auto; }
.film-sound .snd-len { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.is-film .film-sound { background: rgba(255, 255, 255, .94); box-shadow: none; }
.is-film .film-sound .snd-ico, .is-film .film-sound .snd-len { display: none; }
.film-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 13px/1 var(--sans); color: var(--ink);
  background: rgba(255, 255, 255, .94); border: 1px solid var(--rule);
  padding: 9px 13px 9px 11px; cursor: pointer;
  transition: background .2s, color .2s;
}
.film-btn:hover { background: var(--ink); color: #fff; }
.film-ico { position: relative; width: 10px; height: 12px; flex: 0 0 auto; }
.film-ico::before, .film-ico::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: currentColor; }
.film-ico::before { left: 1px; }
.film-ico::after { right: 1px; }
.film-btn.paused .film-ico::before { left: 1px; width: 0; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.film-btn.paused .film-ico::after { display: none; }

/* ---------- bloki leadu ---------- */
.block { padding: var(--sp) var(--gut); }
.block-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: end; margin-bottom: var(--sp-head); }
.block-head h2 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
.block-head p { font-size: 17.5px; color: var(--ink-86); max-width: 60ch; }
.dark .block-head p { color: rgba(255, 255, 255, .82); }

/* liczby projektu: ciąg kroków */
.ledger { grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule-soft); }
.ledger > div { padding: var(--cell) var(--cell) 28px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.ledger > div + div::before {
  content: "";
  position: absolute; left: -7px; top: 34px;
  width: 13px; height: 13px;
  background: var(--paper);
  border-top: 1px solid var(--ink); border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}
.ledger .big { font-family: var(--bold); font-weight: 800; font-size: clamp(3rem, 4.6vw, 4.6rem); line-height: .85; font-variant-numeric: tabular-nums; }
.ledger .big small { font-size: .5em; margin-left: 2px; }
.ledger p { font-size: 15px; line-height: 1.45; color: var(--ink-86); }
.ledger .step { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-66); }
.ledger > div:nth-child(3) .big { color: var(--blue); }

.lead-charts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); border-top: 0; }
.lead-charts > figure { background: var(--paper); margin: 0; padding: var(--cell); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lead-charts h3 { font: 650 16px/1.35 var(--sans); text-transform: none; letter-spacing: -0.01em; }
.msgbar { display: flex; height: 40px; gap: 2px; }
.msgbar span { min-width: 0; display: flex; align-items: center; padding-left: 8px; font-size: 13px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; }
.msg-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.35; }
.msg-legend li { display: grid; grid-template-columns: 12px 1fr; gap: 9px; align-items: start; }
.msg-legend i { width: 12px; height: 12px; margin-top: 3px; }
.msg-legend b { display: block; font-weight: 650; font-variant-numeric: tabular-nums; }
.lead-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; font-size: 14.5px; color: var(--ink-66); }
.lead-facts b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.days svg { width: 100%; height: auto; overflow: visible; }
.days .bar { fill: var(--blue); transition: fill .15s; }
.days .bar:hover, .days .bar:focus { fill: var(--ink); outline: none; }
.days text { font: 12px var(--sans); fill: var(--ink-66); font-variant-numeric: tabular-nums; }
.days .peak { font-weight: 650; fill: var(--ink); }
.days .grid { stroke: var(--rule-soft); }
.days .base { stroke: var(--ink); }
.cap-note { font-size: 13px; color: var(--ink-66); }
.js .days.fig-anim .bar { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
.js .days.fig-anim.in .bar { transform: none; transition: transform .8s var(--ease), fill .15s; transition-delay: calc(var(--i) * 22ms), 0s; }

/* dlaczego */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; }
.why h2 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
.byline { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-66); max-width: 34ch; }
.byline strong { color: var(--ink); font-size: 17px; font-weight: 650; }
.why-text { display: flex; flex-direction: column; gap: 1.05em; font-size: clamp(1.12rem, 1.45vw, 1.32rem); line-height: 1.55; letter-spacing: -0.012em; max-width: 62ch; text-wrap: pretty; }
.why-text p:first-child::first-line { font-weight: 650; }
mark { background: linear-gradient(transparent 60%, rgba(254, 206, 0, .9) 60%); color: inherit; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* co to daje scenie */
.gives { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule-soft); }
.gives > div { padding: var(--cell) var(--cell) 28px; display: flex; flex-direction: column; gap: 12px; }
.gives h3 { font-size: clamp(1.7rem, 2.2vw, 2.15rem); line-height: .92; display: flex; gap: 10px; align-items: flex-start; }
.gives h3::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-top: .12em; background: var(--c, var(--ink)); }
.gives p { font-size: 15.5px; line-height: 1.5; color: var(--ink-86); }

/* najważniejsze wnioski: czarna kurtyna */
.findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.findings li { display: grid; grid-template-columns: 88px minmax(0, 4fr) minmax(0, 6fr); gap: 16px 40px; padding: 30px 0 32px; border-bottom: 1px solid var(--rule-dark); }
.findings .fno { font-family: var(--bold); font-weight: 800; font-size: 3.4rem; line-height: .8; color: var(--yellow); font-variant-numeric: tabular-nums; }
.findings h3 { font-size: clamp(1.9rem, 2.9vw, 2.7rem); line-height: .92; color: #fff; }
.findings .ftxt { font-size: 16px; line-height: 1.58; color: rgba(255, 255, 255, .84); display: flex; flex-direction: column; gap: 12px; max-width: 66ch; }
.findings .ftxt a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--yellow); align-self: flex-start; padding-bottom: 1px; }
.findings .ftxt a:hover { color: var(--yellow); }
.block-head.fhead { grid-template-columns: 88px minmax(0, 4fr) minmax(0, 6fr); column-gap: 40px; }
.block-head.fhead h2 { grid-column: 1 / 3; }
.block-head.fhead p { grid-column: 3; max-width: 66ch; }
.findings-intro { font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .84); max-width: 70ch; }

/* interaktywny spis treści */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--rule); width: max-content; max-width: 100%; margin-bottom: 28px; }
.tabs button { font: 600 14px/1 var(--sans); background: var(--paper); color: var(--ink); border: 0; padding: 12px 16px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button + button { border-left: 1px solid var(--rule); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tabs button:not([aria-pressed="true"]):hover { background: var(--paper-warm); }
.toc-part { border-top: 1px solid var(--rule); }
.toc-part + .toc-part { margin-top: 40px; }
.toc-part[hidden] { display: none; }
.toc-part > h3 { font: 600 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-66); padding: 14px 16px 12px; border-bottom: 1px solid var(--rule-soft); }
.trow { border-bottom: 1px solid var(--rule-soft); }
.trow-main { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 220px) 52px; gap: 8px 32px; align-items: center; padding: 20px 16px; position: relative; }
.trow-no { font-family: var(--bold); font-weight: 800; font-size: 3.1rem; line-height: .8; color: var(--ink); font-variant-numeric: tabular-nums; transition: color .2s; }
.trow-link { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.trow-link::after { content: ""; position: absolute; inset: 0; }
.trow-title { font-family: var(--bold); font-weight: 800; text-transform: uppercase; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: .9; }
.trow-desc { font-size: 15.5px; line-height: 1.45; color: var(--ink-66); max-width: 60ch; }
.trow-stat { font-size: 14px; line-height: 1.4; color: var(--ink-66); }
.trow-stat b { display: block; color: var(--ink); font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.trow-tog { position: relative; z-index: 1; width: 44px; height: 44px; border: 1px solid var(--rule-soft); background: var(--paper); cursor: pointer; justify-self: end; transition: background .2s, border-color .2s; }
.trow-tog::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translate(-50%, -70%) rotate(45deg); transition: transform .3s var(--ease); }
.trow-tog[aria-expanded="true"]::before { transform: translate(-50%, -30%) rotate(-135deg); }
.trow-tog:hover { border-color: var(--ink); }
.trow-tog[hidden] { display: none; }
.trow:hover .trow-main { background: linear-gradient(90deg, var(--paper-warm), var(--paper-warm)) no-repeat; }
.trow:hover .trow-no { color: var(--blue); }
.trow-subs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.trow.open .trow-subs { grid-template-rows: 1fr; }
.trow-subs > div { overflow: hidden; min-height: 0; }
.trow-subs ol { list-style: none; margin: 0; padding: 0 16px 20px 140px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.trow-subs a { display: grid; grid-template-columns: 44px 1fr; padding: 9px 0; border-top: 1px solid var(--rule-soft); font-size: 15px; line-height: 1.35; text-decoration: none; color: var(--ink-86); }
.trow-subs a span { color: var(--ink-66); font-variant-numeric: tabular-nums; }
.trow-subs a:hover { color: var(--blue); }

/* ---------- raport: boczny spis + treść ---------- */
.report { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: var(--top);
  align-self: start;
  height: calc(100vh - var(--top));
  overflow-y: auto;
  border-right: 1px solid var(--rule-soft);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: var(--paper);
  z-index: var(--z-sticky);
}
.sb-in { padding: 26px 20px 40px 22px; }
.sb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sb-head span { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-66); }
.sb-head a { font-size: 13px; color: var(--ink-66); text-decoration: none; }
.sb-head a:hover { color: var(--ink); }
.sb-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule-soft); }
.sb-ch { border-top: 1px solid var(--rule-soft); position: relative; }
.sb-row { display: flex; align-items: flex-start; }
.sb-row > a { flex: 1; display: grid; grid-template-columns: 28px 1fr; gap: 4px; padding: 11px 0 12px; text-decoration: none; font-size: 14.5px; line-height: 1.3; color: var(--ink-66); transition: color .2s; }
.sb-row > a:hover { color: var(--ink); }
.sb-no { font-variant-numeric: tabular-nums; font-weight: 600; }
.sb-ch.active .sb-row > a { color: var(--ink); font-weight: 600; }
.sb-ch.active .sb-no { color: var(--blue); }
.sb-tog { flex: 0 0 auto; width: 30px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; color: var(--ink-66); }
.sb-tog::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translate(-50%, -70%) rotate(45deg); transition: transform .3s var(--ease); }
.sb-ch.open .sb-tog::before { transform: translate(-50%, -30%) rotate(-135deg); }
.sb-tog:hover { color: var(--ink); }
.sb-subs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.sb-ch.open .sb-subs { grid-template-rows: 1fr; }
.sb-subs > div { overflow: hidden; min-height: 0; }
.sb-subs ol { list-style: none; margin: 0 0 0 9px; padding: 0 0 12px 0; position: relative; }
.sb-subs ol::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 14px; width: 1px; background: var(--rule-soft); }
.sb-subs a { display: grid; grid-template-columns: 32px 1fr; padding: 5px 0 5px 18px; font-size: 13.5px; line-height: 1.35; color: var(--ink-66); text-decoration: none; position: relative; transition: color .2s; }
.sb-subs a::before { content: ""; position: absolute; left: -3px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-soft); transition: background .2s, box-shadow .2s; }
.sb-subs a:hover { color: var(--ink); }
.sb-subs a.active { color: var(--ink); font-weight: 600; }
.sb-subs a.active::before { background: var(--ink); box-shadow: none; }
.sb-subs a span { font-variant-numeric: tabular-nums; }
.sb-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.sb-ch.active .sb-prog { opacity: 1; }
.sb-foot { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-66); }
.scrim { display: none; }

.body { min-width: 0; }
.chapter { border-bottom: 1px solid var(--rule-soft); padding: 0 var(--gut) var(--sp); }
.chapter:last-child { border-bottom: 0; }
.ch-head { padding: var(--sp) 0 clamp(28px, 3vw, 40px); margin: 0 0 var(--sp-head); border-bottom: 1px solid var(--rule); }
.ch-kicker { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-66); margin-bottom: 20px; }
.ch-title { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(18px, 2.4vw, 34px); align-items: end; }
.ch-no { font-family: var(--bold); font-weight: 800; font-size: clamp(5rem, 10vw, 9rem); line-height: .74; color: var(--ink); font-variant-numeric: tabular-nums; }
.ch-title h2 { font-size: clamp(2.5rem, 4.9vw, 4.7rem); line-height: .86; max-width: 16ch; padding-bottom: .02em; }

.ch-body { display: flex; flex-direction: column; gap: 1.05em; }
.ch-body > p { max-width: 70ch; color: var(--ink-86); text-wrap: pretty; }
.ch-body > p b { color: var(--ink); font-weight: 650; }
.ch-body h3 {
  margin-top: 1.4em;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: 8px;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: .95;
  max-width: 980px;
}
.ch-body h3 .h3-t { max-width: 22ch; }
.ch-body h3 .h3-no { font: 650 14px/1 var(--sans); letter-spacing: 0; color: var(--blue); font-variant-numeric: tabular-nums; }
.ch-body > h3:first-child { margin-top: 0; }

/* czarna wstawka z kluczowym wynikiem */
.keybox { background: var(--ink); color: #fff; margin: calc(-1 * var(--sp-head)) calc(-1 * var(--gut)) var(--sp-head); padding: clamp(26px, 3.4vw, 44px) var(--gut); display: grid; gap: 24px; }
.keybox .kb-lbl { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.kb-row { --kbp: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule-dark); border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); margin: 0 calc(-1 * var(--kbp)); }
.kb-row.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kb-row > div { background: var(--ink); padding: 20px var(--kbp) 22px; display: flex; flex-direction: column; gap: 10px; }
.kb-row p b { display: flex; align-items: center; color: #fff; font-weight: 650; margin-bottom: 2px; }
.kb-num { font-family: var(--bold); font-weight: 800; font-size: clamp(3rem, 5vw, 4.6rem); line-height: .82; font-variant-numeric: tabular-nums; }
.kb-num.red { color: #FF4B4B; }
.kb-num.blue { color: #6FA8E8; }
.kb-num.yellow { color: var(--yellow); }
.kb-row p { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .82); max-width: 34ch; }
.keybox .kb-say { font-size: clamp(1.15rem, 1.65vw, 1.5rem); line-height: 1.35; letter-spacing: -0.012em; color: #fff; max-width: 56ch; text-wrap: pretty; }
.keybox > p { font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .84); max-width: 70ch; }
.kb-swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 1px; }

/* ---------- ryciny i tabele ---------- */
.ch-body figure { margin: 1em 0; padding: 0; border-top: 1px solid var(--rule); max-width: 980px; display: flex; flex-direction: column; gap: 16px; font-family: var(--sans); }
.ch-body figcaption { padding-top: 12px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.fig-no { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-66); padding-top: 2px; }
.fig-cap { font-weight: 600; text-wrap: pretty; max-width: 72ch; }
figure .src { font-size: 13px; line-height: 1.45; color: var(--ink-66); border-top: 1px solid var(--rule-soft); padding-top: 9px; }
.ch-body figure > *:not(figcaption):not(.src) { min-width: 0; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-86); }
.legend span { display: inline-flex; align-items: center; cursor: default; transition: opacity .2s; }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 7px; flex: 0 0 auto; }
figure[data-hl] .legend span { opacity: .4; }
figure[data-hl] .legend span.on { opacity: 1; }

/* paski 100% */
.srows { display: flex; flex-direction: column; gap: 10px; }
.srow { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr) 62px; align-items: center; gap: 14px; font-size: 14.5px; line-height: 1.3; }
.sbar { display: flex; height: 32px; gap: 2px; transform-origin: 0 50%; }
.seg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 650; color: var(--ink); overflow: hidden; min-width: 0; font-variant-numeric: tabular-nums; transition: opacity .2s, filter .2s; cursor: default; }
.seg.dark { color: #fff; }
.seg:hover, .seg:focus { filter: brightness(1.12); outline: none; }
figure[data-hl] .seg { opacity: .18; }
figure[data-hl="carry-on"] .seg[data-k="carry-on"],
figure[data-hl="slow-down"] .seg[data-k="slow-down"],
figure[data-hl="stop"] .seg[data-k="stop"],
figure[data-hl="its-me"] .seg[data-k="its-me"] { opacity: 1; }
.tail { font-size: 13px; color: var(--ink-66); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* paski porównawcze */
.cmp { display: flex; flex-direction: column; gap: 9px; }
.crow { display: grid; grid-template-columns: minmax(150px, 290px) minmax(0, 1fr) 132px; gap: 14px; align-items: center; font-size: 14.5px; line-height: 1.3; }
.track { height: 24px; background: var(--paper-warm); position: relative; overflow: hidden; cursor: default; }
.fill { position: absolute; inset: 0 auto 0 0; background: var(--blue); transform-origin: 0 50%; }
.fill.rest { background: var(--rest); }
.track:hover .fill, .track:focus .fill { filter: brightness(1.1); }
.track:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.val { font-size: 13px; text-align: right; color: var(--ink-66); white-space: nowrap; font-variant-numeric: tabular-nums; }
.val b { color: var(--ink); font-weight: 650; font-size: 14.5px; }

/* wejście wykresów: widoczne od razu, animacja tylko wzmacnia */
.js .fig-anim .sbar, .js .fig-anim .fill { transform: scaleX(0); }
.js .fig-anim.in .sbar, .js .fig-anim.in .fill { transform: none; transition: transform 1s var(--ease); }
.js .fig-anim.in .crow:nth-child(2) .fill { transition-delay: .05s; }
.js .fig-anim.in .crow:nth-child(3) .fill, .js .fig-anim.in .srow:nth-child(2) .sbar { transition-delay: .1s; }
.js .fig-anim.in .crow:nth-child(4) .fill, .js .fig-anim.in .srow:nth-child(3) .sbar { transition-delay: .15s; }
.js .fig-anim.in .crow:nth-child(5) .fill, .js .fig-anim.in .srow:nth-child(4) .sbar { transition-delay: .2s; }
.js .fig-anim.in .crow:nth-child(n+6) .fill { transition-delay: .25s; }

.tablebox { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px 12px 0; text-align: left; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
th { font-size: 12.5px; font-weight: 650; letter-spacing: .02em; color: var(--ink-66); border-bottom-color: var(--rule); vertical-align: bottom; }
td.n, th[style*="right"] { text-align: right; white-space: nowrap; }
table:not(.heat) th:first-child, table:not(.heat) td:first-child { padding-left: 12px; }
table:not(.heat) th:last-child, table:not(.heat) td:last-child { padding-right: 12px; }
td.n { font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: var(--paper-warm); }
table.heat { border-collapse: separate; border-spacing: 2px; min-width: 760px; }
table.heat th, table.heat td { border: 0; }
table.heat thead th { font-size: 12px; line-height: 1.25; padding: 0 4px 8px; text-align: center; }
table.heat thead th:first-child, table.heat tbody th { text-align: left; }
table.heat tbody th { font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 8px 10px 8px 0; white-space: nowrap; }
table.heat td { text-align: center; padding: 10px 4px; font-size: 13.5px; font-weight: 600; cursor: default; }
table.heat td.flag { box-shadow: inset 0 0 0 2px var(--ink); }
table.heat tbody tr:hover td { background-color: inherit; }
.appx td:nth-child(3), .appx th:nth-child(3) { text-align: right; white-space: nowrap; }
.appx td:nth-child(1) { white-space: nowrap; color: var(--ink-66); }

/* definicje */
dl.terms { margin: .8em 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); max-width: 980px; }
dl.terms > div { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
dl.terms dt { font-weight: 650; font-size: 15.5px; }
dl.terms dd { margin: 0; color: var(--ink-86); font-size: 15.5px; line-height: 1.55; }

/* rekomendacje */
ul.recs { list-style: none; counter-reset: rec; margin: 1em 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); max-width: 980px; }
ul.recs li { counter-increment: rec; background: var(--paper); padding: var(--cell) var(--cell) var(--cell) 72px; position: relative; font-size: 15.5px; line-height: 1.55; color: var(--ink-86); }
ul.recs li::before { content: counter(rec, decimal-leading-zero); position: absolute; left: var(--cell); top: 22px; font-family: var(--bold); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--blue); }

/* karty postaci */
.tcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); margin: 1em 0; max-width: 1120px; }
.tcard { background: var(--paper); min-width: 0; display: flex; flex-direction: column; padding-bottom: var(--cell); }
.tcard > header { border-top: 10px solid var(--tc); padding: var(--cell) var(--cell) 6px; display: flex; flex-direction: column; gap: 8px; }
.tcard h4 { font-size: clamp(2.2rem, 3vw, 2.9rem); line-height: .86; }
.tcard .tn { font-size: 13.5px; font-weight: 600; color: var(--ink-66); font-variant-numeric: tabular-nums; }
.tcard .tag { font-size: 16px; line-height: 1.45; color: var(--ink); max-width: 44ch; }
.cbars { margin: 14px var(--cell) 4px; padding: 14px 0 6px; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 7px; }
.cbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 130px) 42px; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.3; }
.cbar .ct { position: relative; height: 10px; background: var(--paper-warm); }
.cbar .ct i { position: absolute; left: 0; top: 0; bottom: 0; }
.cbar .ct b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); margin-left: -1px; }
.cbar .cv { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.clegend { font-size: 12.5px; color: var(--ink-66); margin: 4px 0 4px; }
.tcard dl { margin: 0; padding: 4px var(--cell) 0; }
.tcard dt { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-66); margin-top: 16px; }
.tcard dd { margin: 5px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-86); }

/* mapa typów */
.tmap { width: 100%; height: auto; max-width: 660px; margin: 0 auto; }
.tmap .tmn { font: 650 13px var(--sans); fill: var(--ink); }
.tmap .tms { font: 11px var(--sans); fill: var(--ink-66); }
.tmap .tma { font: 12px var(--sans); fill: var(--ink-66); }
.tmap .tmt { font: 11px var(--sans); fill: var(--ink-66); }
.tmap .tml { font: italic 11.5px var(--sans); fill: var(--ink-86); }

/* tabele 4 i 6: cieniowane komórki */
table.shade { border-collapse: separate; border-spacing: 2px; }
table.shade th, table.shade td { border-bottom: 0; }
table.shade thead th { border-bottom: 1px solid var(--rule); }
table.shade td.n { padding: 10px 12px; font-weight: 600; cursor: default; }
table.shade tbody tr:hover td:not(.n) { background: var(--paper-warm); }
.shade-note { font-size: 13px; color: var(--ink-66); margin-top: -6px; }

/* tabela 5 jako mapa Europy */
.regmap { display: flex; flex-direction: column; gap: 18px; }
.rm-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-tabs button { font: 600 13.5px/1.2 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-soft); padding: 9px 12px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.rm-tabs button:hover { border-color: var(--ink); }
.rm-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.rm-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.rm-map { border-right: 1px solid var(--rule-soft); padding: 14px 14px 14px 0; }
.rm-map svg { width: 100%; height: auto; display: block; }
.rm-map path { fill: #F1F0EC; stroke: #fff; stroke-width: .9px; vector-effect: non-scaling-stroke; transition: fill .35s var(--ease), opacity .2s; }
.rm-map path.out { fill: #F1F0EC; }
.rm-map path.na { fill: #DAD8D2; }
.rm-map path.sig { stroke: var(--ink); stroke-width: 1.8px; }
.regmap[data-hl] .rm-map path[data-r]:not(.hl) { opacity: .35; }
.rm-v, .rm-vh { font: 700 30px var(--sans); pointer-events: none; font-variant-numeric: tabular-nums; }
.rm-v { fill: var(--ink); }
.rm-vh { fill: #fff; stroke: #fff; stroke-width: 7px; stroke-linejoin: round; }
.rm-v.sig { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.rm-side { padding: 16px 0 16px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rm-head { font-size: 14px; line-height: 1.4; color: var(--ink-66); }
.rm-head b { color: var(--ink); font-weight: 650; }
.rm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.rm-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--rule-soft); font-size: 14.5px; line-height: 1.3; cursor: default; transition: background .2s; }
.rm-list li.hl { background: var(--paper-warm); }
.rm-list li.sig .rm-sw { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.rm-sw { width: 14px; height: 14px; }
.rm-n small { color: var(--ink-66); font-size: 13px; }
.rm-p { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rm-p b { font-size: 15.5px; font-weight: 650; margin-right: 8px; }
.rm-p small { font-size: 13px; color: var(--ink-66); }
.rm-key { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-66); margin-top: auto; padding-top: 6px; }
.rm-grad { display: flex; flex-direction: column; gap: 4px; max-width: 220px; }
.rm-grad i { display: block; height: 10px; }
.rm-grad span { display: flex; justify-content: space-between; }
.rm-grad b { font-weight: 600; color: var(--ink-86); font-variant-numeric: tabular-nums; }
.rm-k { display: flex; align-items: center; gap: 9px; }
.rm-k i { width: 14px; height: 14px; flex: 0 0 auto; }
.rm-k .k-sig { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.rm-k .k-na { background: #DAD8D2; }
.rm-k .k-out { background: #F1F0EC; box-shadow: inset 0 0 0 1px var(--rule-soft); }
details.rm-table { border-top: 1px solid var(--rule-soft); padding-top: 4px; }
details.rm-table summary { cursor: pointer; font-size: 14.5px; font-weight: 600; padding: 10px 0; list-style: none; display: inline-flex; align-items: center; gap: 10px; }
details.rm-table summary::-webkit-details-marker { display: none; }
details.rm-table summary::before { content: "+"; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); font-weight: 500; }
details.rm-table[open] summary::before { content: "–"; }
details.rm-table .tablebox { margin-top: 8px; }

/* mapa typów (rycina 14, rysowana od nowa w mapy.py) */
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tmap-wrap { min-width: 640px; max-width: 860px; }
.tmap2 { width: 100%; height: auto; display: block; }
.tmap2 .tg { stroke: rgba(11, 11, 12, .08); }
.tmap2 .ta { stroke: rgba(11, 11, 12, .45); }
.tmap2 .tt { font: 12px var(--sans); fill: var(--ink-66); font-variant-numeric: tabular-nums; }
.tmap2 .tx { font: 13px var(--sans); fill: var(--ink-66); }
.tmap2 .tr { fill: none; stroke: #3A3B3F; stroke-width: 1.8; }
.tmap2 .tb { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.tmap2 .tbn { font: 700 13px var(--sans); fill: #fff; }
.tmap2 .tn, .tmap2 .tnh { font: 700 14px var(--sans); }
.tmap2 .ts, .tmap2 .tsh { font: 12px var(--sans); font-variant-numeric: tabular-nums; }
.tmap2 .tn { fill: var(--ink); }
.tmap2 .ts { fill: #3A3B3F; }
.tmap2 .tnh, .tmap2 .tsh { fill: #fff; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.tmap-legend { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 14.5px; line-height: 1.35; border-top: 1px solid var(--rule-soft); }
.tmap-legend li { display: inline-flex; align-items: center; gap: 10px; }
.tl-badge { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tl-line { flex: 0 0 auto; width: 28px; height: 0; border-top: 2px solid #3A3B3F; }
.tl-line.dashed { border-top-style: dashed; }

/* dymek */
#tip {
  position: fixed; z-index: var(--z-tip); pointer-events: none;
  background: var(--ink); color: #fff;
  font: 13px/1.4 var(--sans);
  padding: 8px 11px; max-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

/* ---------- stopka ---------- */
.foot .block { padding-bottom: 44px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; }
.foot h2 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule-dark); border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.foot-cols > div { background: var(--ink); padding: 18px 20px 22px 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .8); display: flex; flex-direction: column; gap: 8px; }
.foot-cols > div + div { padding-left: 20px; }
.foot-cols a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--yellow); align-self: flex-start; }
.foot-cols a:hover { color: var(--yellow); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 34px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- responsywność ---------- */
@media (max-width: 1180px) {
  :root { --side: 260px; }
  .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger > div:nth-child(4)::before { display: none; }
  .gives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .kb-row.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-link { display: none; }
  .toc-btn { display: inline-block; }
  .report { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    top: var(--top);
    left: 0;
    bottom: 0;
    height: auto;
    width: min(88vw, 360px);
    transform: translateX(-102%);
    transition: transform .4s var(--ease), visibility 0s .4s;
    visibility: hidden;
    z-index: var(--z-drawer);
    box-shadow: 12px 0 40px rgba(0, 0, 0, .14);
  }
  body.toc-open .sidebar { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .scrim { display: block; position: fixed; inset: var(--top) 0 0 0; background: rgba(11, 11, 12, .38); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: var(--z-scrim); }
  body.toc-open .scrim { opacity: 1; pointer-events: auto; }
  .hero-split, .block-head, .why, .foot-grid, .lead-charts { grid-template-columns: minmax(0, 1fr); }
  .hero-text { border-right: 0; border-top: 1px solid var(--rule-soft); }
  .hero-film { order: -1; }
  .findings li { grid-template-columns: 64px minmax(0, 1fr); }
  .block-head.fhead { grid-template-columns: minmax(0, 1fr); }
  .block-head.fhead h2, .block-head.fhead p { grid-column: auto; }
  .findings .ftxt { grid-column: 2; }
  .findings .fno { font-size: 2.8rem; }
  .trow-main { grid-template-columns: 64px minmax(0, 1fr) 48px; }
  .trow-stat { grid-column: 2; grid-row: 2; }
  .trow-tog { grid-column: 3; grid-row: 1; }
  .trow-subs ol { padding-left: 112px; }
  .tcards { grid-template-columns: minmax(0, 1fr); }
  .rm-body { grid-template-columns: minmax(0, 1fr); }
  .rm-map { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding: 12px 0; }
  .rm-side { padding: 14px 0; }
}

@media (max-width: 720px) {
  :root { --cell: 20px; }
  .rm-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .rm-tabs::-webkit-scrollbar { display: none; }
  .rm-tabs button { flex: 0 0 auto; }
  .hide-sm { display: none; }
  body { font-size: 17px; }
  .brand span { display: none; }
  .now { text-align: left; font-size: 13px; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta > div + div { padding-left: var(--gut); }
  .hero-meta > div:nth-child(even) { padding-left: var(--cell); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger > div + div::before { left: 28px; top: -7px; transform: rotate(135deg); }
  .ledger > div:nth-child(4)::before { display: block; }
  .ledger .big { font-size: 3.4rem; }
  .gives { grid-template-columns: minmax(0, 1fr); }
  .msg-legend { grid-template-columns: minmax(0, 1fr); }
  .tabs button { padding: 11px 12px; font-size: 13.5px; }
  .trow-main { grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 6px 14px; padding: 16px 10px; }
  .toc-part > h3 { padding-left: 10px; padding-right: 10px; }
  .trow-no { font-size: 2.3rem; }
  .trow-subs ol { padding: 0 10px 16px; grid-template-columns: minmax(0, 1fr); }
  .ch-title { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ch-no { font-size: 4.6rem; }
  .ch-kicker { flex-direction: column; gap: 4px; }
  .ch-body figcaption { grid-template-columns: minmax(0, 1fr); }
  .srow { grid-template-columns: minmax(0, 1fr) 56px; }
  .srow .sbar { grid-column: 1 / -1; grid-row: 2; }
  .crow { grid-template-columns: minmax(0, 1fr) 118px; gap: 6px 10px; }
  .crow .track { grid-column: 1 / -1; grid-row: 2; }
  dl.terms > div { grid-template-columns: minmax(0, 1fr); }
  ul.recs { grid-template-columns: minmax(0, 1fr); }
  ul.recs li { padding-left: 62px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-cols > div + div { padding-left: 0; }
  .kb-row { --kbp: 16px; }
  .kb-row.c3 { grid-template-columns: minmax(0, 1fr); }
  .cbar { grid-template-columns: minmax(0, 1fr) 90px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .fig-anim .sbar, .js .fig-anim .fill, .js .days.fig-anim .bar { transform: none; }
}

@media print {
  .topbar, .sidebar, .scrim, .tabs, .trow-tog, .hero-cta { display: none !important; }
  body { padding-top: 0; }
  .report { grid-template-columns: minmax(0, 1fr); }
  .js .fig-anim .sbar, .js .fig-anim .fill { transform: none; }
}

/* ---------- SEO / linkowanie wewnętrzne (8.11.2026) ---------- */
.brand a { color: inherit; text-decoration: none; }
.brand .brand-home:hover, .brand .brand-title:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.foot .foot-title { font-family: var(--bold); font-weight: 800; text-transform: uppercase; letter-spacing: .014em; word-spacing: .05em; line-height: .9; margin: 0; text-wrap: balance; font-size: clamp(2.6rem, 5.2vw, 4.8rem); color: #fff; }
.foot .foot-title em { font-family: var(--orn); font-weight: 400; font-style: normal; text-transform: none; }
.foot-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.foot-card { background: var(--ink); padding: 18px 20px 22px 0; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.55; }
.foot-card + .foot-card { padding-left: 20px; }
.foot-card b { font-family: var(--bold); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1; color: #fff; letter-spacing: .02em; }
.foot-card .go { color: #fff; border-bottom: 1px solid var(--yellow); align-self: flex-start; }
.foot-card:hover .go { color: var(--yellow); }
@media (max-width: 900px) { .top-books { display: none; } }
@media (max-width: 720px) { .brand .brand-title { display: none; } }
@media (max-width: 620px) { .foot-more { grid-template-columns: minmax(0, 1fr); } .foot-card + .foot-card { padding-left: 0; } }

/* ---------- FAQ (8.11.2026) ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule-soft); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.faq-item { background: #fff; padding: 26px var(--cell) 28px 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item:nth-child(even) { padding-left: var(--cell); }
.faq-item h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: .95; max-width: 24ch; }
.faq-item p { font-size: 16.5px; line-height: 1.55; color: var(--ink-86); max-width: 62ch; margin: 0; }
.faq-item a { align-self: flex-start; font: 600 14px/1.3 var(--sans); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--yellow); }
.faq-item a:hover { color: var(--blue); }
@media (max-width: 720px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-item:nth-child(even) { padding-left: 0; } }

/* ---------- listy: zapis na The Running Order (23.11.2026) ---------- */
.letters { background: var(--soft); }
.letters .block-head h2 em { font-family: var(--orn); font-weight: 400; text-transform: none; }
.letters-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; }
.letters-form input {
  flex: 1 1 260px; min-width: 0; font: 400 17px/1.2 var(--sans); letter-spacing: -0.01em;
  padding: 14px 16px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 0;
}
.letters-form input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.letters-form .btn { cursor: pointer; }
.letters-note { margin-top: 14px; font-size: 14px; color: var(--ink-66); }
.letters-note a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
