
/* HistoryFramed mobile header controls - 1.0.0h */

.hf-mobile-cart {
    display: none;
}

@media (max-width: 980px) {

    .hf-header {
        position: relative;
        gap: 10px;
    }

    .hf-header .wordmark {
        min-width: 0;
        flex: 0 1 auto;
    }

    .hf-mobile-cart,
    .hf-mobile-menu > summary {
        box-sizing: border-box;
        min-height: 44px;
        border: 1px solid rgba(210,174,111,.58);
        border-radius: 5px;
        background: #192c41;
        color: #f4dfb9;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 12px;
        white-space: nowrap;
        font: 600 13px/1.1 var(--sans,Arial,sans-serif);
        text-decoration: none;
        cursor: pointer;
        transition: background .15s ease;
    }

    .hf-mobile-cart {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .hf-mobile-cart:hover,
    .hf-mobile-menu > summary:hover,
    .hf-mobile-menu[open] > summary {
        background: #28435a;
        border-color: #e2bf82;
        color: #fff4de;
    }

    .hf-mobile-cart:focus-visible,
    .hf-mobile-menu > summary:focus-visible {
        outline: 3px solid #edcd96;
        outline-offset: 3px;
    }

    .hf-mobile-cart-count {
        font-size: 12px;
        min-width: 12px;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .hf-mobile-menu {
        position: static;
        display: block;
        flex: 0 0 auto;
        margin: 0;
        color: #e8ce95;
    }

    .hf-mobile-menu > summary {
        list-style: none;
        user-select: none;
    }

    .hf-mobile-menu > summary::-webkit-details-marker {
        display: none;
    }

    .hf-menu-bars {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 18px;
        height: 18px;
    }

    .hf-menu-bars i {
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
    }

    .hf-mobile-menu > div {
        position: absolute;
        inset: auto 0 auto auto;
        top: calc(100% + 8px);
        z-index: 20;
        box-sizing: border-box;
        width: min(320px,calc(100vw - 36px));
        min-width: 0;
        padding: 9px;
        background: #15273b;
        border: 1px solid #92734b;
        border-radius: 8px;
        box-shadow: 0 18px 36px rgba(3,12,22,.45);
        display: grid;
        gap: 2px;
    }

    .hf-mobile-menu > div a {
        display: block;
        padding: 13px 14px;
        border-radius: 4px;
        color: #f4e7cf;
        font: 600 14px/1.35 var(--sans,Arial,sans-serif);
        text-decoration: none;
    }

    .hf-mobile-menu > div a:hover,
    .hf-mobile-menu > div a:focus-visible {
        color: #15283b;
        background: #ebd3a8;
    }
}

@media (max-width: 580px) {

    .hf-header {
        gap: 7px;
    }

    .hf-header .wordmark {
        gap: 9px;
    }

    .hf-header .brand-words {
        min-width: 0;
    }

    .hf-header .brand-words strong {
        font-size: clamp(14px,4vw,18px);
        letter-spacing: .65px;
    }

    .hf-header .brand-words small {
        font-size: clamp(5.2px,1.35vw,7px);
        letter-spacing: 1.05px;
    }

    .hf-mobile-cart,
    .hf-mobile-menu > summary {
        width: 43px;
        height: 43px;
        min-height: 43px;
        padding: 0;
        gap: 0;
    }

    .hf-menu-word {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .hf-mobile-menu > div {
        top: calc(100% + 3px);
    }
}

@media (max-width: 365px) {

    .hf-header .brand-words small {
        display: none;
    }

    .hf-header .brand-words strong {
        font-size: 14px;
        letter-spacing: 0;
    }

    .hf-header .brand-seal {
        width: 33px;
        height: 33px;
    }

    .hf-mobile-cart,
    .hf-mobile-menu > summary {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-mobile-cart,
    .hf-mobile-menu > summary {
        transition: none;
    }
}
