/* Editorial header values from the approved standalone concept. The reference
   does not embed Manrope; use its rendered system-ui typography in this header. */
.editorial-header {
    font: 15px/1.6 system-ui, sans-serif;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--gg-panel);
    color: var(--gg-text);
    border-bottom: 1px solid var(--gg-border);
    /* Slide the sticky offset, not a separately transformed sticky layer.
       Editorial tone changes are immediate to avoid concurrent repaint transitions. */
    transition: top .28s ease;
}
.editorial-header--cover {
    background: var(--editorial-cover);
    color: var(--editorial-ivory);
    border-color: color-mix(in srgb, var(--editorial-ivory) 17%, transparent);
}
.editorial-header--getting-started { background: var(--editorial-forest); }
.editorial-header--help { background: var(--editorial-blue); }
.editorial-header--contact { background: var(--editorial-cover); }
.editorial-header--legal {
    background: var(--editorial-ivory);
    color: var(--editorial-forest);
    border-color: var(--editorial-sand);
}
.editorial-header--about:not(.editorial-header--cover) {
    background: var(--editorial-ivory);
    color: var(--editorial-forest);
    border-color: color-mix(in srgb, var(--editorial-burgundy) 15%, transparent);
}
.editorial-header[data-hidden="true"] { top: calc(0px - var(--header-height, 76px)); }
.editorial-header__inner {
    width: 100%;
    max-width: 1320px;
    min-height: 76px;
    padding-inline: 28px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}
.editorial-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    justify-self: start;
    color: inherit;
    text-decoration: none;
    font-size: 21px;
    font-weight: 720;
    letter-spacing: -.045em;
    white-space: nowrap;
}
.editorial-brand img { width: 31px; height: 29px; object-fit: contain; flex-shrink: 0; }
.editorial-header--cover .editorial-brand img { filter: grayscale(1) brightness(0) invert(94%) sepia(10%) saturate(462%) hue-rotate(326deg) brightness(103%); }
.editorial-panel { display: contents; }
.editorial-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    grid-column: 2;
    font-size: 14px;
    font-weight: 400;
}
.editorial-utilities {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    grid-column: 3;
    font-size: 13px;
}
.editorial-icon { display: block; flex-shrink: 0; width: 19px; height: 19px; }
.editorial-icon--chevron { width: 14px; height: 14px; }
.editorial-icon--arrow { width: 13px; height: 13px; }
.editorial-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.editorial-mode { display: none; }
html[data-appearance="system"] .editorial-mode[data-mode="system"],
html[data-appearance="light"] .editorial-mode[data-mode="light"],
html[data-appearance="dark"] .editorial-mode[data-mode="dark"] { display: inline-flex; }
html:not([data-theme]) .editorial-appearance { display: none; }
.editorial-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 6px;
    background: var(--gg-primary);
    color: var(--gg-on-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}
