/* ASF Berlin — print stylesheet (spec §8.2).
   A4 process summary and checklist; direction-agnostic via logical props. */

@media print {
  nav,
  .site-header,
  .site-footer,
  .sticky-cta,
  .language-switcher,
  .breadcrumbs,
  .toc,
  .cta-card,
  .routing,
  .nav-toggle,
  .mobile-nav,
  .filter-form,
  .year-nav,
  .no-print,
  .skip-link {
    display: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.45;
    color: #000;
    background: #fff;
  }

  .container { width: 100%; max-width: none; }
  .content-wrap { padding: 0; }
  .article__layout { display: block; }

  h1 { font-size: 18pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 12pt; }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
    font-weight: 400;
  }
  /* Do not expand anchors that are buttons/CTA-labels or fragment links */
  a[href^="#"]::after,
  .btn::after,
  .sources a::after { content: none; }
  .sources a[href]::after { content: " (" attr(href) ")"; }

  table { page-break-inside: avoid; }
  h2, h3 { page-break-after: avoid; }
  .faq-item { page-break-inside: avoid; }
  .timeline__item { page-break-inside: avoid; }
  tr, td, th { page-break-inside: avoid; }

  .faq-item[open] .faq-item__body,
  .faq-item .faq-item__body { display: block; }
  details > summary { list-style: none; }
  details > summary::after { content: none; }
  details:not([open]) .faq-item__body { display: block; }

  /* Expand every <details> for print — chart tables, FAQ answers, map lists. */
  details > *:not(summary) { display: block !important; }
  details[open], details:not([open]) > *:not(summary) { display: block !important; }
  .chart__table summary, .print-only { display: block !important; }
  .chart__table summary::before { content: "■ "; }
  .az-nav { display: none !important; }

  .checklist input[type="checkbox"] { appearance: none; inline-size: 10pt; block-size: 10pt; border: 1pt solid #000; }

  .stat__value { color: #000; }
  .stats-strip { background: #fff; color: #000; }

  /* v3: every js-motion hidden state must be final/visible on paper */
  .js-motion [data-reveal],
  .js-motion .routing__card, .js-motion .card, .js-motion .kcard,
  .js-motion .stat, .js-motion .timeline__item, .js-motion .knowledge-topic,
  .js-motion .fact-box, .js-motion .bezirk-map__wrap,
  .js-motion .panel-ledger, .js-motion .panel-route__stop {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
    animation: none !important;
    transition: none !important;
  }
  .js-motion .panel-route__stop::before { scale: 1 1 !important; animation: none !important; }

  /* Print surfaces: dark blocks become bordered white */
  .date-badge, .panel-ledger, .article-hero__panel, .next-date-band {
    background: #fff !important; color: #000 !important;
    border: 1pt solid #999 !important;
  }
  .date-badge *, .panel-ledger *, .article-hero__panel *, .next-date-band * { color: #000 !important; }
  .date-badge__month { display: inline-block !important; width: auto !important; padding: .1em .5em; background: #fff !important; border: 1pt solid #000; }
  .hero__grid, .article-hero { display: block !important; }
  .panel-ledger { margin-block-start: 1rem; }
  .publisher-band__media { display: none; }

  /* v5: decision figure has HTML labels — on paper the svg yields to them. */
  .diagram--has-labels .diagram__svg { display: none; }
  .publisher-band { border-block: 1pt solid #999; }

  @page {
    margin: 20mm 18mm;
  }
}
