/* Shared public header — exact homepage header styles (0.71.7).
   This is the single source of truth for the navigation header on all public pages.
   Conflicting legacy header rules in other stylesheets have been disabled.
*/
@font-face{font-family:"NBD Sans";src:url("fonts/roboto-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"NBD Sans";src:url("fonts/roboto-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"NBD Sans";src:url("fonts/roboto-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"NBD Sans";src:url("fonts/roboto-900.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap}

.nbd-site-header{
  --ink:#08152d;
  --muted:#526783;
  --blue:#0064ff;
  --line:#dce5f0;
  --pale:#f5f9ff;
  position:relative;
  z-index:20;
  background:#fff;
  border-bottom:1px solid #eaf0f7;
  color:var(--ink);
  font-family:"NBD Sans",Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.nbd-site-header *,.nbd-site-header *::before,.nbd-site-header *::after{box-sizing:border-box}
.nbd-site-header a{color:inherit;text-decoration:none}
.nbd-site-header button,.nbd-site-header summary{cursor:pointer;font:inherit}
.nbd-site-header [hidden]{display:none!important}
.nbd-site-header :is(a,button,summary,input):focus-visible{outline:3px solid #0057dc;outline-offset:5px}
.nbd-site-header img{max-width:100%;height:auto}

.nbd-site-inner{max-width:1672px;margin:auto;padding:0 3.25%}
.nbd-site-header>.nbd-site-inner{min-height:clamp(84px,6.58vw,110px);display:flex;align-items:center;justify-content:space-between;gap:32px}
.nbd-site-logo{flex:none;width:clamp(242px,19.2vw,322px)}
.nbd-site-logo img{width:100%;display:block}
#nbd-site-navigation{display:flex;align-items:center;gap:clamp(28px,8vw,135px)}
.nbd-site-main-menu{display:flex;align-items:center;gap:clamp(20px,2.35vw,40px);padding:0;margin:0;list-style:none;white-space:nowrap;font-size:clamp(15px,1.08vw,18px)}
.nbd-site-header details{position:relative}
.nbd-site-header summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px}
.nbd-site-header summary::-webkit-details-marker{display:none}
.nbd-site-menu-group summary::after{content:'';width:8px;height:8px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg);margin-top:-5px}
.nbd-site-dropdown,.nbd-account-dropdown{position:absolute;top:calc(100% + 10px);left:-18px;min-width:215px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #132f5012}
.nbd-site-header details:not([open])>div{display:none}
.nbd-site-dropdown a,.nbd-account-dropdown a{display:block;padding:11px;border-radius:5px;font-size:15px}
.nbd-site-dropdown a:hover,.nbd-account-dropdown a:hover{background:var(--pale);color:#005adf}
.nbd-site-accounts{display:flex;align-items:center;gap:32px;white-space:nowrap;font-size:18px}
.nbd-site-primary-account{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:#fff!important;padding:15px 30px;border-radius:13px;font-size:17px;font-weight:600;min-height:54px}
.nbd-site-primary-account:hover{background:#0055df}
.nbd-site-toggle{background:white;border:1px solid var(--line);border-radius:8px;width:46px;height:46px;padding:12px;color:var(--ink)}
.nbd-menu-lines{display:grid;gap:5px}.nbd-menu-lines i{display:block;height:2px;background:currentColor}

/* Responsive — identical to homepage */
@media(max-width:1400px){
  #nbd-site-navigation{gap:28px}
  .nbd-site-accounts{gap:20px;font-size:16px}
  .nbd-site-primary-account{padding:14px 22px;font-size:15px}
  .nbd-site-header>.nbd-site-inner{gap:20px}
  .nbd-site-main-menu{gap:22px}
}
@media(max-width:1120px){
  .nbd-site-header>.nbd-site-inner{flex-wrap:wrap;padding:18px 5%;gap:16px;min-height:84px}
  .nbd-site-logo{width:260px;max-width:calc(100% - 66px)}
  .nbd-site-main-menu{flex-direction:column;align-items:stretch;gap:5px;font-size:17px}
  .nbd-site-main-menu>li>a{display:block;padding:12px 0}
  .nbd-site-header summary{justify-content:space-between;padding:8px 0}
  .nbd-site-dropdown,.nbd-account-dropdown{position:static;box-shadow:none;margin:4px 0 8px;border-radius:8px}
  .nbd-site-accounts{flex-wrap:wrap;gap:20px}
  .nbd-site-accounts>details{flex:1}
  .nbd-site-primary-account{font-size:16px}
}
@media(max-width:600px){
  .nbd-site-header>.nbd-site-inner{padding:14px 5%;min-height:76px}
  .nbd-site-logo{width:230px}
}

/* Ensure toggle visibility matches homepage behaviour */
@media(min-width:1121px){
  .nbd-site-toggle{display:none!important}
}
@media(max-width:1120px){
  .nbd-site-toggle:not([hidden]){display:block}
  #nbd-site-navigation[hidden]{display:none!important}
}

/* Header dropdown contrast fix — always readable on white */
.nbd-site-header .nbd-site-dropdown,
.nbd-site-header .nbd-account-dropdown {
  background: #fff !important;
  border: 1px solid #dce5f0 !important;
  color: #08152d !important;
  box-shadow: 0 8px 24px rgba(19,47,80,.08) !important;
}
.nbd-site-header .nbd-site-dropdown a,
.nbd-site-header .nbd-account-dropdown a {
  color: #08152d !important;
  background: transparent !important;
  font-weight: 500 !important;
}
.nbd-site-header .nbd-site-dropdown a:hover,
.nbd-site-header .nbd-account-dropdown a:hover,
.nbd-site-header .nbd-site-dropdown a[aria-current="page"],
.nbd-site-header .nbd-account-dropdown a[aria-current="page"] {
  background: #f5f9ff !important;
  color: #005adf !important;
}
.nbd-site-header summary {
  color: #08152d !important;
}
.nbd-site-header .nbd-site-main-menu > li > a,
.nbd-site-header .nbd-site-main-menu summary {
  color: #08152d !important;
}
.nbd-site-header .nbd-site-primary-account {
  background: #0064ff !important;
  color: #fff !important;
}

/* Guest header: Domain Rescue link */
.nbd-site-header .nbd-site-signin {
  color: #08152d !important;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nbd-site-header .nbd-site-signin:hover {
  color: #005adf !important;
}

/* Current page in top nav must stay readable */
.nbd-site-header .nbd-site-main-menu a[aria-current="page"],
.nbd-site-header .nbd-site-main-menu .current-menu-item > a,
.nbd-site-header .nbd-site-main-menu li.current-menu-item > a {
  color: #005adf !important;
  font-weight: 600 !important;
  background: transparent !important;
}
.nbd-site-header .nbd-site-main-menu a[aria-current="page"]:hover,
.nbd-site-header .nbd-site-main-menu .current-menu-item > a:hover {
  color: #0047c2 !important;
}
