/* One public masthead, based on the homepage desktop design.
   Header geometry is independent of the current page and selected navigation. */
body[data-page]{--site-header-height:clamp(94px,13vh,134px)}
.ref-header{position:relative;z-index:100;isolation:isolate;max-width:1920px;width:100%;margin:auto;height:var(--site-header-height);flex-shrink:0;display:grid;grid-template-columns:clamp(240px,26vw,400px) clamp(110px,10vw,190px) minmax(0,1fr) auto;grid-template-rows:1fr auto;align-items:center;gap:4px 12px;padding:8px clamp(18px,2vw,40px) 17px;background:var(--rns-industrial-header)}
.ref-header:after{content:'';position:absolute;inset:0;pointer-events:none;background:var(--rns-industrial-header-texture);z-index:-1}
.ref-brand{display:block;grid-column:1;grid-row:1/3;width:100%;min-width:0;line-height:0;text-decoration:none}
.ref-brand img{display:block;width:100%;height:auto;max-height:calc(var(--site-header-height) - 23px);object-fit:contain;object-position:left center}
.ref-nav{grid-column:3;grid-row:1/3;display:flex;align-items:center;justify-content:center;gap:clamp(9px,1vw,20px);margin-left:0;border-left:1px solid #e3f1fb8c;padding-left:12px;white-space:nowrap}
.ref-nav a{font:600 clamp(13px,1.2vw,23px) var(--ref-sans);color:#f8fbff;text-shadow:0 2px 2px #112c40;padding:12px 0;transition:color .15s}
.ref-nav a:hover{color:#ffb3a8}
.ref-nav a[aria-current]{color:#fff;border-bottom:2px solid #ff6555;padding-bottom:10px}
.ref-phone{grid-column:4;grid-row:1;align-self:end;display:flex;align-items:center;gap:8px;border-left:1px solid #e4f3ff9c;padding-left:16px;white-space:nowrap;font:600 clamp(19px,1.8vw,30px) var(--ref-sans);text-shadow:0 2px 2px #0c2435}
.ref-phone svg{width:23px;height:23px;flex-shrink:0}
.ref-app-switch{grid-column:4;grid-row:2;justify-self:end;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--site-blue);color:#fff;border:1px solid #bed3e0;border-radius:6px;min-height:27px;padding:3px 10px;font:600 13px var(--ref-sans);white-space:nowrap;box-shadow:inset 0 1px 0 #cee7f347,0 2px 4px #061e3080}
.ref-app-switch:hover{background:var(--site-red)}
.ref-header-trim{position:absolute;bottom:-19px;left:0;width:100%;height:32px;z-index:2;filter:drop-shadow(0 3px 2px #071a2b99);pointer-events:none}
.ref-mobile-menu{display:block;position:relative;font:600 16px var(--ref-sans)}
.ref-mobile-menu summary{display:flex;align-items:center;gap:9px;list-style:none;background:var(--site-blue);border:1px solid #bfd3e1;border-radius:7px;min-height:44px;padding:8px 12px;cursor:pointer;box-shadow:inset 0 1px 0 #cee7f347,0 2px 4px #061e3080}
.ref-mobile-menu summary::-webkit-details-marker{display:none}
.ref-mobile-menu summary svg{display:none;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2}
.ref-mobile-menu[open] summary{background:var(--site-red)}
.ref-mobile-menu nav{position:absolute;right:0;top:calc(100% + 8px);width:min(300px,calc(100vw - 40px));max-height:65svh;overflow-y:auto;background:#12354cf5;border:1px solid #bfd6e6;border-radius:9px;box-shadow:0 10px 22px #031826aa;padding:6px;z-index:80}
.ref-mobile-menu nav a{display:block;padding:12px 13px;border-bottom:1px solid #7395ad66;min-height:46px;color:#f5faff}
.ref-mobile-menu nav a:last-child{border:0}
.ref-mobile-menu nav a:hover,.ref-mobile-menu nav a[aria-current]{background:#315a72;border-radius:4px}
/* Keep smaller desktop windows on the full navigation rather than a hamburger. */
@media(min-width:1024px) and (max-width:1250px){
 .ref-header{grid-template-columns:clamp(180px,20vw,250px) 110px minmax(0,1fr) auto;gap:4px 12px;padding-left:18px;padding-right:18px}
 .ref-nav{gap:10px;padding-left:12px}.ref-nav a{font-size:13px}
 .ref-phone{font-size:18px;padding-left:12px}.ref-phone svg{width:20px;height:20px}
}
@media(min-width:1024px) and (max-height:760px){body[data-page]{--site-header-height:92px}}
@media(min-width:1024px) and (max-height:600px){
 body[data-page]{--site-header-height:104px}
 .ref-header{padding:8px 20px 16px}.ref-brand{width:min(240px,100%)}.ref-brand img{max-height:48px}.ref-phone{font-size:18px}
}
@media(max-width:1023px){
 body[data-page]{--site-header-height:auto}
 .ref-header{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;height:auto;min-height:112px;gap:7px 16px;padding:12px 20px 17px}
 .ref-brand{width:clamp(190px,38vw,340px);max-width:100%;grid-column:1;grid-row:1}.ref-brand img{max-height:none}
 .ref-nav{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:0;padding:0;width:100%}
 .ref-nav>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;font-size:16px}
 .ref-nav>a[aria-current]{padding-bottom:6px}
 .ref-mobile-menu{position:absolute;right:20px;top:12px}
 .ref-mobile-menu summary svg{display:block}
 .ref-phone{grid-column:1;grid-row:2;justify-self:start;justify-content:flex-start;align-self:center;border:0;padding:0;gap:9px;font-size:18px}.ref-phone svg{width:20px;height:20px}
 .ref-app-switch{grid-column:2;grid-row:2;min-height:40px;font-size:13px;padding:7px 11px}
 .ref-header-trim{height:22px;bottom:-13px}
}
@media(max-width:650px){
 .ref-header{padding:10px 16px 15px;gap:8px 12px}.ref-brand{width:clamp(180px,54vw,270px)}
 .ref-mobile-menu{right:16px;top:10px}
 .ref-mobile-menu summary{padding:9px 10px;gap:7px;font-size:15px}.ref-phone{min-height:27px}
}

/* Page identity shares the existing masthead, between brand and navigation. */
.ref-page-title{grid-column:2;grid-row:1/3;min-width:0}
.ref-page-title h1{font:italic 800 clamp(20px,min(1.6vw,3vh),30px)/1.1 var(--ref-type)!important;margin:0!important;color:#fff;overflow-wrap:anywhere}
@media(max-width:1023px){.ref-page-title{grid-column:1/3;grid-row:4}.ref-page-title:empty{display:none}.ref-page-title h1{font-size:22px!important}}
