:root {
    --header-v3-bg: #ffffff;
    --header-v3-surface: #f7f8fa;
    --header-v3-surface-strong: #eef1f4;
    --header-v3-text: #17191d;
    --header-v3-muted: #6b7280;
    --header-v3-line: #e4e7eb;
    --header-v3-accent: #d01c17;
    --header-v3-accent-soft: #eaf7ee;
    --header-v3-dark: #111418;
    --header-v3-radius: 18px;
    --header-v3-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    --header-v3-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    color: var(--header-v3-text);
    background: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.header-v3-lock {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

.site-header-v3,
.site-header-v3 * {
    box-sizing: border-box;
}

.site-header-v3 {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--header-v3-line);
    backdrop-filter: blur(14px);
}

.header-v3-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1280px, 100%);
    min-height: var(--header-v3-height);
    margin: 0 auto;
    padding: 0 28px;
}

.header-v3-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.header-v3-logo img {
    display: block;
    width: 154px;
    height: auto;
}

.header-v3-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
}

.header-v3-mobile-title {
    display: none;
}

.header-v3-main-list,
.header-v3-topic-list,
.header-v3-page-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-v3-main-list {
    position: static;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    width: 100%;
}

.header-v3-main-item {
    position: static;
    display: flex;
    align-items: stretch;
}

.header-v3-main-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-v3-main-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--header-v3-height);
    padding: 0 10px;
    color: var(--header-v3-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.header-v3-main-link::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: -1px;
    left: 10px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--header-v3-accent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 180ms ease, transform 180ms ease;
}

.header-v3-main-item.is-current > .header-v3-main-row .header-v3-main-link,
.header-v3-main-item.is-open > .header-v3-main-row .header-v3-main-link,
.header-v3-main-link:hover,
.header-v3-main-link:focus-visible {
    color: var(--header-v3-accent);
}

.header-v3-main-item.is-current > .header-v3-main-row .header-v3-main-link::after,
.header-v3-main-item.is-open > .header-v3-main-row .header-v3-main-link::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-v3-main-toggle,
.header-v3-topic-toggle,
.header-v3-search,
.header-v3-mobile-button,
.header-v3-backdrop,
.header-v3-search-close {
    border: 0;
    cursor: pointer;
}

.header-v3-main-toggle {
    display: inline-grid;
    width: 30px;
    height: 38px;
    place-items: center;
    padding: 0;
    color: var(--header-v3-muted);
    background: transparent;
    border-radius: 8px;
    transition: color 180ms ease, background 180ms ease;
}

.header-v3-main-toggle:hover,
.header-v3-main-toggle:focus-visible {
    color: var(--header-v3-accent);
    background: var(--header-v3-accent-soft);
    outline: none;
}

.header-v3-main-toggle svg,
.header-v3-topic-toggle svg {
    transition: transform 180ms ease;
}

.header-v3-main-item.is-open > .header-v3-main-row .header-v3-main-toggle svg {
    transform: rotate(180deg);
}

.header-v3-mega {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    width: min(1180px, calc(100vw - 36px));
    max-height: min(720px, calc(100vh - var(--header-v3-height) - 28px));
    overflow: hidden;
    border: 1px solid var(--header-v3-line);
    border-radius: 0 0 var(--header-v3-radius) var(--header-v3-radius);
    background: #ffffff;
    box-shadow: var(--header-v3-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.header-v3-main-item.is-open > .header-v3-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.header-v3-mega-grid {
    display: grid;
    grid-template-columns: 250px 310px minmax(0, 1fr);
    min-height: 420px;
    max-height: inherit;
}

.header-v3-context,
.header-v3-topics,
.header-v3-related {
    min-width: 0;
}

.header-v3-context {
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    color: #ffffff;
    background:#171717;
}

.header-v3-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
	background-color: #d01c17;
}

.header-v3-context h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.05;
	color:#fff;
}

.header-v3-context p {
    margin: 0;
    color: #c8cdd4;
    font-size: 14px;
    line-height: 1.65;
}

.header-v3-parent-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 28px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.header-v3-parent-link:hover,
.header-v3-parent-link:focus-visible {
    color: #d01c17;
}

.header-v3-topics {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 24px 18px 24px 22px;
    border-right: 1px solid var(--header-v3-line);
    background: var(--header-v3-surface);
}

.header-v3-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px 12px;
    color: var(--header-v3-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.header-v3-panel-title small {
    display: inline-grid;
    min-width: 26px;
    height: 24px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--header-v3-surface-strong);
    color: var(--header-v3-text);
    font-size: 11px;
    letter-spacing: 0;
}

.header-v3-topic-list {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.header-v3-topic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: 2px 0;
    border-radius: 12px;
    transition: background 150ms ease;
}

.header-v3-topic.is-active {
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.06);
}

.header-v3-topic-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 10px 12px 12px;
    color: var(--header-v3-text);
    text-decoration: none;
}

