/* ==========================================================================
   Rawrkee shell: header, mobile tab bar and footer (every page)
   Loaded after style.css. The older header/footer rules are stacked with
   !important and html:not(.dark) variants, so these selectors are written one
   step more specific ($S below) and themed with variables instead of variants.

   $S = :root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell
   ========================================================================== */

:root {
    --sh-bar: rgba(255, 255, 255, 0.92);
    --sh-surface: #ffffff;
    --sh-line: #e2e2df;
    --sh-ink: #18191b;
    --sh-muted: #5f6168;
    --sh-hover: #f0f0ee;
    --sh-accent: rgb(var(--rk-accent-600, 220 38 38));
}

html.dark {
    --sh-bar: rgba(15, 16, 18, 0.9);
    --sh-surface: #0f1012;
    --sh-line: #26272b;
    --sh-ink: #eeeef0;
    --sh-muted: #9b9da4;
    --sh-hover: #1d1e22;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
:root body .rk-header-shell-bar.rk-header-shell-bar {
    background: var(--sh-bar) !important;
    border-bottom: 1px solid var(--sh-line) !important;
    box-shadow: none !important;
    backdrop-filter: saturate(160%) blur(12px) !important;
    -webkit-backdrop-filter: saturate(160%) blur(12px) !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell {
    max-width: 1320px !important;
    padding: 0 16px !important;
    color: var(--sh-ink) !important;
}

@media (min-width: 768px) {
    :root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell {
        padding: 0 28px !important;
    }
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell .rk-top-cta-bar {
    min-height: 60px !important;
    gap: 12px !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-brand-mini {
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
    color: var(--sh-ink) !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-brand-mini::before {
    width: 9px;
    height: 9px;
    background-color: var(--sh-accent);
    box-shadow: none;
}

/* Primary links: plain text, the current page sits on a soft tile */
@media (min-width: 768px) {
    :root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell .rk-desktop-nav {
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        gap: 2px !important;
    }

    :root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-desktop-link {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: var(--sh-muted) !important;
        padding: 8px 12px !important;
        border-radius: 9px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    :root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-desktop-link:hover {
        color: var(--sh-ink) !important;
        background: var(--sh-hover) !important;
    }

    :root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-desktop-link.rk-is-active {
        color: var(--sh-ink) !important;
        background: var(--sh-hover) !important;
    }
}

/* Icon buttons: theme, notifications */
:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell button.rk-theme-toggle-btn,
:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-notif-icon-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--sh-muted) !important;
    box-shadow: none !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell button.rk-theme-toggle-btn:hover,
:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-notif-icon-btn:hover {
    background: var(--sh-hover) !important;
    color: var(--sh-ink) !important;
}

/* Primary action: "Create" (members) and "Add your car" (guests) */
:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell button.rk-desktop-add-btn,
:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-btn-claim {
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    border: 0 !important;
    background: var(--sh-accent) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell button.rk-desktop-add-btn *,
:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-btn-claim * {
    color: #ffffff !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell button.rk-desktop-add-btn:hover,
:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-btn-claim:hover {
    filter: brightness(1.08);
    background: var(--sh-accent) !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-btn-signin {
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--sh-ink) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-btn-signin:hover {
    background: var(--sh-hover) !important;
}

/* Member menu: hamburger on phones, avatar pill on desktop */
:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell button.rk-menu-btn {
    background: transparent !important;
    border: 1px solid var(--sh-line) !important;
    box-shadow: none !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell .rk-menu-bars span {
    background-color: var(--sh-ink) !important;
}

:root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell .rk-desktop-pill-name {
    color: var(--sh-ink) !important;
}

/* Phones: the tab bar carries Add and Log in, so the header keeps just the brand and icons */
@media (max-width: 767.98px) {
    :root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell .rk-top-cta-bar {
        min-height: 54px !important;
    }

    :root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-btn-claim,
    :root body .rk-header-shell-bar .rk-profile-wrapper.rk-header-shell.rk-header-shell a.rk-btn-signin {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Mobile tab bar: docked to the bottom edge, clear of the home indicator
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    :root body nav.nav-bottom.glass-nav {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        max-width: none !important;
        height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 0 4px env(safe-area-inset-bottom, 0px) !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-top: 1px solid var(--sh-line) !important;
        background: var(--sh-bar) !important;
        backdrop-filter: saturate(160%) blur(14px) !important;
        -webkit-backdrop-filter: saturate(160%) blur(14px) !important;
        box-shadow: none !important;
    }

    :root body nav.nav-bottom.glass-nav.nav-shrunk {
        transform: none !important;
        opacity: 1 !important;
    }

    :root body nav.nav-bottom.glass-nav .nav-link {
        color: var(--sh-muted) !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        gap: 5px !important;
        background: transparent !important;
    }

    :root body nav.nav-bottom.glass-nav .nav-link i,
    :root body nav.nav-bottom.glass-nav .nav-link .fa {
        font-size: 19px !important;
        color: inherit !important;
    }

    :root body nav.nav-bottom.glass-nav .nav-link.active {
        color: var(--sh-ink) !important;
        font-weight: 700 !important;
    }

    :root body nav.nav-bottom.glass-nav .nav-link.active i,
    :root body nav.nav-bottom.glass-nav .nav-link.active .fa {
        color: var(--sh-accent) !important;
    }

    :root body nav.nav-bottom.glass-nav .nav-link img.nav-avatar {
        border-color: var(--sh-line) !important;
    }

    :root body nav.nav-bottom.glass-nav .nav-link.active img.nav-avatar {
        border-color: var(--sh-accent) !important;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
:root body #footer.rk-footer {
    background: var(--sh-surface) !important;
    border-top: 1px solid var(--sh-line) !important;
    padding: 36px 16px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 768px) {
    :root body #footer.rk-footer {
        padding: 48px 28px 36px !important;
    }
}

/* The front page ends on its own full-width band, so the footer follows straight on */
:root body.home #footer.rk-footer {
    margin-top: 0 !important;
}

:root body #footer .rk-footer-container {
    gap: 32px;
}

:root body #footer .rk-footer-seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
}

:root body #footer .rk-footer-seo-grid > :first-child {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    :root body #footer .rk-footer-seo-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 32px;
    }

    :root body #footer .rk-footer-seo-grid > :first-child {
        grid-column: auto;
    }
}

:root body #footer .rk-footer-col-title {
    font-size: 14px !important;
    font-weight: 700;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    color: var(--sh-ink);
    margin-bottom: 12px;
}

:root body #footer .rk-footer-seo-grid > :first-child p {
    color: var(--sh-muted) !important;
    font-size: 14px !important;
    max-width: 36ch;
}

:root body #footer .rk-footer-col-list {
    gap: 9px;
}

:root body #footer .rk-footer-col-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--sh-muted) !important;
}

:root body #footer .rk-footer-col-list a:hover,
:root body #footer .rk-footer-links a:hover {
    color: var(--sh-ink) !important;
}

:root body #footer .rk-footer-bottom-bar {
    border-top: 1px solid var(--sh-line);
    padding-top: 20px;
    font-size: 13px;
}

:root body #footer.rk-footer .rk-footer-brand,
:root body #footer.rk-footer .rk-footer-links a {
    color: var(--sh-muted) !important;
    font-weight: 500;
}

:root body #footer.rk-footer .rk-footer-brand strong {
    color: var(--sh-ink) !important;
}
