/**
 * Titanium Caravans — Brand Design Tokens & Global Styles
 *
 * These variables and utility classes are available across all
 * Bricks templates and custom elements.
 */

/* ═══════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════ */

:root {
    /* Brand colours */
    --ti-black: #000000;
    --ti-dark: #0a0a0a;
    --ti-dark-alt: #111111;
    --ti-charcoal: #1a1a1a;
    --ti-gold: #c8a96e;
    --ti-gold-light: #d4ba85;
    --ti-white: #ffffff;
    --ti-grey-100: #f5f5f5;
    --ti-grey-200: #eeeeee;
    --ti-grey-300: #dddddd;
    --ti-grey-400: #cccccc;
    --ti-grey-500: #999999;
    --ti-grey-600: #888888;
    --ti-grey-700: #666666;
    --ti-grey-800: #444444;
    --ti-grey-900: #333333;

    /* Typography */
    --ti-font-primary: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ti-font-size-xs: 12px;
    --ti-font-size-sm: 13px;
    --ti-font-size-base: 16px;
    --ti-font-size-md: 18px;
    --ti-font-size-lg: 20px;
    --ti-font-size-xl: 24px;
    --ti-font-size-2xl: 28px;
    --ti-font-size-3xl: 32px;
    --ti-font-size-4xl: 36px;
    --ti-font-size-5xl: 48px;
    --ti-font-size-6xl: 56px;
    --ti-font-size-hero: 72px;

    /* Spacing */
    --ti-space-xs: 8px;
    --ti-space-sm: 12px;
    --ti-space-md: 16px;
    --ti-space-lg: 24px;
    --ti-space-xl: 32px;
    --ti-space-2xl: 48px;
    --ti-space-3xl: 64px;
    --ti-space-4xl: 80px;
    --ti-space-section: 80px;

    /* Layout */
    --ti-container-width: 1280px;
    --ti-content-width: 800px;
    --ti-narrow-width: 640px;

    /* Borders */
    --ti-radius: 4px;
    --ti-radius-none: 0px;

    /* Transitions */
    --ti-transition: 0.3s ease;
}

/* ═══════════════════════════════
   BASE TYPOGRAPHY
   ═══════════════════════════════ */

body {
    font-family: var(--ti-font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════
   BUTTON STYLES
   ═══════════════════════════════ */

.ti-btn-primary {
    display: inline-block;
    background-color: var(--ti-gold);
    color: var(--ti-black);
    padding: 14px 40px;
    font-size: var(--ti-font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color var(--ti-transition);
}

.ti-btn-primary:hover {
    background-color: var(--ti-gold-light);
    color: var(--ti-black);
}

.ti-btn-secondary {
    display: inline-block;
    background-color: var(--ti-charcoal);
    color: var(--ti-white);
    padding: 14px 40px;
    font-size: var(--ti-font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color var(--ti-transition);
}

.ti-btn-secondary:hover {
    background-color: var(--ti-grey-900);
}

.ti-btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--ti-gold);
    padding: 14px 40px;
    font-size: var(--ti-font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid var(--ti-gold);
    cursor: pointer;
    transition: all var(--ti-transition);
}

.ti-btn-outline:hover {
    background-color: var(--ti-gold);
    color: var(--ti-black);
}

.ti-btn-outline-white {
    display: inline-block;
    background-color: transparent;
    color: var(--ti-white);
    padding: 14px 40px;
    font-size: var(--ti-font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid var(--ti-white);
    cursor: pointer;
    transition: all var(--ti-transition);
}

.ti-btn-outline-white:hover {
    background-color: var(--ti-white);
    color: var(--ti-black);
}

/* ═══════════════════════════════
   CARD STYLES
   ═══════════════════════════════ */

.ti-card {
    background-color: var(--ti-dark-alt);
    overflow: hidden;
    transition: transform var(--ti-transition);
}

.ti-card:hover {
    transform: scale(1.02);
}

.ti-card-light {
    background-color: var(--ti-white);
    border-radius: var(--ti-radius);
    overflow: hidden;
    transition: box-shadow var(--ti-transition);
}

.ti-card-light:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════
   LABEL / TAG STYLES
   ═══════════════════════════════ */

.ti-label {
    color: var(--ti-gold);
    font-size: var(--ti-font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ti-tag {
    display: inline-block;
    background-color: var(--ti-grey-900);
    color: var(--ti-gold);
    padding: 4px 12px;
    font-size: var(--ti-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════
   SECTION BACKGROUNDS
   ═══════════════════════════════ */

.ti-bg-dark { background-color: var(--ti-dark); }
.ti-bg-charcoal { background-color: var(--ti-charcoal); }
.ti-bg-white { background-color: var(--ti-white); }
.ti-bg-grey { background-color: var(--ti-grey-100); }
.ti-bg-gold { background-color: var(--ti-gold); }

/* ═══════════════════════════════
   DISCLAIMER STYLES
   ═══════════════════════════════ */

.titanium-disclaimer {
    background-color: var(--ti-grey-100);
    border-left: 3px solid var(--ti-gold);
    padding: 16px 20px;
    margin: 24px 0;
    font-size: var(--ti-font-size-sm);
    color: var(--ti-grey-700);
    line-height: 1.6;
}

/* ═══════════════════════════════
   FORM STYLES (supplements Bricks)
   ═══════════════════════════════ */

.brke-form input[type="text"],
.brke-form input[type="email"],
.brke-form input[type="tel"],
.brke-form input[type="date"],
.brke-form select,
.brke-form textarea {
    background-color: var(--ti-grey-100);
    border: 1px solid var(--ti-grey-300);
    padding: 12px 16px;
    font-size: var(--ti-font-size-base);
    font-family: var(--ti-font-primary);
    transition: border-color var(--ti-transition);
    width: 100%;
}

.brke-form input:focus,
.brke-form select:focus,
.brke-form textarea:focus {
    border-color: var(--ti-gold);
    outline: none;
}

/* Dark form variant (quote forms on dark backgrounds) */
.ti-form-dark input[type="text"],
.ti-form-dark input[type="email"],
.ti-form-dark input[type="tel"],
.ti-form-dark select,
.ti-form-dark textarea {
    background-color: var(--ti-charcoal);
    border-color: var(--ti-grey-900);
    color: var(--ti-white);
}

.ti-form-dark label {
    color: var(--ti-grey-400);
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --ti-space-section: 48px;
        --ti-font-size-hero: 40px;
        --ti-font-size-5xl: 32px;
        --ti-font-size-4xl: 28px;
    }
}

/* Specifications accordion (single-caravan template) */
.titanium-specs {
    width: 100%;
}
.titanium-specs__panel {
    border-bottom: 1px solid rgba(250, 251, 252, 0.12);
}
.titanium-specs__panel:first-child {
    border-top: 1px solid rgba(250, 251, 252, 0.12);
}
.titanium-specs__panel summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    color: #fafbfc;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    user-select: none;
}
.titanium-specs__panel summary::-webkit-details-marker {
    display: none;
}
.titanium-specs__chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.titanium-specs__panel[open] .titanium-specs__chevron {
    transform: rotate(180deg);
}
.titanium-specs__list {
    list-style: none;
    padding: 0 0 24px;
    margin: 0;
    columns: 2;
    column-gap: 64px;
}
@media (max-width: 768px) {
    .titanium-specs__list {
        columns: 1;
    }
}
.titanium-specs__item {
    color: rgba(250, 251, 252, 0.85);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    padding: 6px 0 6px 16px;
    position: relative;
    break-inside: avoid;
}
.titanium-specs__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(250, 251, 252, 0.5);
}

/* Carousel navigation buttons — top-right on desktop, inline below heading on mobile.
   Override Bricks' .brxe-container defaults (flex-direction: column, width: 100%)
   that otherwise stack the buttons vertically and stretch the wrapper edge-to-edge. */
.tc-carousel-nav {
    position: absolute;
    top: 80px;
    right: 60px;
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    max-width: none !important;
    gap: 12px;
    z-index: 5;
}
.tc-carousel-nav button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fafbfc;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tc-carousel-nav button:hover {
    border-color: #c8a96e;
    color: #c8a96e;
}
@media (max-width: 768px) {
    .tc-carousel-nav {
        position: static;
        justify-content: flex-start;
        margin: -16px 0 24px;
    }
    .tc-carousel-nav button {
        width: 40px;
        height: 40px;
    }
}

/* Resources page card buttons (used inside query loops where Bricks' dynamic
   link buttons lose their href on 2.3.2). Applied via text-basic inline <a>. */
.titanium-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    padding: 12px 24px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.titanium-card-btn--solid {
    background: #c8a96e;
    color: #000;
}
.titanium-card-btn--solid:hover {
    background: #d9bc7f;
    color: #000;
}
.titanium-card-btn--outline {
    background: transparent;
    color: #c8a96e;
    border: 1px solid #c8a96e;
}
.titanium-card-btn--outline:hover {
    background: #c8a96e;
    color: #000;
}
.titanium-card-btn--arrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #fafbfc;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.titanium-card-btn--arrow:hover {
    color: #c8a96e;
    border-top-color: rgba(200, 169, 110, 0.5);
    border-bottom-color: rgba(200, 169, 110, 0.5);
}
.titanium-card-btn--arrow svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.titanium-card-btn--arrow:hover svg {
    transform: translateX(4px);
}

/* Model page floor-plan list — long linked-plan lists are clipped so the first
   9 plans show in full with the TOP of the next row creeping up and fading into
   the dark section, signalling the list expands inline. floor-plan-more.js
   measures the cut (sets max-height) and reveals the button only when a model
   has >9 plans, so with JS off every plan renders. The mask fades the bottom of
   the clipped grid to transparent (revealing the dark section bg behind). */
.ti-fp-collapsed {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 150px), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 150px), transparent 100%);
}
.brxe-button.ti-fp-more {
    display: none;
    padding: 14px 34px;
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1;
    color: #c8a96e;
    background: transparent;
    border: 1px solid #c8a96e;
    border-radius: 0;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.brxe-button.ti-fp-more:hover {
    background: #c8a96e;
    color: #000;
}
/* Float the button over the faded peek so the next row reads as "more below". */
.brxe-button.ti-fp-more.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 2;
}

/* Brochure cover thumbnail — real image when uploaded, styled placeholder when not.
   Landscape 3:2 frame: full image for landscape source docs, top-anchored crop
   for portrait A4 docs so the title + hero always stays visible. */
.titanium-brochure-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #0f1012;
}
.titanium-brochure-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .4s ease;
}
.titanium-brochure-thumb:hover img {
    transform: scale(1.03);
}
.titanium-brochure-thumb--placeholder {
    background: linear-gradient(150deg, #1a1c1f 0%, #0f1012 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 24px;
    color: #c8a96e;
    text-align: center;
}
.titanium-brochure-thumb--placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(200, 169, 110, 0.1), transparent 60%);
    pointer-events: none;
}
.titanium-brochure-icon {
    color: rgba(200, 169, 110, 0.55);
    position: relative;
    z-index: 1;
}
.titanium-brochure-label {
    color: rgba(250, 251, 252, 0.8);
    font-family: 'General Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 200px;
    position: relative;
    z-index: 1;
}

