/* Fit the available header space before choosing links or section search. */
.site-header .section-back[data-nav-direction] svg{transform-origin:center;transition:transform 220ms cubic-bezier(.2,.8,.2,1)}
.site-header .section-back[data-nav-direction="up"] svg{transform:rotate(90deg)}
.site-header .section-back[data-nav-direction="up"]:hover svg{transform:translateY(-3px) rotate(90deg)}
@media(prefers-reduced-motion:reduce){.site-header .section-back[data-nav-direction] svg{transition:none}}
.site-header .navigation-cluster{min-width:0;max-width:min(var(--navigation-fit-width,calc(100vw - 500px)),100%)}
.site-header .navigation-cluster>.context-links{flex-shrink:1;min-width:0;max-width:100%}
.context-links .context-links-scroll{flex:1;min-width:0}
.context-links.nav-fit-compact{width:var(--section-search-width,330px)}
.context-links.nav-fit-compact .context-links-scroll{position:absolute;inset:0;width:100%;max-width:100%;overflow:hidden;visibility:hidden;pointer-events:none}
.nav-section-search{display:flex;align-items:center;gap:4px;width:100%;height:100%;padding:6px 7px 6px 16px;min-width:0}
.nav-section-search[hidden],.nav-section-results[hidden]{display:none!important}
.section-search-field{display:flex;align-items:center;gap:9px;flex:1;min-width:0}
.section-search-field svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;color:#d2dacf}
.site-header .section-search-field input{min-width:0;width:100%;height:44px;padding:4px 0;color:var(--fg);background:transparent;border:0;border-radius:0;box-shadow:none;font-size:.875rem;outline:none;caret-color:var(--fg)}
.section-search-field input::placeholder{color:#d2dacf;opacity:1}
.nav-section-search:focus-within{border-radius:inherit;box-shadow:inset 0 0 0 1px #ffffff65}
.section-search-all{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:#ffffff0b}
.section-search-all svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nav-section-results{position:absolute;right:0;top:calc(100% + 10px);z-index:20;width:340px;max-width:calc(100vw - 24px);max-height:min(420px,var(--nav-fit-room,60dvh));overflow:auto;overscroll-behavior:contain;padding:8px;border-radius:23px;background:linear-gradient(135deg,#ffffff16,#ffffff03),#202824f5;border:1px solid #ffffff35;box-shadow:0 20px 55px #0007;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}
.context-links .section-match{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:46px;height:auto;white-space:normal;padding:12px 14px;border-radius:15px;font-size:.875rem;line-height:1.35}
.section-match[aria-selected=true]{background:#ffffff1c;border-color:#ffffff30}
.section-match[aria-current=location]:after{content:'•';color:var(--acid);font-size:18px}
.section-search-empty{padding:16px 14px;font-size:.875rem;color:var(--muted)}
@media(max-width:1250px){.site-header .navigation-cluster{--navigation-fit-width:100%;max-width:100%}}
@media(max-width:700px){.nav-section-search{padding:4px 4px 4px 12px}.section-search-field{gap:7px}.section-search-field svg{width:16px;height:16px}.site-header .section-search-field input{font-size:.8125rem;height:42px}.section-search-all{width:40px;height:42px}.nav-section-results{border-radius:20px}}
@media(max-height:520px) and (min-aspect-ratio:6/5){
 body:has(.site-header .navigation-cluster){padding-top:88px}
 html:has(body:has(.site-header .navigation-cluster)){scroll-padding-top:96px}
 body:has(.site-header .navigation-cluster) .site-header,body:has(.site-header .navigation-cluster).scrolled .site-header{height:76px;padding:8px 4vw;flex-direction:row;justify-content:center;gap:0}
 body:has(.site-header .navigation-cluster) .site-header>.wordmark{display:none}
 body:has(.site-header .navigation-cluster) .site-header .navigation-cluster{position:relative;left:auto;transform:none;max-width:100%;height:52px}
 body:has(.site-header .navigation-cluster) .site-header .navigation-cluster nav,body:has(.site-header .navigation-cluster) .site-header .context-links,body:has(.site-header .navigation-cluster) .site-header .context-tools{height:52px}
 body:has(.site-header .navigation-cluster) .site-header .section-back,body:has(.site-header .navigation-cluster) .context-links-scroll a{height:40px}
 body:has(.site-header .navigation-cluster) .anchor-section,body:has(.site-header .navigation-cluster) main,body:has(.site-header .navigation-cluster) main [id]{scroll-margin-top:96px}
}
@media(prefers-reduced-transparency:reduce){.nav-section-results{background:#25302b;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(forced-colors:active){.nav-section-results{background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}.section-match[aria-selected=true]{outline:1px solid Highlight}.nav-section-search:focus-within{outline:1px solid Highlight}}

/* Match the actual number of main links; never reserve an empty slot. */
.site-header .navigation-cluster .root-navigation{
 grid-template-columns:none;
 grid-auto-flow:column;
 grid-auto-columns:minmax(0,1fr);
}

/* Work returns name their destination; reserve usable room for the section picker. */
.site-header [data-navigation="work-detail"] .section-navigation:has([data-work-overview-return]){max-width:55%;min-width:0;flex-shrink:0}
.site-header [data-navigation="work-detail"] [data-work-overview-return]{min-width:0;max-width:100%}
.site-header [data-navigation="work-detail"] [data-work-overview-return] .nav-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.site-header [data-navigation="work-detail"] [data-work-overview-return] svg{flex:none}
@media(max-width:700px){.site-header [data-navigation="work-detail"] .section-navigation:has([data-work-overview-return]){max-width:60%}}
