/* Sprawozdania, aktualności i publikacje archiwalne. */
:root {
  --ink: #181a1c;
  --paper: #fff;
  --muted: #53585c;
  --line: #d5d8da;
  --wash: #f1f2f2;
  --accent: #555c62;
  --focus: #555c62;
  --editorial-gap: clamp(1.25rem, 3.2vw, 3rem);
}

:where(.archive-page, .report-page) [id] { scroll-margin-top: 1.5rem; }
.site-footer { background: #f1f2f2; color: var(--ink); }
.site-footer .brand-logo { filter: none; }
.footer-inner address, .footer-links a { color: var(--muted); }
.site-footer :focus-visible { outline-color: var(--focus); }
.site-header { border-bottom: 1px solid var(--line); }
.report-page .eyebrow, .archive-page .eyebrow,
.manifesto-nav, .archive-item time, .report-nav a {
  font: 500 .8rem / 1.55 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .035em;
}
.report-page .eyebrow, .archive-page .eyebrow {
  margin-bottom: .75rem;
  color: var(--accent);
  text-transform: uppercase;
}
:where(.report-page, .archive-page) a { text-underline-offset: .24em; }
:where(.report-page, .archive-page) a:hover { color: var(--accent); }
:where(.report-page, .archive-page) a.button:hover { background: #383c40; color: white; }
:where(.archive-back, .report-page) > .text-link {
  font-size: .875rem;
  font-weight: 500;
}
.archive-back:first-child, .report-back {
  margin: 0 0 clamp(1rem, 2.5vw, 2rem);
}
:where(.archive-back:first-child, .report-page) > :where(.report-back, .text-link:first-child) {
  color: var(--muted);
}

.archive-page, .report-page {
  padding-block: clamp(2.25rem, 4.5vw, 5rem) clamp(4rem, 9vw, 8rem);
}
.archive-heading { margin: 0; padding: 0 0 clamp(2.25rem, 4.2vw, 4rem); }
.archive-heading h1, .report-hero h1 {
  max-width: 20ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.3vw, 5.5rem);
  line-height: 1.035;
  font-weight: 600;
  letter-spacing: -.066em;
  text-wrap: balance;
}
.archive-heading p:not(.eyebrow) { margin-top: 1.25rem; }
.archive-page > .archive-heading > p:not(.eyebrow) {
  max-width: 36em;
  font-size: clamp(1rem, 1.5vw, 1.27rem);
}
.archive-section { max-width: none; margin-block: clamp(2.25rem, 4.2vw, 4.25rem); }
.archive-section h2 { margin-bottom: 1.5rem; font-size: clamp(1.5rem, 2.8vw, 2.5rem); }
.archive-item {
  display: grid;
  grid-template-columns: minmax(6.7rem, .37fr) minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: start;
  gap: .45rem var(--editorial-gap);
  padding-block: clamp(1.1rem, 2.4vw, 2.25rem);
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.archive-item:last-child { border-bottom: 1px solid var(--line); }
.archive-item :is(h2, h3) { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.24; }
.archive-item h3 a, .news-card h3 a { text-decoration: none; }
.archive-item h3 a:hover, .news-card h3 a:hover { text-decoration: underline; }
.archive-item p { margin: 0; font-size: 1rem; line-height: 1.65; }
.archive-meta { display: grid; justify-items: start; gap: .2rem; margin: 0; }
.archive-item time { padding-top: .13rem; white-space: nowrap; color: var(--muted); }
.archive-badge { padding: 0; background: none; font-size: .75rem; font-weight: 400; }
.news-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: var(--editorial-gap);
}
.news-card {
  display: block;
  position: relative;
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  padding: 1.15rem 0 0;
}
.news-card.news-lead { grid-row: span 2; border: 0; padding: 0; }
.news-visual { margin-bottom: 1rem; }
.news-visual figcaption { margin-top: .3rem; font-size: .78rem; color: var(--muted); }
.news-photo { width: 100%; aspect-ratio: 2.15; object-fit: cover; }
.news-card .eyebrow { color: var(--accent); }
.news-card h3 { margin: .1rem 0 .55rem; font-size: clamp(1.6rem, 2.8vw, 2.45rem); line-height: 1.14; }
.news-lead h3 { font-size: clamp(2rem, 3.8vw, 3.5rem); }
.news-lead h3 a::after { content: ""; position: absolute; inset: 0; }
.news-lead:focus-within { outline: 2px solid var(--focus); outline-offset: 5px; }
.news-card:not(.news-lead) h3 a { display: inline-block; padding-block: .12rem; }
.news-card p:not(.eyebrow) { max-width: 54ch; }
.news-highlights + .archive-section { margin-top: clamp(3rem, 6vw, 6rem); }

.article-content {
  max-width: min(100%, 45rem);
  margin: clamp(2rem, 4vw, 4rem) auto 0;
  line-height: 1.82;
}
.article-content h2, .article-content h3 { margin-block: 1.5em .5em; line-height: 1.18; }
.article-content h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.article-content > :first-child { margin-top: 0; }
.article-content > p:first-child, .article-content > figure:first-child + p { font-size: clamp(1.03rem, 1.6vw, 1.25rem); line-height: 1.66; }
.article-content img, .archive-gallery img { border-radius: 2px; }
.article-content > figure:not(.archive-gallery) { margin-block: 2rem; }
.article-content :is(ul, ol) { padding-inline-start: 1.35rem; }
.article-content li + li { margin-top: .5rem; }
.article-content .archive-gallery { padding: 0; }
.article-content .archive-gallery li { margin: 0; }
.article-content blockquote {
  margin: clamp(2rem, 4vw, 3.25rem) 0;
  padding: .25rem 0 .25rem clamp(1rem, 2.6vw, 2rem);
  border-left: 3px solid var(--accent);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.52;
  letter-spacing: -.025em;
}
.article-content summary, .archive-section summary { margin-block: 1rem; border-block: 1px solid var(--line); }
.article-content details > p { margin-block: .8rem; }
.manifesto-reading {
  display: grid;
  grid-template-columns: minmax(11rem, .5fr) minmax(0, 1.5fr);
  align-items: start;
  gap: var(--editorial-gap);
  padding-top: clamp(2rem, 4vw, 4rem);
}
.manifesto-nav {
  display: grid;
  justify-items: start;
  position: sticky;
  top: 1.5rem;
  width: fit-content;
  padding-top: .3rem;
  font-size: .87rem;
}
.manifesto-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.manifesto-nav a:hover { text-decoration: underline; }
.manifesto-reading .article-content { margin: 0; }

.report-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: var(--editorial-gap);
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.report-intro { padding-block: 1rem; }
.report-hero h1 { margin-block: .65rem 1.05rem; font-size: clamp(2.35rem, 4.8vw, 4.95rem); }
.report-intro > p:not(.eyebrow, .report-meta) { max-width: 50ch; color: var(--muted); line-height: 1.68; }
.report-intro .report-meta { color: var(--ink); font-size: .9rem; font-weight: 500; }
.report-visual img { aspect-ratio: 1.48; border-radius: 2px; }
.report-visual figcaption { font-size: .8rem; }
.report-nav {
  gap: .2rem clamp(1rem, 3.2vw, 3rem);
  margin-block: clamp(2rem, 4vw, 3.75rem) 0;
  padding-block: .35rem;
  border-block: 1px solid var(--ink);
}
.report-nav a { text-decoration: none; font-size: .89rem; }
.report-nav a:hover { text-decoration: underline; }
.report-section {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 1.1rem var(--editorial-gap);
  margin: 0;
  padding-block: clamp(2.25rem, 4.5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.report-section > * { grid-column: 2; min-width: 0; }
.report-section > h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.13;
  text-wrap: balance;
}
.report-body { display: grid; gap: 1.3rem; }
.report-section > p, .report-stats + p, .report-section .actions, .report-stats,
.report-grid, .report-accordion, .report-gallery { margin: 0; }
.report-body > p, .report-section > p:not(.report-credit), .report-card p { color: var(--muted); }
.report-stats, .report-grid, .report-gallery { gap: var(--editorial-gap); }
.report-stats { display: flex; flex-wrap: wrap; row-gap: 1.25rem; }
.report-stats > div {
  flex: 1 1 6rem;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
}
.report-stats dd {
  grid-row: 1;
  color: var(--accent);
  line-height: 1;
  font-size: clamp(2.75rem, 4.8vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -.075em;
}
.report-stats dt { grid-row: 2; max-width: 21ch; font-size: .9rem; }
.report-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.report-card { padding: 1.05rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.report-card h3 { margin-block: 0 .65rem; font-size: clamp(1.18rem, 2vw, 1.5rem); }
.report-card ul { margin: .6rem 0 0; }
.report-card li + li { margin-top: .55rem; }
.report-accordion details:first-child, details.report-accordion { border-top: 1px solid var(--line); }
.report-accordion summary { min-height: 52px; padding-block: .8rem; line-height: 1.45; }
.report-accordion summary::marker, .article-content li::marker { color: var(--accent); }
.report-accordion summary:hover { color: var(--accent); }
.report-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 1.5vw, 1.3rem); }
.report-section:has(.report-gallery) > h2 { grid-row: 1; }
.report-section:has(.report-gallery) > p:first-of-type { align-self: end; }
.report-section .report-gallery, .report-section .report-credit { grid-column: 1 / -1; }
.report-gallery img, .report-gallery a[data-report-photo], .report-lightbox { border-radius: 2px; }
.report-materials { background: none; border: 0; }
.report-lightbox::backdrop { background: #151619db; }
.report-control:hover { color: var(--accent); }
.missing-page {
  min-height: 75vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: var(--editorial-gap);
}
.missing-page .archive-heading { padding: 0; border: 0; }
.missing-page::after {
  content: "";
  display: block;
  aspect-ratio: 1.25;
  background: #e5e8ea url("hero-orbita.webp") 85% 56% / cover no-repeat;
}

@media (max-width: 880px) {
  .archive-item { grid-template-columns: 7rem minmax(0, 1fr); }
  .archive-item > p { grid-column: 2; }
  .archive-item .archive-meta { grid-row: span 2; }
}
@media (max-width: 780px) {
  .report-hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .report-intro { padding: 0; }
  .report-visual img { aspect-ratio: 1.8; }
  .report-section { grid-template-columns: 1fr; }
  .report-section > *, .report-section > h2 { grid-row: auto; grid-column: 1; }
  .report-section > h2 { text-wrap: initial; }
}
@media (max-width: 650px) {
  .news-grid, .manifesto-reading, .missing-page { grid-template-columns: 1fr; }
  .news-card.news-lead { grid-row: auto; }
  .archive-item { grid-template-columns: 1fr; gap: .55rem; }
  .archive-item > p { grid-column: 1; }
  .archive-item .archive-meta { grid-row: auto; display: flex; }
  .manifesto-nav { position: static; display: flex; flex-wrap: wrap; gap: 0 1.15rem; }
  .missing-page { min-height: auto; }
  .missing-page::after { aspect-ratio: 2; }
}
@media (max-width: 520px) {
  .report-stats { display: grid; gap: .8rem; }
  .report-stats > div { grid-template-columns: 4.25rem minmax(0, 1fr); grid-template-rows: auto; }
  .report-stats dt { grid-area: 1 / 2; max-width: none; }
  .report-stats dd { font-size: 2.45rem; }
  .report-gallery { grid-template-columns: 1fr 1fr; }
  .report-gallery li:first-child:last-of-type, .report-gallery li:first-child:nth-last-child(3) { grid-column: 1 / -1; }
}
