/* V3.2 shared navigation. Desktop dock and the existing five-slot mobile component only. */
.tc-bottom-nav {
    display: none !important;
}

.tc-v32-dock {
    align-items: center;
    background: rgba(22, 22, 21, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 17px;
    bottom: 23px;
    box-shadow: 0 16px 50px rgba(20, 14, 13, 0.32);
    color: #eee7dc;
    display: none;
    gap: 2px;
    left: 50%;
    max-width: calc(100vw - 35px);
    opacity: 0;
    padding: 8px 9px;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, calc(100% + 45px));
    transition: opacity 220ms ease, transform 250ms ease;
    white-space: nowrap;
    z-index: 1035;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.tc-v32-dock.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.tc-v32-dock a,
.tc-v32-dock button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: var(--tc-weight-medium) var(--tc-type-nav) / var(--tc-leading-control) var(--tc-font-body);
    gap: 0.4rem;
    justify-content: center;
    min-height: 40px;
    padding: 10px 13px;
}

.tc-v32-dock__nav-item {
    display: inline-flex;
}

.tc-v32-dock a:hover,
.tc-v32-dock a:focus-visible,
.tc-v32-dock button:hover,
.tc-v32-dock button:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    color: #f0c98f;
}

.tc-v32-dock__brand {
    margin-right: 4px;
    min-width: 105px;
    padding: 5px 12px !important;
}

.tc-v32-dock__brand img {
    display: block;
    height: auto;
    max-height: 32px;
    object-fit: contain;
    width: 108px;
}

.tc-v32-dock__search svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 17px;
}

.tc-v32-dock__divider {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    height: 22px;
    margin-inline: 5px;
}

.tc-v32-dock .tc-v32-dock__quote {
    background: #bd9257;
    color: #1c160e;
    font-weight: 800;
}

.tc-v32-dock .tc-v32-dock__quote:hover,
.tc-v32-dock .tc-v32-dock__quote:focus-visible {
    background: #d5ae76;
    color: #1c160e;
}

body.tc-menu-open .tc-v32-dock,
body.tc-search-open .tc-v32-dock,
body.modal-open .tc-v32-dock {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(100% + 45px));
}

@media (min-width: 1025px) {
    .tc-v32-dock {
        display: flex;
    }

    .tc-copyright {
        padding-bottom: 6.25rem;
    }
}

@media (min-width: 1025px) and (max-width: 1180px) {
    .tc-v32-dock a,
    .tc-v32-dock button {
        font-size: var(--tc-type-nav-compact);
        padding-inline: 9px;
    }

    .tc-v32-dock__brand {
        min-width: 92px;
    }

    .tc-v32-dock__brand img {
        width: 92px;
    }

    .tc-v32-dock__search span {
        display: none;
    }
}

@media (max-width: 1024px) {
    body {
        padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
    }

    .tc-bottom-nav {
        align-items: stretch;
        background: rgba(27, 26, 24, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 22px;
        bottom: calc(11px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
        display: block !important;
        left: 50%;
        margin: 0;
        max-width: 680px;
        padding: 7px 9px 6px !important;
        position: fixed;
        right: auto;
        transform: translateX(-50%);
        transition: opacity 180ms ease, transform 220ms ease;
        width: calc(100% - 26px);
        z-index: 10000;
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
    }

    .tc-bottom-nav__inner {
        align-items: stretch;
        display: grid;
        gap: 2px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .tc-bottom-nav__item {
        min-width: 0;
        padding: 0;
    }

    .tc-bottom-nav__item a {
        align-items: center;
        background: transparent;
        border-radius: 14px;
        color: #d5d0c9;
        display: flex;
        flex-direction: column;
        gap: 5px;
        justify-content: center;
        min-height: 60px;
        padding: 5px 2px;
        text-align: center;
    }

    .tc-bottom-nav__item a:hover,
    .tc-bottom-nav__item a:focus-visible,
    .tc-bottom-nav__item a[aria-current="page"] {
        background: rgba(255, 255, 255, 0.065);
        color: #e5bc82;
    }

    .tc-bottom-nav__item a:focus-visible {
        outline: 2px solid #dfbc83;
        outline-offset: -3px;
    }

    .tc-bottom-nav__icon {
        align-items: center;
        display: flex;
        height: 25px;
        justify-content: center;
    }

    .tc-bottom-nav__icon svg {
        height: 23px;
        width: 23px;
    }

    .tc-bottom-nav__label {
        display: block;
        font-family: var(--tc-font-ui-strong);
        font-size: var(--tc-type-mobile-nav);
        font-weight: var(--tc-weight-strong);
        letter-spacing: 0.01em;
        line-height: 1.1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tc-bottom-nav__item--primary a {
        background: transparent;
        border: 0;
        border-radius: 14px;
        color: #f1ddbe;
        height: auto;
        margin: 0;
        min-height: 76px;
        padding: 0 2px 5px;
        transform: none;
        width: auto;
    }

    .tc-bottom-nav__item--primary .tc-bottom-nav__icon {
        background: linear-gradient(145deg, #d7b47d, #ac7f48);
        border: 3px solid #282621;
        border-radius: 17px;
        box-shadow: 0 7px 17px rgba(0, 0, 0, 0.38);
        color: #20180f;
        height: 50px;
        margin-top: -18px;
        width: 50px;
    }

    .tc-bottom-nav__item--primary a:hover,
    .tc-bottom-nav__item--primary a:focus-visible {
        background: transparent;
        color: #f1ddbe;
        transform: none;
    }

    body.tc-menu-open .tc-bottom-nav,
    body.tc-search-open .tc-bottom-nav,
    body.tc-crisp-open .tc-bottom-nav,
    body.modal-open .tc-bottom-nav {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, calc(100% + 2rem));
    }

    .tc-site-footer {
        padding-bottom: 0;
    }

    .tc-copyright {
        padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
    }

    .progress-wrap {
        bottom: calc(7.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Existing Crisp launcher selector retained from premium.css; no second widget. */
    #crisp-chatbox > div > a {
        bottom: calc(7.9rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 380px) {
    .tc-bottom-nav {
        padding-inline: 4px !important;
        width: calc(100% - 18px);
    }

    .tc-bottom-nav__icon svg {
        height: 21px;
        width: 21px;
    }

    .tc-bottom-nav__item--primary .tc-bottom-nav__icon {
        height: 45px;
        width: 45px;
    }
}

@media (max-height: 500px) and (max-width: 1024px) {
    .tc-bottom-nav {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, calc(100% + 2rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-v32-dock,
    .tc-bottom-nav {
        transition: none !important;
    }
}
/* P02: former inline navigation rules now have a source-controlled owner. */
.drawer { border-top: 0; }

@media (min-width: 768px) {
    .a-dropdown .dropdown-content { width: 85%; }
}

@media (max-width: 768px) {
    .corp_btn { height: 45px; width: 45px; }
}

