:root {
    --bg: #f3f1eb;
    --panel: #ffffff;
    --panel-soft: #f8f6f0;
    --ink: #1f1d19;
    --muted: #625e55;
    --line: #d8d2c7;
    --accent: #205144;
    --accent-soft: #e7f0ec;
    --danger: #8d3c2d;
    --danger-soft: #f5e8e4;
    --warning: #8a6624;
    --warning-soft: #f4eddf;
    --success: #2c6246;
    --success-soft: #e8f1eb;
    --radius: 5px;
    --site-shell-wide-gutter: max(16px, calc((100vw - 1200px) / 2));
    --site-shell-header-height: 86px;
    --site-shell-control-size: 44px;
    --site-shell-logo-icon-size: 32px;
    --nexus-ui-bg: var(--panel);
    --nexus-ui-soft: var(--panel-soft);
    --nexus-ui-text: var(--ink);
    --nexus-ui-muted: var(--muted);
    --nexus-ui-line: var(--line);
    --nexus-ui-accent: var(--accent);
    --nexus-ui-accent-soft: var(--accent-soft);
    --nexus-ui-radius: min(8px, max(0px, var(--radius)));
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
    line-height: 1.65;
}

body.theme-public {
    --bg: #f6f7f7;
    --panel: #ffffff;
    --panel-soft: #f0f2f2;
    --shell-control-bg: rgba(240, 242, 242, 0.8);
    --shell-control-bg-hover: rgba(232, 240, 237, 0.8);
    --ink: #141719;
    --muted: #5e666d;
    --line: #d9dddf;
    --accent: #144d43;
    --accent-soft: #e8f0ed;
    --radius: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.58;
}

html.site-shell-scroll-locked {
    overflow-y: scroll;
}

