: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;
}

.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;
    }
}
