/* Shared masthead and primary navigation for Nexus Counselling Services. */
#nexus-site-header {
  --nh-ink: #14394c;
  --nh-dark: #103144;
  --nh-muted: #42595e;
  --nh-paper: #fbf9f3;
  --nh-white: #fffefa;
  --nh-sage: #c3dec8;
  --nh-line: #c9d2c9;
  --nh-tint: #e9eee5;
  --nh-serif: "Libre Baskerville", Georgia, serif;
  --nh-sans: "Open Sans", Arial, sans-serif;
  display: block;
  position: relative;
  z-index: 30;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--nh-ink);
  background: var(--nh-paper);
  border: 0;
  border-bottom: 1px solid var(--nh-line);
  font: 400 17px/1.45 var(--nh-sans);
  text-align: left;
}
#nexus-site-header *, #nexus-site-header *::before, #nexus-site-header *::after {box-sizing: border-box;}
#nexus-site-header .nh-wrap {
  width: min(100%,1280px);
  margin-inline: auto;
  padding-inline: clamp(18px, 4.2vw, 68px);
}
#nexus-site-header :is(a, summary, button) {
  color: inherit;
  font: inherit;
  text-transform: none;
  text-decoration: none;
  letter-spacing: normal;
}
#nexus-site-header :is(a,summary,button):focus-visible {
  outline: 3px solid #366aac;
  outline-offset: 3px;
  border-radius: 3px;
}
#nexus-site-header .nh-utility {
  color: #f7f7ed;
  background: var(--nh-dark);
  font: 400 17px/1.25 var(--nh-sans);
}
#nexus-site-header .nh-utility .nh-wrap, #nexus-site-header .nh-client-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(18px, 2.1vw, 32px);
}
#nexus-site-header .nh-utility a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}
#nexus-site-header .nh-utility a:hover {color: var(--nh-sage); text-decoration: underline; text-underline-offset: .22em;}
#nexus-site-header .nh-utility a:focus-visible {outline-color: #ffe1ae;}
#nexus-site-header .nh-client-links {margin-left: auto;}
#nexus-site-header .nh-location::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: -4px 2px 0 1px;
  border: 2px solid var(--nh-sage);
  border-radius: 50% 50% 50% 1px;
  transform: rotate(-45deg);
}
#nexus-site-header .nh-main {
  display: grid;
  grid-template-areas: "brand links book";
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.1vw, 34px);
  padding-block: 19px;
}
#nexus-site-header .nh-home {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  flex-flow: column;
  align-items: flex-start;
  align-self: center;
  gap: 4px;
}
#nexus-site-header .nh-brand {
  color: var(--nh-ink);
  font: 400 clamp(40px,3.8vw,52px)/1 var(--nh-serif);
  letter-spacing: -.072em;
}
#nexus-site-header .nh-sub {
  color: var(--nh-muted);
  font: 600 16px/1.3 var(--nh-sans);
  letter-spacing: .02em;
}
#nexus-site-header .nh-book {
  grid-area: book;
  justify-self: end;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 9px 18px;
  border: 1px solid var(--nh-ink);
  border-radius: 4px;
  background: var(--nh-ink);
  color: var(--nh-paper);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease;
}
#nexus-site-header .nh-book::after, #nexus-site-header a[data-portal-action]::after {
  content: "↗";
  display: inline-block;
  position: static;
  margin: 0;
  line-height: 1;
  font-family: Arial,sans-serif;
  color: currentColor;
}
#nexus-site-header .nh-book::after {font-size: 19px; color: var(--nh-sage);}
#nexus-site-header a[data-portal-action]::after {font-size: 15px; opacity: .82;}
#nexus-site-header .nh-book:hover {color: white; background: #244f59; border-color: #244f59;}
#nexus-site-header .nh-book-short, #nexus-site-header .nh-toggle, #nexus-site-header .nh-compact-only {display: none;}
#nexus-site-header [data-nh-nav] {
  grid-area: links;
  justify-self: end;
  display: block;
  position: static;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
