@page {
  size: A4;
  margin: 14mm 14mm 15mm;
}

@media print {
  html,
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  body::before {
    display: none !important;
  }

  .site-header,
  .hero-actions,
  .hero-meta {
    display: none !important;
  }

  .wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero {
    display: block !important;
    padding: 0 0 10mm !important;
  }

  .kicker {
    color: #0f766e !important;
    font-size: 8pt !important;
  }

  .kicker-dot {
    background: #0f766e !important;
    box-shadow: none !important;
  }

  .badges {
    margin-top: 5mm !important;
  }

  .badge {
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    background: #f8fafc !important;
  }

  .badge-amber {
    border-color: #f59e0b !important;
    color: #92400e !important;
    background: #fffbeb !important;
  }

  .hero h1 {
    margin: 5mm 0 4mm !important;
    color: #0f172a !important;
    font-size: 34pt !important;
    line-height: 1.06 !important;
  }

  .hero h1 span {
    color: #0f766e !important;
  }

  .hero-lead {
    max-width: none !important;
    color: #334155 !important;
    font-size: 12pt !important;
  }

  .hero-card {
    margin-top: 8mm !important;
    border: 0.3mm solid #cbd5e1 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .hero-card-head {
    color: #64748b !important;
  }

  .status-dot {
    color: #0f766e !important;
  }

  .hero-stats > div {
    border-color: #dbe3ee !important;
    background: #ffffff !important;
  }

  .hero-stats strong {
    color: #0f766e !important;
  }

  .hero-stats span,
  .hero-card-foot p {
    color: #475569 !important;
  }

  .hero-card-foot {
    border-top-color: #dbe3ee !important;
  }

  .statement {
    display: block !important;
    padding: 7mm 0 !important;
    border-color: #dbe3ee !important;
  }

  .statement p {
    color: #64748b !important;
  }

  .statement-strong {
    margin-top: 3mm !important;
    color: #0f172a !important;
    font-size: 16pt !important;
  }

  .section {
    padding: 9mm 0 !important;
    border-color: #dbe3ee !important;
  }

  .section-head {
    display: block !important;
    margin-bottom: 5mm !important;
    break-after: avoid;
    break-inside: avoid;
  }

  .section-no {
    display: block !important;
    margin-bottom: 2mm !important;
    padding-top: 0 !important;
    color: #0f766e !important;
  }

  .section-head h2,
  .boundary-head h2,
  .cta h2 {
    color: #0f172a !important;
    font-size: 20pt !important;
  }

  .section-head p,
  .boundary-head p {
    color: #475569 !important;
    font-size: 10pt !important;
  }

  .diagram-card {
    padding: 4mm !important;
    border: 0.3mm solid #dbe3ee !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .diagram-card figcaption {
    color: #64748b !important;
  }

  .note-grid,
  .lane-grid,
  .evidence-grid,
  .retro-grid,
  .boundary-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3mm !important;
  }

  .note,
  .lane-card,
  .decision,
  .evidence-card,
  .retro-grid article {
    border-color: #dbe3ee !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    break-inside: avoid;
  }

  .note strong,
  .lane-card h3,
  .decision h3,
  .evidence-card h3,
  .retro-grid h3 {
    color: #0f172a !important;
  }

  .note p,
  .lane-card p,
  .decision p,
  .evidence-card p,
  .retro-grid p,
  .split-note {
    color: #475569 !important;
  }

  .lane-card::before {
    height: 1mm !important;
  }

  .lane-tag {
    background: #ffffff !important;
  }

  .lane-chain {
    border-top-color: #dbe3ee !important;
  }

  .lane-chain span {
    border-color: #dbe3ee !important;
    color: #334155 !important;
    background: #ffffff !important;
  }

  .decision-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3mm !important;
  }

  .decision,
  .decision:nth-child(4),
  .decision:nth-child(5) {
    grid-column: span 1 !important;
  }

  .pullquote {
    border-color: #99f6e4 !important;
    background: #f0fdfa !important;
    break-inside: avoid;
  }

  .pullquote p {
    color: #0f766e !important;
  }

  .split {
    display: block !important;
  }

  .check-list li {
    border-color: #dbe3ee !important;
  }

  .check-list strong {
    color: #0f172a !important;
  }

  .check-list span {
    color: #475569 !important;
  }

  .metric-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2mm !important;
  }

  .metric-grid > div {
    border-color: #dbe3ee !important;
    background: #f8fafc !important;
  }

  .metric-grid strong {
    color: #0f766e !important;
  }

  .metric-grid span {
    color: #475569 !important;
  }

  code {
    border-color: #dbe3ee !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
  }

  .boundary-card {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
    break-inside: avoid;
  }

  .boundary-grid {
    border-top-color: #fde68a !important;
  }

  .boundary-grid h3 {
    color: #92400e !important;
  }

  .boundary-grid p,
  .boundary-callout {
    color: #78350f !important;
  }

  .boundary-callout {
    border-top-color: #fde68a !important;
  }

  .cta {
    padding: 7mm 0 0 !important;
  }

  .cta-inner {
    display: block !important;
    padding: 8mm !important;
    border-color: #99f6e4 !important;
    background: #f0fdfa !important;
    break-inside: avoid;
  }

  .cta-kicker {
    color: #0f766e !important;
  }

  .cta p {
    color: #475569 !important;
  }

  .cta-actions {
    display: block !important;
  }

  .cta-actions .btn-ghost,
  .cta-link {
    display: none !important;
  }

  .site-footer {
    display: flex !important;
    padding: 6mm 0 0 !important;
    border-top: 0.3mm solid #dbe3ee !important;
    color: #64748b !important;
    font-size: 8pt !important;
  }

  .site-footer strong {
    color: #0f172a !important;
  }

  .footer-right a {
    color: #0f766e !important;
  }

  .note,
  .lane-card,
  .decision,
  .evidence-card,
  .retro-grid article,
  .metric-grid > div,
  .hero-card,
  .boundary-card,
  .cta-inner,
  .diagram-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .section-head h2,
  .boundary-head h2,
  .cta h2 {
    break-after: avoid;
  }

  .note-grid,
  .lane-grid,
  .evidence-grid,
  .retro-grid,
  .boundary-grid,
  .metric-grid,
  .decision-grid {
    break-inside: avoid;
  }
}
