/* RSEC Batch 47 — homepage hero overlay navigation + desktop sticky rail */
:root{--b47-navy:#071f36;--b47-navy2:#0b2e4d;--b47-gold:#d9aa43;--b47-cream:#fff8e8}

/* Homepage: new full-viewport hero */
body.home-b38{background:var(--b47-navy)!important;overflow-x:hidden}
body.home-b38 .home-b38-stage{position:relative!important;width:100%!important;height:100svh!important;min-height:700px!important;overflow:hidden!important;background:var(--b47-navy)!important;line-height:normal!important}
body.home-b38 .home-b38-stage>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center center!important;margin:0!important;display:block!important}
body.home-b38 .home-b38-stage:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(4,24,43,.28) 0,rgba(4,24,43,.04) 18%,rgba(4,24,43,.02) 72%,rgba(4,24,43,.18) 100%);z-index:2}

/* Real, clickable navigation overlaying the hero artwork */
.b47-hero-nav{position:absolute;z-index:40;left:0;right:0;top:0;min-height:86px;display:flex;align-items:center;gap:26px;padding:8px clamp(26px,4vw,72px);background:linear-gradient(180deg,rgba(3,24,43,.97),rgba(3,24,43,.90));border-bottom:1px solid rgba(217,170,67,.38);box-shadow:0 8px 26px rgba(0,0,0,.12);backdrop-filter:blur(10px)}
.b47-hero-brand{flex:0 0 auto;display:flex;align-items:center;min-width:180px;height:68px}
.b47-hero-brand img{display:block;width:170px;height:68px;object-fit:contain;mix-blend-mode:screen;filter:brightness(1.08) contrast(1.03)}
.b47-hero-links{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:clamp(12px,1.6vw,28px);white-space:nowrap}
.b47-hero-links a{position:relative;display:inline-flex;align-items:center;min-height:44px;color:#fff;font:700 12px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.2px;text-decoration:none;transition:color .18s ease,transform .18s ease}
.b47-hero-links a:not(.b47-touch):after{content:"";position:absolute;left:0;right:100%;bottom:7px;height:2px;background:var(--b47-gold);transition:right .18s ease}
.b47-hero-links a:hover,.b47-hero-links a:focus-visible{color:#f4cf79;transform:translateY(-1px)}
.b47-hero-links a:hover:after,.b47-hero-links a:focus-visible:after{right:0}
.b47-hero-links .b47-touch{padding:0 18px;border:1px solid var(--b47-gold);border-radius:999px;background:rgba(5,30,52,.55);color:#ffe5a4;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}
.b47-hero-links .b47-touch:hover,.b47-hero-links .b47-touch:focus-visible{background:var(--b47-gold);color:#09243c}

/* Legacy image hotspots are retained for commodity/global-presence cards only. */
body.home-b38 .home-b38-hotspot{display:none!important}

/* Desktop sticky right navigation rail */
.rsec-sticky-nav{position:fixed;right:16px;top:50%;transform:translateY(-50%);z-index:8200;width:108px;padding:9px;border:1px solid rgba(217,170,67,.38);border-radius:18px;background:linear-gradient(180deg,rgba(5,31,52,.91),rgba(7,41,67,.85));box-shadow:0 14px 34px rgba(0,0,0,.20);backdrop-filter:blur(10px);display:flex;flex-direction:column;gap:5px}
.rsec-sticky-nav a{display:grid;grid-template-columns:26px 1fr;align-items:center;gap:6px;min-height:44px;padding:5px 6px;border-radius:10px;color:#edf4f7;text-decoration:none;font:800 8.5px/1.12 Arial,Helvetica,sans-serif;letter-spacing:.35px;text-transform:uppercase;transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.rsec-sticky-nav .rn-icon{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid rgba(217,170,67,.55);border-radius:50%;color:var(--b47-gold);font-size:13px;font-weight:900;line-height:1;background:rgba(255,255,255,.035)}
.rsec-sticky-nav .rn-label{overflow-wrap:anywhere}
.rsec-sticky-nav a:hover,.rsec-sticky-nav a:focus-visible{background:rgba(217,170,67,.17);color:#fff;transform:translateX(-3px);box-shadow:inset 3px 0 0 var(--b47-gold)}
.rsec-sticky-nav a:hover .rn-icon,.rsec-sticky-nav a:focus-visible .rn-icon{background:var(--b47-gold);color:#08233b;border-color:var(--b47-gold)}
.rsec-sticky-nav .rn-cta{margin-top:3px;background:var(--b47-gold);color:#08233b}
.rsec-sticky-nav .rn-cta .rn-icon{border-color:#08233b;color:#08233b;background:rgba(255,255,255,.20)}
.rsec-sticky-nav .rn-cta:hover,.rsec-sticky-nav .rn-cta:focus-visible{background:#f0c764;color:#071f36;box-shadow:none}

/* Keep page content from sitting directly underneath the rail on wide screens. */
@media(min-width:1280px){body:not(.home-b38){padding-right:0}.rsec-sticky-nav{right:18px}}

/* Hero text overlays */
.home-b38-overlay-text{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:clamp(40px,8vw,80px);pointer-events:none;font-family:Arial,Helvetica,sans-serif;color:#fff}
.home-b38-left-branding{flex:0 0 45%;display:flex;flex-direction:column;justify-content:center;gap:8px}
.brand-logo-marker{font-size:clamp(32px,5vw,52px);font-weight:900;letter-spacing:3px;color:#d4af37;margin-bottom:12px;opacity:0.95}
.home-b38-left-branding h2{font-size:clamp(18px,3vw,28px);font-weight:300;letter-spacing:2.5px;margin:0;color:#ccc}
.home-b38-left-branding h1{font-size:clamp(48px,8vw,88px);font-weight:900;letter-spacing:2px;margin:0;line-height:1;color:#d4af37;text-shadow:0 2px 8px rgba(0,0,0,0.4)}
.brand-tagline{font-size:clamp(12px,1.6vw,16px);letter-spacing:1px;line-height:1.6;margin:8px 0 0 0;color:#ccc;font-weight:300}
.home-b38-company-info{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:clamp(11px,1.5vw,14px);letter-spacing:1px;line-height:1.5;color:#ccc}
.home-b38-company-info strong{font-weight:700;letter-spacing:1.5px;color:#d4af37;margin-bottom:4px}
.home-b38-company-info em{font-style:normal;font-weight:300;letter-spacing:1px}

/* Homepage desktop uses the visible overlay navigation, not a separate header above the image. */
@media(min-width:1025px){body.home-b38{padding-top:0!important}.home-b38>.v7-header,.home-b38>.rsec-mobile-menu{display:none!important}.home-b38>.v7-footer{position:relative!important}.b47-hero-nav{display:flex}.rsec-sticky-nav{display:flex}.home-b38-overlay-text{display:flex}}

/* Tablet/mobile keep the established hamburger/quick navigation only. */
@media(max-width:1024px){
  .rsec-sticky-nav{display:none!important}
  .b47-hero-nav{display:none!important}
  .home-b38-overlay-text{display:none!important}
  body.home-b38{padding-top:110px!important;background:#fff!important}
  body.home-b38>.v7-header{display:block!important}
  body.home-b38>.rsec-mobile-menu{display:grid!important}
  body.home-b38 .home-b38-stage{height:calc(100svh - 110px)!important;min-height:560px!important}
  body.home-b38 .home-b38-stage>img{top:-2.5%!important;height:105%!important;object-position:54% center!important}
  body.home-b38 .home-b38-stage:after{background:linear-gradient(180deg,rgba(4,24,43,.10),rgba(4,24,43,0) 45%,rgba(4,24,43,.16))}
}

@media(max-width:560px){
  body.home-b38 .home-b38-stage{min-height:520px!important}
  body.home-b38 .home-b38-stage>img{object-position:56% center!important}
}
@media(min-width:1025px) and (max-width:1250px){
  .b47-hero-nav{gap:12px;padding-left:22px;padding-right:22px}
  .b47-hero-brand{min-width:135px}.b47-hero-brand img{width:132px}
  .b47-hero-links{gap:10px}.b47-hero-links a{font-size:10px}.b47-hero-links .b47-touch{padding:0 12px}
  .rsec-sticky-nav{right:10px;width:100px}
}

/* RSEC BATCH 51 — wider draggable desktop quick navigation */
@media(min-width:1025px){
.rsec-sticky-nav{width:138px!important;padding:10px!important;gap:5px!important;right:18px;touch-action:none}
.rsec-sticky-nav a{grid-template-columns:30px 1fr!important;gap:8px!important;min-height:46px!important;padding:6px 8px!important;font-size:9.5px!important;letter-spacing:.3px!important}
.rsec-sticky-nav .rn-icon{width:28px!important;height:28px!important}
.rsec-sticky-nav .rn-label{overflow-wrap:normal!important;word-break:normal!important}
.rn-drag-handle{display:flex;align-items:center;justify-content:center;gap:6px;min-height:28px;border:0;border-bottom:1px solid rgba(217,170,67,.30);background:transparent;color:#e7c46c;font:800 8px/1 Arial,sans-serif;letter-spacing:.8px;cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}
.rn-drag-handle:active{cursor:grabbing}
.rsec-sticky-nav.rn-dragging{transition:none!important;box-shadow:0 18px 46px rgba(0,0,0,.30)}
}
@media(min-width:1025px) and (max-width:1250px){.rsec-sticky-nav{width:128px!important;right:10px!important}}
@media(max-width:1024px){.rn-drag-handle{display:none!important}}
.story-links-single{grid-template-columns:1fr!important}
.b51-context-links{position:fixed;left:18px;bottom:42px;z-index:8100;display:flex;gap:8px}.b51-context-links a{background:#fff;border:1px solid #dce4e5;padding:8px 10px;border-radius:4px;font:700 9px Arial;color:#17384a}
@media(max-width:900px){.b51-context-links{display:none}}


/* RSEC BATCH 57 — show full PKS hero image without crop */
.pks-hero .story-fullimage{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#dfe7dd;
}
.pks-hero .story-fullimage > img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:#dfe7dd;
}
@media (max-width: 1180px){
  .pks-hero .story-fullimage{height:100% !important; min-height:0 !important;}
  .pks-hero .story-fullimage > img{max-height:100% !important;}
}
