/* "Travel updates" — design Q "Side by side" (owner pick 2026-10-18). Markup: TGCore_Travel_Updates_Section (plugin) +
   templates/parts/route-travel-updates.php. Behaviour: assets/js/tg-travel.js. Mockup: docs/investigations/travel-updates-2026-10-18/.
   Prefix tgtu-. Budget (default state): 520 px desktop, 700 px phone. Every control and link row at least 44 px tall where tapped. */
.tgtu { --tgtu-ink: var(--ink, #16222E); --tgtu-ink2: var(--ink-2, #4D5864); --tgtu-ink3: #6B747D; --tgtu-line: #E3DED4; --tgtu-line2: #ECE8E0;
    --tgtu-teal: var(--primary, #0F5257); --tgtu-soft: #E5EEEC; --tgtu-r: 16px;
    --tgtu-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05); color: var(--tgtu-ink); margin-top: 28px; }
.tgtu *, .tgtu *::before, .tgtu *::after { box-sizing: border-box; }
.tgtu svg { display: block; flex: none; }
.tgtu .rc-credit.tgtu-cr { display: none; }
.tgtu :is(a, button):focus-visible { outline: 2px solid var(--tgtu-teal); outline-offset: 2px; border-radius: 6px; }

.tgtu-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; }
.tgtu-chk { font-size: 12.5px; color: var(--tgtu-ink2); }
.tgtu-card { position: relative; margin-top: 10px; border: 1px solid var(--tgtu-line); border-radius: var(--tgtu-r); background: #fff; box-shadow: var(--tgtu-shadow); overflow: hidden; }

/* the slim decorative photo (never next to a headline) */
.tgtu-photo { position: relative; height: 84px; background: var(--tgtu-soft) center / cover no-repeat; }

/* your dates */
.tgtu-band { position: relative; padding: 11px 50px 11px 16px; border-bottom: 1px solid var(--tgtu-line2); background: #FBFAF6; font-size: 13.5px; line-height: 1.5; }
.tgtu-band-lead { font-weight: 700; }
.tgtu-band b { font-weight: 600; }

/* two columns */
.tgtu-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.tgtu-blk { position: relative; padding: 11px 50px 12px 16px; min-width: 0; }
.tgtu-news { border-left: 1px solid var(--tgtu-line2); }
.tgtu-cols.no-news { grid-template-columns: minmax(0, 1fr); } /* news providers off (default): advice takes the full width */
.tgtu-lbl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--tgtu-ink3); }
.tgtu-lbl em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; }
.tgtu-sub { display: block; font-size: 12.5px; color: var(--tgtu-ink2); }
.tgtu-sum { display: block; margin: 2px 0 1px; font-size: 13px; color: var(--tgtu-ink); }
.tgtu-lk { color: var(--tgtu-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* official advice */
.tgtu-adv-rows { display: grid; gap: 9px; }
.tgtu-ar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; }
.tgtu-ar b { font-size: 14px; font-weight: 600; }
.tgtu-own { margin: 0 0 -4px; font-size: 11.5px; font-weight: 700; color: var(--tgtu-teal); }
.tgtu-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.tgtu-chip.t-ok { background: #E6F2EB; color: #1E6B45; }
.tgtu-chip.t-caution { background: #FFF2CF; color: #7A5200; }
.tgtu-chip.t-warn { background: #FCE6D8; color: #8F3B12; }
.tgtu-chip.t-stop { background: #FBE1E1; color: #9A1F1F; }
.tgtu-chip.t-link { background: var(--tgtu-soft); color: var(--tgtu-teal); }

/* headlines */
.tgtu-nw { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tgtu-nw li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; }
.tgtu-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #F0EEE9; color: var(--tgtu-ink2); }
.tgtu-tile svg { width: 20px; height: 20px; }
.tgtu-hl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 600; color: var(--tgtu-ink); text-decoration: none; }
.tgtu-hl:hover { text-decoration: underline; }
.tgtu-note { margin: 8px 0 0; font-size: 12px; color: var(--tgtu-ink3); }
.tgtu-empty { margin: 0; font-size: 14px; color: var(--tgtu-ink2); }
.tgtu-empty-links { margin-top: 6px; }

@media (max-width: 760px) {
    .tgtu-cols { grid-template-columns: minmax(0, 1fr); }
    .tgtu-news { border-left: 0; border-top: 1px solid var(--tgtu-line2); }
    .tgtu-n3 { display: none !important; } /* 2 headlines on phones */
    .tgtu-photo { height: 64px; }
    .tgtu-band, .tgtu-blk { padding: 10px 46px 10px 14px; }
    .tgtu-adv-rows { gap: 7px; }
}

/* Official alerts for your route (slice 1, owner pick A: the right column; mockup docs/investigations/travel-updates-slice1-2026-10-18/) */
.tgtu-al { border-left: 1px solid var(--tgtu-line2); }
.tgtu-al-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tgtu-al-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; }
.tgtu-al .tgtu-tile.s-warn { background: #FCE6D8; color: #8F3B12; }
.tgtu-al .tgtu-tile.s-caution { background: #FFF2CF; color: #7A5200; }
.tgtu-al .tgtu-tile.s-info { background: var(--tgtu-soft); color: var(--tgtu-teal); }
.tgtu-al-line { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.tgtu-al-why { font-weight: 500; color: var(--tgtu-ink3); }
.tgtu-al-empty { margin: 0; font-size: 14px; color: var(--tgtu-ink2); }
.tgtu-al-fail { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #F0EEE9; font-size: 12.5px; color: var(--tgtu-ink2); }
.tgtu-al-more { margin: 8px 0 0; font-size: 12.5px; color: var(--tgtu-ink2); }
.tgtu-al-show { display: none; min-height: 44px; margin-top: 4px; padding: 0 4px; border: 0; background: none; color: var(--tgtu-teal); font: 600 13.5px var(--font-body, 'DM Sans', sans-serif); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 760px) {
    .tgtu-al { border-left: 0; border-top: 1px solid var(--tgtu-line2); }
    .tgtu-al-list:not(.is-all) .tgtu-al-x { display: none; }  /* two alerts on phones, then "Show N more" */
    .tgtu-al-show { display: inline-block; }
    /* within the 700 px phone budget with two alerts (Bali was 720 px): smaller tiles, tighter list, a slimmer photo */
    .tgtu-al-list { gap: 7px; }
    .tgtu-al-list li { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; }
    .tgtu-al .tgtu-tile { width: 36px; height: 36px; border-radius: 10px; }
    .tgtu-al .tgtu-tile svg { width: 18px; height: 18px; }
    .tgtu-al-line { font-size: 14px; }
    .tgtu.has-photo .tgtu-photo { height: 52px; }
}

/* For your route (slice 2, owner pick A "one list, three labels"; mockup docs/investigations/travel-updates-slice2-2026-10-18/):
   official alerts, then airline notices, then fares, each with its own label chip, icon and colour; 3 on desktop, 2 on phones. */
.tgtu-k { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.tgtu-k-off { background: #E5EEEC; color: #0F5257; }
.tgtu-k-air { background: #ECE8F6; color: #4B3A8C; }
.tgtu-k-fare { background: #FFF4D6; color: #8A5A00; }
.tgtu-al .tgtu-tile.s-air { background: #ECE8F6; color: #4B3A8C; }
.tgtu-al .tgtu-tile.s-fare { background: #FFF4D6; color: #8A5A00; }
/* Protest and strike news (2026-10-19): grey "News", our fixed wording only */
.tgtu-k-news { background: #ECEEF1; color: #3B4654; }
.tgtu-al .tgtu-tile.s-news { background: #ECEEF1; color: #3B4654; }
.tgtu-al-pn { margin-top: 8px; font-size: 13px; }
.tgtu-al-list + .tgtu-al-pn, .tgtu-al-show + .tgtu-al-pn { margin-top: 6px; }
.tgtu-al-list:not(.is-all) .tgtu-al-xd { display: none; }
.tgtu-al-show.is-d { display: inline-block; }
.tgtu-al-m2 { display: none; }
.tgtu-al-empty + .tgtu-al-list, .tgtu-al-empty + .tgtu-al-none { margin-top: 8px; }
@media (max-width: 760px) {
    .tgtu-al-m2 { display: inline; }
    .tgtu-al-m3 { display: none; }
    .tgtu-al-list:not(.is-all) ~ .tgtu-al-xp { display: none; }  /* "No fares found …" joins the hidden items on phones */
    /* within the 700 px phone budget (New York -> London was 708): tighter gaps; the mockup's 12 px sub-line for fares / notices */
    .tgtu-al-empty + .tgtu-al-list, .tgtu-al-empty + .tgtu-al-none { margin-top: 4px; }
    .tgtu-al-show + .tgtu-al-more, .tgtu-al-show + .tgtu-al-none, .tgtu-al-show + .tgtu-al-fail { margin-top: 0; }
    .tgtu-sub2 { font-size: 12px; }
    .tgtu-k { height: 18px; padding: 0 6px; font-size: 10px; }
}
