/* ==========================================================================
   Route page redesign — live component styles (2026-09-29 owner-approved picks).
   GENERATED from docs/investigations/card-redesign-2026-09-29/assets/rc.css by
   build/port_css.py. Edit rc.css and re-run the script; do not hand-edit here.

   Loaded only by templates/route-result.php, just before Stage 02, and only
   applies inside .tg-rd (the wrapper around each redesigned stage). The class
   names are the mockups' own (.rc-*), so the approved markup is reused as-is.
   ========================================================================== */

.tg-rd {
    --paper: var(--color-bg);
    --cloud: var(--color-cloud);
    --surface: var(--color-white);
    --ink: var(--color-text);
    --ink-2: var(--color-text-muted);
    --line: var(--color-border);
    --line-2: #ECE8E0;
    --primary: var(--color-primary);
    --primary-dark: var(--color-primary-dark);
    --on-primary: var(--color-on-primary);
    --accent: var(--color-accent);
    --accent-ink: var(--color-accent-ink);
    --accent-soft: var(--color-accent-soft);
    --accent-strong: var(--color-accent-strong);
    --tint: var(--color-tint);
    --dark: var(--color-dark);

    --f-display: var(--font-display);
    --f-text: var(--font-family);
    --disp: var(--font-display-settings);
    --disp-w: var(--font-display-weight);
    --disp-t: var(--font-display-track);

    --r-card: 16px;
    --r-img: 10px;
    --r-ctl: 999px;
    --gap: 16px;
    --beat: 56px;
    --elev-1: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
    --elev-2: 0 2px 6px rgba(16, 24, 40, .05), 0 12px 30px rgba(16, 24, 40, .08);

    color: var(--ink);
    font-family: var(--f-text);
}

/* Resets wrapped in :where() so they add no specificity: a component rule
   such as .rc-btn (white text on a link) must always beat them. */
:where(.tg-rd) *,
:where(.tg-rd) *::before,
:where(.tg-rd) *::after {
    box-sizing: border-box;
}

/* height:auto so the approved aspect-ratio rules win over the width/height
   attributes every live <img> carries (they exist to reserve space). */
:where(.tg-rd) img {
    display: block;
    max-width: 100%;
    height: auto;
}

:where(.tg-rd) a {
    color: inherit;
}

:where(.tg-rd) :is(a, button, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

:is(a,
button,
summary,
[tabindex]):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.rc-wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Type ------------------------------------------------------------------ */
.rc-h2,
.rc-h3,
.rc-h4,
.rc-fig,
.rc-serif {
    font-family: var(--f-display);
    font-weight: var(--disp-w);
    font-variation-settings: var(--disp);
    letter-spacing: var(--disp-t);
    color: inherit;
}

.rc-h2 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.08;
}

.rc-h3 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.12;
}

/* Serif titles of 19px and below use the TEXT optical size (approved in 2A). */
.rc-h4 {
    margin: 0;
    font-size: 19px;
    line-height: 1.22;
    font-weight: 600;
    font-variation-settings: normal;
    letter-spacing: 0;
}

.rc-h4.is-sm {
    font-size: 16.5px;
}

.rc-kicker {
    display: block;
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
}

.rc-dek {
    margin: 8px 0 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 62ch;
}

.rc-narr {
    margin: 12px 0 0;
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 64ch;
}

.rc-meta {
    font-size: 13px;
    color: var(--ink-2);
}

.rc-micro {
    font-size: 11.5px;
    color: var(--ink-2);
}

.rc-credit {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.rc-credit a {
    color: inherit;
}

.rc-fig {
    font-size: 64px;
    line-height: .95;
    letter-spacing: -.03em;
    font-variant-numeric: lining-nums;
}

.rc-fig.is-l {
    font-size: clamp(56px, 6vw, 84px);
}

.rc-fig.is-m {
    font-size: 40px;
}

.rc-fig.is-s {
    font-size: 30px;
}

.rc-fig small {
    font-family: var(--f-text);
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--ink-2);
    margin-left: 6px;
    vertical-align: .9em;
}

.rc-num {
    font-variant-numeric: tabular-nums lining-nums;
}

/* ---- Controls -------------------------------------------------------------- */
.rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--r-ctl);
    background: var(--primary);
    color: var(--on-primary);
    font: 700 14.5px/1 var(--f-text);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.rc-btn:hover {
    background: var(--primary-dark);
}

.rc-btn.is-ghost {
    background: transparent;
    color: var(--ink);
    border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

.rc-btn.is-ghost:hover {
    border-color: var(--ink);
}

.rc-btn.is-light {
    background: #fff;
    color: var(--ink);
}

.rc-btn.is-sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13.5px;
}

.rc-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1.5px solid color-mix(in srgb, var(--primary) 35%, transparent);
}

.rc-link:hover {
    border-bottom-color: var(--primary);
}

.rc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--r-ctl);
    background: var(--accent-soft);
    color: #7A5200;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rc-badge.is-live {
    background: #E3F1E8;
    color: #1E6B3E;
}

.rc-badge.is-ai {
    background: var(--accent);
    color: var(--accent-ink);
}

.rc-badge.is-quiet {
    background: var(--tint);
    color: var(--primary-dark);
}

.rc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--r-ctl);
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.rc-ico {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.rc-ico svg,
svg.rc-ico {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.rc-ico.is-l {
    width: 34px;
    height: 34px;
}

/* ---- Stage opener (Phase 2B pattern, kept) ---------------------------------- */
.rc-stage {
    padding-top: 72px;
}

.rc-stage + .rc-stage {
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.rc-stage-open {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
    margin-bottom: 36px;
}

.rc-stage-num {
    font-family: var(--f-display);
    font-weight: var(--disp-w);
    font-variation-settings: var(--disp);
    font-size: clamp(38px, 3.8vw, 54px);
    line-height: .95;
    color: var(--primary);
    font-variant-numeric: lining-nums tabular-nums;
}

.rc-stage-intro {
    margin: 10px 0 0;
    font-size: 16px;
    color: var(--ink-2);
    max-width: 62ch;
}

/* Standfirst: the stage's own summary sentences as a magazine lead. */
.rc-standfirst {
    margin: 0 0 36px;
    max-width: 58ch;
    font-family: var(--f-display);
    font-variation-settings: 'opsz' 36;
    font-weight: 420;
    font-size: clamp(20px, 1.9vw, 24px);
    line-height: 1.45;
    letter-spacing: -.005em;
}

.rc-standfirst p {
    margin: 0;
    display: inline;
}

.rc-standfirst p + p::before {
    content: " ";
}

.rc-standfirst .rc-src {
    display: block;
    margin-top: 10px;
    font-family: var(--f-text);
    font-size: 12.5px;
    color: var(--ink-2);
    letter-spacing: 0;
}

/* ---- Rhythm ------------------------------------------------------------------ */
.rc-beat {
    margin-top: var(--beat);
}

.rc-beat-s {
    margin-top: 28px;
}

.rc-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.rc-sec-head .rc-h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rc-rule {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: var(--beat) 0 0;
}

/* ---- Grids --------------------------------------------------------------------- */
.rc-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.rc-grid.is-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rc-grid.is-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rc-grid.is-start {
    align-items: start;
}

.rc-span-2 {
    grid-column: span 2;
}

.rc-span-all {
    grid-column: 1 / -1;
}

/* ---- Card (light) ---------------------------------------------------------------- */
.rc-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: var(--r-card);
    background: var(--surface);
    border: 1px solid var(--line-2);
    box-shadow: var(--elev-1);
}

.rc-card.is-flat {
    box-shadow: none;
}

.rc-card.is-tint {
    background: var(--tint);
    border-color: transparent;
    box-shadow: none;
}

.rc-card.is-cloud {
    background: var(--cloud);
    border-color: transparent;
    box-shadow: none;
}

.rc-card.is-dark {
    background: var(--dark);
    color: #fff;
    border-color: transparent;
}

.rc-card.is-dark .rc-meta,
.rc-card.is-dark .rc-micro,
.rc-card.is-dark .rc-credit {
    color: rgba(255, 255, 255, .78);
}

.rc-card.is-dark .rc-kicker {
    color: var(--accent);
}

.rc-card.is-compact {
    padding: 16px 18px;
    gap: 8px;
}

.rc-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-card-head .rc-badge {
    margin-left: auto;
}

.rc-card-foot {
    margin-top: auto;
    padding-top: 4px;
}

.rc-card-media {
    margin: -22px -22px 4px;
}

.rc-card-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-card) var(--r-card) 0 0;
}

