:root {
    --site-shell-width: 1400px;
    --site-shell-gutter: 12px;
}

/* Keep the existing selector wrapper on the same shared width contract. */
.site-shell,
.selector-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--site-shell-width);
    min-width: 0;
    margin-inline: auto;
    padding-inline: var(--site-shell-gutter);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    color: #111827;
    text-decoration: none;
    letter-spacing: 0;
}

.site-brand-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #2563eb;
}

.site-brand-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.site-brand-tagline {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
    white-space: nowrap;
}

.site-footer-links {
    flex-wrap: wrap;
    justify-content: center;
}

.language-switcher { position: relative; margin-left: auto; flex: none; z-index: 80; }
.language-current { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d1d5db; border-radius: 50%; background: white; cursor: pointer; list-style: none; }
.language-current::-webkit-details-marker { display: none; }
.language-current:focus-visible, .language-menu a:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.language-current img { display: block; border-radius: 50%; }
.language-globe { font-size: 23px; line-height: 1; }
.language-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 140px; padding: 5px; background: white; border: 1px solid #d1d5db; border-radius: 10px; box-shadow: 0 8px 22px #11182722; }
.language-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; color: #1f2937; text-decoration: none; white-space: nowrap; }
.language-menu a:hover { background: #eff6ff; }

.guide-prose {
    width: 100%;
    max-width: 48rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.guide-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}

@media (max-width: 360px) {
    .mobile-tab-container .mobile-tab {
        padding-inline: 2px;
        font-size: 12px;
        white-space: nowrap;
    }
}
