/*
 * VehicleWatch Melbourne shared responsive navigation.
 */

.vw-menu-toggle {
    display: none;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 44px;

    padding: 9px 13px;

    border: 1px solid #475569;
    border-radius: 7px;

    background: #1f2937;
    color: #fff;

    font: inherit;
    font-size: 14px;
    font-weight: 900;

    cursor: pointer;
}

.vw-menu-toggle:hover,
.vw-menu-toggle:focus-visible {
    background: #374151;
}

.vw-menu-toggle:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.6);
    outline-offset: 2px;
}

.vw-menu-icon {
    position: relative;

    display: inline-block;

    width: 20px;
    height: 14px;

    flex: 0 0 auto;
}

.vw-menu-icon::before,
.vw-menu-icon::after,
.vw-menu-icon span {
    content: "";

    position: absolute;

    left: 0;

    width: 20px;
    height: 2px;

    border-radius: 2px;

    background: currentColor;

    transition:
        transform 0.16s ease,
        top 0.16s ease,
        opacity 0.16s ease;
}

.vw-menu-icon::before {
    top: 0;
}

.vw-menu-icon span {
    top: 6px;
}

.vw-menu-icon::after {
    top: 12px;
}

.vw-menu-toggle[aria-expanded="true"]
.vw-menu-icon::before {
    top: 6px;
    transform: rotate(45deg);
}

.vw-menu-toggle[aria-expanded="true"]
.vw-menu-icon span {
    opacity: 0;
}

.vw-menu-toggle[aria-expanded="true"]
.vw-menu-icon::after {
    top: 6px;
    transform: rotate(-45deg);
}


@media (
    max-width: 850px
) {

    header {
        position: relative;
    }

    .vw-menu-toggle {
        display: inline-flex;

        margin-left: auto;

        flex: 0 0 auto;
    }

    header > nav,
    header > .header-actions {
        display: none !important;

        width: 100%;

        margin: 0;

        padding-top: 2px;

        flex-direction: column !important;
        align-items: stretch !important;

        gap: 8px !important;
    }

    header > nav.vw-menu-open,
    header > .header-actions.vw-menu-open {
        display: flex !important;
    }

    header > nav .nav-button,
    header > .header-actions .header-button {
        display: block;

        width: 100%;
        box-sizing: border-box;

        min-height: 44px;

        padding: 11px 13px;

        text-align: left;
    }
}


@media (
    max-width: 520px
) {

    header {
        gap: 10px !important;

        padding:
            10px
            12px !important;
    }

    .brand-logo {
        width: 56px !important;
        height: 56px !important;
    }

    .brand-title {
        font-size: 18px !important;
        line-height: 1.15;
    }

    .brand-subtitle {
        font-size: 11px !important;
        line-height: 1.3;
    }

    .vw-menu-toggle {
        min-height: 42px;

        padding:
            8px
            11px;
    }
}


/*
 * ----------------------------------------------------------
 * VehicleWatch mobile primary sighting action
 * ----------------------------------------------------------
 *
 * Reporting a sighting is the primary mobile action.
 *
 * On ordinary public pages the action remains visible directly
 * beneath the first header row. Active case pages already have
 * their own in-page + smart bottom sighting CTA, so we avoid
 * displaying a duplicate there.
 */

.vw-mobile-sighting-action {
    display: none;
}


@media (max-width: 850px) {

    /*
     * Keep the VehicleWatch mobile navigation available while
     * the user scrolls.
     */
    header {
        position: sticky !important;
        top: 0;

        z-index: 1800;

        box-shadow:
            0 2px 10px
            rgba(
                15,
                23,
                42,
                0.16
            );
    }


    /*
     * Existing flex header:
     *
     * row 1 = brand + Menu
     * row 2 = Report a sighting
     * row 3 = expanded hamburger menu
     */
    header > .brand {
        order: 0;
    }

    header > .vw-menu-toggle {
        order: 1;
    }


    .vw-mobile-sighting-action {
        order: 2;

        display: flex;

        flex:
            1 0 100%;

        width:
            100%;

        min-height:
            44px;

        align-items:
            center;

        justify-content:
            center;

        box-sizing:
            border-box;

        padding:
            10px
            16px;

        border:
            1px solid #b91c1c;

        border-radius:
            9px;

        background:
            #dc2626;

        color:
            #ffffff;

        text-decoration:
            none;

        text-align:
            center;

        font-size:
            15px;

        font-weight:
            900;

        line-height:
            1.2;

        box-shadow:
            0 2px 6px
            rgba(
                15,
                23,
                42,
                0.16
            );
    }


    .vw-mobile-sighting-action:hover,
    .vw-mobile-sighting-action:focus {
        background:
            #b91c1c;

        color:
            #ffffff;
    }


    .vw-mobile-sighting-action:focus-visible {
        outline:
            3px solid
            rgba(
                248,
                113,
                113,
                0.55
            );

        outline-offset:
            2px;
    }


    header > nav,
    header > .header-actions {
        order: 3;
    }


    /*
     * On the public case page we already have:
     *
     * - the main Report a sighting button while it is visible;
     * - the smart bottom dock after it scrolls away.
     *
     * A third CTA in the header would be unnecessary.
     */
    body.vw-case-page
    .vw-mobile-sighting-action {
        display:
            none !important;
    }


    /*
     * The user is already in the sighting workflow here.
     */
    body.vw-report-sighting-page
    .vw-mobile-sighting-action {
        display:
            none !important;
    }


    /*
     * ------------------------------------------------------
     * Mobile hamburger priority
     * ------------------------------------------------------
     */

    header > nav .vw-nav-map,
    header > .header-actions .vw-nav-map {
        order: 10;
    }

    header > nav .vw-nav-activity,
    header > .header-actions .vw-nav-activity {
        order: 20;
    }

    header > nav .vw-nav-report,
    header > .header-actions .vw-nav-report {
        order: 30;
    }

    header > nav .vw-nav-manage,
    header > .header-actions .vw-nav-manage {
        order: 40;
    }

    header > nav .vw-nav-statistics,
    header > .header-actions .vw-nav-statistics {
        order: 50;
    }

    header > nav .vw-nav-how,
    header > .header-actions .vw-nav-how {
        order: 60;
    }

    header > nav .vw-nav-faq,
    header > .header-actions .vw-nav-faq {
        order: 70;
    }

    header > nav .vw-nav-philosophy,
    header > .header-actions .vw-nav-philosophy {
        order: 80;
    }

}


@media (max-width: 520px) {

    .vw-mobile-sighting-action {
        min-height:
            42px;

        padding:
            9px
            14px;

        font-size:
            15px;
    }

}



/*
 * ----------------------------------------------------------
 * VehicleWatch compact mobile header v2
 * ----------------------------------------------------------
 *
 * Phone layout:
 *
 * [ logo + VehicleWatch branding ] [ hamburger ]
 * [        Report a sighting                  ]
 *
 * Keeps the primary action prominent while recovering
 * useful vertical screen space.
 */