.rc-card-media .rc-credit {
    padding: 0 22px;
}

/* Media after the card's heading: bleed to the sides only, square corners. */
.rc-card-media:not(:first-child) {
    margin-top: 0;
}

.rc-card-media:not(:first-child) img {
    border-radius: 0;
}

/* Small route-map inset inside a photo banner. */
.rc-banner-inset {
    position: absolute;
    right: 22px;
    bottom: 40px;
    width: 34%;
    margin: 0;
    padding: 5px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.rc-banner-inset img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 10px;
}

.rc-banner-inset figcaption {
    padding: 5px 4px 1px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
}

/* Horizontal card: small media left, text right. */
.rc-card.is-row {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.rc-card.is-row > img,
.rc-card.is-row > figure img {
    width: 120px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-img);
    flex-shrink: 0;
}

.rc-card.is-row > figure {
    margin: 0;
    flex-shrink: 0;
    width: 120px;
}

/* ---- Fact strip (medium) ------------------------------------------------------- */
.rc-facts {
    display: grid;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    border-radius: var(--r-card);
    background: var(--surface);
    border: 1px solid var(--line-2);
    box-shadow: var(--elev-1);
    overflow: hidden;
}

.rc-facts.is-tint {
    background: var(--tint);
    border-color: transparent;
    box-shadow: none;
}

.rc-fact {
    padding: 20px 22px 22px;
    border-left: 1px solid var(--line-2);
    min-width: 0;
}

.rc-facts.is-tint .rc-fact {
    border-left-color: color-mix(in srgb, var(--primary) 14%, transparent);
}

.rc-fact:first-child {
    border-left: 0;
}

.rc-fact .rc-kicker {
    color: var(--ink-2);
    letter-spacing: .1em;
}

.rc-fact .rc-fig {
    font-size: 40px;
    margin: 6px 0 4px;
}

.rc-fact .rc-fig.is-l {
    font-size: clamp(52px, 5vw, 68px);
}

.rc-fact p {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-2);
}

/* Plain inline facts (for inside banners/cards). */
.rc-inline-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rc-inline-facts li {
    min-width: 0;
}

.rc-inline-facts b {
    display: block;
    font-family: var(--f-display);
    font-variation-settings: var(--disp);
    font-weight: var(--disp-w);
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.rc-inline-facts span {
    font-size: 12.5px;
    color: var(--ink-2);
}

/* ---- Banner (heaviest) ------------------------------------------------------------ */
.rc-banner {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    isolation: isolate;
}

.rc-banner-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: 0;
}

.rc-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-banner-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 16, 24, .86) 0%, rgba(10, 16, 24, .62) 45%, rgba(10, 16, 24, .12) 100%);
}

.rc-banner-body {
    padding: 44px 48px;
    max-width: 640px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
}

.rc-banner .rc-kicker {
    color: var(--accent);
}

.rc-banner .rc-meta,
.rc-banner .rc-micro,
.rc-banner .rc-inline-facts span {
    color: rgba(255, 255, 255, .8);
}

.rc-banner .rc-credit {
    position: absolute;
    right: 18px;
    bottom: 12px;
    margin: 0;
    max-width: 46%;
    text-align: right;
    color: rgba(255, 255, 255, .78);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* Split banner: media one side, a solid panel the other — no text on the photo. */
.rc-banner.is-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line-2);
    box-shadow: var(--elev-2);
}

.rc-banner.is-split .rc-banner-media {
    position: relative;
    inset: auto;
    z-index: 0;
    min-height: 100%;
}

.rc-banner.is-split .rc-banner-media::after {
    display: none;
}

.rc-banner.is-split .rc-banner-media img {
    position: absolute;
    inset: 0;
}

.rc-banner.is-split .rc-banner-body {
    max-width: none;
    min-height: 0;
    padding: 36px 40px;
    justify-content: center;
}

.rc-banner.is-split .rc-kicker {
    color: var(--primary);
}

.rc-banner.is-split .rc-meta,
.rc-banner.is-split .rc-inline-facts span {
    color: var(--ink-2);
}

.rc-banner.is-split .rc-credit {
    position: static;
    max-width: none;
    text-align: left;
    color: var(--ink-2);
    text-shadow: none;
    padding: 8px 14px 12px;
    background: var(--surface);
}

.rc-banner.is-split.is-flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.rc-banner.is-split.is-flip .rc-banner-media {
    order: 2;
}

/* Map split: the fact panel left, the route map right and wider, so both ends of the
   route stay in frame (static maps are 2:1 with the endpoints near 20% and 80%). */
.rc-banner.is-split.is-map {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}

.rc-banner.is-split.is-map .rc-banner-media {
    order: 2;
}

.rc-banner.is-split.is-map .rc-banner-media img {
    object-position: center;
}

/* Band banner: no photo, a solid fill carries the weight. */
.rc-banner.is-band {
    background: var(--primary);
}

.rc-banner.is-band.is-dark {
    background: var(--dark);
}

.rc-banner.is-band.is-accent {
    background: var(--accent-soft);
    color: var(--ink);
}

.rc-banner.is-band.is-accent .rc-kicker {
    color: var(--accent-strong);
}

.rc-banner.is-band.is-accent .rc-meta {
    color: var(--ink-2);
}

.rc-banner.is-band .rc-banner-body {
    min-height: 0;
    max-width: none;
    padding: 34px 40px;
}

.rc-banner-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 6px;
}

/* ---- Carousel (heavy): a browsable set ------------------------------------------------ */
.rc-carousel {
    position: relative;
}

.rc-carousel-ctrl {
    display: flex;
    gap: 8px;
}

.rc-carousel-ctrl button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.rc-carousel-ctrl button:hover {
    border-color: var(--ink);
}

.rc-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * var(--gap)) / 3.35);
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.rc-track.is-4 {
    grid-auto-columns: calc((100% - 4 * var(--gap)) / 4.3);
}

.rc-track.is-5 {
    grid-auto-columns: calc((100% - 5 * var(--gap)) / 5.4);
}

.rc-track > * {
    scroll-snap-align: start;
    min-width: 0;
}

/* Photo-first tile (no box): the pattern every reference site uses for sets. */
.rc-tile {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rc-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-img);
    background: var(--cloud);
}

.rc-tile.is-wide img {
    aspect-ratio: 16 / 9;
}

.rc-tile.is-poster img {
    aspect-ratio: 2 / 3;
}

.rc-tile-body {
    padding-top: 10px;
}

.rc-tile .rc-h4 {
    font-size: 16.5px;
}

.rc-tile p {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: var(--ink-2);
}

.rc-tile:hover .rc-h4 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Tiles keep their button on one baseline however long the name is. */
.rc-tile {
    display: flex;
    flex-direction: column;
}

.rc-tile-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rc-tile-body .rc-tile-cta {
    margin-top: auto;
    padding-top: 10px;
}

/* A set that fits on screen is a static row on desktop (no arrows, no empty scroll space)
   and becomes a swipe row only when the screen is too narrow for it. */
