/* v90: desktop hero/header alignment + Deploy as 4th network tab */
:root{--v90-navy:#06142f;--v90-ink:#071226;}

/* Top nav: logo left, four network tabs centered-left, Find Your Path + hamburger far right. */
@media (min-width:901px){
  .site-header{
    display:grid!important;
    grid-template-columns:220px minmax(620px,1fr) auto!important;
    align-items:center!important;
    gap:22px!important;
    min-height:82px!important;
    height:82px!important;
    padding:0 28px!important;
    background:rgba(255,255,255,.98)!important;
    border-bottom:1px solid rgba(15,23,42,.08)!important;
    box-shadow:0 1px 0 rgba(15,23,42,.04)!important;
    overflow:hidden!important;
  }
  .site-header .brand{
    grid-column:1!important;
    justify-self:start!important;
    width:168px!important;
    max-width:168px!important;
  }
  .site-header .header-view-switch{
    grid-column:2!important;
    justify-self:center!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:clamp(18px,2.2vw,34px)!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    flex-wrap:nowrap!important;
    margin:0!important;
  }
  .header-view-switch .view-tab,
  .header-view-switch .deploy-nav-tab{
    position:relative!important;
    min-width:118px!important;
    height:74px!important;
    padding:8px 6px 15px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    color:#071226!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    text-decoration:none!important;
    cursor:pointer!important;
    white-space:nowrap!important;
  }
  .header-view-switch .view-tab::after{
    content:''!important;
    position:absolute!important;
    left:50%!important;
    bottom:1px!important;
    transform:translateX(-50%)!important;
    width:0!important;
    height:3px!important;
    border-radius:999px!important;
    background:#06142f!important;
    transition:width .2s ease!important;
  }
  .header-view-switch .view-tab.active::after,
  .header-view-switch .view-tab[aria-pressed="true"]::after{width:88px!important;}
  .header-view-switch .deploy-nav-tab::after{content:none!important;}
  .header-view-switch .view-icon,
  .header-view-switch .deploy-nav-tab .view-icon{
    font-size:27px!important;
    line-height:1!important;
    display:block!important;
  }
  .header-view-switch .view-tab b,
  .header-view-switch .deploy-nav-tab b{
    font-size:14px!important;
    line-height:1.08!important;
    letter-spacing:-.025em!important;
    color:#071226!important;
    font-weight:820!important;
    white-space:nowrap!important;
  }
  .header-view-switch .view-tab small,
  .header-view-switch .deploy-nav-tab small{display:none!important;}
  .site-header .top-actions{
    grid-column:3!important;
    justify-self:end!important;
    margin-left:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:12px!important;
    min-width:max-content!important;
  }
  .site-header .get-involved-trigger{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:48px!important;
    min-width:154px!important;
    padding:0 22px!important;
    border-radius:999px!important;
    background:#06142f!important;
    color:#fff!important;
    border:0!important;
    box-shadow:0 12px 28px rgba(6,20,47,.16)!important;
    font-size:14px!important;
    font-weight:780!important;
    letter-spacing:-.01em!important;
  }
  .site-header .round-menu{
    display:grid!important;
    place-items:center!important;
    position:relative!important;
    right:0!important;
    left:auto!important;
    transform:none!important;
    width:48px!important;
    height:48px!important;
    border-radius:999px!important;
    border:1px solid rgba(15,23,42,.10)!important;
    background:#fff!important;
    color:#06142f!important;
    box-shadow:0 8px 20px rgba(15,23,42,.07)!important;
  }
  .top-actions .deploy-route-trigger{display:none!important;}
}

/* Homepage hero: left-align title and search together, cleaner scale. */
@media (min-width:901px){
  body.single-shell-marketplace .hero-home,
  body.single-shell-marketplace.v64-home .hero-home.v64-home-hero,
  body.single-shell-marketplace .hero-home.v64-home-hero{
    min-height:520px!important;
    background-image:url('/assets/hero/home-hero-world.webp')!important;
    background-size:cover!important;
    background-position:center center!important;
    padding:0!important;
    border-bottom:0!important;
    overflow:visible!important;
  }
  body.single-shell-marketplace .hero-overlay,
  body.single-shell-marketplace.v64-home .hero-home.v64-home-hero .hero-overlay{
    display:block!important;
    background:linear-gradient(90deg,rgba(3,9,23,.64) 0%,rgba(3,9,23,.48) 44%,rgba(3,9,23,.24) 74%,rgba(3,9,23,.14) 100%),linear-gradient(180deg,rgba(3,9,23,.08) 0%,rgba(3,9,23,.34) 100%)!important;
  }
  body.single-shell-marketplace .hero-inner,
  body.single-shell-marketplace.v64-home .hero-home.v64-home-hero .hero-inner{
    width:min(1260px,calc(100vw - 188px))!important;
    max-width:1260px!important;
    min-height:520px!important;
    margin:0 auto!important;
    padding:72px 0 54px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:22px!important;
    overflow:visible!important;
  }
  body.single-shell-marketplace .hero-copy,
  body.v64-home .hero-home.v64-home-hero .hero-copy,
  body.single-shell-marketplace.v64-home .hero-home.v64-home-hero .hero-copy{
    display:block!important;
    width:100%!important;
    max-width:1180px!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
  }
  body.single-shell-marketplace .hero-copy h1,
  body.v64-home .hero-home.v64-home-hero .hero-copy h1,
  body.single-shell-marketplace.v64-home .hero-home.v64-home-hero .hero-copy h1{
    max-width:1180px!important;
    margin:0!important;
    text-align:left!important;
    font-size:clamp(38px,3.18vw,56px)!important;
    line-height:1.13!important;
    letter-spacing:-.032em!important;
    font-weight:480!important;
    text-wrap:balance!important;
    color:#fff!important;
    text-shadow:0 7px 24px rgba(0,0,0,.30)!important;
  }
  body.single-shell-marketplace .home-search-shell,
  body.single-shell-marketplace .search-shell,
  body.single-shell-marketplace.v64-home .hero-home.v64-home-hero .home-search-shell,
  body.single-shell-marketplace.v64-home .hero-home.v64-home-hero .search-shell{
    width:min(1160px,100%)!important;
    max-width:1160px!important;
    margin:0!important;
    align-self:flex-start!important;
  }
  body.single-shell-marketplace .home-search-shell .universal-search,
  body.single-shell-marketplace .search-shell .universal-search{
    width:100%!important;
    max-width:1160px!important;
    height:66px!important;
    margin:0!important;
    border-radius:999px!important;
    border:1px solid rgba(255,255,255,.36)!important;
    background:#fff!important;
    box-shadow:0 18px 46px rgba(0,0,0,.20)!important;
  }
}

@media (max-width:1200px) and (min-width:901px){
  .site-header{grid-template-columns:180px minmax(560px,1fr) auto!important;padding:0 22px!important;gap:14px!important;}
  .site-header .brand{width:148px!important;max-width:148px!important;}
  .site-header .header-view-switch{gap:14px!important;}
  .header-view-switch .view-tab,.header-view-switch .deploy-nav-tab{min-width:104px!important;}
  .header-view-switch .view-tab b,.header-view-switch .deploy-nav-tab b{font-size:13px!important;}
  .site-header .get-involved-trigger{min-width:138px!important;padding:0 16px!important;}
  body.single-shell-marketplace .hero-inner,
  body.single-shell-marketplace.v64-home .hero-home.v64-home-hero .hero-inner{width:min(1120px,calc(100vw - 96px))!important;}
}

/* Mobile: keep the existing mobile header/bottom nav behavior and keep hero typography calm. */
@media (max-width:900px){
  .site-header .header-view-switch .deploy-nav-tab{display:none!important;}
  .top-actions .deploy-route-trigger{display:none!important;}
  body.single-shell-marketplace .hero-home.v64-home-hero .hero-copy h1,
  body.v64-home .hero-home.v64-home-hero .hero-copy h1,
  body.single-shell-marketplace.v64-home .hero-home.v64-home-hero .hero-copy h1{
    font-size:clamp(24px,6vw,29px)!important;
    line-height:1.2!important;
    letter-spacing:-.012em!important;
    font-weight:430!important;
    text-shadow:0 4px 16px rgba(0,0,0,.28)!important;
  }
}
