/* =========================================
   EmptyLayout — chrome-free shell for /login etc.
   Phase 3-A enhancements: skip-link, locale + theme toolbar.
   Uses design-system tokens only.
   ========================================= */

.gs-skip-link {
    position: absolute;
    top: -48px;
    left: var(--gs-space-2);
    z-index: 10000;
    padding: var(--gs-space-2) var(--gs-space-4);
    background: var(--gs-primary);
    color: var(--gs-text-inverse);
    font-size: var(--gs-text-sm);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--gs-radius-sm);
    transition: top 150ms ease;
}

.gs-skip-link:focus {
    top: var(--gs-space-2);
    outline: 2px solid var(--gs-text);
    outline-offset: 2px;
}

.gs-empty-layout {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: var(--gs-bg);
    color: var(--gs-text);
}

.gs-empty-layout__toolbar {
    position: absolute;
    top: var(--gs-space-3);
    right: var(--gs-space-3);
    display: flex;
    align-items: center;
    gap: var(--gs-space-2);
    z-index: 10;
}

.gs-empty-layout__locale {
    display: inline-flex;
    align-items: center;
}

.gs-empty-layout__locale-select {
    background: var(--gs-surface);
    color: var(--gs-text);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-radius-sm);
    padding: 6px 28px 6px 10px;
    font-size: var(--gs-text-sm);
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.gs-empty-layout__locale-select:focus-visible {
    outline: none;
    border-color: var(--gs-primary);
    box-shadow: 0 0 0 3px var(--gs-primary-light);
}

.gs-empty-layout__main {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    outline: none;
}

.gs-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .gs-empty-layout__toolbar {
        top: var(--gs-space-2);
        right: var(--gs-space-2);
        gap: var(--gs-space-1);
    }

    .gs-empty-layout__locale-select {
        padding: 4px 24px 4px 8px;
        font-size: var(--gs-text-xs);
    }
}
