/* Printed and exported material: PDF-raportti, kohdekortti, tekninen yhteenveto and Pikaopas are the browser's print-to-PDF of #print.
   Paper always takes the LIGHT workspace, whatever the screen shows: the block below repeats the light workspace values of the
   token block in base.css (keep the two in step), and every rule after it reads tokens. No chrome colours on paper. */
#print{display:none}
@media print{
  @page{size:A4;margin:16mm 15mm}
  :root,:root[data-ws="dark"]{
    color-scheme:light;
    --bg:#ffffff; --bg-soft:#f4f6f5; --bg-sunk:#eaedeb; --bg-over:#ffffff;
    --line:#e2e6e3; --line-2:#cfd5d2;
    --ink:#111719; --ink2:#465055; --ink3:#69747a;
    --acc:var(--acc-l); --acc-soft:color-mix(in srgb,var(--acc-l) 12%,#ffffff);
    --warn:#b4541a; --warn-soft:#fbefe5; --bad:#b3261e; --bad-soft:#fbeceb;
    --info:#2b5fa8; --info-soft:#e9f0fa; --vio:#6a45c9; --vio-soft:#efeafb;
    --ok-ink:#17523f; --warn-ink:#8a3f10; --bad-ink:#8c1d17; --info-ink:#214a85; --vio-ink:#4f33a0;
    --sh-1:none; --sh-2:none; --sh-3:none;
  }
  html,body{height:auto;overflow:visible;background:var(--white)}
  #app,#login,.toast,.modal-bg,.ui-menu,#demo-stage{display:none!important}
  #print{display:block;font-family:var(--sans);color:var(--ink);font-size:10.5pt;line-height:1.45;font-variant-numeric:tabular-nums}
  /* the head line: the organisation and the product left, the unit and the date right, on a hairline */
  #print .p-head{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:.75pt solid var(--ink);padding-bottom:8pt;margin-bottom:14pt}
  #print .p-head .b{font-weight:600;font-size:12pt;letter-spacing:-.02em}
  #print .p-head small{color:var(--ink3);font-size:8.5pt}
  /* the document title is the one big moment on a page: the serif. Everything else is Inter. */
  #print h1{font-family:var(--serif);font-size:22pt;font-weight:400;letter-spacing:-.015em;line-height:1.15;margin:0 0 4pt}
  #print h2{font-size:12pt;font-weight:600;letter-spacing:-.005em;margin:16pt 0 6pt}
  #print h3,#print h4{font-size:10.5pt;font-weight:600;margin:10pt 0 3pt}
  #print h2.p-oma{font-size:11pt;margin:10pt 0 2pt;padding-bottom:3pt;border-bottom:.75pt solid var(--line-2)}
  #print .sub{color:var(--ink2);margin:0 0 12pt}
  #print a{color:inherit;text-decoration:none}
  /* four figures in one row divided by hairlines (the same component as on screen) */
  #print .p-stats{display:grid;grid-template-columns:repeat(4,1fr);border:.75pt solid var(--line);border-radius:var(--r-s);margin:0 0 12pt}
  #print .p-stats div{padding:7pt 9pt;border-left:.75pt solid var(--line)}
  #print .p-stats div:first-child{border-left:0}
  #print .p-stats small{display:block;color:var(--ink3);font-size:8pt;font-weight:500}
  #print .p-stats b{font-weight:600;font-size:15pt;letter-spacing:-.02em;white-space:nowrap}
  /* tables: hairlines, no vertical lines, the header muted */
  #print table{width:100%;border-collapse:collapse;font-size:8.5pt}
  #print th{text-align:left;color:var(--ink3);font-weight:500;border-bottom:.75pt solid var(--line-2);padding:4pt 5pt}
  #print td{border-bottom:.5pt solid var(--line);padding:4pt 5pt;vertical-align:top}
  #print td.num,#print th.num{text-align:right;white-space:nowrap}
  #print tr{break-inside:avoid}
  #print .ui-mono,#print .p-id{font-family:var(--mono);font-size:8pt;font-variant-ligatures:none;letter-spacing:-.01em}
  #print .p-kv{display:grid;grid-template-columns:150pt 1fr;gap:5pt 12pt;border-bottom:.5pt solid var(--line);padding:5pt 0}
  #print .p-kv span:first-child{color:var(--ink3)}
  #print .p-foot{margin-top:14pt;color:var(--ink3);font-size:8pt;line-height:1.4}
  /* the map on a printed kohdekortti and the Aineistot appendix */
  #print .p-map{display:block;width:100%;max-height:260px;object-fit:cover;border:.75pt solid var(--line-2);border-radius:var(--r-s);margin:8px 0 12px}
  #print .p-break{break-before:page}
  #print .p-src th,#print .p-src td{padding:3pt 6pt 3pt 0}
  /* tekninen yhteenveto */
  #print .p-tk{font-size:10pt;margin-top:6pt}
  #print .p-tk td,#print .p-tk th{padding:4pt 10pt 4pt 0}
  #print .p-tk td:nth-child(2){font-weight:600}
  /* Pikaopas */
  #print .p-po{break-inside:avoid;margin-bottom:10pt}
  #print .p-po p{margin:2pt 0 6pt;color:var(--ink2)}
  #print .p-po img{display:block;width:100%;border:.75pt solid var(--line-2);border-radius:var(--r-s)}
  #print .p-vh td{vertical-align:top}
}
