/* Established Articles toolbar primitives, scoped to opted-in headers; ACE never opts in. */

header.preflight-toolbar {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--home-line);
    background: rgba(238, 245, 239, 0.94);
    box-shadow: 0 0.25rem 1.5rem rgba(15, 51, 43, 0.05);
    backdrop-filter: blur(18px);
}
.dark header.preflight-toolbar {
    background: rgba(5, 13, 11, 0.94);
    box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.22);
}
.preflight-toolbar .home-nav-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.5rem);
    min-height: 5rem;
}
.preflight-toolbar .home-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}
.preflight-toolbar .home-brand img {
    width: clamp(8.5rem, 11vw, 10.5rem);
    height: auto;
}
.preflight-toolbar .home-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 1.7vw, 1.85rem);
    min-width: 0;
}
.preflight-toolbar .home-desktop-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--home-muted);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    white-space: nowrap;
}
.preflight-toolbar .home-desktop-nav a::after {
    display: inline-block;
    width: 0.52rem;
    height: 1.05em;
    margin-left: 0.42rem;
    content: "";
    background: var(--home-green);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--home-green) 20%, transparent);
    opacity: 0;
    transform: translateY(0.04em) scaleX(0.72);
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}
.preflight-toolbar .home-desktop-nav a:hover,
.preflight-toolbar .home-desktop-nav a:focus-visible,
.preflight-toolbar .home-desktop-nav a[aria-current="page"] {
    color: var(--home-ink);
}
.preflight-toolbar .home-desktop-nav a:hover::after,
.preflight-toolbar .home-desktop-nav a:focus-visible::after,
.preflight-toolbar .home-desktop-nav a[aria-current="page"]::after {
    animation: home-terminal-cursor 0.95s steps(1, end) infinite;
    opacity: 1;
    transform: translateY(0.04em) scaleX(1);
}
.dark .preflight-toolbar .home-desktop-nav a::after,
.dark .preflight-toolbar .home-mobile-links a:not(.home-mobile-primary)::after {
    background: #a7f3d0;
    box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.2);
}


