/* AMOUAGE MEDICAL - Shared Navigation */

.med-nav-button {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: 1px solid #e7e6e3;
    border-radius: 13px;
    background: #fff;
    color: #1c2b45;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 14px rgba(20,35,55,.09);
    cursor: pointer;
}

.med-nav-button svg {
    width: 22px;
    height: 22px;
}

.med-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(15,25,42,.43);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}

.med-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.med-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(350px, 88vw);
    background: #fff;
    transform: translateX(100%);
    transition: transform .22s ease;
    overflow-y: auto;
    padding: max(26px, env(safe-area-inset-top)) 17px
             calc(30px + env(safe-area-inset-bottom));
    box-shadow: -6px 0 28px rgba(0,0,0,.08);
}

.med-nav-overlay.is-open .med-nav-panel {
    transform: translateX(0);
}

.med-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 4px 20px;
    border-bottom: 1px solid #e7e6e3;
    margin-bottom: 15px;
}

.med-nav-brand {
    color: #99804e;
    font-family: Georgia, serif;
    letter-spacing: 2px;
    font-size: 18px;
}

.med-nav-sub {
    color: #92969d;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 5px;
}

.med-nav-close {
    width: 42px;
    height: 42px;
    border: 1px solid #e7e6e3;
    border-radius: 50%;
    background: white;
    font-size: 25px;
    color: #1c2b45;
    cursor: pointer;
}

.med-nav-list {
    display: grid;
    gap: 5px;
}

.med-nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 49px;
    padding: 12px 13px;
    border-radius: 12px;
    color: #1c2b45;
    font-size: 14px;
    text-decoration: none;
}

.med-nav-link:hover,
.med-nav-link:focus-visible {
    background: #f6f6f5;
}

.med-nav-link.is-current {
    background: #f4efe5;
    color: #927443;
    font-weight: 650;
}

.med-nav-icon {
    width: 24px;
    text-align: center;
    color: #99804e;
    flex-shrink: 0;
    font-size: 17px;
}

.med-nav-foot {
    margin-top: 20px;
    border-top: 1px solid #e7e6e3;
    padding: 18px 8px;
    color: #85888e;
    font-size: 11px;
    line-height: 1.8;
}

body.med-nav-locked {
    overflow: hidden;
}

/* iPhone Safari: prevent focus auto-zoom on text fields */
@media (max-width: 767px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .med-nav-link {
        font-size: 15px;
    }
}