body.site-shell-scroll-locked {
    position: fixed;
    inset: var(--site-shell-scroll-y, 0) 0 auto 0;
    width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

code,
pre {
    font-family: "Consolas", "Courier New", monospace;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.shell--wide {
    width: min(1200px, calc(100% - 32px));
}

.page-stack {
    padding: 32px 0 56px;
    display: grid;
    gap: 24px;
}

.page-stack--login {
    min-height: 100vh;
    align-items: center;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.site-mark {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

.site-mark:hover {
    text-decoration: none;
}

.theme-public .site-mark {
    font-family: inherit;
    font-weight: 720;
    letter-spacing: 0;
}

.site-mark__icon {
    align-items: center;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 5px;
    display: inline-flex;
    flex-shrink: 0;
    height: var(--site-shell-control-size);
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    width: var(--site-shell-control-size);
}

.site-mark__icon img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.site-mark__label {
    display: inline-block;
}

.site-tagline {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topnav--admin {
    justify-content: flex-end;
}

.logout-form {
    margin: 0;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.panel--spacious {
    padding: 28px;
}

.coming-soon {
    align-content: center;
    background:
        linear-gradient(135deg, rgba(20, 77, 67, 0.08), rgba(255, 255, 255, 0) 42%),
        var(--panel);
    border: 1px solid var(--line);
    min-height: min(62vh, 620px);
    padding: clamp(42px, 8vw, 96px);
    display: grid;
    gap: 18px;
}

.coming-soon__eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0;
    text-transform: uppercase;
}

.coming-soon h1 {
    font-size: 5rem;
    line-height: 0.98;
    margin: 0;
    max-width: 880px;
}

.coming-soon__copy {
    color: var(--muted);
    font-size: 1.08rem;
    margin: 0;
    max-width: 580px;
}

.coming-soon__status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coming-soon__status span {
    background: var(--accent-soft);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 10px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.section-header--compact {
    align-items: center;
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--muted);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

h3 {
    font-size: 1.3rem;
}

.theme-public h1,
.theme-public h2,
.theme-public h3 {
    font-family: inherit;
    font-weight: 720;
    letter-spacing: 0;
    line-height: 1.08;
}

.theme-public h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.theme-public h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.25rem);
}

.theme-public h3 {
    font-size: 1.08rem;
}

.empty-copy,
.muted-text {
    color: var(--muted);
}

.public-page-intro {
    display: grid;
    gap: 14px;
    padding: 12px 0 24px;
    border-bottom: 1px solid var(--line);
}

.public-page-copy {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.button-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.button-row--tight {
    gap: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--site-shell-control-size);
    padding: 0 16px;
    border-radius: 5px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.button:hover {
    text-decoration: none;
}

.button--secondary {
    background: var(--panel-soft);
    color: var(--ink);
    border-color: var(--line);
}

.button--ghost {
    background: transparent;
    color: var(--accent);
}

.alert {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 14px 16px;
}

.alert--error {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.alert--warning {
    border-color: var(--warning);
    background: var(--warning-soft);
}

.alert--success {
    border-color: var(--success);
    background: var(--success-soft);
}

.flash-stack {
    display: grid;
    gap: 12px;
}

.stats-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.theme-public .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
    font-family: Georgia, "Times New Roman", serif;
}

.stat-card__label {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-weight: 600;
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    text-transform: capitalize;
}

.auth-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: center;
}

.auth-card__intro p:last-child {
    max-width: 44ch;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.compact-form {
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span,
.field__label-row {
    font-weight: 600;
}

.field__label-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.field__hint {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 400;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 12px 14px;
}

textarea {
    resize: vertical;
}

.editor-textarea {
    min-height: 420px;
    font-family: "Consolas", "Courier New", monospace;
}

.field--editor {
    position: relative;
}

.wikilink-picker {
    position: fixed;
    left: var(--wikilink-left, 24px);
    top: var(--wikilink-top, 24px);
    width: min(420px, calc(100vw - 24px));
    display: grid;
    gap: 10px;
    padding: 14px 14px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 5px;
    z-index: 30;
}

.wikilink-picker__field {
    display: grid;
    gap: 4px;
}

.wikilink-picker__label {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.wikilink-picker__hint,
.wikilink-picker__footer {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.wikilink-picker__results {
    display: grid;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
}

.wikilink-picker__item {
    width: 100%;
    display: grid;
    gap: 6px;
    padding: 12px 13px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel-soft);
    color: var(--ink);
    cursor: pointer;
}

.wikilink-picker__item:hover,
.wikilink-picker__item.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.wikilink-picker__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wikilink-picker__title {
    font-size: 0.98rem;
}

.wikilink-picker__meta {
    font-size: 0.88rem;
    color: var(--muted);
}

.wikilink-picker__chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wikilink-picker__type,
.wikilink-picker__badge {
    justify-self: start;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.wikilink-picker__badge {
    color: var(--warning);
}

.wikilink-picker__empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-grid--wide {
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.8fr);
}

.editor-layout,
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
    gap: 24px;
}

.stack {
    display: grid;
    gap: 24px;
}

.preview-surface {
    min-height: 240px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 20px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.media-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-card {
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
    background: var(--panel-soft);
}

.media-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}

.media-card__body {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink);
}

.article-card {
    display: grid;
    gap: 12px;
}

.theme-public .article-card {
    gap: 0;
    min-height: 100%;
    overflow: hidden;
    transition:
        border-color 180ms ease,
        transform 180ms ease;
}

.theme-public .article-card.panel {
    padding: 0;
}

.article-card__link {
    color: inherit;
    display: grid;
    gap: 0;
    min-height: 100%;
    text-decoration: none;
}

.article-card__link:hover,
.article-card__link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.article-card__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.theme-public .article-card:has(.article-card__link:hover),
.theme-public .article-card:has(.article-card__link:focus-visible) {
    border-color: color-mix(in srgb, var(--accent), var(--line) 45%);
    transform: translateY(-1px);
}

.article-card__media {
    aspect-ratio: 16 / 10;
    background: var(--panel-soft);
    border-bottom: 1px solid var(--line);
    margin: 0;
    overflow: hidden;
}

.article-card__media picture,
.article-card__media img {
    display: block;
    height: 100%;
    max-width: none;
    width: 100%;
}

.article-card__media img {
    object-fit: cover;
}

.article-card__body {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 20px;
}

.article-card__body > * {
    margin: 0;
}

.theme-public .article-card h2,
.theme-public .article-card h3 {
    font-size: 1.08rem;
}

.theme-public .article-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.archive-footer {
    background: var(--panel);
    border: 1px solid var(--line);
    display: grid;
    gap: 12px;
    padding: 28px;
}

.archive-footer h2,
.archive-footer p {
    margin: 0;
}

.archive-footer p {
    color: var(--muted);
    max-width: 68ch;
}

.archive-footer__cta {
    justify-self: start;
}

.content-field__label {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.preview-banner {
    background: #2a2a1a;
    border: 1px solid #5c5a2a;
    border-radius: 5px;
    color: #f5e6a8;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding: 12px 16px;
}

.article-sheet {
    max-width: 860px;
    margin: 0 auto;
}

.theme-public .article-sheet.panel {
    background: transparent;
    border: 0;
    padding: 0;
}

.article-sheet__header {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.theme-public .article-sheet__header {
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.content-tabs {
    display: grid;
    gap: 28px;
}

.content-section {
    display: grid;
    gap: 22px;
}

.content-field {
    display: grid;
    gap: 12px;
}

.article-sheet__header picture,
.content-field picture,
.prose picture {
    display: block;
    max-width: 100%;
}

.article-sheet__header img,
.content-field img,
.prose img {
    max-width: 100%;
    height: auto;
}

.content-row {
    display: grid;
    gap: 14px;
}

.content-cell {
    display: grid;
    gap: 6px;
}

.content-field__label {
    font-size: 0.82rem;
}

.content-field__label--compact {
    font-size: 0.76rem;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.95rem;
}

.prose {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.theme-public .prose {
    font-family: inherit;
    font-size: 1.04rem;
    line-height: 1.72;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin: 1.4em 0 0.6em;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre {
    margin: 0 0 1rem;
}

.prose blockquote {
    padding-left: 18px;
    border-left: 4px solid var(--line);
    color: var(--muted);
}

.prose pre {
    padding: 16px;
    border-radius: 5px;
    background: #f0eee8;
    overflow-x: auto;
}

.prose img {
    border-radius: 5px;
    border: 1px solid var(--line);
}

.permalink-note {
    font-size: 0.95rem;
}

.theme-public .panel,
.theme-public .preview-banner,
.theme-public .prose pre,
.theme-public .prose img,
.theme-public .site-shell-mega,
.theme-public .site-shell-submenu,
.theme-public .site-shell-mega-link--featured,
.theme-public .site-shell-footer-widget,
.theme-public .site-shell-drawer-panel,
.theme-public .public-search-page-result {
    border-radius: 0;
}

.theme-public .site-mark__icon {
    background: transparent;
    border: 0;
    border-radius: 0;
    height: var(--site-shell-logo-icon-size);
    padding: 0;
    width: var(--site-shell-logo-icon-size);
}

.theme-public .site-mark__icon img {
    height: 100%;
    width: 100%;
}

@media (max-width: 980px) {
    .stats-grid,
    .card-grid,
    .media-grid,
    .media-grid--compact,
    .editor-layout,
    .split-layout,
    .auth-card,
    .field-grid,
    .field-grid--wide {
        grid-template-columns: 1fr;
    }

    .theme-public .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .masthead,
    .section-header {
        align-items: flex-start;
    }

    .page-stack {
        padding-top: 24px;
    }

    .panel,
    .panel--spacious {
        padding: 20px;
    }

    .theme-public .article-card.panel {
        padding: 0;
    }

    .theme-public .card-grid {
        grid-template-columns: 1fr;
    }

    .coming-soon h1 {
        font-size: 2.8rem;
    }
}

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

.site-shell-search[hidden],
.site-shell-drawer[hidden],
.site-shell-drawer-overlay[hidden],
.site-shell-accordion-panel[hidden] {
    display: none !important;
}

.site-shell-header {
    z-index: 40;
}

.site-shell-header--sticky {
    position: sticky;
    top: 0;
}

.site-shell-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--site-shell-header-height);
    padding: 18px 0;
}

.site-shell-slot--logo {
    display: grid;
    gap: 4px;
}

.site-shell-slot--spacer {
    flex: 1 1 auto;
}

.site-shell-slot--menu {
    margin-left: auto;
}

.site-shell-desktop-nav,
.site-shell-slot--search,
.site-shell-slot--cta {
    flex-shrink: 0;
}

.site-shell-menu-list,
.site-shell-drawer-list,
.site-shell-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-shell-menu-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-shell-nav-item {
    position: relative;
}

.site-shell-nav-link,
.site-shell-drawer-link,
.site-shell-drawer-overview,
.site-shell-mega-link,
.site-shell-search-result,
.site-shell-search-more {
    text-decoration: none;
}

.site-shell-nav-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    min-height: var(--site-shell-control-size);
    padding: 0 14px;
    border: 0;
    border-radius: 5px;
    color: var(--ink);
    font-weight: 600;
    transition: color 180ms ease;
}

.site-shell-nav-link::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 7px;
    left: 14px;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(0.68);
    transform-origin: center;
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.site-shell-nav-link:hover,
.site-shell-nav-link:focus-visible {
    color: var(--accent);
    text-decoration: none;
}

.site-shell-nav-link:hover::after,
.site-shell-nav-link:focus-visible::after,
.site-shell-nav-item.is-active > .site-shell-nav-link::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-shell-nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-shell-nav-item.is-active > .site-shell-nav-link {
    color: var(--accent);
}

.site-shell-mega {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: none;
    min-width: min(880px, calc(100vw - 32px));
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.site-shell-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: none;
    min-width: min(320px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.site-shell-nav-item--mega:hover .site-shell-mega,
.site-shell-nav-item--mega:focus-within .site-shell-mega {
    display: block;
}

.site-shell-nav-item--submenu:hover .site-shell-submenu,
.site-shell-nav-item--submenu:focus-within .site-shell-submenu {
    display: block;
}

.site-shell-mega-grid {
    display: grid;
    gap: 18px;
}

.site-shell-mega-grid--1 {
    grid-template-columns: 1fr;
}

.site-shell-mega-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-shell-mega-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-shell-mega-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-shell-mega-column,
.site-shell-footer-widget,
.site-shell-search-dialog,
.public-search-page-result {
    display: grid;
    gap: 10px;
}

.site-shell-mega-links {
    display: grid;
    gap: 10px;
}

.site-shell-submenu-list,
.site-shell-drawer-children-list,
.site-shell-footer-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-shell-submenu-list {
    display: grid;
    gap: 10px;
}

.site-shell-mega-link {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.site-shell-mega-links .site-shell-mega-link:first-child {
    border-top: 0;
    padding-top: 0;
}

.site-shell-mega-link span,
.site-shell-submenu-link span,
.site-shell-footer-links span,
.site-shell-search-result-copy small,
.site-shell-search-empty,
.site-shell-search-status {
    color: var(--muted);
}

.site-shell-submenu-link {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.site-shell-submenu-list > li:first-child .site-shell-submenu-link,
.site-shell-drawer-children-list > li:first-child .site-shell-submenu-link {
    border-top: 0;
    padding-top: 0;
}

.site-shell-mega-link--featured {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel-soft);
}

.site-shell-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--muted);
}

.site-shell-search-trigger,
.site-shell-toggle,
.site-shell-drawer-close,
.site-shell-search-close,
.site-shell-accordion-toggle {
    font: inherit;
}

.site-shell-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: color 180ms ease;
}

.site-shell-search-trigger-icon,
.site-shell-search-trigger-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-shell-search-trigger-icon svg {
    width: 18px;
    height: 18px;
}

.site-shell-search-trigger-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-shell-search-trigger-shortcut {
    min-width: 24px;
    min-height: 24px;
    margin-left: auto;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.78rem;
}

.site-shell-search-trigger small {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-shell-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 0;
    border-radius: 5px;
    background: var(--panel);
    cursor: pointer;
}

.site-shell-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.site-shell-header.is-drawer-open .site-shell-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-shell-header.is-drawer-open .site-shell-toggle span:nth-child(2) {
    opacity: 0;
}

.site-shell-header.is-drawer-open .site-shell-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-shell-drawer-overlay,
.site-shell-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 29, 25, 0.36);
    opacity: 0;
    transition: opacity 180ms ease;
}

.site-shell-drawer-overlay.is-open,
.site-shell-search.is-open .site-shell-search-overlay {
    opacity: 1;
}

.site-shell-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(420px, calc(100vw - 24px));
    display: block;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    z-index: 70;
}

.site-shell-drawer.is-open {
    transform: translateX(0);
}

.site-shell-drawer-panel {
    min-height: 100%;
    padding: 22px 20px 28px;
    border-right: 1px solid var(--line);
    background: var(--panel);
    display: grid;
    gap: 20px;
    overflow-y: auto;
}

.site-shell-drawer-header,
.site-shell-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-shell-drawer-close,
.site-shell-search-close {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel-soft);
    color: var(--ink);
    cursor: pointer;
}

.site-shell-drawer-nav,
.site-shell-drawer-mega,
.site-shell-drawer-children,
.site-shell-footer-inner {
    display: grid;
    gap: 18px;
}

.site-shell-drawer-list {
    display: grid;
    gap: 8px;
}

.site-shell-drawer-link,
.site-shell-drawer-overview {
    display: block;
    padding: 12px 0;
    color: var(--ink);
    font-weight: 600;
}

.site-shell-drawer-link {
    border-top: 1px solid var(--line);
}

.site-shell-drawer-list > li:first-child .site-shell-drawer-link {
    border-top: 0;
    padding-top: 0;
}

.site-shell-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-weight: 600;
    text-align: left;
}

.site-shell-drawer-list > li:first-child .site-shell-accordion-toggle {
    border-top: 0;
    padding-top: 0;
}

.site-shell-accordion-panel {
    display: grid;
    gap: 14px;
    padding-bottom: 12px;
}

.site-shell-drawer-cta {
    width: 100%;
}

.site-shell-search {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: none;
}

.site-shell-search.is-open {
    pointer-events: auto;
}

.site-shell-search-dialog {
    position: relative;
    width: min(720px, 100%);
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.site-shell-search.is-open .site-shell-search-dialog {
    opacity: 1;
    transform: translateY(0);
}

.site-shell-search-field input,
.public-search-page-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel-soft);
    color: var(--ink);
    font: inherit;
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8em;
    min-height: 1.8em;
    padding: 0 0.35em;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel-soft);
    color: var(--ink);
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.82rem;
}

