/* Fit the available header space before choosing links or section search. */
.site-header .section-back[data-nav-direction] svg{transform-origin:center;transition:transform 180ms 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{display:flex;flex-flow:row nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}
.context-links.nav-fit-compact .context-links-scroll a{flex:none;white-space:nowrap}
@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%}}

@media(max-width:700px){
 .site-header .section-back,.site-header .context-links-scroll a{min-height:44px}
 .site-header .section-search-field input{font-size:16px;min-height:44px}
 .section-search-all{width:44px;height:44px}
 .site-header>.wordmark{position:relative}
 .site-header>.wordmark:after{content:"";position:absolute;inset:-12px 0}
 .site-header .navigation-cluster,.site-header .navigation-cluster nav,.site-header .navigation-cluster>.context-links,.site-header .navigation-cluster>.browse-tools{min-height:56px}
}

@media(max-width:700px){.site-header .section-back{min-width:44px}}

/* Direction is a compact action; the section/search field gets the room. */
:root body .site-header .navigation-cluster:has(>.section-navigation):has(>.context-links):not([data-work-navigation]){width:min(680px,var(--navigation-fit-width,calc(100vw - 500px)))}
:root body .site-header .navigation-cluster:has(>.context-links,>.browse-tools):not([data-work-navigation])>.section-navigation{flex:0 0 60px;width:60px;min-width:60px;max-width:60px;height:60px;padding:7px;justify-content:center}
:root body .site-header .navigation-cluster:has(>.context-links,>.browse-tools):not([data-work-navigation])>.section-navigation .section-back{width:44px;min-width:44px;max-width:44px;height:44px;padding:0;gap:0;border:0;background:transparent}
:root body .site-header .navigation-cluster:has(>.context-links,>.browse-tools):not([data-work-navigation])>.section-navigation .nav-label{display:none}
:root body .site-header .navigation-cluster:has(>.section-navigation):not([data-work-navigation])>.context-links{flex:1 1 0;width:auto;min-width:0}
@media(max-width:1250px){:root body .site-header .navigation-cluster:has(>.section-navigation):has(>.context-links):not([data-work-navigation]){width:min(680px,92vw)}}
@media(max-width:700px){
 :root body .site-header .navigation-cluster:has(>.context-links,>.browse-tools):not([data-work-navigation])>.section-navigation{flex-basis:56px;width:56px;min-width:56px;max-width:56px;height:56px;padding:5px}
}

/* A visible section list hugs its labels. Compact search keeps its wider field. */
:root body .site-header .navigation-cluster:has(>.section-navigation):has(>.context-links:not(.nav-fit-compact)):not([data-work-navigation]){width:max-content}
:root body .site-header .navigation-cluster:has(>.section-navigation):not([data-work-navigation])>.context-links:not(.nav-fit-compact){flex:0 1 auto;width:max-content}
:root body .site-header .navigation-cluster:not([data-work-navigation])>.context-links:not(.nav-fit-compact)>.context-links-scroll{flex:0 1 auto}

/* Linked sections retain their natural width until their actual row overflows. */
.site-header .context-links .context-links-scroll[hidden],.site-header .section-finder-trigger[hidden]{display:none!important}
.site-header .context-links.nav-fit-compact{width:min(22rem,var(--navigation-fit-width,75vw))}
.site-header .section-finder-trigger{display:flex;align-items:center;justify-content:flex-start;gap:.65rem;width:100%;height:100%;min-height:44px;padding:0 1rem;text-align:left;color:var(--muted);font:inherit;font-size:.875rem;border:0;border-radius:inherit;background:transparent}

.section-finder-trigger svg,.inline-find-close svg{width:18px;height:18px;flex:none}
.site-header .section-finder-trigger:focus-visible,.site-header .inline-work-finder :focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.site-header .inline-work-finder{position:relative;display:block;width:100%;min-width:0;padding:3px 6px;color:#f6f5f1}
.site-header .inline-work-finder[hidden]{display:none}
.site-header .inline-find-field{display:flex;align-items:center;min-height:46px;gap:2px}
.site-header .inline-find-field .awn-search{padding:0;min-width:0;flex:1}
.site-header .inline-find-field input{flex:1;width:0;min-width:0;height:44px;padding:0 8px;border:0;background:transparent;color:inherit;font:inherit;font-size:16px}
.site-header .inline-find-field input::placeholder{color:#dfdfdc}
.site-header .inline-find-field button.inline-find-close{display:grid;place-items:center;flex:0 0 44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit}
/* Opening the list must leave the input, back button and header in place. */
.site-header .navigation-cluster>.context-links:has(.inline-work-finder){overflow:visible}
.site-header .inline-work-finder .inline-find-field input{font-size:16px;padding-left:2px;outline:0;box-shadow:none}
.site-header .inline-find-field input::-webkit-search-cancel-button{-webkit-appearance:none}
.site-header .inline-find-field input::placeholder{color:#d0d4d0}
.site-header .finder-suggestions{
 display:none;position:absolute;top:calc(100% + 8px);inset-inline:0;z-index:20;
 border:1px solid #ffffff24;border-radius:18px;padding:5px;background:rgba(28,30,30,.97);color:#f6f5f1;
 box-shadow:0 10px 26px #0004;
}
.site-header [data-inline-finder] .finder-suggestions{display:block}
.site-header .finder-suggestions .inline-find-matches{display:grid;max-height:min(18rem,45dvh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.site-header .finder-suggestions .inline-find-matches>a{
 display:flex;justify-content:flex-start;align-items:center;width:100%;height:auto;min-height:44px;
 padding:8px 12px;border:0;border-radius:12px;background:transparent;color:inherit;font-size:14px;line-height:1.35;white-space:normal;text-align:left;
}
.site-header .finder-suggestions a:is(:hover,:focus-visible){background:#ffffff15}
.site-header .finder-suggestions .finder-empty{margin:0;padding:12px;font-size:14px}
@media(forced-colors:active){.site-header .finder-suggestions{background:Canvas;color:CanvasText;border-color:CanvasText}.site-header .inline-find-field:focus-within{outline:1px solid Highlight;border-radius:inherit}}
@media(min-width:701px){
 :root body .site-header .navigation-cluster:has(>.context-links.nav-fit-compact):not([data-work-navigation]),
 :root body .site-header .navigation-cluster[data-work-navigation].awn-compact {
   width:min(27rem,var(--navigation-fit-width,92vw));max-width:92vw;
 }
}
