@font-face {
  font-family: "Manrope";
  src: url("/selah-v37/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

.selah-masthead, .selah-masthead-server {
  --selah-ivory: #fff4df;
  --selah-muted: #b9c7b9;
  --selah-moss: #a2c695;
  --selah-gold: #f0cb82;
  --selah-sans: Manrope, system-ui, sans-serif;
  --selah-settle: cubic-bezier(.22, 1, .36, 1);
  font-family: var(--selah-sans);
}

.selah-masthead a, .selah-masthead-server a { text-decoration: none; }
.selah-masthead .selah-width {
  --selah-gutter: clamp(32px, 6vw, 88px);
  width: min(1160px, calc(100% - var(--selah-gutter) * 2));
  margin-inline: auto;
}
.selah-masthead .selah-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  color: var(--selah-ivory);
  white-space: nowrap;
}
.selah-masthead .selah-brand-mark { display: grid; flex: none; place-items: center; }
.selah-masthead .selah-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1020px) { .selah-masthead .selah-width { --selah-gutter: 32px; } }
@media (max-width: 768px) { .selah-masthead .selah-width { --selah-gutter: 22px; } }
@media (max-width: 370px) { .selah-masthead .selah-width { --selah-gutter: 17px; } }

.selah-masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0d1110;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .selah-masthead::after {
      position: absolute;
      z-index: 1;
      inset: auto 0 0;
      height: 1px;
      transform-origin: left center;
      background: #829d82;
      content: "";
      pointer-events: none;
      animation: selah-reading-position linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes selah-reading-position {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }
}

.selah-masthead-row {
  position: relative;
  display: grid;
  min-height: 66px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
}

.selah-masthead .selah-brand {
  gap: 8px;
  font: 800 1.17rem/1 var(--selah-sans);
  letter-spacing: -.03em;
}

.selah-masthead .selah-brand-mark {
  width: 38px;
  height: 38px;
  transition: transform .3s var(--selah-settle), filter .3s ease;
}

.selah-masthead .selah-brand:active .selah-brand-mark { transform: scale(.94); }
.selah-masthead .selah-brand-mc { color: #c4d3b6; font-size: 1em; }

.selah-masthead-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 16px);
}

.selah-masthead-nav a,
.selah-masthead .selah-mobile-nav nav a {
  display: flex;
  min-height: 37px;
  align-items: center;
  padding: 0 clamp(9px, .9vw, 13px);
  border-radius: 7px;
  color: #b1bcb3;
  font-size: .88rem;
  font-weight: 675;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}

.selah-masthead-nav a:hover,
.selah-masthead .selah-mobile-nav nav a:hover {
  color: var(--selah-ivory);
  background: #18251e;
}

.selah-masthead-nav a[aria-current="page"],
.selah-masthead .selah-mobile-nav nav a[aria-current="page"] {
  color: #e1ebdc;
  background: #26332c;
}

.selah-masthead-login {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #b6c2b032;
  border-radius: 7px;
  background-color: #b6c2b010;
  color: #e6ede1;
  font-size: .85rem;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, transform .2s var(--selah-settle);
}

