/* Primary-header search, isolated from Academy's local course filters. */
.network-header>.network-bar>.site-search-toggle{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;
  margin:0;margin-inline-start:auto;padding:8px;border:1px solid var(--bar-stroke,#a1b9ac);border-radius:7px;background:transparent;color:inherit;cursor:pointer;
}
.network-header>.network-bar>.site-search-toggle:hover{background:var(--bar-hover,#285e4d)}
.network-header>.network-bar>.site-search-toggle:focus-visible{outline:3px solid var(--bar-line,#e9c66b);outline-offset:2px}
.site-search-toggle svg{width:23px;height:23px;flex:none}
.site-search-dialog{
  box-sizing:border-box;inset:auto;top:84px;left:max(16px,calc((100vw - 1190px)/2));margin:0;width:min(480px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 100px);overflow-y:auto;
  padding:18px;border:1px solid #66736d;border-radius:12px;background:#fffdf7;color:#173e35;box-shadow:0 10px 36px #132c2940;font-family:"IBM Plex Sans Arabic",system-ui,sans-serif;font-size:16px;line-height:1.5;text-align:start;
}
.site-search-dialog::backdrop{background:#112a2550}
.site-search-dialog[open]{display:block}
.site-search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.site-search-heading h2{margin:0;color:inherit;line-height:1.4}
.site-search-heading h2{font-size:21px;font-weight:600}
.site-search-dialog button{font:inherit;cursor:pointer}
.site-search-close,.site-search-more{border:1px solid #66736d;border-radius:6px;padding:6px 12px;background:#fffdf7;color:#173e35;min-height:38px}
.site-search-close:hover,.site-search-more:hover{background:#e0ece3}
.site-search-form{margin:0}
.site-search-label{display:block;margin-bottom:5px;font-weight:600}
.site-search-dialog .site-search-input{box-sizing:border-box;width:100%;max-width:none;min-height:44px;padding:8px 12px;border:1px solid #66736d;border-radius:7px;background:white;color:#173e35;font:inherit}
.site-search-dialog :focus-visible{outline:2px solid #285e4d;outline-offset:2px}
.site-search-status{margin:9px 0 14px;color:#536459;font-size:14px}
.site-search-group{margin-top:14px}
.site-search-group h3{margin:0 0 6px;color:inherit;font-size:16px;font-weight:600}
.site-search-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.site-search-list li{margin:0;padding:0}
.site-search-dialog .site-search-result{display:block;text-decoration:none;color:#173e35;padding:8px 11px;border:1px solid #d9ded7;border-radius:6px;line-height:1.45}
.site-search-result:hover,.site-search-result:focus-visible{background:#e0ece3}
.site-search-result small{display:block;color:#536459;font-size:13px;font-weight:400}
.site-search-more{margin-top:7px}
@media(max-width:880px){
 .network-header>.network-bar>.site-search-toggle{flex-basis:40px;width:40px;height:40px;min-height:40px;padding:7px;margin-inline-start:0}
 .network-header>.network-bar>.network-brand{flex:1 1 auto;min-width:0}
 .site-search-dialog{top:64px;left:8px;width:calc(100vw - 16px);max-height:calc(100dvh - 76px);padding:14px}
}

/* Quiet beta status beside the name in every primary header. */
.network-header>.network-bar>.network-brand>.site-beta-badge{
  flex:none;display:inline-block;white-space:nowrap;color:#eedeb4;border:1px solid #a1b9ac;
  padding:2px 6px;border-radius:4px;font-size:11px;font-weight:500;line-height:1.35;
}
@media(max-width:880px){
  .network-header>.network-bar>.network-brand>.site-beta-badge{font-size:10px;padding:2px 4px}
}
@media(max-width:350px){
  .network-header>.network-bar>.network-brand{gap:3px}
  .network-header>.network-bar>.network-brand>.site-beta-badge{font-size:9px;padding:1px 3px}
}

/* Desktop: all four sections keep the same slots on every page. Only the
   current item's typography and icon size change; the beta and search have
   their own independent slots. Mobile retains its compact current-section layout. */
.network-header>.network-bar>.desktop-beta{display:none}
@media(min-width:881px){
 /* Classic desktop scrollbars otherwise shift a centered header by half their width on short pages. */
 html{overflow-y:scroll;scrollbar-gutter:stable}
 .network-header>.network-bar{min-height:72px;gap:clamp(8px,1.25vw,15px);padding-inline:clamp(16px,3vw,44px);width:100%;max-width:1280px;box-sizing:border-box}
 .network-header>.network-bar>.network-brand{display:none}
 .network-header>.network-bar>.desktop-beta{display:inline-block;flex:0 0 84px;width:84px;box-sizing:border-box;text-align:center;white-space:nowrap;color:#eedeb4;border:1px solid #a1b9ac;padding:3px 4px;border-radius:4px;font-size:11px;font-weight:500;line-height:1.35}
 .network-header>.network-bar>.network-desktop{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1 1 0;min-width:0;align-items:center;gap:0;border:0;padding:0;margin:0}
 .network-header>.network-bar>.network-desktop>.network-link{display:flex;box-sizing:border-box;min-width:0;width:100%;height:50px;min-height:50px;gap:6px;justify-content:center;align-items:center;padding:4px 3px;font-size:clamp(14px,1.52vw,19px);font-weight:600}
 .network-header>.network-bar>.network-desktop>.network-link svg{width:27px;height:27px;flex:none}
 .network-header>.network-bar>.network-desktop>.network-link[aria-current="location"]{font-size:clamp(20px,2vw,27px);font-weight:700;color:#fffdf7;background:#336a57;box-shadow:inset 0 0 0 1.5px #e9c66b;border-radius:7px}
 .network-header>.network-bar>.network-desktop>.network-link[aria-current="location"]:hover{background:#336a57;color:#fffdf7}
 .network-header>.network-bar>.network-desktop>.network-link[aria-current="location"] svg{width:34px;height:34px}
 .network-header>.network-bar>.site-search-toggle{margin-inline-start:0}
 .network-header>.network-bar>.network-mobile,.network-header .section-strip .local-mobile{display:none}
 .network-header .section-strip .local-nav{display:flex}
}
@media(max-width:880px){
 .network-header>.network-bar>.network-brand[aria-current="location"]>.site-brand-name{color:#f7dda0;font-weight:700}
 .network-header>.network-bar{flex-wrap:nowrap}
 .network-header>.network-bar>.network-desktop{display:none}
 .network-header>.network-bar>.network-mobile{display:block;flex:0 0 auto}
 .network-header>.network-bar>.network-mobile nav{min-width:min(200px,calc(100vw - 32px))}
}
