/* Trip report: on screen as a preview, in print as A5 pages. */
.report { margin-top: 16px; }
.rp-page { background: #fff; color: #14283F; border-radius: 18px; box-shadow: var(--shadow); padding: 22px 20px; margin-bottom: 16px; font-family: 'Sarabun', sans-serif; }
.rp-page h1, .rp-page h2, .rp-page h3 { color: #14283F; }
.rp-front { text-align: center; }
.rp-kicker { font-family: 'Prompt', sans-serif; letter-spacing: .2em; font-size: 12px; color: #44586D; text-transform: uppercase; }
.rp-front h1 { font-size: 40px; line-height: 1.05; margin: 8px 0; }
.rp-who { font-family: 'Prompt', sans-serif; font-weight: 500; color: #2C628E; }
.rp-countries { display: flex; justify-content: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.rp-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.rp-map svg { width: 100%; height: auto; border-radius: 14px; margin-top: 12px; }
.rp-h { font-size: 20px; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; margin-bottom: 18px; }
.rp-stats div { background: #EEF4F9; border-radius: 12px; padding: 10px 4px; }
.rp-stats b { display: block; font-family: 'Prompt', sans-serif; font-size: 15px; }
.rp-stats span { font-size: 11px; color: #44586D; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.rp-table th, .rp-table td { padding: 6px 4px; border-bottom: 1px solid #DCEBF5; text-align: left; }
.rp-table td:not(:first-child), .rp-table th:not(:first-child) { text-align: right; }
.rp-page .cchip { background: #EEF4F9; color: #14283F; }
.rp-fav { font-size: 14px; margin-top: 6px; }
.rp-cover { position: relative; border-radius: 14px; overflow: hidden; height: 190px; color: #fff; }
.rp-cover svg, .rp-cover img { width: 100%; height: 100%; object-fit: cover; }
.rp-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(10, 24, 40, .8)); }
.rp-cover-text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.rp-cover-text p { font-family: 'Prompt', sans-serif; font-size: 13px; }
.rp-cover-text h2 { color: #fff; font-size: 26px; margin: 2px 0 6px; }
.rp-cover .cchip { background: rgba(255, 255, 255, .92); }
.rp-cover .cchips .arrow { color: #fff; }
.rp-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: 'Prompt', sans-serif; font-size: 13px; margin: 10px 0; color: #44586D; }
.rp-facts span { display: inline-flex; align-items: center; gap: 4px; }
.rp-stops { font-size: 14px; margin-bottom: 8px; }
.rp-stops small { color: #44586D; font-family: 'Prompt', sans-serif; font-size: 10px; }
.rp-cat h3 { font-size: 14px; color: #2C628E; margin: 12px 0 4px; }
.rp-entry { break-inside: avoid; margin-bottom: 10px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.rp-entry small { color: #44586D; font-family: 'Prompt', sans-serif; }
.rp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.rp-photos.one { grid-template-columns: 1fr 1fr; }
.rp-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.rp-total { font-size: 28px; margin-bottom: 10px; }
.rp-total small { font-family: 'Sarabun', sans-serif; font-size: 13px; color: #44586D; }
.rp-close { text-align: center; }
.rp-close-art { height: 200px; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.rp-close-art svg { width: 100%; height: 100%; }
.rp-close .serif { font-size: 22px; margin-bottom: 6px; }
.report .muted { color: #44586D; }

@page { size: A5 portrait; margin: 10mm; }
@media print {
  html, body { background: #fff !important; font-size: 13px; }
  body::before, .appbar, .tabbar, #toasts, .no-print, .back, .sheet-wrap { display: none !important; }
  #app { padding: 0; max-width: none; }
  main.view { padding: 0; animation: none; }
  .report { margin: 0; }
  .rp-page { box-shadow: none; border-radius: 0; padding: 0; margin: 0; break-after: page; }
  .rp-page:last-child { break-after: auto; }
  .rp-day .rp-cover { height: 52mm; }
  .rp-entry, .rp-photos, .rp-table, .rp-cover { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