#nexus-site-header ul {margin: 0; padding: 0; list-style: none;}
#nexus-site-header li {margin: 0; padding: 0;}
#nexus-site-header .nh-list {display: flex; align-items: center; gap: clamp(10px,1.25vw,20px);}
#nexus-site-header .nh-list > li {min-width: 0;}
#nexus-site-header .nh-list > li > a, #nexus-site-header .nh-list summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 5px 1px;
  color: var(--nh-ink);
  font: 600 17px/1.35 var(--nh-sans);
  white-space: nowrap;
  cursor: pointer;
}
#nexus-site-header .nh-list details {position: relative;}
#nexus-site-header summary {list-style: none;}
#nexus-site-header summary::-webkit-details-marker {display: none;}
#nexus-site-header .nh-list summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}
#nexus-site-header .nh-list details[open] > summary::after {transform: translateY(3px) rotate(225deg);}
#nexus-site-header :is(.nh-list > li > a, .nh-list summary):hover,
#nexus-site-header .nh-list details[open] > summary,
#nexus-site-header .nh-current > summary, #nexus-site-header .nh-list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #58786b;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}
#nexus-site-header .nh-drop {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 2;
  width: max-content;
  min-width: 230px;
  max-width: 320px;
  padding: 8px;
  margin: 0;
  border: 1px solid var(--nh-line);
  border-top: 3px solid #769180;
  border-radius: 0 0 6px 6px;
  background: var(--nh-white);
  box-shadow: 0 14px 28px rgb(21 54 64 / .14);
}
#nexus-site-header .nh-drop a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 3px;
  font: 400 17px/1.4 var(--nh-sans);
  color: var(--nh-ink);
}
#nexus-site-header .nh-drop a:hover, #nexus-site-header .nh-drop a:focus-visible {background: var(--nh-tint);}
.nh-skip:not(:focus), .nexus-skip-link:not(:focus) {position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden;}
.nh-skip:focus, .nexus-skip-link:focus {
  position: fixed;
  top: 9px;
  left: 12px;
  z-index: 99999;
  padding: 12px 18px;
  background: #fffef7;
  color: #14394c;
  outline: 3px solid #366aac;
  border-radius: 4px;
  font: 600 17px/1.4 "Open Sans",Arial,sans-serif;
}
@media (min-width: 1100px) and (max-width: 1199px) {
  #nexus-site-header .nh-wrap {padding-inline: 28px;}
  #nexus-site-header .nh-main {column-gap: 17px;}
  #nexus-site-header .nh-list {gap: 12px;}
  #nexus-site-header .nh-book {padding-inline: 14px; gap: 10px;}
}
@media (max-width: 1099px) {
  #nexus-site-header .nh-utility {display: none;}
  #nexus-site-header .nh-main {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand book toggle" "links links links";
    gap: 0 14px;
    padding-block: 13px;
  }
  #nexus-site-header .nh-brand {font-size: 44px;}
  #nexus-site-header[data-nh-ready] .nh-toggle {
    display: inline-flex;
    grid-area: toggle;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    min-width: 48px;
    padding: 7px 10px;
    color: var(--nh-ink);
    border: 1px solid #afbeb6;
    border-radius: 4px;
    background: transparent;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
  }
  #nexus-site-header .nh-toggle:hover, #nexus-site-header[data-nh-open] .nh-toggle {background: var(--nh-tint);}
  #nexus-site-header .nh-bars {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }
  #nexus-site-header[data-nh-open] .nh-bars {
    width: 14px; height: 14px; border: 0;
  }
  #nexus-site-header[data-nh-open] .nh-bars::before, #nexus-site-header[data-nh-open] .nh-bars::after {
    position: absolute;
    top: 6px;
    left: 0;
    content: "";
    width: 15px;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
  }
  #nexus-site-header[data-nh-open] .nh-bars::after {transform: rotate(-45deg);}
  #nexus-site-header [data-nh-nav] {
    justify-self: stretch;
    margin-top: 16px;
    border-top: 1px solid var(--nh-line);
  }
  #nexus-site-header[data-nh-ready]:not([data-nh-open]) [data-nh-nav] {display: none;}
  #nexus-site-header .nh-list {display: block;}
  #nexus-site-header .nh-list > li {border-bottom: 1px solid var(--nh-line);}
  #nexus-site-header .nh-list > li > a, #nexus-site-header .nh-list summary {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 51px;
    padding: 9px 4px;
    font-size: 18px;
  }
  #nexus-site-header .nh-list summary::after {margin-right: 4px;}
  #nexus-site-header .nh-drop {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0 0 10px 5px;
    padding: 2px 0 2px 9px;
    border: 0;
    border-left: 2px solid #91a898;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #nexus-site-header .nh-compact-only {display: list-item;}
  #nexus-site-header .nh-drop a {min-height: 46px; padding-inline: 10px; overflow-wrap: anywhere;}
}
@media (max-width: 580px) {
  #nexus-site-header .nh-main {column-gap: 9px;}
  #nexus-site-header .nh-book-long {display: none;}
  #nexus-site-header .nh-book-short {display: inline;}
  #nexus-site-header .nh-sub {font-size: 14px;}
  #nexus-site-header .nh-book {padding-inline: 12px; gap: 0;}
  #nexus-site-header .nh-book::after {display: none;}
}
@media (max-width: 360px) {
  #nexus-site-header .nh-wrap {padding-inline: 12px;}
  #nexus-site-header .nh-main {column-gap: 7px;}
  #nexus-site-header .nh-brand {font-size: 37px;}
  #nexus-site-header .nh-sub {font-size: 13px;}
  #nexus-site-header .nh-book {padding-inline: 10px;}
  #nexus-site-header .nh-sub {letter-spacing: 0;}
  #nexus-site-header[data-nh-ready] .nh-toggle {padding-inline: 6px; gap: 5px;}
}
@media (prefers-reduced-motion: reduce) {
  #nexus-site-header *, #nexus-site-header *::before, #nexus-site-header *::after {transition: none; animation: none;}
}
