/* ═══════════════════════════════════════════════════════════════════
   Trt.Web — public website stylesheet
   ═══════════════════════════════════════════════════════════════════ */

/* ── Base tokens ───────────────────────────────────────────────── */
:root {
    /* Default / Competitor theme */
    --theme-primary: #008C67;
    --theme-dark: #006E50;
    --theme-deeper: #004D38;
    --theme-light: #C8EDE2;
    --theme-mist: #E8F7F2;
    --theme-text: #004D38;
    /* Neutrals */
    --trt-text: #0F172A;
    --trt-body: #334155;
    --trt-muted: #64748B;
    --trt-border: #E2E8F0;
    --trt-surface: #FFFFFF;
    --trt-bg: #F8FAFC;
    --trt-panel: rgba(255,255,255,.92);   /* frosted panels */
    --trt-radius: 10px;
    --trt-shadow: 0 1px 6px rgba(0,0,0,.08);
    --trt-shadow-md: 0 3px 16px rgba(0,0,0,.12);
}

/* ── Dark mode ─────────────────────────────────────────────────────
   Flips the neutral tokens; brand theme colours (green/purple/…) stay.
   Initial theme is set by an inline script in _Host (system preference or
   the stored choice), toggled via the sun/moon button in the nav. */
[data-theme="dark"] {
    --trt-text: #EAF0F6;
    --trt-body: #B8C4D2;
    --trt-muted: #7E8B9C;
    --trt-border: #2C3745;
    --trt-surface: #1C2530;
    --trt-bg: #12181F;
    --trt-panel: rgba(28,37,48,.92);
    --trt-shadow: 0 1px 6px rgba(0,0,0,.55);
    --trt-shadow-md: 0 4px 18px rgba(0,0,0,.65);
}

/* ── Fan theme (purple) ──────────────────────────────────────── */
.theme-fan {
    --theme-primary: #4A3878;
    --theme-dark: #362960;
    --theme-deeper: #241B42;
    --theme-light: #DDD8F0;
    --theme-mist: #F0EEF9;
    --theme-text: #241B42;
}

/* ── Sponsor / Expo theme (lime green) ──────────────────────── */
.theme-sponsor {
    --theme-primary: #6B9E35;
    --theme-dark: #527A28;
    --theme-deeper: #3A5520;
    --theme-light: #D8EDB8;
    --theme-mist: #EFF6E0;
    --theme-text: #3A5520;
}

/* ── Crew theme (teal dark) ─────────────────────────────────── */
.theme-crew {
    --theme-primary: #1A6B7A;
    --theme-dark: #135260;
    --theme-deeper: #0D3E47;
    --theme-light: #C0E4EB;
    --theme-mist: #E5F5F8;
    --theme-text: #0D3E47;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--trt-body);
    background: var(--trt-bg);
    line-height: 1.6;
}

/* Hide the focus ring for mouse/click (and programmatic) focus, but keep it for
   keyboard navigation so the site stays accessible. */
:focus:not(:focus-visible) {
    outline: none;
}
:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}

/* ── Dark/light toggle button (in the nav) ─────────────────────── */
.trt-theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border: 1px solid var(--trt-border);
    border-radius: 8px; background: transparent; color: var(--trt-text);
    cursor: pointer; flex-shrink: 0;
}
.trt-theme-toggle:hover { background: var(--trt-bg); }
.trt-theme-toggle svg { width: 18px; height: 18px; display: block; }
.trt-theme-toggle .ti-sun  { display: none; }
[data-theme="dark"] .trt-theme-toggle .ti-sun  { display: block; }
[data-theme="dark"] .trt-theme-toggle .ti-moon { display: none; }

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Site shell ─────────────────────────────────────────────── */
.trt-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */
.trt-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--trt-surface);
    border-bottom: 1px solid var(--trt-border);
    overflow: visible; /* let the logo dip below the bar into the header */
}

/* Inner content shares the page container width so the nav links line up with
   the centred page content instead of hugging the screen edges. */
.trt-nav__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 64px;
}

.trt-nav__links {
    display: flex;
    align-items: center;
    gap: .15rem;
    flex: 1;
}