@media (max-width: 850px) {

    header {
        display:
            grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        align-items:
            center !important;

        column-gap:
            10px !important;

        row-gap:
            9px !important;

        padding:
            9px
            12px !important;
    }


    /*
     * Brand occupies the available width in row one.
     */
    header > .brand {
        grid-column:
            1;

        grid-row:
            1;

        min-width:
            0;

        margin:
            0;
    }


    /*
     * Hamburger sits beside the brand rather than wrapping
     * onto its own line.
     */
    header > .vw-menu-toggle {
        grid-column:
            2;

        grid-row:
            1;

        margin:
            0 !important;

        min-width:
            44px;

        width:
            44px;

        min-height:
            44px;

        padding:
            0 !important;

        gap:
            0;

        border-radius:
            9px;
    }


    /*
     * The icon already has an accessible button label via
     * aria-label, so the visible word "Menu" is unnecessary
     * on a phone.
     */
    .vw-menu-toggle > span:last-child {
        display:
            none;
    }


    .vw-menu-icon {
        width:
            22px;

        height:
            16px;
    }


    .vw-menu-icon::before,
    .vw-menu-icon::after,
    .vw-menu-icon span {
        width:
            22px;

        height:
            2px;
    }


    .vw-menu-icon span {
        top:
            7px;
    }


    .vw-menu-icon::after {
        top:
            14px;
    }


    .vw-menu-toggle[aria-expanded="true"]
    .vw-menu-icon::before,
    .vw-menu-toggle[aria-expanded="true"]
    .vw-menu-icon::after {
        top:
            7px;
    }


    /*
     * Primary mobile action remains on its own full-width row.
     */
    .vw-mobile-sighting-action {
        grid-column:
            1 / -1;

        grid-row:
            2;

        width:
            100%;

        min-height:
            44px;

        margin:
            0;

        padding:
            9px
            14px;

        border-radius:
            9px;

        font-size:
            15px;

        line-height:
            1.15;
    }


    /*
     * Expanded hamburger menu occupies the next full row.
     */
    header > nav,
    header > .header-actions {
        grid-column:
            1 / -1;

        grid-row:
            3;

        width:
            100%;
    }

}


@media (max-width: 520px) {

    header {
        padding:
            8px
            10px !important;

        column-gap:
            8px !important;

        row-gap:
            8px !important;
    }


    .brand {
        gap:
            8px !important;
    }


    .brand-logo {
        width:
            48px !important;

        height:
            48px !important;

        border-radius:
            7px !important;
    }


    .brand-title {
        font-size:
            17px !important;

        line-height:
            1.12 !important;

        white-space:
            nowrap;

        overflow:
            hidden;

        text-overflow:
            ellipsis;
    }


    .brand-subtitle {
        margin-top:
            2px !important;

        font-size:
            10.5px !important;

        line-height:
            1.2 !important;

        white-space:
            nowrap;

        overflow:
            hidden;

        text-overflow:
            ellipsis;
    }


    .vw-menu-toggle {
        width:
            42px !important;

        min-width:
            42px !important;

        min-height:
            42px !important;
    }


    .vw-mobile-sighting-action {
        min-height:
            42px;

        padding:
            8px
            12px;

        font-size:
            14.5px;
    }

}



/*
 * VehicleWatch Email Security
 */

.vw-nav-security {
    background: #047857 !important;
    color: white !important;
}

.vw-nav-security:hover {
    background: #065f46 !important;
}


/*
 * ----------------------------------------------------------
 * VehicleWatch Email Security navigation
 * ----------------------------------------------------------
 */

.vw-nav-email-security {
    background: #059669 !important;
    color: white !important;
}

.vw-nav-email-security:hover,
.vw-nav-email-security:focus {
    background: #047857 !important;
    color: white !important;
}

/*
 * ----------------------------------------------------------
 * VehicleWatch Email Security navigation
 * ----------------------------------------------------------
 *
 * Intentionally bright so the independent email-verification
 * facility is obvious within the dark VehicleWatch header.
 */

.vw-nav-email-security {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 9px 13px !important;

    border:
        1px solid
        #4ade80 !important;

    border-radius: 6px !important;

    background:
        #22c55e !important;

    color:
        #052e16 !important;

    text-decoration: none !important;

    font-weight: 900 !important;
    font-size: 13px !important;

    white-space: nowrap !important;

    box-shadow:
        0 1px 2px
        rgba(0, 0, 0, 0.18) !important;
}

.vw-nav-email-security:hover,
.vw-nav-email-security:focus {
    background:
        #16a34a !important;

    border-color:
        #22c55e !important;

    color:
        #ffffff !important;

    text-decoration: none !important;
}

.vw-nav-email-security:focus-visible {
    outline:
        3px solid
        rgba(134, 239, 172, 0.55) !important;

    outline-offset:
        2px !important;
}




/*
 * ==========================================================
 * VehicleWatch canonical public header
 * ==========================================================
 *
 * All public pages use these exact dimensions regardless of
 * whether their older inline CSS uses .nav-button or
 * .header-button.
 */

body > header {
    box-sizing: border-box !important;

    min-height: 100px !important;

    padding:
        14px
        20px !important;

    background:
        #111827 !important;

    color:
        #ffffff !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        space-between !important;

    gap:
        18px !important;

    flex-wrap:
        wrap !important;
}


/*
 * Brand
 */

body > header .brand {
    display:
        flex !important;

    align-items:
        center !important;

    gap:
        10px !important;

    min-width:
        0 !important;

    color:
        #ffffff !important;

    text-decoration:
        none !important;
}

body > header .brand-logo {
    display:
        block !important;

    width:
        72px !important;

    height:
        72px !important;

    object-fit:
        contain !important;

    object-position:
        center !important;

    border-radius:
        8px !important;

    background:
        #ffffff !important;

    flex:
        0 0 auto !important;
}

body > header .brand-text {
    min-width:
        0 !important;
}

body > header .brand-title {
    margin:
        0 !important;

    font-size:
        20px !important;

    line-height:
        1.2 !important;

    font-weight:
        900 !important;
}

body > header .brand-subtitle {
    margin-top:
        2px !important;

    color:
        #cbd5e1 !important;

    font-size:
        12px !important;

    line-height:
        1.35 !important;
}


/*
 * Public navigation container.
 *
 * This deliberately targets the ID rather than nav/div so the
 * homepage and internal-page markup behave identically.
 */

#vw-public-menu {
    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        flex-end !important;

    flex-wrap:
        wrap !important;

    gap:
        9px !important;
}


/*
 * Canonical public navigation button geometry.
 *
 * Both historical class names receive exactly the same box
 * dimensions.
 */

#vw-public-menu .nav-button,
#vw-public-menu .header-button {
    box-sizing:
        border-box !important;

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    min-height:
        34px !important;

    padding:
        8px
        11px !important;

    margin:
        0 !important;

    border:
        1px solid transparent !important;

    border-radius:
        6px !important;

    color:
        #ffffff !important;

    text-decoration:
        none !important;

    font-family:
        inherit !important;

    font-size:
        13px !important;

    font-weight:
        800 !important;

    line-height:
        1.2 !important;

    white-space:
        nowrap !important;

    vertical-align:
        middle !important;
}


/*
 * Current-page state must not change button dimensions.
 */

#vw-public-menu a[aria-current="page"] {
    border-width:
        1px !important;

    box-shadow:
        inset 0 0 0 1px
        rgba(
            255,
            255,
            255,
            0.48
        ) !important;
}


/*
 * Email Security keeps its strong visual identity but uses the
 * same geometry as every other public navigation button.
 */

#vw-public-menu .vw-nav-email-security {
    min-height:
        34px !important;

    padding:
        8px
        11px !important;

    border:
        1px solid transparent !important;

    background:
        #22c55e !important;

    color:
        #052e16 !important;

    box-shadow:
        none !important;
}

#vw-public-menu .vw-nav-email-security:hover,
#vw-public-menu .vw-nav-email-security:focus {
    background:
        #16a34a !important;

    color:
        #ffffff !important;
}


/*
 * Keyboard focus without changing layout.
 */

#vw-public-menu a:focus-visible {
    outline:
        3px solid
        rgba(
            255,
            255,
            255,
            0.50
        ) !important;

    outline-offset:
        2px !important;
}


/*
 * Mobile keeps the shared geometry while allowing the existing
 * menu JS/CSS to control opening and closing.
 */