.preflight-toolbar .home-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}
.preflight-toolbar .home-theme-picker {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(2.35rem, auto);
    align-items: center;
    padding: 0.2rem;
    border: 1px solid var(--home-line);
    background: color-mix(in srgb, var(--home-canvas) 72%, transparent);
}
.preflight-toolbar .home-theme-picker button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    border: 0;
    color: var(--home-muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.preflight-toolbar .home-theme-picker button[aria-pressed="true"] {
    color: #ffffff;
    background: var(--home-forest);
}
.dark .preflight-toolbar .home-theme-picker button[aria-pressed="true"] {
    color: var(--home-night);
    background: var(--home-lime);
}
.preflight-toolbar .home-nav-cta,
.preflight-toolbar .home-button,
.preflight-toolbar .home-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 3.75rem;
    padding: 0.95rem 1.35rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.preflight-toolbar .home-nav-cta {
    min-height: 3.15rem;
    padding: 0.78rem 1.05rem;
    font-size: 0.875rem;
}
.preflight-toolbar .home-nav-cta,
.preflight-toolbar .home-button-primary,
.preflight-toolbar .home-footer-cta {
    color: #ffffff !important;
    background: var(--home-forest);
    box-shadow: 4px 4px 0 rgba(8, 122, 85, 0.2);
}
.dark .preflight-toolbar .home-nav-cta,
.dark .preflight-toolbar .home-button-primary,
.dark .preflight-toolbar .home-footer-cta {
    color: var(--home-night) !important;
    background: var(--home-lime);
    box-shadow: 4px 4px 0 rgba(201, 244, 90, 0.16);
}
.preflight-toolbar .home-nav-cta:hover,
.preflight-toolbar .home-button-primary:hover,
.preflight-toolbar .home-footer-cta:hover {
    color: var(--home-night) !important;
    background: var(--home-lime);
    transform: translateY(-2px);
}
.preflight-toolbar .home-nav-cta:hover .home-icon-arrow,
.preflight-toolbar .home-nav-cta:focus-visible .home-icon-arrow,
.preflight-toolbar .home-button:hover .home-icon-arrow,
.preflight-toolbar .home-button:focus-visible .home-icon-arrow,
.preflight-toolbar .home-footer-cta:hover .home-icon-arrow,
.preflight-toolbar .home-footer-cta:focus-visible .home-icon-arrow,
.preflight-toolbar .home-mobile-primary:hover .home-icon-arrow,
.preflight-toolbar .home-mobile-primary:focus-visible .home-icon-arrow,
.preflight-toolbar .home-text-link:hover .home-icon-arrow,
.preflight-toolbar .home-text-link:focus-visible .home-icon-arrow {
    transform: translateX(0.18rem);
}
.preflight-toolbar .home-button-secondary {
    border-color: var(--home-line);
    color: var(--home-ink);
    background: color-mix(in srgb, var(--home-canvas) 72%, transparent);
}
.preflight-toolbar .home-button-secondary:hover {
    border-color: var(--home-green);
    background: var(--home-sage);
    transform: translateY(-2px);
}
.preflight-toolbar .home-menu-toggle {
    display: none;
    min-height: 2.75rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--home-line);
    color: var(--home-ink);
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.preflight-toolbar .home-mobile-menu[hidden] {
    display: none !important;
}
.preflight-toolbar .home-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    width: 100vw;
    height: 100dvh;
}
.preflight-toolbar .home-mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 12, 9, 0.68);
    backdrop-filter: blur(4px);
}
.preflight-toolbar .home-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(90vw, 27rem);
    height: 100%;
    max-height: 100dvh;
    overflow-y: auto;
    border-left: 1px solid var(--home-line);
    color: var(--home-ink);
    background:
        linear-gradient(rgba(251, 250, 246, 0.96), rgba(238, 245, 239, 0.98)),
        radial-gradient(circle, rgba(16, 185, 129, 0.14) 1px, transparent 1.5px);
    background-size: auto, 18px 18px;
    box-shadow: -1.5rem 0 4rem rgba(2, 12, 9, 0.22);
}
.dark .preflight-toolbar .home-mobile-panel {
    background:
        linear-gradient(rgba(8, 17, 14, 0.97), rgba(15, 51, 43, 0.98)),
        radial-gradient(circle, rgba(110, 231, 183, 0.1) 1px, transparent 1.5px);
    background-size: auto, 18px 18px;
}
.preflight-toolbar .home-mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    border-bottom: 1px solid var(--home-line);
}
.preflight-toolbar .home-mobile-panel-head p,
.preflight-toolbar .home-mobile-theme > p {
    color: var(--home-green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.dark .preflight-toolbar .home-mobile-panel-head p,
.dark .preflight-toolbar .home-mobile-theme > p {
    color: var(--home-lime);
}
.preflight-toolbar .home-mobile-panel-head button {
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--home-line);
    color: var(--home-ink);
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 800;
}
.preflight-toolbar .home-mobile-links {
    display: grid;
    padding: 1rem 1.25rem;
}
.preflight-toolbar .home-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.35rem;
    border-bottom: 1px solid var(--home-line-soft);
    font-family: Manrope, "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-size: 1.25rem;
}
.preflight-toolbar .home-mobile-links a:not(.home-mobile-primary) {
    justify-content: flex-start;
    gap: 0.65rem;
}
.preflight-toolbar .home-mobile-links a:not(.home-mobile-primary)::after {
    display: inline-block;
    width: 0.5rem;
    height: 1em;
    content: "";
    background: var(--home-green);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--home-green) 20%, transparent);
    opacity: 0;
    transform: translateY(0.04em) scaleX(0.72);
    transition: opacity 180ms ease, transform 180ms ease;
}
.preflight-toolbar .home-mobile-links a:not(.home-mobile-primary):hover::after,
.preflight-toolbar .home-mobile-links a:not(.home-mobile-primary):focus-visible::after,
.preflight-toolbar .home-mobile-links a[aria-current="page"]::after {
    animation: home-terminal-cursor 0.95s steps(1, end) infinite;
    opacity: 1;
    transform: translateY(0.04em) scaleX(1);
}
.preflight-toolbar .home-mobile-links a:hover {
    color: var(--home-green);
}
.preflight-toolbar .home-mobile-links .home-mobile-primary {
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border: 0;
    color: #ffffff;
    background: var(--home-forest);
    font-family: Manrope, "Avenir Next", sans-serif;
    font-size: 0.875rem;
    font-weight: 800;
}
.preflight-toolbar .home-mobile-primary .home-icon-arrow {
    width: 0.95rem;
    height: 0.95rem;
}
.dark .preflight-toolbar .home-mobile-links .home-mobile-primary {
    color: var(--home-night);
    background: var(--home-lime);
}
.preflight-toolbar .home-mobile-theme {
    display: grid;
    gap: 0.85rem;
    margin-top: auto;
    padding: 1.25rem;
    border-top: 1px solid var(--home-line);
}
.preflight-toolbar .home-mobile-theme .home-theme-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}