.rc-track.is-fit {
    grid-auto-flow: row;
    grid-template-columns: repeat(var(--fit, 4), minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    padding-bottom: 0;
}

.rc-carousel.is-fit .rc-carousel-ctrl {
    display: none;
}

/* A short set (1-2 real items) is never shown as a scroll strip: static tiles. */
.rc-short {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.rc-short.is-1 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ---- Magazine section (medium, no box) --------------------------------------------------- */
.rc-mag {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.rc-mag.is-flip .rc-mag-media {
    order: 2;
}

.rc-mag.is-text {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.rc-mag-media {
    margin: 0;
}

.rc-mag-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-img);
}

.rc-mag-media.is-wide img {
    aspect-ratio: 16 / 10;
}

.rc-mag-body > .rc-h3 {
    margin-bottom: 4px;
}

.rc-mag-aside {
    display: grid;
    gap: 12px;
}

.rc-mag-foot {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

/* ---- Rows (lightest) --------------------------------------------------------------------------- */
.rc-rows {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.rc-rows li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}

.rc-rows li.has-media {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
}

.rc-rows li.has-media img {
    width: 88px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.rc-rows strong {
    font-weight: 700;
}

/* Only a short trailing label stays on one line; descriptions always wrap. */
.rc-rows > li > .rc-meta {
    white-space: nowrap;
}

.rc-rows.is-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
}

/* Tick list: advice and checklists. */
.rc-ticks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.rc-ticks li {
    position: relative;
    padding-left: 24px;
    font-size: 14.5px;
}

.rc-ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .45em;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}

.rc-card.is-dark .rc-ticks li::before,
.rc-banner .rc-ticks li::before {
    border-color: var(--accent);
}

/* Departure board (timetables). */
.rc-board {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rc-board li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--line-2);
}

.rc-board time {
    font-family: var(--f-display);
    font-variation-settings: var(--disp);
    font-weight: var(--disp-w);
    font-size: 21px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums lining-nums;
}

.rc-board strong {
    display: block;
    font-size: 15px;
}

.rc-board span {
    font-size: 12.5px;
    color: var(--ink-2);
}

.rc-board.is-dark li {
    border-top-color: rgba(255, 255, 255, .14);
}

.rc-board.is-dark span {
    color: rgba(255, 255, 255, .72);
}

/* ---- Honest empty states ----------------------------------------------------------------------- */
.rc-unavail {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: baseline;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px dashed var(--line);
    font-size: 13px;
    color: var(--ink-2);
}

.rc-unavail strong {
    color: var(--ink);
}

.rc-empty {
    padding: 18px 20px;
    border-radius: var(--r-card);
    background: var(--cloud);
    color: var(--ink-2);
    font-size: 14px;
}

.rc-empty strong {
    color: var(--ink);
}

/* ---- Photo figure ---------------------------------------------------------------------------------- */
.rc-fig-photo {
    margin: 0;
}

.rc-fig-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--r-img);
}

.rc-flag {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.rc-logo {
    height: 22px;
    width: auto;
}

.rc-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rc-logos img {
    height: 28px;
    width: auto;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 0 0 1px var(--line-2);
}

/* Partner-rendered content (iframes) is shown as a real screenshot. */
.rc-partner {
    margin: 0;
    border-radius: var(--r-img);
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: #fff;
}

.rc-partner img {
    width: 100%;
    height: auto;
}

.rc-partner figcaption {
    padding: 8px 12px;
    font-size: 11.5px;
    color: var(--ink-2);
    background: var(--cloud);
}

/* ---- Utilities + tabs ----------------------------------------------------------------------- */
.rc-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rc-stars {
    color: #8A5A00;
    letter-spacing: .06em;
    font-size: 13px;
}

.rc-tabset-bar {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--r-ctl);
    background: var(--cloud);
    margin-bottom: 14px;
}

.rc-tabset-bar button {
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--r-ctl);
    background: transparent;
    color: var(--ink-2);
    font: 700 13.5px/1 var(--f-text);
    cursor: pointer;
}

.rc-tabset-bar button[aria-selected="true"] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.rc-tabset [data-rc-panel]:not(.is-on) {
    display: none;
}

/* A partner frame: real partner content, our heading and footer around it, no card chrome. */
.rc-partner-frame {
    margin: 0;
}

.rc-partner-frame img {
    width: 100%;
    height: auto;
    border-radius: var(--r-img);
    border: 1px solid var(--line-2);
    background: #fff;
}

.rc-partner-frame figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-2);
}

.rc-partner-frame.is-narrow {
    max-width: 700px;
}

@media (max-width: 1100px) {
    .rc-track.is-4 {
        grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.6);
    }

    .rc-track.is-5 {
        grid-auto-columns: calc((100% - 3 * var(--gap)) / 3.4);
    }
}