@media (max-width: 850px) {

    body > header {
        min-height:
            0 !important;

        padding:
            12px
            14px !important;

        gap:
            10px !important;
    }

    #vw-public-menu {
        gap:
            8px !important;
    }

    #vw-public-menu .nav-button,
    #vw-public-menu .header-button {
        min-height:
            42px !important;

        padding:
            10px
            12px !important;
    }
}



/*
 * ----------------------------------------------------------
 * Current-page navigation normalisation
 * ----------------------------------------------------------
 *
 * Preserve aria-current for accessibility without changing
 * the visual dimensions or apparent size of the button.
 */

#vw-public-menu a[aria-current="page"] {
    min-height:
        34px !important;

    padding:
        8px
        11px !important;

    margin:
        0 !important;

    border:
        1px solid transparent !important;

    box-shadow:
        none !important;

    transform:
        none !important;

    outline-offset:
        2px !important;
}

@media (max-width: 850px) {

    #vw-public-menu a[aria-current="page"] {
        min-height:
            42px !important;

        padding:
            10px
            12px !important;
    }
}



/*
 * ----------------------------------------------------------
 * Canonical VehicleWatch header typography
 * ----------------------------------------------------------
 *
 * Public pages use different body font stacks. The header
 * must not inherit those differences.
 */

body > header,
body > header .brand,
body > header .brand-title,
body > header .brand-subtitle,
body > header #vw-public-menu,
body > header #vw-public-menu a,
body > header .vw-menu-toggle,
body > header .vw-mobile-sighting-action {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}


/*
 * Ensure navigation text metrics are identical everywhere.
 */

#vw-public-menu .nav-button,
#vw-public-menu .header-button,
#vw-public-menu .vw-nav-email-security {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size:
        13px !important;

    font-weight:
        800 !important;

    font-style:
        normal !important;

    line-height:
        1.2 !important;

    letter-spacing:
        normal !important;

    text-transform:
        none !important;
}

/* VW_GROUPED_HEADER_START */

/*
 * ==========================================================
 * VehicleWatch canonical grouped public navigation
 * ==========================================================
 *
 * EXPLORE -> TRUST & SUPPORT -> ACTIONS
 */


/*
 * Main grouped navigation container.
 */

#vw-public-menu.vw-header-grouped {
    display:
        flex !important;

    align-items:
        flex-end !important;

    justify-content:
        flex-end !important;

    flex-wrap:
        wrap !important;

    gap:
        22px !important;

    min-width:
        0 !important;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}


/*
 * Individual conceptual groups stay together.
 */

#vw-public-menu
.vw-nav-group {
    display:
        flex;

    flex-direction:
        column;

    align-items:
        stretch;

    flex:
        0 0 auto;

    gap:
        5px;
}


/*
 * Centred heading with subtle horizontal rules.
 */

#vw-public-menu
.vw-nav-group-label {
    width:
        100%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    padding:
        0;

    color:
        #94a3b8;

    text-align:
        center;

    font-size:
        10px;

    font-weight:
        900;

    line-height:
        1;

    letter-spacing:
        0.09em;

    text-transform:
        uppercase;

    white-space:
        nowrap;
}

#vw-public-menu
.vw-nav-group-label::before,
#vw-public-menu
.vw-nav-group-label::after {
    content:
        "";

    display:
        block;

    height:
        1px;

    min-width:
        12px;

    flex:
        1 1 auto;

    background:
        rgba(
            148,
            163,
            184,
            0.30
        );
}


/*
 * Button rows do not split internally.
 */

#vw-public-menu
.vw-nav-group-buttons {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-wrap:
        nowrap;

    gap:
        9px;
}


/*
 * One canonical button geometry.
 */

#vw-public-menu
.vw-nav-button {
    box-sizing:
        border-box !important;

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    min-height:
        34px !important;

    margin:
        0 !important;

    padding:
        8px 11px !important;

    border:
        1px solid transparent !important;

    border-radius:
        6px !important;

    color:
        #ffffff !important;

    text-decoration:
        none !important;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size:
        13px !important;

    font-style:
        normal !important;

    font-weight:
        800 !important;

    line-height:
        1.2 !important;

    letter-spacing:
        normal !important;

    text-transform:
        none !important;

    white-space:
        nowrap !important;

    vertical-align:
        middle !important;

    transform:
        none !important;

    transition:
        background-color 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease !important;
}


/*
 * Current page indication.
 *
 * Inset only -- never alters button dimensions.
 */

#vw-public-menu
.vw-nav-button[aria-current="page"] {
    box-shadow:
        inset 0 -2px 0
        rgba(
            255,
            255,
            255,
            0.90
        ),
        inset 0 0 0 1px
        rgba(
            255,
            255,
            255,
            0.20
        ) !important;
}


/*
 * EXPLORE
 */

#vw-public-menu
.vw-nav-map {
    background:
        #475569 !important;
}

#vw-public-menu
.vw-nav-map:hover,
#vw-public-menu
.vw-nav-map:focus {
    background:
        #334155 !important;
}


#vw-public-menu
.vw-nav-activity {
    background:
        #2563eb !important;
}

#vw-public-menu
.vw-nav-activity:hover,
#vw-public-menu
.vw-nav-activity:focus {
    background:
        #1d4ed8 !important;
}


#vw-public-menu
.vw-nav-statistics {
    background:
        #7c3aed !important;
}

#vw-public-menu
.vw-nav-statistics:hover,
#vw-public-menu
.vw-nav-statistics:focus {
    background:
        #6d28d9 !important;
}


/*
 * TRUST & SUPPORT
 */

#vw-public-menu
.vw-nav-how {
    background:
        #0f766e !important;
}

#vw-public-menu
.vw-nav-how:hover,
#vw-public-menu
.vw-nav-how:focus {
    background:
        #115e59 !important;
}


/*
 * Email verification keeps its unique trust colour.
 */

#vw-public-menu
.vw-nav-email-security {
    background:
        #22c55e !important;

    color:
        #052e16 !important;
}

#vw-public-menu
.vw-nav-email-security:hover,
#vw-public-menu
.vw-nav-email-security:focus {
    background:
        #16a34a !important;

    color:
        #ffffff !important;
}


/*
 * Secondary trust/support functions are deliberately quieter.
 */

#vw-public-menu
.vw-nav-faq,
#vw-public-menu
.vw-nav-philosophy,
#vw-public-menu
.vw-nav-contact {
    background:
        #475569 !important;

    color:
        #ffffff !important;
}

#vw-public-menu
.vw-nav-faq:hover,
#vw-public-menu
.vw-nav-philosophy:hover,
#vw-public-menu
.vw-nav-contact:hover,
#vw-public-menu
.vw-nav-faq:focus,
#vw-public-menu
.vw-nav-philosophy:focus,
#vw-public-menu
.vw-nav-contact:focus {
    background:
        #334155 !important;
}


/*
 * ACTIONS
 */

#vw-public-menu
.vw-nav-manage {
    background:
        #d97706 !important;
}

#vw-public-menu
.vw-nav-manage:hover,
#vw-public-menu
.vw-nav-manage:focus {
    background:
        #b45309 !important;
}


#vw-public-menu
.vw-nav-report {
    background:
        #dc2626 !important;
}

#vw-public-menu
.vw-nav-report:hover,
#vw-public-menu
.vw-nav-report:focus {
    background:
        #b91c1c !important;
}


/*
 * Keyboard focus.
 */

#vw-public-menu
.vw-nav-button:focus-visible {
    outline:
        3px solid
        rgba(
            255,
            255,
            255,
            0.55
        ) !important;

    outline-offset:
        2px !important;
}


