/* Shared ARQS header brand: official wreath crest + official silver metallic wordmark.
   Visual size: crest 44px desktop / 40px phone, wordmark 40px / 34px, so the main nav stays on one line at 1280 and 1440.
   Never the giant-Q gold 160h lockup. */
.arqs-site-brand{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  line-height:0 !important;
  max-height:44px !important;
}
.arqs-site-brand .arqs-brand-crest,
header .arqs-brand-crest,
nav .arqs-brand-crest,
a.brand .arqs-brand-crest,
a.brandlock .arqs-brand-crest{
  display:block !important;
  height:44px !important;
  width:auto !important;
  max-height:44px !important;
  max-width:none !important;
  aspect-ratio:41 / 48;
  object-fit:contain !important;
  filter:none !important;
}
.arqs-site-brand .arqs-brand-wordmark,
header .arqs-brand-wordmark,
nav .arqs-brand-wordmark,
a.brand .arqs-brand-wordmark,
a.brandlock .arqs-brand-wordmark{
  display:block !important;
  height:40px !important;
  width:auto !important;
  max-height:40px !important;
  max-width:none !important;
  aspect-ratio:1687 / 269;
  object-fit:contain !important;
  filter:none !important;
}
/* Combined leftover lockups, before JS splits them */
header a.brand > img.brand-wm:not(.arqs-brand-crest):not(.arqs-brand-wordmark),
header.hd a.brand > img:not(.arqs-brand-crest):not(.arqs-brand-wordmark),
nav a.brand > img.brand-wm:not(.arqs-brand-crest):not(.arqs-brand-wordmark){
  height:44px !important;
  width:auto !important;
  max-height:44px !important;
  object-fit:contain !important;
}
/* Kill the giant-Q 160h shimmer mask that overdrew the official letters and overflowed on phone */
header.hd a.brand::after,
header a.brand::after{
  content:none !important;
  display:none !important;
  background:none !important;
  animation:none !important;
  -webkit-mask-image:none !important;
  mask-image:none !important;
}
@media (max-width:700px){
  .arqs-site-brand{gap:8px !important;max-height:40px !important}
  .arqs-site-brand .arqs-brand-crest,
  header .arqs-brand-crest,
  nav .arqs-brand-crest,
  a.brand .arqs-brand-crest,
  a.brandlock .arqs-brand-crest{
    height:40px !important;
    max-height:40px !important;
  }
  .arqs-site-brand .arqs-brand-wordmark,
  header .arqs-brand-wordmark,
  nav .arqs-brand-wordmark,
  a.brand .arqs-brand-wordmark,
  a.brandlock .arqs-brand-wordmark{
    height:34px !important;
    max-height:34px !important;
  }
  header a.brand > img.brand-wm:not(.arqs-brand-crest):not(.arqs-brand-wordmark),
  header.hd a.brand > img:not(.arqs-brand-crest):not(.arqs-brand-wordmark),
  nav a.brand > img.brand-wm:not(.arqs-brand-crest):not(.arqs-brand-wordmark){
    height:40px !important;
    max-height:40px !important;
  }
}

/* Keep the main site nav on one line at laptop and desktop widths. */
@media (min-width:1280px){
  header.hd .w,
  header.hd nav,
  header.hd{
    flex-wrap:nowrap !important;
  }
}

/* About and other local-nav bars: official lockup on the left, page links to the right. */
nav.local-nav .wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:20px !important;
  flex-wrap:nowrap !important;
}
nav.local-nav .wrap > a.brand{
  margin-right:auto;
  flex:0 0 auto;
}
@media (max-width:700px){
  nav.local-nav .wrap{flex-wrap:wrap !important;gap:10px !important}
  nav.local-nav .wrap > a.brand{margin-right:0}
}

/* Shop retail header: official crest + silver wordmark, never the 104x114 woman shield. */
body.retail-store:not(.retail--family):not(.retail--kids):not(.retail--tan) .retail-brand{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
}
body.retail-store:not(.retail--family):not(.retail--kids):not(.retail--tan) .retail-brand img.arqs-brand-crest{
  width:auto !important;
  height:44px !important;
  max-height:44px !important;
}
body.retail-store:not(.retail--family):not(.retail--kids):not(.retail--tan) .retail-brand img.arqs-brand-wordmark{
  width:auto !important;
  height:40px !important;
  max-height:40px !important;
}
@media (max-width:700px){
  body.retail-store:not(.retail--family):not(.retail--kids):not(.retail--tan) .retail-brand img.arqs-brand-crest{
    height:40px !important;
    max-height:40px !important;
  }
  body.retail-store:not(.retail--family):not(.retail--kids):not(.retail--tan) .retail-brand img.arqs-brand-wordmark{
    height:34px !important;
    max-height:34px !important;
  }
}

