﻿/* ============================================================
   Site CSS: Trivia Nights Australia
   ============================================================ */

/* ── Global ───────────────────────────────────────────────────── */
html,
body {
    overflow-x: clip; 
}

/* Clip only the header's overshoot past the viewport, not the header itself */
@media (min-width: 768px) {
    .body {
        overflow-x: clip;
    }
}

@media (min-width: 768px) {
    html {
        scrollbar-gutter: stable;
    }
}

[hidden] {
    display: none !important;
}

/* ── Theme variables ──────────────────────────────────────────── */
:root {
    --header-height: 80px;
    --menu-height: 0px;
    --navbars-height: calc(var(--header-height) + var(--menu-height));
    --tblr-primary: #c42935;
    --tblr-primary-rgb: 196, 41, 53;
    --tblr-gray-50: #efeff5;
}

[data-bs-theme="dark"] {
    --tblr-primary: #e63946;
    --tblr-primary-rgb: 230, 57, 70;
}

/* ── Header and navigation ────────────────────────────────────── */
header.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-expand-md {
    position: sticky;
    top: var(--header-height);
    z-index: 1029;
}

.navbar {
    min-height: 80px;
}

/* Desktop: stretch the header edge to edge. Mobile keeps its own rule below. */
@media (min-width: 768px) {
    .navbar {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

    .navbar .nav-link {
        color: #fff !important;
        font-size: 1rem !important;
        white-space: nowrap;
    }

        .navbar .nav-link:hover,
        .navbar .nav-link:focus {
            color: rgba(255, 255, 255, 0.85) !important;
        }

.navbar-nav .nav-link.active {
    border-bottom: 2px solid currentColor;
}

.navbar-collapse {
    background: var(--tblr-navbar-bg, #182433);
}

.navbar .offcanvas {
    background: var(--tblr-navbar-bg, #182433);
}

.navbar-brand img.tn-logo {
    height: 35px;
    width: auto;
    display: block;
}

@media (max-width: 991.98px) {
    .navbar > .container-fluid {
        position: relative;
        min-height: 80px;
        align-items: center;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: calc(50% - 50vw);
        right: calc(50% - 50vw);
        padding: 1rem;
        z-index: 1000;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand img.tn-logo {
        height: 36px;
    }

    /* Mobile: no full-bleed overflow in the header */
    .navbar {
        margin-left: 0;
        margin-right: 0;
    }

    .navbar-collapse {
        left: 0;
        right: 0;
    }

    /* Workaround for the gap under the header. Check on a phone after publishing. */
    header.navbar,
    .navbar-expand-md,
    .navbar.navbar-expand-md {
        margin-bottom: 0 !important;
        margin-top: -25px;
    }
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tblr-secondary);
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-list li {
        margin-bottom: 0.5rem;
    }

    .footer-list a {
        color: var(--tblr-body-color);
        text-decoration: none;
        transition: color 0.15s ease-out;
    }

        .footer-list a:hover {
            color: var(--tblr-primary);
        }

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tblr-body-color);
}

.footer-theme-toggle {
    display: inline-flex;
    gap: 0.25rem;
    background: var(--tblr-bg-surface-secondary);
    border-radius: 9999px;
    padding: 0.25rem;
}

.footer-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--tblr-secondary);
    text-decoration: none;
    transition: background 0.15s ease-out, color 0.15s ease-out;
}

    .footer-theme-btn:hover {
        background: var(--tblr-bg-surface);
        color: var(--tblr-body-color);
    }

.footer-social {
    display: flex;
    gap: 0.75rem;
}

    .footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        color: var(--tblr-secondary);
        background: var(--tblr-bg-surface-secondary);
        text-decoration: none;
        transition: color 0.15s ease-out, background 0.15s ease-out;
    }

        .footer-social a:hover {
            color: var(--tblr-primary);
            background: var(--tblr-bg-surface);
        }

/* ── Logos (light/dark swap) ──────────────────────────────────── */
.logo-dark {
    display: none;
}

