/* Print is a separate reading surface. The deliberate high specificity keeps
   inherited legacy themes from pairing dark text with dark screen gradients. */
@media print {
  html:root body,
  html:root body :is(*, #print-reading-surface) {
    color: #17232b !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #b9c5ca !important;
    backdrop-filter: none !important;
  }
  html:root body { background: #fff !important; font-size: 9.5pt !important; line-height: 1.45 !important; }
  html:root body :is(.site-header,.site-footer,.local-nav,.rail,.private-banner,.hero-actions,.reading-tools,.skip-link,.contact-panel,.nav-toggle,.shell-logout) { display: none !important; }
  html:root body :is(.shell,.wrap,.page) { width: 100% !important; max-width: none !important; margin: 0 !important; }
  html:root body :is(.hero,.page-hero,.marketing-hero) { min-height: 0 !important; padding: 14px 0 20px !important; }
  html:root body :is(.hero-grid,.section,.section-head,main) { padding-top: 16px !important; padding-bottom: 16px !important; margin-top: 0 !important; margin-bottom: 16px !important; }
  html:root body h1 { font-size: 30pt !important; line-height: 1.08 !important; margin: 8px 0 16px !important; }
  html:root body h2 { font-size: 19pt !important; line-height: 1.2 !important; }
  html:root body h3 { font-size: 14pt !important; line-height: 1.25 !important; }
  html:root body :is(h2,h3,h4,h5,summary) { break-after: avoid !important; }
  html:root body :is(.card,.proof-card,.feature,.evidence-feature,.case,.role,.project,.scenario,.register,.verdict,.panel,.engine,details,section) { break-inside: auto !important; }
  html:root body :is(.card,.proof-card,.feature,.evidence-feature,.case-title,.case-id,.analysis,.artifact,.verdict,.disclosure-body,.hero-note,.closing) { padding: 14px !important; }
  html:root body :is(.case,.manifesto,.closing,.case-map) { margin-top: 14px !important; margin-bottom: 20px !important; }
  html:root body :is(.case-body,.manifesto) { display: block !important; }
  html:root body :is(.artifact,pre,code,.tag,.note) { background: #f2f5f6 !important; }
  html:root body pre { font-size: 8pt !important; line-height: 1.4 !important; white-space: pre-wrap !important; overflow-wrap: anywhere !important; overflow: visible !important; padding: 12px !important; }
  html:root body a { color: #075b58 !important; }
  html:root body .lead { font-size: 12pt !important; }
  html:root body :is(img.portrait,.landing-portrait) { max-height: 180px !important; width: auto !important; }
  html:root body div.portrait { max-height: none !important; }
  html:root body .career-scale { min-width: 0 !important; grid-template-columns: repeat(5,minmax(0,1fr)) !important; }
  html:root body .career-ladder { overflow: visible !important; break-inside: avoid !important; }
  html:root body:is(.cv-document,.legacy-cv) { font-size: 9pt !important; }
  html:root body:is(.cv-document,.legacy-cv) .page { border: 0 !important; }
  html:root body:is(.cv-document,.legacy-cv) .page > header { padding: 0 0 12px !important; }
  html:root body:is(.cv-document,.legacy-cv) .summary { padding: 12px 0 !important; font-size: 10pt !important; }
  html:root body:is(.cv-document,.legacy-cv) .body { display: grid !important; grid-template-columns: minmax(0,1fr) 55mm !important; gap: 7mm !important; padding: 14px 0 !important; }
  html:root body:is(.cv-document,.legacy-cv) .body main { padding: 0 !important; margin: 0 !important; }
  html:root body:is(.cv-document,.legacy-cv) section { margin: 0 0 16px !important; }
  html:root body:is(.cv-document,.legacy-cv) :is(.role,.project) { padding: 0 !important; margin: 0 0 14px !important; }
  html:root body:is(.cv-document,.legacy-cv) h3 { font-size: 9pt !important; margin-bottom: 10px !important; }
  html:root body:is(.cv-document,.legacy-cv) h4 { font-size: 10pt !important; }
  html:root body:is(.cv-document,.legacy-cv) .role-head { display: block !important; }
  html:root body:is(.cv-document,.legacy-cv) :is(p,li) { font-size: inherit !important; margin-bottom: 4px !important; }
}
