/* MAZEPA DOSSIER — loud editorial file. Two families: a heavy serif for display, the system sans for text. */
:root {
  --paper: #ebe4d6;
  --paper-2: #e0d7c5;
  --card: #f8f4ec;
  --ink: #141210;
  --ink-2: #33302b;
  --muted: #57514a;
  --line: #c9bfac;
  --red: #c4161c;
  --red-ink: #a3121a;
  --red-deep: #8e0d13;
  --red-soft: #f4dcd8;
  --black: #111010;
  --black-2: #1f1d1b;
  --on-dark: #f6f1e7;
  --on-dark-muted: #c8bfb2;
  --focus: #1a5fb4;
  --ok: #2f5d3a;
  --warn: #8a5a12;
  --serif: "Iowan Old Style", "Charter", "PT Serif", "Palatino Linotype", "Book Antiqua", Georgia, "Noto Serif", "Songti SC", "Hiragino Mincho ProN", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans", sans-serif;
  --measure: 70ch;
  --shadow: 6px 6px 0 var(--ink);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grunge: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.5 1.65'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--noise),
    radial-gradient(1200px 600px at 85% -10%, rgba(120, 90, 50, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(120, 90, 50, .08), transparent 60%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 18px; } }

img, svg { max-width: 100%; height: auto; }
a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem); margin: .15em 0 .35em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); margin: 1.6em 0 .5em; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
p { margin: 0 0 1em; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: calc(var(--measure) + 64px); }
.muted { color: var(--muted); }
.no-js .js-only { display: none !important; }

.skip-link { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--on-dark); padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; color: var(--on-dark); }

/* ---------------------------------------------------------------- stickers & stamps */
.sticker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 3px 10px; margin: 0 0 14px;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
  transform: rotate(-1.6deg);
}
.sticker-no { color: var(--red); font-variant-numeric: tabular-nums; }