[data-bs-theme="dark"] .logo-light {
    display: none;
}

[data-bs-theme="dark"] .logo-dark {
    display: inline-block;
}

/* ── Shared: eyebrow, badges, sections ────────────────────────── */
.tn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tblr-primary);
    margin-bottom: 0.5rem;
}

.tn-eyebrow-light {
    color: rgba(255, 255, 255, 0.75);
}

.tn-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(var(--tblr-primary-rgb), 0.12);
    color: var(--tblr-primary);
    white-space: nowrap;
}

.tn-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--tblr-border-color);
}

.tn-section-alt {
    background: var(--tblr-bg-surface-secondary);
}

.tn-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--tblr-body-color);
    margin-bottom: 1rem;
}

.tn-section-text {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--tblr-secondary);
}

.tn-section-schedule {
    border-top: 4px solid #d63384;
}

/* ── Status banner ────────────────────────────────────────────── */
.tn-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    background: #15803d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: tn-status-in 0.35s ease-out;
}

.tn-status-info {
    background: #1d4ed8;
}

.tn-status-warn {
    background: #b45309;
}

.tn-status-text {
    flex: 1 1 auto;
}

.tn-status-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.8;
    cursor: pointer;
}

    .tn-status-close:hover {
        opacity: 1;
    }

@keyframes tn-status-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── Today's games ────────────────────────────────────────────── */
.tn-today {
    background: radial-gradient(ellipse at top left, rgba(var(--tblr-primary-rgb), 0.08), transparent 60%), var(--tblr-bg-surface-secondary);
    border-top: 1px solid var(--tblr-border-color);
    border-bottom: 1px solid var(--tblr-border-color);
}

.tn-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tblr-primary);
    animation: tn-pulse 1.8s infinite;
}

@keyframes tn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--tblr-primary-rgb), 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--tblr-primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--tblr-primary-rgb), 0);
    }
}

.tn-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--tblr-body-color);
}

.tn-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

    .tn-card::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        background: var(--tblr-primary);
        opacity: 0.6;
    }

    .tn-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
        border-color: var(--tblr-primary);
    }

.tn-card-soon::before {
    opacity: 1;
}

.tn-card-soon {
    border-color: var(--tblr-primary);
}

.tn-time {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--tblr-body-color);
    font-variant-numeric: tabular-nums;
}

.tn-venue {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0.25rem 0 0;
    color: var(--tblr-body-color);
}

.tn-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    color: var(--tblr-secondary);
}

.tn-when {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--tblr-primary);
    margin-top: 0.15rem;
}

.tn-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--tblr-border-color);
}

.tn-directions {
    font-weight: 600;
    color: var(--tblr-primary);
    text-decoration: none;
}

    .tn-directions:hover {
        text-decoration: underline;
    }

.tn-empty {
    padding: 2.5rem 1rem;
    background: var(--tblr-bg-surface);
    border: 1px dashed var(--tblr-border-color);
    border-radius: 16px;
}

@media (max-width: 767.98px) {
    .tn-title {
        font-size: 1.75rem;
    }
}

/* ── Play page ────────────────────────────────────────────────── */
[data-lat][data-lng] {
    cursor: pointer;
}

.tn-card.is-active {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
}

#play-map {
    height: 560px;
    border-radius: 16px;
}

/* Map info window chrome (Google-generated classes) */
.gm-style .gm-style-iw-c {
    padding: 14px 16px 16px !important;
    overflow: hidden !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-chr {
    position: absolute;
    top: 0;
    right: 0;
    height: auto;
    z-index: 1;
}

    .gm-style .gm-style-iw-chr .gm-ui-hover-effect {
        top: 6px !important;
        right: 6px !important;
    }

.play-iw {
    min-width: 220px;
    padding-right: 28px;
    line-height: 1.4;
}

.play-iw-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.play-iw-text {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 2px;
}

.play-iw-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

    .play-iw-actions .btn {
        flex: 1 1 0;
    }

.play-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.play-chip {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--tblr-border-color);
    background: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
    font-weight: 600;
    text-decoration: none !important;
}

    .play-chip:hover {
        border-color: var(--tblr-primary);
        color: var(--tblr-primary);
    }

    .play-chip.is-active,
    .play-chip.is-active:hover {
        background: var(--tblr-primary);
        border-color: var(--tblr-primary);
        color: #fff;
    }