/*
 * Medium desktop.
 *
 * Keep each complete group together. If the full navigation
 * cannot fit beside the brand, the header may wrap cleanly.
 */

@media (max-width: 1750px) {

    #vw-public-menu.vw-header-grouped {
        flex-basis:
            100% !important;

        justify-content:
            center !important;

        gap:
            18px !important;
    }
}


/*
 * Smaller desktop/tablet.
 *
 * Remove heading decoration before the buttons become cramped.
 */

@media (
    min-width: 851px
) and (
    max-width: 1100px
) {

    #vw-public-menu
    .vw-nav-group-label {
        display:
            none !important;
    }

    #vw-public-menu
    .vw-nav-group {
        gap:
            0 !important;
    }

    #vw-public-menu.vw-header-grouped {
        gap:
            14px !important;
    }
}


/*
 * Mobile.
 *
 * Group wrappers disappear visually so the existing hamburger
 * menu remains a simple stack of usable buttons.
 */

@media (max-width: 850px) {

    #vw-public-menu.vw-header-grouped {
        display:
            none !important;

        width:
            100% !important;

        flex-direction:
            column !important;

        align-items:
            stretch !important;

        justify-content:
            flex-start !important;

        gap:
            8px !important;
    }

    #vw-public-menu.vw-header-grouped.vw-menu-open {
        display:
            flex !important;
    }

    #vw-public-menu
    .vw-nav-group,
    #vw-public-menu
    .vw-nav-group-buttons {
        display:
            contents !important;
    }

    #vw-public-menu
    .vw-nav-group-label {
        display:
            none !important;
    }

    #vw-public-menu
    .vw-nav-button {
        width:
            100% !important;

        min-height:
            44px !important;

        padding:
            11px 13px !important;
    }
}


/*
 * Respect reduced-motion preference.
 */

@media (
    prefers-reduced-motion:
    reduce
) {

    #vw-public-menu
    .vw-nav-button {
        transition:
            none !important;
    }
}

/* VW_GROUPED_HEADER_END */


/*
 * ==========================================================
 * VehicleWatch grouped mobile navigation
 * ==========================================================
 */

@media (max-width: 850px) {

    /*
     * Compact but recognisable brand header.
     */

    body > header {
        padding:
            10px
            12px !important;

        gap:
            10px !important;

        align-items:
            center !important;
    }

    body > header .brand-logo {
        width:
            56px !important;

        height:
            56px !important;
    }

    body > header .brand-title {
        font-size:
            18px !important;
    }

    body > header .brand-subtitle {
        font-size:
            11px !important;
    }


    /*
     * Open navigation panel.
     */

    #vw-public-menu.vw-header-grouped.vw-menu-open {
        display:
            flex !important;

        width:
            100% !important;

        padding:
            12px 0 4px !important;

        flex-direction:
            column !important;

        align-items:
            stretch !important;

        gap:
            18px !important;

        border-top:
            1px solid
            rgba(
                148,
                163,
                184,
                0.22
            ) !important;
    }


    /*
     * Restore the conceptual groups on mobile.
     */

    #vw-public-menu
    .vw-nav-group {
        display:
            flex !important;

        flex-direction:
            column !important;

        align-items:
            stretch !important;

        width:
            100% !important;

        gap:
            7px !important;
    }


    /*
     * Group heading.
     */

    #vw-public-menu
    .vw-nav-group-label {
        display:
            flex !important;

        width:
            100% !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        gap:
            8px !important;

        color:
            #94a3b8 !important;

        font-size:
            10px !important;

        font-weight:
            900 !important;

        line-height:
            1 !important;

        letter-spacing:
            0.09em !important;

        text-transform:
            uppercase !important;
    }


    /*
     * Horizontal rule either side of heading.
     */

    #vw-public-menu
    .vw-nav-group-label::before,
    #vw-public-menu
    .vw-nav-group-label::after {
        content:
            "" !important;

        display:
            block !important;

        height:
            1px !important;

        flex:
            1 1 auto !important;

        background:
            rgba(
                148,
                163,
                184,
                0.28
            ) !important;
    }


    /*
     * Vertical mobile button stack.
     */

    #vw-public-menu
    .vw-nav-group-buttons {
        display:
            flex !important;

        flex-direction:
            column !important;

        align-items:
            stretch !important;

        width:
            100% !important;

        gap:
            7px !important;
    }


    /*
     * Comfortable touch targets.
     */

    #vw-public-menu
    .vw-nav-button {
        width:
            100% !important;

        min-height:
            48px !important;

        padding:
            12px
            14px !important;

        justify-content:
            center !important;

        border-radius:
            8px !important;

        font-size:
            14px !important;

        font-weight:
            800 !important;
    }


    /*
     * Give the high-consequence action group slightly more
     * visual separation.
     */

    #vw-public-menu
    .vw-nav-group-actions {
        padding-top:
            3px !important;
    }


    /*
     * Prevent an open menu from extending beyond a small phone
     * without allowing the whole page header to become awkward.
     */

    #vw-public-menu.vw-menu-open {
        max-height:
            calc(100vh - 90px) !important;

        overflow-y:
            auto !important;

        overscroll-behavior:
            contain !important;

        -webkit-overflow-scrolling:
            touch !important;
    }

}



/*
 * ==========================================================
 * VehicleWatch compact centred mobile navigation
 * ==========================================================
 */

@media (max-width: 850px) {

    /*
     * Centre each conceptual group and give it a sensible
     * mobile width rather than spanning the whole viewport.
     */

    #vw-public-menu
    .vw-nav-group {
        width:
            clamp(
                220px,
                68vw,
                280px
            ) !important;

        max-width:
            calc(100vw - 32px) !important;

        align-self:
            center !important;
    }


    /*
     * Group heading/rules span exactly the same width as
     * the buttons beneath them.
     */

    #vw-public-menu
    .vw-nav-group-label {
        width:
            100% !important;
    }


    /*
     * Compact centred button stack.
     */

    #vw-public-menu
    .vw-nav-group-buttons {
        width:
            100% !important;

        align-items:
            stretch !important;
    }

    #vw-public-menu
    .vw-nav-button {
        width:
            100% !important;

        min-height:
            48px !important;

        padding:
            11px
            18px !important;

        border-radius:
            8px !important;

        font-size:
            14px !important;

        text-align:
            center !important;
    }


    /*
     * ------------------------------------------------------
     * Canonical mobile order.
     *
     * Explicitly defeat any older mobile order rules so the
     * navigation is learned once and behaves the same on
     * desktop and mobile.
     * ------------------------------------------------------
     */

    #vw-public-menu
    .vw-nav-group-explore {
        order:
            1 !important;
    }

    #vw-public-menu
    .vw-nav-group-trust {
        order:
            2 !important;
    }

    #vw-public-menu
    .vw-nav-group-actions {
        order:
            3 !important;
    }


    /*
     * Explore
     */

    #vw-public-menu
    .vw-nav-map {
        order:
            1 !important;
    }

    #vw-public-menu
    .vw-nav-activity {
        order:
            2 !important;
    }

    #vw-public-menu
    .vw-nav-statistics {
        order:
            3 !important;
    }


    /*
     * Trust & Support
     */

    #vw-public-menu
    .vw-nav-how {
        order:
            1 !important;
    }

    #vw-public-menu
    .vw-nav-email-security {
        order:
            2 !important;
    }

    #vw-public-menu
    .vw-nav-faq {
        order:
            3 !important;
    }

    #vw-public-menu
    .vw-nav-philosophy {
        order:
            4 !important;
    }

    #vw-public-menu
    .vw-nav-contact {
        order:
            5 !important;
    }


    /*
     * Actions
     */

    #vw-public-menu
    .vw-nav-manage {
        order:
            1 !important;
    }

    #vw-public-menu
    .vw-nav-report {
        order:
            2 !important;
    }

}