.stamp {
  display: inline-block; margin: 0;
  color: var(--red);
  border: 4px double currentColor; border-radius: 4px;
  padding: .28em .7em;
  font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; line-height: 1.15;
  transform: rotate(-5deg);
  opacity: .92;
  -webkit-mask-image: var(--grunge);
  mask-image: var(--grunge);
}
.stamp-open { color: var(--ink); }
.stamp-sm { font-size: .78rem; }
.stamp-case { font-size: clamp(.9rem, .7rem + .8vw, 1.25rem); transform: rotate(-7deg); }
.stamp-hero { font-size: clamp(1.1rem, .7rem + 1.8vw, 2.1rem); transform: rotate(-9deg); }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--black); color: var(--on-dark); position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--red); }
.header-inner { display: flex; align-items: center; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 900; letter-spacing: .14em; font-size: 1rem; color: var(--on-dark); text-decoration: none; white-space: nowrap; margin-right: auto; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--red); color: #fff; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; }
.brand-thin { font-weight: 400; color: var(--on-dark-muted); }
.brand:hover { color: #fff; }
.header-tools { display: flex; align-items: center; gap: 8px; order: 3; }
.site-nav { order: 2; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--on-dark); text-decoration: none; font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-list a:hover { background: var(--black-2); color: #fff; }
.nav-list a[aria-current="page"] { background: var(--red); color: #fff; }
.menu-toggle { display: none; }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid #4a443d; color: var(--on-dark); cursor: pointer; font-weight: 800; font-size: .85rem; letter-spacing: .06em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--on-dark); color: var(--black); }
.lang-globe { font-size: 1rem; }
.caret { font-size: .7rem; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px; background: var(--black); border: 2px solid var(--red); box-shadow: 6px 6px 0 rgba(0,0,0,.35); display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px; z-index: 60; width: max-content; max-width: calc(100vw - 32px); }
.lang-list a, .lang-list span { display: flex; gap: 10px; align-items: center; min-height: 40px; padding: 0 10px; color: var(--on-dark); text-decoration: none; font-size: .92rem; }
.lang-list b { display: inline-block; min-width: 2.6em; font-size: .78rem; color: var(--on-dark-muted); letter-spacing: .06em; }
.lang-list a:hover { background: var(--black-2); color: #fff; }
.lang-list span[aria-current] { background: var(--red); color: #fff; }
.lang-list span[aria-current] b { color: #fff; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; background: transparent; color: var(--on-dark); border: 1px solid #4a443d; font: inherit; font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .15s ease; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .header-tools { order: 2; }
  .site-nav { order: 3; width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding-bottom: 16px; }
  .nav-list { flex-direction: column; }
  .nav-list a { width: 100%; font-size: 1rem; min-height: 48px; border-bottom: 1px solid #2c2925; }
}
@media (max-width: 460px) {
  .brand { font-size: .85rem; letter-spacing: .1em; gap: 8px; }
  .brand-thin { display: none; }
  .menu-label { display: none; }
  .lang-list { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; grid-template-columns: 1fr 1fr; }
  .lang-list a, .lang-list span { padding: 0 6px; font-size: .86rem; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 40px 0 48px; border-bottom: 3px solid var(--ink); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 70% 30%, rgba(196, 22, 28, .07), transparent 70%); pointer-events: none; }
@media (min-width: 1024px) { .hero { padding: 72px 0; } }
.hero-inner { position: relative; }
.hero-file { font-family: var(--sans); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; color: var(--muted); margin: 0 0 8px; }
.hero-file span { color: var(--red); }
.hero h1 { margin: 0 0 24px; font-size: inherit; line-height: .9; letter-spacing: -.02em; max-width: none; overflow-wrap: normal; padding-right: 0; }
@media (min-width: 1100px) { .hero h1 { padding-right: 300px; } }
.hero-name { display: block; font-size: clamp(2.6rem, .6rem + 9.5vw, 9.4rem); text-transform: uppercase; }
.hero-rest { display: block; font-size: clamp(1.9rem, .5rem + 6vw, 6rem); color: var(--red); text-transform: uppercase; margin-top: .08em; }
.stamp-hero { margin: 14px 0 34px 6px; }
@media (min-width: 1100px) { .stamp-hero { position: absolute; right: 40px; top: 24px; margin: 0; } }
.hero-sub { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .8vw, 1.65rem); color: var(--ink-2); max-width: 36ch; line-height: 1.35; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero-note { font-size: .9rem; color: var(--ink-2); border-left: 4px solid var(--red); padding-left: 12px; max-width: 52ch; margin: 0 0 24px; }
.hero-refs { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; margin: 0; }
.hero-refs a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted currentColor; }
.hero-refs a:hover { color: var(--red-ink); }

/* ---------------------------------------------------------------- ticker */
.ticker { background: var(--black); color: var(--on-dark); overflow: hidden; border-bottom: 3px solid var(--red); }
.ticker-track { display: flex; width: max-content; animation: ticker 80s linear infinite; }
.ticker ul { list-style: none; display: flex; margin: 0; padding: 0; }
.ticker li { white-space: nowrap; padding: 12px 28px 12px 0; font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
.ticker li::before { content: "●"; color: var(--red); margin-right: 12px; font-size: .7em; vertical-align: middle; }
.ticker time { color: #ff8a80; font-weight: 800; margin-right: 6px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- red band */
.band { background: var(--red); background-image: var(--noise), linear-gradient(180deg, #cf1d23, #a8121a); color: #fff; padding: 36px 0 40px; text-align: center; border-bottom: 3px solid var(--ink); }
.band-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #ffe3df; margin: 0 0 4px; }
.band-figure { margin: 0; font-family: var(--sans); font-weight: 900; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: flex; justify-content: center; align-items: baseline; gap: .15em; flex-wrap: wrap; }
.band-cur { font-size: clamp(2rem, 1rem + 5vw, 5rem); opacity: .85; }
.band-num { font-size: clamp(2.8rem, .4rem + 11vw, 10rem); text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.band-caption { max-width: 62ch; margin: 14px auto 6px; font-size: 1rem; }
.band-caption a { color: #fff; font-weight: 800; }
.band-note { font-size: .8rem; color: #ffe3df; margin: 0; }

/* ---------------------------------------------------------------- stats */
.stats { border-bottom: 3px solid var(--ink); }
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats-grid li { padding: 22px 18px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-num { font-family: var(--sans); font-weight: 900; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; margin: 0; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-text { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }

/* ---------------------------------------------------------------- sections */
.section { padding: 48px 0 56px; border-bottom: 3px solid var(--ink); }
.section-alt { background-color: var(--paper-2); background-image: var(--noise); }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: .1em 0 .2em; text-transform: uppercase; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 0; font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); }
.link-more { font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; border-bottom: 2px solid currentColor; }
.more-row { margin: 28px 0 0; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; font: inherit; font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { color: #fff; background: var(--red-deep); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.btn-dark { background: var(--ink); color: var(--on-dark); box-shadow: 4px 4px 0 var(--red); }
.btn-dark:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.btn-quiet { background: var(--card); color: var(--ink); min-height: 44px; font-size: .82rem; }
.btn-quiet:hover { background: var(--ink); color: var(--on-dark); }

/* ---------------------------------------------------------------- case cards */
.case-list { display: grid; gap: 22px; }
.case-card {
  position: relative; background: var(--card); border: 2px solid var(--ink); border-left: 10px solid var(--red);
  box-shadow: var(--shadow); padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.case-card:hover, .case-card:focus-within { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.card-top { display: flex; align-items: baseline; gap: 12px; }
.card-no { font-family: var(--sans); font-weight: 900; font-size: 2.6rem; line-height: .9; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.card-topic { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.card-title { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.85rem); margin: 4px 0 6px; line-height: 1.12; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { color: var(--red-ink); }
.card-amount { margin: 2px 0 8px; display: flex; flex-direction: column; }
.card-amount-num { font-family: var(--sans); font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); color: var(--red); line-height: 1; letter-spacing: -.02em; }
.card-amount-kind { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-top: 4px; }
.card-text { color: var(--ink-2); font-size: 1rem; margin-bottom: 10px; max-width: 62ch; }
.case-card .stamp { align-self: flex-start; margin: 4px 0 12px 4px; }
.card-meta { margin: auto 0 8px; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px dashed var(--line); padding-top: 10px; }
.card-meta div { display: flex; gap: 6px; }
.card-meta dt { color: var(--muted); }
.card-meta dt::after { content: ":"; }
.card-meta dd { margin: 0; font-weight: 600; }
.card-more { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--red-ink); }

@media (min-width: 900px) {
  .case-list:not(.case-list-compact) .case-card {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(200px, 270px); column-gap: 24px; align-items: start; padding: 26px 28px 22px;
  }
  .case-list:not(.case-list-compact) .card-top { grid-column: 1; grid-row: 1 / span 4; flex-direction: column; gap: 8px; }
  .case-list:not(.case-list-compact) .card-no { font-size: 4.2rem; }
  .case-list:not(.case-list-compact) .card-title { grid-column: 2; grid-row: 1; margin-top: 0; }
  .case-list:not(.case-list-compact) .card-text { grid-column: 2; grid-row: 2; }
  .case-list:not(.case-list-compact) .card-meta { grid-column: 2; grid-row: 3; }
  .case-list:not(.case-list-compact) .card-more { grid-column: 2; grid-row: 4; }
  .case-list:not(.case-list-compact) .card-amount { grid-column: 3; grid-row: 1; text-align: right; align-items: flex-end; }
  .case-list:not(.case-list-compact) .stamp { grid-column: 3; grid-row: 2; justify-self: end; margin: 6px 6px 0 0; }
  .case-list:not(.case-list-compact) .case-card:not(:has(.card-amount)) .stamp { grid-row: 1; margin-top: 10px; }
}
.case-list-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.case-list-compact .card-text, .case-list-compact .card-meta { display: none; }

/* ---------------------------------------------------------------- home blocks */
.dossier-split { display: grid; gap: 24px; }
@media (min-width: 900px) { .dossier-split { grid-template-columns: 1fr 1.2fr; gap: 48px; } }
.entity-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.entity-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.entity-list strong { font-family: var(--serif); font-size: 1.2rem; }
.entity-list span { color: var(--ink-2); }
.entity-list em { font-style: normal; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); }

.mini-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); border-top: 3px solid var(--ink); }
.mini-timeline li { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.mini-timeline time { font-family: var(--sans); font-weight: 900; font-size: 1.5rem; display: block; color: var(--red); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mini-timeline p { margin: 4px 0 8px; font-weight: 600; }
.mini-timeline a { font-size: .86rem; }
.tl-no { display: inline-block; background: var(--ink); color: var(--on-dark); font-weight: 900; font-size: .72rem; padding: 1px 6px; letter-spacing: .04em; }

.doc-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.doc-card { background: var(--card); border: 2px solid var(--ink); padding: 18px 20px; box-shadow: 4px 4px 0 var(--ink); position: relative; }
.doc-card::before { content: ""; position: absolute; top: -9px; left: 22px; width: 64px; height: 16px; background: rgba(220, 205, 170, .85); transform: rotate(-3deg); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.doc-type { display: inline-block; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--red-ink); padding: 2px 8px; margin-bottom: 10px; }

.positions-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.position { background: var(--card); border: 2px solid var(--ink); border-top: 8px solid var(--ink); padding: 18px 20px; }
.position-speaker { font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .86rem; margin: 0 0 8px; color: var(--red-ink); }
.position-text { margin: 0 0 12px; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); line-height: 1.45; }
.position a { font-size: .86rem; }
.updates { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--ink); }
.updates li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.updates time { font-weight: 900; color: var(--red-ink); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- inner page heads */
.page-hero, .case-hero { border-bottom: 3px solid var(--ink); padding: 24px 0 28px; margin-bottom: 28px; position: relative; }
.page-hero h1 { text-transform: uppercase; font-size: clamp(2.3rem, 1.1rem + 5vw, 5.4rem); line-height: .95; margin-top: .1em; }
.case-hero h1 { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.8rem); max-width: 22ch; }
.case-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.case-hero .stamp-case { margin: 4px 12px 8px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 14px; font-size: .86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.not-found { min-height: 60vh; border-bottom: 0; }
.not-found .stamp-hero { position: static; margin: 24px 0; font-size: 4rem; }
.not-found-langs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------------------------------------------------------------- filters */
.filters { display: grid; gap: 12px; align-items: end; grid-template-columns: 1fr; background: var(--card); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 16px; margin: 0 0 20px; }
@media (min-width: 768px) { .filters[data-filters] { grid-template-columns: 2fr 1fr 1fr auto; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select { font: inherit; font-size: 1rem; min-height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.results-count { color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.empty-state { text-align: center; padding: 48px 16px; border: 3px dashed var(--ink); background: var(--card); }
.empty-state h2 { margin-top: 0; }
.case-list-page { margin-bottom: 56px; }

/* ---------------------------------------------------------------- article */
.article-layout { display: grid; gap: 32px; padding-bottom: 56px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 230px minmax(0, var(--measure)); gap: 56px; } }
.toc-side { display: none; }
@media (min-width: 1024px) {
  .toc-side { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
  .toc-mobile { display: none; }
}
.toc-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; margin-bottom: 8px; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 3px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.toc a:hover, .toc a.is-active { border-left-color: var(--red); color: var(--red-ink); font-weight: 700; }
.toc-mobile { background: var(--card); border: 2px solid var(--ink); margin: 0 0 16px; }
.toc-mobile summary { min-height: 48px; display: flex; align-items: center; padding: 0 16px; cursor: pointer; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.toc-mobile .toc { padding: 0 16px 12px; }
.article { min-width: 0; }
.article-dates { font-size: .88rem; color: var(--muted); }
.article-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.summary p { font-size: 1.1em; }
.summary p:first-of-type { font-family: var(--serif); font-size: 1.28em; line-height: 1.45; font-weight: 600; }
.article section { margin-bottom: 8px; }
.article h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); text-transform: uppercase; border-top: 3px solid var(--ink); padding-top: .5em; }
.article section:first-of-type h2 { margin-top: .4em; }
.anchor-heading { display: flex; align-items: baseline; gap: 6px; }
.copy-link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; }
.anchor-heading .copy-link { font-family: var(--sans); font-size: .7em; min-width: 44px; min-height: 44px; opacity: .45; transition: opacity .15s ease; }
.anchor-heading:hover .copy-link, .anchor-heading .copy-link:focus-visible { opacity: 1; color: var(--red-ink); }

.status-box { background: var(--card); border: 3px solid var(--ink); border-left: 12px solid var(--red); box-shadow: var(--shadow); padding: 4px 22px 10px; margin: 28px 0 24px; }
.article .status-box h2 { border-top: 0; margin-top: .5em; font-size: 1.05rem; letter-spacing: .12em; }
.status-open { border-left-color: var(--ink); }
.status-label { font-family: var(--sans); font-weight: 900; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1.15; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 4px; color: var(--red-ink); }
.status-open .status-label { color: var(--ink); }
.status-dot { width: 14px; height: 14px; border: 3px solid currentColor; display: inline-block; flex: none; background: currentColor; }
.status-open .status-dot { background: transparent; border-radius: 50%; }
.status-asof { font-size: .85rem; color: var(--muted); font-weight: 600; }

.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 2px solid var(--ink); background: var(--card); }
.data-table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.data-table caption { text-align: left; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; padding: 12px 14px 4px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .num { white-space: nowrap; font-weight: 900; font-size: 1.05rem; color: var(--red-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td, .data-table th { display: block; width: 100%; }
  .data-table tr { border-bottom: 2px solid var(--ink); padding: 8px 0; }
  .data-table td, .data-table th { border: 0; padding: 4px 14px; }
  .data-table caption { display: block; width: 100%; }
  .data-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .data-table tbody th { font-size: 1.05rem; padding-top: 8px; }
}

.passport { display: grid; margin: 0; border-top: 3px solid var(--ink); }
.passport > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .passport > div { grid-template-columns: 11rem 1fr; gap: 16px; } }
.passport dt { color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding-top: .25em; }
.passport dd { margin: 0; }
.passport ul { margin: 0; padding-left: 1.1em; }

.claims { list-style: none; padding: 0; margin: 0; }
.claim, .bio li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.claim-text { margin: 8px 0 4px; }
.claim-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.meta-k { font-weight: 800; }
.position-group h3 { margin-bottom: 0; font-family: var(--sans); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red-ink); font-weight: 900; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border: 2px solid; white-space: nowrap; }
.badge-icon { font-size: .8em; }
.badge-documented { color: #fff; background: var(--ink); border-color: var(--ink); }
.badge-authority { color: var(--ink); background: #ddd3c0; border-color: var(--ink); }
.badge-party { color: #fff; background: var(--red-ink); border-color: var(--red-ink); }
.badge-media { color: var(--ink); background: transparent; border-color: var(--ink); border-style: dashed; }
.badge-assessment { color: #173a5e; background: #dfe8f1; border-color: #173a5e; }
.src-ref { font-size: .76em; vertical-align: super; line-height: 0; text-decoration: none; margin-left: 1px; font-weight: 900; }
.src-ref:hover { text-decoration: underline; }

.case-timeline, .tl-list { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--ink); }
.case-timeline li, .tl-event { position: relative; padding: 4px 0 20px 24px; }
.case-timeline li::before, .tl-event::before { content: ""; position: absolute; left: -10px; top: 9px; width: 16px; height: 16px; background: var(--red); border: 3px solid var(--ink); }
.case-timeline time, .tl-event time { font-family: var(--sans); font-weight: 900; font-size: 1.1rem; color: var(--red-ink); font-variant-numeric: tabular-nums; }
.case-timeline p, .tl-event p { margin: 2px 0 0; }
.tl-meta { font-size: .86rem; color: var(--muted); }
.tl-year h2 { margin: 1em 0 .4em; font-family: var(--sans); font-weight: 900; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); letter-spacing: -.03em; }
.timeline { padding-bottom: 56px; }

.unknowns-box { background: var(--black); color: var(--on-dark); padding: 2px 22px 12px; margin: 24px 0; }
.article .unknowns-box h2 { color: #fff; border-top: 0; }
.unknowns-box .copy-link { color: var(--on-dark-muted); }
.unknowns { padding-left: 1.4em; }
.unknowns li { margin-bottom: 10px; }
.unknowns li::marker { color: #ff6b63; content: "?  "; font-weight: 900; }
.history { padding-left: 1.2em; }

.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.doc-title { font-weight: 700; margin-bottom: 4px; overflow-wrap: anywhere; }
.doc-meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.doc-used, .doc-family { font-size: .9rem; }
.doc-family { color: var(--muted); }
.doc-num { font-family: var(--sans); font-weight: 900; font-size: 1.6rem; color: var(--red); min-width: 2rem; display: inline-block; line-height: 1; }
.article .doc-item { display: grid; grid-template-columns: 2.4rem 1fr; gap: 8px; }
.doc-item:target { background: var(--red-soft); }
.ext { font-size: .8em; margin-left: 3px; }
.access { white-space: nowrap; }
.access-ok::before { content: "✓ "; color: var(--ok); }
.access-blocked::before { content: "⚠ "; color: var(--warn); }
.access-not_checked::before { content: "○ "; }
.family { list-style: none; margin: 8px 0 0; padding: 8px 0 0 16px; border-left: 3px solid var(--line); font-size: .93rem; }
.blocked-sources { margin: 40px 0 56px; padding: 4px 22px 12px; background: var(--card); border: 3px dashed var(--ink); }
.print-url { display: none; }

.prose { padding-bottom: 32px; }
.prose p { max-width: var(--measure); }
.prose h2 { text-transform: uppercase; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.note { background: var(--card); border-left: 6px solid var(--ink); padding: 12px 16px; font-size: .95rem; }
.empty-note { background: var(--card); border: 2px solid var(--ink); padding: 16px 20px; font-weight: 600; }

/* ---------------------------------------------------------------- footer & toast */
.site-footer { background: var(--black); color: var(--on-dark-muted); padding: 44px 0 52px; font-size: .92rem; border-top: 6px solid var(--red); }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.brand-footer { margin-bottom: 14px; }
.footer-links, .footer-langs { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.footer-langs a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-label { color: var(--on-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 6px; }
.footer-meta { font-size: .84rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; border: 2px solid var(--red); padding: 12px 18px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 32px); overflow-wrap: anywhere; z-index: 60; font-weight: 700; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ticker-track { width: auto; }
  .ticker ul + ul { display: none; }
  .ticker ul { flex-wrap: wrap; padding: 4px 16px; }
  .ticker li { white-space: normal; }
}

/* ---------------------------------------------------------------- print */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .toc-side, .toc-mobile, .article-actions, .copy-link, .skip-link, .no-print, .toast, .filters, .breadcrumbs, .ext, .ticker, .lang-menu { display: none !important; }
  .article-layout { display: block; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .print-url { display: block; font-size: 9pt; color: #333; overflow-wrap: anywhere; }
  .status-box, .table-wrap, .claim, .doc-item { break-inside: avoid; box-shadow: none; }
  .unknowns-box { background: none; color: #000; border: 2px solid #000; }
  .article .unknowns-box h2 { color: #000; }
  .stamp { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }
  .badge { border: 1px solid #000 !important; background: none !important; color: #000 !important; }
  h2 { break-after: avoid; }
}

.btn.copy-page { border: 2px solid var(--ink); background: var(--card); color: var(--ink); font-family: var(--sans); font-size: .82rem; font-weight: 800; letter-spacing: .06em; }
.btn.copy-page:hover { background: var(--ink); color: var(--on-dark); }
.sticker { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .stats .sticker { font-size: .68rem; letter-spacing: .04em; padding: 2px 7px; }
  .stats-grid li { padding: 18px 12px 14px; }
}

/* ---------------------------------------------------------------- business risk alert (pinned to the bottom of the viewport) */
.risk-alert { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--ink); color: var(--on-dark);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .35); padding-bottom: env(safe-area-inset-bottom); }
.risk-alert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--ink) 14px 28px); }
.risk-alert-inner { display: flex; align-items: center; gap: 10px 18px; padding-top: 15px; padding-bottom: 9px; }
.no-entry { flex: none; width: 44px; height: 44px; filter: drop-shadow(2px 2px 0 #000); animation: no-entry-pulse 2.4s ease-in-out infinite; }
@keyframes no-entry-pulse { 50% { transform: scale(1.08); } }
.risk-alert-label { margin: 0; flex: none; background: var(--red); color: #fff; padding: 6px 14px;
  font-family: var(--sans); font-weight: 900; font-size: clamp(.9rem, .75rem + .55vw, 1.25rem);
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; box-shadow: 3px 3px 0 #000; transform: rotate(-1.5deg); white-space: nowrap; }
.risk-alert-text { margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.risk-alert-text a { color: #ff8a80; font-weight: 800; white-space: nowrap; }
.risk-alert-text a:hover { color: #fff; }
body:has(.risk-alert) .site-footer { padding-bottom: 136px; }
body:has(.risk-alert) .toast { bottom: 96px; }
@media (max-width: 760px) {
  .risk-alert-inner { gap: 10px; padding-top: 13px; padding-bottom: 8px; }
  .no-entry { width: 36px; height: 36px; }
  .risk-alert-label { font-size: .82rem; letter-spacing: .06em; padding: 5px 9px; }
  .risk-alert-text { font-size: 0; }
  .risk-alert-text a { font-size: .85rem; }
  body:has(.risk-alert) .site-footer { padding-bottom: 120px; }
  body:has(.risk-alert) .toast { bottom: 82px; }
}
@media (max-width: 360px) { .risk-alert-label { font-size: .74rem; letter-spacing: .03em; } }
@media print { .risk-alert { position: static; box-shadow: none; background: none; color: #000; border: 2px solid #000; } .risk-alert::before { display: none; } body:has(.risk-alert) .site-footer { padding-bottom: 0; } }

/* ---------------------------------------------------------------- risk alert: bigger + blinking */
.risk-alert::before { height: 9px; animation: tape-march 1s linear infinite; background-size: 39.6px 9px; }
@keyframes tape-march { to { background-position: 39.6px 0; } }
.risk-alert-inner { gap: 12px 24px; padding-top: 22px; padding-bottom: 14px; }
.no-entry { width: 58px; height: 58px; animation: no-entry-blink 1s steps(1, end) infinite; }
@keyframes no-entry-blink { 50% { opacity: .35; transform: scale(.92); } }
.risk-alert-label { font-size: clamp(1.05rem, .8rem + .9vw, 1.6rem); padding: 9px 18px; letter-spacing: .12em;
  animation: risk-flash 1s steps(1, end) infinite; }
@keyframes risk-flash {
  0%   { background: #ff1f1f; color: #fff; box-shadow: 3px 3px 0 #000, 0 0 22px rgba(255, 40, 40, .85); }
  50%  { background: #7a0b10; color: #ffd9d4; box-shadow: 3px 3px 0 #000, 0 0 0 rgba(255, 40, 40, 0); }
}
.risk-alert-text { font-size: 1rem; }
.risk-alert { border-top: 2px solid #ff1f1f; animation: risk-glow 1s steps(1, end) infinite; }
@keyframes risk-glow {
  0%  { box-shadow: 0 -10px 34px rgba(255, 31, 31, .55); }
  50% { box-shadow: 0 -6px 24px rgba(0, 0, 0, .35); }
}
body:has(.risk-alert) .site-footer { padding-bottom: 160px; }
body:has(.risk-alert) .toast { bottom: 118px; }
@media (max-width: 760px) {
  .risk-alert-inner { padding-top: 18px; padding-bottom: 12px; gap: 12px; }
  .no-entry { width: 46px; height: 46px; }
  .risk-alert-label { font-size: .95rem; padding: 7px 11px; letter-spacing: .06em; }
  .risk-alert-text { font-size: 0; }
  .risk-alert-text a { font-size: .9rem; }
  body:has(.risk-alert) .site-footer { padding-bottom: 140px; }
  body:has(.risk-alert) .toast { bottom: 100px; }
}
@media (max-width: 360px) { .risk-alert-label { font-size: .8rem; } .no-entry { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .risk-alert, .risk-alert::before, .no-entry, .risk-alert-label { animation: none !important; }
}
@media (max-width: 760px) {
  .risk-alert-text { margin-left: auto; flex: none; }
  .risk-alert-text a { font-size: 0; display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 2px solid #ff8a80; color: #ff8a80; text-decoration: none; }
  .risk-alert-text a::after { content: "→"; font-size: 1.4rem; font-weight: 900; line-height: 1; }
  .risk-alert-inner { flex-wrap: nowrap; }
}

/* ---------------------------------------------------------------- hero: photo sheet in a case folder */
.stamp { width: fit-content; max-width: 100%; justify-self: start; }
.hero h1 { hyphens: manual; }
.hero-photo { margin: 28px 0 0; max-width: 460px; }
.hero-photo figcaption { margin-top: 12px; font-size: .66rem; line-height: 1.4; color: var(--muted); }
.hero-photo figcaption a { color: var(--muted); }
.photo-caption { color: var(--ink-2); font-weight: 700; }
@media (min-width: 1000px) {
  .hero { padding: 36px 0 52px; }
  .hero-with-photo .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(350px, 27vw, 415px); column-gap: 48px; align-items: start; }
  .hero-with-photo .hero-inner > * { min-width: 0; }
  .hero-with-photo .hero-inner > *:not(.hero-photo) { grid-column: 1; }
  .hero-with-photo .hero-photo { grid-column: 2; grid-row: 1 / span 8; margin-top: 4px; max-width: none; }
  .hero-with-photo h1 { padding-right: 0; margin-bottom: 18px; }
  .hero-with-photo .hero-name { font-size: clamp(3rem, 1rem + 5.2vw, 6.4rem); }
  .hero-with-photo .hero-rest { font-size: clamp(2rem, .4rem + 3.3vw, 4rem); }
  .hero-with-photo .hero-actions { margin: 22px 0 18px; }
  .hero-with-photo .hero-note { margin-bottom: 16px; }
}

.case-folder { position: relative; padding: 30px 14px 16px 16px; }
.folder-back { position: absolute; inset: 12px 0 0 0; border-radius: 3px 6px 6px 6px; transform: rotate(-1.5deg);
  background: var(--noise), linear-gradient(160deg, #e2c58a 0%, #d3b06e 55%, #c49e5c 100%);
  border: 1px solid #a8844a; box-shadow: 9px 10px 0 rgba(20, 18, 16, .85), inset 0 0 40px rgba(120, 80, 30, .25); }
.folder-tab { position: absolute; top: -24px; left: 18px; padding: 5px 14px 6px; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #e6cb93, #d8b776); border: 1px solid #a8844a; border-bottom: 0;
  font-family: var(--sans); font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #3b2a12; white-space: nowrap; }
.photo-sheet { position: relative; z-index: 2; background: #fbf8f1; border: 1px solid #d7cfbf; padding: 12px 12px 10px;
  transform: rotate(.8deg); box-shadow: 3px 5px 0 rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.18); }
.paper-clip { position: absolute; z-index: 5; top: -24px; right: 26px; transform: rotate(10deg); filter: drop-shadow(1px 2px 1px rgba(0,0,0,.45)); }
.sheet-head { margin: 0 0 9px; padding-bottom: 6px; border-bottom: 1px dashed #b9ae99; font-family: "Courier New", Courier, monospace;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #3b2a12; }
.sheet-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-photo .photo-img { position: relative; overflow: hidden; background: #000; isolation: isolate; border: 3px solid #0d0c0b; }
.sheet-photo:nth-child(1) { transform: rotate(-1.2deg); }
.sheet-photo:nth-child(2) { transform: rotate(1deg); }
.photo-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.6) brightness(1.18); }
.photo-img::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #d01a22 0%, #8e0d13 100%); mix-blend-mode: multiply; opacity: .72; }
.photo-img::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--noise), radial-gradient(ellipse 80% 70% at 50% 30%, transparent 50%, rgba(0,0,0,.65) 100%);
  background-size: 160px 160px, 100% 100%; }
.sheet-label { margin: 6px 0 0; font-family: "Courier New", Courier, monospace; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3b2a12; }
.stamp-photo { position: absolute; z-index: 4; right: -14px; bottom: 30px; color: #ff3b30; background: rgba(13, 12, 11, .6);
  font-size: clamp(.85rem, .7rem + .5vw, 1.1rem); transform: rotate(-9deg); border-width: 4px; white-space: nowrap; }
.folder-clips { position: relative; z-index: 3; list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.folder-clips li:nth-child(1) { transform: rotate(-2deg); }
.folder-clips li:nth-child(2) { transform: rotate(1.5deg) translateY(3px); }
.folder-clips li:nth-child(3) { transform: rotate(-1deg); }
.clip { display: grid; gap: 2px; height: 100%; padding: 6px 8px 7px; background: #fbf8f1; border: 1px solid #cfc6b5; border-top: 4px solid var(--red);
  box-shadow: 2px 3px 0 rgba(0,0,0,.45); font-family: "Courier New", Courier, monospace; color: var(--ink); text-decoration: none; line-height: 1.22; transition: transform .12s ease; }
.clip:hover, .clip:focus-visible { transform: translate(-2px, -2px); color: var(--ink); box-shadow: 4px 5px 0 rgba(0,0,0,.5); }
.clip-head { font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red-ink); }
.clip-body { font-family: var(--sans); font-size: .74rem; font-weight: 800; overflow-wrap: anywhere; }
@media (min-width: 641px) and (max-width: 999px) { .hero-photo { max-width: 480px; } }
@media (max-width: 480px) {
  .folder-clips { grid-template-columns: 1fr; gap: 6px; }
  .clip { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
  .stamp-photo { right: -6px; }
}
@media print {
  .folder-back, .paper-clip, .folder-clips, .stamp-photo { display: none; }
  .case-folder { padding: 0; } .photo-sheet, .sheet-photo { transform: none; box-shadow: none; }
  .photo-img::before, .photo-img::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .clip { transition: none; } }

.photo-credit { margin: 14px 0 0; font-size: .66rem; line-height: 1.4; color: var(--muted); max-width: 70ch; }
.photo-credit a { color: var(--muted); }
@media (min-width: 1000px) {
  .hero-with-photo .hero-inner > .photo-credit { grid-column: 1 / -1; grid-row: 9; justify-self: end; text-align: right; margin-top: 18px; max-width: 760px; }
}
.stamp-photo { bottom: 52px; right: -12px; }
@media (max-width: 480px) { .stamp-photo { bottom: 48px; right: -4px; } }

/* ---------------------------------------------------------------- big photo + two small cards on the folder */
.folder-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.photo-frame { position: relative; background: #0d0c0b; border: 2px solid #0d0c0b; padding: 8px 8px 30px; transform: rotate(-1.5deg);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, .6), 0 16px 26px rgba(0, 0, 0, .3); }
.photo-frame .photo-img img { aspect-ratio: 683 / 854; }
.photo-frame .paper-clip { top: -26px; left: 18px; right: auto; transform: rotate(-8deg); }
.photo-tag { position: absolute; left: 10px; right: 10px; bottom: 8px; margin: 0; font-family: var(--sans); font-size: .64rem; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase; color: #f6f1e7; }
.photo-frame .stamp-photo { right: -24px; bottom: 54px; }
.folder-side { display: grid; gap: 14px; padding-top: 18px; }
.side-photo { background: #fff; padding: 6px 6px 4px; border: 1px solid #cfc6b5; box-shadow: 3px 4px 0 rgba(0,0,0,.5), 0 8px 14px rgba(0,0,0,.2); position: relative; }
.side-photo::before { content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 14px; margin-left: -23px; background: rgba(225, 212, 178, .92); transform: rotate(-5deg); z-index: 3; }
.side-photo:nth-child(1) { transform: rotate(3deg); }
.side-photo:nth-child(2) { transform: rotate(-2.5deg) translateX(-6px); }
.side-photo .photo-img { border: 0; }
.side-photo .photo-img img { aspect-ratio: 4 / 5; }
.side-photo .sheet-label { margin: 4px 2px 0; }
@media (max-width: 480px) {
  .folder-layout { gap: 10px; }
  .folder-side { gap: 10px; padding-top: 12px; }
  .photo-frame .stamp-photo { right: -10px; bottom: 46px; font-size: .78rem; }
}
@media print { .folder-side { display: none; } .photo-frame { transform: none; box-shadow: none; } }
.side-photo .photo-img img { filter: grayscale(1) contrast(1.45) brightness(.86); }
.side-photo .photo-img::before { opacity: .62; }
.photo-tag { z-index: 3; color: #fff; text-shadow: 0 1px 0 #000; }

.folder-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.folder-side { gap: 0; padding-top: 6px; }
.side-photo + .side-photo { margin-top: -26px; }
.side-photo:nth-child(2) { z-index: 1; }
.case-folder { padding-bottom: 14px; }
.folder-clips { margin-top: 10px; }
.folder-layout > .photo-frame { z-index: 3; }

/* ---------------------------------------------------------------- A4 case folder */
.case-folder { aspect-ratio: 210 / 297; display: flex; flex-direction: column; padding: 34px 16px 18px 18px; }
.folder-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 3.4fr); gap: 0; }
.folder-side { margin-left: -10px; padding-top: 14px; gap: 0; }
.side-photo + .side-photo { margin-top: -18px; }
.folder-clips { margin-top: auto; padding-top: 16px; grid-template-columns: 1fr; gap: 9px; }
.folder-clips li:nth-child(1) { transform: rotate(-1.2deg); }
.folder-clips li:nth-child(2) { transform: rotate(.9deg) translateX(6px); }
.folder-clips li:nth-child(3) { transform: rotate(-.6deg) translateX(-2px); }
.clip { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; padding: 8px 12px; border-top-width: 1px; border-left: 5px solid var(--red); }
.clip-head { font-size: clamp(.6rem, .45rem + .25vw, .74rem); white-space: nowrap; }
.clip-body { font-size: clamp(.78rem, .6rem + .3vw, .98rem); }
.photo-tag { font-size: clamp(.62rem, .5rem + .2vw, .78rem); }
.sheet-label { font-size: clamp(.6rem, .5rem + .15vw, .72rem); }
.folder-tab { font-size: clamp(.64rem, .5rem + .2vw, .8rem); }
.photo-frame .stamp-photo { font-size: clamp(.85rem, .6rem + .55vw, 1.4rem); right: -18px; bottom: 60px; }
@media (min-width: 1000px) {
  .hero-with-photo .hero-inner { grid-template-columns: minmax(0, 1fr) clamp(360px, 28vw, 620px); }
}
@media (max-width: 999px) { .hero-photo { max-width: 460px; } }
@media (max-width: 420px) { .clip { grid-template-columns: 1fr; row-gap: 2px; } .clip-head { white-space: normal; } }

/* ---------------------------------------------------------------- A4 folder: width set by app.js (95% of left column height) */
@media (min-width: 1000px) {
  .hero-with-photo .hero-inner { grid-template-columns: minmax(0, 1fr) var(--folder-w, clamp(330px, 25vw, 520px)); }
  .hero-with-photo .hero-photo { grid-row: 1 / span 6; }
  .hero-with-photo .hero-inner > .photo-credit { grid-row: 7; }
}
.case-folder { container-type: inline-size; }
.folder-tab { font-size: clamp(.58rem, 2.3cqw, .82rem); }
.photo-tag { font-size: clamp(.56rem, 2.2cqw, .8rem); }
.sheet-label { font-size: clamp(.54rem, 2cqw, .74rem); }
.clip { padding: clamp(5px, 1.6cqw, 10px) clamp(8px, 2.6cqw, 14px); }
.clip-head { font-size: clamp(.55rem, 2.15cqw, .78rem); }
.clip-body { font-size: clamp(.7rem, 3cqw, 1.05rem); }
.folder-clips { gap: clamp(5px, 1.8cqw, 11px); }
.photo-frame .stamp-photo { font-size: clamp(.78rem, 4cqw, 1.5rem); }
.folder-layout { flex: 1 1 auto; min-height: 0; align-items: stretch; }
.folder-layout > .photo-frame { display: flex; flex-direction: column; min-height: 0; }
.folder-layout > .photo-frame .photo-img { flex: 1 1 auto; min-height: 0; }
.folder-layout > .photo-frame .photo-img img { height: 100%; min-height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 22%; }
.folder-side { align-self: start; }
.folder-clips { margin-top: 0; padding-top: 16px; }
@media (max-width: 999px) {
  .folder-layout > .photo-frame .photo-img img { height: auto; min-height: 0; aspect-ratio: 683 / 854; }
  .folder-layout { align-items: start; }
  .folder-clips { margin-top: auto; }
}
.folder-side { margin-left: 8px; }
.side-photo + .side-photo { margin-top: 12px; }
.side-photo .sheet-label { position: relative; z-index: 2; }
.folder-layout > .photo-frame .stamp-photo { bottom: 76px; }

.folder-side { position: relative; z-index: 4; }
.photo-credits-link { display: block; margin: 8px 4px 0 auto; width: fit-content; font-size: .66rem; color: var(--muted); text-decoration: none; letter-spacing: .02em; }
.photo-credits-link:hover { color: var(--red-ink); text-decoration: underline; }
.photo-credit-list { padding-left: 1.2em; font-size: .92rem; }
.photo-credit-list li { margin-bottom: 8px; }

/* Editorial stamps on cases are full phrases: let them wrap as a block, tilt less */
.stamp-sm, .stamp-case { max-width: min(100%, 34ch); overflow-wrap: anywhere; text-wrap: balance; }
.stamp-sm { transform: rotate(-3deg); letter-spacing: .05em; }
.stamp-case { max-width: min(100%, 30ch); transform: rotate(-4deg); }

/* Editorial conclusion: the newsroom's assessment, set apart from facts */
.editorial-conclusion {
  margin: 1.4em 0 .4em; padding: 16px 20px 16px 18px;
  background: var(--card); border: 2px solid var(--ink); border-left: 8px solid var(--red);
  box-shadow: 4px 4px 0 var(--ink);
}
.editorial-conclusion p { margin: 0; }
.ec-label {
  display: block; margin-bottom: .45em;
  font-family: var(--sans); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-ink);
}
@media print { .editorial-conclusion { box-shadow: none; } }

/* Case stamps are always red, whatever the outcome */
.stamp-sm.stamp-open, .stamp-case.stamp-open { color: var(--red); }

/* Wide case cards: keep long topic labels (e.g. «Инвестиционные проекты») inside the number column */
@media (min-width: 900px) {
  .case-list:not(.case-list-compact) .case-card { grid-template-columns: 128px minmax(0, 1fr) minmax(200px, 270px); }
  .case-list:not(.case-list-compact) .card-topic { max-width: 100%; font-size: .66rem; letter-spacing: .06em; overflow-wrap: anywhere; hyphens: auto; }
}

/* Full author's article on a case page */
.article-body .article-h { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); line-height: 1.25; margin: 1.6em 0 .5em; }
.article-body .article-list { margin: .6em 0 1em; padding-left: 1.2em; }
.article-body .article-list li { margin: .45em 0; }
.article-body .article-list li::marker { color: var(--red); }