.trt-nav__link {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--trt-text);
    text-decoration: none;
    padding: .35rem .6rem;
    border-radius: 5px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

    .trt-nav__link:hover {
        color: var(--theme-primary);
    }

.trt-nav__link--active {
    color: var(--theme-primary);
}

.trt-nav__link--placeholder {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

.trt-nav__right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* TRT avatar circle in nav */
.trt-nav__avatar {
    display: block;
    flex-shrink: 0;
}

.trt-avatar-img {
    width: 56px;
    height: 56px;
    display: block;
    transition: transform .2s;
    /* logo-trt.svg has its own circular background */
}

/* Logo lives inside the green title header (top-right), fully on the green and
   scrolls away with the header. Home has no page-header, so no logo there. */
.trt-page-header__logo {
    position: absolute;
    top: 10px;
    right: 1.5rem;
    z-index: 4;
    display: block;
}
.trt-page-header__logo img {
    width: 92px;
    height: 92px;
    display: block;
}
@media (max-width: 640px) {
    .trt-page-header__logo img { width: 68px; height: 68px; }
}

.trt-nav__avatar:hover .trt-avatar-img {
    transform: scale(1.05);
}

/* ── Focus filter dropdown ──────────────────────────────────── */
.trt-focus-filter {
    position: relative;
    z-index: 200;
}

.trt-focus-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 20px;
    border: 1.5px solid var(--theme-primary);
    background: var(--theme-mist);
    color: var(--theme-text);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

    .trt-focus-btn:hover {
        background: var(--theme-light);
    }

.trt-focus-btn__caret {
    font-size: .6rem;
    opacity: .6;
}

.trt-focus-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--trt-surface);
    border: 1px solid var(--trt-border);
    border-radius: var(--trt-radius);
    box-shadow: var(--trt-shadow-md);
    min-width: 155px;
    z-index: 201;
    overflow: hidden;
}

.trt-focus-option {
    display: block;
    width: 100%;
    padding: .55rem 1rem;
    text-align: left;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--trt-text);
    transition: background .1s;
}

    .trt-focus-option:hover {
        background: var(--trt-bg);
    }

.trt-focus-option--active {
    background: var(--theme-mist);
    font-weight: 700;
    color: var(--theme-primary);
}

/* ── Language switcher ──────────────────────────────────────── */
.lang-switcher {
    display: flex;
    gap: .25rem;
    align-items: center;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    opacity: .5;
    transition: opacity .15s;
}

    .lang-btn:hover, .lang-btn--active {
        opacity: 1;
    }

/* ══════════════════════════════════════════════════════════════
   HOME HEADER — wave arch + "Feel the Freedom" + title/dates
   ══════════════════════════════════════════════════════════════ */
.trt-home-header {
    position: relative;
    background: var(--trt-surface);
    height: clamp(80px, 10vh, 120px);
    display: flex;
    align-items: stretch;
    margin-bottom: -2px;
    z-index: 1;
    overflow: hidden;
}

/* Left: tagline block — constrained within green arch */
.trt-home-header__tagline-block {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end; /* anchor to bottom */
    padding: .5rem 1rem .75rem 1.75rem;
    flex: 0 0 34%;
    overflow: hidden;
}

/* Feel the Freedom — CSS styled text (script asset not available) */
.trt-home-header__ftf-text {
    display: flex;
    flex-direction: column;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.trt-ftf-feel {
    font-size: clamp(.9rem, 2vw, 1.5rem);
    opacity: .9;
}

.trt-ftf-freedom {
    font-size: clamp(1.4rem, 3.5vw, 2.6rem);
}

/* Right: title + dates */
.trt-home-header__title-block {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
    padding: .35rem 2.5rem .35rem 1rem;
    text-align: right;
    flex: 1;
}

.trt-home-header__title {
    font-size: clamp(.75rem, 1.5vw, 1.1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--trt-text);
    line-height: 1.2;
}

.trt-home-header__dates {
    font-size: clamp(.95rem, 2.2vw, 1.45rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--trt-text);
    margin-top: .2rem;
}

/* ══════════════════════════════════════════════════════════════
   VIDEO HERO
   ══════════════════════════════════════════════════════════════ */
.trt-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 7/3; /* 1680x720 */
    min-height: 300px;
    max-height: 680px;
    overflow: hidden;
    background: var(--theme-deeper);
    margin-top: -2px; /* kill subpixel gap with header */
    z-index: 0;
}