.site-shell-search-results {
    display: grid;
    gap: 8px;
    max-height: min(50vh, 420px);
    overscroll-behavior: contain;
    overflow-y: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.site-shell-search-result {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel-soft);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.site-shell-search-result.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.site-shell-search-result-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.site-shell-search-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel-soft);
    color: var(--ink);
    font-weight: 600;
}

.site-shell-footer {
    border-top: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 30px 0 42px;
}

.site-shell-footer-row {
    display: grid;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.site-shell-footer-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.site-shell-footer-row--feature {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.site-shell-footer-row--balanced {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-shell-footer-row--legal {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.site-shell-footer-column {
    display: grid;
    gap: 18px;
}

.site-shell-footer-links {
    display: grid;
    gap: 10px;
}

.site-shell-footer-submenu {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-left: 16px;
}

.site-shell-footer-links li {
    display: grid;
    gap: 4px;
}

.site-shell-footer-links a,
.site-shell-footer-social a,
.site-shell-footer-legal a {
    color: var(--ink);
    font-weight: 600;
}

.site-shell-footer-contact,
.site-shell-footer-legal {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.site-shell-footer-legal button {
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0;
    text-align: left;
}

.site-shell-footer-legal a:hover,
.site-shell-footer-legal a:focus-visible,
.site-shell-footer-legal button:hover,
.site-shell-footer-legal button:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.site-shell-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.site-shell-footer-row--mandatory-legal {
    display: flex;
    justify-content: center;
    padding-bottom: 0;
}

.site-shell-footer-mandatory-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
}

.site-shell-footer-mandatory-links a,
.site-shell-footer-mandatory-links button {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    padding: 0;
    text-decoration: none;
}

.site-shell-footer-mandatory-links a:hover,
.site-shell-footer-mandatory-links a:focus-visible,
.site-shell-footer-mandatory-links button:hover,
.site-shell-footer-mandatory-links button:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.legal-page-details {
    display: grid;
    gap: 16px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.legal-page-details h2 {
    margin: 0;
}

.legal-page-details dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.legal-page-details dl > div {
    display: grid;
    gap: 4px;
}

.legal-page-details dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-page-details dd {
    margin: 0;
}

.cookie-consent {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    width: min(760px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent p {
    align-self: center;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-consent a {
    color: var(--ink);
    font-weight: 700;
}

.cookie-consent__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .cookie-consent {
        grid-template-columns: 1fr;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__actions .button {
        flex: 1 1 120px;
    }
}

.public-search-page,
.public-search-page-header {
    display: grid;
    gap: 18px;
}

.public-search-page {
    gap: 24px;
}

.public-search-page-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.public-search-page-field {
    flex: 1 1 360px;
}

.public-search-page-field input {
    min-height: 58px;
    padding: 0 18px;
}

.public-search-page-results {
    display: grid;
    gap: 0;
}

.public-search-page-result {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.public-search-page-result h3,
.public-search-page-result p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-search-page-result:first-child {
    border-top: 0;
    padding-top: 0;
}

.site-shell-header {
    position: relative;
    z-index: 90;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

body.site-shell-has-mobile-fixed-header {
    padding-top: var(--site-shell-header-height);
}

.site-shell-header.is-mobile {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    transition:
        transform 220ms ease,
        background-color 220ms ease;
    will-change: transform;
}

.site-shell-header.is-mobile.is-hidden-on-scroll {
    transform: translate3d(0, calc(-100% - 2px), 0);
}

.site-shell-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--site-shell-header-height);
    padding: 18px 0;
}

.site-shell-bar--mobile {
    display: none;
}

.site-shell-slot--logo,
.site-shell-mobile-brand {
    min-width: 0;
}

.site-shell-slot--menu {
    margin-left: auto;
}

.site-shell-mobile-brand .site-mark__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-shell-mobile-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-shell-user-slot[hidden] {
    display: none !important;
}

.site-shell-nav-link {
    min-height: var(--site-shell-control-size);
    padding: 0 14px;
}

.site-shell-toggle,
.site-shell-drawer-close,
.site-shell-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--site-shell-control-size);
    height: var(--site-shell-control-size);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: color 180ms ease;
}

.site-shell-toggle,
.site-shell-drawer-close {
    border: 0;
    background: transparent;
}

.site-shell-search-trigger--field {
    width: clamp(180px, 18vw, 268px);
    min-height: var(--site-shell-control-size);
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--line), transparent 22%);
    border-radius: 10px;
    background: color-mix(in srgb, var(--panel-soft), transparent 18%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
    color: color-mix(in srgb, var(--ink), var(--muted) 18%);
    justify-content: flex-start;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.site-shell-search-trigger--field .site-shell-search-trigger-shortcut {
    min-width: 22px;
    min-height: 22px;
    border: 1px solid color-mix(in srgb, var(--line), transparent 30%);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.55);
}

.site-shell-header .button {
    border: 0;
}

.site-shell-toggle:hover,
.site-shell-toggle:focus-visible,
.site-shell-drawer-close:hover,
.site-shell-drawer-close:focus-visible,
.site-shell-search-close:hover,
.site-shell-search-close:focus-visible {
    background: transparent;
    color: var(--accent);
    text-decoration: none;
}

.site-shell-search-trigger--field:hover,
.site-shell-search-trigger--field:focus-visible {
    border-color: rgba(37, 99, 235, 0.26);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    color: var(--ink);
    text-decoration: none;
}

.site-shell-search-more:hover,
.site-shell-search-more:focus-visible {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent);
    box-shadow: 0 8px 20px rgba(20, 23, 25, 0.08);
    text-decoration: none;
}

.site-shell-toggle:hover,
.site-shell-toggle:focus-visible,
.site-shell-drawer-close:hover,
.site-shell-drawer-close:focus-visible {
    background: transparent;
    border-color: transparent;
}

.site-shell-toggle:focus-visible,
.site-shell-drawer-close:focus-visible,
.site-shell-search-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-shell-toggle {
    gap: 4px;
    flex-direction: column;
}

.site-shell-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition:
        transform 220ms ease,
        opacity 220ms ease;
    transform-origin: center;
}

.site-shell-header.is-drawer-open .site-shell-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-shell-header.is-drawer-open .site-shell-toggle span:nth-child(2) {
    opacity: 0;
}

.site-shell-header.is-drawer-open .site-shell-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-shell-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 17, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 100;
}

.site-shell-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.site-shell-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: min(420px, calc(100vw - 36px));
    display: block;
    transform: translate3d(-100%, 0, 0);
    transition: transform 220ms ease;
    will-change: transform;
    z-index: 110;
}

.site-shell-drawer.is-open {
    transform: translate3d(0, 0, 0);
}

.site-shell-drawer-panel {
    height: 100%;
    min-height: 0;
    padding: 0 var(--site-shell-wide-gutter) 32px;
    border-right: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.site-shell-drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-shrink: 0;
    min-height: var(--site-shell-header-height);
    padding: 0;
}

.site-shell-drawer-close::before,
.site-shell-drawer-close::after,
.site-shell-search-close::before,
.site-shell-search-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transform-origin: center;
}

