/* trip-replay-v1.css — Trip Replay recap on /trip-replay. px font sizes
   per site rules. Scoped .tr-*; no Foundation grid (new component). */

.tr-page.wrapper-sides {
  max-width: 780px !important;
  margin-right: auto;
  margin-left: auto;
}

.tr-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.tr-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a5793;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.tr-print-btn:hover { filter: brightness(.92); }
.tr-mytrip-link { font-size: 14.5px; font-weight: 700; color: #0a5793; text-decoration: none; }
.tr-mytrip-link:hover { text-decoration: underline; }

.tr-sub {
  font-size: 15.5px;
  font-weight: 700;
  color: #51606b;
  margin: -6px 0 18px;
}

.tr-next {
  margin: 0 0 30px;
  padding: 22px;
  background: linear-gradient(145deg, #eef8f3 0%, #f7fbff 100%);
  border: 1px solid #cfe4d8;
  border-left: 5px solid #1a6b4a;
  border-radius: 14px;
}
.tr-next-kicker {
  margin: 0 0 5px;
  color: #1a6b4a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tr-next h2 {
  margin: 0 0 8px;
  color: #173047;
  font-size: 23px;
  line-height: 1.2;
}
.tr-next > p:not(.tr-next-kicker):not(.tr-next-source) {
  margin: 0;
  color: #42515a;
  font-size: 15.5px;
  line-height: 1.55;
}
.tr-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tr-primary-link,
.tr-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 17px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.tr-primary-link {
  color: #fff !important;
  background: #1a6b4a;
  border: 1px solid #1a6b4a;
}
.tr-secondary-link {
  color: #175a40 !important;
  background: #fff;
  border: 1px solid #6aa78d;
}
.tr-primary-link:hover,
.tr-secondary-link:hover { filter: brightness(.94); }
.tr-primary-link:focus-visible,
.tr-secondary-link:focus-visible,
.tr-continuation-actions a:focus-visible,
.tr-continuation-actions button:focus-visible,
.tr-print-btn:focus-visible {
  outline: 3px solid rgba(10, 87, 147, .34);
  outline-offset: 3px;
}
.tr-next-source {
  margin: 15px 0 0;
  padding-top: 12px;
  color: #607069;
  border-top: 1px solid rgba(26, 107, 74, .16);
  font-size: 12.5px;
  line-height: 1.5;
}
.tr-next-source .fa { margin-right: 4px; color: #1a6b4a; }

.tr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 26px;
}
.tr-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  background: #f5faff;
  border: 1px solid #d8e7ef;
  border-radius: 12px;
  padding: 16px 10px;
}
.tr-stat .fa { font-size: 22px; color: #0a5793; }
.tr-stat-n { font-size: 26px; font-weight: 800; color: #1a2b3c; line-height: 1; }
.tr-stat-label { font-size: 12.5px; color: #51606b; }

.tr-section { margin: 0 0 30px; }
.tr-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: #173047;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tr-section h2 .fa { color: #0a5793; font-size: 19px; }
.tr-section-sub { font-size: 14.5px; color: #51606b; margin: 0 0 12px; }

.tr-day {
  background: #fff;
  border: 1px solid #e2ecf2;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.tr-day-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.tr-day-num { font-weight: 800; color: #173047; font-size: 15px; }
.tr-day-island {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: #fff; background: #475569; border-radius: 999px; padding: 2px 9px;
}
.tr-day-date { font-size: 13px; color: #7a8a96; }
.tr-day-list { font-size: 14.5px; color: #42515a; margin: 0; line-height: 1.5; }

.tr-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}
.tr-bar-label { flex: 0 0 auto; width: 130px; color: #42515a; font-weight: 600; }
.tr-bar-track {
  flex: 1 1 auto;
  height: 8px;
  background: #e7eef2;
  border-radius: 999px;
  overflow: hidden;
}
.tr-bar-fill { display: block; height: 100%; background: #0a5793; border-radius: 999px; }
.tr-bar-count { flex: 0 0 auto; width: 46px; text-align: right; color: #7a8a96; font-size: 12.5px; }

.tr-more-link { display: inline-block; font-size: 14px; font-weight: 700; color: #0a5793; text-decoration: none; margin-top: 4px; }
.tr-more-link:hover { text-decoration: underline; }

.tr-saved-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 0;
  border-bottom: 1px solid #edf2f5;
  font-size: 14.5px;
}
.tr-saved-row:last-child { border-bottom: none; }
.tr-saved-label { font-weight: 700; color: #173047; flex: 0 0 auto; }
.tr-saved-names { color: #51606b; }

.tr-continuation {
  padding-top: 4px;
}
.tr-continuation-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tr-continuation-actions a,
.tr-continuation-actions button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px;
  color: #173047;
  background: #fff;
  border: 1px solid #dbe6ec;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(23, 48, 71, .05);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.tr-continuation-actions a:hover,
.tr-continuation-actions button:hover {
  border-color: #78a9c7;
  background: #f7fbfe;
}
.tr-continuation-actions > * > .fa {
  margin-top: 2px;
  color: #0a5793;
  font-size: 21px;
  text-align: center;
}
.tr-continuation-actions strong,
.tr-continuation-actions small {
  display: block;
}
.tr-continuation-actions strong {
  font-size: 14.5px;
  line-height: 1.3;
}
.tr-continuation-actions small {
  margin-top: 3px;
  color: #657581;
  font-size: 12.5px;
  line-height: 1.35;
}

.tr-empty {
  text-align: center;
  padding: 48px 20px;
  background: #f5faff;
  border: 1px solid #d8e7ef;
  border-radius: 14px;
}
.tr-empty .fa { font-size: 34px; color: #7a98ab; margin-bottom: 10px; display: block; }
.tr-empty p { font-size: 16px; color: #42515a; max-width: 440px; margin: 0 auto 16px; line-height: 1.55; }
.tr-empty-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; }
.tr-empty-links a { font-size: 14.5px; font-weight: 700; color: #0a5793; text-decoration: none; }
.tr-empty-links a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .tr-continuation-actions { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .tr-next { padding: 18px 16px; }
  .tr-next h2 { font-size: 21px; }
  .tr-next-actions > * { width: 100%; }
}

@media print {
  .tr-actions,
  .tr-next-actions,
  .tr-continuation { display: none !important; }
}