/* Phones: same crest/wordmark proportions, narrower lockup so the bar fits. */
@media (max-width:480px){
  .arqs-site-brand{gap:6px !important;max-height:35px !important}
  .arqs-site-brand .arqs-brand-crest,
  header .arqs-brand-crest,
  nav .arqs-brand-crest,
  a.brand .arqs-brand-crest,
  a.brandlock .arqs-brand-crest{
    height:35px !important;
    max-height:35px !important;
  }
  .arqs-site-brand .arqs-brand-wordmark,
  header .arqs-brand-wordmark,
  nav .arqs-brand-wordmark,
  a.brand .arqs-brand-wordmark,
  a.brandlock .arqs-brand-wordmark{
    height:30px !important;
    max-height:30px !important;
  }
  header a.brand > img.brand-wm:not(.arqs-brand-crest):not(.arqs-brand-wordmark),
  header.hd a.brand > img:not(.arqs-brand-crest):not(.arqs-brand-wordmark),
  nav a.brand > img.brand-wm:not(.arqs-brand-crest):not(.arqs-brand-wordmark){
    height:35px !important;
    max-height:35px !important;
  }
  body.retail-store:not(.retail--family):not(.retail--kids):not(.retail--tan) .retail-brand img.arqs-brand-crest{
    height:35px !important;
    max-height:35px !important;
  }
  body.retail-store:not(.retail--family):not(.retail--kids):not(.retail--tan) .retail-brand img.arqs-brand-wordmark{
    height:30px !important;
    max-height:30px !important;
  }
  /* Crest + wordmark + cart + Menu on one line. Sign in moves into the menu. */
  header.hd .w{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:8px !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  header.hd a.brand,
  header.hd .arqs-site-brand{
    flex:0 1 auto !important;
    min-width:0 !important;
  }
  header.hd .nx{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    flex:0 0 auto !important;
    gap:6px !important;
  }
  header.hd .nx a.signin,
  header.hd a.signin,
  header.hd .nx a:not(.ic):not(.cart){
    display:none !important;
  }
  header.hd .nx a.ic.cart,
  header.hd a.ic.cart{
    flex:0 0 auto !important;
    min-width:32px !important;
  }
  header.hd button.mt,
  header.hd .mt{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    padding:8px 12px !important;
  }
}

/* Shop department row: wrap on small screens so it cannot widen the page. */
@media (max-width:700px){
  body.retail-store:not(.retail--family):not(.retail--kids):not(.retail--tan) .retail-department-nav{
    max-width:100% !important;
    flex-wrap:wrap !important;
    overflow-x:hidden !important;
    justify-content:flex-start !important;
    row-gap:8px !important;
    box-sizing:border-box !important;
  }
}

/* Sticky, fixed, or scrolled shared header: solid dark so page content never reads through. */
header.hd.solid,
header.hd.arqs-header-opaque,
header.hd.open,
header.retail-header.arqs-header-opaque,
.retail-header.arqs-header-opaque{
  background:#07090d !important;
  background-image:none !important;
  backdrop-filter:blur(12px) saturate(1.1) !important;
  -webkit-backdrop-filter:blur(12px) saturate(1.1) !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 8px 28px rgba(0,0,0,.45) !important;
}


/* Injected shared site header on pages that did not already have header.hd */
header.hd[data-arqs-shared-header]{
  position:sticky;
  top:0;
  z-index:50;
  background:#07090d;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-sizing:border-box;
}
header.hd[data-arqs-shared-header] .w{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:22px;
  padding:8px 24px;
  min-height:72px;
  box-sizing:border-box;
}
header.hd[data-arqs-shared-header] nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:nowrap;
  flex:1;
  white-space:nowrap;
}
header.hd[data-arqs-shared-header] nav a{
  text-decoration:none;
  color:#f4efe4;
  font-weight:600;
  font-size:14px;
  letter-spacing:.02em;
}
header.hd[data-arqs-shared-header] nav a:hover,
header.hd[data-arqs-shared-header] nav a[aria-current]{
  color:#f2d38a;
}
header.hd[data-arqs-shared-header] .mt{
  display:none;
  margin-left:auto;
  background:none;
  border:1px solid #2a2f38;
  color:#f4efe4;
  border-radius:8px;
  padding:8px 12px;
  font:600 14px Inter,sans-serif;
  cursor:pointer;
  white-space:nowrap;
}
@media (max-width:1020px){
  header.hd[data-arqs-shared-header] nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#07090d;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    padding:14px 24px;
    border-bottom:1px solid #2a2f38;
    white-space:normal;
    flex-wrap:wrap;
  }
  header.hd[data-arqs-shared-header].open nav{display:flex}
  header.hd[data-arqs-shared-header] .mt{display:block}
}
@media (max-width:480px){
  header.hd[data-arqs-shared-header] .w{padding:8px 16px;gap:8px}
}