@media (max-width: 980px) {
    .rc-grid,
    .rc-grid.is-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rc-mag,
    .rc-mag.is-text,
    .rc-banner.is-split,
    .rc-banner.is-split.is-flip,
    .rc-banner.is-split.is-map {
        grid-template-columns: 1fr;
    }

    .rc-banner-inset {
        position: static;
        width: auto;
        margin: 0 22px 22px;
    }

    .rc-banner.is-split .rc-banner-media {
        aspect-ratio: 16 / 9;
        order: 0 !important;
    }

    .rc-banner.is-split.is-map .rc-banner-media {
        aspect-ratio: 2 / 1;
    }

    .rc-mag.is-flip .rc-mag-media {
        order: 0;
    }

    .rc-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rc-fact:nth-child(odd) {
        border-left: 0;
    }

    .rc-fact:nth-child(n+3) {
        border-top: 1px solid var(--line-2);
    }

    .rc-track,
    .rc-track.is-4,
    .rc-track.is-5,
    .rc-track.is-fit {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: calc((100% - var(--gap)) / 2.3);
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 640px) {
    .rc-wrap {
        padding: 0 16px;
    }

    .tg-rd {
        --beat: 40px;
    }

    .rc-grid,
    .rc-grid.is-2,
    .rc-grid.is-4,
    .rc-short,
    .rc-rows.is-2col {
        grid-template-columns: 1fr;
    }

    .rc-span-2 {
        grid-column: auto;
    }

    .rc-banner-body {
        padding: 26px 22px 40px;
        min-height: 320px;
    }

    .rc-banner.is-split .rc-banner-body,
    .rc-banner.is-band .rc-banner-body {
        padding: 24px 22px;
    }

    .rc-banner .rc-credit {
        max-width: 90%;
    }

    .rc-banner-media::after {
        background: linear-gradient(0deg, rgba(10, 16, 24, .9) 0%, rgba(10, 16, 24, .62) 55%, rgba(10, 16, 24, .25) 100%);
    }

    .rc-track,
    .rc-track.is-4,
    .rc-track.is-5,
    .rc-track.is-fit {
        grid-auto-columns: 78%;
    }

    .rc-fig {
        font-size: 52px;
    }

    .rc-fact .rc-fig {
        font-size: 32px;
    }

    .rc-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rc-fact {
        padding: 16px;
    }

    .rc-rows li.has-media {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .rc-rows li.has-media img {
        width: 72px;
    }

    .rc-rows li.has-media > :last-child {
        grid-column: 2;
    }

    .rc-card.is-row {
        flex-direction: column;
        align-items: stretch;
    }

    .rc-card.is-row > img,
    .rc-card.is-row > figure,
    .rc-card.is-row > figure img {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-rd * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* ==== LIVE ADDITIONS — hand-written, kept by port_css.py on regeneration ====
   Rules the live page needs that the standalone mockups did not: the mockups
   were one block per canvas, the live stage is a sequence of blocks fed by
   real (sometimes missing) data. */

/* One even rhythm between a stage's blocks. */
.tg-rd-stage {
    display: grid;
    /* minmax(0, 1fr), not the implicit auto column: an auto track grows to its
       widest child's min-content and pushed a 390 px phone page to ~598 px. */
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    min-width: 0;
}

.tg-rd-stage > .rc-standfirst {
    margin: 0;
}

/* The page scripts hide buttons and result boxes with the `hidden`
   attribute, and the UA rule for it loses to any component that sets
   display (.rc-btn is inline-flex). The same trap the old grid hit. */
.tg-rd [hidden] {
    display: none !important;
}

/* ---- Flight banner ---- */
.tg-rd-flight .tg-rd-flight-title {
    font-size: clamp(28px, 3vw, 40px);
}

.tg-rd-flight .tg-rd-flight-price-sub,
.tg-rd-flight .tg-rd-flight-note {
    margin: 0;
}

.tg-rd-flight .tg-rd-flight-note {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .85);
}

.tg-rd-flight strong {
    color: #fff;
}

.tg-rd-trust {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
}

/* Keep the text clear of the map inset while the inset floats (it drops
   below the text from 980px down). */
@media (min-width: 981px) {
    .tg-rd-flight.has-inset .rc-banner-body {
        max-width: 58%;
    }

    .tg-rd-flight.is-band.has-inset .rc-banner-body {
        min-height: 320px;
    }
}

/* ---- Magazine sections ---- */
/* No photo and no aside: the text takes the whole width. */
.rc-mag.is-solo {
    grid-template-columns: minmax(0, 1fr);
}

.tg-rd-arrive .tg-transit-result {
    margin-top: 14px;
}

/* ---- Kiwitaxi band ---- */
.tg-rd .tg-kiwitaxi-section.is-collapsed {
    padding: 16px 20px;
}

.tg-rd .tg-kiwitaxi-section.is-collapsed .tg-rd-kiwi-head {
    display: none;
}

/* ---- Departure board statuses (dark card) ---- */
.tg-rd .tg-rd-ontime {
    color: #8FD1A8;
    font-weight: 700;
}

.tg-rd .tg-rd-late {
    color: var(--accent);
    font-weight: 700;
}

/* ---- Rail options without a station photo: a solid band ---- */
.tg-rd-rail-options.is-band .rc-banner-body {
    max-width: 760px;
}

/* ---- Kiwitaxi band: the page's own rules hide "Show less" until the widget
   is open, but .rc-btn (loaded later) would re-show it. Restated here. ---- */
.tg-rd .tg-kiwitaxi-collapse-btn {
    display: none;
    align-self: flex-start;
}

.tg-rd .tg-kiwitaxi-section.tg-kiwitaxi-js:not(.is-collapsed) .tg-kiwitaxi-collapse-btn {
    display: inline-flex;
}

.tg-rd .tg-kiwitaxi-section.is-collapsed {
    gap: 0;
}

/* ---- Stage 03 ---- */
/* Section headings carry an inline icon before the title. */
.tg-rd .rc-sec-head .rc-h3 .rc-ico {
    width: 30px;
    height: 30px;
}

/* A hotel with no photo: a neutral tile at the photo's size, never a stand-in picture. */
.tg-rd-tile-blank {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-img);
    background: var(--cloud);
    color: var(--ink-2);
}

.tg-rd-tile-blank .rc-ico {
    width: 34px;
    height: 34px;
}

.tg-rd-stay .rc-tile-body {
    gap: 4px;
}

.tg-rd-things .tg-rd-things-head {
    margin-top: 32px;
}

.tg-rd-things > .rc-sec-head:first-child + .tg-gyg-widget-wrap + .tg-rd-things-head {
    margin-top: 32px;
}

.tg-rd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tg-rd-partner .tg-peek-open {
    margin-top: 12px;
}

/* The comparison band's lead column is the only one with a price. */
.tg-rd-esim .tg-rd-esim-lead {
    background: var(--surface);
    position: relative;
}

.tg-rd-esim-trust {
    margin-top: 10px;
}

.tg-rd-esim .rc-fact .rc-logo {
    height: 20px;
    width: auto;
}

.tg-rd-luggage .tg-trust {
    align-self: flex-start;
}

/* ---- Button and link colours: page-wide link rules (e.g. on .tg-page a)
   out-rank the component's own colour, so it is restated under .tg-rd. ---- */
.tg-rd .rc-btn {
    color: var(--on-primary);
}

.tg-rd .rc-btn.is-ghost,
.tg-rd .rc-btn.is-light {
    color: var(--ink);
}

.tg-rd .rc-link {
    color: var(--primary);
}

/* ---- Stage 04 ---- */
.tg-rd-glance-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tg-rd-glance .rc-rows li {
    grid-template-columns: minmax(0, 1fr);
}

.tg-rd-weather-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.tg-rd-weather-desc {
    padding-bottom: 8px;
}

.tg-rd-weather-desc b {
    font-size: 18px;
}

/* EPA's own band colour, as a swatch (never as text colour). */
.tg-rd-aqi-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}

.tg-rd .rc-fact .tg-trust {
    margin-top: 10px;
}

.tg-rd .rc-chip.is-alert {
    border-color: var(--accent-strong);
    background: var(--accent-soft);
}

/* Budget bars: widths are each line's real share of the total. */
/* Money card hybrid (21 Nov 2026): plain sentences, no big total; source words in a quieter tone. */
.tg-mh .tg-mh-line { margin: 0 0 8px; line-height: 1.5; }
.tg-mh .tg-mh-src { color: var(--tg-muted, #4a5a60); font-size: .92em; }
.tg-mh .tg-mh-none { margin: 2px 0 4px; font-weight: 600; font-size: 1.1em; }
@media (max-width: 899px) { .tg-rd-money .tg-mh ~ .tg-rd-currency { grid-column: 1 / -1; } }
/* Money card redesign (21 Nov 2026): header with the (i) beside the title; price-level bar; spending split bar; everyday price
   chips. Every bar has text labels and a non-colour cue (numbers in the segments, a legend in the same order, a hatched "Other"). */
.tg-mh2 .tg-mh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -12px -12px 0 0; min-height: 44px; }
.tg-mh2 .tg-mh-head .rc-kicker { margin: 0; padding-top: 12px; align-self: flex-start; line-height: 20px; }
.tg-mh2 .tg-mh-head .tgn { flex: none; }
.tg-mh2 .tg-mh-blk { padding: 10px 0 0; margin-top: 10px; border-top: 1px solid var(--line-2, #ECE8E0); }
.tg-mh2 .tg-mh-head + .tg-mh-blk { margin-top: 0; padding-top: 4px; border-top: 0; }
.tg-mh2 .tg-mh-lab { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink, #16222E); }
.tg-mh2 .tg-mh-pl { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.tg-mh2 .tg-mh-scale { position: relative; flex: 0 0 168px; height: 32px; }
.tg-mh2 .tg-mh-track { position: absolute; left: 0; right: 0; top: 18px; height: 6px; border-radius: 3px; background: #DCD6CA; }
.tg-mh2 .tg-mh-avg { position: absolute; top: 12px; height: 18px; border-left: 2px dashed #16222E; }
.tg-mh2 .tg-mh-avg.is-l i { left: auto; right: 3px; }
.tg-mh2 .tg-mh-avg i { position: absolute; top: -12px; left: 3px; font-style: normal; font-size: 11.5px; line-height: 12px; color: var(--ink-2, #4D5864); }
.tg-mh2 .tg-mh-mark { position: absolute; top: 14px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #0F5257; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0F5257; }
.tg-mh2 .tg-mh-plain { margin: 0; flex: 1 1 200px; font-size: 14px; line-height: 1.4; color: var(--ink, #16222E); }
.tg-mh2 .tg-mh-plain b { font-size: 20px; margin-right: 4px; color: #0F5257; }
.tg-mh2 .tg-mh-src { margin: 4px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-2, #4D5864); }
.tg-mh2 .tg-mh-line { margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.tg-mh2 .tg-mh-stack { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; }
.tg-mh2 .tg-mh-seg { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 11.5px; font-weight: 700; }
.tg-mh2 .s0 { background: #0F5257; color: #fff; }
.tg-mh2 .s1 { background: #8A5A00; color: #fff; }
.tg-mh2 .s2 { background: #F2B31B; color: #16222E; }
.tg-mh2 .s3 { background: repeating-linear-gradient(135deg, #E3DED4 0 5px, #F4F1EA 5px 10px); color: #16222E; }
.tg-mh2 .tg-mh-leg { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; line-height: 1.5; }
.tg-mh2 .tg-mh-leg li { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.tg-mh2 .tg-mh-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.tg-mh2 .tg-mh-leg i.s3 { box-shadow: inset 0 0 0 1px #A79F90; }
.tg-mh2 .tg-mh-nosurvey { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line-2, #ECE8E0); font-size: 12.5px; line-height: 1.4; color: var(--ink-2, #4D5864); }
.tg-mh2 .tg-mh-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.tg-mh2 .tg-mh-chip { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 8px 10px; border: 1px solid var(--line, #E3DED4); border-radius: 10px; background: var(--surface, #fff); }
.tg-mh2 .tg-mh-cn { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink, #16222E); }
.tg-mh2 .tg-mh-cp { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink, #16222E); }
.tg-mh2 .tg-mh-cu { font-size: 12.5px; line-height: 1.3; color: var(--ink-2, #4D5864); }
.tg-mh2 .tg-mh-cs { margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--ink-2, #4D5864); }
.tg-mh2 .tg-mh-cv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.tg-mh2 .tg-mh-chip:nth-child(n+7) { display: none; }
/* A card with the visitor-spending bar is tall: at most 4 chips on a wide screen and 2 on a phone (the lowest priority ones drop; Part D, 22 Nov 2026). */
.tg-mh2 .tg-mh-chips.is-tight .tg-mh-chip:nth-child(n+5) { display: none; }
@media (max-width: 599px) {
    .tg-mh2 .tg-mh-chips { grid-template-columns: 1fr 1fr; }
    .tg-mh2 .tg-mh-chip:nth-child(n+5) { display: none; }
    .tg-mh2 .tg-mh-chips.is-tight .tg-mh-chip:nth-child(n+3) { display: none; }
    .tg-mh2 .tg-mh-pl { flex-wrap: nowrap; gap: 0 12px; }
    .tg-mh2 .tg-mh-scale { flex: 0 0 104px; }
    .tg-mh2 .tg-mh-plain { flex: 1 1 0; min-width: 0; font-size: 13.5px; line-height: 1.35; }
    .tg-mh2 .tg-mh-plain b { font-size: 17px; margin-right: 3px; }
    .tg-mh2 .tg-mh-cv { gap: 0 5px; }
    .tg-mh2 .tg-mh-cu { font-size: 12px; }
    .tg-mh2 .tg-mh-blk { margin-top: 8px; padding-top: 8px; }
    .tg-mh2 .tg-mh-nosurvey { margin-top: 8px; padding-top: 6px; }
    .tg-mh2 .tg-mh-line { margin-bottom: 6px; font-size: 13.5px; line-height: 1.4; }
    .tg-mh2 .tg-mh-leg { gap: 0 10px; font-size: 12px; }
    .tg-mh2 .tg-mh-chip { padding: 7px 9px; }
    .tg-mh2 .tg-mh-cp { font-size: 16px; }
    .tg-mh2 .tg-mh-chip { padding: 7px 8px; }
}
.tg-rd-bars {
    margin-top: 8px;
}

.tg-rd-bar {
    display: grid;
    grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 70px;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    font-size: 13.5px;
}

.tg-rd-bar b {
    text-align: right;
}

.tg-rd-bar-track {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: var(--line-2);
    overflow: hidden;
}

.tg-rd-bar-track > span {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--primary);
}

.tg-rd-currency .rc-fig.is-s {
    font-size: 28px;
}

/* Visa split banner: the flag on a quiet ground. Selectors repeat
   .rc-banner.is-split so they out-rank the generic split-banner rules. */
.rc-banner.is-split.tg-rd-visa {
    grid-template-columns: 260px minmax(0, 1fr);
}

.rc-banner.is-split.tg-rd-visa.is-noflag {
    grid-template-columns: minmax(0, 1fr);
}

.rc-banner.is-split.tg-rd-visa .tg-rd-visa-flag {
    display: grid;
    place-items: center;
    background: var(--cloud);
    min-height: 200px;
}

.rc-banner.is-split.tg-rd-visa .tg-rd-visa-flag img {
    position: static;
    width: 180px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}

.tg-rd-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.tg-rd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Emergency beside compensation + updates. */
.tg-rd-safety {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.tg-rd-stack {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.tg-rd-row-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tg-rd-row-card > div {
    flex: 1;
    min-width: 0;
}

.tg-rd-row-card .rc-btn {
    flex-shrink: 0;
}

.tg-rd-updates .rc-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-rd-updates .rc-kicker .rc-ico {
    width: 18px;
    height: 18px;
}

.tg-rd-updates .rc-rows li {
    grid-template-columns: minmax(0, 1fr);
}

.tg-rd-alert-title {
    font-weight: 700;
    color: var(--primary);
}

.tg-rd-around .rc-rows li {
    grid-template-columns: minmax(0, 1fr);
}

.tg-rd-appgroup {
    margin-top: 10px;
}

.tg-rd-appgroup .tg-rd-chips {
    margin: 4px 0 0;
}

.tg-rd .rc-chip img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.tg-rd .rc-board li.is-cancelled strong {
    text-decoration: line-through;
}

.tg-rd-phrase strong {
    font-size: 18px;
}

.tg-rd-phrase-track {
    grid-auto-columns: minmax(150px, 1fr);
}

.tg-rd-pull {
    margin: 6px 0 0;
    font-size: 21px;
}

.tg-rd-tray {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-rd-two-col {
    gap: 8px 32px;
}

@media (max-width: 980px) {
    .tg-rd-safety,
    .tg-rd-tray {
        grid-template-columns: minmax(0, 1fr);
    }

    .rc-banner.is-split.tg-rd-visa {
        grid-template-columns: minmax(0, 1fr);
    }

    .rc-banner.is-split.tg-rd-visa .tg-rd-visa-flag {
        min-height: 150px;
    }
}

@media (max-width: 640px) {
    .tg-rd-bar {
        grid-template-columns: minmax(0, 1fr) 70px;
    }

    .tg-rd-bar-track {
        grid-column: 1 / -1;
        order: 3;
    }

    .tg-rd-row-card {
        flex-wrap: wrap;
    }

    .tg-rd-two-col {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Small things inside a flex-column card keep their own width instead of
   stretching across it (trust badges, text links). */
.tg-rd .rc-card > .tg-trust,
.tg-rd .rc-card > .rc-link {
    align-self: flex-start;
}

/* ---- Stage 05 · Experience (live, 2026-09-30) --------------------------------------------- */

/* Tile photo credits sit directly under the picture, above the text. */
.tg-rd .rc-tile > .rc-credit {
    margin: 6px 0 0;
}

.tg-rd-tile-blank.is-wide {
    aspect-ratio: 16 / 9;
}

.tg-rd-tile-blank.is-poster {
    aspect-ratio: 2 / 3;
}

.tg-rd .rc-tile-body {
    gap: 4px;
}

/* Heading right side: a badge beside the carousel arrows. */
.tg-rd-head-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Rows whose first line is a link (SeatGeek). */
.tg-rd .tg-rd-row-link {
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.tg-rd .tg-rd-row-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* The page's open-now badge inside tiles and rows keeps its own width. */
.tg-rd .rc-tile-body > .tg-open-now,
.tg-rd .rc-rows .tg-open-now {
    align-self: flex-start;
}

/* Get in the Mood: a poster is 2:3, so the magazine's media column is narrow. */
.tg-rd .rc-mag.tg-rd-mood-lead {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 32px;
}

.tg-rd .tg-rd-poster img {
    aspect-ratio: 2 / 3;
}

.tg-rd-mini-posters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 440px;
}

.tg-rd .tg-rd-poster-track:not(.is-fit) {
    grid-auto-columns: calc((100% - 7 * var(--gap)) / 7.4);
}

.tg-rd .tg-rd-poster-track.is-fit {
    grid-template-columns: repeat(var(--fit, 6), minmax(0, 140px));
}

.tg-rd .tg-tmdb-attribution {
    margin-top: 14px;
}

/* Famous road trips: the one-line highlight under the distance. */
.tg-rd-trip-highlight {
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-2);
}

.tg-rd .tg-rd-trip .tg-road-trip-detail {
    margin-top: 10px;
}

.tg-rd .tg-road-trip-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tg-rd .tg-road-trip-expand-btn svg {
    width: 14px;
    height: 14px;
}

/* Suggested itinerary banner: the planner over the photo's dark gradient.
   ⚠️ The <select> itself is NOT restyled — only its label and width box. */
.tg-rd-itin-banner .rc-banner-body {
    min-height: 380px;
}

.tg-rd-itin-banner .rc-h2 {
    margin: 0;
    color: #fff;
}

.tg-rd-itin-pick {
    max-width: 360px;
    margin-top: 4px;
}

.tg-rd .tg-rd-itin-pick .tg-itinerary-label {
    color: rgba(255, 255, 255, .86);
}

.tg-rd-itinerary .tg-itinerary-result {
    margin-top: 20px;
}

@media (max-width: 980px) {
    .tg-rd .rc-mag.tg-rd-mood-lead {
        grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
        gap: 22px;
    }
    /* Posters become a swipe row like every other track at this width. */
    .tg-rd .tg-rd-poster-track.is-fit,
    .tg-rd .tg-rd-poster-track:not(.is-fit) {
        grid-template-columns: none;
        grid-auto-columns: calc((100% - 3 * var(--gap)) / 4.3);
    }
}

@media (max-width: 640px) {
    .tg-rd .rc-mag.tg-rd-mood-lead {
        grid-template-columns: minmax(0, 1fr);
    }

    .tg-rd .rc-mag.tg-rd-mood-lead .tg-rd-poster {
        max-width: 180px;
    }

    .tg-rd-mini-posters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tg-rd .tg-rd-poster-track:not(.is-fit),
    .tg-rd .tg-rd-poster-track.is-fit {
        grid-auto-columns: 40%;
    }

    .tg-rd-itin-banner .rc-banner-body {
        min-height: 0;
        padding: 28px 22px 44px;
    }

    .tg-rd-itin-pick {
        max-width: none;
    }
}

/* ---- Stage 06 · Your TripGuide (live, 2026-09-30) ----------------------------------------- */
.tg-rd-ai-body {
    max-width: 720px;
}

.tg-rd-ai-body > p {
    margin: 10px 0 0;
    font-size: 16.5px;
    line-height: 1.6;
}

/* "Your dates have passed — showing what's coming up." (2026-09-30): one
   small line under a date-based card's heading when the trip is in the past. */
.tg-rd .tg-dates-passed-note {
    margin: 4px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-strong);
}

.tg-rd .tg-rd-itin-banner .tg-dates-passed-note {
    color: var(--accent);
}

/* Holiday one-line description (Wikipedia, CC BY-SA 4.0), 2026-09-30. */
.tg-rd .tg-rd-holiday-desc {
    margin-top: 4px;
    line-height: 1.5;
}

.tg-rd .tg-rd-holiday-src a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Holidays "+N more" (owner, 2026-09-30: nothing silently hidden). A native
   <details>: works without JavaScript and from the keyboard. */
.tg-rd .rc-rows li.tg-rd-holiday-more {
    display: block;
    padding: 9px 0;
}

.tg-rd .tg-rd-holiday-more summary {
    width: fit-content;
    cursor: pointer;
    list-style: none;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary)  /* the yellow accent failed contrast on paper */;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tg-rd .tg-rd-holiday-more summary::-webkit-details-marker {
    display: none;
}

.tg-rd .tg-rd-holiday-more details[open] .tg-rd-more-open,
.tg-rd .tg-rd-holiday-more details:not([open]) .tg-rd-more-close {
    display: none;
}

.tg-rd .tg-rd-holiday-more .rc-rows {
    margin-top: 9px;
}

.tg-rd .tg-rd-holiday-more .rc-rows li:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

/* "01 · The place" — owner pick A, Standfirst + sidebar (2026-10-01;
   templates/parts/route-place.php). The intro as a serif standfirst, the
   holidays in a side column under a yellow rule, one line each. */
.tg-rd.tg-place-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    margin-top: 2px;
}

.tg-rd.tg-place-grid.is-solo {
    grid-template-columns: minmax(0, 1fr);
    max-width: 820px;
}

.tg-rd .tg-place-sf {
    margin: 0;
    font-family: var(--f-display);
    font-variation-settings: 'opsz' 36;
    font-weight: 420;
    font-size: 18.5px;
    line-height: 1.48;
    color: var(--ink);
}

.tg-rd .tg-place-cr {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: var(--ink-2);
}

.tg-rd .tg-place-cr a,
.tg-rd .tg-place-src a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tg-rd .tg-place-hol {
    border-top: 3px solid var(--accent);
    padding-top: 8px;
}

.tg-rd .tg-place-hk {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.tg-rd .tg-place-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tg-rd .tg-place-rows > li {
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
}

.tg-rd .tg-place-rows > li:last-child {
    border-bottom: 0;
}

.tg-rd .tg-place-line {
    display: inline;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.45;
}

.tg-rd .tg-place-when {
    margin-right: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-strong);
}

.tg-rd .tg-place-ds {
    margin: 3px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ink-2);
}

.tg-rd .tg-place-est {
    display: block;
}

.tg-rd .tg-place-src {
    font-size: 11.5px;
}

.tg-rd .tg-place-about {
    display: inline;
    margin-left: 6px;
}

.tg-rd .tg-place-about[open] {
    display: block;
    margin-left: 0;
}

.tg-rd .tg-place-about > summary,
.tg-rd .tg-place-more > details > summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tg-rd .tg-place-more > details > summary {
    font-size: 13px;
    padding: 2px 0;
}

.tg-rd .tg-place-about > summary::-webkit-details-marker,
.tg-rd .tg-place-more > details > summary::-webkit-details-marker {
    display: none;
}

.tg-rd .tg-place-more details[open] .tg-place-open,
.tg-rd .tg-place-more details:not([open]) .tg-place-close {
    display: none;
}

.tg-rd .tg-place-more .tg-place-rows > li:last-child {
    padding-bottom: 0;
}

/* One holiday: its Wikipedia line is shown on desktop, "About" on a phone. */
.tg-rd details.tg-place-narrow {
    display: none;
}

.tg-rd .tg-place-note,
.tg-rd .tg-place-none {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--ink-2);
}

.tg-rd .tg-place-none {
    font-size: 14.5px;
    color: var(--ink);
}

/* "National holiday" / "Kerala holiday" tag (2026-10-03). Regional tags
   are teal-tinted so a state's own days stand out from national ones. */
.tg-rd .tg-place-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    color: var(--ink-2);
    white-space: nowrap;
    vertical-align: 1px;
}

.tg-rd .tg-place-tag.is-regional {
    border-color: transparent;
    background: var(--tint);
    color: var(--primary);
}

/* "Kerala offices open": a central-govt holiday the state's own list
   doesn't close for (owner, 2026-10-04). Quieter than the tag itself. */
.tg-rd .tg-place-offices {
    display: inline-block;
    margin-left: 2px;
    font-size: 11px;
    font-style: italic;
    line-height: 18px;
    color: var(--ink-2);
    white-space: nowrap;
}

/* India's optional (restricted) holidays, listed apart. */
.tg-rd .tg-place-opt-hk {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    color: var(--ink-2);
}

.tg-rd .tg-place-rows.is-optional .tg-place-line {
    font-size: 13.5px;
}

@media (max-width: 640px) {
    .tg-rd.tg-place-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .tg-rd .tg-place-sf {
        font-size: 16px;
        line-height: 1.45;
    }

    .tg-rd .tg-place-wide {
        display: none;
    }

    .tg-rd details.tg-place-narrow {
        display: inline;
    }

    .tg-rd details.tg-place-narrow[open] {
        display: block;
    }

    /* The numeral sits beside the kicker, so the text gets the full width. */
    .tg-stage-place .tg-stage-label.tg-stage-open {
        display: block;
        position: relative;
    }

    /* top = the opener's own padding-top (20px), so it sits level with the kicker. */
    .tg-stage-place .tg-stage-num {
        position: absolute;
        top: 20px;
        left: 0;
        font-size: 26px;
    }

    .tg-stage-place .tg-stage-open .tg-kicker {
        margin: 0 0 6px;
        padding-left: 40px;
        line-height: 26px;
    }
}

/* Famous Road Trips — option A "Postcard carousel" (owner, 2026-10-04;
   templates/parts/route-stage-05.php + TGCore_Road_Trips_Card). */
.tg-rd .tg-rt-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 4);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.tg-rd .tg-rt-tile,
.tg-rd .tg-rt-skel {
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    min-width: 0;
}

.tg-rd .tg-rt-skel {
    gap: 8px;
    padding-top: 150px;
}

.tg-rd .tg-rt-ph {
    margin: 0;
}

.tg-rd .tg-rt-ph img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--r-img);
    background: var(--cloud);
}

.tg-rd .tg-rt-ph.is-none {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: var(--r-img);
    background: var(--tint);
}

.tg-rd .tg-rt-cr {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: var(--ink-2);
}

.tg-rd .tg-rt-cr a,
.tg-rd .tg-rt-via a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tg-rd .tg-rt-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    padding-top: 8px;
}

.tg-rd .tg-rt-badge {
    align-self: flex-start;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 18px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tg-rd .tg-rt-badge.is-curated {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.tg-rd .tg-rt-badge.is-wikivoyage {
    background: var(--tint);
    color: var(--primary);
}

.tg-rd .tg-rt-title {
    font-size: 15px;
    line-height: 1.3;
}

.tg-rd .tg-rt-dist {
    margin: 2px 0 0;
    font-size: 13px;
}

.tg-rd .tg-rt-src {
    font-size: 12px;
    color: var(--ink-2);
}

.tg-rd .tg-rt-open {
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 12px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font: 700 12.5px var(--f-text);
    cursor: pointer;
}

.tg-rd .tg-rt-tile.is-open .tg-rt-open {
    background: var(--primary);
    color: var(--on-primary);
}

.tg-rd .tg-rt-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.tg-rd .tg-rt-pg {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.tg-rd .tg-rt-panel.no-map .tg-rt-pg {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
}

.tg-rd .tg-rt-map iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    border: 0;
    border-radius: 12px;
    background: var(--cloud);
}

.tg-rd .tg-rt-h {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 17px;
}

.tg-rd .tg-rt-sum {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
}

.tg-rd .tg-rt-via {
    font-size: 11.5px;
    color: var(--ink-2);
}

.tg-rd .tg-rt-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--ink-2);
}

.tg-rd .tg-rt-ai {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-2);
}

.tg-rd .tg-rt-ai-tag {
    display: inline-block;
    margin-right: 4px;
    padding: 0 6px;
    border: 1px dashed var(--accent-strong);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent-strong);
}

.tg-rd .tg-rt-ai-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font: 700 13px var(--f-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.tg-rd .tg-rt-ai-text {
    margin: 6px 0 0;
    color: var(--ink);
}

.tg-rd .tg-rt-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tg-rd .tg-rt-act {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: 600 13px var(--f-text);
    text-decoration: none;
    cursor: pointer;
}

.tg-rd .tg-rt-act.is-save {
    border-color: var(--primary);
    color: var(--primary);
}

.tg-rd .tg-rt-act.is-saved {
    background: var(--tint);
}

.tg-rd .tg-rt-foot {
    margin: 12px 0 0;
}

@media (max-width: 980px) {
    .tg-rd .tg-rt-track {
        grid-auto-columns: calc((100% - 32px) / 3);
    }
}

@media (max-width: 640px) {
    .tg-rd .tg-rt-track {
        grid-auto-columns: 78%;
    }

    .tg-rd .tg-rt-pg {
        grid-template-columns: minmax(0, 1fr);
    }

    .tg-rd .tg-rt-map iframe {
        aspect-ratio: 4 / 3;
    }
}

/* Places of interest — option A "Postcard carousel" (owner, 2026-10-04;
   parts/route-stage-05.php + TGCore_POI_Card). Tiles and panels reuse the
   road-trips .tg-rt-* rules above; these are the extras. */
.tg-rd .tg-poi-meta {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-2);
}

.tg-rd .tg-poi-local {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--ink-2);
}

.tg-rd .tg-rt-pt .tg-poi-local {
    margin-top: 2px;
}

.tg-rd .tg-poi-facts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.tg-rd .tg-poi-fee {
    font-weight: 700;
}

.tg-rd .tg-poi-fee.is-free {
    color: var(--success, #1d6b3a);
}

.tg-rd .tg-poi-track + .tg-rt-panel,
.tg-rd .tg-rt-panel + .tg-rt-panel {
    margin-top: 14px;
}

.tg-rd .tg-poi-near .tg-poi-local {
    margin-top: 1px;
}

/* "02 · Getting there" — B · Compare strip + switch (owner, 2026-10-04;
   parts/route-stage-02.php, TGCore_Rail_Banner). One banner, two sides. */
.tg-rd .tg-tb .tg-tb-pane {
    display: contents;
}

/* Both photos share the banner's media layer; switching only cross-fades,
   so the layout never jumps. */
.tg-rd .tg-tb .rc-banner-media img.tg-tb-photo {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
}

.tg-rd .tg-tb .rc-banner-media img.tg-tb-photo.is-on {
    opacity: 1;
}

.tg-rd .tg-tb.is-band .rc-banner-media {
    display: none;
}

.tg-rd .tg-tb-strip {
    display: grid;
    /* One equal column per VISIBLE side (Flight | Train | Drive). */
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-self: stretch;
    max-width: 560px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, .38);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.tg-rd .tg-tb-strip button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: #fff;
    font: 500 14px var(--f-text);
    text-align: left;
    cursor: pointer;
}

.tg-rd .tg-tb-strip button + button {
    border-left: 1px solid rgba(255, 255, 255, .28);
}

/* Drive is revealed only when its data arrives; a strip with only Flight to
   show is not shown at all. */
.tg-rd .tg-tb-strip button[hidden],
.tg-rd .tg-tb-strip.is-solo {
    display: none;
}

/* Three sides: wider than the text column on desktop (the map inset sits
   lower, so the top row has room), so labels stay on one line. */
@media (min-width: 900px) {
    .tg-rd .tg-tb-strip.is-3 {
        width: min(780px, calc(100vw - 200px));
        max-width: none;
    }

    .tg-rd .tg-tb-strip.is-3 button {
        padding: 10px 12px;
        font-size: 13.5px;
    }
}

.tg-rd .tg-tb-crossing {
    margin: 0;
    font-size: 13.5px;
}

.tg-rd .tg-tb-crossing .tg-tb-flag {
    margin: 0 4px 0 0;
}

.tg-rd .tg-tb-strip button.is-on {
    background: #fff;
    color: var(--ink);
}

.tg-rd .tg-tb-strip .rc-ico svg {
    width: 18px;
    height: 18px;
}

.tg-rd .tg-tb-msg {
    margin: 4px 0 40px;
    font-size: 15px;
}

.tg-rd .tg-tb-ops {
    margin: 0;
}

.tg-rd .tg-tb-more {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .3);
}

.tg-rd .tg-tb-more summary {
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.tg-rd .tg-tb-journeys {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 2px;
    padding-left: 20px;
}

.tg-rd .tg-tb-j-head {
    margin: 0;
    font-size: 14px;
}

.tg-rd .tg-tb-legs {
    margin: 3px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .9);
}

.tg-rd .tg-tb-leg-mode {
    display: inline-block;
    min-width: 104px;
    color: rgba(255, 255, 255, .7);
}

/* A coach leg inside a train journey is said, not hidden (owner, 2026-10-04). */
.tg-rd .tg-tb-legs li.is-coach .tg-tb-leg-mode {
    color: var(--accent);
    font-weight: 700;
}

.tg-rd .tg-tb-flag {
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
}

.tg-rd .tg-tb-cta {
    flex-wrap: wrap;
    gap: 8px;
}

.tg-rd .rc-btn.is-ghost-light {
    border: 1.5px solid rgba(255, 255, 255, .7);
    background: transparent;
    color: #fff;
}

.tg-rd .tg-tb-attr {
    margin: 0;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .8);
}

.tg-rd .tg-tb-credit {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, .8);
}

.tg-rd .tg-tb-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tg-rd .tg-tb-sketch svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    border-radius: 10px;
}

.tg-rd .tg-tb-src {
    margin-left: 4px;
    font-weight: 500;
    color: var(--ink-2);
}

/* The flight's ESTIMATED badge belongs to the Flight side only. */
.tg-rd .tg-tb.is-train .tg-rd-trust,
.tg-rd .tg-tb.is-drive .tg-rd-trust {
    display: none;
}

@media (max-width: 640px) {
    /* Room for the badge above the full-width strip. */
    .tg-rd .tg-tb .rc-banner-body {
        padding-top: 58px;
    }

    .tg-rd .tg-tb-strip {
        grid-auto-flow: row;
    }

    .tg-rd .tg-tb-strip button + button {
        border-top: 1px solid rgba(255, 255, 255, .28);
        border-left: 0;
    }

    .tg-rd .tg-tb-leg-mode {
        min-width: 0;
        margin-right: 4px;
    }
}

/* Destination awareness, layout B (23 Oct 2026): the destination-specific band at the top of "Traveling Responsibly". */
.tg-rd-aw {
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid #E4DFCF;
    border-radius: 14px;
    background: #F5F3EC;
    color: var(--ink, #16222E);
}
.tg-rd-aw-positive { background: #EEF6F0; border-color: #D3E5D8; }
.tg-rd-aw p { margin: 0; }
.tg-rd-aw-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px !important;
    font: 700 12px/1.2 var(--f-text);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5E5226;
}
.tg-rd-aw-positive .tg-rd-aw-kicker { color: #26683F; }
.tg-rd-aw-kicker svg { width: 18px; height: 18px; flex: 0 0 auto; }
.tg-rd-aw-text { font-size: 15px; line-height: 1.5; }
.tg-rd-aw-tip { margin-top: 6px !important; font-size: 15px; line-height: 1.5; }
.tg-rd-aw-facts { margin: 12px 0 0; display: grid; gap: 8px; }
.tg-rd-aw-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
.tg-rd-aw-facts dt { font-weight: 700; }
.tg-rd-aw-facts dd { margin: 0; }
.tg-rd-aw-act { margin-top: 14px !important; }
.tg-rd-aw-src { margin-top: 12px !important; font-size: 12.5px; line-height: 1.5; color: #4D5864; }
.tg-rd-aw-src a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
    .tg-rd-aw { padding: 12px 14px; margin-bottom: 10px; }
    .tg-rd-aw-src { font-size: 12px; margin-top: 8px !important; }
    .tg-rd-aw-act { margin-top: 10px !important; }
    .tg-rd-aw-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
.tg-rd-aw-more { margin-top: 10px; }
.tg-rd-aw-more > summary, .tg-rd-aw-gen > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    font: 700 14px/1.3 var(--f-text);
    cursor: pointer;
}
.tg-rd-aw-more .tg-rd-aw-text { margin-top: 4px; }
.tg-rd-aw-s2 { font-size: 12.5px; color: #4D5864; margin-top: 6px !important; }
.tg-rd-aw-s2 a { color: inherit; text-decoration: underline; }
.tg-rd-aw-gen { margin-top: 6px; }
.tg-rd-aw-gen[open] > summary { margin-bottom: 4px; }

/* Itinerary Builder stage 6 (2026-10-24): "Add to trip" on the Places panel and the Food picks (mockup b2, "Add to trip
   from the results page"). Every control 44 px; the Food button sits in the existing action row (no extra row). */
.tg-ib-addrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 4px}
.tg-ib-addrow.is-compact{display:inline-flex;margin:0}
.tg-ib-add{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--color-primary,#0F5257);background:var(--color-primary,#0F5257);color:#fff;font:700 14.5px/1 var(--font-family,'DM Sans',sans-serif);cursor:pointer;white-space:nowrap}
.tg-ib-add:hover{background:var(--color-primary-dark,#0B3F43)}
.tg-ib-add.is-in{background:#fff;color:var(--color-primary,#0F5257)}
.tg-ib-add:focus-visible,.tg-ib-day select:focus-visible{outline:3px solid var(--color-primary,#0F5257);outline-offset:2px}
.tg-ib-add[disabled]{opacity:.7;cursor:progress}
.tg-ib-add.is-compact{min-height:44px;padding:0 12px;font-size:13.5px}
.tg-fd-ac:has(.tg-ib-addrow){flex-wrap:wrap;row-gap:6px}
/* 2026-10-25: every compact button keeps its words ("Add to trip"); a row wraps rather than hiding them. */
.tg-ib-addrow.is-under{display:flex;margin:8px 0 0}
.tg-ib-addrow.is-line{display:flex;margin:6px 0 0}
.tg-ib-addrow.is-end{margin-left:auto}
.tg-ib-addrow.is-row{flex:none}
.d1-tabrow{display:flex;align-items:flex-start;gap:8px}
.d1-tabrow .d1-tabs{flex:1;min-width:0}
.tg-ib-addrow.is-proxy{flex:none;display:none}
@media (max-width:699px){.tg-ib-addrow.is-proxy{display:inline-flex;padding-top:1px}.d1-ph .tg-ib-addrow.is-end{display:none}
  .tg-ib-addrow.is-proxy .tg-ib-add{width:44px;padding:0;justify-content:center}.tg-ib-addrow.is-proxy [data-ib-addlabel]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}
/* In a row that is shorter than 44 px (a way in, a way around, a place of worship) the button keeps its 44 px target
   without making the row taller; on a phone it is a round "+" (named "Add to trip"), so the row does not wrap. */
.tg-ib-addrow.is-end .tg-ib-add,.tg-ib-addrow.is-row .tg-ib-add{margin:-2px 0}
@media (max-width:699px){.tg-ib-addrow.is-end .tg-ib-add,.tg-ib-addrow.is-row .tg-ib-add{width:44px;padding:0;justify-content:center}.tg-ib-addrow.is-end [data-ib-addlabel],.tg-ib-addrow.is-row [data-ib-addlabel]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.tg-ib-addrow.is-end .tg-ib-ico,.tg-ib-addrow.is-row .tg-ib-ico{width:18px;height:18px}}
/* Phones (Polish Backlog 19, 25 Oct 2026): in a Places or Road trips panel "Add to trip" joins the share buttons' row
   instead of a row of its own; its day choice moves into the chooser (tg-trip-add.js opens it when the list is hidden).
   The share buttons keep their look and get a 44 px tap area. */
@media (max-width:640px){
  .tg-rt-pt{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px}
  .tg-rt-pt>*{flex:1 0 100%;min-width:0}
  .tg-rt-pt>.tg-ib-addrow{flex:0 0 auto;order:20;margin:8px 0 0}
  .tg-rt-pt>.tg-ib-addrow .tg-ib-day{display:none}
  .tg-rt-pt>.tg-rt-acts{display:contents}
  .tg-rt-pt>.tg-rt-acts>*{order:21;flex:0 0 auto;margin-top:8px;position:relative}
  .tg-rt-pt>.tg-rt-acts>*::after{content:"";position:absolute;inset:-6px 0}
  .tg-rt-pt>.tg-ib-msg{order:22}
}
.tg-ib-dlg{width:min(460px,calc(100vw - 32px));padding:0;border:0;border-radius:18px;box-shadow:0 20px 50px rgba(0,0,0,.25);color:var(--color-text,#16222E)}
.tg-ib-dlg::backdrop{background:rgba(20,30,30,.45)}
.tg-ib-dlg-in{padding:18px}
.tg-ib-dlg h2{margin:0 0 6px;font:600 20px/1.25 var(--font-display,Georgia,serif)}
.tg-ib-dlg-sub{margin:0 0 10px;font-size:14px;line-height:1.5;color:var(--color-text-muted,#4D5864)}
.tg-ib-dlg .tg-ib-day{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:14px}
.tg-ib-dlg .tg-ib-day select{width:100%}
.tg-ib-dlg .tg-ib-msg{margin:10px 0 0}
.tg-ib-dlg-foot{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tg-ib-dlg-x{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--color-border,#E3DED4);background:#fff;color:var(--color-text,#16222E);font:700 14.5px var(--font-family,'DM Sans',sans-serif);cursor:pointer}
.tg-ib-dlg-x:focus-visible{outline:3px solid var(--color-primary,#0F5257);outline-offset:2px}
.tg-ib-ico{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.tg-ib-day select{min-height:44px;max-width:100%;padding:0 10px;border-radius:12px;border:1px solid var(--color-border,#E3DED4);background:#fff;color:var(--color-text,#16222E);font:600 14px var(--font-family,'DM Sans',sans-serif)}
.tg-ib-msg{margin:0 0 6px;font-size:13px;line-height:1.45;color:var(--color-text-muted,#4D5864)}
.tg-ib-msg:empty{display:none}
.tg-ib-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.tg-ib-toast{position:fixed;left:50%;bottom:84px;transform:translateX(-50%);z-index:9999;max-width:min(560px,calc(100vw - 32px));padding:12px 16px;border-radius:14px;background:#16222E;color:#fff;font:600 14px/1.45 var(--font-family,'DM Sans',sans-serif);box-shadow:0 10px 30px rgba(0,0,0,.25)}
.tg-ib-toast a{color:#fff;text-decoration:underline}
.tg-ib-ideas{font-weight:700;color:inherit;text-decoration:underline}
.tg-ev-cell{position:relative;min-width:0;display:flex;flex-direction:column}
.tg-ev-cell>.rc-tile{flex:1 1 auto}
.tg-ib-add.is-tile{position:absolute;top:8px;right:8px;z-index:2;width:44px;padding:0;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.3);border-color:#fff}
.tg-ib-add.is-tile.is-in{border-color:var(--color-primary,#0F5257)}