/* ───────────────────────────────────────────────
   Sticky header (desktop + mobile)
   Bricks wraps the whole header template in <header id="brx-header">.
   The inner hdr001 container is set to position:sticky, but it sticks
   only within #brx-header (a normal-flow block), so it scrolls away.
   Making the #brx-header wrapper itself sticky pins it to the viewport
   on every breakpoint.
   ─────────────────────────────────────────────── */
#brx-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ───────────────────────────────────────────────
   Mobile menu accordion (rendered by [titanium_mobile_menu])
   ─────────────────────────────────────────────── */
.titanium-mm {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.titanium-mm__link,
.titanium-mm__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'General Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.titanium-mm__summary::-webkit-details-marker {
    display: none;
}
.titanium-mm__group {
    border: 0;
}
.titanium-mm__chev {
    width: 10px;
    height: 10px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.7);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 4px;
    margin-top: -4px;
}
.titanium-mm__group[open] > .titanium-mm__summary .titanium-mm__chev {
    transform: rotate(-135deg);
    margin-top: 2px;
}
.titanium-mm__sublist {
    display: flex;
    flex-direction: column;
    padding: 2px 0 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.titanium-mm__sublink {
    display: block;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'General Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}
.titanium-mm__sublink:hover,
.titanium-mm__sublink:focus {
    color: #c8a96e;
}
.titanium-mm__link:hover,
.titanium-mm__summary:hover {
    color: #c8a96e;
}

/* ============================================================
   JOURNAL / BLOG — post meta, card meta, author bio
   ============================================================ */

/* Single-post hero byline ---------------------------------- */
.titanium-post-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    color: rgba(255, 255, 255, 0.78);
    font-family: 'General Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.3px;
    line-height: 1;
}
.titanium-post-meta__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(200, 169, 110, 0.4);
    margin-right: 6px;
}
.titanium-post-meta__author {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
}
.titanium-post-meta__date,
.titanium-post-meta__read-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.titanium-post-meta__sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

/* Archive card meta row ------------------------------------ */
.titanium-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(250, 251, 252, 0.6);
    font-family: 'General Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: auto;
    padding-top: 16px;
}
.titanium-card-meta__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2px;
}
.titanium-card-meta__author {
    color: rgba(250, 251, 252, 0.85);
    font-weight: 500;
}
.titanium-card-meta__sep {
    color: rgba(250, 251, 252, 0.3);
}

/* Author bio card at bottom of single post ----------------- */
.titanium-author-bio {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 36px 40px;
    background: #1a1c1f;
    border-top: 2px solid #c8a96e;
    max-width: 820px;
    margin: 0 auto;
    font-family: 'General Sans', sans-serif;
}
.titanium-author-bio__avatar {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200, 169, 110, 0.3);
}
.titanium-author-bio__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.titanium-author-bio__eyebrow {
    color: #c8a96e;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 2px;
}
.titanium-author-bio__name {
    color: #fafbfc;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}
.titanium-author-bio__text {
    color: rgba(250, 251, 252, 0.72);
    font-size: 15px;
    line-height: 1.65;
    margin: 4px 0 8px;
}
.titanium-author-bio__more {
    color: #c8a96e;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    margin-top: 4px;
    align-self: flex-start;
    transition: color 0.2s ease;
}
.titanium-author-bio__more:hover {
    color: #e2c288;
}

@media (max-width: 640px) {
    .titanium-author-bio {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px 24px;
    }
    .titanium-author-bio__avatar {
        width: 72px;
        height: 72px;
    }
    .titanium-author-bio__name {
        font-size: 20px;
    }
    .titanium-post-meta {
        gap: 8px;
    }
}

/* Category pill in single-post hero ------------------------ */
.titanium-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(200, 169, 110, 0.12);
    border: 1px solid rgba(200, 169, 110, 0.5);
    color: #c8a96e;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.titanium-category-pill:hover {
    background: rgba(200, 169, 110, 0.2);
    border-color: #c8a96e;
}
.titanium-category-pill a {
    color: inherit;
    text-decoration: none;
}

/* First-paragraph drop cap inside the post content ---------- */
.titanium-post-body p:first-of-type::first-letter {
    float: left;
    font-family: 'General Sans', sans-serif;
    font-size: 72px;
    font-weight: 500;
    line-height: 0.9;
    color: #c8a96e;
    padding: 4px 12px 0 0;
    margin-top: 4px;
}
@media (max-width: 640px) {
    .titanium-post-body p:first-of-type::first-letter {
        font-size: 56px;
    }
}


/* Honeypot — hide the field-group containing any input[tabindex="-1"]
   (Bricks marks honeypot inputs with tabindex="-1"). Off-screen rather
   than display:none so screen readers and form validation still see it
   the same way as any other input. */
