/* ==========================================================================
   site-polish.css — shared visual layer, loaded LAST on every page so it
   sits on top of each page's inline <style>. Delete the <link> to revert.
   ========================================================================== */
:root {
    --tts-blue: #0d6efd;
    --tts-blue-hover: #0b5ed7;
    --tts-gold: #ffc107;
    --tts-surface: #161a1e;
    --tts-surface-2: #1c2127;
    --tts-line: rgba(255, 255, 255, 0.08);
    --tts-radius: 12px;
    --tts-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
::selection { background: var(--tts-gold); color: #111; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--tts-gold) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

/* Slim dark scrollbars */
* { scrollbar-color: #3a424c transparent; }

/* ---------- NAVBAR: frosted glass + shadow once scrolled ---------- */
#global-navbar.navbar {
    background-color: rgba(18, 21, 26, 0.97) !important;
    border-bottom: 1px solid var(--tts-line) !important;
    transition: box-shadow .25s ease, background-color .25s ease;
}
#global-navbar.is-scrolled {
    background-color: rgba(14, 17, 21, 0.99) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
#global-navbar .navbar-brand img { transition: transform .25s ease; }
#global-navbar .navbar-brand:hover img { transform: scale(1.04); }
#global-navbar .dropdown-menu {
    border: 1px solid var(--tts-line) !important;
    border-radius: 10px;
    box-shadow: var(--tts-shadow);
    padding: .4rem;
}
#global-navbar .dropdown-item-text { border-radius: 6px; }

/* ---------- BUTTONS: readable text + consistent feel ---------- */
.btn { border-radius: 8px; }
.btn-primary, .btn-primary:focus { color: #fff !important; }
.btn-primary:hover {
    background-color: var(--tts-blue-hover) !important;
    border-color: var(--tts-blue-hover) !important;
    color: #fff !important;
}
.btn-outline-light:hover { color: #fff !important; }
.btn:active { transform: translateY(1px); }

/* ---------- CARDS: gentle lift on hover ---------- */
.inventory-swipe-card, .dealer-card, .category-card, .review-clean-card,
.gallery-slide-card .inner-card-wrapper {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (hover: hover) {
    .inventory-swipe-card:hover, .dealer-card:hover, .category-card:hover,
    .gallery-slide-card .inner-card-wrapper:hover {
        transform: translateY(-4px);
        box-shadow: var(--tts-shadow);
        border-color: rgba(13, 110, 253, 0.45) !important;
    }
}

/* "Photo coming soon" placeholder on inventory cards */
.large-spec-img-blank { border: 0 !important; background: none !important; padding: 0 !important; }
.photo-soon {
    width: 100%;
    height: 100%;
    min-height: 130px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(13, 110, 253, 0.18), transparent 65%),
        #151920;
    border: 1px dashed rgba(255, 255, 255, 0.14);
}
.photo-soon img {
    width: 58%; max-width: 170px; max-height: 55%;
    height: auto; object-fit: contain; opacity: .9;
    border-radius: 0 !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- GOOGLE BUSINESS (home page) ---------- */
.gbp-section {
    background:
        radial-gradient(900px 400px at 0% 0%, rgba(13, 110, 253, 0.12), transparent 60%),
        radial-gradient(700px 360px at 100% 100%, rgba(255, 193, 7, 0.08), transparent 60%),
        #111418;
    border-top: 1px solid var(--tts-line);
    border-bottom: 1px solid var(--tts-line);
}
.gbp-card {
    background: linear-gradient(180deg, var(--tts-surface-2), var(--tts-surface));
    border: 1px solid var(--tts-line);
    border-radius: var(--tts-radius);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--tts-shadow);
}
.gbp-g { width: 28px; height: 28px; flex: 0 0 auto; }
.gbp-eyebrow {
    font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.gbp-score { font-family: var(--font-heading, 'Montserrat', sans-serif); font-size: 3.4rem; font-weight: 700; line-height: 1; color: #fff; }
.gbp-stars { color: #fbbc04; letter-spacing: 2px; }
.gbp-meta li { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; color: rgba(255, 255, 255, 0.75); font-size: .92rem; }
.gbp-meta i { color: var(--tts-blue); width: 1rem; margin-top: .2rem; text-align: center; }
.gbp-meta a { color: #fff; text-decoration: none; }
.gbp-meta a:hover { color: var(--tts-gold); }
.gbp-open { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.gbp-open::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gbp-open.is-open { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.gbp-open.is-closed { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.gbp-actions .btn { font-size: .8rem; padding: .6rem .9rem; }
.btn-google { background: #fff; color: #1f2937 !important; border: 0; }
.btn-google:hover { background: #f1f3f4; color: #111 !important; }

.gbp-review {
    background: var(--tts-surface);
    border: 1px solid var(--tts-line);
    border-radius: var(--tts-radius);
    padding: 1.25rem 1.35rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: transform .25s ease, border-color .25s ease;
}
@media (hover: hover) { .gbp-review:hover { transform: translateY(-3px); border-color: rgba(251, 188, 4, 0.35); } }
.gbp-review p { color: rgba(255, 255, 255, 0.78); font-size: .95rem; line-height: 1.55; margin: 0; flex-grow: 1; }
.gbp-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700; color: #fff; font-size: .95rem; flex: 0 0 auto;
}
.gbp-name { color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.gbp-sub { color: rgba(255, 255, 255, 0.45); font-size: .75rem; }

/* Store hours: highlight today (class set by navbar.js) */
.hours-today { color: #fff !important; font-weight: 700; }
.hours-today span:first-child::after {
    content: 'Today'; margin-left: .5rem; font-size: .65rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: #111; background: var(--tts-gold); padding: .1rem .4rem; border-radius: 4px;
}

/* ---------- SHARED FOOTER (injected by navbar.js) ---------- */
.site-footer {
    background: #0e1114 !important;
    border-top: 1px solid var(--tts-line);
    color: rgba(255, 255, 255, 0.62);
    font-size: .92rem;
}
.site-footer h6 {
    color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--tts-gold); }
.site-footer .footer-links li { margin-bottom: .45rem; }
.site-footer .footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--tts-line);
    color: #fff; margin-right: .4rem; transition: background .2s ease, transform .2s ease;
}
.site-footer .footer-social a:hover { background: var(--tts-blue); color: #fff; transform: translateY(-2px); }
.site-footer .footer-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.site-footer .footer-bottom { border-top: 1px solid var(--tts-line); font-size: .8rem; color: rgba(255, 255, 255, 0.4); }
.site-footer .footer-google {
    display: inline-flex; align-items: center; gap: .6rem;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--tts-line);
    border-radius: 10px; padding: .55rem .8rem; color: #fff !important;
}
.site-footer .footer-google:hover { border-color: rgba(251, 188, 4, 0.5); }
.site-footer .footer-google svg { width: 20px; height: 20px; }
@media (max-width: 767.98px) {
    .site-footer { text-align: center; }
    .site-footer .footer-hours { max-width: 280px; margin-left: auto; margin-right: auto; }
}
.gbp-actions .d-flex > .btn { min-width: 140px; white-space: nowrap; }

/* ---------- HOME HERO (v2) ---------- */
#hero-carousel-bg {
    height: auto !important;
    min-height: max(560px, 74vh);
    display: grid;
    place-items: center;
    overflow: hidden;
}
#hero-carousel-bg #heroSlides { position: absolute; inset: 0; }
#hero-carousel-bg::after {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(11, 13, 16, 0.2) 0%, rgba(11, 13, 16, 0) 40%, rgba(11, 13, 16, 0.85) 100%);
}
#hero-carousel-bg .carousel-bg-img { filter: brightness(0.5) saturate(1.05); }

.hero-text-overlay.hero-v2 {
    position: relative; top: auto; left: auto; transform: none;
    z-index: 2; width: 100%; max-width: 980px;
    padding: 5rem 1rem 3.5rem;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--tts-gold);
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.35);
    padding: .4rem .9rem; border-radius: 999px;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 3.4rem);
    line-height: 1.1;
    margin: 0 auto 1rem;
    max-width: 22ch;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 46ch; margin: 0 auto 2rem;
}
.hero-v2 .btn-lg { padding-top: .8rem; padding-bottom: .8rem; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; align-items: center; }
.hero-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem .9rem; border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600;
    transition: border-color .2s ease, background .2s ease;
}
.hero-chip i { color: var(--tts-gold); }
.hero-chip:hover { color: #fff; border-color: var(--tts-gold); background: rgba(0, 0, 0, 0.5); }
.hero-chips .gbp-open { font-size: .82rem; padding: .5rem .9rem; }
.hero-chips .gbp-open.is-open { background: rgba(6, 40, 30, 0.7); }
.hero-chips .gbp-open.is-closed { background: rgba(50, 12, 12, 0.7); }

/* ---------- HOME: WHAT WE DO GRID (compact) ---------- */
.services-section {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #0f1215 0%, #0b0d10 100%);
    border-bottom: 1px solid var(--tts-line);
}
.services-section h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.svc-carousel { position: relative; max-width: 960px; margin: 0 auto; }
.svc-track {
    --svc-per-view: 3;
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--svc-per-view) - 1) * .75rem) / var(--svc-per-view));
    column-gap: .75rem;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 2px; outline: none;
}
.svc-track::-webkit-scrollbar { display: none; }
.svc-track > .svc-card { scroll-snap-align: start; }
.svc-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--tts-line); background: rgba(14, 17, 21, 0.9); color: #fff;
    box-shadow: var(--tts-shadow); transition: background .2s ease, color .2s ease;
}
.svc-nav:hover { background: var(--tts-gold); color: #111; }
.svc-prev { left: -19px; }
.svc-next { right: -19px; }
@media (max-width: 991.98px) { .svc-track { --svc-per-view: 2.3; } .svc-prev { left: 4px; } .svc-next { right: 4px; } }
.svc-card {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 2 / 1;
    border-radius: 10px;
    border: 1px solid var(--tts-line);
    background: #1a1f25;
    text-decoration: none; color: #fff;
    isolation: isolate;
}
.svc-card img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
    filter: brightness(.75);
}
.svc-card::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.88) 100%);
}
.svc-body { position: absolute; left: .85rem; right: 2.6rem; bottom: .7rem; display: flex; flex-direction: column; }
.svc-title { font-family: var(--font-heading, 'Montserrat', sans-serif); font-weight: 700; font-size: .98rem; line-height: 1.2; }
.svc-sub { font-size: .74rem; color: rgba(255, 255, 255, 0.72); margin-top: .1rem; }
.svc-arrow {
    position: absolute; right: .7rem; bottom: .75rem;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-size: .7rem;
    background: rgba(255, 255, 255, 0.14); color: #fff;
    transition: background .25s ease, transform .25s ease;
}
.svc-card:hover { color: #fff; border-color: rgba(255, 193, 7, 0.5); }
.svc-card:hover img { transform: scale(1.06); filter: brightness(.9); }
.svc-card:hover .svc-arrow { background: var(--tts-gold); color: #111; transform: translateX(3px); }
@media (max-width: 767.98px) {
    .services-section { padding: 2rem 0; }
    .svc-track { --svc-per-view: 1.6; column-gap: .6rem; }
    .svc-card { aspect-ratio: 16 / 11; border-radius: 8px; }
    .svc-title { font-size: .92rem; }
    .svc-arrow { display: none; }
    .svc-nav { width: 34px; height: 34px; }
}

/* ==========================================================================
   MOBILE-FRIENDLY & PHOTO FIXES (all pages)
   ========================================================================== */
/* Never let a stray element create sideways scrolling on phones */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@supports not (overflow: clip) { html { overflow-x: hidden; } body { overflow-x: visible !important; } }
img, video, iframe { max-width: 100%; }
a, button { -webkit-tap-highlight-color: rgba(255, 193, 7, 0.15); }

/* Logo keeps its real proportions (was squashed into a fixed 100x46 box) */
#global-navbar .navbar-brand img { height: 46px; width: auto; }
@media (max-width: 575.98px) { #global-navbar .navbar-brand img { height: 40px; } }

/* Bootstrap's widest gutter (.g-5) is wider than a phone's side padding */
@media (max-width: 575.98px) {
    .g-5, .gx-5 { --bs-gutter-x: 1.5rem; }
    .g-4, .gx-4 { --bs-gutter-x: 1.25rem; }
}

/* Framed slideshows: slides fill the frame instead of a hero-sized 600px */
.upholstery-slider-frame .carousel-item,
.paint-slider-frame .carousel-item { height: 100% !important; min-height: 0 !important; }
.upholstery-slider-frame .carousel-item img,
.paint-slider-frame .carousel-item img { width: 100%; height: 100%; object-fit: cover; }

/* Photos always fill their boxes edge to edge */
.large-spec-img-container, .dealer-img-box { padding: 0 !important; overflow: hidden; }
.large-spec-img-container img, .dealer-img-box > img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0 !important; }

/* Category tiles: 4:3 at every width so square photos aren't cut in half */
.category-card { aspect-ratio: 4 / 3 !important; }
@media (max-width: 575.98px) {
    .category-card .cat-title { font-size: 1rem !important; padding: 0 .5rem; }
}
/* Product photo boxes keep a consistent shape at every width */
.product-img-container { height: auto !important; aspect-ratio: 4 / 3; }

/* Bigger touch targets: slideshow dots and small icon links */
.carousel-indicators [data-bs-target] { position: relative; }
.carousel-indicators [data-bs-target]::before { content: ''; position: absolute; inset: -12px -6px; }
.carousel-control-prev, .carousel-control-next { min-width: 44px; }
.hero-socials a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }

/* Minimum readable size for small labels and badges */
.spec-label, .role-badge, .list-inline-tag, .mini-badge, .dealer-badge, .photo-soon span {
    font-size: max(0.72rem, 11.5px) !important;
}

/* iPhone zooms the page when a form field's text is under 16px — prevent it */
@media (max-width: 767.98px) {
    input, select, textarea, .form-control, .form-select { font-size: 16px !important; }
}

/* Phones: comfortable section spacing and full-width primary buttons */
@media (max-width: 575.98px) {
    section.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .modal-dialog { margin: .75rem; }
}
/* Home hero slides fill the hero at every size (photos stay centered) */
#hero-carousel-bg .carousel-item { height: 100% !important; min-height: 0 !important; }

/* ---------- PHONE ACTION BAR (injected by navbar.js) ---------- */
.mobile-action-bar { display: none; }
@media (max-width: 767.98px) {
    body.has-mobile-action-bar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    .mobile-action-bar {
        display: flex;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1055;
        height: calc(60px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgb(14, 17, 21);
        border-top: 1px solid var(--tts-line);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
    }
    .mobile-action-bar.has-contact { padding-right: 33.334%; }
    .mobile-action-bar a {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        color: #fff; text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
        border-right: 1px solid var(--tts-line);
    }
    .mobile-action-bar a i { font-size: 1.1rem; color: var(--tts-gold); }
    .mobile-action-bar a:active { background: rgba(255, 255, 255, 0.06); }

    /* The page's own Contact / Quote button becomes the bar's right third */
    .floating-contact-btn {
        right: 0 !important; bottom: 0 !important;
        width: 33.334%; height: calc(60px + env(safe-area-inset-bottom));
        padding: 0 0 env(safe-area-inset-bottom) !important;
        border-radius: 0 !important; box-shadow: none !important;
        flex-direction: column; justify-content: center; gap: 3px !important;
        font-size: .68rem !important; letter-spacing: .03em; line-height: 1.15;
        text-align: center; padding-left: .4rem !important; padding-right: .4rem !important;
        z-index: 1056 !important; transform: none !important;
    }
    .floating-contact-btn i { font-size: 1.1rem !important; }
    body.modal-open .mobile-action-bar { display: none; }
}

/* Hero on phones: tighter, buttons on one line, chips side by side */
@media (max-width: 575.98px) {
    .hero-text-overlay.hero-v2 { padding: 3rem .5rem 2.5rem; }
    .hero-eyebrow { font-size: .66rem; letter-spacing: .1em; margin-bottom: 1rem; }
    .hero-sub { margin-bottom: 1.5rem; font-size: .98rem; }
    .hero-v2 .btn-lg { font-size: .95rem; padding: .75rem 1rem; }
    .hero-chips { gap: .45rem; }
    .hero-chip, .hero-chips .gbp-open { font-size: .78rem; padding: .4rem .75rem; }
    .hero-socials { margin-top: 1.25rem !important; }
}
.site-footer .footer-credit { font-size: .72rem; color: rgba(255, 255, 255, 0.35); }
.site-footer .footer-credit a { color: rgba(255, 255, 255, 0.55); }

/* ---------- HOME: section headers, veterans strip, topper video ---------- */
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head .gbp-eyebrow { display: block; color: var(--tts-gold); margin-bottom: .35rem; }

.vet-banner { background: #0e1114; border-top: 1px solid var(--tts-line); border-bottom: 1px solid var(--tts-line); }
.vet-card {
    display: flex; align-items: center; gap: 1rem;
    max-width: 900px; margin: 0 auto;
    padding: 1rem 1.25rem; border-radius: var(--tts-radius);
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.14), rgba(255, 193, 7, 0.08));
    border: 1px solid rgba(255, 193, 7, 0.28);
}
.vet-icon {
    width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; font-size: 1.2rem;
    background: rgba(255, 193, 7, 0.15); color: var(--tts-gold);
}
.vet-title { font-family: var(--font-heading, 'Montserrat', sans-serif); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.vet-sub { color: rgba(255, 255, 255, 0.65); font-size: .9rem; }
.vet-deal {
    flex: 0 0 auto; font-family: var(--font-heading, 'Montserrat', sans-serif); font-weight: 700;
    background: var(--tts-gold); color: #111; padding: .45rem .9rem; border-radius: 8px; font-size: 1.05rem;
}
@media (max-width: 575.98px) {
    .vet-card { flex-wrap: wrap; text-align: left; gap: .75rem; }
    .vet-title { font-size: .92rem; }
    .vet-sub { font-size: .82rem; }
}

/* Topper video: no box — the truck sits right on the section, edges fade out */
.video-showcase-frame {
    aspect-ratio: 1280 / 676 !important;
    border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; background: transparent !important;
    overflow: visible !important;
}
.video-showcase-frame { --video-edge: #191d23; position: relative; }
.video-showcase-frame video { object-fit: contain !important; }
/* Static edge fade laid over the video (cheap to draw, unlike a live mask).
   --video-edge matches the section colour behind the video on each page. */
.video-showcase-frame::after {
    content: ''; position: absolute; inset: -1px; pointer-events: none;
    background: radial-gradient(ellipse 72% 70% at 50% 52%, transparent 60%, var(--video-edge) 100%);
}
#sec-fiberglass .video-showcase-frame { --video-edge: #2a3036; }
/* Let the truck render a little larger than its column on wide screens */
@media (min-width: 1200px) { #are-toppers .video-showcase-frame { transform: scale(1.1); transform-origin: left center; } }

/* ---------- SEO content blocks: guides, tables, FAQ, related links ---------- */
.h1-sub {
    display: block; margin-top: .6rem;
    font-size: clamp(.8rem, 1.5vw, 1rem) !important; font-weight: 600 !important;
    letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
    color: var(--tts-gold) !important; text-shadow: none;
    font-family: var(--font-body, 'Roboto', sans-serif);
}
.seo-section { background: linear-gradient(180deg, #0f1215 0%, #0b0d10 100%); border-top: 1px solid var(--tts-line); }
.seo-section .gbp-eyebrow { color: var(--tts-gold); }
.seo-section h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.seo-lead { color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; max-width: 70ch; margin-bottom: 1.5rem; }
.seo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.seo-card {
    background: var(--tts-surface); border: 1px solid var(--tts-line); border-radius: var(--tts-radius);
    padding: 1.25rem; transition: border-color .2s ease, transform .2s ease;
}
.seo-card:hover { border-color: rgba(13, 110, 253, 0.45); transform: translateY(-2px); }
.seo-card i { color: var(--tts-gold); font-size: 1.3rem; margin-bottom: .6rem; display: block; }
.seo-card h3 { color: #fff; font-size: 1.02rem; font-weight: 700; margin-bottom: .4rem; }
.seo-card p { color: rgba(255, 255, 255, 0.68); font-size: .92rem; margin: 0; line-height: 1.55; }
.seo-table-wrap { overflow-x: auto; border: 1px solid var(--tts-line); border-radius: var(--tts-radius); margin-bottom: 1.25rem; -webkit-overflow-scrolling: touch; }
.seo-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.seo-table th, .seo-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--tts-line); vertical-align: top; text-align: left; }
.seo-table thead th { background: var(--tts-surface-2); color: #fff; font-family: var(--font-heading, 'Montserrat', sans-serif); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.seo-table tbody th { color: var(--tts-gold); font-weight: 700; white-space: nowrap; }
.seo-table td { color: rgba(255, 255, 255, 0.75); }
.seo-table tbody tr:last-child th, .seo-table tbody tr:last-child td { border-bottom: 0; }
.seo-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.seo-note { color: rgba(255, 255, 255, 0.7); font-size: .95rem; background: rgba(13, 110, 253, 0.08); border-left: 3px solid var(--tts-blue); padding: .8rem 1rem; border-radius: 0 8px 8px 0; }
.seo-note i { color: var(--tts-blue); }

.faq-item { background: var(--tts-surface); border: 1px solid var(--tts-line); border-radius: 10px; margin-bottom: .6rem; overflow: hidden; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.15rem; position: relative;
    color: #fff; font-weight: 700; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 400; color: var(--tts-gold); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] { border-color: rgba(255, 193, 7, 0.3); }
.faq-item p { color: rgba(255, 255, 255, 0.75); padding: 0 1.15rem 1.1rem; margin: 0; line-height: 1.6; }

.seo-related { border-top: 1px solid var(--tts-line); padding-top: 2rem; }
.related-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.related-chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .95rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--tts-line);
    color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600; transition: all .2s ease;
}
.related-chip:hover { background: var(--tts-blue); border-color: var(--tts-blue); color: #fff; }
.local-card {
    display: flex; gap: .9rem; align-items: flex-start;
    background: var(--tts-surface); border: 1px solid var(--tts-line); border-radius: var(--tts-radius);
    padding: 1.1rem 1.2rem; color: rgba(255, 255, 255, 0.72); font-size: .9rem; line-height: 1.6;
}
.local-card i { color: var(--tts-gold); font-size: 1.3rem; margin-top: .2rem; }
.local-card strong { color: #fff; }
.local-card a { color: #fff; text-decoration: none; }
.local-card a:hover { color: var(--tts-gold); }

/* ---------- PHOTO QUALITY: soft-focus section backdrops ----------
   Brand sections on Accessories & Lifts use pre-blurred copies of their photos
   (images/bg/*-blur.jpg), so there is no live blur work while scrolling. */
.vendor-photo-bg::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.glass-panel { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(28, 33, 40, 0.8) !important; }


/* Reserve the navbar's height before navbar.js fills it in (stops the page
   jumping down a few pixels on load) */
#global-navbar { min-height: 67px; }
@media (min-width: 768px) { #global-navbar { min-height: 73px; } }

/* ==========================================================================
   ANIMATIONS: transform/opacity only, play once, never hide content that is
   already above the viewport (navbar.js adds .anim / .in-view)
   ========================================================================== */
@keyframes tts-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tts-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tts-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tts-pop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
    /* Page-load hero entrance (above the fold, runs once) */
    .hero-v2 > *, header h1, header .lead, header p.fs-5, header .btn {
        animation: tts-fade-up .7s cubic-bezier(.2, .7, .2, 1) both;
    }
    .hero-v2 > :nth-child(2), header h1 { animation-delay: .08s; }
    .hero-v2 > :nth-child(3), header p { animation-delay: .18s; }
    .hero-v2 > :nth-child(4), header .btn { animation-delay: .28s; }
    .hero-v2 > :nth-child(5) { animation-delay: .38s; }
    .hero-v2 > :nth-child(6) { animation-delay: .48s; }

    /* Scroll-in items */
    .anim { opacity: 0; transform: translateY(18px); }
    .anim.in-view {
        opacity: 1; transform: none;
        transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
        transition-delay: var(--anim-delay, 0s);
    }
    .anim.in-view.no-anim { transition: none; }

    /* Heading underline draws in */
    .section-heading-accent.anim::after { transform: scaleX(0); transform-origin: left; }
    .section-heading-accent.centered.anim::after { transform-origin: center; transform: translateX(-50%) scaleX(0); }
    .section-heading-accent.anim.in-view::after { transform: scaleX(1); transition: transform .7s .25s cubic-bezier(.2, .7, .2, 1); }
    .section-heading-accent.centered.anim.in-view::after { transform: translateX(-50%) scaleX(1); }

    /* Little extras */
    .vet-card.in-view .vet-deal { animation: tts-pop .7s .5s ease both; }
    .photo-soon img { transition: transform .4s ease, opacity .4s ease; }
    .inventory-swipe-card:hover .photo-soon img, .dealer-card:hover .photo-soon img { transform: scale(1.06); opacity: 1; }
    .btn i, .related-chip { transition: transform .2s ease; }
    .btn:hover .fa-arrow-right, .btn:hover .fa-chevron-right, .btn:hover .fa-external-link-alt { transform: translateX(3px); }
    .seo-card:hover i, .gbp-review:hover .gbp-avatar { animation: tts-pop .5s ease; }
    .faq-item p { animation: tts-fade-in .35s ease; }
}


/* ==========================================================================
   PHOTOS IN THEIR CONTAINERS
   ========================================================================== */
/* Focus points so tiles crop to the subject, not sky or pavement */
img[src$="truck6.jpg"] { object-position: center 45%; }
img[src$="toppertilt.webp"] { object-position: center 58%; }
img[src$="roofrack.jpg"] { object-position: center 40%; }
img[src$="toppercargo.jpeg"] { object-position: center 60%; }

/* Brand badges keep their shape (ValueGuard was stretched) */
.product-logo { object-fit: contain !important; }

/* Inventory & marketplace photo boxes: 4:3 so products show larger and
   every card in a row lines up */
.large-spec-img-container,
.inventory-swipe-card .large-spec-img-blank { height: auto !important; aspect-ratio: 4 / 3; }

/* ==========================================================================
   LIFTS PAGE: calmer, easier-to-read layout
   ========================================================================== */
/* The page's own slide-in script is replaced by the shared animation system */
.reveal-up, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }

/* Hero: sharp photo under a clean gradient */
.page-lifts .hero-section-clean { padding: 110px 0 80px !important; background-position: center 40% !important; }
.page-lifts .hero-section-clean::before {
    background: linear-gradient(180deg, rgba(9, 11, 13, 0.55) 0%, rgba(9, 11, 13, 0.72) 60%, rgba(11, 13, 16, 0.96) 100%) !important;
}
.page-lifts .hero-section-clean::after { display: none; }
.page-lifts .hero-section-clean p.fs-5 { color: rgba(255, 255, 255, 0.82) !important; }

/* Brand sections: solid alternating backgrounds instead of blurred photos */
.page-lifts section.vendor-photo-bg { background: #101317 !important; border-color: rgba(255, 255, 255, 0.06) !important; padding: 4rem 0 !important; }
.page-lifts section.vendor-photo-bg:nth-of-type(even) { background: #151a20 !important; }
.page-lifts section.vendor-photo-bg::before, .page-lifts section.vendor-photo-bg::after { display: none !important; }

/* Brand logos: no tile, shown large straight on the dark background */
.page-lifts .brand-logo-container {
    background: none !important; box-shadow: none !important; border-radius: 0;
    padding: 0 !important; min-height: 240px !important; height: 100% !important; aspect-ratio: auto;
}
.page-lifts .brand-logo-container img {
    width: 100% !important; height: auto !important; max-height: 240px; max-width: 340px;
    object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

/* Brand card: solid, roomy, readable */
.page-lifts .brand-detail-card {
    background: #1b2027 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 16px !important; padding: 32px 36px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.page-lifts .brand-detail-card h3 { letter-spacing: .02em; font-size: 1.45rem !important; }
.page-lifts .brand-detail-card .badge { font-size: .7rem; letter-spacing: .06em; padding: .45em .75em; border-radius: 6px; }
.page-lifts .brand-detail-card p {
    color: #c9d0d8 !important; font-size: 1rem !important; line-height: 1.7; max-width: 68ch;
}
.page-lifts .brand-detail-card p strong { color: #fff; }

/* Bigger, rounded product thumbnails */
.page-lifts .vendor-photo-strip { gap: 12px; margin-top: 18px; }
.page-lifts .vendor-photo-strip img {
    width: 140px !important; height: 100px !important; border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* "View available inventory" as a quiet secondary button */
.page-lifts .inventory-toggle-btn {
    background: transparent !important; border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #e6e9ee !important; border-radius: 999px !important; margin-top: .5rem;
}
.page-lifts .inventory-toggle-btn:hover { border-color: var(--tts-gold) !important; color: var(--tts-gold) !important; }

/* Info cards (leveling vs lift) */
.page-lifts .info-card { background: #1b2027 !important; border-radius: 16px !important; border: 1px solid rgba(255, 255, 255, 0.07) !important; padding: 2rem !important; }
.page-lifts .info-card p, .page-lifts .info-card li { color: #c9d0d8 !important; line-height: 1.65; }

@media (max-width: 767.98px) {
    .page-lifts section.vendor-photo-bg { padding: 2.75rem 0 !important; }
    .page-lifts .brand-logo-container { min-height: 0 !important; margin: 0 auto .75rem; }
    .page-lifts .brand-logo-container img { max-height: 150px; max-width: 78%; }
    .page-lifts .brand-detail-card { padding: 24px 22px !important; }
    .page-lifts .vendor-photo-strip img { width: calc(50% - 6px) !important; height: 110px !important; }
}

/* ---------- MORE ANIMATION (transform/opacity only) ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* entrance variants (set by navbar.js) */
    .anim.anim-zoom:not(.in-view)  { transform: scale(.94); }
    .anim.anim-left:not(.in-view)  { transform: translateX(-28px); }
    .anim.anim-right:not(.in-view) { transform: translateX(28px); }

    /* photos ease in closer on hover */
    .card-img-holder, .dealer-img-box, .large-spec-img-container, .product-img-container, .img-frame-container { overflow: hidden; }
    .card-img-holder img, .dealer-img-box > img, .large-spec-img-container img, .product-img-container img, .img-frame-container img,
    .category-card img, .svc-card img {
        transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s ease !important;
    }
    .gallery-slide-card:hover .card-img-holder img, .dealer-card:hover .dealer-img-box > img,
    .inventory-swipe-card:hover .large-spec-img-container img, .premium-card:hover .product-img-container img,
    .img-frame-container:hover img, .category-card:hover img { transform: scale(1.07); }

    /* light sweep across main buttons on hover */
    .btn-primary:not(.dropdown-toggle), .btn-warning, .quote-cta-btn, .btn-google, .vendor-shop-btn {
        position: relative; overflow: hidden; isolation: isolate;
    }
    .btn-primary:not(.dropdown-toggle)::after, .btn-warning::after, .quote-cta-btn::after, .btn-google::after, .vendor-shop-btn::after {
        content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
        transform: translateX(0) skewX(-20deg); transition: transform .7s ease;
    }
    .btn-primary:not(.dropdown-toggle):hover::after, .btn-warning:hover::after, .quote-cta-btn:hover::after,
    .btn-google:hover::after, .vendor-shop-btn:hover::after { transform: translateX(420%) skewX(-20deg); }

    /* Lifts: brand logo tiles tilt up slightly on hover */
    .page-lifts .brand-logo-container { transition: transform .35s ease, box-shadow .35s ease !important; }
    .page-lifts .brand-logo-container:hover { transform: translateY(-4px) scale(1.04); }
    .page-lifts .vendor-photo-strip img { transition: transform .35s ease !important; }
    .page-lifts .vendor-photo-strip img:hover { transform: translateY(-3px) scale(1.04); }

    /* Contact button: two gentle nudges a few seconds after load (desktop) */
    @keyframes tts-nudge { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } 60% { transform: translateY(0); } 80% { transform: translateY(-3px); } }
    @media (min-width: 768px) { .floating-contact-btn { animation: tts-nudge 1.2s ease 4s 2 both; } }

    /* Nav links: underline slides in on hover */
    .modern-nav-link:not(.active) { position: relative; }
    .modern-nav-link:not(.active)::before {
        content: ''; position: absolute; left: .65rem; right: .65rem; bottom: .2rem; height: 2px;
        background: var(--nav-hover, #3b82f6); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
    }
    .modern-nav-link:not(.active):hover::before { transform: scaleX(1); }
}

/* ==========================================================================
   COMPACT HEROES (all pages) + mobile polish
   ========================================================================== */
/* Inner-page heroes: padding scales with the screen, no forced heights */
header.hero-section, header.hero-category-section, .merged-hero-section, header.page-hero,
header.hero-section-clean, body > header.py-5 {
    min-height: 0 !important; height: auto !important;
    padding-top: clamp(36px, 6vw, 72px) !important;
    padding-bottom: clamp(32px, 5vw, 60px) !important;
}
.page-lifts .hero-section-clean { padding: clamp(40px, 6.5vw, 76px) 0 clamp(34px, 5vw, 60px) !important; }
/* heroes that centre their text with flexbox keep doing so */
header.hero-section { display: flex; align-items: center; }
header.hero-section > .container { width: 100%; }

/* Hero headlines and intro text sized to the screen */
header h1, .merged-hero-section h1 {
    font-size: clamp(1.75rem, 4.4vw, 2.75rem) !important; line-height: 1.12 !important;
    margin-bottom: .6rem !important;
}
header h1 .h1-sub { font-size: clamp(.72rem, 1.4vw, .9rem) !important; margin-top: .45rem; }
header .lead, header p.fs-5, .merged-hero-section p.fs-5, .merged-hero-section .lead {
    font-size: clamp(.95rem, 1.6vw, 1.1rem) !important; margin-bottom: 1.1rem !important;
}
header .badge, .merged-hero-section .badge { margin-bottom: .6rem !important; }

/* Home hero: shorter overall */
#hero-carousel-bg { min-height: clamp(420px, 60vh, 580px) !important; }
.hero-text-overlay.hero-v2 { padding: 3.25rem 1rem 2.5rem; }
.hero-title { font-size: clamp(1.7rem, 3.6vw, 2.8rem); margin-bottom: .7rem; }
.hero-sub { margin-bottom: 1.4rem; }

@media (max-width: 575.98px) {
    /* home hero on phones */
    #hero-carousel-bg { min-height: 0 !important; }
    .hero-text-overlay.hero-v2 { padding: 2.25rem .25rem 1.75rem; }
    .hero-eyebrow { margin-bottom: .75rem; padding: .3rem .7rem; }
    .hero-title { font-size: 1.62rem; }
    .hero-sub { font-size: .92rem; margin-bottom: 1.1rem; }
    .hero-v2 .d-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem !important; margin-bottom: 1rem !important; }
    .hero-v2 .btn-lg { font-size: .78rem !important; padding: .7rem .4rem !important; white-space: normal; line-height: 1.2; }
    .hero-v2 .hero-socials { display: none; }
    .hero-chip, .hero-chips .gbp-open { font-size: .74rem; padding: .35rem .65rem; }

    /* inner heroes on phones */
    header h1, .merged-hero-section h1 { font-size: 1.6rem !important; }
    header .btn-lg, .merged-hero-section .btn-lg { font-size: .85rem; padding: .6rem 1rem; }
    header .d-flex.gap-3, header .d-grid.gap-3 { gap: .5rem !important; }
}
@media (max-width: 575.98px) {
    /* two hero buttons side by side instead of stacked */
    header .d-grid.gap-3:has(> :nth-child(2):last-child) {
        display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem !important; margin-bottom: 1rem !important;
    }
    header .d-grid.gap-3:has(> :nth-child(2):last-child) > .btn {
        padding: .7rem .4rem !important; font-size: .8rem !important; white-space: normal; line-height: 1.2;
    }
    /* Canvas Shop hero: compact contact lines and shortcut buttons */
    header .mb-4 > p.fs-5.fw-bold, header .mb-4 > p.fs-6.fw-bold { font-size: .8rem !important; line-height: 1.6; }
    header .d-flex.flex-wrap.gap-2 > .btn-sm { font-size: .72rem !important; padding: .35rem .65rem !important; }
    header .d-flex.flex-wrap.gap-2 { margin-bottom: .5rem !important; }
    /* category tiles a touch shorter on phones */
    .category-card { aspect-ratio: 16 / 11 !important; }
}
@media (max-width: 575.98px) {
    /* three hero buttons: first full width, other two side by side */
    header :is(.d-flex, .d-grid):has(> .btn:nth-child(3):last-child) {
        display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem !important;
    }
    header :is(.d-flex, .d-grid):has(> .btn:nth-child(3):last-child) > .btn:first-child { grid-column: 1 / -1; }
    header :is(.d-flex, .d-grid):has(> .btn:nth-child(3):last-child) > .btn {
        margin: 0 !important; padding: .65rem .4rem !important; font-size: .8rem !important; width: auto !important;
    }
}
@media (max-width: 575.98px) {
    /* home: staff cards two per row */
    #team .row.g-2 > .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    #team .staff-card { padding: .5rem !important; }
    #team .staff-icon-small { width: 34px !important; height: 34px !important; font-size: .9rem; }
}
@media (max-width: 575.98px) {
    /* home: four quick-link buttons as an even 2x2 grid */
    #team :is(.d-flex, .d-grid):has(> .btn:nth-child(4):last-child) {
        display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem !important;
    }
    #team :is(.d-flex, .d-grid):has(> .btn:nth-child(4):last-child) > .btn {
        margin: 0 !important; width: 100%; padding: .6rem .35rem !important; font-size: .74rem !important; white-space: normal; line-height: 1.2;
    }
}

/* ==========================================================================
   PHONE / COLLAPSED MENU: scrollable, with collapsible submenus
   ========================================================================== */
.nav-sub-toggle { display: none; }
@media (max-width: 767.98px) {
    #global-navbar .navbar-collapse {
        max-height: calc(100dvh - 67px - 60px - env(safe-area-inset-bottom));
        overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    }
}
#global-navbar.nav-force-collapsed .navbar-collapse {
    max-height: calc(100dvh - 73px); overflow-y: auto; overscroll-behavior: contain;
}
@media (max-width: 767.98px) {
    #global-navbar .nav-item.dropdown { display: flex; flex-wrap: wrap; align-items: center; }
    #global-navbar .nav-item.dropdown > .dropdown-toggle { flex: 1; }
    #global-navbar .nav-item.dropdown > .dropdown-toggle::after { display: none; }
    #global-navbar .nav-item.dropdown > .dropdown-menu { flex-basis: 100%; }
    #global-navbar .nav-item.dropdown:not(.sub-open) > .dropdown-menu { display: none !important; }
    #global-navbar .nav-item.dropdown.sub-open > .dropdown-menu { display: block !important; position: static !important; }
    .nav-sub-toggle { display: inline-grid; }
}
#global-navbar.nav-force-collapsed .nav-item.dropdown { display: flex; flex-wrap: wrap; align-items: center; }
#global-navbar.nav-force-collapsed .nav-item.dropdown > .dropdown-toggle { flex: 1; }
#global-navbar.nav-force-collapsed .nav-item.dropdown > .dropdown-toggle::after { display: none; }
#global-navbar.nav-force-collapsed .nav-item.dropdown > .dropdown-menu { flex-basis: 100%; }
#global-navbar.nav-force-collapsed .nav-item.dropdown:not(.sub-open) > .dropdown-menu { display: none !important; }
#global-navbar.nav-force-collapsed .nav-item.dropdown.sub-open > .dropdown-menu { display: block !important; position: static !important; }
#global-navbar.nav-force-collapsed .nav-sub-toggle { display: inline-grid; }
.nav-sub-toggle {
    place-items: center; width: 44px; height: 40px; margin-left: .25rem;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px; color: #fff; font-size: .8rem;
}
.nav-sub-toggle i { transition: transform .25s ease; }
.nav-item.sub-open > .nav-sub-toggle { background: rgba(255, 193, 7, 0.15); border-color: rgba(255, 193, 7, 0.45); color: var(--tts-gold); }
.nav-item.sub-open > .nav-sub-toggle i { transform: rotate(180deg); }
/* Desktop dropdowns: wide enough that items don't wrap */
@media (min-width: 768px) {
    #global-navbar:not(.nav-force-collapsed) .dropdown-menu { min-width: 220px; }
    #global-navbar:not(.nav-force-collapsed) .dropdown-item-text { white-space: nowrap; }
}
