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

.tool-help { margin-block: 24px 32px; }
.tool-help-inner { max-width: 76ch; margin-inline: auto; padding: 24px; border: 1px solid #dbe2e8; border-radius: 12px; background: #fff; color: #374151; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.tool-help h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; line-height: 1.4; color: #111827; }
.tool-help h3 { margin: 24px 0 10px; font-size: 18px; font-weight: 650; color: #111827; }
.tool-help p { margin: 10px 0; }
.tool-help ol { list-style: decimal; padding-left: 24px; margin: 12px 0; }
.tool-help li { margin-block: 8px; }
.tool-help details { padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.tool-help summary { cursor: pointer; font-weight: 650; color: #1f2937; }
.tool-help a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.tool-help table { width: 100%; margin-block: 16px; border-collapse: collapse; }
.tool-help th, .tool-help td { border: 1px solid #dbe2e8; padding: 10px; text-align: left; vertical-align: top; }

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