/* ============================================================
   PRINT — the report a patient walks out with.
   Everything interactive disappears; only measured findings
   and the prescription survive onto paper.
   ============================================================ */
@media print{
  :root{
    --bg:#fff;--bg-2:#fff;--surface:#fff;--surface-2:#fff;--surface-3:#f2f2f2;
    --line:#d6ded9;--line-2:#b9c6c1;--line-3:#93a5a0;
    --fg:#101d1a;--fg-2:#31423e;--fg-3:#5d6d69;
    --brand:#0F7A6C;--brand-soft:#eef7f5;--brand-line:#9fd0c8;--on-brand:#fff;
    --shadow-1:none;--shadow-2:none;--shadow-3:none;--grain-opacity:0;
  }
  @page{size:A4;margin:14mm 12mm}

  html,body{background:#fff!important;color:#101d1a!important;font-size:11pt;line-height:1.7}

  .grain,.hud,.boot,.toast,.hero__bg,.section__glow{display:none!important}
  .stage__tools,.stage__hint,.panel__foot,.drop input,.steps{display:none!important}
  .btn,.chip,.iconbtn,.slider,.svc__go{display:none!important}
  .no-print{display:none!important}

  .print-only{display:block!important}

  .section{padding-block:0 10mm;border-top:0;break-inside:avoid}
  .wrap{padding-inline:0;max-width:none}

  .panel,.card,.readout,.rx,.finding,.ccard{
    border:1px solid #d6ded9!important;box-shadow:none!important;break-inside:avoid;
  }
  .readout__row{break-inside:avoid}
  .rx__item{break-inside:avoid}

  h1{font-size:22pt}
  h2{font-size:16pt;margin-top:6mm}
  h3{font-size:13pt}

  a{color:#0F7A6C!important;text-decoration:none}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:8pt;color:#5d6d69}
  a[href^="#"]::after,a[href^="tel"]::after{content:""}

  .disclaimer{border:1px solid #b9c6c1!important;border-inline-start:3px solid #b98f17!important}
  canvas,img{max-width:100%!important;break-inside:avoid}
}

.print-only{display:none}

/* Report header only exists on paper */
@media print{
  .rpt-head{
    display:flex!important;align-items:center;gap:12px;
    padding-bottom:5mm;margin-bottom:6mm;border-bottom:2px solid #0F7A6C;
  }
  .rpt-head img{width:52px;height:52px}
  .rpt-head b{font-size:14pt;display:block}
  .rpt-head span{font-size:9pt;color:#5d6d69;display:block}
  .rpt-head .rpt-meta{margin-inline-start:auto;text-align:end;font-size:9pt;color:#5d6d69}
}