.editorial-header--cover .editorial-demo { background: var(--editorial-ivory); color: var(--editorial-forest); }
.editorial-header--legal .editorial-demo { background: var(--editorial-forest); color: var(--editorial-ivory); }
.editorial-header--about:not(.editorial-header--cover) .editorial-demo { background: var(--editorial-forest); color: var(--editorial-ivory); }
.editorial-header--legal .editorial-brand img { filter: grayscale(1) brightness(0) invert(19%) sepia(25%) saturate(1157%) hue-rotate(96deg) brightness(93%); }
.editorial-header--about:not(.editorial-header--cover) .editorial-brand img { filter: grayscale(1) brightness(0) invert(19%) sepia(25%) saturate(1157%) hue-rotate(96deg) brightness(93%); }
.editorial-demo:hover { text-decoration: underline; text-underline-offset: .25em; }
.editorial-header button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
.editorial-demo--mobile, .editorial-menu-toggle, .editorial-mobile-art { display: none; }
.editorial-disclosure { position: relative; }
.editorial-disclosure--navigation { position: static; }
.editorial-disclosure summary, .editorial-direct {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-block: 8px;
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.editorial-disclosure summary { cursor: pointer; list-style: none; }
.editorial-disclosure summary::-webkit-details-marker { display: none; }
/* The concept uses a constant down chevron. Native disclosure conveys state. */
.editorial-direct:hover, .editorial-disclosure summary:hover { text-decoration: underline; text-underline-offset: .3em; }
.editorial-dropdown {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    min-width: 186px;
    padding: 8px;
    display: grid;
    gap: 4px;
    background: var(--editorial-ivory);
    color: var(--editorial-forest);
    border: 1px solid var(--editorial-sand);
    box-shadow: 0 12px 28px #0003;
}
.editorial-disclosure:not([open]) > .editorial-dropdown { display: none; }
.editorial-dropdown a { color: inherit; text-decoration: none; padding: 10px; }
.editorial-dropdown.language-options, .editorial-preferences { font: 14px/1.6 system-ui, sans-serif; }
.editorial-dropdown a:hover { text-decoration: underline; text-underline-offset: .2em; }
.editorial-header .language-options { top: 100%; padding: 8px; border: 1px solid var(--editorial-sand); border-radius: 0; background: var(--editorial-ivory); color: var(--editorial-forest); }
.editorial-header .language-options a { color: var(--editorial-forest); white-space: normal; }
.editorial-header .language-options a:hover,
.editorial-header .language-options a:focus-visible,
.editorial-header .editorial-preferences button:hover,
.editorial-header .editorial-preferences button:focus-visible {
    background: transparent;
    color: var(--editorial-forest);
    text-decoration: underline;
    text-underline-offset: .2em;
}
.editorial-header .language-options a[aria-current="page"],
.editorial-header .editorial-preferences button[aria-pressed="true"] {
    background: #DCEFE4;
    color: var(--editorial-forest);
    text-decoration: none;
}
.editorial-header .language-options a { padding: 10px; border-radius: 0; }
.editorial-preferences { gap: 0; }
.editorial-header .editorial-preferences button {
    display: flex;
    align-items: center;
    text-align: start;
    width: 100%;
    padding: 10px;
    gap: 10px;
    font: 14px/1.6 system-ui, sans-serif;
    min-height: 42px;
}
.editorial-preferences button[aria-pressed="true"]::after {
    content: '✓';
    margin-inline-start: auto;
}
.editorial-dropdown--menu {
    inset-inline: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--editorial-sand);
    box-shadow: 0 22px 40px #0003;
    max-height: calc(100dvh - var(--header-height, 76px));
    overflow: auto;
    overscroll-behavior: contain;
}
.editorial-dropdown__inner {
    width: 100%;
    max-width: 1320px;
    padding: 32px 28px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: 60px;
}
.editorial-dropdown__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 12px 36px;
}
.editorial-dropdown__links > :is(a, .editorial-preview-link) { display: block; padding: 10px 0; border-bottom: 1px solid #BDA88A77; overflow-wrap: anywhere; }
.editorial-preview-link { cursor: default; }
.editorial-navigation > .editorial-preview-link:hover { text-decoration: none; }
.editorial-dropdown__links > :first-child { grid-column: 1 / -1; }
.editorial-dropdown__overview, .editorial-dropdown__demo { grid-column: 1 / -1; }
.editorial-dropdown__overview strong { font-size: inherit; }
.editorial-dropdown strong, .editorial-dropdown small { display: block; }
.editorial-dropdown small { margin-top: 4px; font-size: 12px; font-weight: 400; color: #515E63; }
.editorial-dropdown__links > .editorial-dropdown__demo { display: flex; align-items: center; gap: 8px; border: 0; font-weight: 650; }
.editorial-dropdown .editorial-dropdown__art {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background: var(--editorial-cover);
    color: var(--editorial-ivory);
    display: flex;
    align-items: flex-end;
    padding: 0;
}
.editorial-dropdown__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial-dropdown__art span { position: relative; width: 100%; background: #143B2EF2; padding: 15px 20px; font: 25px/1.15 Georgia, serif; }
.editorial-header :is(a, button, summary, select):focus-visible { outline: 3px solid var(--gg-primary); outline-offset: 3px; }
.editorial-header--cover :is(a, button, summary):focus-visible { outline-color: var(--editorial-ivory); }
.editorial-header--legal :is(a, button, summary):focus-visible { outline-color: var(--editorial-forest); }
.editorial-header--about:not(.editorial-header--cover) :is(a, button, summary):focus-visible { outline-color: var(--editorial-forest); }
.editorial-header .editorial-dropdown :is(a, button, select):focus-visible { outline: 3px solid var(--editorial-forest); outline-offset: -3px; }
.editorial-header .editorial-dropdown .editorial-dropdown__art:focus-visible { outline-color: var(--editorial-ivory); outline-offset: -4px; }
html { scroll-padding-top: var(--header-height, 76px); }
body.header-menu-open { overflow: hidden; }

@media (max-width: 1120px) {
    .editorial-header__inner {
        grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) 44px;
        padding-inline: 18px;
        min-height: 64px;
        gap: 8px;
    }
    .editorial-brand { font-size: 18px; gap: 6px; }
    .editorial-brand img { width: 26px; height: 24px; }
    .editorial-demo--mobile { display: inline-flex; grid-column: 2; min-width: 0; padding: 8px 12px; gap: 8px; font-size: 12px; }
    .editorial-demo--desktop { display: none; }
    html[data-header-ready] .editorial-menu-toggle {
        display: inline-flex;
        grid-column: 3;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        background: transparent;
        color: inherit;
        border: 0;
        cursor: pointer;
        padding: 8px;
    }
    .editorial-menu-close-icon { display: none; }
    .editorial-header[data-open="true"] .editorial-menu-open-icon { display: none; }
    .editorial-header[data-open="true"] .editorial-menu-close-icon { display: block; }
    .editorial-panel {
        display: block;
        grid-column: 1 / -1;
        min-width: 0;
        color: var(--editorial-ivory);
        background: var(--editorial-cover);
        padding: 18px;
    }
    .editorial-navigation { display: grid; gap: 0; justify-content: stretch; }
    .editorial-navigation > * { border-bottom: 1px solid var(--editorial-sand); }
    .editorial-navigation summary, .editorial-navigation > a, .editorial-navigation > .editorial-preview-link {
        font: 32px/1.2 Georgia, serif;
        padding-block: 13px;
        white-space: normal;
    }
    .editorial-utilities { justify-content: flex-start; flex-wrap: wrap; gap: 20px; padding-top: 18px; }
    .editorial-mobile-art { display: block; width: 100%; height: 140px; object-fit: cover; margin-top: 22px; }
    .editorial-dropdown, .editorial-header .language-options { position: static; box-shadow: none; }
    .editorial-dropdown--menu { max-height: none; overflow: visible; min-width: 0; }
    .editorial-dropdown__inner { display: block; padding: 12px; }
    .editorial-dropdown__links { grid-template-columns: 1fr; gap: 0; }
    .editorial-dropdown .editorial-dropdown__art { display: none; }
    .editorial-header .editorial-panel :is(a, button, summary):focus-visible,
    .editorial-header--about:not(.editorial-header--cover) .editorial-panel :is(a, button, summary):focus-visible,
    .editorial-header--legal .editorial-panel :is(a, button, summary):focus-visible { outline-color: var(--editorial-ivory); }
    .editorial-header .editorial-panel .editorial-dropdown :is(a, button, select):focus-visible,
    .editorial-header--about:not(.editorial-header--cover) .editorial-panel .editorial-dropdown :is(a, button, select):focus-visible,
    .editorial-header--legal .editorial-panel .editorial-dropdown :is(a, button, select):focus-visible { outline-color: var(--editorial-forest); }
    html[data-header-ready] .editorial-panel { display: none; }
    html[data-header-ready] .editorial-header[data-open="true"] .editorial-panel {
        display: block;
        position: fixed;
        inset: var(--header-height, 64px) 0 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 18px max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    }
    html[data-header-ready] .editorial-header[data-open="true"] { z-index: 100; }
    html:not([data-header-ready]) .editorial-header { position: relative; }
    html:not([data-header-ready]) .editorial-header__inner { grid-template-columns: minmax(max-content, 1fr) minmax(0, auto); }
}
@media (max-width: 600px) {
    .editorial-header__inner { padding-inline: 12px; gap: 5px; }
    .editorial-brand { font-size: 17px; gap: 5px; }
    .editorial-demo--mobile { padding-inline: 9px; gap: 5px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}
[data-motion="reduce"] .editorial-header { transition: none; }
@media (prefers-reduced-motion: reduce) { .editorial-header { transition: none; } }
