/* Header navigation: relocate the existing site links, with no changes to content cards. */
:root body.h-library{padding-bottom:0}
:root body.h-library #header .h-topbar{position:relative;margin-left:0;max-width:none;width:auto;grid-template-columns:180px minmax(180px,620px) auto;justify-content:space-between;gap:24px;padding:24px 48px 20px;min-height:100px}
:root body.h-library #header .h-topbar .selected-logo{width:180px}
:root body.h-library .h-categories{margin-left:0;max-width:100%;padding-left:48px;padding-right:48px}
:root body.h-library main{margin-left:0;width:100%}
:root body.h-library>footer.h-footer{margin-left:48px;margin-right:48px}
:root body.h-library #header #menu.h-header-nav{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0;padding:0;margin:0;position:relative;width:auto}
:root body.h-library #header #menu.h-header-nav>a{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;border:0;border-radius:13px;padding:0;background:#fff;color:#18334d}
:root body.h-library #header #menu.h-header-nav>a>svg{width:21px;height:21px;flex:none;stroke-width:1.65}
:root body.h-library #header #menu.h-header-nav>a:hover,:root body.h-library #header #menu.h-header-nav>a[aria-current="page"]{background:#fff;color:#18334d}
:root body.h-library #header #menu.h-header-nav>a:focus-visible,:root body.h-library #header .h-menu-toggle:focus-visible,:root body.h-library #header .h-global-search button:focus-visible{outline:2px solid #6cc498;outline-offset:3px}
:root body.h-library #header #menu.h-header-nav .h-nav-label{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);padding:5px 10px;border:1px solid #6cc498;border-radius:8px;background:#fff;white-space:nowrap;box-shadow:0 3px 16px #18334d0b;font-size:13px;line-height:1.5;opacity:0;pointer-events:none;z-index:70}
:root body.h-library #header #menu.h-header-nav>a[data-h-nav="request"] .h-nav-label{left:auto;right:0;transform:none}
:root body.h-library #header #menu.h-header-nav a:hover .h-nav-label,:root body.h-library #header #menu.h-header-nav a:focus-visible .h-nav-label{opacity:1}
:root body.h-library #header #menu.h-header-nav .h-save-count{right:0;top:-2px;pointer-events:none}
:root body.h-library #header #menu.h-header-nav>a.h-access-link{display:none}
:root body.h-library #header .h-menu-toggle{display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px 12px;background:#fff;border:1px solid #e9edf0;border-radius:13px;cursor:pointer;font-size:14px;font-weight:500;line-height:1.4}
:root body.h-library #header .h-menu-toggle svg{width:20px;height:20px}
:root body.h-library #header .h-menu-toggle:hover,:root body.h-library #header .h-menu-toggle[aria-expanded="true"]{background:#fff;border-color:#6cc498}
:root body.h-library #header .h-menu-toggle .h-close-icon{display:none}
:root body.h-library #header .h-menu-toggle[aria-expanded="true"] .h-menu-icon{display:none}
:root body.h-library #header .h-menu-toggle[aria-expanded="true"] .h-close-icon{display:block}
:root body.h-library .toast{bottom:24px}
@media(max-width:1350px){:root body.h-library #header .h-topbar{grid-template-columns:160px minmax(180px,1fr) auto;padding-left:32px;padding-right:32px;gap:20px}:root body.h-library #header .h-topbar .selected-logo{width:160px}:root body.h-library .h-categories{padding-left:32px;padding-right:32px}:root body.h-library>footer.h-footer{margin-left:32px;margin-right:32px}}
@media(max-width:1350px){:root body.h-library #header .h-topbar{grid-template-columns:150px minmax(180px,1fr) auto;gap:18px}:root body.h-library #header .h-topbar .selected-logo{width:150px}:root body.h-library #header #menu.h-header-nav{position:absolute;top:calc(100% - 6px);left:32px;right:32px;z-index:65;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:12px;border:1px solid #6cc498;border-radius:16px;background:#fff;box-shadow:0 12px 30px #18334d16;max-height:calc(100dvh - 160px);overflow:auto;overscroll-behavior:contain;align-items:stretch}
:root body.h-library #header #menu.h-header-nav>a,:root body.h-library #header #menu.h-header-nav>a.h-access-link{display:flex;width:auto;height:auto;min-height:48px;justify-content:flex-start;gap:10px;padding:10px 12px;font-size:14px;line-height:1.5;min-width:0}
:root body.h-library #header #menu.h-header-nav .h-nav-label,:root body.h-library #header #menu.h-header-nav>a[data-h-nav="request"] .h-nav-label{position:static;opacity:1;transform:none;pointer-events:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
:root body.h-library #header #menu.h-header-nav .h-save-count{position:static;flex:none;margin-left:auto;width:20px;height:20px}
:root body.h-library #header #menu.h-header-nav>a.h-access-link{grid-column:1/-1;border-top:1px solid #e9edf0;border-radius:0;margin-top:4px;font-size:13px;color:#536171;min-height:44px}
}
@media(max-width:600px){:root body.h-library #header .h-topbar{grid-template-columns:minmax(0,1fr) auto;padding:18px 20px 16px;gap:16px;min-height:0}:root body.h-library #header .h-topbar .selected-logo{width:150px}:root body.h-library #header .h-global-search{grid-row:2;grid-column:1/-1;width:100%;height:46px}:root body.h-library #header .h-menu-toggle{grid-column:2;grid-row:1}:root body.h-library .h-categories{padding-left:20px;padding-right:20px}:root body.h-library #header #menu.h-header-nav{left:20px;right:20px;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;max-height:calc(100dvh - 180px)}:root body.h-library #header #menu.h-header-nav>a{padding:10px 9px;gap:8px}:root body.h-library>footer.h-footer{margin-left:20px;margin-right:20px}}
@media(prefers-reduced-motion:reduce){:root body.h-library #header #menu.h-header-nav *,:root body.h-library #header .h-menu-toggle{transition:none;animation:none}}

/* Visible labels belong to the navigation item, rather than overlapping tooltips. */
:root body.h-library #header .h-topbar{grid-template-columns:180px minmax(220px,1fr) auto;gap:24px}
:root body.h-library #header #menu.h-header-nav{gap:4px;align-items:stretch}
:root body.h-library #header #menu.h-header-nav>a{width:auto;min-width:64px;height:72px;padding:8px 7px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px}
:root body.h-library #header #menu.h-header-nav .h-nav-label{position:static;top:auto;left:auto;transform:none;display:flex;align-items:center;justify-content:center;min-height:32px;max-width:90px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;white-space:normal;overflow-wrap:normal;text-align:center;font-size:13px;line-height:1.2;opacity:1!important;pointer-events:auto}
:root body.h-library #header #menu.h-header-nav>a>svg{display:block;flex:none;width:20px;height:20px;overflow:visible}
:root body.h-library #header #libraryNav>svg{fill:none;stroke:currentColor;stroke-width:1.9;overflow:visible}
:root body.h-library #header #menu.h-header-nav #savedNavCount{position:absolute;top:3px;right:4px;left:auto;display:grid;place-items:center;min-width:16px;height:16px;padding:0 3px;font-size:11px;line-height:1;background:#fff!important;color:#24282c!important;pointer-events:none;z-index:1}
@media(max-width:1350px){:root body.h-library #header .h-topbar{grid-template-columns:150px minmax(180px,1fr) auto;gap:18px}:root body.h-library #header #menu.h-header-nav{gap:8px}:root body.h-library #header #menu.h-header-nav>a{width:100%;min-width:0;height:auto;min-height:56px;padding:10px 9px;flex-direction:row;justify-content:flex-start;gap:8px}:root body.h-library #header #menu.h-header-nav .h-nav-label{display:block;min-height:0;max-width:none;flex:1;text-align:left;font-size:14px;line-height:1.4}:root body.h-library #header #menu.h-header-nav #libraryNav{padding-inline-end:24px}}
@media(max-width:600px){:root body.h-library #header .h-topbar{grid-template-columns:minmax(0,1fr) auto;gap:16px}:root body.h-library #header .h-global-search{grid-row:2;grid-column:1/-1}:root body.h-library #header .h-menu-toggle{grid-column:2;grid-row:1}}
