/* Registration desktop header V3 — actual nested template selector fix.
   Shared desktop shell remains the single source of truth for logo, login and links.
   All rules are scoped to /register and desktop >= 992px. */
@media screen and (min-width:992px) {
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell {
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    position:fixed !important;
    top:0 !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    width:var(--desk-shell-width, min(1152px,calc(100vw - 382px))) !important;
    max-width:none !important;
    height:144px !important;
    min-height:144px !important;
    box-sizing:border-box !important;
    align-items:center !important;
    padding:8px 16px 8px 20px !important;
    z-index:999950 !important;
    border:0 !important;
    border-radius:0 !important;
    background:linear-gradient(112deg,#073cae 0%,#0c3093 40%,#0d1a40 75%,#0d1a40 100%) !important;
    box-shadow:none !important;
    color:#fff !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > .dh-desktop-head-spacer {
    display:block !important;
    visibility:visible !important;
    width:100% !important;
    height:144px !important;
    min-height:144px !important;
    padding:0 !important;
    margin:0 !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-head-inner {
    display:grid !important;
    width:100% !important;
    height:100% !important;
    grid-template-columns:minmax(270px, 34%) minmax(0, 1fr) !important;
    gap:18px !important;
    align-items:center !important;
    justify-content:stretch !important;
    min-width:0 !important;
    margin:0 !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-logo {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:center !important;
    width:100% !important;
    max-width:100% !important;
    height:125px !important;
    min-height:0 !important;
    overflow:visible !important;
    margin:0 !important;
    padding:0 8px !important;
    text-decoration:none !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-logo img {
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    max-height:122px !important;
    min-width:0 !important;
    object-fit:contain !important;
    object-position:center !important;
    opacity:1 !important;
    visibility:visible !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-head-actions {
    display:flex !important;
    align-items:stretch !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-self:center !important;
    width:100% !important;
    min-width:0 !important;
    gap:14px !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-login {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 96px !important;
    align-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
    min-height:49px !important;
    height:49px !important;
    gap:15px !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-login-field {
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    min-width:0 !important;
    width:100% !important;
    height:49px !important;
    padding:0 14px !important;
    margin:0 !important;
    border:1px solid #e0e8f4 !important;
    border-radius:9px !important;
    background:#f0f5ff !important;
    box-shadow:none !important;
    color:#808999 !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-login-field i {
    color:#828a95 !important;
    font-size:17px !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-login-field input {
    display:block !important;
    flex:1 1 auto !important;
    width:100% !important;
    min-width:0 !important;
    height:100% !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#14223d !important;
    font-size:14px !important;
    font-weight:500 !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-login-field input::placeholder {
    color:#657a96 !important;
    opacity:1 !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-login button {
    display:block !important;
    width:96px !important;
    height:49px !important;
    min-height:49px !important;
    margin:0 !important;
    padding:0 10px !important;
    border:0 !important;
    border-radius:9px !important;
    background:#a2ff00 !important;
    color:#071329 !important;
    font-size:14px !important;
    font-weight:800 !important;
    cursor:pointer !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-head-nav {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) minmax(100px, 1fr) !important;
    align-items:center !important;
    gap:12px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:55px !important;
    margin:0 !important;
    padding:8px !important;
    border:0 !important;
    border-radius:11px !important;
    background:#0a1943 !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-head-nav > a {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    min-width:0 !important;
    height:39px !important;
    min-height:39px !important;
    margin:0 !important;
    padding:0 8px !important;
    border:2px solid #6bad00 !important;
    border-radius:8px !important;
    background:linear-gradient(180deg,#c9ff54 0%,#a1ff00 55%,#78d600 100%) !important;
    box-shadow:inset 0 1px 4px rgba(255,255,255,.55) !important;
    color:#08152a !important;
    font-size:12px !important;
    font-weight:800 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-more {
    display:block !important;
    position:relative !important;
    min-width:0 !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-more > summary {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:39px !important;
    gap:8px !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:800 !important;
    cursor:pointer !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-more-list {z-index:999999 !important;}

  /* On /register desktop, the actual shared desktop header is the ONLY visible masthead. */
  html body.dhm-register-desktop #wrapper .dhm-mobile-top,
  html body.dhm-register-desktop #wrapper .dhm-mobile-brand,
  html body.dhm-register-desktop #wrapper .dhm-mobile-news,
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.d-block.d-sm-none,
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.d-none.d-sm-block,
  html body.dhm-register-desktop #wrapper .mcp-top-header > section.site-header,
  html body.dhm-register-desktop #wrapper .dhm-top-nav-holder,
  html body.dhm-register-desktop #wrapper .dhm-global-mobile-footer,
  html body.dhm-register-desktop #wrapper .dhm-mobile-bottom,
  html body.dhm-register-desktop #wrapper .dhm-mobile-bottom-nav {
    display:none !important;
  }
  html body.dhm-register-desktop #wrapper section.dhm-r10 .dhm-r10-login {display:none !important;}
  html body.dhm-register-desktop #wrapper > section.dhm-r10 {margin-top:0 !important;}
}
@media screen and (min-width:992px) and (max-width:1519.98px) {
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-head-inner {
    grid-template-columns:minmax(190px,30%) minmax(0,1fr) !important;
    gap:12px !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-head-nav {gap:6px !important;}
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-head-nav > a {font-size:11px !important;}
}
@media screen and (min-width:992px) and (max-width:1199.98px) {
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell {
    width:calc(100vw - 28px) !important;
    padding:8px 14px !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-head-inner {
    grid-template-columns:minmax(180px,26%) minmax(0,1fr) !important;
    gap:10px !important;
  }
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-login {gap:8px !important;}
  html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell .dh-desktop-head-nav {gap:5px !important;}
}

/* V3: the shared desktop shell is nested inside span.mcp-top-header in top-menu.php.
   V2 incorrectly used a direct #wrapper child combinator; no V2 layout rules matched. */
@media screen and (min-width:992px) {
 html body.dhm-register-desktop #wrapper > .mcp-top-header {
   display:contents!important;
   visibility:visible!important;
   opacity:1!important;
 }
 /* The existing guest mobile nav class is dhm-bottom-nav, not dhm-mobile-bottom. */
 html body.dhm-register-desktop #wrapper nav.dhm-bottom-nav,
 html body.dhm-register-desktop #wrapper nav.dhm-bottom-nav.d-block,
 html body.dhm-register-desktop #wrapper .dhm-mobile-header,
 html body.dhm-register-desktop #wrapper .dhm-mobile-masthead,
 html body.dhm-register-desktop #wrapper .dhm-mobile-page-header,
 html body.dhm-register-desktop #wrapper .dhm-register-topbar {
   display:none!important;
 }
 /* Ensure an ordinary desktop header remains above any fixed mobile decorations. */
 html body.dhm-register-desktop #wrapper .mcp-top-header > header.dh-desktop-shell {
   display:flex!important;
   z-index:999950!important;
 }
 html body.dhm-register-desktop #wrapper .mcp-top-header > .dh-desktop-head-spacer {
   display:block!important;
   height:144px!important;
   min-height:144px!important;
 }
}
