/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* 3S Hub header: family switch, sticky top bar, dropdown panels, phone menu and section sub-nav.
   Every rule is scoped under .h3s; the reset returns Frappe-styled elements to browser defaults first. */

@font-face{font-family:"Barlow";src:url(/files/site-fonts-Barlow-Regular.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Barlow";src:url(/files/site-fonts-Barlow-Medium.ttf) format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:"Barlow";src:url(/files/site-fonts-Barlow-SemiBold.ttf) format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url(/files/site-fonts-BarlowCondensed-Bold.ttf) format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url(/files/site-fonts-BarlowCondensed-ExtraBoldItalic.ttf) format("truetype");font-weight:800;font-style:italic;font-display:swap}

/* Frappe's page chrome and content wrappers give way to the blocks; each block is a .zxw wrapper whose reset returns
   every Frappe-styled element to browser defaults before the design's own rules apply. */
.navbar,.web-footer,.page-breadcrumbs,.page-header-wrapper{display:none!important}
.page-content-wrapper,.page-content-wrapper>main,.page_content,.page-content-wrapper .container,.webpage-content,article.web-page-content{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
body{margin:0;padding:0}
/* In-page anchors land below the fixed bar (family switch + bar), not under it. */
html:has(.h3s--bar){scroll-padding-top:calc(38px + 72px + 16px)}
@media (max-width:1180px){html:has(.h3s--bar){scroll-padding-top:calc(38px + 64px + 12px)}}
.zxw{all:revert;display:flow-root;margin:0;padding:0;font-family:serif;font-size:16px;font-weight:400;font-style:normal;line-height:normal;letter-spacing:normal;word-spacing:normal;color:#000;text-align:start;text-transform:none;white-space:normal}
.zxw :where(:not(svg,svg *,img,video,canvas,iframe,picture)){all:revert}
.zxw :where(img,svg,video,canvas,iframe){vertical-align:baseline}
main#main{display:block;margin:0;padding:0}

.h3s{
  --navy:#0a1132;--navy-2:#111a44;--navy-3:#18235a;--ink:#060a1f;
  --red:#cf0017;--red-hi:#ff4155;--morocco:#af1f41;--fiji:#4f8ebf;--fiji-hi:#8cc0e8;
  --text:#eef0f6;--soft:#b3b9cf;--line:rgba(203,201,198,.16);--line-2:rgba(203,201,198,.3);
  --sans:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --display:"Barlow Condensed","Barlow",system-ui,sans-serif;
  --gutter:clamp(16px,4vw,40px);--max:1240px;--bar:72px;
  font:400 16px/1.45 var(--sans);color:var(--text);-webkit-font-smoothing:antialiased;text-align:start;letter-spacing:normal
}
.h3s *,.h3s *::before,.h3s *::after{box-sizing:border-box}
.h3s ul,.h3s ol{list-style:none;margin:0;padding:0}
.h3s a{color:inherit;text-decoration:none}
.h3s img{display:block;max-width:100%;height:auto}
.h3s :focus-visible{outline:2px solid var(--fiji-hi);outline-offset:3px;border-radius:4px}
.h3s .h-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.h3s .h-wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter);display:flex;align-items:center}
.h3s .h-arrow{display:inline-block;transition:translate .2s}

/* The bar is fixed (each Page Builder block renders on its own, so nothing can stick across the page) and a spacer
   of the same height holds its place. No backdrop-filter: it would trap the fixed phone menu inside the bar. */
.h3s{--family:38px}
.h3s .h-skip{position:fixed;left:-9999px;top:8px;z-index:10001;background:#fff;color:var(--navy);padding:10px 16px;font-weight:600;border-radius:6px}
.h3s .h-skip:focus{left:12px}
.h3s .h-bar{position:fixed;top:0;left:0;right:0;z-index:10000;background:var(--navy);border-bottom:1px solid var(--line);transition:box-shadow .25s}
.h3s .h-space{height:calc(var(--family) + var(--bar) + 1px)}
.h3s .h-bar.is-scrolled{box-shadow:0 12px 30px -16px rgba(0,0,0,.7)}

/* Family switch: the two 3S Hub sites, with the brand stripe underneath. */
.h3s .h-family{background:var(--ink);font:600 12px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--soft);position:relative}
.h3s .h-family::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,var(--red) 0 33.3%,var(--morocco) 33.3% 66.6%,var(--fiji) 66.6%)}
.h3s .h-family .h-wrap{gap:20px;height:var(--family);padding-bottom:3px}
.h3s .h-family__brand{color:#fff}
.h3s .h-family__switch{display:flex;gap:4px}
.h3s .h-family__switch a{display:block;padding:8px 10px;border-radius:4px}
.h3s .h-family__switch a:hover{color:#fff}
.h3s .h-family__switch a[aria-current]{color:#fff;background:rgba(255,255,255,.08)}
.h3s .h-family__platform{margin-left:auto;color:var(--fiji-hi)}

/* Top bar */
.h3s .h-main .h-wrap{gap:24px;height:var(--bar);position:relative}
.h3s .h-logo{flex:none;display:block;padding:6px 0}
.h3s .h-logo img{width:76px;height:auto}
.h3s .h-menu{display:flex;align-items:center;gap:20px;margin-left:auto;align-self:stretch}
.h3s .h-list{display:flex;align-items:stretch;gap:2px;align-self:stretch}
.h3s .h-list>li{display:flex;align-items:center}
.h3s .h-top{display:block;font:500 15px/1 var(--sans);color:var(--soft);padding:12px 10px;border-radius:6px;white-space:nowrap}
.h3s .h-top:hover,.h3s .h-dd:hover .h-top,.h3s .h-dd.is-open .h-top{color:#fff}
.h3s .h-top[aria-current]{color:#fff;box-shadow:inset 0 -2px 0 var(--red)}
.h3s .h-dd__top{padding-right:2px}
.h3s .h-dd__btn{all:unset;box-sizing:border-box;width:24px;height:40px;cursor:pointer;position:relative;color:var(--soft);border-radius:6px}
.h3s .h-dd__btn::after{content:"";position:absolute;left:8px;top:15px;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;rotate:45deg;transition:rotate .2s,top .2s}
.h3s .h-dd:hover .h-dd__btn,.h3s .h-dd.is-open .h-dd__btn{color:#fff}
.h3s .h-dd__btn[aria-expanded=true]::after{rotate:225deg;top:19px}
.h3s .h-dd__btn:focus-visible{outline:2px solid var(--fiji-hi)}
.h3s .h-cta{display:inline-flex;align-items:center;gap:8px;font:600 15px/1 var(--sans);color:#fff;background:var(--red);padding:13px 18px;border-radius:8px;white-space:nowrap}
.h3s .h-cta:hover{background:#e3001a}
.h3s .h-cta:hover .h-arrow{translate:3px 0}
.h3s .h-quick,.h3s .h-toggle{display:none}

/* Dropdown panel: the section's overview beside its pages, hung from the bar's right edge so the widest panel still
   fits. Opens on hover (pointer) or with the arrow button; the ::before bridge keeps hover alive across the gap. */
.h3s .h-dd__panel{position:absolute;top:calc(100% + 6px);right:var(--gutter);display:none;gap:28px;width:max-content;max-width:calc(100% - 2*var(--gutter));padding:24px;border-radius:16px;background:var(--navy-2);border:1px solid var(--line-2);box-shadow:0 30px 60px -24px rgba(0,0,0,.75)}
.h3s .h-dd__panel::before{content:"";position:absolute;left:0;right:0;top:-8px;height:8px}
.h3s .h-dd.is-open .h-dd__panel{display:flex}
@media (hover:hover) and (pointer:fine){.h3s .h-dd:hover .h-dd__panel{display:flex}}
.h3s .h-dd__intro{width:220px;flex:none;display:flex;flex-direction:column;gap:8px}
.h3s .h-dd__img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:10px;margin-bottom:6px}
.h3s .h-dd__kicker{margin:0;font:700 24px/1 var(--display);text-transform:uppercase;letter-spacing:.02em;color:#fff}
.h3s .h-dd__summary{margin:0;color:var(--soft);font-size:14.5px}
.h3s .h-dd__all{margin-top:auto;padding-top:8px;color:var(--fiji-hi);font-weight:600;font-size:14.5px}
.h3s .h-dd__all:hover{color:#fff}
.h3s .h-dd__all:hover .h-arrow{translate:3px 0}
.h3s .h-dd__list{display:grid;grid-template-columns:minmax(240px,300px);gap:2px;align-content:start}
.h3s .h-dd__list--wide{grid-template-columns:repeat(2,minmax(220px,280px))}
.h3s .h-dd__list a{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:8px}
.h3s .h-dd__list a:hover,.h3s .h-dd__list a[aria-current]{background:rgba(255,255,255,.06)}
.h3s .h-dd__list strong{font-weight:600;font-size:15px;color:#fff}
.h3s .h-dd__list span{font-size:13.5px;line-height:1.35;color:var(--soft)}
.h3s .h-dd__list a[aria-current=page] strong{color:var(--red-hi)}
/* Third level: an entry's own pages, indented under it with a brand-red rule. */
.h3s .h-dd__sub{margin:-2px 0 6px 14px;padding-left:10px;border-left:2px solid rgba(207,0,23,.5)}
.h3s .h-dd__list .h-dd__sub a{display:block;padding:5px 10px;font-size:13.5px;line-height:1.3;color:var(--soft)}
.h3s .h-dd__list .h-dd__sub a:hover{color:#fff;background:rgba(255,255,255,.06)}
.h3s .h-dd__list .h-dd__sub a[aria-current]{color:var(--red-hi);background:none}

/* Section sub-nav on inner pages: breadcrumbs, then the section's pages as scrollable tabs. */
.h3s--sub{position:relative;z-index:1}
.h3s .h-sub{background:var(--navy-2);border-bottom:1px solid var(--line)}
.h3s .h-sub .h-wrap{flex-wrap:wrap;gap:6px 24px;padding-top:10px;padding-bottom:0}
.h3s .h-crumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:13.5px;color:var(--soft);width:100%}
.h3s .h-crumbs li+li::before{content:"/";margin-right:6px;color:var(--line-2)}
.h3s .h-crumbs a:hover{color:#fff}
.h3s .h-crumbs a[aria-current]{color:#fff}
.h3s .h-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;width:100%;margin:0 calc(-1*var(--gutter));padding:0 var(--gutter);scroll-padding:0 var(--gutter)}
.h3s .h-tabs::-webkit-scrollbar{display:none}
.h3s .h-tabs.is-clipped{mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent)}
.h3s .h-tabs.is-clipped.is-end{mask-image:none}
.h3s .h-tabs a{display:block;white-space:nowrap;padding:12px 12px 13px;font-weight:500;font-size:14.5px;color:var(--soft);border-bottom:2px solid transparent}
.h3s .h-tabs a:hover{color:#fff}
.h3s .h-tabs a[aria-current]{color:#fff;border-bottom-color:var(--red)}

/* Phone and tablet: a full-screen menu; a section row expands its pages. */
@media (max-width:1180px){
  .h3s{--bar:64px}
  .h3s .h-family__platform{display:none}
  .h3s .h-family .h-wrap{justify-content:space-between}
  .h3s .h-logo img{width:64px}
  .h3s .h-quick{display:inline-flex;align-items:center;margin-left:auto;font:600 14px/1 var(--sans);color:#fff;background:var(--red);padding:0 14px;min-height:44px;border-radius:8px;white-space:nowrap}
  .h3s .h-toggle{all:unset;box-sizing:border-box;display:block;flex:none;width:48px;height:48px;border-radius:10px;border:1.5px solid var(--line-2);cursor:pointer;position:relative}
  .h3s .h-toggle__bars,.h3s .h-toggle__bars::before,.h3s .h-toggle__bars::after{position:absolute;left:13px;right:13px;height:2px;background:#fff;transition:transform .2s,opacity .2s}
  .h3s .h-toggle__bars{top:50%;margin-top:-1px}
  .h3s .h-toggle__bars::before,.h3s .h-toggle__bars::after{content:"";left:0;right:0}
  .h3s .h-toggle__bars::before{top:-7px}
  .h3s .h-toggle__bars::after{top:7px}
  .h3s .h-toggle[aria-expanded=true] .h-toggle__bars{background:transparent}
  .h3s .h-toggle[aria-expanded=true] .h-toggle__bars::before{transform:translateY(7px) rotate(45deg)}
  .h3s .h-toggle[aria-expanded=true] .h-toggle__bars::after{transform:translateY(-7px) rotate(-45deg)}
  .h3s .h-toggle:focus-visible{outline:2px solid var(--fiji-hi);outline-offset:2px}
  .h3s .h-main .h-wrap{gap:12px}
  .h3s .h-menu{position:fixed;left:0;right:0;bottom:0;top:var(--menu-top,calc(var(--family) + var(--bar)));margin:0;flex-direction:column;align-items:stretch;gap:20px;padding:8px var(--gutter) max(20px,env(safe-area-inset-bottom));background:var(--navy);overflow-y:auto;overscroll-behavior:contain;visibility:hidden;opacity:0;transition:opacity .2s,visibility .2s}
  .h3s .h-bar.is-open .h-menu{visibility:visible;opacity:1}
  .h3s .h-list{flex-direction:column;align-items:stretch;gap:0}
  .h3s .h-list>li{flex-wrap:wrap;border-bottom:1px solid var(--line)}
  .h3s .h-top{flex:1 1 0;min-width:0;font:700 26px/1.05 var(--display);text-transform:uppercase;letter-spacing:.02em;color:#fff;padding:18px 0;border-radius:0}
  .h3s .h-top[aria-current]{box-shadow:none;color:var(--red-hi)}
  .h3s .h-dd__btn{width:48px;height:48px;color:#fff}
  .h3s .h-dd__btn::after{left:19px;top:18px;width:8px;height:8px}
  .h3s .h-dd__btn[aria-expanded=true]::after{top:23px}
  .h3s .h-dd__panel{position:static;width:100%;max-width:none;flex-direction:column;gap:6px;padding:0 0 16px;border:0;border-radius:0;background:transparent;box-shadow:none}
  .h3s .h-dd__panel::before{display:none}
  .h3s .h-dd__intro{width:auto;order:2}
  .h3s .h-dd__img,.h3s .h-dd__kicker,.h3s .h-dd__summary{display:none}
  .h3s .h-dd__all{margin:0;padding:10px 12px}
  .h3s .h-dd__list,.h3s .h-dd__list--wide{grid-template-columns:1fr}
  .h3s .h-dd__list a{padding:0 12px;min-height:48px;justify-content:center}
  .h3s .h-dd__list span{display:none}
  .h3s .h-dd__list .h-dd__sub a{display:flex;align-items:center;min-height:44px;padding:0 12px;font-size:15px}
  /* The bar's own call to action and the family switch above it stay visible while the menu is open. */
  .h3s .h-cta{display:none}
}
@media (max-width:420px){.h3s .h-family__brand{display:none}.h3s .h-family .h-wrap{justify-content:flex-start}}

@media (prefers-reduced-motion:reduce){.h3s *,.h3s *::before,.h3s *::after{transition:none!important;animation:none!important}}