/* VW_MOBILE_GRID_HEADER_START */

/*
 * ==========================================================
 * VehicleWatch compact grouped mobile header
 * ==========================================================
 */

@media (max-width: 850px) {

    /*
     * ------------------------------------------------------
     * Header geometry
     *
     * Brand + menu button share the first row.
     * Report-a-sighting occupies the second row.
     * Navigation occupies the third row when open.
     * ------------------------------------------------------
     */

    body > header {
        display:
            grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            auto !important;

        grid-template-rows:
            auto
            auto
            auto !important;

        column-gap:
            12px !important;

        row-gap:
            12px !important;

        align-items:
            center !important;

        padding:
            12px !important;
    }


    /*
     * Brand.
     */

    body > header .brand {
        grid-column:
            1 !important;

        grid-row:
            1 !important;

        justify-self:
            start !important;

        min-width:
            0 !important;
    }

    body > header .brand-logo {
        width:
            56px !important;

        height:
            56px !important;
    }

    body > header .brand-title {
        font-size:
            18px !important;

        line-height:
            1.15 !important;
    }

    body > header .brand-subtitle {
        margin-top:
            3px !important;

        font-size:
            11px !important;

        line-height:
            1.25 !important;
    }


    /*
     * Hamburger / close control.
     */

    body > header .vw-menu-toggle {
        grid-column:
            2 !important;

        grid-row:
            1 !important;

        align-self:
            center !important;

        justify-self:
            end !important;

        margin:
            0 !important;
    }


    /*
     * Fast mobile sighting action.
     */

    body > header
    #vw-mobile-sighting-action {
        grid-column:
            1 / -1 !important;

        grid-row:
            2 !important;

        width:
            100% !important;

        margin:
            0 !important;
    }


    /*
     * ------------------------------------------------------
     * Open navigation panel.
     * ------------------------------------------------------
     */

    #vw-public-menu.vw-header-grouped {
        grid-column:
            1 / -1 !important;

        grid-row:
            3 !important;

        width:
            100% !important;

        margin:
            0 !important;

        padding:
            12px 0
            calc(
                10px +
                env(
                    safe-area-inset-bottom,
                    0px
                )
            ) !important;

        border-top:
            1px solid
            rgba(
                148,
                163,
                184,
                0.20
            ) !important;
    }


    #vw-public-menu.vw-header-grouped.vw-menu-open {
        display:
            flex !important;

        flex-direction:
            column !important;

        align-items:
            stretch !important;

        gap:
            18px !important;

        max-height:
            calc(
                100dvh -
                190px
            ) !important;

        overflow-y:
            auto !important;

        overflow-x:
            hidden !important;

        overscroll-behavior:
            contain !important;

        -webkit-overflow-scrolling:
            touch !important;
    }


    /*
     * Fallback for browsers without dynamic viewport units.
     */

    @supports not (height: 100dvh) {

        #vw-public-menu.vw-header-grouped.vw-menu-open {
            max-height:
                calc(
                    100vh -
                    190px
                ) !important;
        }
    }


    /*
     * ------------------------------------------------------
     * Navigation groups.
     * ------------------------------------------------------
     */

    #vw-public-menu
    .vw-nav-group {
        display:
            flex !important;

        flex-direction:
            column !important;

        align-items:
            stretch !important;

        width:
            min(
                100%,
                560px
            ) !important;

        margin:
            0 auto !important;

        gap:
            8px !important;
    }


    /*
     * Group labels stay centred over their button grid.
     */

    #vw-public-menu
    .vw-nav-group-label {
        display:
            flex !important;

        width:
            100% !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        gap:
            9px !important;

        color:
            #94a3b8 !important;

        font-size:
            10px !important;

        font-weight:
            900 !important;

        line-height:
            1 !important;

        letter-spacing:
            0.10em !important;

        text-transform:
            uppercase !important;

        white-space:
            nowrap !important;
    }


    #vw-public-menu
    .vw-nav-group-label::before,
    #vw-public-menu
    .vw-nav-group-label::after {
        content:
            "" !important;

        height:
            1px !important;

        flex:
            1 1 auto !important;

        background:
            rgba(
                148,
                163,
                184,
                0.27
            ) !important;
    }


    /*
     * Canonical mobile button.
     */

    #vw-public-menu
    .vw-nav-button {
        width:
            100% !important;

        min-width:
            0 !important;

        min-height:
            48px !important;

        padding:
            10px
            9px !important;

        border-radius:
            8px !important;

        font-size:
            13px !important;

        line-height:
            1.15 !important;

        text-align:
            center !important;

        white-space:
            normal !important;
    }


    /*
     * ------------------------------------------------------
     * EXPLORE
     *
     * Map | Latest activity | Statistics
     * ------------------------------------------------------
     */

    #vw-public-menu
    .vw-nav-group-explore
    .vw-nav-group-buttons {
        display:
            grid !important;

        grid-template-columns:
            0.75fr
            1.35fr
            1fr !important;

        gap:
            8px !important;

        width:
            100% !important;
    }


    /*
     * ------------------------------------------------------
     * TRUST & SUPPORT
     *
     * How it works & privacy spans the full width.
     *
     * Email security | FAQ
     * Philosophy     | Contact
     * ------------------------------------------------------
     */

    #vw-public-menu
    .vw-nav-group-trust
    .vw-nav-group-buttons {
        display:
            grid !important;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;

        gap:
            8px !important;

        width:
            100% !important;
    }


    #vw-public-menu
    .vw-nav-group-trust
    .vw-nav-how {
        grid-column:
            1 / -1 !important;
    }


    #vw-public-menu
    .vw-nav-group-trust
    .vw-nav-email-security {
        grid-column:
            1 !important;
    }

    #vw-public-menu
    .vw-nav-group-trust
    .vw-nav-faq {
        grid-column:
            2 !important;
    }

    #vw-public-menu
    .vw-nav-group-trust
    .vw-nav-philosophy {
        grid-column:
            1 !important;
    }

    #vw-public-menu
    .vw-nav-group-trust
    .vw-nav-contact {
        grid-column:
            2 !important;
    }


    /*
     * ------------------------------------------------------
     * ACTIONS
     *
     * Manage report | Report stolen vehicle
     * ------------------------------------------------------
     */

    #vw-public-menu
    .vw-nav-group-actions
    .vw-nav-group-buttons {
        display:
            grid !important;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;

        gap:
            8px !important;

        width:
            100% !important;
    }


    /*
     * Slightly smaller action text where necessary to keep
     * both important actions readable without huge buttons.
     */

    #vw-public-menu
    .vw-nav-group-actions
    .vw-nav-button {
        font-size:
            12.5px !important;
    }


    /*
     * ------------------------------------------------------
     * Very narrow phones.
     *
     * Below ~350 CSS pixels, fall back gracefully rather than
     * forcing unreadably narrow controls.
     * ------------------------------------------------------
     */

    @media (max-width: 350px) {

        #vw-public-menu
        .vw-nav-group-explore
        .vw-nav-group-buttons {
            grid-template-columns:
                1fr !important;
        }

        #vw-public-menu
        .vw-nav-group-trust
        .vw-nav-group-buttons,
        #vw-public-menu
        .vw-nav-group-actions
        .vw-nav-group-buttons {
            grid-template-columns:
                1fr !important;
        }

        #vw-public-menu
        .vw-nav-group-trust
        .vw-nav-how,
        #vw-public-menu
        .vw-nav-group-trust
        .vw-nav-email-security,
        #vw-public-menu
        .vw-nav-group-trust
        .vw-nav-faq,
        #vw-public-menu
        .vw-nav-group-trust
        .vw-nav-philosophy,
        #vw-public-menu
        .vw-nav-group-trust
        .vw-nav-contact {
            grid-column:
                1 !important;
        }
    }

}