.brxe-form .form-group:has(input[tabindex="-1"]) {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ──────────────────────────────────────────
   Form card — premium light card containing
   any Bricks form element. Lives on top of
   drone hero sections AND flat dark/light
   sections. Wrap the form in a div with
   class titanium-form-card.
   ────────────────────────────────────────── */
.titanium-form-card {
    background: #fafbfc;
    border-radius: 16px;
    padding: 48px;
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid rgba(20, 21, 23, 0.04);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 8px 24px -8px rgba(0, 0, 0, 0.08),
        0 32px 64px -16px rgba(0, 0, 0, 0.18);
}
@media (max-width: 768px) {
    .titanium-form-card {
        padding: 28px 24px;
    }
}

/* Inputs / selects / textareas inside the card */
.titanium-form-card .brxe-form input[type="text"],
.titanium-form-card .brxe-form input[type="email"],
.titanium-form-card .brxe-form input[type="tel"],
.titanium-form-card .brxe-form input[type="url"],
.titanium-form-card .brxe-form input[type="number"],
.titanium-form-card .brxe-form input[type="date"],
.titanium-form-card .brxe-form input[type="password"],
.titanium-form-card .brxe-form select,
.titanium-form-card .brxe-form textarea {
    background: #f7f6f3;
    border: 1px solid #e1e2e3;
    color: #1a1a1a;
    padding: 16px 18px;
    width: 100%;
    font-family: 'General Sans', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(20, 21, 23, 0.025);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.titanium-form-card .brxe-form input:focus,
.titanium-form-card .brxe-form select:focus,
.titanium-form-card .brxe-form textarea:focus {
    outline: none;
    border-color: #c8a96e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}
.titanium-form-card .brxe-form input::placeholder,
.titanium-form-card .brxe-form textarea::placeholder {
    color: rgba(26, 26, 26, 0.45);
}
.titanium-form-card .brxe-form label {
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}
/* Inter-row gap = Bricks padding-bottom (20px) + my margin-bottom (12px) = 32px
   between an input bottom and the next form-group's label top. Reasonable
   without feeling airy-fairy. */
.titanium-form-card .brxe-form .form-group {
    margin-bottom: 12px;
}

/* Horizontal gutter between paired (50%) fields. Bricks injects per-form
   nth-child width rules at #brxe-<id> .form-group specificity (which beats
   our 3-class selector), so width override needs `!important`. The form
   gets column-gap so the side-by-side pair has a real visual break.
   `[name=...]` (no element prefix) catches both input AND select. */
.titanium-form-card .brxe-form {
    column-gap: 24px;
}
.titanium-form-card .brxe-form .form-group:has([name="first_name"]),
.titanium-form-card .brxe-form .form-group:has([name="last_name"]),
.titanium-form-card .brxe-form .form-group:has([name="state"]),
.titanium-form-card .brxe-form .form-group:has([name="postcode"]),
.titanium-form-card .brxe-form .form-group:has([name="zip"]),
.titanium-form-card .brxe-form .form-group:has([name="city"]),
.titanium-form-card .brxe-form .form-group:has([name="budget"]),
.titanium-form-card .brxe-form .form-group:has([name="how_did_you_hear"]),
.titanium-form-card .brxe-form .form-group:has([name="model_interest"]),
.titanium-form-card .brxe-form .form-group:has([name="chassis_number"]) {
    width: calc(50% - 12px) !important;
}
/* Floor-plan's caravan_model is a select at 50%. Kept in its own rule so
   if `:has(select[…])` is unsupported it doesn't drop the rule above. */
.titanium-form-card .brxe-form .form-group:has(select[name="caravan_model"]) {
    width: calc(50% - 12px) !important;
}
/* MOBILE: every form card on the site sits in a container whose max-width
   doesn't constrain it on phones, so the card ran edge-to-edge. Give it a
   gutter, and stack ALL fields full-width (50% pairs look cramped on a phone).
   One rule covers every form (compare, floor-plan quote, model quote,
   service/warranty, contact). */
@media (max-width: 600px) {
    /* No card side-margin: the section container now provides the 20px gutter
       (global rule below). Margin here would double it up and squish the form.
       :not(#_) bumps specificity above the `:has([name=…])` 50% rules above so
       this wins; without it the half-width pairs stay cramped. */
    .titanium-form-card .brxe-form .form-group:not(#_) { width: 100% !important; }
}

/* MOBILE GUTTER (site-wide). Root cause: many section containers rely on a
   percentage `_maxWidth` (e.g. 90%/92%) for their side gutter, but Bricks'
   percentage max-width doesn't constrain containers on phones here, so their
   text/content ran to the screen edge. Force a real 20px gutter on every
   top-level section container on mobile. `!important` is needed to beat the
   per-container `#brxe-<id>{padding:0}` rules those containers set. Only
   matches DIRECT children of a section (one gutter per section; inner nested
   containers keep their own spacing). Full-bleed bands put their background on
   the SECTION, so this only insets inner content — which is what we want. */
@media (max-width: 600px) {
    .brxe-section > .brxe-container { padding-left: 20px !important; padding-right: 20px !important; }
}
/* Warranty form's caravan_model is a text input at 50% (paired with
   chassis_number). Selector targets the form-group whose next sibling
   contains chassis_number. Isolated rule so combinator-inside-:has
   parsing differences don't drop other selectors. */
.titanium-form-card .brxe-form .form-group:has(+ .form-group:has([name="chassis_number"])) {
    width: calc(50% - 12px) !important;
}
/* Bricks wraps the submit button in `.form-group.submit-button-wrapper`
   which is a `display: flex; flex-direction: column` container. Flex
   children stretch by default, so the button blew out to wrapper width.
   `align-items: center` is what actually centres it; `text-align`
   doesn't apply to flex children. Width 100% overrides Bricks's
   `width: auto` so the wrapper itself spans the form. */
.titanium-form-card .brxe-form .submit-button-wrapper {
    width: 100%;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 0;
    padding-bottom: 0;
}
.titanium-form-card .brxe-form button[type="submit"] {
    background: #c8a96e;
    color: #000000;
    border: none;
    padding: 16px 48px;
    font-family: 'General Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px -4px rgba(200, 169, 110, 0.4);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    min-width: 240px;
}
.titanium-form-card .brxe-form button[type="submit"]:hover {
    background: #b89757;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -6px rgba(200, 169, 110, 0.5);
}
.titanium-form-card .brxe-form .bricks-form-success-message,
.titanium-form-card .brxe-form .bricks-form-error-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}
.titanium-form-card .brxe-form .bricks-form-success-message {
    background: rgba(200, 169, 110, 0.12);
    color: #1a1a1a;
    border: 1px solid #c8a96e;
}

/* Heading stack ABOVE the form-card on drone-bg sections */
.titanium-form-eyebrow {
    color: rgba(250, 251, 252, 0.78);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 12px;
}
.titanium-form-headline {
    color: #fafbfc;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 16px;
}
@media (max-width: 768px) {
    .titanium-form-headline {
        font-size: 28px;
    }
}
.titanium-form-subhead {
    color: rgba(250, 251, 252, 0.78);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 36px;
}

/* Hero "Start Your Journey" gold solid button — slots into the
   underline-CTA stack on caravan singles next to the text links. */
.titanium-hero-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #c8a96e;
    color: #000000;
    padding: 16px 24px;
    width: 100%;
    max-width: 338px;
    font-family: 'General Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.15s ease;
}
.titanium-hero-cta-primary:hover {
    background: #b89757;
}

/* Homepage model card "More Details" CTA — rendered via [titanium_caravan_more_details]
   shortcode because Bricks 2.3.2 drops the href on button elements with dynamic links
   inside query loops (rule #32). The shortcode emits a real <a> with get_permalink(). */
.titanium-model-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c8a96e;
    text-decoration: none;
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: gap 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.titanium-model-card-cta:hover {
    color: #d4ba85;
    gap: 11px;
}
.titanium-model-card-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.titanium-model-card-cta:hover svg {
    transform: translateX(4px);
}

/* ============================================================
   Caravan category landing pages
   ============================================================ */

/* Model grid (linked_models on caravan_category) — matches the /our-range/
   card exactly (Jack 2026-07-01): transparent centred cut-out cards, 3-col,
   whole card links to the model, hover lift. Image sizing is inherited from
   the shared .ti-rotator / .ti-model-card-img rules (same as /our-range/). */
.ti-cat-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 80px;
  column-gap: 40px;
  width: 100%;
}
@media (max-width: 1024px) { .ti-cat-models { grid-template-columns: repeat(2, 1fr); row-gap: 56px; } }
@media (max-width: 600px)  { .ti-cat-models { grid-template-columns: 1fr; row-gap: 48px; } }
/* One linked model: centre a single card instead of stranding it in col 1. */
.ti-cat-models--single { grid-template-columns: minmax(0, 360px); justify-content: center; }

.ti-cat-model {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.ti-cat-model:hover { transform: translateY(-4px); }
.ti-cat-model__title { font-family: 'General Sans', sans-serif; color: #fafbfc; font-size: 20px; font-weight: 400; line-height: 1.2; margin: 0 0 4px; }
.ti-cat-model__tagline { color: rgba(250,251,252,0.82); font-size: 15px; line-height: 1.45; margin: 2px auto 12px; max-width: 300px; }
.ti-cat-model__price { color: #fafbfc; font-size: 15px; font-weight: 400; margin: 0 0 20px; }
.ti-cat-model__chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 15px; justify-content: center; margin-top: 12px; }
.ti-cat-model__chip { background: #1B1D1F; color: #fafbfc; font-size: 15px; line-height: 1.3; padding: 5px 10px; border-radius: 4px; }

/* Floor plan grid (linked_floor_plans on caravan_category) */
.titanium-category-floor-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .titanium-category-floor-plans { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px) { .titanium-category-floor-plans { grid-template-columns: 1fr; gap: 20px; } }

.titanium-fp-card {
  display: flex;
  flex-direction: column;
  background: #1a1c1f;
  border-top: 2px solid #c8a96e;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.titanium-fp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.4); }
.titanium-fp-card__media {
  width: 100%;
  aspect-ratio: 2 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #0f1012;
}
.titanium-fp-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.titanium-fp-card__title { font-family: 'General Sans', sans-serif; font-size: 17px; font-weight: 500; color: #fafbfc; line-height: 1.3; margin: 0; }
/* F6: floor-plan card meta + CTA match the model-page card (white meta, white
   "View Design" CTA) so cards read as one family across archive/model/category. */
.titanium-fp-card__chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #fafbfc; margin: 0; }
.titanium-fp-card__chips span { display: inline-flex; align-items: center; }
.titanium-fp-card__chips span + span::before { content: '\2022'; margin-right: 8px; color: rgba(250,251,252,0.3); }
.titanium-fp-card__cta { font-size: 13px; color: #fafbfc; margin-top: 8px; transition: color 0.15s ease; }
.titanium-fp-card:hover .titanium-fp-card__cta { color: #c8a96e; }

/* F7: Recently viewed floor plans — horizontal scroll strip. Cards use the
   open floor-plan-card layout (title above image, plan on a dark 2:1 panel,
   underline CTA) so the strip matches the archive / model / category grids. */
.titanium-rv-strip { display: flex; gap: 32px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.titanium-rv-strip .titanium-rv-card { flex: 0 0 300px; max-width: 82vw; scroll-snap-align: start; }
@media (max-width: 600px) { .titanium-rv-strip { gap: 16px; } .titanium-rv-strip .titanium-rv-card { flex-basis: 260px; } }
.titanium-rv-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.titanium-rv-card__title { font-family: 'General Sans', sans-serif; color: #fafbfc; font-size: 18px; font-weight: 400; line-height: 1.3; margin: 0 0 14px; }
.titanium-rv-card__media { display: block; width: 100%; aspect-ratio: 2 / 1; background-color: #0f1012; background-size: contain; background-position: center; background-repeat: no-repeat; border-radius: 4px; margin-bottom: 14px; }
.titanium-rv-card__cta { display: inline-flex; align-items: center; justify-content: space-between; width: 130px; color: #fafbfc; font-size: 14px; font-weight: 500; letter-spacing: 1.25px; border-bottom: 1px solid #e1e2e3; padding: 12px 0; margin-top: auto; transition: color 0.15s ease, border-color 0.15s ease; }
.titanium-rv-card:hover .titanium-rv-card__cta { color: #c8a96e; border-color: #c8a96e; }
.titanium-rv-strip::-webkit-scrollbar { height: 6px; }
.titanium-rv-strip::-webkit-scrollbar-track { background: rgba(250,251,252,0.06); border-radius: 3px; }
.titanium-rv-strip::-webkit-scrollbar-thumb { background: rgba(250,251,252,0.22); border-radius: 3px; }
.titanium-rv-strip { scrollbar-width: thin; scrollbar-color: rgba(250,251,252,0.22) rgba(250,251,252,0.06); }

/* C1: Titanium Owners Rallies — intro chips + rally grid/cards. */
.titanium-rally-activities { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.titanium-rally-activity { border: 1px solid rgba(200,169,110,0.4); color: #fafbfc; font-size: 13px; letter-spacing: 0.5px; padding: 7px 14px; border-radius: 100px; }
.titanium-rallies__heading { font-family: 'General Sans', sans-serif; font-size: 32px; font-weight: 400; color: #fafbfc; margin: 0 0 40px; }
.titanium-rallies__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 991px) { .titanium-rallies__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 600px) { .titanium-rallies__grid { grid-template-columns: 1fr; } }
.titanium-rally-card { display: flex; flex-direction: column; background: #1a1c1f; border-top: 2px solid #c8a96e; overflow: hidden; }
.titanium-rally-card__media { width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: #0f1012; }
.titanium-rally-card__media--empty { background: linear-gradient(135deg, #1f2226, #0f1012); }
.titanium-rally-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.titanium-rally-card__state { color: #c8a96e; font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.titanium-rally-card__name { font-family: 'General Sans', sans-serif; font-size: 22px; font-weight: 400; color: #fafbfc; line-height: 1.25; margin: 0 0 8px; }
.titanium-rally-card__when { color: rgba(250,251,252,0.6); font-size: 14px; margin: 0 0 14px; }
.titanium-rally-card__desc { color: rgba(250,251,252,0.78); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.titanium-rally-card .titanium-card-btn { margin-top: auto; align-self: flex-start; }

/* X1: Model comparison tool. Gold chip selector + real <table> (gold
   best-value accent). Fits the viewport on mobile (no horizontal scroll for
   the common 2-model case). */
.ti-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Chip selector --- */
.ti-compare__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ti-compare__chip { font-family: 'General Sans', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.5px; color: #fafbfc; background: transparent; border: 1px solid rgba(250,251,252,0.25); border-radius: 100px; padding: 9px 20px; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.ti-compare__chip:hover { border-color: #c8a96e; }
.ti-compare__chip.is-active { background: #c8a96e; border-color: #c8a96e; color: #141517; }
.ti-compare__chip.is-disabled { opacity: 0.4; cursor: not-allowed; }
.ti-compare__chip.is-disabled:hover { border-color: rgba(250,251,252,0.25); }
.ti-compare__chip:focus-visible { outline: 2px solid #c8a96e; outline-offset: 2px; }
.ti-compare__hint { color: rgba(250,251,252,0.5); font-size: 13px; margin: 12px 0 28px; }

/* --- Pickers (floor-plan tool, X2 — two styled dropdowns) --- */
.ti-compare__pickers { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.ti-compare__picker { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ti-compare__picker-label { font-family: 'General Sans', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #c8a96e; }
.ti-compare__select-wrap { position: relative; display: block; }
.ti-compare__select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid #c8a96e; border-bottom: 2px solid #c8a96e; transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.ti-compare__select { -webkit-appearance: none; appearance: none; width: 100%; font-family: 'General Sans', sans-serif; font-size: 16px; font-weight: 500; color: #fafbfc; background: #1a1c1f; border: 1px solid rgba(250,251,252,0.25); border-radius: 6px; padding: 14px 44px 14px 16px; cursor: pointer; transition: border-color 0.15s ease; }
.ti-compare__select:hover { border-color: rgba(200,169,110,0.6); }
.ti-compare__select:focus-visible { outline: none; border-color: #c8a96e; box-shadow: 0 0 0 2px rgba(200,169,110,0.35); }
.ti-compare__select option { color: #141517; background: #fafbfc; }

/* --- Table --- */
[data-compare-app], [data-fp-compare-app] { min-width: 0; max-width: 100%; }
.ti-compare { min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ti-compare:focus-visible { outline: 2px solid #c8a96e; outline-offset: 2px; }
/* A global theme rule forces display:inline-block + font-family:themify on
   tables/cells here — restore proper table display + the brand font. */
.ti-compare__table { display: table !important; }
.ti-compare__table thead { display: table-header-group !important; }
.ti-compare__table tbody { display: table-row-group !important; }
.ti-compare__table tfoot { display: table-footer-group !important; }
.ti-compare__table tr { display: table-row !important; }
.ti-compare__table th, .ti-compare__table td { display: table-cell !important; }
.ti-compare__table, .ti-compare__table th, .ti-compare__table td { font-family: 'General Sans', -apple-system, "Segoe UI", Roboto, sans-serif; }
.ti-compare__table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; color: #fafbfc; }
.ti-compare__table th, .ti-compare__table td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid rgba(250,251,252,0.10); overflow-wrap: break-word; }
.ti-compare__table th:first-child, .ti-compare__table td:first-child { background: #141517; width: 150px; color: rgba(250,251,252,0.55); font-weight: 400; font-size: 14px; }
.ti-compare__table thead th { background: #141517; vertical-align: bottom; }
.ti-compare__corner { background: #141517; }
.ti-compare__table tbody tr:nth-child(even) td, .ti-compare__table tbody tr:nth-child(even) th:first-child { background: #1a1c1f; }
/* X1-only divider above the suspension/frame block (row 7) — scoped so it
   doesn't land on an arbitrary row of the floor-plan table (X2 hides rows). */
[data-compare-app] .ti-compare__table tbody tr:nth-child(7) th, [data-compare-app] .ti-compare__table tbody tr:nth-child(7) td { border-top: 1px solid rgba(200,169,110,0.30); }
/* model header cell */
.ti-compare__thumb { display: block; }
.ti-compare__thumb img { width: 100%; max-width: 200px; aspect-ratio: 3 / 2; object-fit: contain; display: block; margin-bottom: 10px; }
/* wide thumb for floor-plan images (~2.7:1, show the full plan) */
.ti-compare__thumb--wide img { max-width: 280px; aspect-ratio: auto; }
.ti-compare__name { display: block; font-size: 22px; font-weight: 500; color: #fafbfc; text-decoration: none; line-height: 1.2; }
.ti-compare__name:hover { color: #c8a96e; }
.ti-compare__price { display: block; margin-top: 6px; color: rgba(250,251,252,0.7); font-size: 14px; font-weight: 400; }
.ti-compare__table td[data-best="true"] { color: #c8a96e; font-weight: 600; }
.ti-compare__empty { color: rgba(250,251,252,0.35); }
.ti-compare__cta { padding-top: 22px; }
.ti-compare__cta .titanium-card-btn { white-space: nowrap; }
@media (max-width: 600px) {
  /* fit the viewport (table-layout:fixed shares the width) — no horizontal
     scroll for the common 2-model case */
  .ti-compare__table th, .ti-compare__table td { padding: 12px 10px; font-size: 14px; }
  .ti-compare__table th:first-child, .ti-compare__table td:first-child { width: 84px; font-size: 12px; }
  .ti-compare__thumb img { max-width: 120px; }
  .ti-compare__name { font-size: 17px; }
  .ti-compare__cta .titanium-card-btn { white-space: normal; padding-left: 8px; padding-right: 8px; font-size: 11px; letter-spacing: 0.5px; }
}

/* "Also a great fit for" chip row on caravan singles */
.titanium-cats-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}
.titanium-cats-chips__eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250,251,252,0.5);
  margin-right: 6px;
}
.titanium-cats-chips__chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(200,169,110,0.4);
  border-radius: 999px;
  font-size: 13px;
  color: #c8a96e;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.titanium-cats-chips__chip:hover {
  background: rgba(200,169,110,0.1);
  border-color: #c8a96e;
}

/* 9 brand pillars trust block */
.titanium-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .titanium-pillars { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 600px) { .titanium-pillars { grid-template-columns: 1fr; gap: 16px; } }

.titanium-pillar {
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid rgba(200,169,110,0.3);
}
.titanium-pillar--highlighted {
  background: rgba(200,169,110,0.05);
  border-left-color: #c8a96e;
}
.titanium-pillar__title { font-family: 'General Sans', sans-serif; font-size: 16px; font-weight: 500; color: #fafbfc; margin: 0 0 8px; }
.titanium-pillar--highlighted .titanium-pillar__title { color: #c8a96e; }
.titanium-pillar__body { font-size: 14px; line-height: 1.5; color: rgba(250,251,252,0.75); margin: 0; }

/* Inline brand-styled link (gold underline) for use in body copy + CTAs */
.brand-link {
  color: #c8a96e;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.brand-link:hover { color: #d9bf86; }

/* Single-model hero treatment — when /toy-hauler-caravans/ or /composite-caravans/
   etc. only has one model, the lone card in a 4-col grid looks lonely. Switch
   to a horizontal feature layout: image left, content right, full-width on
   the row. Triggers only when the model is the only child of the grid. */
.titanium-category-models:has(> .titanium-model-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto;
}
.titanium-model-card:only-child {
  flex-direction: row;
  border-top-width: 3px;
}
.titanium-model-card:only-child .titanium-model-card__media {
  flex: 1 1 60%;
  aspect-ratio: 4 / 3;
  min-height: 360px;
}
.titanium-model-card:only-child .titanium-model-card__body {
  flex: 1 1 40%;
  padding: 48px;
  justify-content: center;
  gap: 12px;
}
.titanium-model-card:only-child .titanium-model-card__title { font-size: 36px; line-height: 1.1; }
.titanium-model-card:only-child .titanium-model-card__tagline { font-size: 16px; line-height: 1.5; max-width: 32ch; }
.titanium-model-card:only-child .titanium-model-card__price { font-size: 18px; margin-top: 8px; }
.titanium-model-card:only-child .titanium-model-card__cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid #c8a96e;
  width: fit-content;
  font-size: 13px;
}
.titanium-model-card:only-child .titanium-model-card__cta:hover { background: rgba(200,169,110,0.08); }
@media (max-width: 768px) {
  .titanium-model-card:only-child { flex-direction: column; }
  .titanium-model-card:only-child .titanium-model-card__media { min-height: 0; }
  .titanium-model-card:only-child .titanium-model-card__body { padding: 28px; }
  .titanium-model-card:only-child .titanium-model-card__title { font-size: 28px; }
}

/* Single-model fallback — when the lone model has no hero or menu image
   (CS1 on /composite-caravans/ as of build), the horizontal hero treatment
   collapses because the .titanium-model-card__media div is absent. Render
   as a centred text-only feature card so it reads intentionally rather than
   like a card stuck in the leftmost grid cell.
   Note: nested :has(:not(:has())) is not valid CSS, so the size constraint
   sits on the card itself via place-self/max-width rather than on the grid. */
.titanium-model-card:only-child:not(:has(.titanium-model-card__media)) {
  flex-direction: column;
  border-top-width: 3px;
  max-width: 640px;
  place-self: center;
}
.titanium-model-card:only-child:not(:has(.titanium-model-card__media)) .titanium-model-card__body {
  flex: 1 1 100%;
  padding: 56px 40px;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.titanium-model-card:only-child:not(:has(.titanium-model-card__media)) .titanium-model-card__tagline {
  max-width: 40ch;
}

/* Same treatment for floor plan grid when only one or two cards exist —
   though the 2-card case still looks fine in a 3-col grid (it just centres). */
.titanium-category-floor-plans:has(> .titanium-fp-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

/* Branded list styling inside caravan_category body content. The wysiwyg
   field outputs <ul> / <ol> which by default render with plain discs. Replace
   with gold square markers and tighter spacing so lists feel intentional
   rather than dumped. */
#brxe-ccat_032 ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
}
#brxe-ccat_032 ul li {
  position: relative;
  padding-left: 24px;
  margin: 0 0 10px;
  line-height: 1.55;
}
#brxe-ccat_032 ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: #c8a96e;
  border-radius: 1px;
}
#brxe-ccat_032 ol {
  padding-left: 24px;
  margin: 0 0 24px;
}
#brxe-ccat_032 ol li {
  margin: 0 0 10px;
  line-height: 1.55;
}
#brxe-ccat_032 ol li::marker { color: #c8a96e; font-weight: 500; }

/* ═══ HOMEPAGE HERO BACKGROUND VIDEO ═══
   Lives here (not homepage.css, which is not enqueued) so it actually loads.
   The video is output by the [titanium_hero_video] shortcode inside the hero
   section (hp_001, already position:relative + overflow:hidden via Bricks).
   It sits above the still-image fallback (hp_img1, z:0) and below the gradient
   overlay (hp_ovr1, z:2) and content/CTA (hp_002, z:3). The shortcode wrapper
   (.brxe-shortcode) is a static 0-height box once the video is taken out of
   flow, so it adds no layout. hero-video.js injects sources after first paint. */
.brxe-shortcode:has(> .titanium-hero-video),
.titanium-hero-video {
  display: block;
}
.titanium-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  pointer-events: none;
  background: #000;
}

/* G3 (2026-06-17): trim oversized mobile padding on shortcode-rendered
   sections whose 80px desktop padding is set inline (so a class rule needs
   !important to win). Keeps mobile vertical rhythm consistent with the
   Bricks sections that use _padding:mobile_portrait. */
@media (max-width: 767px) {
  .titanium-sw-services,
  .titanium-sw-process,
  .titanium-sw-centres,
  .titanium-sw-faq,
  .titanium-category-faq {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
}

/* Service/Warranty contact card locations. Stacked by default (service page
   sidebar) with a hairline divider between locations; on the Warranty page the
   form grid collapses to one column for the full-width Salesforce claim embed
   (:has(.titanium-warranty-claim) in page-service-warranty.php) and the card
   goes 2-up so Melbourne and Brisbane sit side by side beneath it. */
.titanium-sw-contact__loc + .titanium-sw-contact__loc {
  border-top: 1px solid rgba(250, 251, 252, 0.12);
  padding-top: 28px;
  margin-top: 4px;
}
/* The Salesforce Lightning flow renders at SLDS's compact scale, which reads
   tiny inside the 1160 measure. zoom scales the whole flow (type, fields,
   spacing) proportionally on desktop; min-height stops the section jumping
   between wizard steps. */
@media (min-width: 992px) {
  .titanium-warranty-claim {
    zoom: 1.5;
    min-height: 520px; /* pre-zoom; ~780px rendered */
  }
}
#brxe-sw0075:has(.titanium-warranty-claim) .titanium-sw-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 56px;
}
#brxe-sw0075:has(.titanium-warranty-claim) .titanium-sw-contact__loc + .titanium-sw-contact__loc {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
@media (max-width: 767px) {
  #brxe-sw0075:has(.titanium-warranty-claim) .titanium-sw-contact {
    grid-template-columns: 1fr;
  }
  #brxe-sw0075:has(.titanium-warranty-claim) .titanium-sw-contact__loc + .titanium-sw-contact__loc {
    border-top: 1px solid rgba(250, 251, 252, 0.12);
    padding-top: 28px;
    margin-top: 4px;
  }
}

/* A3 (2026-06-22): All Models card image — rotating crossfade of transparent
   angle cut-outs (.ti-rotator) with a single-image fallback (.ti-model-card-img).
   Box matches the old card image (270x180 contain). model-rotator.js toggles
   .is-active; the fade is the CSS transition here. */
.ti-rotator {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 270px;
  height: 180px;
  margin: 0 auto 20px;
}
.ti-rotator__track {
  display: flex;
  height: 100%;
  will-change: transform;
  /* transition is applied inline by model-rotator.js so the initial slide
     doesn't animate; the JS slides translateX one image-width per step. */
}
.ti-rotator__img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ti-model-card-img {
  width: 100%;
  max-width: 270px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}

/* ==========================================================================
   Interior colour selector ([titanium_interior_selector])
   Live-preview visualiser: a base room render with stacked transparent
   overlay PNGs, recoloured by picking named swatches. See
   assets/js/interior-selector.js + inc/helpers.php.
   ========================================================================== */
.ti-interior {
  width: 100%;
  color: var(--ti-white);
}

.ti-interior__loading {
  padding: 40px 0;
  text-align: center;
  color: var(--ti-grey-500);
  font-size: 14px;
}

/* Zone tabs — hidden while there's only one zone (Phase 0). */
.ti-interior__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.ti-interior__tabs:has(.ti-interior__tab:only-child) {
  display: none;
}
.ti-interior__tab {
  appearance: none;
  border: 1px solid rgba(250, 251, 252, 0.18);
  background: transparent;
  color: rgba(250, 251, 252, 0.72);
  font-family: var(--ti-font-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ti-interior__tab:hover {
  color: var(--ti-white);
  border-color: rgba(250, 251, 252, 0.4);
}
.ti-interior__tab.is-active {
  color: var(--ti-black);
  background: var(--ti-gold);
  border-color: var(--ti-gold);
}

/* Two-column shell: preview left, finish controls right. Mobile-first — stacks
   by default, side-by-side from 768px up (default-safe: never rely on a
   max-width query to undo a desktop default on mobile). */
.ti-interior__main {
  display: block;
}

/* Preview stage — base img sizes the box; overlays stack absolutely on top.
   Base + overlays are produced at matching dimensions, so object-fit:contain
   keeps every layer pixel-aligned. */
.ti-interior__stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 22px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
}
.ti-interior__base {
  display: block;
  width: 100%;
  height: auto;
}
.ti-interior__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Finish controls — one compact row per element. */
.ti-interior__elements {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ti-interior__element-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--ti-gold-light);
  margin-bottom: 7px;
}
.ti-interior__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ti-interior__swatch {
  appearance: none;
  padding: 0;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(250, 251, 252, 0.18);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #0a0a0a;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ti-interior__swatch:hover {
  border-color: rgba(250, 251, 252, 0.5);
}
.ti-interior__swatch.is-active {
  border-color: var(--ti-gold);
  transform: scale(1.06);
}
.ti-interior__swatch-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .ti-interior__main {
    display: flex;
    flex-direction: row;
    gap: 36px;
    align-items: flex-start;
  }
  .ti-interior__stage {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    margin: 0;
    position: sticky;
    top: 24px;
  }
  .ti-interior__elements {
    flex: 0 0 360px;
    max-width: 360px;
  }
}

/* ═══════════════════════════════
   SCRAPBOOK — Community / Owners Rallies page
   A deliberate, page-scoped divergence: warm paper, tilted Polaroids with
   handwritten captions, washi tape and big yellow display headlines, to mirror
   the Australian Tour EDMs. Real, editable, responsive elements (no flat
   images). Mobile-first: stack by default, collage from 768px up.
   ═══════════════════════════════ */

:root {
  --ti-scrap-paper: #f3ece0;        /* warm cream stock */
  --ti-scrap-ink: #2b2722;          /* charcoal ink */
  --ti-scrap-ink-soft: #5c554c;     /* muted ink (captions/eyebrows) */
  --ti-scrap-yellow: #f4c01a;       /* EDM display-headline yellow */
  --ti-scrap-display: 'Arial Black', 'Arial Bold', 'Helvetica Neue', Arial, sans-serif;
  --ti-scrap-hand: 'salted', 'Caveat', 'Permanent Marker', cursive;
}

/* Paper surface — applied to the hero + body sections via _cssClasses so the
   warm stock + faint grain are reliable regardless of Bricks _background. */
.ti-scrap {
  background-color: var(--ti-scrap-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--ti-scrap-ink);
}

/* Display headline — yellow fill, white outline, slight poster lean. clamp()
   handles every breakpoint (Rule #55: Bricks per-breakpoint font-size is flaky). */
.ti-scrap__headline {
  font-family: var(--ti-scrap-display);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
  font-size: clamp(34px, 7vw, 68px);
  color: var(--ti-scrap-yellow);
  -webkit-text-stroke: 2px #ffffff;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 rgba(43, 39, 34, 0.15);
  transform: skewX(-5deg);
  transform-origin: left center;
}
.ti-scrap__headline--charcoal {
  color: var(--ti-scrap-ink);
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.ti-scrap__headline--cream {
  color: #ffffff;
  -webkit-text-stroke: 1.5px var(--ti-scrap-ink);
  text-shadow: 2px 2px 0 rgba(43, 39, 34, 0.18);
}

/* Handwritten eyebrow */
.ti-scrap-eyebrow {
  display: inline-block;
  font-family: var(--ti-scrap-hand);
  color: var(--ti-scrap-ink-soft);
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.1;
  margin: 0 0 8px;
  transform: rotate(-2deg);
}

/* Body copy on paper */
.ti-scrap-text {
  font-family: var(--ti-font-primary);
  color: var(--ti-scrap-ink);
  font-size: 17px;
  line-height: 1.7;
}
.ti-scrap-text p { margin: 0 0 16px; }
.ti-scrap-text p:last-child { margin-bottom: 0; }
.ti-scrap-text strong { color: var(--ti-scrap-ink); font-weight: 600; }

/* Body wrapper + per-block alignment */
.ti-scrap-body {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.ti-scrap-block {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.ti-scrap-block--wide { max-width: 1100px; }
.ti-scrap-block--left { text-align: left; }
.ti-scrap-block--center { text-align: center; }
.ti-scrap-block--center .ti-scrap__headline { transform-origin: center; }

/* Polaroid */
.ti-polaroid {
  --tilt: 0deg;
  position: relative;
  display: block;
  background: #ffffff;
  padding: 10px 10px 0;
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: rotate(var(--tilt));
}
.ti-polaroid__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e9e2d4;
}
.ti-polaroid__cap {
  margin: 0;
  padding: 9px 4px 12px;
  text-align: center;
  font-family: var(--ti-scrap-hand);
  font-size: 18px;
  line-height: 1.05;
  color: var(--ti-scrap-ink);
}
.ti-polaroid--tape::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 78px;
  height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(244, 192, 26, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border-radius: 1px;
}
.ti-polaroid--s { width: 170px; }
.ti-polaroid--m { width: 220px; }
.ti-polaroid--l { width: 270px; }

/* Cluster — wraps + centres on mobile */
.ti-scrap-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 26px;
  align-items: flex-start;
  justify-content: center;
}

/* Story block — stacks on mobile, side-by-side from 768px */
.ti-scrap-story {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Torn / stitched divider */
.ti-scrap-divider {
  width: 160px;
  height: 0;
  margin: 0 auto;
  border-top: 3px dashed rgba(43, 39, 34, 0.28);
}

@media (min-width: 768px) {
  .ti-scrap-body { gap: 80px; }

  .ti-scrap-cluster--left { justify-content: flex-start; }
  .ti-scrap-cluster--right { justify-content: flex-end; }

  .ti-scrap-story { flex-direction: row; align-items: center; gap: 48px; }
  .ti-scrap-story__text { flex: 1 1 0; min-width: 0; }
  .ti-scrap-story__media { flex: 0 0 auto; max-width: 48%; }
  .ti-scrap-story--right .ti-scrap-story__text { order: 1; }
  .ti-scrap-story--right .ti-scrap-story__media { order: 2; }
  .ti-scrap-story--left .ti-scrap-story__media { order: 1; }
  .ti-scrap-story--left .ti-scrap-story__text { order: 2; }
  .ti-scrap-story__media .ti-scrap-cluster { justify-content: flex-start; }
  /* slight overlap for the collage feel */
  .ti-scrap-story__media .ti-polaroid + .ti-polaroid { margin-left: -22px; }
}

/* Hero — biggest display headline on paper */
.ti-scrap-hero .ti-scrap__headline {
  font-size: clamp(40px, 9vw, 88px);
  margin-bottom: 0;
}

/* Photo hero variant — copy sits over a darkened background photo */
.ti-scrap-hero--photo .ti-scrap-eyebrow { color: #fdf6e8; }
.ti-scrap-hero--photo .ti-scrap-text { color: rgba(255, 255, 255, 0.92); }
.ti-scrap-hero--photo .ti-scrap__headline { text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); }

@media (prefers-reduced-motion: reduce) {
  .ti-polaroid { transform: none; }
}

/* ============================================================
   Owners Rallies page — scrapbook layout (white; Arial Black yellow
   sticker headings + Salted polaroid captions). Clean, CENTRED,
   responsive flow: full-bleed hero / photo-bands / partners, centred
   content rows (copy + tilted polaroid clusters / map) that stack on
   mobile. Replaces the brittle absolute-canvas build.
   ============================================================ */
.ti-or { background: #ffffff; color: #1a1a1a; overflow: hidden; }
.ti-or *, .ti-or *::before, .ti-or *::after { box-sizing: border-box; }
.ti-or img { display: block; }

/* The Bricks shortcode wrapper forces its content to inline-block (which kills
   `margin:0 auto` centring + shrink-wraps everything). Pin every structural
   container back to its proper display so the page actually centres. */
.ti-or { display: block; width: 100%; }
.ti-or-wrap, .ti-or-hero, .ti-or-sec, .ti-or-intro, .ti-or-copy, .ti-or-mapcol,
.ti-or-band__inner, .ti-or-h, .ti-or-partners, .ti-or-pola__cap, .ti-or-map { display: block; }
.ti-or-band, .ti-or-row, .ti-or-cluster { display: flex; }

/* Centred content container — one consistent width for ALL in-flow content */
.ti-or-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }

/* Intro copy section (the old in-shortcode hero band — the real hero is now
   the standard Bricks one above the shortcode). Symmetric padding so the gap
   to the hero above and the photo band below is identical. */
.ti-or-hero { padding: clamp(48px, 5vw, 64px) 0; }
.ti-or-hero-video { width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; background: #d7d7d9;
  display: flex; align-items: center; justify-content: center; }
.ti-or-hero-video span { font-family: var(--ti-scrap-display); font-weight: 900; letter-spacing: 3px;
  color: #7a7a7e; font-size: clamp(24px, 4vw, 52px); }
.ti-or-hero-vid { width: 100%; height: 100%; object-fit: cover; display: block; background: #d7d7d9; }
.ti-or-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.ti-or-intro p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; color: #2b2722; margin: 0 0 18px; }
.ti-or-intro p:last-child { margin-bottom: 0; }

/* Section rhythm */
.ti-or-sec { padding-bottom: clamp(48px, 7vw, 92px); }
.ti-or-sec--finke { padding-top: clamp(40px, 6vw, 80px); }

/* Full-bleed photo band + overlaid sticker heading (heading sits in the wrap so it
   aligns with the content below) */
.ti-or-band { position: relative; width: 100%; min-height: clamp(300px, 40vw, 520px);
  background-size: cover; background-position: center; background-color: #222;
  display: flex; align-items: flex-end; margin-bottom: clamp(32px, 5vw, 64px); }
.ti-or-band--top { align-items: flex-start; }
.ti-or-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,0) 38%, rgba(0,0,0,0.55) 100%); }
.ti-or-band--top::after { background: linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%); }
.ti-or-band__inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px) clamp(22px, 3vw, 34px); }
.ti-or-band--top .ti-or-band__inner { padding-top: clamp(26px, 3vw, 40px); padding-bottom: 0; }
.ti-or-band__eyebrow { display: block; font-family: var(--ti-scrap-display); font-weight: 900;
  text-transform: uppercase; color: #fff; font-size: clamp(15px, 2vw, 26px); letter-spacing: 1px;
  margin: 0 0 4px; line-height: 1; }
.ti-or-band .ti-scrap__headline { display: block; margin: 0; font-size: clamp(38px, 7vw, 86px); }

/* In-flow heading (Finke) */
.ti-or-h { font-size: clamp(40px, 7vw, 86px); margin: 0 0 clamp(20px, 3vw, 36px); text-align: center; }

/* Content row: copy + cluster / map. Mobile = stacked + centred. */
.ti-or-row { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px);
  align-items: center; justify-content: center; }
.ti-or-copy { width: 100%; max-width: 600px; }
.ti-or-copy p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: #2b2722; margin: 0 0 16px; }
.ti-or-copy p:last-child { margin-bottom: 0; }

/* Polaroid */
.ti-or-pola { --r: 0deg; position: relative; flex: 0 0 auto; background: #fff; padding: 9px 9px 0;
  width: clamp(150px, 17vw, 198px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.12);
  transform: rotate(var(--r)); }
.ti-or-pola--lead { width: clamp(170px, 19vw, 224px); z-index: 2; }
.ti-or-pola__img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #e9e2d4; }
.ti-or-pola__cap { margin: 0; padding: 8px 4px 11px; text-align: center; font-family: var(--ti-scrap-hand);
  font-size: clamp(15px, 1.5vw, 19px); line-height: 1; color: #2b2722; }
.ti-or-pola__clip { position: absolute; top: -13px; left: 16%; width: 30px; height: auto; z-index: 3;
  transform: rotate(-16deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.22)); }

/* Cluster — centred tilted pile */
.ti-or-cluster { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 16px; width: 100%; }

/* Map — its own container so the sign pills scale WITH the map (not the viewport),
   keeping spacing consistent at every map size. */
.ti-or-mapcol { width: 100%; max-width: 560px; }
.ti-or-map { position: relative; width: 100%; container-type: inline-size; }
.ti-or-map__continent { width: 100%; height: auto; }
.ti-or-map__route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ti-or-sign { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center;
  gap: 0.3em; white-space: nowrap; background: #111; color: #fff; border: 1.5px solid #fff; border-radius: 6px;
  padding: 0.28em 0.55em; font-family: var(--ti-font-primary, sans-serif); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(7px, 2.5cqw, 13px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.ti-or-sign svg { width: 1.2em; height: 1.2em; flex: none; }
.ti-or-badge { position: absolute; transform: translate(-50%, -50%); z-index: 2; background: #111; color: #fff;
  border: 2px solid #fff; border-radius: 9px; padding: 0.4em 0.8em 0.4em 1.4em; text-align: left; line-height: 1;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%); }
.ti-or-badge b { display: block; font-weight: 600; letter-spacing: 0.05em; font-size: clamp(8px, 2.6cqw, 14px); }
.ti-or-badge i { display: block; font-style: italic; font-family: var(--ti-scrap-display); font-weight: 900;
  font-size: clamp(12px, 4.4cqw, 24px); }

/* Partners — full-bleed. display:block on the img kills the inline baseline
   gap (was a white sliver between the strip and the footer), the container bg
   backstops any sub-pixel rounding, and the ::after overlay fades the strip's
   bottom into the footer's #0c0c0e so the hand-off is seamless. */
.ti-or-partners { width: 100%; position: relative; background: #0c0c0e; }
.ti-or-partners img { width: 100%; height: auto; display: block; }
.ti-or-partners::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 20%;
  background: linear-gradient(to bottom, rgba(12,12,14,0) 0%, #0c0c0e 100%); pointer-events: none; }

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
  .ti-or-h { text-align: left; }
  .ti-or-row { flex-direction: row; align-items: center; }
  .ti-or-copy { flex: 1 1 0; min-width: 0; max-width: none; }
  .ti-or-mapcol { flex: 0 0 48%; }
  .ti-or-row--map { align-items: flex-start; }

  /* Clusters become overlapping tilted PILES on desktop. Each is scoped + the
     children are %-positioned inside an aspect-ratio box, so they scale with the
     cluster's own width and stay robust at every viewport. */
  .ti-or-cluster { position: relative; flex: 0 0 auto; gap: 0; }
  .ti-or-cluster .ti-or-pola { position: absolute; margin: 0; width: auto; }
  .ti-or-cluster--bright   { width: clamp(340px, 40vw, 460px); aspect-ratio: 1 / 1.4; }
  .ti-or-cluster--bathurst { width: clamp(300px, 34vw, 400px); aspect-ratio: 1 / 1.62; }
  .ti-or-cluster--finke    { width: 100%; max-width: 860px; aspect-ratio: 2 / 1;
    margin: clamp(24px, 3vw, 44px) auto 0; }

  /* Bright 2x2 pile — DOM: Kids Club, Raffle, 4WD, Party */
  .ti-or-cluster--bright .ti-or-pola:nth-child(1) { left: 44%; top: 0;    width: 56%; z-index: 3; }
  .ti-or-cluster--bright .ti-or-pola:nth-child(2) { left: 0;   top: 3%;   width: 48%; z-index: 2; }
  .ti-or-cluster--bright .ti-or-pola:nth-child(3) { left: 5%;  top: 56%;  width: 48%; z-index: 4; }
  .ti-or-cluster--bright .ti-or-pola:nth-child(4) { left: 48%; top: 53%;  width: 52%; z-index: 5; }

  /* Bathurst diagonal cascade — DOM: Trackside, Camp, Race Day */
  .ti-or-cluster--bathurst .ti-or-pola:nth-child(1) { left: 28%; top: 0;   width: 56%; z-index: 3; }
  .ti-or-cluster--bathurst .ti-or-pola:nth-child(2) { left: 0;   top: 36%; width: 52%; z-index: 4; }
  .ti-or-cluster--bathurst .ti-or-pola:nth-child(3) { left: 40%; top: 62%; width: 52%; z-index: 5; }

  /* Finke scattered spread — DOM: Titanium Family, Larrimah, Daly Waters, Mataranka, Slice */
  .ti-or-cluster--finke .ti-or-pola:nth-child(1) { left: 1%;  top: 24%; width: 22%; z-index: 2; }
  .ti-or-cluster--finke .ti-or-pola:nth-child(2) { left: 20%; top: 6%;  width: 23%; z-index: 3; }
  .ti-or-cluster--finke .ti-or-pola:nth-child(3) { left: 39%; top: 16%; width: 25%; z-index: 5; }
  .ti-or-cluster--finke .ti-or-pola:nth-child(4) { left: 60%; top: 3%;  width: 23%; z-index: 4; }
  .ti-or-cluster--finke .ti-or-pola:nth-child(5) { left: 78%; top: 22%; width: 22%; z-index: 2; }
}

/* ══════════════════════════════════════════════════════════════
   Consistency sweep 2026-07-01 — safe visual bug fixes (no copy)
   See .active/qa-consistency-sweep-2026-07-01/punch-list.md
   ══════════════════════════════════════════════════════════════ */

/* O1 — /resources/ brochure + video card buttons are Bricks shortcode
   elements sitting as flex items in the card column. They stretched to the
   full card width AND carried 28px side margins, so the margin-box poked
   8px past the card on every viewport (horizontal scroll on mobile).
   align-self:flex-start stops the stretch so the button shrinks to its
   content and the margins stay inside the card. NB: these are query-loop
   clones so they carry the class but not the id - target by class, not #id.
   The wrapper also has an explicit shortcode width:100%, so override width
   too (higher specificity via the doubled class). */
.brxe-shortcode.brxe-res020,
.brxe-shortcode.brxe-res039 {
  width: auto !important;
  max-width: 100% !important;
  align-self: flex-start !important;
}

/* O2 — Google Maps' internal overlay tiles escaped the map element at very
   narrow (<=320px) widths, causing horizontal scroll on /dealers/. Clipping
   the map element contains them (standard for embedded maps). */
.brxe-map { overflow: hidden !important; }

/* O2/O3 (2026-07-01) — residual sub-pixel horizontal overflow at ultra-narrow
   (<=360px) widths: Google Maps internal tiles that escape .brxe-map on
   /dealers/ + /service-centres/, and .titanium-form-card rounding on /service/.
   <=360px is below every current iPhone (SE = 375 CSS px), so real devices are
   untouched. overflow-x: clip (not hidden) clips the stray pixels WITHOUT
   creating a scroll container or breaking the sticky header. */
@media (max-width: 360px) {
  html, body { overflow-x: clip; }
  .titanium-form-card { max-width: 100%; }
  /* Google Maps tiles escape .brxe-map's own clip, so also clip at the section
     that holds the map (dealers / service-centres / contact). */
  .brxe-section:has(.brxe-map) { overflow-x: clip; }
}

/* ==========================================================================
   Accessibility remediation (2026-07-06 Screaming Frog / axe sweep)
   ========================================================================== */

/* In-content body links (Privacy, Terms, Journal post content) must be
   distinguishable without relying on colour alone (WCAG 1.4.1). */
.brxe-post-content a,
.bricks-post-content a { text-decoration: underline; text-underline-offset: 2px; }

/* Owners Rallies page h1 (the page previously had no h1). Sits above the intro
   copy on the paper background; display font, dark, centred to fit the scrapbook. */
.ti-or-title {
  display: block;
  font-family: var(--ti-scrap-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.05;
  color: #1c1a17;
  text-align: center;
  font-size: clamp(30px, 5vw, 56px);
  max-width: 900px;
  margin: clamp(24px, 4vw, 44px) auto 0;
}

/* Skip-to-content link: off-screen until keyboard-focused (WCAG 2.4.1). */
.ti-skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100000;
  background: #141517;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 15px;
  text-decoration: none;
}
.ti-skip-link:focus { top: 8px; outline: 2px solid var(--ti-gold); outline-offset: 2px; }
