/* Shared logo dimensions also reserve its space in the navigation. */
.topbar {
  --topbar-logo-width: 160px;
  --topbar-logo-crop: -30px;
  --topbar-height: 67px;
  --topbar-offset: 0px;
  position: fixed;
  top: var(--topbar-offset);
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  z-index: 80;
  background: #fff;
}
.admin-bar .topbar {
  --topbar-offset: var(--wp-admin--admin-bar--height, 32px);
}
.topbar .topbar__nav {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: none;
  min-height: var(--topbar-height);
  margin: 0;
  padding: 0 clamp(16px, 3vw, 48px) 0 calc(var(--topbar-logo-width) + 24px);
}
.topbar__logo-fixed {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--topbar-logo-width);
  z-index: 2;
}
.topbar__logo-fixed img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: var(--topbar-logo-crop);
}
.topbar__desktop {
  display: none;
  min-width: 0;
}
.topbar .topbar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar .topbar__list li {
  margin: 0;
  padding: 0;
}
.topbar .topbar__list a {
  color: #0b0b0c;
  text-decoration: none;
  text-transform: uppercase;
}
.topbar .topbar__list a:hover {
  color: #7b1e3a;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.topbar .topbar__list a:focus-visible,
.topbar__toggle:focus-visible {
  outline: 2px solid #7b1e3a;
  outline-offset: 5px;
}
.topbar__mobile {
  position: relative;
  display: block;
}
.topbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
}
.topbar__toggle::-webkit-details-marker { display: none; }
.topbar__burger,
.topbar__burger::before,
.topbar__burger::after {
  display: block;
  position: relative;
  width: 28px;
  height: 2px;
  background: #7b1e3a;
}
.topbar__burger::before,
.topbar__burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.topbar__burger::before { top: -7px; }
.topbar__burger::after { top: 7px; }
.topbar .topbar__list--mobile { display: none; }
.topbar__mobile[open] .topbar__list--mobile {
  box-sizing: border-box;
  display: block;
  position: fixed;
  /* Leave the overhanging logo fully visible above the open panel. */
  top: calc(var(--topbar-offset) + 136px);
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--topbar-offset) - 152px);
  overflow-y: auto;
  margin: 0;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 12px 28px #00000014;
  z-index: 3;
}
.topbar__list--mobile a {
  display: block;
  padding: 12px 0;
  font-size: 18px;
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .topbar { --topbar-height: 94px; }
  .topbar__desktop { display: block; }
  .topbar__mobile { display: none; }
  .topbar .topbar__list--desktop {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(16px, 2.2vw, 40px);
  }
  .topbar__list--desktop a {
    display: block;
    padding: 8px 0;
    font-size: clamp(14px, 1.35vw, 20px);
    line-height: 1.2;
    white-space: nowrap;
  }
}
@media (min-width: 1151px) and (max-width: 1369px) {
  .topbar {
    --topbar-logo-width: 240px;
    --topbar-logo-crop: -50px;
  }
}
@media (min-width: 1370px) {
  .topbar {
    --topbar-logo-width: 360px;
    --topbar-logo-crop: -80px;
  }
}
main section[id] { scroll-margin-top: 110px; }
