/* Shared company switcher: explicit scoping isolates it from legacy menu rules. */
.sigma-group-switcher,
.sigma-group-switcher * { box-sizing: border-box; }
.sigma-group-switcher {
    position: relative;
    flex: none;
    margin: 0;
    padding: 0;
    color: #15153f;
    text-align: left;
}
.sigma-group-switcher > .sigma-group-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-height: 24px;
    margin: 0;
    padding: 2px 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #15153f;
    cursor: pointer;
    list-style: none;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}
.sigma-group-trigger::before,
.sigma-group-trigger::after { content: none; }
.sigma-group-switcher .sigma-group-trigger img {
    display: block;
    width: 170px;
    height: auto;
    max-width: none;
    margin: 0;
}
.sigma-group-switcher .sigma-group-chevron {
    display: block;
    flex: none;
    width: 14px;
    height: 14px;
    color: #8d582f;
    transition: transform .18s ease;
}
.sigma-group-switcher.is-open .sigma-group-chevron { transform: rotate(180deg); }
.sigma-group-switcher:has(> .sigma-group-panel:popover-open) .sigma-group-chevron { transform: rotate(180deg); }
.sigma-group-switcher .sigma-group-trigger:focus-visible,
.sigma-group-switcher .sigma-group-close:focus-visible,
.sigma-group-switcher .sigma-group-list a:focus-visible {
    outline: 2px solid #99602f;
    outline-offset: 4px;
}
.sigma-group-switcher > .sigma-group-panel {
    display: none;
    position: fixed;
    z-index: 2147483000;
    inset: auto;
    top: var(--sigma-menu-top, 80px);
    left: var(--sigma-menu-left, 18px);
    width: min(340px, calc(100vw - 36px));
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 10px 0 0;
    border: 0;
    background: transparent;
    color: #15153f;
    overflow: visible;
}
.sigma-group-switcher.is-open > .sigma-group-panel { display: block; }
.sigma-group-switcher > .sigma-group-panel:popover-open { display: block; }
.sigma-group-panel::backdrop { background: transparent; pointer-events: none; }
.sigma-group-switcher .sigma-group-card {
    padding: 10px 24px 14px;
    max-height: var(--sigma-menu-height, calc(100vh - 110px));
    max-height: var(--sigma-menu-height, calc(100dvh - 110px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fffefa;
    border: 1px solid #e2ddd6;
    border-top: 2px solid #c18049;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 14px 36px rgba(10, 19, 50, .18);
}
.sigma-group-switcher .sigma-group-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 68px;
    min-height: 44px;
    margin: 0 -10px 4px auto;
    padding: 8px 10px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #725234;
    font: 500 12px/1.5 'Kumbh Sans', sans-serif;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}
.sigma-group-switcher .sigma-group-close:hover { background: #f3ede5; }
.sigma-group-switcher .sigma-group-heading {
    margin: 0 0 18px;
    padding: 0;
    color: #15153f;
    font: italic 400 23px/1.35 AddingtonCF, Georgia, serif;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
}
.sigma-group-switcher .sigma-group-nav {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}
.sigma-group-switcher .sigma-group-list {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sigma-group-switcher .sigma-group-list > li {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #e8e4de;
}
.sigma-group-switcher .sigma-group-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 12px 10px;
    border: 0;
    border-radius: 3px;
    color: #15153f;
    background: transparent;
    font: 500 14px/1.5 'Kumbh Sans', sans-serif;
    letter-spacing: .025em;
    text-decoration: none;
    text-transform: none;
    text-align: left;
    transition: background-color .15s ease, color .15s ease;
}
.sigma-group-switcher .sigma-group-list a svg { flex: none; color: #9b6538; }
.sigma-group-switcher .sigma-group-list a:hover,
.sigma-group-switcher .sigma-group-list a:focus-visible { background: #f3ede5; color: #72441f; }
.sp-utility { position: relative; z-index: 1100; isolation: isolate; }
/* Contain Safari's composited search/input layers below the utility menu. */
.sigma-parts-mode .sp-header { position: relative; z-index: 1; isolation: isolate; }
@media (min-width: 901px) {
    .top-menu-bar { position: relative; z-index: 1100; }
}
@media (max-width: 900px) {
    /* Preserve the standard theme's fixed-header offsets while exposing the mark. */
    body:not(.sigma-parts-mode) { --sigma-utility-height: 80px; }
    .top-menu-bar,
    .top-menu-bar.alt2 { z-index: 1100; }
    .top-menu-bar .inner { flex-wrap: wrap; }
    .top-menu-bar .sigma-group-switcher { flex-basis: 100%; }
    .top-menu-bar .sigma-group-trigger { min-height: 36px; margin-left: 8px; }
    .top-menu-bar .sigma-group-panel { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .sigma-group-switcher .sigma-group-chevron,
    .sigma-group-switcher .sigma-group-list a { transition: none; }
}