.play-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem;
    border-radius: 14px;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.play-tab {
    flex: 1 1 0;
    padding: 0.85rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--tblr-body-color);
}

    .play-tab.is-active {
        background: var(--tblr-primary);
        color: #fff;
        box-shadow: 0 6px 16px rgba(var(--tblr-primary-rgb), 0.35);
    }

@media (max-width: 991.98px) {
    .play-pane {
        display: none;
    }

        .play-pane.is-active {
            display: block;
        }

    #play-map {
        height: 65vh;
        min-height: 380px;
    }
}

/* ── Index: hero ──────────────────────────────────────────────── */
.tn-hero {
    background: linear-gradient(rgba(15, 23, 41, 0.85), rgba(15, 23, 41, 0.85)), url('/images/VT_Domes_1000.png') center / cover no-repeat;
    padding: 5rem 0;
    border-radius: 24px;
    color: #fff;
}

.tn-hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.25rem;
}

    .tn-hero-title span {
        color: #ff5c6c;
    }

.tn-hero-sub {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
}

.tn-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 6px solid #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767.98px) {
    .tn-hero {
        margin: 0 -0.75rem; /* matches the container gutter; reaches both screen edges */
        border-radius: 0;
        padding: 3rem 0;
    }

    .tn-hero-title {
        font-size: 2.25rem;
    }

    .tn-hero-image {
        border-width: 4px;
        border-radius: 12px;
    }

    /* Home page: no extra top gap above the hero */
    .page-body.tn-home {
        padding-top: 0;
    }

    body:has(.tn-home) .page-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* ── Index: checklists ────────────────────────────────────────── */
.tn-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

    .tn-checklist li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.0625rem;
        color: var(--tblr-body-color);
    }

        .tn-checklist li::before {
            content: "✓";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
            font-weight: 700;
            flex-shrink: 0;
        }

.tn-checklist-light li {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Index: videos ────────────────────────────────────────────── */
.video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

    .video-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        border-color: var(--tblr-primary);
    }

.video-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease-out;
}

.video-card:hover .video-card-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.video-card-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--tblr-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease-out, background 0.2s ease-out;
}

    .video-card-play svg {
        margin-left: 4px;
    }

.video-card:hover .video-card-play {
    transform: scale(1.1);
}

.video-card-info {
    padding: 1rem 1.25rem;
}

.video-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--tblr-body-color);
    margin-bottom: 0.25rem;
}

.video-card-meta {
    font-size: 0.875rem;
    color: var(--tblr-secondary);
}

/* ── Index: stats (unverified in use; check before removing) ──── */
.trusted-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tblr-body-color);
    max-width: 900px;
    margin: 0 auto;
}

.trusted-stat {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--tblr-bg-surface);
    border-radius: 16px;
    border: 1px solid var(--tblr-border-color);
    height: 100%;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

    .trusted-stat:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
        border-color: var(--tblr-primary);
    }

.trusted-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--tblr-body-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--tblr-primary) 0%, var(--tblr-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trusted-stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tblr-body-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 767.98px) {
    .trusted-heading {
        font-size: 1.875rem;
    }

    .trusted-stat-number {
        font-size: 2.75rem;
    }
}

/* ── Index: sections ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .tn-section {
        padding: 3.5rem 0;
    }

    .tn-section-title {
        font-size: 1.875rem;
    }
}

/* ── Index: logo strip (ready for approved logos) ─────────────── */
.tn-logos {
    padding: 3rem 0;
    border-bottom: 1px solid var(--tblr-border-color);
}

