/* Whale Song shared compact header — same layout on homepage and Impact Explorer. */
header.topbar.ws-compact-header{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(200px,1fr) auto 48px!important;align-items:center!important;gap:clamp(12px,2vw,28px)!important;padding:10px clamp(16px,3vw,54px)!important;min-height:76px!important;position:relative!important;z-index:1000!important;background:#192530!important}
header.ws-compact-header .ws-compact-brand{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;margin:0!important;position:static!important;transform:none!important;text-decoration:none!important}
header.ws-compact-header .ws-header-logo{width:100px!important;max-width:100px!important;height:auto!important;position:static!important}
header.ws-compact-header .ws-header-url{font-size:16px!important;font-weight:750!important;white-space:nowrap!important;color:white!important}
header.ws-compact-header nav.ws-featured{grid-column:2!important;grid-row:1!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;width:auto!important;max-width:none!important;position:static!important;transform:none!important;overflow:visible!important;margin:0!important;padding:0!important;background:none!important;box-shadow:none!important}
header.ws-compact-header nav.ws-featured a{box-sizing:border-box!important;position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;margin:0!important;padding:10px 13px!important;border:1px solid rgba(219,170,93,.75)!important;border-radius:9px!important;color:#f5e5c9!important;background:transparent!important;font-size:12px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:.025em!important;text-decoration:none!important;white-space:nowrap!important;transform:none!important}
header.ws-compact-header nav.ws-featured a:hover,header.ws-compact-header nav.ws-featured a.active{background:#d8a75d!important;color:#142330!important}
header.ws-compact-header .ws-menu-button{grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:center!important;position:static!important;transform:none!important;visibility:visible!important;opacity:1!important;width:44px!important;height:44px!important;margin:0!important;border:0!important;border-radius:9px!important;background:#d8a75d!important;color:#142330!important;font-size:24px!important;cursor:pointer!important}
header.ws-compact-header nav.ws-site-menu{display:none!important;grid-column:1/-1!important;grid-row:2!important;position:static!important;transform:none!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:10px 0 4px!important;overflow:visible!important;box-shadow:none!important;background:#192530!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px 18px!important}
header.ws-compact-header.nav-open nav.ws-site-menu{display:grid!important}
header.ws-compact-header nav.ws-site-menu a{position:static!important;display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;padding:11px 12px!important;margin:0!important;border-radius:6px!important;color:#f1f3f4!important;font-size:13px!important;font-weight:650!important;text-decoration:none!important;white-space:normal!important;transform:none!important}
header.ws-compact-header nav.ws-site-menu a:hover,header.ws-compact-header nav.ws-site-menu a.active{color:#e3ac55!important;background:rgba(255,255,255,.06)!important}
@media(max-width:1050px){header.topbar.ws-compact-header{grid-template-columns:minmax(150px,1fr) auto 48px!important;gap:10px!important}header.ws-compact-header .ws-header-logo{width:76px!important}header.ws-compact-header .ws-header-url{font-size:13px!important}header.ws-compact-header nav.ws-featured{gap:5px!important}header.ws-compact-header nav.ws-featured a{padding:9px 8px!important;font-size:11px!important}}
@media(max-width:760px){header.topbar.ws-compact-header{grid-template-columns:minmax(0,1fr) 48px!important;padding:9px 14px!important}header.ws-compact-header .ws-menu-button{grid-column:2!important}header.ws-compact-header nav.ws-featured{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;gap:6px!important}header.ws-compact-header nav.ws-featured a{font-size:10px!important;min-width:0!important;white-space:normal!important;text-align:center!important;padding:10px 4px!important}header.ws-compact-header nav.ws-site-menu{grid-row:3!important;grid-template-columns:1fr!important;max-height:65vh!important;overflow-y:auto!important}}
@media(max-width:390px){header.ws-compact-header .ws-header-logo{width:66px!important}header.ws-compact-header .ws-header-url{font-size:12px!important}header.ws-compact-header nav.ws-featured a{font-size:9px!important}}
/* Right-hand compact dropdown: never expand the full header. */
header.topbar.ws-compact-header{overflow:visible!important}
header.ws-compact-header nav.ws-site-menu,
header.ws-compact-header.nav-open nav.ws-site-menu{
  grid-column:auto!important;grid-row:auto!important;
  position:absolute!important;top:calc(100% - 1px)!important;right:clamp(12px,3vw,54px)!important;left:auto!important;
  width:max-content!important;max-width:calc(100vw - 24px)!important;min-width:0!important;
  padding:8px!important;margin:0!important;
  border:1px solid rgba(216,167,93,.4)!important;border-radius:0 0 12px 12px!important;
  box-shadow:0 16px 32px rgba(0,0,0,.38)!important;
  grid-template-columns:minmax(0,1fr)!important;gap:1px!important;
  max-height:min(70vh,650px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  z-index:9999!important;
}
header.ws-compact-header nav.ws-site-menu a{padding:9px 12px!important;font-size:12px!important;line-height:1.3!important}
@media(max-width:760px){
 header.ws-compact-header nav.ws-site-menu,header.ws-compact-header.nav-open nav.ws-site-menu{
  top:calc(100% - 1px)!important;right:12px!important;left:auto!important;
  width:max-content!important;max-width:calc(100vw - 24px)!important;max-height:65vh!important;
 }
}

/* Brand lock: original website branding is never rebuilt or resized. */
header.topbar.ws-compact-header .ws-compact-brand{max-width:260px!important;flex:0 0 auto!important;}
header.topbar.ws-compact-header .ws-header-logo{width:auto!important;max-width:150px!important;height:auto!important;}
header.topbar.ws-compact-header .ws-header-url{font-size:inherit!important;font-weight:inherit!important;}
@media(max-width:600px){header.topbar.ws-compact-header .ws-compact-brand{max-width:190px!important;}header.topbar.ws-compact-header .ws-header-logo{width:auto!important;max-width:110px!important;}}
/* Keep the four featured links on the right and the dropdown narrow. */
header.topbar.ws-compact-header{grid-template-columns:minmax(0,1fr) auto 48px!important;}

/* Shared typography is independent of the host page's Reader font. */
header.topbar.ws-compact-header{font-family:Arial,Helvetica,sans-serif!important;line-height:1.4!important}
header.topbar.ws-compact-header>a.brand{gap:12px!important;color:#fff!important;text-decoration:none!important;font-size:16px!important;font-weight:750!important;white-space:nowrap!important}
header.topbar.ws-compact-header .ws-header-logo{border:0!important;box-shadow:none!important;background:transparent!important;object-fit:contain!important}
nav.collectionbar{display:none!important}

@media print{html body header.topbar.ws-compact-header{display:none!important}}

/* 20 Nov: phone floating navigation is opt-in; main site menu stays available. */
#ws-phone-nav-toggle{display:none;position:fixed;right:12px;bottom:16px;z-index:2147483001;border:1px solid #d5a65e;border-radius:999px;padding:11px 15px;background:#192b35;color:#fff4d9;font:600 13px/1.2 Arial,sans-serif;box-shadow:0 3px 12px #0005;cursor:pointer}
@media(max-width:1024px){
 body.ws-platform-public #education-flow-nav,body.ws-platform-public #ws-platform-view-nav{display:none!important}
 body.ws-platform-public.ws-device-nav-open #education-flow-nav,body.ws-platform-public.ws-device-nav-open #ws-platform-view-nav{display:flex!important}
 body.ws-platform-public.ws-device-has-long-nav #ws-phone-nav-toggle{display:block!important}
 body.ws-platform-public.ws-giving-page,body.ws-platform-public .ws-giving-shop,body.ws-platform-public .support-page-wrap{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body.ws-platform-public.ws-giving-page .ws-shop-grid,body.ws-platform-public.ws-giving-page .ws-shop-merch-grid,body.ws-platform-public.ws-giving-page .ws-shop-local{grid-template-columns:minmax(0,1fr)!important}
 body.ws-platform-public.ws-giving-page img{max-width:100%!important;height:auto!important}
 body.ws-platform-public.ws-giving-page .ws-shop-actions{flex-wrap:wrap!important}
 body.ws-platform-public.ws-giving-page .ws-shop-actions>*{max-width:100%;box-sizing:border-box}
 body.ws-platform-public.ws-giving-page h1{font-size:clamp(29px,8vw,42px)!important}
 body.ws-platform-public #ws-platform-view-nav{right:6px!important}
 body.ws-platform-public main{min-width:0}
 body.ws-platform-public.ws-giving-page main.support-page-wrap{width:calc(100% - 24px)!important;padding-left:0!important;padding-right:0!important}
 body.ws-platform-public .ws-giving-shop .ws-shop-nav{flex-wrap:wrap!important}
 body.ws-platform-public .ws-giving-shop .ws-shop-book{min-width:0!important}
 body.ws-platform-public .ws-giving-shop .ws-shop-book-copy{min-width:0!important;overflow-wrap:anywhere}
 body.ws-platform-public:has(.impact-identity) main{max-width:100vw!important;min-width:0!important;overflow-x:clip}
 body.ws-platform-public:has(.impact-identity) main img,body.ws-platform-public:has(.impact-identity) main svg{max-width:100%;height:auto}
 body.ws-platform-public:has(.impact-identity) main .container{max-width:100%;box-sizing:border-box}
}
@media print{#ws-phone-nav-toggle{display:none!important}}

/* Tablet and phone navigation: closed by default, explicitly opened by visitor. */
@media (max-width:1024px){
 body.ws-platform-public #education-flow-nav,body.ws-platform-public #ws-platform-view-nav{display:none!important}
 body.ws-platform-public.ws-device-nav-open #education-flow-nav,body.ws-platform-public.ws-device-nav-open #ws-platform-view-nav{display:flex!important}
 body.ws-platform-public.ws-device-has-long-nav #ws-phone-nav-toggle{display:block!important}
 header.ws-compact-header nav.ws-site-menu,header.ws-compact-header.nav-open nav.ws-site-menu{width:max-content!important;min-width:0!important;max-width:calc(100vw - 24px)!important}
 header.ws-compact-header nav.ws-site-menu a{width:auto!important;white-space:normal!important}
}
@media(min-width:1025px){#ws-phone-nav-toggle{display:none!important}}

/* v3: constrain all native dropdowns to their actual content. */
@media(max-width:1024px){select,nav.ws-site-menu{max-width:calc(100vw - 24px)!important}header.ws-compact-header.nav-open nav.ws-site-menu{justify-self:end!important;align-self:start!important}}

/* V5: Scope the original global nav rules away from whale controls. */
@media(max-width:1100px){
 body.ws-story-pod nav.ws-motion-chooser{position:static!important;inset:auto!important;display:none!important;flex-direction:column!important;align-items:stretch!important;width:max-content!important;max-width:calc(100vw - 36px)!important;min-width:0!important;max-height:min(60vh,560px)!important;overflow-y:auto!important;gap:5px!important;padding:8px!important;margin:8px 0!important;border-radius:12px!important;background:#071b26!important;box-shadow:0 10px 20px #0004!important;transform:none!important;z-index:auto!important}
 body.ws-story-pod nav.ws-motion-chooser.ws-chooser-open{display:flex!important}
 body.ws-story-pod nav.ws-motion-chooser button{width:auto!important;min-width:0!important;max-width:100%!important;flex:none!important;padding:9px 14px!important;min-height:38px!important;white-space:normal!important;text-align:left!important;font-size:14px!important}
 body.ws-story-pod #ws-whale-chooser-toggle{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:calc(100vw - 36px)!important;margin:10px 0!important;padding:10px 16px!important;border:1px solid #d7a85d!important;border-radius:10px!important;background:#102b36!important;color:#fff4dc!important;font:600 14px Arial,sans-serif!important;cursor:pointer}
 header.topbar.ws-compact-header.nav-open nav.ws-site-menu{position:absolute!important;top:100%!important;right:12px!important;left:auto!important;width:max-content!important;max-width:calc(100vw - 24px)!important;min-width:0!important;max-height:65vh!important;overflow-y:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:2px!important;padding:8px!important;background:#192530!important;border-radius:0 0 12px 12px!important;z-index:9999!important}
 header.topbar.ws-compact-header nav.ws-site-menu:not(.ws-unused){display:none!important}
 header.topbar.ws-compact-header.nav-open nav.ws-site-menu:not(.ws-unused){display:grid!important}
}
