/* Espirit de Trip — printable trip itinerary (#tripPrintSheet).
   Loaded with media="print" only. #tripPrintSheet is hidden on screen at all
   times (see map-panel.css); body.trip-print-ready (map_shell.js's
   syncTripPrintSheet, kept in lockstep with the trip drawer) is what swaps
   the whole page for the sheet when the browser's print engine engages —
   the "Print / PDF" button or an organic Ctrl+P.

   color-scheme: light is deliberate: paper/PDF is always a white page, so
   this sheet forces every light-dark() token to its light value regardless
   of the reader's OS/browser dark-mode — a dark screen and its printout must
   not diverge. */

@page {
  size: letter;
  margin: 0.9in;
}

@media print {
  body.trip-print-ready > :not(#tripPrintSheet) { display: none !important; }
  body.trip-print-ready { background: #fff; }

  body.trip-print-ready #tripPrintSheet {
    display: block;
    color-scheme: light;
    color: var(--edt-fg);
    background: #fff;
    font-family: var(--edt-font-sans);
    font-size: 12pt;
    line-height: 1.5;
  }
  #tripPrintSheet a { color: inherit; }

  .itin-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2pt solid var(--edt-fg);
    padding-bottom: 10pt;
  }
  .itin-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--edt-fg-faint);
  }
  .itin-title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 6px 0 0;
  }
  .itin-summary {
    font-family: var(--edt-font-mono);
    font-size: 12px;
    color: var(--edt-fg-muted);
    text-align: right;
    white-space: nowrap;
  }

  .itin-day {
    margin-top: 22pt;
    break-inside: auto;
  }
  .itin-day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5pt;
  }
  .itin-day-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #fff;
    font-family: var(--edt-font-mono);
    font-size: 12px;
    font-weight: 600;
  }
  .itin-day-coin-1 { background: var(--edt-map-day-1); }
  .itin-day-coin-2 { background: var(--edt-map-day-2); }
  .itin-day-coin-3 { background: var(--edt-map-day-3); }
  .itin-day-coin-4 { background: var(--edt-map-day-4); }
  .itin-day-coin-5 { background: var(--edt-map-day-5); }
  .itin-day-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
  }
  .itin-day-meta {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--edt-fg-faint);
    white-space: nowrap;
  }

  .itin-places {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .itin-place {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 4px 10px;
    padding: 8pt 0;
    border-bottom: 1px solid var(--edt-line);
    break-inside: avoid;
  }
  .itin-place-dot {
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--type-dot);
  }
  .itin-place-name-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
  }
  .itin-place-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
  }
  .itin-place-cat {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--type-ink);
  }
  .itin-place-desc {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--edt-fg-muted);
  }
  .itin-place-gauges {
    font-family: var(--edt-font-mono);
    font-size: 11.5px;
    color: var(--edt-fg-muted);
    text-align: right;
    white-space: nowrap;
  }

  .itin-day-empty {
    font-size: 12px;
    color: var(--edt-fg-muted);
    font-style: italic;
  }
  .itin-day-links {
    margin-top: 5pt;
    font-size: 11px;
    color: var(--edt-fg-muted);
  }
  .itin-day-links a { text-decoration: underline; }

  .itin-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 30pt;
    padding-top: 12pt;
    border-top: 1px solid var(--edt-line-strong);
  }
  .itin-footer img { display: block; }
  .itin-footer span {
    font-size: 11px;
    color: var(--edt-fg-faint);
  }
}