/* VW_MOBILE_GRID_HEADER_END */

/* VW_CANONICAL_FOOTER_START */

/*
 * ==========================================================
 * VehicleWatch canonical public footer
 * ==========================================================
 *
 * Based on the original compact homepage footer.
 */

.site-footer {
    box-sizing:
        border-box !important;

    width:
        100% !important;

    min-height:
        40px !important;

    padding:
        0 16px !important;

    background:
        #111827 !important;

    color:
        #cbd5e1 !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    flex-wrap:
        nowrap !important;

    gap:
        18px !important;

    border-top:
        1px solid #1f2937 !important;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size:
        12px !important;

    line-height:
        1.3 !important;

    white-space:
        nowrap !important;
}


.site-footer strong {
    color:
        #ffffff !important;

    font-weight:
        900 !important;
}


.site-footer span,
.site-footer a {
    display:
        inline-block !important;
}


.site-footer a {
    color:
        #f8fafc !important;

    text-decoration:
        none !important;

    font-weight:
        800 !important;
}


.site-footer a:hover,
.site-footer a:focus {
    color:
        #ffffff !important;

    text-decoration:
        underline !important;

    text-underline-offset:
        2px !important;
}


.site-footer a:focus-visible {
    outline:
        2px solid #ffffff !important;

    outline-offset:
        2px !important;

    border-radius:
        2px !important;
}


/*
 * On phones the desktop one-line footer would be too wide.
 * Allow it to wrap cleanly into a compact footer block.
 */

@media (max-width: 850px) {

    .site-footer {
        min-height:
            0 !important;

        height:
            auto !important;

        padding:
            16px
            18px
            calc(
                16px +
                env(
                    safe-area-inset-bottom,
                    0px
                )
            ) !important;

        flex-wrap:
            wrap !important;

        gap:
            6px 14px !important;

        white-space:
            normal !important;

        text-align:
            center !important;
    }

    .site-footer strong {
        width:
            100% !important;

        font-size:
            13px !important;
    }

    .site-footer span:nth-of-type(1),
    .site-footer span:nth-of-type(2) {
        width:
            100% !important;
    }

}


/*
 * Very small phones: make the links easy to tap.
 */

@media (max-width: 430px) {

    .site-footer a {
        padding:
            5px 4px !important;
    }

}


/* VW_LAPTOP_FOOTER_WRAP_START */

/*
 * ==========================================================
 * VehicleWatch laptop / compact desktop footer
 * ==========================================================
 *
 * The full desktop footer is intentionally a single line on
 * wide displays. On laptop-sized desktops there may not be
 * enough horizontal room for every footer item, so allow the
 * ITEMS to flow onto a second row without switching to the
 * full mobile footer presentation.
 */

@media (min-width: 851px) and (max-width: 1500px) {

    .site-footer {
        min-height:
            0 !important;

        height:
            auto !important;

        padding:
            9px
            16px !important;

        flex-wrap:
            wrap !important;

        column-gap:
            16px !important;

        row-gap:
            7px !important;

        white-space:
            normal !important;

        text-align:
            center !important;

        overflow:
            visible !important;
    }


    /*
     * Keep each footer item intact where practical.
     * Flexbox can move an item to the next row rather than
     * breaking phrases awkwardly in the middle.
     */

    .site-footer > * {
        min-width:
            0 !important;

        white-space:
            nowrap !important;
    }

}


/*
 * On narrower laptops, give the VehicleWatch name its own
 * first row. This makes the remaining items balance cleanly.
 */

@media (min-width: 851px) and (max-width: 1150px) {

    .site-footer strong {
        flex:
            0 0 100% !important;
    }

}

/* VW_LAPTOP_FOOTER_WRAP_END */


/* VW_CANONICAL_FOOTER_END */

/* VW_DESKTOP_FOOTER_FLOW_START */

/*
 * ==========================================================
 * VehicleWatch desktop footer flow
 * ==========================================================
 *
 * Some older public pages were designed as fixed-height
 * applications and used overflow:hidden on the document.
 * That can clip a footer placed after the main content.
 *
 * Desktop public pages now permit vertical document scrolling
 * so the canonical footer is always reachable.
 */

@media (min-width: 851px) {

    html {
        min-height:
            100% !important;

        height:
            auto !important;
    }

    body {
        min-height:
            100vh !important;

        height:
            auto !important;

        overflow-x:
            hidden !important;

        overflow-y:
            auto !important;
    }


    /*
     * Footer must remain in ordinary document flow.
     */

    body > .site-footer {
        position:
            relative !important;

        display:
            flex !important;

        visibility:
            visible !important;

        opacity:
            1 !important;

        flex-shrink:
            0 !important;

        z-index:
            10 !important;
    }

}

/* VW_DESKTOP_FOOTER_FLOW_END */

/* VW_MANAGE_STICKY_FOOTER_START */

/*
 * ==========================================================
 * Manage-report page sticky footer
 * ==========================================================
 *
 * When the management form is shorter than the viewport,
 * keep the canonical footer flush with the bottom of the
 * browser rather than leaving it floating after the content.
 */

body.vw-manage-page {
    min-height:
        100vh !important;

    min-height:
        100dvh !important;

    display:
        flex !important;

    flex-direction:
        column !important;

    overflow-x:
        hidden !important;

    overflow-y:
        auto !important;
}


body.vw-manage-page > header {
    flex:
        0 0 auto !important;
}


body.vw-manage-page > main {
    flex:
        1 0 auto !important;

    width:
        100% !important;
}


body.vw-manage-page > .site-footer {
    flex:
        0 0 auto !important;

    margin-top:
        auto !important;
}


/*
 * Older browsers without dynamic viewport units.
 */

@supports not (height: 100dvh) {

    body.vw-manage-page {
        min-height:
            100vh !important;
    }

}

/* VW_MANAGE_STICKY_FOOTER_END */

/* VW_HEADER_SLOGAN_START */

.brand-slogan {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

/* VW_HEADER_SLOGAN_END */


/*
 * ==========================================================
 * VehicleWatch Australian values header - 2026-10-04
 *
 * Desktop:
 *   VehicleWatch brand | Australian values | navigation
 *
 * Tablet:
 *   brand + values on first row, navigation below
 *
 * Mobile:
 *   normal brand/actions row, Australian values below,
 *   expandable navigation below that.
 * ==========================================================
 */


.vw-values-header {
    width: 100%;

    min-height: 110px;

    padding:
        14px
        20px;

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 20px;

    flex-wrap: nowrap;
}


.vw-values-header > .brand {
    flex:
        0 0 auto;

    min-width: 0;
}


/*
 * ----------------------------------------------------------
 * AUSTRALIAN VALUES BLOCK
 * ----------------------------------------------------------
 */

.vw-australian-values {
    flex:
        0 0
        245px;

    width: 245px;

    min-width: 245px;

    min-height: 80px;

    padding:
        8px
        10px;

    display: grid;

    grid-template-columns:
        68px
        minmax(
            0,
            1fr
        );

    align-items: center;

    gap: 10px;

    border-left:
        1px solid
        rgba(
            148,
            163,
            184,
            0.35
        );

    border-right:
        1px solid
        rgba(
            148,
            163,
            184,
            0.35
        );
}


.vw-australian-flag-wrap {
    display: flex;

    align-items: center;

    justify-content: center;
}


.vw-australian-flag {
    display: block;

    width: 66px;
    height: auto;

    max-width: 100%;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.25
        );

    border-radius: 3px;

    box-shadow:
        0 2px 8px
        rgba(
            0,
            0,
            0,
            0.35
        );
}


