/* ── Locus Mobile Menu v1.0.0 ────────────────────────────────────────────── */

/* Wrapper — clips the sliding panels */
.lmm-wrapper {
    position: relative;
    overflow: hidden;
    transition: height 300ms ease;
}

/* Panels — all stacked at the same position */
.lmm-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    transition: transform 300ms ease;
    background-color: inherit;
}

/* The root panel starts visible */
.lmm-panel--root {
    transform: translateX(0);
}

/* JS-managed state classes */
.lmm-panel--active {
    transform: translateX(0);
}

.lmm-panel--exiting {
    transform: translateX(-100%);
}

/* Keep root in DOM flow so wrapper measures height correctly until JS takes over */
.lmm-panel--root.lmm-panel--measuring {
    position: relative;
}

/* Panel header (back button row) */
.lmm-panel-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
}

/* Back button — fully reset from theme */
.lmm-panel-header .lmm-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: none;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    font-weight: normal;
}

.lmm-panel-header .lmm-back > span {
    margin-top: 3px;
}

.lmm-panel-header .lmm-back:hover {
    background: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.lmm-panel-header .lmm-back:focus {
    outline: none;
    box-shadow: none;
}

.lmm-panel-header .lmm-back:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

.lmm-wrapper button:hover,
.lmm-wrapper button:focus,
.lmm-wrapper button:active,
.lmm-wrapper button {
    background: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* Back chevron icon — same SVG as drill-in, rotated left */
.lmm-chevron-left {
    flex-shrink: 0;
    stroke: currentColor;
    transform: rotate(-90deg);
}

/* Item list */
.lmm-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lmm-item {
    display: block;
}

/* Base style for both buttons and links — fully reset from theme */
.lmm-item-btn,
.lmm-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    margin: 0;
    background: none;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.3;
    box-sizing: border-box;
}

.lmm-item-btn:hover,
.lmm-item-link:hover {
    background: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
}

.lmm-item-btn:focus,
.lmm-item-link:focus {
    outline: none;
    box-shadow: none;
}

.lmm-item-btn:focus-visible,
.lmm-item-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

/* Chevron — shared SVG, rotated per context */
.lmm-chevron {
    flex-shrink: 0;
    stroke: currentColor;
}

/* Drill-in chevron points right */
.lmm-chevron-right {
    transform: rotate(90deg);
    margin-left: 8px;
}