.site-shell-drawer-close::before,
.site-shell-search-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.site-shell-drawer-close::after,
.site-shell-search-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.site-shell-drawer-close span,
.site-shell-search-close span {
    display: none;
}

.site-shell-drawer-brand {
    flex: 1 1 auto;
    min-width: 0;
}

.site-shell-drawer-brand .site-mark {
    max-width: 100%;
    font-size: 1.35rem;
}

.site-shell-drawer-brand .site-mark__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-shell-drawer-list {
    display: grid;
    gap: 0;
}

.site-shell-drawer-item + .site-shell-drawer-item {
    border-top: 1px solid var(--line);
}

.site-shell-drawer-link,
.site-shell-drawer-overview,
.site-shell-accordion-toggle {
    padding: 16px 0;
}

.site-shell-drawer-link,
.site-shell-drawer-overview {
    display: block;
    color: var(--ink);
    font-weight: 600;
}

.site-shell-drawer-overview {
    color: var(--muted);
}

.site-shell-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-weight: 600;
    text-align: left;
}

.site-shell-accordion-indicator {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
}

.site-shell-accordion-panel {
    display: grid;
    gap: 16px;
    padding-bottom: 16px;
}

.site-shell-drawer-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.site-shell-drawer-cta {
    width: 100%;
}