.tn-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.tn-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 172px;
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
}

    .tn-logo-item img {
        max-height: 148px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: 0.75;
        transition: filter 0.2s, opacity 0.2s;
    }

    .tn-logo-item:hover img {
        filter: none;
        opacity: 1;
    }

/* ── Index: final call to action ──────────────────────────────── */
.tn-cta {
    padding: 5rem 1.5rem;
    margin: 0 0 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--tblr-primary) 0%, #8b0033 100%);
    color: #fff;
}

    .tn-cta h2 {
        font-size: 2.5rem;
        font-weight: 800;
        color: #fff;
    }

    .tn-cta p {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.85);
    }

@media (max-width: 767.98px) {
    .tn-cta h2 {
        font-size: 1.875rem;
    }
}

/* ── Buzzers section (unverified in use; check before removing) ── */
.buzzers-section {
    background: linear-gradient(180deg, var(--tblr-bg-surface-secondary) 0%, var(--tblr-bg-surface) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--tblr-border-color);
    border-bottom: 1px solid var(--tblr-border-color);
}

.buzzers-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tblr-body-color);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .buzzers-heading {
        font-size: 1.875rem;
    }
}

/* ── Features (unverified in use; check before removing) ──────── */
.features-section {
    background: linear-gradient(180deg, var(--tblr-bg-surface-secondary) 0%, var(--tblr-bg-surface) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--tblr-border-color);
    border-bottom: 1px solid var(--tblr-border-color);
}

.features-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tblr-body-color);
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        border-color: var(--tblr-primary);
    }

.feature-card-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.feature-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.feature-card:hover .feature-card-image {
    transform: scale(1.05);
}

.feature-card-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    backdrop-filter: blur(8px);
}

.feature-card:hover .feature-card-zoom {
    opacity: 1;
    transform: scale(1.05);
}

.feature-card-body {
    padding: 1.5rem;
    flex: 1 1 auto;
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tblr-body-color);
    margin-bottom: 0.5rem;
}

.feature-card-desc {
    font-size: 0.9375rem;
    color: var(--tblr-secondary);
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .features-heading {
        font-size: 1.875rem;
    }
}

/* ── Venue pages (unverified in use; check before removing) ───── */
.venue-section {
    background: linear-gradient(180deg, var(--tblr-bg-surface-secondary) 0%, var(--tblr-bg-surface) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--tblr-border-color);
    border-bottom: 1px solid var(--tblr-border-color);
}

.venue-hero-heading {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--tblr-body-color);
    max-width: 900px;
    margin: 0 auto;
}

.venue-feature-row {
    padding: 1rem 0;
}

.venue-feature-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tblr-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.venue-feature-eyebrow-center {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
}

.venue-feature-heading {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tblr-body-color);
    margin-bottom: 1.25rem;
}

.venue-feature-text {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--tblr-secondary);
    margin-bottom: 1.25rem;
}

    .venue-feature-text:last-child {
        margin-bottom: 0;
    }

.venue-feature-image-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.venue-feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.venue-feature-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--tblr-bg-surface);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--tblr-border-color);
}

.venue-feature-badge-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tblr-primary);
    line-height: 1;
}

.venue-feature-badge-label {
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
    margin-top: 0.25rem;
}

.quiz-type-pill {
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.2s ease-out, border-color 0.2s ease-out;
    height: 100%;
}

    .quiz-type-pill:hover {
        transform: translateY(-2px);
        border-color: var(--tblr-primary);
    }

.quiz-type-pill-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.quiz-type-pill-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tblr-body-color);
}

.venue-format-card {
    background: linear-gradient(135deg, var(--tblr-primary) 0%, #8b0033 100%);
    border-radius: 24px;
    padding: 3rem;
    color: white;
    box-shadow: 0 16px 48px rgba(230, 33, 84, 0.2);
}

.venue-format-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.venue-format-heading {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: white;
}

.venue-format-text {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.venue-format-stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: white;
    margin-bottom: 0.5rem;
}

.venue-format-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 767.98px) {
    .venue-hero-heading {
        font-size: 2rem;
    }

    .venue-feature-heading {
        font-size: 1.5rem;
    }

    .venue-format-card {
        padding: 2rem 1.5rem;
    }

    .venue-format-heading {
        font-size: 1.75rem;
    }

    .venue-format-stat-number {
        font-size: 2.25rem;
    }
}

