/* Shared masthead and colophon. The menu uses native Details and Navigation blocks. */
.ng-header {
  z-index: 25;
  background: var(--wp--preset--color--ink, #102d3e);
  color: var(--wp--preset--color--paper, #fcfaf1);
  border-bottom: 3px solid #bc9156;
}
.ng-masthead, .ng-colophon {
  box-sizing: border-box;
  width: min(1160px, 90%);
  margin: 0 auto;
}
.ng-masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 83px;
  gap: 16px;
  padding-block: 8px;
  color: inherit;
}
.ng-masthead :is(p, figure, details, nav, ul),
.ng-masthead .wp-block-group,
.ng-colophon p { margin-block: 0; }
.ng-masthead-brand, .ng-masthead-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ng-masthead-brand { position: relative; }
.ng-masthead-wordmark { display: grid; align-content: center; gap: 4px; }
.ng-masthead-wordmark .wp-block-site-title {
  line-height: 1;
  font-size: clamp(1.28rem, 2.5vw, 1.57rem);
  font-weight: 850;
  letter-spacing: -.065em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ng-masthead-wordmark a, .ng-colophon a { text-decoration: none; }
.ng-masthead-wordmark a::after { content: ''; position: absolute; inset: 0; }
.ng-masthead .ng-masthead-tagline {
  color: #d2e2d9;
  font-size: .57rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ng-masthead .ng-masthead-seal {
  position: relative;
  width: 62px;
  height: 62px;
  flex: none;
}
.ng-masthead-seal img { width: 100%; height: 100%; object-fit: contain; }
/* Isolate the original airplane from the provisional artwork for this small badge.
   A replacement logo in Settings is displayed whole. */
.ng-masthead-seal:has(img[src*="/nextgate-web-public/assets/logo-nextgate-provisional.jpeg"]) {
  box-sizing: border-box;
  border: 2px solid #087b7d;
  border-radius: 50%;
  background: #faf4df;
  outline: 1px solid #087b7d;
  outline-offset: -5px;
  overflow: hidden;
}
.ng-masthead .ng-masthead-seal img[src*="/nextgate-web-public/assets/logo-nextgate-provisional.jpeg"] {
  position: absolute;
  width: 316%;
  height: auto;
  max-width: none;
  left: -121%;
  top: -36%;
  clip-path: inset(19.3% 30.8% 66.2% 38%);
  mix-blend-mode: multiply;
}
.ng-masthead-tools { gap: 20px; flex: none; }
.ng-masthead .ng-account-link a, .ng-masthead .ng-menu-fold > summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  color: inherit;
  font: 650 .86rem/1.2 var(--wp--preset--font-family--sans, Arial, sans-serif);
  text-decoration: none;
  white-space: nowrap;
}
.ng-account-link > a { padding: 4px; }
.ng-account-link > a::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7.8' r='3.4'/%3E%3Cpath d='M4.6 20c.7-4.1 3.6-6.1 7.4-6.1s6.7 2 7.4 6.1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ng-account-link a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ng-menu-fold { position: relative; }
.ng-masthead .ng-menu-fold > summary {
  gap: 10px;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 24px;
  cursor: pointer;
  list-style: none;
  color: var(--wp--preset--color--ink, #102d3e);
  background: var(--wp--preset--color--paper, #fcfaf1);
  border-color: transparent;
}
.ng-menu-fold > summary::-webkit-details-marker { display: none; }
.ng-menu-fold > summary::before {
  content: '';
  display: block;
  width: 15px;
  height: 6px;
  border-block: 1.5px solid currentColor;
}
.ng-masthead .ng-menu-fold[open] > summary,
.ng-masthead .ng-menu-fold > summary:hover {
  background: #c9e5e0;
  color: var(--wp--preset--color--ink, #102d3e);
  border-color: #c9e5e0;
}
.ng-menu-fold[open] > summary::before {
  height: 15px;
  border: 0;
  background: linear-gradient(45deg, transparent 46%, currentColor 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, currentColor 46% 54%, transparent 54%);
}
.ng-menu-fold .ng-menu-panel {
  box-sizing: border-box;
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 11px);
  z-index: 4;
  width: min(258px, calc(100vw - 40px));
  padding: 11px 19px 12px;
  border: 1px solid #26484a52;
  border-top: 3px solid var(--wp--preset--color--teal, #007e87);
  border-radius: 8px;
  background: var(--wp--preset--color--paper, #fcfaf1);
  color: var(--wp--preset--color--ink, #102d3e);
  box-shadow: 0 12px 36px #0b293422;
}
.ng-menu-panel .wp-block-navigation__container {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 0;
  padding-inline-start: 0;
  list-style: none;
}
.ng-menu-links .wp-block-navigation-item { width: 100%; }
.ng-menu-panel .wp-block-navigation-item > a, .ng-menu-panel .ng-menu-social {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 4px 3px;
  font: 650 .94rem/1.4 var(--wp--preset--font-family--sans, Arial, sans-serif);
  text-decoration: none;
}
.ng-menu-panel .wp-block-navigation-item + .wp-block-navigation-item,
.ng-menu-panel .ng-menu-social { border-top: 1px solid #28484826; }
.ng-menu-panel .ng-menu-social { font-weight: 500; }
.ng-menu-panel .ng-menu-social::after {
  content: '';
  width: 12px;
  height: 12px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13 13 3M4 3h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ng-menu-panel a:hover { color: var(--wp--preset--color--teal, #007e87); }
.ng-masthead :is(a, summary):focus-visible { outline: 2px solid var(--wp--preset--color--teal, #007e87); outline-offset: 3px; }
.ng-masthead-wordmark a:focus-visible, .ng-masthead .ng-account-link a:focus-visible,
.ng-masthead .ng-menu-fold > summary:focus-visible { outline-color: #9ad9d3; }
.ng-footer {
  border-top: 1px solid #233e4138;
  padding-block: 18px;
  background: var(--wp--preset--color--paper, #fcfaf1);
}
.ng-colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--wp--preset--color--quiet, #52626a);
  font-size: .8rem;
}
.ng-colophon .wp-block-site-title {
  color: var(--wp--preset--color--ink, #102d3e);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.055em;
}
.ng-colophon a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 650px) {
  .ng-masthead, .ng-colophon { width: calc(100% - 40px); }
  .ng-masthead { min-height: 72px; gap: 8px; }
  .ng-masthead-brand { gap: 8px; }
  .ng-masthead-wordmark { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .ng-masthead-wordmark .wp-block-site-title,
  .ng-masthead .ng-masthead-tagline {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .ng-masthead .ng-masthead-seal { width: 50px; height: 50px; }
  .ng-masthead-tools { gap: 8px; }
  .ng-masthead .ng-menu-fold > summary { gap: 7px; padding-inline: 12px; }
}
@media (max-width: 400px) {
  .ng-masthead-wordmark .wp-block-site-title { font-size: 1.18rem; }
  .ng-masthead .ng-masthead-tagline { font-size: .51rem; letter-spacing: .075em; }
  .ng-masthead .ng-account-link a { min-width: 44px; padding-inline: 2px; font-size: .8rem; }
  .ng-masthead .ng-account-link a::before { display: none; }
}
@media (max-width: 350px) {
  .ng-masthead, .ng-colophon { width: calc(100% - 28px); }
  .ng-masthead .ng-masthead-seal { width: 40px; height: 40px; }
  .ng-masthead-brand { gap: 5px; }
  .ng-masthead-tools { gap: 3px; }
  .ng-masthead .ng-menu-fold > summary { padding-inline: 8px; gap: 4px; }
  .ng-masthead-wordmark .wp-block-site-title { font-size: 1.05rem; }
  .ng-masthead .ng-masthead-tagline { font-size: .45rem; }
}
@media print {
  .ng-masthead-tools { display: none; }
}