.site-shell-search {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.site-shell-search.is-open {
    pointer-events: auto;
}

.site-shell-search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 23, 25, 0.34);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 220ms ease;
}

.site-shell-search.is-open .site-shell-search-overlay {
    opacity: 1;
}

.site-shell-search-surface {
    position: relative;
    width: min(840px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
    border: 1px solid color-mix(in srgb, var(--line), transparent 24%);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(20, 23, 25, 0.18);
    opacity: 0;
    overflow: hidden;
    transform: translateY(18px);
    backdrop-filter: blur(10px);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.site-shell-search.is-open .site-shell-search-surface {
    opacity: 1;
    transform: translateY(0);
}

.site-shell-search-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.site-shell-search-title-group {
    display: grid;
    gap: 4px;
}

.site-shell-search-title-group h2 {
    margin: 0;
    font-size: clamp(1.24rem, 2vw, 1.62rem);
    line-height: 1.2;
}

.site-shell-drawer-close,
.site-shell-search-close {
    font-size: 1.6rem;
    line-height: 1;
}

.site-shell-drawer-close span,
.site-shell-search-close span {
    transform: translateY(-1px);
}

.site-shell-search-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 18px;
    border: 1px solid color-mix(in srgb, var(--line), transparent 18%);
    border-radius: 10px;
    background: color-mix(in srgb, var(--panel-soft), transparent 16%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.site-shell-search-field input {
    width: 100%;
    min-height: 60px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1.05rem;
}

.site-shell-search-field input:focus {
    outline: none;
}

.site-shell-search-field:focus-within {
    border-color: rgba(37, 99, 235, 0.32);
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-shell-search-field:focus-within .site-shell-search-field-icon {
    color: #2563eb;
}

.site-shell-search-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.site-shell-search-field-icon svg {
    width: 18px;
    height: 18px;
}

.site-shell-search-loader {
    width: 16px;
    height: 16px;
    border: 2px solid color-mix(in srgb, var(--muted), transparent 72%);
    border-top-color: #2563eb;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 140ms ease;
    animation: site-shell-search-spin 760ms linear infinite;
    animation-play-state: paused;
}

.site-shell-search.is-loading .site-shell-search-loader {
    opacity: 1;
    animation-play-state: running;
}

@keyframes site-shell-search-spin {
    to {
        transform: rotate(360deg);
    }
}

.site-shell-search-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.site-shell-search-status {
    min-height: 1.2rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: right;
}

.site-shell-search-status.is-loading {
    color: var(--ink);
}

.site-shell-search-results-shell {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
    max-height: min(52vh, 440px);
    border: 1px solid color-mix(in srgb, var(--line), transparent 26%);
    border-radius: 10px;
    background: rgba(240, 242, 242, 0.58);
    overflow: hidden;
}

.site-shell-search-results {
    display: grid;
    gap: 10px;
    align-content: start;
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 12px;
    overscroll-behavior: contain;
    overflow-y: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.site-shell-search-result {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid color-mix(in srgb, var(--line), transparent 22%);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    overflow-wrap: anywhere;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.site-shell-search-result.is-active {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.1);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.site-shell-search-result-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.site-shell-search-result-copy strong,
.site-shell-search-result-copy small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-shell-search-empty {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.site-shell-search-footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: 0;
}

.site-shell-search-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 36px;
    margin-left: auto;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--line), transparent 22%);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.site-shell-search.is-mobile-viewport {
    padding: 0;
}

.site-shell-search.is-mobile-viewport .site-shell-search-overlay {
    background: var(--panel);
}

.site-shell-search.is-mobile-viewport .site-shell-search-surface {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    padding: 0 var(--site-shell-wide-gutter) 18px;
    border: 0;
    border-radius: 0;
    background: var(--panel);
    box-shadow: none;
    transform: translateY(0);
}

.site-shell-search.is-mobile-viewport .site-shell-search-topbar {
    align-items: center;
    min-height: var(--site-shell-header-height);
}

.site-shell-search.is-mobile-viewport .site-shell-search-results-shell {
    flex: 1 1 auto;
    max-height: none;
}

.site-shell-header.is-mobile .site-shell-bar--desktop {
    display: none;
}

.site-shell-header.is-mobile .site-shell-bar--mobile {
    display: flex;
    justify-content: flex-start;
}

.site-shell-header.is-mobile .site-shell-toggle {
    order: 1;
}

.site-shell-header.is-mobile .site-shell-mobile-brand {
    order: 2;
    flex: 1 1 auto;
}

.site-shell-header.is-mobile .site-shell-mobile-actions {
    order: 3;
    margin-left: 0;
}

.site-shell-header.is-mobile .site-shell-mobile-brand .site-mark {
    font-size: 1.35rem;
    max-width: 100%;
}

.site-shell-header.is-mobile .site-shell-search-trigger--field {
    width: var(--site-shell-control-size);
    min-width: var(--site-shell-control-size);
    height: var(--site-shell-control-size);
    padding: 0;
    justify-content: center;
}

.site-shell-header.is-mobile .site-shell-search-trigger-label,
.site-shell-header.is-mobile .site-shell-search-trigger-shortcut {
    display: none;
}

.nexus-author-byline {
    margin: 16px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.nexus-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 8px 0 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
}

.nexus-ui {
    --nexus-ui-bg: var(--panel);
    --nexus-ui-soft: var(--panel-soft);
    --nexus-ui-text: var(--ink);
    --nexus-ui-muted: var(--muted);
    --nexus-ui-line: var(--line);
    --nexus-ui-accent: var(--accent);
    --nexus-ui-accent-soft: var(--accent-soft);
    --nexus-ui-radius: min(8px, max(0px, var(--radius)));
    color: var(--nexus-ui-text);
}

.nexus-ui * {
    box-sizing: border-box;
}

.nexus-component-header {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
}

.nexus-component-header h2,
.nexus-component-header p {
    margin: 0;
}

.nexus-component-header p {
    color: var(--nexus-ui-muted);
    max-width: 68ch;
}

.nexus-button {
    align-items: center;
    background: var(--nexus-ui-accent);
    border: 1px solid var(--nexus-ui-accent);
    border-radius: var(--nexus-ui-radius);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    text-decoration: none;
}

.nexus-button:hover {
    text-decoration: none;
}

.nexus-accordion,
.nexus-testimonials,
.nexus-author-box,
.nexus-related,
.nexus-callout,
.nexus-cta,
.nexus-tabs,
.nexus-features,
.nexus-stats-section {
    margin: clamp(24px, 4vw, 40px) 0;
}

.nexus-accordion {
    border-top: 1px solid var(--nexus-ui-line);
}

.nexus-accordion__item {
    border-bottom: 1px solid var(--nexus-ui-line);
}

.nexus-accordion__heading {
    margin: 0;
}

.nexus-accordion__trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--nexus-ui-text);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 750;
    gap: 18px;
    justify-content: space-between;
    min-height: 58px;
    padding: 16px 0;
    text-align: left;
    width: 100%;
}

.nexus-accordion__trigger:focus-visible,
.nexus-share__toggle:focus-visible,
.nexus-share__panel a:focus-visible,
.nexus-share__panel button:focus-visible,
.nexus-tabs__tab:focus-visible,
.nexus-modal__close:focus-visible,
.nexus-button:focus-visible {
    outline: 2px solid var(--nexus-ui-accent);
    outline-offset: 3px;
}

.nexus-accordion__indicator {
    align-items: center;
    border: 1px solid var(--nexus-ui-line);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.nexus-accordion__content {
    color: var(--nexus-ui-muted);
    max-width: 74ch;
    padding: 0 0 18px;
}

.nexus-accordion__content > :first-child,
.nexus-callout__body > :first-child,
.nexus-cta__body > :first-child,
.nexus-feature__body > :first-child,
.nexus-tabs__panel > :first-child,
.nexus-author-box__bio > :first-child,
.nexus-testimonial__quote > :first-child {
    margin-top: 0;
}

.nexus-accordion__content > :last-child,
.nexus-callout__body > :last-child,
.nexus-cta__body > :last-child,
.nexus-feature__body > :last-child,
.nexus-tabs__panel > :last-child,
.nexus-author-box__bio > :last-child,
.nexus-testimonial__quote > :last-child {
    margin-bottom: 0;
}

.nexus-testimonials__grid,
.nexus-related__grid,
.nexus-features__grid,
.nexus-stats {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.nexus-testimonial,
.nexus-related__card,
.nexus-feature,
.nexus-stat,
.nexus-author-box__person {
    background: var(--nexus-ui-bg);
    border: 1px solid var(--nexus-ui-line);
    border-radius: var(--nexus-ui-radius);
    margin: 0;
}

.nexus-testimonial,
.nexus-feature,
.nexus-stat,
.nexus-author-box__person {
    padding: 20px;
}

.nexus-testimonial {
    display: grid;
    gap: 16px;
}

.nexus-testimonial__media,
.nexus-author-box__media {
    border: 1px solid var(--nexus-ui-line);
    border-radius: 999px;
    height: 64px;
    overflow: hidden;
    width: 64px;
}

.nexus-testimonial__image,
.nexus-author-box__image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.nexus-testimonial__quote {
    color: var(--nexus-ui-text);
    margin: 0;
}

.nexus-testimonial__person,
.nexus-author-box__identity {
    display: grid;
    gap: 3px;
}

.nexus-testimonial__person span,
.nexus-author-box__identity p,
.nexus-related__body span,
.nexus-feature__body,
.nexus-stat dt {
    color: var(--nexus-ui-muted);
}

.nexus-author-box {
    display: grid;
    gap: 14px;
}

.nexus-author-box__person {
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr);
}

.nexus-author-box__identity h3,
.nexus-author-box__identity p {
    margin: 0;
}

.nexus-author-box__bio {
    margin-top: 12px;
}

.nexus-related__card {
    overflow: hidden;
}

.nexus-related__link {
    color: inherit;
    display: grid;
    min-height: 100%;
    text-decoration: none;
}

.nexus-related__link:hover,
.nexus-related__link:focus-visible {
    text-decoration: none;
}

.nexus-related__link:focus-visible {
    outline: 2px solid var(--nexus-ui-accent);
    outline-offset: 3px;
}

.nexus-related .article-card__media {
    aspect-ratio: 16 / 9;
    margin: 0;
}

.nexus-related__body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.nexus-callout {
    background: var(--nexus-ui-soft);
    border: 1px solid var(--nexus-ui-line);
    border-left: 4px solid var(--nexus-ui-accent);
    border-radius: var(--nexus-ui-radius);
    padding: 18px 20px;
}

.nexus-callout h3 {
    margin: 0 0 8px;
}

.nexus-callout--success {
    border-left-color: var(--success);
}

.nexus-callout--warning {
    border-left-color: var(--warning);
}

.nexus-callout--danger,
.nexus-callout--error {
    border-left-color: var(--danger);
}

.nexus-cta {
    align-items: center;
    background: var(--nexus-ui-bg);
    border: 1px solid var(--nexus-ui-line);
    border-radius: var(--nexus-ui-radius);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: clamp(20px, 4vw, 30px);
}

.nexus-cta__copy {
    display: grid;
    gap: 8px;
}

.nexus-cta h2 {
    margin: 0;
}

.nexus-cta__button {
    flex: 0 0 auto;
}

.nexus-tabs {
    display: grid;
    gap: 14px;
}

.nexus-tabs__list {
    border-bottom: 1px solid var(--nexus-ui-line);
    display: flex;
    gap: 6px;
    overflow-x: auto;
}

.nexus-tabs__tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--nexus-ui-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 44px;
    padding: 0 10px;
}

.nexus-tabs__tab[aria-selected="true"] {
    border-bottom-color: var(--nexus-ui-accent);
    color: var(--nexus-ui-text);
}

.nexus-tabs__panel {
    background: var(--nexus-ui-bg);
    border: 1px solid var(--nexus-ui-line);
    border-radius: var(--nexus-ui-radius);
    padding: 20px;
}

.nexus-feature {
    display: grid;
    gap: 10px;
}

.nexus-feature__icon {
    align-items: center;
    background: var(--nexus-ui-soft);
    border: 1px solid var(--nexus-ui-line);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.nexus-feature h3 {
    margin: 0;
}

.nexus-stats {
    margin: 0;
}

.nexus-stat {
    display: grid;
    gap: 4px;
}

.nexus-stat dd,
.nexus-stat dt {
    margin: 0;
}

.nexus-stat dd {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1.05;
}

.nexus-share {
    display: inline-grid;
    position: relative;
}

.nexus-share__toggle,
.nexus-share__panel button {
    background: var(--nexus-ui-bg);
    border: 1px solid var(--nexus-ui-line);
    border-radius: var(--nexus-ui-radius);
    color: var(--nexus-ui-text);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 40px;
    padding: 0 12px;
}

.nexus-share__panel {
    background: var(--nexus-ui-bg);
    border: 1px solid var(--nexus-ui-line);
    border-radius: var(--nexus-ui-radius);
    display: grid;
    gap: 6px;
    min-width: 180px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 25;
}

.nexus-share__panel a,
.nexus-share__panel button {
    align-items: center;
    color: var(--nexus-ui-text);
    display: flex;
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 10px;
    text-align: left;
    text-decoration: none;
}

.nexus-share__panel a:hover,
.nexus-share__panel button:hover {
    background: var(--nexus-ui-soft);
    text-decoration: none;
}

.nexus-modal[hidden],
.nexus-toast-host[hidden] {
    display: none;
}

.nexus-modal {
    inset: 0;
    position: fixed;
    z-index: 1100;
}

.nexus-modal__overlay {
    background: rgba(10, 10, 10, .48);
    inset: 0;
    position: absolute;
}

.nexus-modal__surface {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    left: 50%;
    max-height: calc(100dvh - 48px);
    overflow: auto;
    padding: 24px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 32px));
}

.nexus-modal__surface h2 {
    margin: 0 42px 12px 0;
}

.nexus-modal__close {
    align-items: center;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
}

.nexus-toast-host {
    display: grid;
    gap: 10px;
    max-width: min(360px, calc(100vw - 32px));
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 1200;
}

.nexus-toast {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    color: var(--ink);
    padding: 12px 14px;
}

.nexus-toast--success {
    border-left-color: var(--success);
}

.nexus-toast--warning {
    border-left-color: var(--warning);
}

.nexus-toast--danger,
.nexus-toast--error {
    border-left-color: var(--danger);
}

.nexus-toast__title,
.nexus-toast p {
    margin: 0;
}

.nexus-toast__title + p {
    margin-top: 4px;
}

.nexus-lead-capture {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
}

.nexus-lead-trigger,
.nexus-lead-modal button[type="submit"] {
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--panel);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 12px 18px;
}

