/* OBOR single shared header: identical research instrument on every OBOR page.
 * Homepage research tools remain interactive in-place; on interior routes the
 * identical instrument returns visitors to the selected homepage tool.
 * Only homepage research sections use the deck-specific content layout rules.
 */
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header{
  position:sticky;top:0;z-index:80;
  background:rgba(249,251,251,.975);
  border-bottom:1px solid #dae5e9;
  box-shadow:0 4px 20px rgba(14,43,54,.075);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .wrap.nav{
  display:grid!important;
  grid-template-columns:minmax(120px,1fr) minmax(0,760px) minmax(120px,1fr);
  grid-template-rows:minmax(76px,auto)!important;
  align-items:center;
  column-gap:clamp(8px,1.2vw,18px);
  width:min(calc(100% - 40px),var(--max));
  min-height:76px!important;
  padding:4px 0!important;
  margin:0 auto;
  box-sizing:border-box;
  transition:min-height .25s ease,padding .25s ease;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-header-brand-group{
  grid-column:1;grid-row:1;
  min-width:0;justify-self:start;align-self:center;
  display:flex;flex-direction:row;align-items:center;
  width:auto;max-width:100%;
  gap:0;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .brand-lockup{
  display:flex;flex:0 0 120px;
  width:120px;height:49px;min-width:0;
  margin:0;
  transform-origin:left center;
  transition:transform .25s ease,opacity .25s ease;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .brand-lockup::before{
  width:100%;height:100%;background-size:contain;flex:0 0 100%;
}
/* The verified period is already displayed inside the evidence environment;
   suppress its competing position beside the site identity on the homepage. */
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-header-trade-month{
  display:none!important;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-header-controls:empty{
  display:none!important;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-header-controls:not(:empty){
  grid-column:3;grid-row:1;justify-self:end;
  position:absolute;right:132px;top:50%;transform:translateY(-50%);
  z-index:1;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .home-menu{
  grid-column:3;grid-row:1;
  justify-self:end;align-self:center;
  min-height:42px;padding:10px 12px;
  border-color:#cbd9de;background:#fff;
  white-space:nowrap;
  transition:background .2s ease,border-color .2s ease;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .home-menu:focus-visible{
  outline:2px solid #b67a56;outline-offset:3px;
}
/* The existing master arrow navigation becomes the centre of the header.
   Keep the one-row instrument: number, active title, concise evidence cue,
   seven-position progress, and accessible previous/next controls. */
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-tools{
  --obor-arrow-shift:0px;
  grid-column:2;grid-row:1;min-width:0;max-width:100%;
  display:grid;
  grid-template-columns:clamp(80px,8vw,106px) minmax(0,1fr) clamp(98px,9vw,112px);
  gap:0;
  position:relative;top:auto;left:auto;right:auto;z-index:auto;
  min-height:62px;height:auto;
  margin:0;padding:4px 5px;
  box-sizing:border-box;
  border:1px solid #2b5060;border-radius:11px;
  color:#f1f7f7;
  background:linear-gradient(115deg,#143545 0%,#173d4d 60%,#123344 100%);
  box-shadow:0 5px 15px rgba(19,58,76,.115);
  transition:background .25s ease,box-shadow .25s ease,min-height .25s ease;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-arrow{
  display:flex;align-items:center;justify-content:center;
  width:100%;min-width:0;min-height:44px;
  padding:4px;border-radius:7px;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-arrow svg{
  width:35px;height:25px;max-width:100%;
  stroke-width:1.6;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-center{
  min-width:0;gap:0;padding:2px 0;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-overline{
  font-size:9px;line-height:1.15;
  letter-spacing:.17em;color:#a8c7cf;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-title{
  display:block;max-width:100%;
  font-size:clamp(17px,1.55vw,23px);
  line-height:1.1;font-weight:700;
  letter-spacing:-.035em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  margin:3px 0 2px;text-wrap:nowrap;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-title-mobile{
  display:none;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-subtitle{
  font-size:10px;line-height:1.1;color:#c3d8de;
  max-width:100%;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-progress{
  gap:4px;margin-top:6px;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-progress i{
  width:18px;height:2px;background:#5d8190;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-progress i.is-current{
  width:30px;background:#ecb993;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-tools.is-scrolled{
  --obor-arrow-shift:8px;
}
/* A subtle scroll response stays inside the same element; no second sticky bar. */
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-unified-scrolled .wrap.nav{
  min-height:68px!important;padding:2px 0!important;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-unified-scrolled .brand-lockup{
  transform:scale(.9);opacity:.86;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-unified-scrolled .obor-master-tools{
  min-height:56px;box-shadow:0 3px 12px rgba(19,58,76,.09);
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-unified-scrolled .obor-master-subtitle{
  display:none;
}
/* No former second-row offset: anchors should appear immediately below the
   only sticky header, rather than below a now-removed 96px tool bar. */
body.home-v3.obor-deck-ready #portfolio-main{
  min-height:calc(100svh - var(--obor-tool-header-height,70px));
}
body.home-v3.obor-deck-ready #portfolio-main > section[data-obor-section]{
  scroll-margin-top:calc(var(--obor-tool-header-height,70px) + 18px);
}
body.home-v3.obor-deck-ready #portfolio-main > :is(.obor-trade-flows-home,.obor-products-home,.obor-history-home)
  :is(#hs6-heading,#td-heading,#ti-heading,#trade-summary,#history-series-title,#history-chart-container,#history-atlas){
  scroll-margin-top:calc(var(--obor-tool-header-height,70px) + 18px);
}
@media(min-width:701px) and (max-width:970px){
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .wrap.nav{
    grid-template-columns:minmax(115px,1fr) minmax(0,760px) 48px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .home-menu{
    min-width:44px;width:44px;padding:8px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-menu-text{display:none}
}
@media(max-width:700px){
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .wrap.nav{
    display:grid!important;
    width:min(calc(100% - 24px),var(--max));
    grid-template-columns:clamp(76px,21vw,99px) minmax(0,1fr) 43px;
    grid-template-rows:minmax(66px,auto)!important;
    gap:6px;min-height:66px!important;
    padding:3px 0!important;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-header-brand-group{
    grid-column:1;grid-row:1;justify-self:start;align-self:center;
    flex-direction:row;align-items:center;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .brand-lockup,
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-header-brand-group .brand-lockup{
    grid-column:auto;grid-row:auto;
    width:88px;height:44px;flex:0 0 88px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-tools{
    grid-column:2;grid-row:1;
    grid-template-columns:39px minmax(0,1fr) 39px;
    min-height:58px;border-radius:9px;
    padding:2px;gap:0;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-arrow{
    padding:0;min-height:44px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-arrow svg{
    width:26px;height:20px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-center{
    padding:2px 0;gap:0;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-overline{
    font-size:8px;letter-spacing:.08em;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-title{
    font-size:clamp(11px,3.4vw,14px);
    line-height:1.12;margin:2px 0 0;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-title-full{
    display:none;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-title-mobile{
    display:inline;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-subtitle{
    display:none;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-progress{
    margin-top:5px;gap:3px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-progress i{
    width:7px;height:2px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-progress i.is-current{
    width:14px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .home-menu{
    grid-column:3;grid-row:1;justify-self:end;
    width:43px;min-width:43px;min-height:44px;
    padding:7px;border-radius:8px;
    gap:0;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-menu-text{
    display:none;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-header-controls:not(:empty){
    position:absolute;top:calc(100% + 8px);right:8px;transform:none;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-unified-scrolled .wrap.nav{
    grid-template-rows:minmax(60px,auto)!important;
    min-height:60px!important;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-unified-scrolled .obor-master-tools{
    min-height:55px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-tools.is-scrolled{
    --obor-arrow-shift:3px;
  }
}
@media(max-width:350px){
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .wrap.nav{
    width:min(calc(100% - 20px),var(--max));
    grid-template-columns:72px minmax(0,1fr) 42px;
    gap:4px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .brand-lockup,
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-header-brand-group .brand-lockup{
    width:72px;flex:0 0 72px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header .obor-master-tools{
    grid-template-columns:34px minmax(0,1fr) 34px;
  }
}
@media(prefers-reduced-motion:reduce){
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header :is(.wrap.nav,.brand-lockup,.obor-master-tools){
    transition:none!important;
  }
}

/* OBOR full-width integrated instrument — single header row.
   The logo stays independent; seven research views, Developments, and the
   existing Intelligence Desk control share one contiguous dark surface. */
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .wrap.nav{
  width:min(calc(100% - clamp(24px,3.2vw,60px)),1760px);
  max-width:none;
  grid-template-columns:clamp(92px,9.5vw,128px) minmax(0,1fr);
  grid-template-rows:minmax(76px,auto)!important;
  column-gap:clamp(10px,1.3vw,22px);
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools{
  grid-column:2;grid-row:1;
  width:100%;max-width:none;min-width:0;
  grid-template-columns:clamp(50px,5vw,76px) minmax(0,1fr) clamp(50px,5vw,76px) clamp(113px,11vw,155px) clamp(136px,13vw,180px);
  min-height:66px;padding:3px 6px;gap:0;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-title{
  font-size:clamp(18px,1.8vw,25px);
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-arrow--next{
  border-radius:6px 0 0 6px;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .obor-header-developments,
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .home-menu{
  grid-column:auto;grid-row:auto;
  width:100%;height:100%;min-width:0;min-height:48px;
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;
  justify-self:stretch;align-self:stretch;
  gap:5px;margin:0;padding:4px 7px;
  color:#dcebef;background:transparent;border:0;
  border-left:1px solid rgba(194,221,228,.23);
  border-radius:0;box-shadow:none;
  font:750 9px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.045em;text-transform:uppercase;text-decoration:none;
  white-space:nowrap;cursor:pointer;
  transition:background-color .18s ease,color .18s ease;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .obor-header-developments .development-mark{
  display:block;width:17px;height:17px;flex:0 0 17px;color:#edb993;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .home-menu .obor-menu-lines{
  display:flex;width:18px;gap:4px;align-items:center;justify-content:center;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .home-menu .obor-menu-lines i{
  width:18px;height:1.6px;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .obor-header-developments:hover,
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .home-menu:hover,
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .home-menu[aria-expanded="true"]{
  background:rgba(226,244,246,.1);color:#fff;border-left-color:rgba(194,221,228,.4);
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > :is(.obor-header-developments,.home-menu):focus-visible{
  outline:2px solid #efbb91;outline-offset:-3px;
}
body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated.obor-unified-scrolled .obor-master-tools > :is(.obor-header-developments,.home-menu){
  min-height:46px;
}
@media(max-width:960px){
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .wrap.nav{
    grid-template-columns:96px minmax(0,1fr);
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools{
    grid-template-columns:clamp(42px,5vw,54px) minmax(0,1fr) clamp(42px,5vw,54px) 112px 122px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > :is(.obor-header-developments,.home-menu){
    font-size:8px;
  }
}
@media(max-width:700px){
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .wrap.nav{
    width:calc(100% - 22px);
    grid-template-columns:clamp(68px,19vw,84px) minmax(0,1fr);
    grid-template-rows:minmax(64px,auto)!important;
    gap:5px;min-height:64px!important;padding:3px 0!important;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .brand-lockup,
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-header-brand-group .brand-lockup{
    width:clamp(68px,19vw,84px);height:44px;flex-basis:clamp(68px,19vw,84px);
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools{
    grid-column:2;grid-row:1;
    grid-template-columns:35px minmax(0,1fr) 35px 43px 43px;
    min-height:55px;padding:2px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-arrow{
    min-height:46px;padding:0;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-arrow svg{
    width:23px;height:18px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-title{
    font-size:clamp(10px,3.3vw,14px);
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > :is(.obor-header-developments,.home-menu){
    width:100%;min-width:0;min-height:46px;padding:4px 0;gap:0;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .obor-header-developments .development-label,
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .home-menu .obor-menu-text{
    display:none;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > .obor-header-developments .development-mark{
    width:17px;height:17px;flex:0 0 17px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated.obor-unified-scrolled .wrap.nav{
    grid-template-rows:minmax(60px,auto)!important;min-height:60px!important;
  }
}
@media(max-width:390px){
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .wrap.nav{
    grid-template-columns:64px minmax(0,1fr);gap:4px;width:calc(100% - 18px);
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .brand-lockup,
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-header-brand-group .brand-lockup{
    width:64px;flex-basis:64px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools{
    grid-template-columns:31px minmax(0,1fr) 31px 40px 40px;
  }
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-overline{
    font-size:7px;
  }
}
@media(prefers-reduced-motion:reduce){
  body:is(.home-v3.obor-deck-ready,.obor-shared-header-ready) .site-header.obor-unified-header.obor-navigation-integrated .obor-master-tools > :is(.obor-header-developments,.home-menu){
    transition:none;
  }
}