/* Video fills container */
.trt-hero__video-wrap {
    position: absolute;
    inset: 0;
}

.trt-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 233.33vh; /* 720/1680*100 inverted = 1680/720*100 */
    min-height: 42.86vw; /* 720/1680*100 */
    transform: translate(-50%, -50%);
    object-fit: cover;
    border: 0;
}
/* Fallback bg image — shows when iframe is blocked */
.trt-hero__fallback {
    position: absolute;
    inset: 0;
    background: url('/img/hero-home.jpg') center/cover no-repeat;
    z-index: -1;
}

/* Green tint overlay */
.trt-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,50,35,.25) 0%, rgba(0,80,55,.45) 70%, var(--theme-deeper) 100% );
    pointer-events: none;
    z-index: 1;
}

/* TRT logo + dates overlay */
.trt-hero__overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding-bottom: clamp(4rem, 6vw, 6.5rem); /* room for the taller wave */
}

.trt-hero__logo-wrap {
    width: clamp(140px, 25vw, 220px);
}

    .trt-hero__logo-wrap svg {
        width: 100%;
        height: auto;
        display: block;
    }

.trt-hero__dates-overlay {
    margin-top: .75rem;
    font-size: clamp(.9rem, 2.5vw, 1.3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* Bottom wave */
.trt-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
    line-height: 0;
}

/* Fixed wave height → amplitude stays constant on every screen width
   (the SVG uses preserveAspectRatio="none", so only the wavelength stretches). */
.trt-wave-svg {
    height: clamp(46px, 6vw, 96px);
}

/* Map page: the green "coastline" wave hangs from the header over the map top.
   Two-class selectors so they beat the base .trt-page-header rules regardless of
   source order (base sets overflow:hidden / the wave to bottom:-1px). */
.trt-page-header.trt-page-header--map { overflow: visible; position: relative; z-index: 5; }
.trt-page-header__wave.trt-page-header__wave--hang {
    top: 100%; bottom: auto; margin-top: -1px; z-index: 6; pointer-events: none;
}
.trt-map-page { position: relative; z-index: 1; }
/* keep Leaflet's zoom/layer controls clear of the overhanging wave
   (wave height is clamp(46px,6vw,96px); sit the controls just below it) */
.trt-map-page .leaflet-top .leaflet-control { margin-top: clamp(52px, 6.5vw, 104px); }

/* ══════════════════════════════════════════════════════════════
   INNER PAGE HEADER
   ══════════════════════════════════════════════════════════════ */
.trt-page-header {
    position: relative;
    background: var(--theme-primary);
    overflow: hidden;
    padding-bottom: 60px; /* room for wave */
}

.trt-page-header__arch {
    position: absolute;
    left: -5%;
    right: 40%;
    top: -30px;
    bottom: -20px;
    background: var(--theme-dark);
    border-radius: 0 60% 60% 0 / 0 50% 50% 0;
    opacity: .4;
}

.trt-page-header__title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

.trt-page-header__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

/* ══════════════════════════════════════════════════════════════
   CONTENT SECTIONS
   ══════════════════════════════════════════════════════════════ */
.trt-section {
    padding: 3rem 0;
}

.trt-section--mist {
    background: var(--theme-mist);
}

.trt-section--wave {
    background: #C8EDE2;
}
/* matches #AEDCCF wave on default theme */
.trt-section--light {
    background: var(--theme-light);
}

.trt-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.trt-container--wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.trt-section__title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--theme-primary);
    margin-bottom: 1.25rem;
}

/* Welcome block */
.trt-welcome {
    max-width: 720px;
}

    .trt-welcome h2 {
        font-size: 1.6rem;
        font-weight: 900;
        text-transform: uppercase;
        color: var(--theme-primary);
        margin-bottom: .75rem;
    }

    .trt-welcome h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--trt-text);
        margin: 1.25rem 0 .4rem;
    }

    .trt-welcome p {
        color: var(--trt-body);
        line-height: 1.8;
        margin-bottom: 1rem;
    }