header.preflight-toolbar[data-site-header] {
 --home-canvas:#eef5ef; --home-ink:#15201c; --home-muted:#55645d;
 --home-line:rgba(15,51,43,.22); --home-line-soft:rgba(15,51,43,.12);
 --home-green:#087a55; --home-forest:#0f332b; --home-night:#050d0b; --home-lime:#c9f45a;
 color:var(--home-ink); background:var(--home-canvas); border-color:var(--home-line); color-scheme:light;
 font:16px/1.6 Manrope,"Avenir Next",Avenir,"Segoe UI",sans-serif;
 box-shadow:none; backdrop-filter:none; width:100%; max-width:none; margin:0; padding:0;
}
:is(.dark, [data-theme="dark"]) header.preflight-toolbar[data-site-header] {
 --home-canvas:#081d18; --home-ink:#edf4e9; --home-muted:#bdcfc1;
 --home-line:#30473d; --home-line-soft:#30473d; color-scheme:dark;
}
header.preflight-toolbar[data-site-header] * { box-sizing:border-box; }
header.preflight-toolbar[data-site-header] :is(a,button,p) { color:inherit; text-decoration:none; }
header.preflight-toolbar[data-site-header] button { font-family:inherit; border-radius:0; }
header.preflight-toolbar[data-site-header] :is(button,p) { margin:0; }
header.preflight-toolbar[data-site-header] :is(a,button):focus-visible { outline:3px solid #087a55; outline-offset:4px; }
:is(.dark, [data-theme="dark"]) header.preflight-toolbar[data-site-header] :is(a,button):focus-visible { outline-color:#b8dfb0; }
header.preflight-toolbar[data-site-header] .home-nav-inner { display:grid; width:100%; max-width:1440px; margin:auto; min-height:88px; padding-inline:clamp(24px,5vw,80px); }
header.preflight-toolbar[data-site-header] .home-desktop-nav a { color:var(--home-muted); }
header.preflight-toolbar[data-site-header] .home-desktop-nav a:is(:hover,[aria-current="page"]) { color:var(--home-ink); }
header.preflight-toolbar[data-site-header] .home-theme-picker { border-color:var(--home-line); border-radius:6px; background:var(--home-canvas); }
header.preflight-toolbar[data-site-header] .home-theme-picker button { color:var(--home-muted); }
header.preflight-toolbar[data-site-header] .home-theme-picker button[aria-pressed="true"] { background:#0f332b; color:white; }
:is(.dark, [data-theme="dark"]) header.preflight-toolbar[data-site-header] .home-theme-picker button[aria-pressed="true"] { background:#2c4e3c; color:white; }
header.preflight-toolbar[data-site-header] .home-menu-toggle { color:var(--home-ink); border-color:var(--home-line); border-radius:6px; }
header.preflight-toolbar[data-site-header] .home-mobile-panel { background:var(--home-canvas); color:var(--home-ink); }
header.preflight-toolbar[data-site-header] .home-mobile-panel :is(a,button,p) { color:var(--home-ink); }
header.preflight-toolbar[data-site-header] :is(.home-nav-cta,.home-mobile-links .home-mobile-primary) { background:#b8dfb0; border-color:#b8dfb0; color:#142d1c!important; border-radius:6px; box-shadow:none; }
header.preflight-toolbar[data-site-header] :is(.home-nav-cta,.home-mobile-links .home-mobile-primary):hover { background:#cbe7c5; }
header.preflight-toolbar[data-site-header] .home-desktop-nav a::after,
header.preflight-toolbar[data-site-header] .home-mobile-links a:not(.home-mobile-primary)::after { background:var(--home-green); }
header.preflight-toolbar[data-site-header] .home-theme-icon,
header.preflight-toolbar[data-site-header] .home-icon-arrow { display:block; width:1rem; height:1rem; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
header.preflight-toolbar[data-site-header] .home-icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
header.preflight-toolbar[data-site-header] .home-arrow-slot { display:inline-grid; place-items:center; width:1.5rem; height:1.5rem; }
body.home-menu-open { overflow:hidden; }
@media(max-width:74.99rem) {
 header.preflight-toolbar[data-site-header] .home-desktop-nav { display:none; }
 header.preflight-toolbar[data-site-header] .home-menu-toggle { display:inline-flex; align-items:center; justify-content:center; }
 header.preflight-toolbar[data-site-header] .home-nav-inner { grid-template-columns:auto minmax(0,1fr); }
}
@media(max-width:68.74rem) { header.preflight-toolbar[data-site-header] .home-nav-actions > .home-theme-picker { display:none; } }
@media(max-width:43.74rem) { header.preflight-toolbar[data-site-header] .home-nav-cta { display:none; } }
@media(max-width:29.99rem) { header.preflight-toolbar[data-site-header] .home-mobile-panel { width:100%; border-left:0; } }
@media(prefers-reduced-motion:reduce) { header.preflight-toolbar[data-site-header] * { animation:none!important; transition:none!important; } }
