/* Portret — theme of "Polek i Polaków Portret Własny" (polska.tkm.cc)
   Editorial infographic look: warm paper, ink navy, Polish red accent.
   The palette is mirrored in tools/figures.py (SVG charts) — keep in step. */

:root {
  --paper: #fbf9f4;
  --card: #ffffff;
  --ink: #151b2d;
  --ink-2: #454b5c;
  --muted: #8a909c;
  --line: #e2ded4;
  --line-2: #ece8df;
  --red: #d7263d;
  --red-dark: #a81c2f;
  --red-soft: #f4cdd2;
  --navy: #24355e;
  --teal: #1d8f86;
  --gold: #e2a836;
  --purple: #6b4fbb;
  --green: #3a8f4f;
  --hero: #151b2d;
  --hero-2: #1f2a4a;
  --shadow: 0 1px 2px rgba(21, 27, 45, .06), 0 12px 32px -18px rgba(21, 27, 45, .25);
  --radius: 16px;
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, .92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; gap: 20px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand__text { overflow: hidden; text-overflow: ellipsis; }
.brand__mark { display: inline-flex; align-items: flex-end; gap: 2px; width: 26px; height: 26px; padding: 3px; background: var(--ink); border-radius: 6px; }
.brand__mark i { display: block; width: 5px; background: var(--paper); border-radius: 1px; }
.brand__mark i:nth-child(1) { height: 9px; }
.brand__mark i:nth-child(2) { height: 18px; background: var(--red); }
.brand__mark i:nth-child(3) { height: 13px; }
.brand__text { font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: none; }
@media (max-width: 480px) { .site-nav { gap: 10px; } .site-header__row { gap: 12px; } .brand__mark { flex: none; } }
.site-header__row { position: relative; }
/* chapters menu: a pure-CSS <details> dropdown; the summary grows a fixed
   full-screen ::before while open, so a click anywhere outside closes it */
.chapters-menu { position: static; }
.chapters-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; user-select: none; }
.chapters-menu summary::-webkit-details-marker { display: none; }
.chapters-menu summary:hover { border-color: var(--ink); }
.chapters-menu__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.chapters-menu__chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.chapters-menu[open] summary { position: relative; z-index: 62; background: var(--ink); color: #fff; border-color: var(--ink); }
.chapters-menu[open] .chapters-menu__count { background: var(--red); }
.chapters-menu[open] .chapters-menu__chev { transform: translateY(2px) rotate(-135deg); }
.chapters-menu[open] summary::before { content: ""; position: fixed; inset: 0; z-index: 60; cursor: default; }
/* backdrop-filter makes the header the containing block of fixed descendants,
   which would confine the click-outside layer to the header bar — lift it while open */
.site-header:has(.chapters-menu[open]) { backdrop-filter: none; background: var(--paper); }
.chapters-menu__panel { position: absolute; top: calc(100% + 2px); right: 16px; z-index: 61; width: min(820px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(21, 27, 45, .18); padding: 14px; max-height: calc(100vh - 80px); overflow: auto; }
@media (min-width: 900px) { .chapters-menu__panel { right: 32px; } }
.chapters-menu__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 560px) { .chapters-menu__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .chapters-menu__list { grid-template-columns: 1fr 1fr 1fr; } }
.chapters-menu__list a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.25; }
.chapters-menu__list a b { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; font-weight: 800; }
.chapters-menu__list a:hover { background: var(--card); }
.chapters-menu__list a[aria-current] { background: var(--ink); color: #fff; }
.chapters-menu__list a[aria-current] b { background: var(--red); color: #fff; }
.chapters-menu__util { list-style: none; margin: 12px 0 0; padding: 12px 2px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; }
.chapters-menu__util a { text-decoration: none; color: var(--ink-2); }
.chapters-menu__util a:hover { color: var(--red); }
/* chapter strip: numbered pills under the header on chapter pages; wraps, never overflows */
.chapter-strip { background: var(--card); border-bottom: 1px solid var(--line); }
.chapter-strip__row { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.chapter-strip ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chapter-strip li a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.chapter-strip li a:hover { background: var(--ink); color: #fff; }
.chapter-strip li a[aria-current] { background: var(--red); color: #fff; }
.chapter-strip__arrow { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; background: var(--paper); }
.chapter-strip__arrow:hover { border-color: var(--ink); }
.chapter-strip__arrow.is-off { opacity: .3; }
@media (max-width: 480px) { .chapter-strip ol { gap: 4px; } .chapter-strip li a, .chapter-strip__arrow { width: 27px; height: 27px; font-size: 12px; } }
.util-links { list-style: none; margin: 0; padding: 0; display: none; gap: 14px; font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.util-links a { text-decoration: none; color: var(--ink-2); }
.util-links a:hover { color: var(--red); }
.util-links .pdf-link { padding: 5px 11px; border-radius: 8px; background: var(--red); color: #fff; }
.util-links .pdf-link:hover { background: var(--red-dark); color: #fff; }
@media (min-width: 760px) { .util-links { display: flex; } }

/* ---------------------------------------------------------------- home hero */
.home-hero {
  background: radial-gradient(1200px 600px at 85% -10%, var(--hero-2), transparent 60%), var(--hero);
  color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.home-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(90deg, #fff 0 50%, var(--red) 50% 100%);
}
.home-hero__kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; margin-bottom: 18px; }
.home-hero__title { font-size: clamp(42px, 7.4vw, 96px); font-weight: 900; letter-spacing: -.03em; line-height: .98; margin: 0 0 22px; }
.home-hero__title span { display: block; }
.home-hero__title span:nth-child(2) { color: var(--red); }
.home-hero__sub { max-width: 54ch; font-size: clamp(18px, 2vw, 22px); color: #d9dce6; margin-bottom: 30px; }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 800; text-decoration: none; font-size: 16px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #ff3b55; color: #fff; }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------------------------------------------------------------- tiles */
.home-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: -26px; position: relative; z-index: 2; }
@media (min-width: 700px) { .home-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .home-tiles { grid-template-columns: repeat(6, 1fr); } }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 14px; box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.tile--red { border-top-color: var(--red); }
.tile--teal { border-top-color: var(--teal); }
.tile--gold { border-top-color: var(--gold); }
.tile--purple { border-top-color: var(--purple); }
.tile--green { border-top-color: var(--green); }
.tile__value { font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 0 0 8px; color: var(--ink); }
.tile--red .tile__value { color: var(--red); }
.tile__label { font-weight: 700; font-size: 14px; line-height: 1.3; margin: 0; }
.tile__sub { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; line-height: 1.3; }
.tile__link { position: absolute; inset: 0; border-radius: inherit; }
.tile:has(.tile__link):hover { border-color: var(--red); }

/* ---------------------------------------------------------------- home body */
.home-intro { margin-top: 52px; max-width: 78ch; font-size: 19px; }
.home-intro p:first-child::first-letter { font-size: 3.2em; font-weight: 900; float: left; line-height: .85; padding: 6px 10px 0 0; color: var(--red); }
.home-chapters { margin-top: 56px; }
.home-chapters__h { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 18px; }
.chapter-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.chapter-card a {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 22px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease;
}
.chapter-card a:hover { transform: translateY(-2px); border-color: var(--red); }
.chapter-card__no { font-size: 40px; font-weight: 900; letter-spacing: -.04em; color: var(--red); line-height: 1; }
.chapter-card.tone-dark .chapter-card__no { color: var(--navy); }
.chapter-card.tone-shadow .chapter-card__no { color: var(--ink-2); }
.chapter-card__title { font-size: 21px; font-weight: 800; line-height: 1.2; }
.chapter-card__teaser { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.chapter-card__stat { margin-top: auto; font-size: 14px; color: var(--ink-2); padding-top: 10px; border-top: 1px dashed var(--line); }
.chapter-card__stat b { font-size: 22px; color: var(--ink); font-weight: 900; letter-spacing: -.02em; margin-right: 4px; }
.chapter-card__count { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.home-closing { margin: 56px auto 0; max-width: 78ch; }

/* ---------------------------------------------------------------- chapter hero */
.chapter-hero { background: var(--hero); color: #fff; padding: 52px 0 40px; position: relative; }
.chapter-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, #fff 0 50%, var(--red) 50% 100%); }
.chapter-hero.tone-shadow { background: #2a2f3d; }
.chapter-hero.tone-shadow::after { background: linear-gradient(90deg, #fff 0 50%, var(--muted) 50% 100%); }
.chapter-hero__kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.chapter-hero__title { font-size: clamp(34px, 5vw, 62px); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; max-width: 20ch; }
.chapter-hero__lead { font-size: clamp(18px, 2vw, 22px); color: #d9dce6; max-width: 62ch; margin-top: 16px; }
.chapter-hero__intro { max-width: 72ch; color: #c9cdd9; font-size: 17px; }
.chapter-hero__intro a { color: #fff; }
.figure-toc { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.figure-toc__h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.figure-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); counter-reset: fig; }
.figure-toc li { counter-increment: fig; font-size: 15px; }
.figure-toc li::before { content: counter(fig) "  "; color: var(--red); font-weight: 900; }
.figure-toc a { color: #fff; text-decoration: none; }
.figure-toc a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- figure card */
.chapter-body { padding: 36px 20px 20px; display: grid; gap: 28px; }
@media (min-width: 900px) { .chapter-body { padding: 44px 32px 24px; } }
.figure-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 36px); scroll-margin-top: 80px;
}
.figure-card__head { margin-bottom: 6px; }
.figure-card__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 800; margin: 0 0 6px; }
.figure-card__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.figure-card__title a { color: inherit; text-decoration: none; }
.figure-card__title a:hover { color: var(--red); }
.figure-card__chart { margin: 10px 0 8px; }
.figure-card__chart svg { display: block; width: 100%; height: auto; }
.figure-card__chart svg .pp-figure, .figure-card__chart svg { font-family: var(--font); }
.figure-card__missing { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.key-facts { list-style: none; margin: 8px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.key-facts li {
  flex: 1 1 220px; padding: 12px 14px 12px 16px; border-left: 4px solid var(--red); background: var(--paper);
  border-radius: 8px; font-weight: 700; font-size: 15px; line-height: 1.35;
}
.figure-card__commentary { max-width: none; font-size: 17px; color: var(--ink); }
@media (min-width: 900px) { .figure-card__commentary { columns: 2; column-gap: 40px; } .figure-card__commentary p { break-inside: avoid; } }
.figure-card__commentary p:last-child { margin-bottom: 0; }
.figure-card__foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; gap: 20px; align-items: flex-start; }
.figure-card__sources { flex: 1; font-size: 13.5px; color: var(--ink-2); }
.figure-card__sources-h { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 0 0 4px; }
.figure-card__sources ol { margin: 0; padding-left: 18px; }
.figure-card__sources li { margin-bottom: 2px; }
.figure-card__sources a { color: var(--navy); word-break: break-word; }
.src-date { color: var(--muted); }
.figure-card__footnote { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.figure-card__tools { display: flex; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.figure-card__tools a { color: var(--muted); text-decoration: none; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.figure-card__tools a:hover { color: var(--red); border-color: var(--red); }

/* text module */
.text-module { max-width: 76ch; font-size: 18px; }
.text-module--note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; max-width: none; font-size: 17px; }
.text-module__title { font-size: 24px; font-weight: 800; }

/* pager */
.chapter-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 20px 60px; }
.chapter-pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.chapter-pager a:hover { border-color: var(--red); }
.chapter-pager small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.chapter-pager span { font-weight: 800; font-size: 18px; }
.chapter-pager__next { text-align: right; align-items: flex-end; }

/* ---------------------------------------------------------------- prose pages */
.prose-page { padding: 48px 20px 64px; max-width: 860px; }
.prose-page__head { margin-bottom: 28px; }
.kicker { color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.prose-page h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -.03em; }
.lead { font-size: 20px; color: var(--ink-2); }
.prose { font-size: 17.5px; }
.prose h2 { font-size: 28px; font-weight: 800; margin-top: 1.6em; }
.prose h3 { font-size: 21px; font-weight: 800; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1em; border-left: 4px solid var(--red); color: var(--ink-2); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.sources-chapter { margin-top: 34px; }
.sources-chapter h2 { font-size: 24px; }
.sources-chapter h2 a, .sources-chapter h3 a { text-decoration: none; color: inherit; }
.sources-chapter h3 { font-size: 16px; margin-top: 1.2em; color: var(--ink-2); }
.sources-chapter ol { font-size: 14.5px; padding-left: 20px; }
.src-url { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }
.sources-total { margin-top: 30px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 40px; background: var(--hero); color: #c9cdd9; padding: 44px 0 40px; font-size: 14.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand { color: #fff; font-weight: 800; font-size: 16px; }
.site-footer__meta { color: var(--muted); font-size: 13px; }
.site-footer__h { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--gold); }
.site-footer ol, .site-footer ul { margin: 0; padding-left: 18px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 4px; }

/* ---------------------------------------------------------------- print document (tpl-print) + @media print */
.tpl-print .site-main { max-width: none; }
.print-doc { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.print-cover { padding: 80px 0 40px; }
.print-cover__kicker { color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; }
.print-cover h1 { font-size: 72px; font-weight: 900; letter-spacing: -.035em; line-height: .98; }
.print-cover h1 span { display: block; }
.print-cover h1 span:nth-child(2) { color: var(--red); }
.print-cover__sub { font-size: 22px; color: var(--ink-2); max-width: 60ch; }
.print-cover__meta { color: var(--muted); font-size: 14px; }
.print-tiles { margin-top: 30px; }
.print-toc { padding: 30px 0; }
.print-toc h2 { font-size: 28px; }
.print-toc > ol { padding-left: 22px; font-weight: 800; font-size: 18px; }
.print-toc ol ol { font-weight: 400; font-size: 14.5px; color: var(--ink-2); padding-left: 18px; margin: 4px 0 10px; }
.print-chapter { border-radius: 14px; padding: 36px 36px 30px; margin: 30px 0 20px; }
.print-chapter::after { display: none; }
.print-doc .chapter-body { padding: 0; }
.print-about { margin: 50px 0; }

@media print {
  @page { size: A4; margin: 12mm 12mm 14mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .site-header, .site-footer, .chapter-strip, .chapter-pager, .figure-card__tools, .figure-toc, .home-hero__cta { display: none !important; }
  .print-doc { max-width: none; padding: 0; }
  .print-cover { page-break-after: always; padding-top: 40mm; }
  .print-toc { page-break-after: always; }
  .print-chapter, .chapter-hero { page-break-before: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; border-radius: 0; }
  .figure-card { page-break-inside: avoid; break-inside: avoid; box-shadow: none; border: 1px solid #ccc; margin: 0 0 8mm; padding: 8mm; }
  .figure-card__chart svg { max-height: 150mm; width: auto; max-width: 100%; margin: 0 auto; }
  .figure-card__commentary { columns: 2; column-gap: 8mm; font-size: 10pt; }
  .key-facts li { font-size: 10pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .figure-card__sources { font-size: 8.5pt; }
  .figure-card__sources a::after { content: " ‹" attr(href) "›"; color: #666; font-size: 7.5pt; word-break: break-all; }
  .tile, .chapter-card a { box-shadow: none; }
  a { color: inherit; }
}

/* ---------------------------------------------------------------- a11y + language switch */
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.lang-switch { margin-left: 6px; flex-shrink: 0; display: inline-grid; place-items: center; min-width: 38px; height: 32px; padding: 0 9px; border-radius: 8px; border: 1.5px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-decoration: none; color: var(--ink-2); }
.lang-switch:hover { border-color: var(--red); color: var(--red); }
.figure-card__subtitle { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
