/* ============================================================
   Print. Swedish decisions are made by several stakeholders,
   so this page gets forwarded and attached. Printed, it should
   be a clean capability statement on A4 — not a screenshot of
   a website.
   ============================================================ */
@media print {
  @page { size: A4; margin: 18mm 16mm; }

  :root{
    --bg:#FFFFFF; --surface:#FFFFFF; --surface-alt:#FFFFFF; --surface-hover:#FFFFFF;
    --border:#000000; --hair:#BBBBBB;
    --text:#000000; --text-secondary:#222222; --text-tertiary:#555555;
    --text-tertiary-inv:#555555; --text-invert:#FFFFFF;
    --accent:#000000; --verified:#000000; --attention:#000000; --critical:#000000;
    --plane-bg:#FFFFFF; --plane-fg:#000000; --plane-fg-dim:#444444;
    --plane-hair:#BBBBBB; --pad:0;
  }

  html,body{background:#fff!important;color:#000!important;font-size:10.5pt}

  /* screen furniture that means nothing on paper */
  .lang,.lang-offer,.theme,.marquee,.toast,.enq,.dochead .meta span:last-child,
  .btn,.btn-ghost,.nf-links{display:none!important}

  .dochead{position:static;border-bottom:1.5pt solid #000}
  .dochead-inner{padding:0 0 6pt}

  .hero{background-image:none!important}
  #plot{display:none!important}

  .band{border-bottom:.5pt solid #999;break-inside:avoid}
  .band-inner{display:grid;grid-template-columns:34mm 1fr;padding:0}
  .band-key{padding:8pt 6mm 8pt 0}
  .band-val{padding:8pt 0 12pt}

  .thesis{font-size:26pt;line-height:1.02;max-width:20ch}
  .lede{font-size:11pt;max-width:none}

  /* the figure is the argument — keep it, keep it whole */
  figure{border:.5pt solid #000;break-inside:avoid}
  .fig path{stroke-dashoffset:0!important}
  .fig .fade{opacity:1!important}
  .fig-wrap{grid-template-columns:1fr 62mm}

  .spec{font-size:8.5pt} .spec td{padding:5pt 8pt 5pt 0}
  .eng-facts{font-size:8pt}

  .colo{background:#fff!important;color:#000!important;border-top:1.5pt solid #000}
  .colo-in{border-bottom:0}

  /* a printed page loses its links, so spell the important ones out */
  .prose a[href^="http"]::after,
  .colo a[href^="http"]::after{content:" (" attr(href) ")";font-size:7.5pt;word-break:break-all}
  a[href^="mailto:"]::after{content:""}

  h1,h2,h3{break-after:avoid}
  .who{break-inside:avoid}
}
