/* The approved header (OPS-1133). One flat bar: the logo, five destinations, then the actions.
   Wide menus drop from the bar at full width. Below 1181px the links move into a full sheet.
   My CamCore has its own rail, so private pages keep only the logo, search and the account. */

/* The bar ------------------------------------------------------------------------------- */
body[data-design] .app-header{padding:0;border-bottom:1px solid #2a3843;background:#0a0f14}
body[data-design] .app-header-shell{position:static;width:100%;min-height:72px;margin:0;gap:10px 24px;padding:10px max(clamp(16px,3vw,40px),calc((100vw - 1400px)/2));border:0;border-radius:0;background:none;box-shadow:none}
body[data-design] .brand{padding:0;border:0}
body[data-design] .brand img{width:136px}
body[data-design] .primary-nav{flex:1 1 auto;gap:2px;margin:0}
body[data-design] .primary-nav>a,body[data-design] .nav-more>summary{min-height:44px;padding:0 12px;border-radius:999px;background:none;color:#f6efe6;font-size:15px;font-weight:600}
body[data-design] .nav-more>summary::after{color:currentColor}
body[data-design] .primary-nav>a:hover,body[data-design] .nav-more>summary:hover,body[data-design] .nav-more[open]>summary{background:#141d25;color:#ff7a59}
body[data-design] .primary-nav>a[aria-current="page"],body[data-design] .nav-more:has(a[aria-current="page"])>summary{background:none;color:#ff7a59}
body[data-design] .primary-nav>a.nav-cta,body[data-design] .primary-nav>a.nav-cta[aria-current="page"]{justify-content:center;margin:0 0 0 auto;padding:0 20px;background:#ff4b2b;color:#10181f;font-weight:800}
body[data-design] .primary-nav>a.nav-cta:hover,body[data-design] .primary-nav>a.nav-cta:focus-visible{background:#ff7a59;color:#10181f}
body[data-design] .app-header :focus-visible{outline:2px solid #ffb09d;outline-offset:2px}

/* The actions --------------------------------------------------------------------------- */
body[data-design] .header-actions{gap:8px}
body[data-design] .header-search{width:44px;min-height:44px;padding:0;justify-content:center;border-color:#34434f;background:none;color:#f6efe6}
body[data-design] .header-search:hover,body[data-design] .header-search:focus-visible{border-color:#ff7a59;background:#141d25;color:#f6efe6}
body[data-design] .header-search-label,body[data-design] .header-search-key{display:none}
body[data-design] .header-status{min-height:44px;padding:0 14px;border-color:#34434f;background:none;color:#f6efe6;font-size:14px;font-weight:600}
body[data-design] .header-status:hover{border-color:#ff7a59;background:#141d25}
body[data-design] .account-button{min-height:44px;padding:4px 14px 4px 5px;border:0;background:#f6efe6;color:#10181f;font-size:15px;font-weight:800}
body[data-design] .account-button:not(:disabled):hover{border:0;background:#fff}
body[data-design] .account-button .chevron{color:#10181f}
body[data-design] .account-button [data-account-label]{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-design] .account-menu{padding:16px;border-color:#34434f;border-radius:20px;background:#141d25;box-shadow:0 24px 60px rgba(0,0,0,.6)}
body[data-design] .account-menu p{color:#e6dcd0;font-size:14px}
body[data-design] .account-menu .account-summary small{color:#c9d1d8;font-size:13px}
body[data-design] .account-menu>button,body[data-design] .account-menu .account-links a{min-height:44px;border-radius:12px;font-size:15px}
body[data-design] .account-menu>button.account-signin{border:0;background:#f6efe6;color:#10181f;font-weight:800;text-align:center}
body[data-design] .account-menu>button.account-signin:hover{background:#fff}
@media(max-width:1359px){
  body[data-design] .header-status{justify-content:center;width:44px;padding:0}
  body[data-design] .header-status [data-header-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* Wide menus ---------------------------------------------------------------------------- */
@media(min-width:1181px){
  body[data-design] .nav-more{position:static}
  body[data-design] .nav-more>div.nav-mega{position:absolute;top:100%;right:0;left:0;width:auto;max-height:calc(100dvh - 73px);overflow:auto;overscroll-behavior:contain;transform:none;grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:24px clamp(20px,3vw,44px);padding:26px max(clamp(16px,3vw,40px),calc((100vw - 1400px)/2)) 30px;border:0;border-top:1px solid #2a3843;border-bottom:1px solid #34434f;border-radius:0;background:#141d25;box-shadow:0 30px 60px rgba(0,0,0,.55)}
  body[data-design] .nav-menu-services .nav-mega-columns{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto 1fr}
  body[data-design] .nav-menu-services .nav-mega-column:nth-child(-n+2){grid-row:1/span 2}
  body[data-design] .nav-menu-services .nav-mega-all{grid-column:3;grid-row:2;align-self:end;margin:12px 0 0;padding:0;border:0}
  body[data-design] .nav-menu-online .nav-mega-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-design] .nav-menu-help>div.nav-mega{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
  body[data-design] .nav-menu-help .nav-mega-side{grid-template-columns:minmax(180px,240px) minmax(0,1fr);column-gap:20px;overflow:hidden}
  body[data-design] .nav-menu-help .nav-mega-side>:not(.nav-mega-art){grid-column:2}
  body[data-design] .nav-menu-help .nav-mega-art{grid-column:1;grid-row:1/span 4;align-self:stretch;width:calc(100% + 18px);height:calc(100% + 36px);margin:-18px 0 -18px -18px;border:0;border-right:1px solid #34434f;border-radius:0;aspect-ratio:auto}
}
body[data-design] .nav-more>div.nav-mega a:not(.button){padding:9px 12px;border-radius:12px;color:#f6efe6}
body[data-design] .nav-more>div.nav-mega a:not(.button):hover,body[data-design] .nav-more>div.nav-mega a:not(.button):focus-visible{background:#1e2a33}
body[data-design] .nav-more>div.nav-mega a:not(.button) strong{color:#f6efe6;font-size:15px;font-weight:700}
body[data-design] .nav-more>div.nav-mega a:not(.button) small{color:#c9d1d8;font-size:13px;font-weight:500}
body[data-design] .nav-more>div.nav-mega a[aria-current="page"]{background:#1e2a33}
body[data-design] .nav-more>div.nav-mega a[aria-current="page"] strong{color:#ff7a59}
body[data-design] .nav-mega-title{color:#ffb09d;font-size:12px}
body[data-design] .nav-more>div .nav-mega-all a{border-color:#34434f;background:#0f161c}
body[data-design] .nav-more>div .nav-mega-all a::after{color:#ff7a59}
body[data-design] .nav-mega-side{border-color:#34434f;border-radius:20px;background:#0f161c}
body[data-design] .nav-mega-art{border-radius:19px 19px 0 0;border-color:#34434f}
body[data-design] .nav-mega-side p{color:#e6dcd0;font-size:14px}
body[data-design] .nav-mega-side .eyebrow{color:#ffb09d;font-size:12px}
body[data-design] .nav-mega-side .nav-mega-side-title{color:#f6efe6;font-size:18px}
body[data-design] .nav-more>div.nav-mega a.button{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:#ff4b2b;color:#10181f;font-size:15px;font-weight:800}
body[data-design] .nav-more>div.nav-mega a.button:hover,body[data-design] .nav-more>div.nav-mega a.button:focus-visible{background:#ff7a59;color:#10181f}

/* The sheet ----------------------------------------------------------------------------- */
@media(max-width:1180px){
  body[data-design] .app-header-shell{min-height:64px;gap:8px;padding:10px clamp(12px,3vw,24px)}
  body[data-design] .brand{margin-right:auto}
  body[data-design] .header-actions{order:2;margin:0}
  body[data-design] .nav-toggle{order:3;width:44px;height:44px;margin:0;padding:12px 11px;border-color:#34434f;border-radius:999px;background:none}
  body[data-design] .nav-toggle span{margin:4px 0;background:#f6efe6}
  body[data-design] .primary-nav{position:absolute;top:100%;right:0;left:0;gap:0;height:calc(100dvh - 64px);max-height:none;padding:6px clamp(16px,4vw,32px) calc(28px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;border:0;border-radius:0;background:#0a0f14;box-shadow:none}
  body[data-design] .primary-nav>a:not(.nav-cta),body[data-design] .nav-more>summary{justify-content:space-between;width:100%;min-height:58px;padding:0 4px;border-bottom:1px solid #2a3843;border-radius:0;font-size:18px;font-weight:700}
  body[data-design] .primary-nav>a:not(.nav-cta):hover,body[data-design] .nav-more>summary:hover,body[data-design] .nav-more[open]>summary{background:none}
  body[data-design] .primary-nav>a.nav-cta,body[data-design] .primary-nav>a.nav-cta[aria-current="page"]{flex:none;min-height:52px;margin:22px 0 0;font-size:17px}
  body[data-design] .nav-more>div.nav-mega{margin:0;padding:6px 0 14px;gap:6px;border:0;border-bottom:1px solid #2a3843;border-radius:0;background:none}
  body[data-design] .nav-more>div.nav-mega a:not(.button){min-height:46px;align-content:center}
  body[data-design] .nav-more>div.nav-mega a:not(.button) strong{font-size:16px;font-weight:600}
  body[data-design] .nav-more>div.nav-mega a:not(.button) small{display:none}
  body[data-design] .nav-mega-title{margin:12px 0 2px;padding:0 12px}
  body[data-design] .nav-more>div .nav-mega-all a{min-height:48px}
  /* On the root: html clips overflow-x, so a lock on body would make body the scroller and
     carry the sticky bar and the sheet off the top of a scrolled page. */
  html:has(body[data-design] .primary-nav.open){overflow:hidden}
}
@media(max-width:760px){
  body[data-design] .brand img{width:104px}
  body[data-design] .header-actions{gap:6px}
  body[data-design] .account-button{min-height:44px;padding:4px 12px 4px 5px;font-size:14px}
  body[data-design] .account-button [data-account-label]{display:inline;max-width:72px}
  body[data-design] .account-button .chevron{display:none}
  body[data-design] .account-menu{position:fixed;top:72px;right:12px;left:12px;width:auto;max-height:calc(100dvh - 84px);overflow:auto}
}
@media(max-width:359px){
  body[data-design] .brand img{width:92px}
  body[data-design] .account-button{padding:4px}
  body[data-design] .account-button [data-account-label]{display:none}
}

/* My CamCore ---------------------------------------------------------------------------- */
body[data-design][data-required-access] .primary-nav,body[data-design][data-required-access] .nav-toggle{display:none}
body[data-design][data-required-access] .brand{margin-right:0}
body[data-design][data-required-access] .header-actions{flex:1 1 auto;justify-content:flex-end}
@media(min-width:761px){
  body[data-design][data-required-access] .header-search{flex:1 1 320px;justify-content:flex-start;width:auto;max-width:560px;margin-inline:auto;padding:0 16px;background:#141d25}
  body[data-design][data-required-access] .header-search-label{display:inline;font-size:15px;font-weight:500}
  body[data-design][data-required-access] .header-search-key{display:inline;margin-left:auto;color:#c9d1d8;font-size:13px}
}