/* Quick-link pills */
.trt-quicklink {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--trt-surface);
    border: 1.5px solid var(--trt-border);
    border-radius: 8px;
    padding: .5rem 1rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--trt-text);
    transition: border-color .15s, color .15s;
}

    .trt-quicklink:hover {
        border-color: var(--theme-primary);
        color: var(--theme-primary);
    }

/* Date cards */
.trt-dates {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.trt-date-card {
    background: var(--trt-surface);
    border: 2px solid var(--theme-light);
    border-radius: var(--trt-radius);
    padding: .75rem 1.25rem;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.trt-date-card__day {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--theme-primary);
    line-height: 1;
}

.trt-date-card__label {
    font-size: .78rem;
    color: var(--trt-muted);
    margin-top: .2rem;
}

/* News cards */
.trt-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.trt-news-card {
    background: var(--trt-surface);
    border: 1px solid var(--trt-border);
    border-radius: var(--trt-radius);
    padding: 1.25rem;
    box-shadow: var(--trt-shadow);
    transition: box-shadow .2s;
}

    .trt-news-card:hover {
        box-shadow: var(--trt-shadow-md);
    }

.trt-news-card__date {
    font-size: .75rem;
    color: var(--trt-muted);
    margin-bottom: .4rem;
}

.trt-news-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--trt-text);
    margin-bottom: .4rem;
    line-height: 1.3;
}

.trt-news-card__body {
    font-size: .83rem;
    color: var(--trt-body);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Programme timeline */
.trt-day-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.trt-day-tab {
    padding: .4rem 1rem;
    border-radius: 6px;
    border: 1.5px solid var(--trt-border);
    background: var(--trt-surface);
    color: var(--trt-body);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

    .trt-day-tab:hover {
        border-color: var(--theme-primary);
        color: var(--theme-primary);
    }

.trt-day-tab--active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

.trt-timeline {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.trt-timeline-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--trt-surface);
    border: 1px solid var(--trt-border);
    border-left: 4px solid var(--theme-primary);
    border-radius: var(--trt-radius);
    padding: .8rem 1rem;
    box-shadow: var(--trt-shadow);
}

.trt-timeline-item__time {
    flex-shrink: 0;
    width: 68px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--theme-primary);
    padding-top: .1rem;
}

.trt-timeline-item__title {
    font-weight: 700;
    color: var(--trt-text);
    margin-bottom: .1rem;
}

.trt-timeline-item__location {
    font-size: .76rem;
    color: var(--trt-muted);
    margin-top: .2rem;
}
a.trt-timeline-item__location--link {
    display: inline-block;
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
a.trt-timeline-item__location--link:hover { text-decoration: underline; }

/* Media gallery */
.trt-media-year {
    margin-bottom: 2.5rem;
}

.trt-media-year__heading {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--theme-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.trt-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .65rem;
}

.trt-media-card {
    position: relative;
    border-radius: var(--trt-radius);
    overflow: hidden;
    box-shadow: var(--trt-shadow);
    transition: transform .2s, box-shadow .2s;
    aspect-ratio: 16/10;
    background: var(--trt-bg);
}

    .trt-media-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--trt-shadow-md);
    }

.trt-media-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trt-media-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: .55rem .7rem;
}

.trt-media-card__title {
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
}

.trt-media-card__type {
    position: absolute;
    top: .4rem;
    right: .4rem;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 4px;
    padding: .12rem .36rem;
}

/* Map */
.trt-map-container {
    height: 480px;
    border-radius: var(--trt-radius);
    overflow: hidden;
    box-shadow: var(--trt-shadow-md);
}

/* Class chips */
.trt-class-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .65rem;
}

.trt-class-chip {
    background: var(--theme-mist);
    color: var(--theme-text);
    border-radius: 100px;
    padding: .18rem .7rem;
    font-size: .76rem;
    font-weight: 600;
}

/* Sponsor grid */
.trt-sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.trt-sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Always a light "logo plate": third-party brand logos are designed for a
       white background, so dark/coloured marks stay legible in both themes. */
    background: #FFFFFF;
    border: 1px solid var(--trt-border);
    border-radius: var(--trt-radius);
    padding: 1rem 1.5rem;
    min-width: 130px;
    min-height: 75px;
    transition: box-shadow .2s, border-color .2s;
}

