header.site-header {
  display: block;
  position: sticky;
  z-index: 20;
  top: 0;
  height: auto;
  min-height: 64px;
  padding: 0;
  border-bottom: 1px solid #e7e7e1;
  background: #fff;
  color: #20221e;
  font: 600 .875rem 'DM Sans', sans-serif;
}
.site-header-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding-inline: max(4.2%, 16px);
  gap: 0 24px;
}
.site-header .site-brand {
  display: inline-flex;
  grid-area: 1 / 1;
  justify-self: start;
  align-items: center;
  gap: 9px;
  color: inherit;
  font: italic 600 38px/1.1 Baskerville, 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  letter-spacing: -1.8px;
}
.site-brand img { flex: none; width: 48px; height: 48px; }
header.site-header nav {
  display: flex;
  position: static;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: auto;
}
header.site-header .site-primary-nav {
  grid-area: 1 / 2;
  gap: clamp(20px, 3vw, 44px);
}
.site-account {
  grid-area: 1 / 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}
header.site-header .site-primary-nav a,
.site-account a,
.site-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}
.site-account a {
  padding-inline: 14px;
  border: 1px solid #20221e45;
  border-radius: 8px;
}
.site-account .site-signin:hover { background: #20221e0a; }
.site-account .site-signup {
  border-color: #20221e;
  background: #20221e;
  color: #fff;
}
.site-account .site-signup:hover { opacity: .86; }
.site-account [hidden] { display: none; }
header.site-header .site-primary-nav a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid #20221e;
  outline-offset: 2px;
}
.site-header .site-menu { display: none; }

header.site-header .site-market-nav {
  gap: clamp(12px, 2.8vw, 34px);
  padding-inline: max(4.2%, 16px);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-market-nav::-webkit-scrollbar { display: none; }
header.site-header .site-market-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border-block: 2px solid transparent;
  color: #575b52;
  font: inherit;
  white-space: nowrap;
}
header.site-header .site-market-nav a[aria-current="page"] {
  border-bottom-color: #20221e;
  color: #20221e;
}
.site-market-nav a:focus-visible { outline-offset: -2px; }

@media (max-width: 640px) {
  .site-header-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 8px;
    min-height: 64px;
    padding-inline: 12px;
  }
  .site-header .site-brand {
    grid-column: 1;
    grid-row: 1;
    gap: 5px;
    font-size: 30px;
  }
  .site-brand img { width: 34px; height: 34px; }
  .site-header .site-menu {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    width: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .site-menu span { width: 20px; height: 1px; background: currentColor; }
  .site-account {
    grid-column: 2;
    grid-row: 1;
    gap: 2px;
  }
  .site-account a { padding-inline: 9px; }
  header.site-header .site-primary-nav {
    display: none;
    grid-area: auto;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1;
    gap: 0;
    padding: 8px 12px;
    border-bottom: 1px solid #e7e7e1;
    background: #fff;
    box-shadow: 0 12px 20px #0001;
  }
  header.site-header .site-menu[aria-expanded="true"] + .site-primary-nav { display: grid; }
  header.site-header .site-primary-nav a { justify-content: start; }
}
