/* Mobile main navigation uses the Voyager v2 palette and square surfaces. */
.compass-tablet-toolbar {
    display: none;
}

/* iPad and comparable tablet workspaces keep the complete Compass toolbar.
   Phones retain the compact title and menu button below. */
@media (min-width: 760px) and (min-height: 600px) {
    #compass-mobile-shell > .compass-tablet-toolbar {
        display: block;
        flex: 0 0 auto;
        width: 100%;
        position: relative;
        z-index: 100001;
    }

    #compass-mobile-shell > .compass-mobile-header {
        display: none !important;
    }
}

@media (orientation:landscape) and (min-device-width:768px) and (pointer:coarse) {
    #compass-mobile-shell > .compass-tablet-toolbar { display:block; width:100%; }
    #compass-mobile-shell > .compass-mobile-header { display:none !important; }
}

#compass-mobile-shell .compass-mobile-header {
    background: var(--voyager-dark, #2c3840) !important;
    border-bottom: 3px solid var(--voyager-green, #99c625);
    box-shadow: none;
}

#compass-mobile-shell .compass-mobile-title {
    color: var(--voyager-white, #fff);
    letter-spacing: .02em;
}

#compass-mobile-shell button.compass-mobile-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 0;
    color: var(--voyager-green, #99c625);
}

#compass-mobile-shell button.compass-mobile-nav-button[aria-expanded="true"] {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
}

#compass-mobile-shell button.compass-mobile-nav-button:focus-visible {
    outline: 2px solid var(--voyager-green, #99c625);
    outline-offset: -2px;
}

/* Keep the current Coaching shortcut readable beside the menu toggle. */
#compass-mobile-shell .coaching-profile-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--voyager-green, #99c625);
    white-space: nowrap;
}

#compass-mobile-shell .coaching-profile-button:focus-visible {
    outline: 2px solid var(--voyager-green, #99c625);
    outline-offset: -2px;
}

#compass-mobile-shell .compass-mobile-nav {
    background: var(--voyager-off-white, #f5f5f7) !important;
    box-shadow: none !important;
    overscroll-behavior-y: contain;
    color: var(--voyager-text, #1b2431);
    text-align: left;
}

#compass-mobile-shell .compass-mobile-nav-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    background: transparent !important;
}

.compass-mobile-nav-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.compass-mobile-nav-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--voyager-dark, #2c3840);
    color: var(--voyager-green, #99c625);
}

.compass-mobile-nav-heading h1 {
    margin: 0;
    color: var(--voyager-dark, #2c3840);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.compass-mobile-nav-heading p {
    margin: 3px 0 0;
    color: #52636c;
    font-size: 13px;
    line-height: 1.4;
}

.compass-mobile-nav-section {
    margin: 0 0 20px;
}

.compass-mobile-nav-section h2 {
    margin: 0 0 9px;
    color: #52636c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.compass-mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#compass-mobile-shell .compass-mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 66px;
    margin: 0;
    padding: 13px 12px;
    border: 1px solid var(--voyager-border, #e1e4e7);
    border-radius: 0;
    background: var(--voyager-white, #fff);
    color: var(--voyager-dark, #2c3840);
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.compass-mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background: var(--voyager-light-teal, #e9f7f4);
    color: #257568;
}

.compass-mobile-nav-copy {
    min-width: 0;
    overflow-wrap: break-word;
}

.compass-mobile-nav-copy strong,
.compass-mobile-nav-copy small {
    display: block;
}

.compass-mobile-nav-copy strong {
    font-size: 16px;
    font-weight: 700;
}

.compass-mobile-nav-copy small {
    margin-top: 5px;
    color: #52636c;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

#compass-mobile-shell .compass-mobile-voyager {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 126px;
    border-top: 3px solid var(--voyager-teal, #51b9a3);
}

#compass-mobile-shell .compass-mobile-voyager-v2 {
    border-color: var(--voyager-dark, #2c3840);
    border-top-color: var(--voyager-green, #99c625);
    background: var(--voyager-dark, #2c3840);
    color: var(--voyager-white, #fff);
}

.compass-mobile-voyager-v2 .compass-mobile-nav-icon {
    background: rgba(153, 198, 37, .12);
    color: var(--voyager-green, #99c625);
}

.compass-mobile-voyager-v2 .compass-mobile-nav-copy small {
    color: #d5dfe3;
}

#compass-mobile-shell .compass-mobile-nav-item:hover,
#compass-mobile-shell .compass-mobile-nav-item:focus-visible {
    border-color: #257568;
    background: var(--voyager-light-teal, #e9f7f4);
    color: var(--voyager-dark, #2c3840);
}

#compass-mobile-shell .compass-mobile-nav-item:focus-visible {
    outline: 2px solid #257568;
    outline-offset: 2px;
}

#compass-mobile-shell .compass-mobile-nav-item:active {
    background: #d8efe9;
    color: var(--voyager-dark, #2c3840);
}

#compass-mobile-shell .compass-mobile-voyager-v2:hover,
#compass-mobile-shell .compass-mobile-voyager-v2:focus-visible,
#compass-mobile-shell .compass-mobile-voyager-v2:active {
    border-color: var(--voyager-green, #99c625);
    background: #364750;
    color: var(--voyager-white, #fff);
}

.compass-mobile-nav-count {
    display: inline-block;
    margin-left: 3px;
    padding: 1px 5px;
    background: var(--voyager-light-green, #f2f8e4);
    color: var(--voyager-dark, #2c3840);
    font-size: 11px;
}

#compass-mobile-shell .compass-mobile-tool {
    min-height: 48px;
    justify-content: center;
    border-color: var(--voyager-border, #e1e4e7);
    background: transparent;
    color: #52636c;
    font-size: 13px;
}

@media (max-width: 359px) {
    #compass-mobile-shell .compass-mobile-nav-inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    #compass-mobile-shell .compass-mobile-nav-item {
        gap: 8px;
        padding: 12px 9px;
        font-size: 13px;
    }
}