.header-v3-topic-link > span {
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-v3-topic-link small {
    min-width: 26px;
    padding: 4px 7px;
    border-radius: 999px;
    color: var(--header-v3-muted);
    background: var(--header-v3-surface-strong);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.header-v3-topic-link svg {
    color: #9ca3af;
}

.header-v3-topic.is-active .header-v3-topic-link,
.header-v3-topic-link:hover,
.header-v3-topic-link:focus-visible {
    color: var(--header-v3-accent);
    outline: none;
}

.header-v3-topic-toggle {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    color: var(--header-v3-muted);
    background: transparent;
    border-radius: 10px;
}

.header-v3-related {
    min-height: 0;
    padding: 26px;
    overflow: hidden;
    background: #ffffff;
}

.header-v3-page-panel {
    height: 100%;
}

.header-v3-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--header-v3-line);
}

.header-v3-related-head > div {
    min-width: 0;
}

.header-v3-related-head span {
    display: block;
    margin-bottom: 5px;
    color: var(--header-v3-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-v3-related-head h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
}

.header-v3-view-topic {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--header-v3-accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.header-v3-view-topic:hover,
.header-v3-view-topic:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-v3-page-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 470px;
    padding-right: 6px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.header-v3-page-link {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    min-height: 62px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--header-v3-text);
    background: var(--header-v3-surface);
    text-decoration: none;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.header-v3-page-link:hover,
.header-v3-page-link:focus-visible {
    border-color: #cfe8d6;
    background: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.header-v3-page-arrow {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: var(--header-v3-accent);
    background: var(--header-v3-accent-soft);
    font-weight: 800;
}

.header-v3-page-copy {
    display: block;
    min-width: 0;
}

.header-v3-page-copy strong {
    display: block;
    font-size: 12.5px;
    line-height: 1.35;
}

.header-v3-page-copy time {
    display: block;
    margin-top: 5px;
    color: var(--header-v3-muted);
    font-size: 10.5px;
}

.header-v3-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.header-v3-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--header-v3-line);
    border-radius: 12px;
    color: var(--header-v3-text);
    background: #ffffff;
    font-size: 12px;
    font-weight: 800;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.header-v3-search:hover,
.header-v3-search:focus-visible {
    border-color: #b8dec4;
    color: var(--header-v3-accent);
    background: var(--header-v3-accent-soft);
    outline: none;
}

.header-v3-mobile-button {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    color: var(--header-v3-text);
    background: transparent;
    border-radius: 12px;
}

.header-v3-mobile-button > span {
    display: grid;
    gap: 4px;
    width: 20px;
}

.header-v3-mobile-button i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-header-v3.is-mobile-open .header-v3-mobile-button i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header-v3.is-mobile-open .header-v3-mobile-button i:nth-child(2) {
    opacity: 0;
}

.site-header-v3.is-mobile-open .header-v3-mobile-button i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header-v3-backdrop {
    display: none;
}

/* Search dialog */
.header-v3-search-dialog[hidden] {
    display: none;
}

.header-v3-search-dialog {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: start center;
    padding: min(12vh, 110px) 18px 24px;
    background: rgba(9, 12, 16, 0.58);
    backdrop-filter: blur(8px);
}

.header-v3-search-card {
    width: min(720px, 100%);
    max-height: min(720px, 78vh);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.header-v3-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 14px;
}

.header-v3-search-head h2 {
    margin: 0;
    font-size: 20px;
}

.header-v3-search-head p {
    margin: 4px 0 0;
    color: var(--header-v3-muted);
    font-size: 12px;
}

.header-v3-search-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    color: var(--header-v3-text);
    background: var(--header-v3-surface);
    font-size: 22px;
    line-height: 1;
}

.header-v3-search-close:hover,
.header-v3-search-close:focus-visible {
    color: var(--header-v3-accent);
    outline: none;
}

.header-v3-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 22px;
    padding: 0 14px;
    border: 1px solid var(--header-v3-line);
    border-radius: 14px;
    background: var(--header-v3-surface);
}

.header-v3-search-field:focus-within {
    border-color: #9ed2ad;
    box-shadow: 0 0 0 4px rgba(22, 128, 61, 0.09);
}

.header-v3-search-field svg {
    flex: 0 0 auto;
    color: var(--header-v3-muted);
}

.header-v3-search-input {
    width: 100%;
    height: 52px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--header-v3-text);
    background: transparent;
    font-size: 15px;
}

.header-v3-search-status {
    margin: 12px 22px 8px;
    color: var(--header-v3-muted);
    font-size: 11px;
}

.header-v3-search-results {
    max-height: 460px;
    margin: 0;
    padding: 8px 14px 18px;
    overflow: auto;
    list-style: none;
    scrollbar-width: thin;
}

.header-v3-search-result-link {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 12px;
    color: var(--header-v3-text);
    text-decoration: none;
}

.header-v3-search-result-link:hover,
.header-v3-search-result-link:focus-visible {
    background: var(--header-v3-surface);
    outline: none;
}