.nexus-lead-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, .46);
}

.nexus-lead-modal {
    position: fixed;
    right: 24px;
    bottom: 88px;
    left: auto;
    top: auto;
    transform: none;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100dvh - 120px);
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.nexus-lead-modal h2 {
    margin: 0 0 8px;
}

.nexus-lead-modal form,
.nexus-lead-modal label {
    display: grid;
    gap: 8px;
}

.nexus-lead-modal form {
    margin-top: 16px;
    gap: 14px;
}

.nexus-lead-modal input,
.nexus-lead-modal textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    padding: 10px 12px;
}

.nexus-lead-modal textarea {
    min-height: 112px;
    resize: vertical;
}

.nexus-lead-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel-soft);
    color: var(--ink);
    cursor: pointer;
}

.nexus-lead-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.nexus-lead-consent {
    align-items: start;
    grid-template-columns: auto 1fr;
}

.nexus-lead-consent input {
    width: auto;
    margin-top: 4px;
}

.nexus-lead-status {
    min-height: 1.3em;
    margin: 0;
    color: var(--muted);
}

.nexus-lead-status.is-success {
    color: #0b6b3a;
}

.nexus-lead-status.is-error {
    color: #a12626;
}

@media (max-width: 980px) {
    .site-shell-footer-row--feature,
    .site-shell-footer-row--legal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-shell-search-surface {
        width: min(760px, 100%);
    }
}