/* ── Story (unverified in use; check before removing) ─────────── */
.story-section {
    background: linear-gradient(180deg, var(--tblr-bg-surface) 0%, var(--tblr-bg-surface-secondary) 100%);
    border-top: 1px solid var(--tblr-border-color);
    border-bottom: 1px solid var(--tblr-border-color);
}

.story-image-wrap {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.story-heading {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--tblr-body-color);
    margin-bottom: 1.5rem;
}

.story-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--tblr-secondary);
    margin-bottom: 1.25rem;
}

.story-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tblr-border-color);
}

.story-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tblr-primary);
    line-height: 1;
}

.story-stat-label {
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
    .story-heading {
        font-size: 1.875rem;
    }

    .story-stats {
        gap: 1.5rem;
    }
}

/* ── Hardware (unverified in use; check before removing) ──────── */
.hardware-section {
    background: linear-gradient(180deg, var(--tblr-bg-surface-secondary) 0%, var(--tblr-bg-surface) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--tblr-border-color);
    border-bottom: 1px solid var(--tblr-border-color);
}

.hardware-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tblr-body-color);
    max-width: 900px;
    margin: 0 auto;
}

.hardware-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tblr-border-color);
}

.hardware-spec {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
    flex: 1 1 240px;
}

.hardware-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--tblr-blue);
    flex-shrink: 0;
}

.hardware-spec-icon-alt {
    background: rgba(25, 135, 84, 0.1);
    color: var(--tblr-green);
}

.hardware-spec-label {
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hardware-spec-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tblr-body-color);
}

@media (max-width: 767.98px) {
    .hardware-heading {
        font-size: 1.875rem;
    }
}

/* ── Contact: enquiry type cards ──────────────────────────────── */
.tn-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tn-type-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tn-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.25rem;
    height: 100%;
    border: 2px solid var(--tblr-border-color);
    border-radius: 16px;
    background: var(--tblr-bg-surface);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

    .tn-type-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

.tn-type-input:checked + .tn-type-card {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
}

.tn-type-input:focus-visible + .tn-type-card {
    outline: 3px solid var(--tblr-primary);
    outline-offset: 2px;
}

.tn-type-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.tn-type-title {
    font-weight: 700;
    color: var(--tblr-body-color);
}

.tn-type-desc {
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .tn-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .tn-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Admin helpers ────────────────────────────────────────────── */
.bulk-assign-bar {
    border-left: 4px solid var(--tblr-primary);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

[data-bs-theme="dark"] .table .badge {
    color: #fff !important;
}

[data-bs-theme="light"] .table .badge {
    color: #000 !important;
}

:not([data-bs-theme="dark"]) .card-header-light {
    background-color: #c42935 !important;
    color: #fff !important;
    border-bottom-color: #a42029 !important;
}

    :not([data-bs-theme="dark"]) .card-header-light .card-title,
    :not([data-bs-theme="dark"]) .card-header-light h3,
    :not([data-bs-theme="dark"]) .card-header-light .text-secondary,
    :not([data-bs-theme="dark"]) .card-header-light a {
        color: #fff !important;
    }

    :not([data-bs-theme="dark"]) .card-header-light .icon {
        color: #fff !important;
        stroke: #fff !important;
    }

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .tn-live-dot {
        animation: none;
    }

    .tn-card {
        transition: none;
    }

    .tn-status {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .tn-hero {
        margin: 0 -0.75rem;
        border-radius: 0;
        padding: 3rem 0;
    }

    .tn-hero > .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tn-hero-title {
        font-size: 2.25rem;
    }

    .tn-hero-image {
        border-width: 4px;
        border-radius: 12px;
    }

    .page-body.tn-home {
        padding-top: 0;
    }

    body:has(.tn-home) .page-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

