.desktop-site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 10px;
}

.desktop-menu-toggle {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--theme-help-toggle-border, #cbbda7);
  border-radius: 12px;
  background: var(--theme-help-toggle-bg, #e7e0d4);
  color: var(--theme-heading, #4a3522);
  cursor: pointer;
}

.desktop-menu-toggle:hover,
.desktop-menu-toggle:focus-visible {
  border-color: var(--theme-accent, #4c7b82);
  background: var(--theme-accent, #4c7b82);
  color: var(--theme-accent-contrast, #fff);
}

.desktop-menu-toggle:focus-visible,
.desktop-drawer-close:focus-visible,
.desktop-drawer-link:focus-visible {
  outline: 3px solid var(--theme-accent, #4c7b82);
  outline-offset: 3px;
}

.desktop-menu-icon,
.desktop-menu-icon::before,
.desktop-menu-icon::after {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  content: '';
}

.desktop-menu-icon { position: relative; }
.desktop-menu-icon::before,
.desktop-menu-icon::after { position: absolute; left: 0; }
.desktop-menu-icon::before { top: -8px; }
.desktop-menu-icon::after { top: 8px; }

.desktop-site-brand {
  flex: 0 0 auto;
}

.desktop-site-brand img {
  display: block;
  width: min(260px, 22vw);
  height: auto;
}

.desktop-site-tabs {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: thin;
}

.desktop-site-tab,
.desktop-site-tab-active {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding: 10px 10px;
  border: 1px solid var(--site-tab-border, #cbbda7);
  border-radius: 999px;
  background: var(--site-tab-bg, #e7e0d4);
  color: var(--site-tab-ink, #4e4030);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-tab-kind {
  margin-top: 1px;
  color: currentColor;
  font-size: .58em;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  opacity: .78;
  text-transform: uppercase;
}

.desktop-site-tab-active {
  padding: 0;
  overflow: hidden;
  border-color: var(--theme-accent, #4c7b82);
  background: var(--theme-accent, #4c7b82);
}

.desktop-site-tab:hover,
.desktop-site-tab:focus-visible {
  text-decoration: underline;
}

.desktop-site-tab-active a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 10px;
  color: var(--theme-accent-contrast, #fff);
  text-decoration: none;
}

.desktop-site-tab {
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1.05;
}

.desktop-site-tab-active a:hover,
.desktop-site-tab-active a:focus-visible {
  text-decoration: none;
}

.desktop-site-tab-active .mode-help-toggle {
  min-width: 42px;
  min-height: 42px;
  margin: 0 2px 0 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--theme-accent-contrast, #fff);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.desktop-site-tab-active .mode-help-toggle:hover,
.desktop-site-tab-active .mode-help-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.desktop-nav-scrim {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgba(24, 28, 32, 0.42);
}

.desktop-nav-scrim[hidden] { display: none; }

.desktop-nav-drawer {
  position: fixed;
  z-index: 31;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(360px, 86vw);
  padding: 24px 20px 32px;
  overflow-y: auto;
  background: var(--theme-surface, #fffdf8);
  box-shadow: 12px 0 30px rgba(35, 32, 27, 0.2);
  transform: translateX(-105%);
  transition: transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.desktop-nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.desktop-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--theme-heading, #4a3522);
  font-size: 1.08rem;
  font-weight: 800;
}

.desktop-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--theme-surface-border, #d8ccb8);
  border-radius: 999px;
  background: var(--theme-secondary-bg, #f3e2c4);
  color: var(--theme-secondary-ink, #5d4327);
  cursor: pointer;
  font-size: 1.25rem;
}

.desktop-drawer-links {
  display: grid;
  gap: 8px;
}

.desktop-drawer-links h2 {
  margin: 14px 0 0;
  color: var(--theme-muted, #695847);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.desktop-drawer-link,
.desktop-drawer-note {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--theme-tab-border, #d2b896);
  border-radius: 10px;
  background: var(--site-tab-bg, #e7e0d4);
  color: var(--site-tab-ink, #4e4030);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-drawer-link:hover,
.desktop-drawer-link:focus-visible,
.desktop-drawer-link.active {
  border-color: var(--theme-accent, #4c7b82);
  background: var(--theme-accent, #4c7b82);
  color: var(--theme-accent-contrast, #fff);
}

.site-footer {
  margin-top: 24px;
  color: var(--muted, #557078);
  font-size: .78rem;
  text-align: center;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  padding: 7px 10px;
  border: 1px solid var(--line, #cbdad9);
  border-radius: 12px;
  background: rgba(255, 253, 248, .86);
}

.site-footer-disclaimer {
  flex-basis: 100%;
  font-size: .7rem;
  line-height: 1.35;
}

.site-footer-links {
  display: flex;
  flex-basis: 100%;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.site-footer-links a {
  color: inherit;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .desktop-nav-drawer { transition-duration: .01ms; }
}

@media (max-width: 640px) {
  .desktop-site-nav {
    display: none;
  }

  .desktop-nav-scrim,
  .desktop-nav-drawer {
    display: none;
  }
}