.selah-masthead-login svg { color: #b7d5b6; }
.selah-masthead-login:hover { background-color: #b6c2b024; border-color: #b6c2b05e; }
.selah-masthead-login:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .selah-masthead .selah-brand:hover .selah-brand-mark { filter: drop-shadow(0 0 7px #d2b67547); }
}
@media (prefers-reduced-motion: reduce) {
  .selah-masthead .selah-brand:active .selah-brand-mark,
  .selah-masthead-login:active { transform: none; }
}

.selah-masthead-server {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  border-block: 1px solid #b8c8b319;
  background: #0b100e;
}

.selah-masthead-server a {
  display: flex;
  min-height: 33px;
  align-items: center;
  gap: 9px;
  padding-inline: 11px;
  color: var(--selah-muted);
  font-size: .77rem;
  transition: color .18s ease;
}

.selah-masthead-server svg { color: var(--selah-moss); }
.selah-masthead-server strong { color: #d9e0d2; font-weight: 700; }
.selah-masthead-server span { border-left: 1px solid #b8c8b33a; padding-left: 9px; }
.selah-masthead-server a:hover,
.selah-masthead-server a:hover strong { color: var(--selah-gold); }
.selah-masthead .selah-mobile-nav { display: none; }

@media (max-width: 1150px) {
  .selah-masthead-row { min-height: 64px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .selah-masthead-nav { display: none; }
  .selah-masthead .selah-mobile-nav { display: block; justify-self: end; }
  .selah-masthead .selah-mobile-nav summary {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #aac39935;
    border-radius: 7px;
    background: #152019;
    color: var(--selah-ivory);
    cursor: pointer;
    list-style: none;
  }
  .selah-masthead .selah-mobile-nav summary::-webkit-details-marker { display: none; }
  .selah-masthead .selah-mobile-nav:not([open]) summary svg:last-child,
  .selah-masthead .selah-mobile-nav[open] summary svg:first-child { display: none; }
  .selah-masthead .selah-mobile-nav nav {
    position: absolute;
    z-index: 2;
    top: calc(100% + 5px);
    right: 0;
    display: grid;
    width: min(255px, 100%);
    gap: 3px;
    padding: 8px;
    border: 1px solid #adbb935e;
    border-radius: 12px;
    background: #152017;
    box-shadow: 0 18px 35px #000a;
  }
  .selah-masthead .selah-mobile-nav nav a { min-height: 44px; }
}

@media (max-width: 420px) {
  .selah-masthead .selah-brand { gap: 8px; font-size: 1.15rem; }
  .selah-masthead .selah-brand-mark { width: 36px; height: 36px; }
  .selah-masthead-login { min-height: 44px; padding-inline: 12px; }
  .selah-masthead-server { min-height: 33px; }
  .selah-masthead-server a { min-height: 31px; }
}

@media (max-width: 360px) {
  .selah-masthead-server a { gap: 6px; padding-inline: 8px; }
  .selah-masthead-server span { padding-left: 6px; }
}

.selah-masthead .selah-masthead-account { min-width: 0; max-width: 10rem; }
.selah-masthead-account > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.selah-static-account-initial {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  border: 1px solid #6b8263;
  border-radius: 50%;
  background: #394a36;
  color: #f5e7c4;
  font-weight: 800;
  font-size: .7rem;
}
@media (max-width: 24rem) {
  .selah-masthead .selah-masthead-account { max-width: 7.2rem; }
}

.selah-masthead[data-selah-static-nav],
.selah-masthead[data-workshop-nav] { border-bottom: 1px solid #aab5a018; }
body[data-selah-map-chrome] {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}
body[data-selah-map-chrome] > .selah-masthead,
body[data-selah-map-chrome] > .selah-masthead-server { flex-shrink: 0; }
body[data-selah-map-chrome] > .selah-masthead {
  position: relative;
  z-index: 1001;
}
body[data-selah-map-chrome] > #map {
  position: relative;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}
body[data-selah-map-chrome] .selah-masthead img { max-width: none; }
body[data-selah-map-chrome] .selah-masthead-login { color: #e1ebdc; }
.selah-masthead[data-selah-static-nav] a:focus-visible,
.selah-masthead[data-selah-static-nav] summary:focus-visible { outline: 2px solid #d7bf87; outline-offset: 2px; }
.selah-masthead[data-workshop-nav] .selah-masthead-row.selah-width {
  width: min(1160px, calc(100% - var(--selah-gutter) * 2));
}
[data-workshop-nav] ~ .selah-masthead-server { position: relative; z-index: 3; }

html[data-selah-map-embedded] body[data-selah-map-chrome] > .selah-masthead,
html[data-selah-map-embedded] body[data-selah-map-chrome] > .selah-masthead-server { display: none; }

/* top-guide-hidden: Keep immutable Workshop and Live Map mastheads in sync. */
.selah-masthead nav:is([aria-label="Main navigation"], [aria-label="Mobile navigation"]) a[href="/#field-guide"] {
  display: none;
}