/* Menu-only copies of bar actions (Shop ARQS, Sign in) must not also show in the desktop nav. */
@media (min-width:1021px){
  header.hd nav a[data-arqs-menu-bar-action],
  header.hd nav a[data-arqs-menu-signin]{
    display:none !important;
  }
}
/* Academy apply-bar.js appends .apply-now to the first nav; keep it out of the shared ARQS header. */
header.hd .apply-now,
header.hd a.apply-now{
  display:none !important;
}


/* v5: full-bleed injected header, standard header nav, press scroller, Northline identity nav, replay clearance. */

/* Pages that constrain `header` (products, imaging) must still get a full-bleed ARQS bar. */
header.hd[data-arqs-shared-header]{
  max-width:none !important;
  width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

/* Page-level `nav a` pill styles (imaging) must not restyle the shared header nav. */
header.hd nav a,
header.hd[data-arqs-shared-header] nav a{
  border:0 !important;
  border-radius:0 !important;
  background:none !important;
  background-color:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  color:#f4efe4 !important;
  font-weight:600 !important;
  font-size:14px !important;
  letter-spacing:.02em !important;
  text-decoration:none !important;
}
header.hd nav a:hover,
header.hd nav a[aria-current],
header.hd[data-arqs-shared-header] nav a:hover,
header.hd[data-arqs-shared-header] nav a[aria-current]{
  color:#f2d38a !important;
  background:none !important;
  background-color:transparent !important;
  border:0 !important;
}
@media (max-width:1020px){
  header.hd[data-arqs-shared-header] nav a{
    padding:6px 0 !important;
  }
}

/* Press local subnav: wrap on phones so every label is fully visible, clear of the press mark. */
@media (max-width:700px){
  .pr-nav-in{
    min-width:0;
    flex-wrap:nowrap;
    align-items:flex-start;
    gap:10px;
  }
  .pr-nav-mark{flex:0 0 auto}
  .pr-nav-links{
    min-width:0;
    flex:1 1 0;
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    margin-left:0;
    overflow:visible;
    mask-image:none;
    -webkit-mask-image:none;
  }
}
/* Keep the press local bar under the sticky ARQS header when both stick. */
body:has(header.hd) .pr-nav{
  top:var(--arqs-shared-header-h, 72px);
  z-index:40;
}

/* Show the Northline identity nav (Courses / Programs / Admissions / Student Portal) under the ARQS header. */
html[data-northline-academic] body > nav.nav{
  display:block !important;
  position:relative;
  z-index:1;
}

/* Arrival "Replay arrival" (#arqs-arrival-replay, from site-arrival.js) must not cover the sticky apply bar. */
@media (max-width:800px){
  body:has(.apply-sticky) #arqs-arrival-replay{
    display:none !important;
  }
}
/* Sit above the Nexus launcher when both are fixed at the bottom-left (home and elsewhere). */
body:has(.arqs-nexus-launch) #arqs-arrival-replay{
  bottom:calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}


/* Keep first-viewport academy content clear of the sticky apply bar on phones. */
@media (max-width:800px){
  body:has(.apply-sticky){
    padding-bottom:var(--apply-sticky-h, calc(76px + env(safe-area-inset-bottom, 0px))) !important;
    scroll-padding-bottom:var(--apply-sticky-h, calc(76px + env(safe-area-inset-bottom, 0px)));
  }
  body:has(.apply-sticky) .aia-arrival-hero{
    padding-bottom:var(--apply-sticky-h, calc(76px + env(safe-area-inset-bottom, 0px))) !important;
  }
}
