/* Deployment banner (MagicScales deployment pipeline spec, R4.4): never shown in production; a striped background in
   a colour no production page uses, so a preview or staging page cannot be mistaken for the real thing. */
.mastech-deployment-banner {
    position: sticky;
    top: 0;
    z-index: 2000;
    padding: 0.25rem 1rem;
    font: 600 0.85rem/1.4 system-ui, sans-serif;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    text-align: center;
    background: repeating-linear-gradient(-45deg, var(--mastech-banner-a), var(--mastech-banner-a) 12px, var(--mastech-banner-b) 12px, var(--mastech-banner-b) 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mastech-deployment-banner--preview { --mastech-banner-a: #ffb300; --mastech-banner-b: #ffca28; }
.mastech-deployment-banner--staging { --mastech-banner-a: #ce93d8; --mastech-banner-b: #e1bee7; }
.mastech-deployment-banner--rehearsal { --mastech-banner-a: #ef5350; --mastech-banner-b: #e57373; } /* dark text: 4.99:1 and 5.83:1 */
.mastech-deployment-banner--development { --mastech-banner-a: #80cbc4; --mastech-banner-b: #b2dfdb; }
.mastech-deployment-banner--other { --mastech-banner-a: #bdbdbd; --mastech-banner-b: #e0e0e0; }

/* Shell components (Magic Scales WP1 W3, W4): Shell/AccountMenu and Shell/BannerArea. Only elements those components
   render carry these classes, so a host that does not use them is unchanged. The colours are variables with light
   defaults; a token set (css/themes/dark.css) re-points them. */
:root {
    --mastech-message-banner-info-background: #e3f0fb;
    --mastech-message-banner-info-color: #0b3a66;
    --mastech-message-banner-info-border: #7fb2df;
    --mastech-message-banner-warning-background: #fff4d6;
    --mastech-message-banner-warning-color: #4d3800;
    --mastech-message-banner-warning-border: #e0b84d;
    --mastech-message-banner-danger-background: #fde7e7;
    --mastech-message-banner-danger-color: #6e1010;
    --mastech-message-banner-danger-border: #e08080;
    --mastech-account-menu-global-background: #5b2a86;
    --mastech-account-menu-global-color: #ffffff;
}

.mastech-banner-area {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
}

.mastech-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 0.35rem;
    font-size: 0.9rem;
}

.mastech-banner--info { background: var(--mastech-message-banner-info-background); color: var(--mastech-message-banner-info-color); border-color: var(--mastech-message-banner-info-border); }
.mastech-banner--warning { background: var(--mastech-message-banner-warning-background); color: var(--mastech-message-banner-warning-color); border-color: var(--mastech-message-banner-warning-border); }
.mastech-banner--danger { background: var(--mastech-message-banner-danger-background); color: var(--mastech-message-banner-danger-color); border-color: var(--mastech-message-banner-danger-border); }

.mastech-banner .mastech-banner-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.mastech-account-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.mastech-account-menu-current {
    font-weight: 600;
}

.mastech-account-menu-entries {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.mastech-account-menu-entry {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
}

.mastech-account-menu-entry--global {
    background: var(--mastech-account-menu-global-background);
    color: var(--mastech-account-menu-global-color);
}

/* A theme's a:hover (dark.css: light blue) outranks the class above; keep the entry's own colour on its fill. */
.mastech-account-menu-entry--global:hover,
.mastech-account-menu-entry--global:focus-visible {
    color: var(--mastech-account-menu-global-color);
    text-decoration: underline;
}

.mastech-account-menu--global .mastech-account-menu-current {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--mastech-account-menu-global-background);
    color: var(--mastech-account-menu-global-color);
}

/* UiKitSchemeSwitcher (Magic Scales WP1a R4, UI polish and themes R8a): previous, dropdown, next, laid out inline so a
   host can place it in its top bar and colour it with its own roles. */
.uikit-scheme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.uikit-scheme-switcher-step {
    padding: 0.1rem 0.35rem;
    text-decoration: none;
}

.uikit-scheme-switcher-select {
    max-width: 14rem;
    font: inherit;
}

.uikit-scheme-switcher-review {
    font-weight: 600;
}