.vw-values-copy {
    min-width: 0;

    line-height: 1.25;
}


.vw-values-heading {
    margin-bottom: 5px;

    color: #94a3b8;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.vw-values-line {
    margin-top: 2px;

    color: #f8fafc;

    font-size: 9px;

    font-weight: 800;

    line-height: 1.25;

    white-space: nowrap;
}


.vw-values-line:first-of-type {
    margin-top: 0;
}


.vw-values-dot {
    margin:
        0
        3px;

    color: #64748b;
}


.vw-values-community {
    margin-top: 5px;

    color: #cbd5e1;

    font-size: 9px;

    font-weight: 900;

    line-height: 1.25;

    white-space: nowrap;
}


/*
 * ----------------------------------------------------------
 * DESKTOP NAVIGATION WITH VALUES BLOCK
 * ----------------------------------------------------------
 */

.vw-values-header > #vw-public-menu {
    flex:
        1 1 auto;

    min-width: 0;
}


.vw-values-header .vw-header-grouped {
    gap: 14px;
}


.vw-values-header .vw-nav-group-buttons {
    gap: 7px;
}


.vw-values-header .vw-nav-button {
    white-space: nowrap;
}


/*
 * ----------------------------------------------------------
 * SMALLER DESKTOP / LAPTOP
 * ----------------------------------------------------------
 */

@media (
    max-width: 1700px
) {

    .vw-values-header {
        gap: 14px;
    }


    .vw-values-header
    .vw-australian-values {
        flex-basis: 220px;

        width: 220px;

        min-width: 220px;

        grid-template-columns:
            58px
            minmax(
                0,
                1fr
            );

        gap: 8px;

        padding:
            7px
            8px;
    }


    .vw-values-header
    .vw-australian-flag {
        width: 56px;
    }


    .vw-values-header
    .vw-values-line,

    .vw-values-header
    .vw-values-community {
        font-size: 8px;
    }


    .vw-values-header
    .vw-header-grouped {
        gap: 10px;
    }


    .vw-values-header
    .vw-nav-group-buttons {
        gap: 5px;
    }


    .vw-values-header
    .vw-nav-button {
        padding:
            7px
            8px;

        font-size: 11px;
    }

}


/*
 * ----------------------------------------------------------
 * NARROW DESKTOP / TABLET
 *
 * Do not crush the navigation. Put it on the next row.
 * ----------------------------------------------------------
 */

@media (
    max-width: 1400px
) and (
    min-width: 851px
) {

    .vw-values-header {
        flex-wrap: wrap;
    }


    .vw-values-header > .brand {
        order: 1;
    }


    .vw-values-header
    > .vw-australian-values {
        order: 2;

        flex:
            0 0
            245px;

        width: 245px;

        min-width: 245px;
    }


    .vw-values-header
    > #vw-public-menu {
        order: 3;

        flex:
            1 1
            100%;

        width: 100%;
    }

}


/*
 * ----------------------------------------------------------
 * MOBILE
 * ----------------------------------------------------------
 */

@media (
    max-width: 850px
) {

    /*
     * Some individual VehicleWatch pages historically set
     * header flex-direction: column in their local CSS.
     * The shared header now owns the mobile layout.
     */

    .vw-values-header {
        flex-direction: row;

        align-items: center;

        flex-wrap: wrap;

        min-height: 0;

        gap: 12px;

        padding:
            12px
            14px;
    }


    .vw-values-header > .brand {
        order: 1;

        flex:
            1 1 auto;

        min-width: 0;
    }


    .vw-values-header
    > .vw-mobile-sighting-action {
        order: 2;
    }


    .vw-values-header
    > .vw-menu-toggle {
        order: 3;
    }


    /*
     * Values are always visible on mobile, even while the
     * main navigation menu remains collapsed.
     */

    .vw-values-header
    > .vw-australian-values {
        order: 4;

        flex:
            1 1
            100%;

        width: 100%;

        min-width: 0;

        min-height: 0;

        padding:
            10px
            0
            2px;

        grid-template-columns:
            58px
            minmax(
                0,
                1fr
            );

        gap: 10px;

        border-left: 0;

        border-right: 0;

        border-top:
            1px solid
            rgba(
                148,
                163,
                184,
                0.30
            );
    }


    .vw-values-header
    .vw-australian-flag {
        width: 54px;
    }


    .vw-values-header
    .vw-values-heading {
        font-size: 8px;
    }


    .vw-values-header
    .vw-values-line,

    .vw-values-header
    .vw-values-community {
        font-size: 9px;
    }


    /*
     * Keep the existing hamburger/open-menu behaviour, but
     * ensure the menu follows the values block.
     */

    .vw-values-header
    > #vw-public-menu {
        order: 5;

        flex-basis: 100%;

        width: 100%;
    }

}


/*
 * ----------------------------------------------------------
 * VERY NARROW MOBILE
 * ----------------------------------------------------------
 */

@media (
    max-width: 520px
) {

    .vw-values-header {
        padding:
            10px
            11px;

        gap:
            10px
            8px;
    }


    .vw-values-header
    > .vw-australian-values {
        grid-template-columns:
            52px
            minmax(
                0,
                1fr
            );

        gap: 8px;
    }


    .vw-values-header
    .vw-australian-flag {
        width: 50px;
    }


    .vw-values-header
    .vw-values-line,

    .vw-values-header
    .vw-values-community {
        font-size: 8.5px;
    }

}

/* VW_MOBILE_VALUES_BEFORE_SIGHTING_START */

/*
 * ----------------------------------------------------------
 * VehicleWatch mobile Australian-values hierarchy
 * ----------------------------------------------------------
 *
 * Mobile layout:
 *
 * row 1 = brand + hamburger
 * row 2 = Australian values
 * row 3 = Report a sighting
 * row 4 = expanded navigation
 *
 * The older mobile header rules explicitly place the sighting
 * action in row 2. These final rules deliberately override that
 * geometry for the Australian-values header.
 */

@media (max-width: 850px) {

    body > header.vw-values-header
    > .vw-australian-values {
        grid-column:
            1 / -1 !important;

        grid-row:
            2 !important;

        order:
            2 !important;
    }


    body > header.vw-values-header
    > #vw-mobile-sighting-action {
        grid-column:
            1 / -1 !important;

        grid-row:
            3 !important;

        order:
            3 !important;
    }


    body > header.vw-values-header
    > #vw-public-menu {
        grid-column:
            1 / -1 !important;

        grid-row:
            4 !important;

        order:
            4 !important;
    }


    /*
     * Active case pages and the sighting-report workflow hide
     * the header sighting CTA. In those cases keep the opened
     * navigation immediately beneath the values instead of
     * leaving an unused row.
     */

    body.vw-case-page
    > header.vw-values-header
    > #vw-public-menu,

    body.vw-report-sighting-page
    > header.vw-values-header
    > #vw-public-menu {
        grid-row:
            3 !important;
    }

}

/* VW_MOBILE_VALUES_BEFORE_SIGHTING_END */

/* VW_MOBILE_VALUES_CENTRED_START */

/*
 * ----------------------------------------------------------
 * Compact centred Australian values - mobile
 * ----------------------------------------------------------
 *
 * Mobile presentation:
 *
 *          [flag] AUSTRALIAN VALUES
 *
 * Mateship • A Fair Go • Respect • Freedom • Rule of Law
 *          Looking Out for Each Other
 *
 * Keep the desktop presentation unchanged.
 */