@media (max-width: 720px) {
    .site-shell-bar {
        min-height: 76px;
        padding: 14px 0;
    }

    .site-shell-search-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-shell-search-footer {
        width: 100%;
    }

    .site-shell-search-more {
        width: 100%;
        margin-left: 0;
    }

    .site-shell-footer-row--feature,
    .site-shell-footer-row--balanced,
    .site-shell-footer-row--legal {
        grid-template-columns: 1fr;
    }

    .public-search-page-form {
        align-items: stretch;
    }

    .nexus-cta,
    .nexus-author-box__person {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .nexus-cta {
        flex-direction: column;
    }

    .nexus-cta__button {
        width: 100%;
    }

    .nexus-share {
        display: grid;
        width: 100%;
    }

    .nexus-share__panel {
        left: 0;
        right: auto;
        width: min(100%, 320px);
    }

    .nexus-modal__surface {
        max-height: calc(100dvh - 24px);
        padding: 22px;
        width: calc(100vw - 24px);
    }

    .nexus-lead-capture {
        right: 16px;
        bottom: 16px;
    }

    .nexus-lead-modal {
        right: 16px;
        bottom: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-shell-header,
    .site-shell-toggle span,
    .site-shell-drawer,
    .site-shell-drawer-overlay,
    .site-shell-search-overlay,
    .site-shell-search-surface,
    .site-shell-search-loader {
        transition: none;
    }

    .site-shell-search-loader {
        animation: none;
    }
}