/* In dark mode the white plate needs its own definition against the page. */
[data-theme="dark"] .trt-sponsor-card {
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

/* Per-partner opt-out for logos that are white/knockout (invisible on white):
   add class "trt-sponsor-card--dark" on that card to keep it on a dark plate. */
.trt-sponsor-card.trt-sponsor-card--dark {
    background: #14181C;
    border-color: rgba(255, 255, 255, .14);
}

    .trt-sponsor-card:hover {
        box-shadow: var(--trt-shadow-md);
        border-color: var(--theme-primary);
    }

.trt-sponsor-card__img {
    max-height: 55px;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.trt-sponsor-card__name {
    font-weight: 700;
    font-size: .88rem;
    color: var(--trt-text);
    text-align: center;
}

/* Social links (About page) */
.trt-social-link {
    display: inline-block;
    padding: .42rem 1rem;
    border: 1.5px solid var(--theme-primary);
    border-radius: 6px;
    color: var(--theme-primary);
    font-weight: 700;
    font-size: .85rem;
    transition: background .15s, color .15s;
}

    .trt-social-link:hover {
        background: var(--theme-primary);
        color: #fff;
    }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.trt-footer {
    margin-top: auto;
    background: #0F1F17;
    color: rgba(255,255,255,.55);
    padding: 2rem 1.5rem;
    font-size: .82rem;
    text-align: center;
}

    .trt-footer a {
        color: rgba(255,255,255,.7);
    }

        .trt-footer a:hover {
            color: #fff;
        }

.trt-footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

    .trt-footer__social a {
        opacity: .65;
        transition: opacity .15s;
    }

        .trt-footer__social a:hover {
            opacity: 1;
        }

/* ══════════════════════════════════════════════════════════════
   LOADING
   ══════════════════════════════════════════════════════════════ */
.trt-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    color: var(--trt-muted);
}

.trt-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--trt-border);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ══════════════════════════════════════════════════════════════
   HAMBURGER + MOBILE NAV
   ══════════════════════════════════════════════════════════════ */
.trt-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    margin-right: .25rem;
}

    .trt-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--trt-text);
        border-radius: 2px;
        transition: transform .2s, opacity .2s;
    }

.trt-hamburger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.trt-hamburger--open span:nth-child(2) {
    opacity: 0;
}

.trt-hamburger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
    .trt-hamburger {
        display: flex;
    }

    .trt-nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--trt-surface);
        border-bottom: 2px solid var(--theme-primary);
        flex-direction: column;
        padding: .5rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        z-index: 99;
    }

    .trt-nav__links--open {
        display: flex;
    }

    .trt-nav__link {
        padding: .65rem 1.5rem;
        font-size: .85rem;
    }

    .trt-home-header {
        height: 130px;
    }

    .trt-home-header__tagline-block {
        padding: .75rem 1rem .75rem 1.25rem;
        flex: 0 0 50%;
    }

    .trt-ftf-feel {
        font-size: .85rem;
    }

    .trt-ftf-freedom {
        font-size: 1.4rem;
    }

    .trt-home-header__title {
        display: none;
    }

    .trt-home-header__dates {
        font-size: .95rem;
    }

    .trt-home-header__title-block {
        padding-right: 1rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .trt-nav__link {
        font-size: .7rem;
        padding: .3rem .4rem;
    }

    .trt-home-header {
        min-height: 120px;
    }

    .trt-home-header__ftf {
        max-width: 180px;
    }

    .trt-home-header__dates {
        font-size: 1.1rem;
    }

    .trt-hero {
        aspect-ratio: 7/3;
        max-height: 380px;
    }
}

@media (max-width: 540px) {
    .trt-nav__inner {
        padding: 0 .75rem;
    }

    .trt-home-header__arch {
        position: absolute;
        inset: 0;
        background: var(--theme-primary);
        /* Wave shape: green fills from left, right edge curves down then up */
        clip-path: polygon( 0% 0%, 65% 0%, 72% 20%, 78% 60%, 72% 90%, 62% 100%, 0% 100% );
        z-index: 0;
    }

    .trt-section {
        padding: 2rem 0;
    }

    .trt-container {
        padding: 0 1rem;
    }
}