@media (max-width: 850px) {

    body > header.vw-values-header
    > .vw-australian-values {
        position:
            relative !important;

        display:
            block !important;

        width:
            100% !important;

        min-width:
            0 !important;

        min-height:
            0 !important;

        padding:
            8px 2px
            6px !important;

        text-align:
            center !important;
    }


    /*
     * Put the real flag beside the centred heading instead of
     * reserving an entire left-hand column for it.
     */
    body > header.vw-values-header
    .vw-australian-flag-wrap {
        position:
            absolute !important;

        top:
            8px !important;

        left:
            calc(50% - 128px) !important;

        width:
            40px !important;

        min-width:
            40px !important;

        margin:
            0 !important;

        padding:
            0 !important;
    }


    body > header.vw-values-header
    .vw-australian-flag {
        display:
            block !important;

        width:
            40px !important;

        height:
            auto !important;

        max-width:
            none !important;
    }


    /*
     * Turn the copy area into centred flex rows.
     */
    body > header.vw-values-header
    .vw-values-copy {
        display:
            flex !important;

        flex-wrap:
            wrap !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        width:
            100% !important;

        min-width:
            0 !important;

        margin:
            0 !important;

        padding:
            0 !important;

        gap:
            0 !important;

        text-align:
            center !important;
    }


    body > header.vw-values-header
    .vw-values-heading {
        flex:
            0 0 100% !important;

        width:
            100% !important;

        min-height:
            28px !important;

        margin:
            0 0
            2px !important;

        padding:
            0 !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        text-align:
            center !important;

        font-size:
            11px !important;

        line-height:
            1.2 !important;

        letter-spacing:
            0.16em !important;
    }


    /*
     * The existing HTML has three value-line elements:
     *
     * Mateship • A Fair Go
     * Respect • Freedom
     * Rule of Law
     *
     * Display them beside one another to form one compact line.
     */
    body > header.vw-values-header
    .vw-values-line {
        flex:
            0 0 auto !important;

        display:
            inline-flex !important;

        align-items:
            center !important;

        margin:
            0 !important;

        padding:
            0 !important;

        white-space:
            nowrap !important;

        text-align:
            center !important;

        font-size:
            11px !important;

        line-height:
            1.3 !important;
    }


    /*
     * Supply the separators between the three existing HTML
     * value groups.
     */
    body > header.vw-values-header
    .vw-values-line
    + .vw-values-line::before {
        content:
            "•";

        margin:
            0 4px;

        color:
            #94a3b8;

        font-weight:
            700;
    }


    body > header.vw-values-header
    .vw-values-dot {
        margin:
            0 4px !important;

        color:
            #94a3b8 !important;
    }


    body > header.vw-values-header
    .vw-values-community {
        flex:
            0 0 100% !important;

        width:
            100% !important;

        margin:
            4px 0
            0 !important;

        padding:
            0 !important;

        text-align:
            center !important;

        font-size:
            11.5px !important;

        line-height:
            1.3 !important;
    }

}


/*
 * On particularly narrow phones tighten the typography rather
 * than forcing an ugly break through one of the value phrases.
 */
@media (max-width: 360px) {

    body > header.vw-values-header
    .vw-values-line {
        font-size:
            10.25px !important;
    }


    body > header.vw-values-header
    .vw-values-dot {
        margin:
            0 3px !important;
    }


    body > header.vw-values-header
    .vw-values-line
    + .vw-values-line::before {
        margin:
            0 3px;
    }


    body > header.vw-values-header
    .vw-australian-flag-wrap {
        left:
            calc(50% - 121px) !important;

        width:
            36px !important;

        min-width:
            36px !important;
    }


    body > header.vw-values-header
    .vw-australian-flag {
        width:
            36px !important;
    }

}

/* VW_MOBILE_VALUES_CENTRED_END */

/*
 * ----------------------------------------------------------
 * VehicleWatch About navigation
 * ----------------------------------------------------------
 */

.vw-nav-about {
    background:
        #334155 !important;

    color:
        white !important;
}

.vw-nav-about:hover,
.vw-nav-about:focus {
    background:
        #1e293b !important;

    color:
        white !important;
}

/* VEHICLEWATCH_PLATE_WALL_NAV_V1 */
/* Shared Plate Wall navigation button: matches the standalone Plate Wall page. */
.vw-header-grouped .vw-nav-platewall {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 10px !important;
  min-height: 36px;
  background: #ffffff !important;
  color: #101827 !important;
  border: 2px solid #243e83 !important;
  border-top-width: 3px !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 0 #dbe4f3;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.vw-header-grouped .vw-nav-platewall:hover {
  background: #eff6ff !important;
  box-shadow: inset 0 1px 0 #dbe4f3, 0 0 0 1px #93b4ee;
}
.vw-header-grouped .vw-nav-platewall:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
.vw-header-grouped .vw-nav-platewall[aria-current="page"] {
  box-shadow: inset 0 1px 0 #dbe4f3, 0 0 0 1px rgba(59,130,246,.45);
}
.vw-header-grouped .vw-nav-platewall .vw-nav-platewall-state {
  color: #243e83;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .025em;
}
.vw-header-grouped .vw-nav-platewall .vw-nav-platewall-name {
  color: #101827;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
}
@media (prefers-reduced-motion: reduce) {
  .vw-header-grouped .vw-nav-platewall {transition: none;}
}

/* VEHICLEWATCH_VOICE_CHECK_NAV_V1 */
/* Voice Check: mobile-first plate lookup, link is visible on all devices. */
.vw-header-grouped .vw-nav-voicecheck {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #0e7490 !important;
    color: #ffffff !important;
    border: 1px solid #155e75 !important;
    border-radius: 6px;
    min-height: 36px;
    padding: 7px 12px !important;
    line-height: 1.1;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.vw-header-grouped .vw-nav-voicecheck:hover {
    background: #155e75 !important;
    color: #ffffff !important;
}
.vw-header-grouped .vw-nav-voicecheck:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}
.vw-header-grouped .vw-nav-voicecheck[aria-current="page"] {
    box-shadow: 0 0 0 2px #67e8f9;
}
.vw-header-grouped .vw-nav-voicecheck .vw-voicecheck-mic {
    display: block;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    stroke: #ffffff;
}
@media (prefers-reduced-motion: reduce) {
    .vw-header-grouped .vw-nav-voicecheck { transition: none; }
}


/* VEHICLEWATCH_PLATE_SCAN_NAV_V1 — companion to Voice Check */
.vw-header-grouped .vw-nav-platescan {
  display:inline-flex!important;align-items:center;justify-content:center;gap:7px;
  background:#1d4ed8!important;color:#fff!important;border:1px solid #1e40af!important;
  border-radius:6px!important;min-height:36px;padding:7px 12px!important;
  line-height:1.1;font-weight:800;font-size:12px;text-decoration:none!important;
  white-space:nowrap;transition:background-color .15s ease,box-shadow .15s ease;
}
.vw-header-grouped .vw-nav-platescan:hover {background:#1e40af!important;color:#fff!important;}
.vw-header-grouped .vw-nav-platescan:focus-visible {outline:3px solid #93c5fd;outline-offset:3px;}
.vw-header-grouped .vw-nav-platescan[aria-current="page"] {box-shadow:0 0 0 2px #93c5fd;}
.vw-header-grouped .vw-nav-platescan .vw-platescan-camera {
  display:block;flex:0 0 auto;width:16px;height:16px;stroke:#fff;
}
@media(prefers-reduced-motion:reduce){.vw-header-grouped .vw-nav-platescan{transition:none;}}
/* END VEHICLEWATCH_PLATE_SCAN_NAV_V1 */
