/* Printed route presentation; screen layouts and route calculations stay separate. */
@media print {
  :root {
    --blue-950: #062e42;
    --blue-900: #06466a;
    --blue-800: #075985;
    --blue-700: #075985;
    --coral: #b94632;
    --warning: #8a5609;
  }
  @page { size: A4; margin: 12mm; }
  body { font: 9.5pt/1.45 Arial, Helvetica, sans-serif; color: #102f3c; }
  .print-brand { gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-color: #c6e7f2; }
  .print-brand-name { font: 800 13pt/1.2 Arial, Helvetica, sans-serif; color: #06466a; letter-spacing: -.02em; }
  .print-brand-copy { display: flex; flex-direction: column; }
  .print-brand-tagline { color: #075985; font-size: 7pt; }
  .results-heading { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 12px; }
  .results-heading h2 { font: 800 21pt/1.15 Arial, Helvetica, sans-serif; letter-spacing: -.035em; }
  .coverage-pill { font-size: 8pt; background: #e7f6f1; }
  .route-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
  .route-tab { flex: 1 1 0; }
  .route-tab { position: relative; display: flex; flex-direction: column; min-height: 108px; padding: 11px; border: 1px solid #cce9f4; border-radius: 12px; background: white; color: #143247; box-shadow: none; }
  .route-tab[aria-selected="true"] { color: white; border-color: #075985; background: linear-gradient(120deg, #075985, #06466a); box-shadow: none; }
  .route-tab .tab-topline { gap: 7px; flex-wrap: nowrap; justify-content: flex-start; }
  .route-tab-icon { width: 29px; height: 29px; flex: none; border-radius: 50%; color: #075985; background: #e3f5fc; }
  .route-tab[aria-selected="true"] .route-tab-icon { color: white; background: #075985; }
  .route-tab-icon svg { width: 19px; height: 19px; }
  .route-tab-icon svg { stroke: #075985; }
  .route-tab[aria-selected="true"] .route-tab-icon svg { stroke: white; }
  .route-tab[aria-selected="true"] .route-tab-icon svg [fill="currentColor"] { fill: white; }
  .route-tab .tab-name { font-size: 10pt; }
  .route-tab small { margin: 6px 0 8px; color: #526c7c; font-size: 8pt; line-height: 1.35; }
  .route-tab[aria-selected="true"] small { color: #d9f2fc; }
  .route-tab .tab-bottomline { margin-top: 6px; gap: 8px; flex-shrink: 0; }
  .route-tab .tab-score { color: #06466a; font-size: 10pt; }
  .route-tab[aria-selected="true"] .tab-score { color: white; }
  .route-tab .recommended-label { padding: 3px 6px; color: #086853; background: #e3f5ed; font-size: 6pt; }
  .route-scroll-controls { display: none !important; }
  .route-map-card { margin-top: 12px; border: 1px solid #c6e7f2; border-radius: 16px; }
  .map-heading { display: flex; flex-direction: row; min-height: 66px; align-items: center; padding: 12px 94px 12px 16px; background: linear-gradient(120deg, #075985, #06466a); }
  .map-heading h3 { font-size: 15pt; }
  .map-subtitle { margin-top: 3px; font-size: 8.5pt; }
  .map-brand-wave { width: 88px; height: 63px; }
  .route-map-viewport { aspect-ratio: 900 / 440; }
  .map-legend { gap: 7px; padding: 10px 12px 0; font-size: 8pt; }
  .legend-line { border-top-color: #075985; }
  .legend-line.flight { border-top-color: #8a5609; }
  .legend-line.transfer { border-top-color: #b94632; }
  .map-legend span { padding: 5px 8px; border-radius: 8px; background: #f0f8fc; }
  .map-foot { flex-direction: row; padding: 8px 12px; font-size: 7.5pt; }
  .map-place-list { gap: 5px; padding: 0 12px 12px; }
  .map-place-list span { padding: 4px 7px; font-size: 8pt; }
  .selected-plan { margin-top: 14px; }
  .plan-overview { border: 0; background: transparent; }
  .plan-banner { align-items: center; padding: 14px 16px; gap: 14px; border-radius: 14px 14px 0 0; background: linear-gradient(120deg, #075985, #06466a); break-after: avoid; }
  .plan-banner h3 { font: 800 16pt/1.2 Arial, Helvetica, sans-serif; }
  .plan-banner p { font-size: 8.5pt; line-height: 1.45; }
  .score-ring { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 3px solid #c9eefa; color: #06466a; background: white; font-size: 18pt; }
  .plan-stats { grid-template-columns: repeat(4, 1fr); border: 1px solid #cce9f4; border-top: 0; border-radius: 0 0 12px 12px; background: #fafdff; break-before: avoid; }
  .plan-stat { padding: 10px 8px; }
  .plan-stat strong { color: #06466a; font-size: 10pt; }
  .plan-stat strong[style] { color: #b94632 !important; }
  .plan-stat span { font-size: 7.5pt; }
  .pacing-note { display: block; margin: 10px 0 0; padding: 10px; font-size: 8.5pt; }
  .pacing-note svg { display: inline-block; width: 16px; height: 16px; margin-right: 7px; vertical-align: middle; }
  .pacing-note span { vertical-align: middle; }
  .pacing-note.warning { color: #102f3c; background: #fff0ec; }
  .pacing-note.warning svg { color: #b94632; stroke: #b94632; fill: none; }
  .pacing-note.warning svg circle { fill: #b94632; }
  .legs { padding: 0; }
  .legs h4 { margin: 16px 0 8px; font-size: 15pt; break-after: avoid; }
  .leg, .leg:first-of-type { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; margin-top: 8px; padding: 11px; border: 1px solid #cbe9f4; border-radius: 12px; background: linear-gradient(130deg, white 62%, #f1fbff); }
  .mode-icon { width: 34px; height: 34px; border-radius: 50%; }
  .leg-title { font-size: 9.5pt; font-weight: 700; line-height: 1.4; }
  .leg-detail { font-size: 8.5pt; line-height: 1.5; overflow-wrap: anywhere; }
  .leg-modes { font-size: 8.5pt; }
  .leg-steps { margin-top: 6px; }
  .leg-step-route { font-size: 9pt; }
  .leg-step-info { font-size: 8pt; }
  .leg-time { grid-column: auto; font-size: 9pt; }
  .leg-badge { padding: 3px 7px; border-radius: 999px; font-size: 6.5pt; }
  .flight-snapshot { padding: 13px; border-color: #cce9f4; background: #f8fcfe; break-inside: auto; }
  .flight-snapshot h3, .flight-snapshot > p { break-after: avoid; }
  .flight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flight-item { padding: 8px; }
}
