@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
[hidden] { display: none !important; }
@font-face { font-family: "Source Sans 3"; src: url(/assets/fonts/source-sans-3.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --graphite: #1d2320;
  --graphite-2: #424945;
  --forest: #2f5141;
  --forest-2: #5d846e;
  --paper: #f7f4ef;
  --card: #fffdf9;
  --warm: #e8e2d8;
  --warm-2: #a39a8e;
  --ink: #232725;
  --muted: #595853;
  --amber: #d39a3a;
  --amber-ink: #8a560b;
  --amber-soft: #f8eedb;
  --line: #dcd5ca;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--forest); text-decoration-color: color-mix(in srgb, var(--amber) 70%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--graphite); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem); margin: 3.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--forest-2); }
blockquote p:nth-child(odd) { font-family: var(--serif); font-size: 1.15rem; color: var(--graphite); margin-bottom: .25rem; }
blockquote p:nth-child(even) { color: var(--muted); font-size: .95rem; margin-top: 0; margin-bottom: 1.25rem; }
code { font-size: .9em; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--graphite); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; top: .5rem; }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--gutter); background: var(--graphite); color: #f3efe8; }
.topbar a { color: inherit; text-decoration: none; }
.topbar nav { display: flex; gap: 1rem; font-size: .95rem; }
.topbar nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.page-home .topbar { position: absolute; inset: 0 0 auto; z-index: 2; background: transparent; }
@media (max-width: 30rem) { .topbar nav a:last-child { display: none; } }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: #f6f2ea; background: var(--graphite); isolation: isolate; }
.hero picture { display: block; position: relative; flex: 1 0 40svh; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero picture::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--graphite) 0%, rgba(29,35,32,0) 40%), linear-gradient(to bottom, rgba(14,18,16,.6), rgba(14,18,16,0) 22%); }
.hero-text { position: relative; width: 100%; max-width: 40rem; margin-top: -2.5rem; padding: 0 var(--gutter) 2rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 4vw, 3.6rem); margin: 0 0 1rem; }
.tldr { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.tldr li { font-size: clamp(1.05rem, .95rem + .6vw, 1.35rem); line-height: 1.45; padding-left: 1rem; border-left: 3px solid var(--amber); }
.hero-note { margin: 1.1rem 0 0; font-size: .95rem; color: #d8d1c5; }
.hero-note a { color: #fff; }
@media (min-width: 48rem) and (min-aspect-ratio: 4/5) {
  .hero { flex-direction: row; align-items: center; justify-content: flex-end; }
  .hero picture { position: absolute; inset: 0; z-index: -1; }
  .hero img { object-position: 30% 50%; }
  .hero picture::after { background: linear-gradient(to left, rgba(14,18,16,.92) 0%, rgba(14,18,16,.75) 38%, rgba(14,18,16,.1) 70%), linear-gradient(to bottom, rgba(14,18,16,.55), rgba(14,18,16,0) 20%); }
  .hero-text { margin: 0; padding: 6rem clamp(1.5rem, 5vw, 5rem) 4rem 2rem; max-width: 38rem; }
}

/* layout + table of contents */
.layout { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter) 4rem; }
.toc { position: sticky; top: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)); }
.toc details { background: var(--graphite); color: #f3efe8; }
.toc summary { cursor: pointer; padding: .7rem var(--gutter); font-weight: 600; list-style-position: inside; }
.toc ol { margin: 0; padding: .25rem var(--gutter) 1rem 2.5rem; max-height: 70vh; overflow: auto; }
.toc li { padding: .2rem 0; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover, .toc a[aria-current] { color: var(--amber); }
@media (min-width: 64rem) {
  .layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; padding-top: 2.5rem; }
  .toc { top: 1.5rem; align-self: start; margin: 0; }
  .toc details { background: none; color: var(--ink); }
  .toc summary { padding: 0 0 .5rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; list-style: none; pointer-events: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc ol { padding: 0 0 0 1.6rem; max-height: none; font-size: .95rem; }
  .toc a { color: var(--ink); }
  .toc a:hover, .toc a[aria-current] { color: var(--forest); text-decoration: underline; text-decoration-color: var(--amber); }
}

.prose { min-width: 0; max-width: 56rem; }
.prose > section > :is(p, ul, ol, blockquote, h3), .prose > :is(p, h1, dl) { max-width: 44rem; }
main.prose:not(.bib-page) > section:first-child > h2 { border-top: 0; margin-top: 1.5rem; }
.prose li { margin: .3rem 0; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* footnotes */
.refs { font-size: .72em; line-height: 0; white-space: nowrap; margin-left: .1em; }
.refs a { text-decoration: none; font-weight: 600; }
.refs a:hover { text-decoration: underline; }
td .refs { font-size: .9rem; line-height: inherit; white-space: normal; vertical-align: baseline; margin: 0; }
td .refs a { display: inline-block; padding: .15rem .1rem; }

/* own analysis */
.own { background: var(--amber-soft); border-left: 4px solid var(--amber); padding: .75rem 1rem; margin: 1.25rem 0; max-width: 44rem; border-radius: 0 6px 6px 0; }
.own > ul { margin: .25rem 0; padding-left: 1.2rem; }
.own-label { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); }

/* comparison bars */
.compare-h { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: .9rem 0 .4rem; }
.bar { display: grid; grid-template-columns: 8.5rem 1fr 3.5rem; align-items: center; gap: .5rem; margin: .3rem 0; font-size: .95rem; }
.bar-track { height: .9rem; background: #fff; border-radius: 3px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--warm-2); }
.bar.hi .bar-fill { background: var(--forest); }
.bar.mid .bar-fill { background: var(--forest-2); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.compare-note { font-size: .92rem; color: var(--muted); margin: .75rem 0 0; }

/* tables (cards on small screens) */
.table-wrap { margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .6rem; }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--graphite-2); }
tbody tr { border-bottom: 1px solid var(--line); }
tbody th { font-weight: 600; }
.numeric td, .numeric tbody th { font-variant-numeric: tabular-nums; }
.note, .flags { display: block; margin-top: .3rem; font-size: .85rem; color: var(--muted); font-style: italic; }
td ul { margin: 0; padding-left: 1rem; }
td li { margin: 0 0 .3rem; }
@media (max-width: 47.99rem) {
  table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.cards, table.cards tbody, table.cards tr, table.cards th, table.cards td { display: block; width: 100%; }
  table.cards tr { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 .9rem; padding: .35rem .25rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
  table.cards th, table.cards td { padding: .35rem .6rem; }
  table.cards [data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
  table.cards tbody th { font-family: var(--serif); font-size: 1.1rem; }
  table.compact td, table.compact tbody th { display: grid; grid-template-columns: minmax(7rem, 40%) 1fr; gap: .75rem; }
  table.compact [data-label]::before { display: inline; }
  table.compact tbody th { font-family: var(--sans); font-size: 1rem; }
}
@media (min-width: 48rem) {
  .table-wrap { overflow-x: auto; }
  tbody tr:hover { background: rgba(255,255,255,.6); }
  .cases, .injuries { font-size: .9rem; }
  .cases th:first-child, .injuries th:first-child { min-width: 7rem; }
  .cases td:nth-child(5) { min-width: 15rem; }
}
.cases tr:target { background: var(--amber-soft); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: end; margin: 1rem 0 0; padding: .75rem; background: var(--warm); border-radius: 8px; }
.filters label { display: grid; gap: .2rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.filters select { font: inherit; font-size: 1rem; color: var(--ink); padding: .4rem .5rem; min-height: 2.75rem; border: 1px solid var(--warm-2); border-radius: 6px; background: var(--card); }
.filters output { font-size: .9rem; color: var(--muted); padding-bottom: .55rem; }

/* charts */
.figure { margin: 1.5rem 0; max-width: 36rem; }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: .3rem; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 12px var(--sans); fill: var(--muted); }
.chart .ytick { text-anchor: end; }
.chart .xtick, .chart .val { text-anchor: middle; }
.chart .val { fill: var(--ink); font-weight: 600; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linejoin: round; }
.chart .pt { fill: currentColor; stroke: currentColor; }
.chart .pt circle { stroke: var(--paper); stroke-width: 1.5; }
.chart .span { stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.chart rect { fill: currentColor; }
.chart rect.s-vasto { fill: url(#hatch); }
.chart .hatch-bg { fill: var(--forest); }
.chart .hatch-line { stroke: #cfe0d5; stroke-width: 2; }
.s-admin { color: var(--amber-ink); }
.s-sci, .s-eu, .s-wild, .s-cum-p { color: var(--forest); }
.s-europe, .s-rabid, .s-cum-z { color: var(--graphite-2); }
.s-captive { color: var(--warm-2); }
.s-cum-nv { color: var(--amber-ink); }
.chart .s-cum-nv.line { stroke-dasharray: 5 4; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: 0; margin: 0 0 .4rem; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.key { width: .85rem; height: .85rem; border-radius: 2px; background: currentColor; flex: none; }
.key.s-vasto { background: repeating-linear-gradient(45deg, var(--forest) 0 3px, #cfe0d5 3px 5px); }

/* bibliography */
.bib-page { margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.bib-page h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); margin: .5rem 0 .75rem; }
.bib-page h2 .count { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); vertical-align: middle; }
.statuses { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; font-size: .95rem; margin: 1rem 0; }
.statuses dd { margin: 0; color: var(--muted); }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: .05rem .5rem; border-radius: 99px; background: var(--warm); color: var(--graphite); white-space: nowrap; }
.status-ok { background: #dce9e0; color: #1f3d2f; }
.status-poprawione { background: var(--amber-soft); color: var(--amber-ink); }
.status-zastapione { background: #e5e1f0; color: #3b3460; }
.status-czesciowo, .status-niezweryfikowane { background: var(--warm); color: #4a4640; }
.bib-list { list-style: none; padding: 0; margin: 0; }
.bib { display: grid; grid-template-columns: 2.25rem 1fr; gap: .5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.bib:target { background: var(--amber-soft); box-shadow: -.75rem 0 0 var(--amber-soft), .75rem 0 0 var(--amber-soft); }
.bib-n { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--forest); }
.bib-body > * { margin: 0 0 .3rem; }
.bib-authors { font-size: .92rem; color: var(--muted); }
.bib-title cite { font-style: normal; font-weight: 600; }
.bib-title .tr { color: var(--muted); }
.bib-meta { font-size: .9rem; color: var(--muted); }
.bib-k { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: .4rem 0 .1rem; }
.bib-supports ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.bib-supports li { margin: .1rem 0; }
.bib-cited { font-size: .92rem; }
.bib-verify { font-size: .92rem; }
.bib-verify summary { cursor: pointer; color: var(--muted); min-height: 1.5rem; }
.bib-verify p { margin: .3rem 0; }

/* footer */
.site-footer { background: var(--graphite); color: #d9d3c8; font-size: .92rem; }
.footer-inner { max-width: 56rem; margin: 0 auto; padding: 2rem var(--gutter) 2.5rem; }
.site-footer a { color: #f3efe8; }

@media (min-width: 48rem) { :root { --gutter: 2rem; } }
@media print {
  .topbar, .toc, .filters, .hero picture, .hero::before { display: none; }
  .hero { min-height: 0; color: var(--ink); background: none; }
  .hero h1 { color: var(--ink); }
}

/* plain-language version + switch between versions */
.switch { margin: 1rem 0 0; font-weight: 600; }
.switch a { color: #fff; text-decoration-color: var(--amber); }
.plain-intro { font-size: 1.05rem; color: var(--muted); margin-top: 1.5rem; }
.case-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .9rem; max-width: 44rem; }
.case-list li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; margin: 0; }
.case-list p { margin: 0 0 .35rem; }
.case-head { font-family: var(--serif); font-size: 1.1rem; color: var(--graphite); }
.case-place, .case-meta { font-size: .92rem; color: var(--muted); }
.case-meta { margin: 0 !important; }
.levels li { margin: .5rem 0; }
.glossary { max-width: 44rem; }
.glossary dt { font-weight: 700; margin-top: .9rem; }
.glossary dd { margin: .15rem 0 0; }
