/* Bus & Train Orders case. Page-only rules on top of site.css. */

.tr-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.case-head .tr-links .btn { margin-top: 0; }

/* collapsible summary */
.tr-summary { margin-top: 48px; }
@media (min-width: 810px) { .tr-summary { margin-top: 64px; } }
.tr-summary > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 16px; font-size: 16px; line-height: 21px; letter-spacing: -0.02em;
}
.tr-summary > summary::-webkit-details-marker { display: none; }
.tr-summary > summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease);
}
.tr-summary[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.tr-summary > summary:focus-visible { outline: 2px solid #674ff1; outline-offset: 4px; border-radius: 4px; }
.tr-summary__list { display: grid; gap: 12px; padding: 0 0 24px; max-width: var(--case-text-w); list-style: none; }
.tr-summary__list li { position: relative; padding-left: 1.2em; font-size: 16px; line-height: 24px; color: var(--color-text-muted); }
.tr-summary__list li::before { content: "•"; position: absolute; left: .2em; }

/* media */
.tr-shot { margin: 0; }
.tr-shot img { display: block; width: 100%; height: auto; border-radius: 24px; }
.tr-band .caption, .tr-shot .caption { margin: 14px 4px 0; }
.tr-sub { margin-top: 40px; }
@media (min-width: 810px) { .tr-sub { margin-top: 56px; } }
.tr-sub .t-h3 { margin-bottom: 12px; }
.tr-showcase .slider--screens > * { background: transparent; }

/* quote line between the two trip-block frames */
.tr-note { max-width: var(--case-text-w); margin-top: 40px; padding-left: 20px; border-left: 2px solid var(--color-text); }
@media (min-width: 810px) { .tr-note { margin-top: 56px; } }
.tr-note p { font-size: 20px; line-height: 26px; letter-spacing: -0.03em; color: var(--color-text); text-wrap: balance; }
.tr-note + .band, .container:has(> .tr-note) + .band { margin-top: 32px; }

/* Jobs table */
.tr-tbl { margin-top: 40px; }
@media (min-width: 810px) { .tr-tbl { margin-top: 56px; } }
.tr-table { width: 100%; border-collapse: collapse; text-align: left; }
.tr-table th { padding: 0 24px 12px 0; font-size: 14px; line-height: 20px; font-weight: var(--fw); color: var(--color-text-muted); }
.tr-table td { padding: 20px 24px 20px 0; vertical-align: top; font-size: 16px; line-height: 24px; color: var(--color-text-body); }
.tr-table td:first-child { color: var(--color-text); width: 22%; }
.tr-table th:last-child, .tr-table td:last-child { padding-right: 0; }
.tr-table .tr-table__more td { color: var(--color-text-muted); padding-top: 12px; }
@media (max-width: 809.98px) {
  .tr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tr-table, .tr-table tbody, .tr-table tr, .tr-table td { display: block; width: 100%; }
  .tr-table tr { padding: 20px 0; }
  .tr-table td { padding: 0 0 12px; border: 0; }
  .tr-table td:last-child { padding-bottom: 0; }
  .tr-table td:first-child { width: 100%; font-size: 18px; line-height: 24px; letter-spacing: -0.02em; }
  .tr-table td::before { content: attr(data-label); display: block; font-size: 13px; line-height: 18px; color: var(--color-text-muted); }
  .tr-table td:first-child::before { display: none; }
  .tr-table .tr-table__more { display: none; }
}

/* results */
.tr-results { margin-top: 40px; }
@media (min-width: 810px) { .tr-results { margin-top: 56px; } }
.tr-outcomes { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; max-width: 720px; }
.tr-outcomes .stat__value { font-size: 36px; line-height: 40px; white-space: nowrap; }
@media (min-width: 810px) { .tr-outcomes .stat__value { font-size: 56px; line-height: 60px; } }
@media (max-width: 400px) { .tr-outcomes { grid-template-columns: 1fr; } }

/* 28.11 final pass. The exports were re-based on the band colour (#f7f7f7), so phones sit straight on the band:
   no second grey plate inside it. Full-frame UI shots (.tr-shot--ui) keep their rounded frame.
   Captions read as a small label above the picture; --flush bands let phones that run off the export's
   bottom edge run off the band too, instead of being cut mid-band. */
.tr-band .tr-shot { display: flex; flex-direction: column; }
.tr-band .tr-shot img { border-radius: 0; }
.tr-band .tr-shot--ui img { border-radius: 24px; }
.tr-band .tr-shot .caption { order: -1; margin: 0 0 16px; }
.tr-band--flush { padding-bottom: 0; }
@media (min-width: 810px) { .tr-band .tr-shot .caption { margin-bottom: 8px; } }
@media (max-width: 809.98px) { .tr-band .tr-shot--ui img { border-radius: 16px; } }
/* old full-frame screens: cut out of the grey export card, each one a rounded screen straight on the band */
.tr-screens { display: flex; justify-content: center; gap: 24px; }
.tr-screens img { width: min(360px, calc(50% - 12px)); height: auto; }
.tr-band .tr-shot--ui img { border-radius: 24px; }
@media (max-width: 809.98px) { .tr-screens { gap: 12px; } .tr-screens img { width: calc(50% - 6px); } .tr-band .tr-shot--ui img { border-radius: 16px; } }
/* labels: a short muted caption centred under the picture (owner 28.11, like Notion); only where it adds meaning */
.tr-band .tr-shot .caption { position: static; order: 2; margin: 14px auto 0; max-width: 100%; text-align: center; font-size: 15px; line-height: 20px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-band--flush .tr-shot .caption { margin-bottom: 20px; }
@media (max-width: 809.98px) { .tr-band .tr-shot .caption { font-size: 14px; margin-top: 12px; } }

/* Passenger tickets (EN): live cards instead of an export. One card per passenger, seats per direction; cards float in staggered */
.tr-pax { margin: 0; }
.tr-pax__title { margin: 0 auto 40px; width: max-content; padding: 10px 26px 12px; border-radius: 999px; background: #ffe81f; color: #111; font-weight: 900; font-size: clamp(24px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.tr-pax__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; align-items: start; }
.tr-pcard { padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.tr-pcard:nth-child(4n+2) { margin-top: 40px; } .tr-pcard:nth-child(4n+3) { margin-top: 12px; } .tr-pcard:nth-child(4n+4) { margin-top: 56px; }
.tr-pcard__who { display: flex; align-items: flex-start; gap: 12px; }
.tr-ava { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-size: 19px; line-height: 1; font-weight: 600; }
.tr-ava__doc { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #fff; color: #212121; }
.tr-ava__doc svg { width: 12px; height: 12px; }
.tr-pcard__id { min-width: 0; display: grid; gap: 2px; padding-top: 1px; }
.tr-pcard__id b { font-weight: var(--fw); font-size: 15px; line-height: 20px; letter-spacing: -0.01em; color: var(--color-text); }
.tr-pcard__id span { font-size: 13px; line-height: 18px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-pcard__seats { list-style: none; margin: 14px 0 0; padding: 0 12px; border-radius: 14px; background: var(--color-plate); }
.tr-pcard__seats li { display: flex; align-items: center; gap: 10px; height: 46px; font-size: 14px; color: var(--color-text); }
.tr-pcard__seats li + li { box-shadow: inset 0 1px 0 rgba(0, 0, 0, .07); }   /* the row line is part of the product UI */
.tr-pcard__seats span { flex: 1; min-width: 0; }
.tr-ic { width: 20px; height: 20px; flex: none; color: #212121; }
.tr-chev { width: 14px; height: 14px; flex: none; color: #a3a3a3; }
.js .tr-pax.reveal { opacity: 1; transform: none; filter: none; }
.js .tr-pax .tr-pcard { opacity: 0; transform: translateY(24px) scale(.97); }
.js .tr-pax.is-in .tr-pcard { opacity: 1; transform: none; transition: opacity .6s var(--ease-out) calc(var(--i) * 70ms + .1s), transform .9s var(--ease-spring, cubic-bezier(.34, 1.4, .64, 1)) calc(var(--i) * 70ms + .1s); }
@media (max-width: 1099.98px) { .tr-pax__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr-pcard:nth-child(n) { margin-top: 0; } .tr-pcard:nth-child(2n) { margin-top: 28px; } }
@media (max-width: 599.98px) { .tr-pax__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } .tr-pcard:nth-child(n) { margin-top: 0; } .tr-pax__title { margin-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .js .tr-pax .tr-pcard { opacity: 1 !important; transform: none !important; transition: none !important; } }
