/* Informe para la función nativa Imprimir / Guardar como PDF. */
@media print {
  @page { margin: 14mm; }

  html, body { margin: 0; padding: 0; background: #fff; color: #142b38; }
  body { font: 10pt/1.35 Arial, sans-serif; }
  .wrap { width: auto; max-width: none; margin: 0; }
  .skip, .back, .intro, .section-heading, .work-grid > div,
  .learn, footer, button { display: none !important; }
  .header { color: #142b38; background: transparent; border-bottom: 1pt solid #87aab7; }
  .header-inner { min-height: 0; padding: 0 0 5mm; }
  .brand { color: #142b38; font-size: 19pt; }
  .brand img { width: 26pt; height: 26pt; }
  .brand small { color: #276479; font-size: 6pt; margin-top: 4pt; }
  .workspace { padding: 5mm 0 0; }
  .work-grid { display: block; }
  .results { position: static; display: flex; flex-direction: column; padding: 0; background: transparent; color: #142b38; }
  .print-heading { display: block; order: 0; }
  .results-heading { order: 1; }
  #results { order: 2; }
  .print-empty:not([hidden]) { display: block; order: 3; color: #142b38; }
  .result-foot { order: 4; }
  .results:has(#results.no-results) .print-heading,
  .results:has(#results.no-results) .results-heading,
  .results:has(#results.no-results) #results,
  .results:has(#results.no-results) .result-foot { display: none; }
  .results .eyebrow { color: #276479; font-size: 8pt; margin-bottom: 2mm; }
  .results h2 { color: #142b38; font-size: 19pt; }
  .results-heading > h2 { display: none; }
  .print-title { display: block; margin: 0; color: #142b38; font-size: 19pt; line-height: 1.2; }
  .print-date { display: block; color: #344f5c; font-size: 9pt; margin: 1mm 0 0; }
  .mode-label { color: #142b38; border: 0; padding: 0; margin: 2mm 0 0; font-size: 9pt; font-weight: bold; }
  #results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6mm; }
  #results:has(> .result-card:only-of-type) { grid-template-columns: minmax(0, 110mm); }
  #results:has(> .result-card) > .empty { display: none; }
  .comparison { grid-column: 1 / -1; margin: 4mm 0 0; padding: 3mm; background: transparent; color: #142b38; border: 1pt solid #9abac4; }
  .comparison strong { font-size: 10pt; }
  .comparison p { font-size: 8pt; margin: 1mm 0 0; }
  .result-card { break-inside: avoid; padding: 4mm 0 2mm; border-bottom: 1pt solid #a8c2ca; }
  .result-card h3 { color: #142b38; font-size: 12pt; margin: 0 0 2mm; }
  .result-primary { gap: 3mm; }
  .result-primary span, .result-primary small { color: #344f5c; font-size: 8pt; }
  .result-primary strong { color: #142b38; font-size: 13pt; }
  .result-assumptions { color: #344f5c; font-size: 8pt; line-height: 1.3; margin: 2mm 0; }
  .result-card details { margin-top: 2mm; }
  .result-card summary { color: #142b38; font-size: 9pt; list-style: none; }
  .result-card summary::-webkit-details-marker { display: none; }
  .result-card details::details-content { content-visibility: visible; display: block; }
  .breakdown { margin: 1mm 0 0; font-size: 8.5pt; }
  .breakdown div { gap: 2mm; padding: 0.7mm 0; border-bottom: 0.3pt solid #e0eaed; }
  .result-foot { color: #344f5c; font-size: 8pt; line-height: 1.35; margin: 4mm 0 0; }
  .empty { color: #344f5c; font-size: 9pt; padding: 2mm 0; }
}
