/* Shared header. Fixed link boxes keep the counter out of the text baseline. */
.hexbit-header {
  background: rgb(244 243 237 / 94%);
  border-bottom: 1px solid #d7dacf;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hexbit-header .header-inner {
  display: grid;
  grid-template-columns: minmax(215px, 1fr) auto minmax(185px, 1fr);
  gap: 28px;
  height: 100px;
  max-width: 1440px;
}
.hexbit-header .hexbit-brand-lockup {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 13px;
  margin: 0;
  color: #22261f;
}
.hexbit-mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 52px;
  color: #d5f478;
  background: #22261f;
  border: 1px solid #22261f;
  border-radius: 4px 12px 4px 4px;
  box-shadow: inset 0 0 0 3px #33392c;
  transition: background .2s, color .2s;
}
.hexbit-mark svg { width: 36px; height: 36px; }
.hexbit-wordmark {
  display: block;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1;
}
.hexbit-wordmark-dot { color: #79983c; }
.hexbit-brand-caption {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .1px;
  color: #66705f;
}
.hexbit-brand-caption > span { color: #a4ac98; padding-inline: 3px; }
.hexbit-header .hexbit-brand-lockup:hover .hexbit-mark { background: #35422c; }
.hexbit-header .nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 5px;
  background: #edeee6;
  border: 1px solid #dce0d2;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #fafbf6;
}
.hexbit-header .nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border-radius: 4px;
  color: #505949;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s, color .18s, box-shadow .18s;
}
.hexbit-header .nav a:hover,
.hexbit-header .nav a[aria-current=page] {
  color: #22261f;
  background: #fafbf5;
  box-shadow: 0 1px 3px #22261f0d;
  text-decoration: none;
}
.hexbit-header .nav a small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  min-width: 24px;
  padding: 0 5px;
  background: #d5e5b1;
  border: 1px solid #c7d99f;
  border-radius: 4px;
  color: #44572b;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
.hexbit-header .header-cta {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 18px;
  height: 50px;
  padding: 5px 5px 5px 18px;
  border: 1px solid #22261f;
  border-radius: 6px;
  background: #22261f;
  color: #f4f3ed;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.hexbit-header .header-cta .hexbit-cta-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  background: #d5f478;
  color: #26331d;
}
.hexbit-cta-arrow svg { width: 22px; height: 22px; transition: transform .18s; }
.hexbit-header .header-cta:hover { background: #394630; border-color: #394630; }
.hexbit-header .header-cta:hover svg { transform: translate(1px, -1px); }
.hexbit-header :is(a, button):focus-visible { outline: 2px solid #6c852f; outline-offset: 4px; }
.hexbit-header .menu-button { display: none; }
.hexbit-header .mobile-nav[hidden] { display: none; }
@media (min-width: 1101px) { .hexbit-header .mobile-nav { display: none; } }
@media (min-width: 1101px) and (max-width: 1240px) {
  .hexbit-header .header-inner { gap: 16px; grid-template-columns: minmax(205px, 1fr) auto minmax(165px, 1fr); }
  .hexbit-header .nav a { padding-inline: 9px; font-size: 11px; }
  .hexbit-header .header-cta { gap: 12px; padding-left: 12px; font-size: 11px; }
  .hexbit-header .hexbit-brand-lockup { gap: 10px; }
  .hexbit-brand-caption { font-size: 8px; }
}
@media (max-width: 1100px) {
  .hexbit-header .header-inner { display: flex; height: 88px; gap: 16px; }
  .hexbit-header .hexbit-brand-lockup { margin-right: auto; }
  .hexbit-header .nav { display: none; }
  .hexbit-header .menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 50px;
    gap: 6px;
    padding: 0;
    border: 1px solid #cdd3c2;
    border-radius: 6px;
    background: #edeee6;
    color: #22261f;
  }
  .hexbit-header .menu-button span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .18s; }
  .hexbit-header .menu-button[aria-expanded=true] { background: #dce9bd; }
  .hexbit-header .menu-button[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .hexbit-header .menu-button[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hexbit-header .mobile-nav {
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    padding: 10px max(24px, calc((100vw - 1440px) / 2)) 24px;
    border-top: 1px solid #d7dacf;
    background: #f4f3ed;
    box-shadow: 0 18px 28px #22261f0d;
  }
  .hexbit-header .mobile-nav a,
  .hexbit-header .mobile-nav button {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid #dce0d2;
    font-size: 16px;
    text-align: left;
    line-height: 1.4;
  }
  .hexbit-header .mobile-nav :last-child { border-bottom: 0; color: #426022; }
}
@media (max-width: 700px) {
  .hexbit-header .header-inner { height: 82px; gap: 12px; }
  .hexbit-header .header-cta { display: none; }
  .hexbit-header .hexbit-brand-lockup { gap: 11px; }
  .hexbit-mark { flex-basis: 42px; width: 42px; height: 46px; border-top-right-radius: 10px; }
  .hexbit-mark svg { width: 32px; height: 32px; }
  .hexbit-wordmark { font-size: 28px; }
  .hexbit-brand-caption { margin-top: 7px; font-size: 8px; }
  .hexbit-header .menu-button { flex-basis: 44px; width: 44px; height: 44px; }
  .hexbit-header .mobile-nav { padding-inline: 20px; max-height: calc(100dvh - 82px); }
}
@media (prefers-reduced-motion: reduce) {
  .hexbit-header *, .hexbit-header *::before { transition: none; }
}