.header-v3-search-result-type {
    display: inline-flex;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--header-v3-accent);
    background: var(--header-v3-accent-soft);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-v3-search-result-title {
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-v3-search-result-arrow {
    color: var(--header-v3-muted);
}

.header-v3-search-empty {
    padding: 28px 12px 34px;
    color: var(--header-v3-muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1280px) and (min-width: 1101px) {
    .header-v3-bar {
        gap: 14px;
        padding-inline: 18px;
    }

    .header-v3-logo img {
        width: 136px;
    }

    .header-v3-main-link {
        padding-inline: 7px;
        font-size: 12px;
    }

    .header-v3-main-toggle {
        width: 26px;
    }

    .header-v3-search span {
        display: none;
    }

    .header-v3-search {
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .header-v3-mega-grid {
        grid-template-columns: 230px 290px minmax(0, 1fr);
    }
}

@media (max-width: 1100px) {
    :root {
        --header-v3-height: 66px;
    }

    .header-v3-bar {
        min-height: var(--header-v3-height);
        padding: 0 16px;
    }

    .header-v3-logo img {
        width: 142px;
    }

    .header-v3-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1200;
        display: block;
        width: min(430px, 92vw);
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #ffffff;
        box-shadow: -24px 0 70px rgba(15, 23, 42, 0.18);
        transform: translateX(105%);
        transition: transform 220ms ease;
    }

    .site-header-v3.is-mobile-open .header-v3-nav {
        transform: translateX(0);
    }

    .header-v3-mobile-title {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 22px 20px 18px;
        border-bottom: 1px solid var(--header-v3-line);
        background: var(--header-v3-surface);
    }

    .header-v3-mobile-title span {
        color: var(--header-v3-accent);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .header-v3-mobile-title strong {
        font-size: 17px;
    }

    .header-v3-main-list {
        display: block;
        padding: 8px 10px 24px;
    }

    .header-v3-main-item {
        display: block;
        border-bottom: 1px solid var(--header-v3-line);
    }

    .header-v3-main-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
    }

    .header-v3-main-link {
        min-height: 58px;
        padding: 0 10px;
        font-size: 14px;
    }

    .header-v3-main-link::after {
        display: none;
    }

    .header-v3-main-toggle {
        width: 42px;
        height: 42px;
        justify-self: end;
    }

    .header-v3-mega {
        position: static;
        width: auto;
        max-height: none;
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
        display: none;
    }

    .header-v3-main-item.is-open > .header-v3-mega {
        display: block;
        transform: none;
    }

    .header-v3-mega-grid {
        display: block;
        min-height: 0;
        max-height: none;
        padding-bottom: 12px;
    }

    .header-v3-context {
        padding: 20px;
        border-radius: 14px;
    }

    .header-v3-context h2 {
        font-size: 24px;
    }

    .header-v3-parent-link {
        margin-top: 18px;
        padding-top: 0;
    }

    .header-v3-topics {
        padding: 18px 4px 10px;
        border-right: 0;
        background: #ffffff;
    }

    .header-v3-panel-title {
        padding-inline: 10px;
    }

    .header-v3-topic-list {
        overflow: visible;
    }

    .header-v3-topic {
        border: 1px solid transparent;
    }

    .header-v3-topic.is-active {
        border-color: #d8eadf;
        box-shadow: none;
    }

    .header-v3-topic-link {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-left: 12px;
    }

    .header-v3-topic-link > svg {
        display: none;
    }

    .header-v3-topic-toggle {
        display: grid;
    }

    .header-v3-topic.is-active .header-v3-topic-toggle svg {
        transform: rotate(180deg);
    }

    .header-v3-related {
        padding: 6px 4px 10px;
        overflow: visible;
    }

    .header-v3-page-panel {
        height: auto;
        padding: 14px 10px 6px;
        border-top: 1px solid var(--header-v3-line);
    }

    .header-v3-related-head {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .header-v3-related-head h3 {
        font-size: 18px;
    }

    .header-v3-page-list {
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .header-v3-page-link {
        min-height: 58px;
    }

    .header-v3-actions {
        margin-left: auto;
    }

    .header-v3-search span {
        display: none;
    }

    .header-v3-search {
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .header-v3-mobile-button {
        display: grid;
    }

    .header-v3-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: block;
        background: rgba(12, 16, 20, 0.48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 200ms ease, visibility 200ms ease;
    }

    .site-header-v3.is-mobile-open .header-v3-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 620px) {
    .header-v3-bar {
        padding-inline: 12px;
    }

    .header-v3-logo img {
        width: 132px;
    }

    .header-v3-search-dialog {
        padding: 14px;
        place-items: start stretch;
    }

    .header-v3-search-card {
        width: 100%;
        max-height: calc(100dvh - 28px);
        border-radius: 18px;
    }

    .header-v3-search-head {
        padding: 18px 16px 12px;
    }

    .header-v3-search-field,
    .header-v3-search-status {
        margin-inline: 16px;
    }

    .header-v3-search-results {
        padding-inline: 8px;
    }

    .header-v3-search-result-link {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .header-v3-search-result-type {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header-v3 *,
    .header-v3-search-dialog * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}