@font-face {
  font-family: "SDW Menu";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@media (max-width: 1000px) {
  /* Both mobile headers use the same positions, measured from the right of their own row. */
  #header-outer:not(.sdw-tablet-header), #top.site-head:not(.sdw-tablet-header),
  html:not(.sdw-has-tablet-nav) .slide-out-widget-area-toggle.slide-out-hover-icon-effect {
    --sdw-menu-width: 88.6px;
    --sdw-menu-height: 44px;
    --sdw-menu-gap: 7px;
    --sdw-menu-centre: calc(50% - 8px);
    --sdw-menu-ink: #fffaf3;
    --sdw-menu-line: #fffffd80;
    --sdw-menu-surface: #14141232;
  }

  html[data-sdw-site-theme="light"] #header-outer:not(.sdw-tablet-header) {
    --sdw-menu-ink: #201d19;
    --sdw-menu-line: rgb(32 29 25 / 48%);
    --sdw-menu-surface: rgb(255 253 248 / 18%);
  }
  /* A single-post hero may have a dark photograph underneath its transparent header. */
  html[data-sdw-site-theme="light"]:not(.sdw-post-scrolled) body.single-post #header-outer.transparent:not(.sdw-tablet-header) {
    --sdw-menu-ink: #fffaf3;
    --sdw-menu-line: #fffffd80;
    --sdw-menu-surface: #14141232;
  }

  #header-outer:not(.sdw-tablet-header) #top .span_9 > .slide-out-widget-area-toggle.mobile-icon,
  body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) .mobile-menu {
    position: absolute;
    inset-inline-end: 0;
    top: var(--sdw-menu-centre);
    width: var(--sdw-menu-width);
    height: var(--sdw-menu-height);
    margin: 0;
    transform: translateY(-50%);
  }

  #header-outer:not(.sdw-tablet-header) #top #sdw-site-theme-toggle,
  body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) button.theme-toggle {
    inset-inline-end: calc(var(--sdw-menu-width) + var(--sdw-menu-gap));
    top: var(--sdw-menu-centre);
    width: var(--sdw-menu-height);
    height: var(--sdw-menu-height);
    padding: 0;
    font: 400 21.6px/1 Georgia, serif;
  }

  #header-outer:not(.sdw-tablet-header) #top .slide-out-widget-area-toggle.mobile-icon a,
  html:not(.sdw-has-tablet-nav) .slide-out-widget-area-toggle.slide-out-hover-icon-effect a,
  body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) .mobile-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: var(--sdw-menu-width);
    height: var(--sdw-menu-height);
    margin: 0;
    padding: 0 12px;
    border-radius: 22px !important;
    font: 650 15.04px/1 "SDW Menu", Arial, sans-serif;
    letter-spacing: normal;
    text-decoration: none;
    cursor: pointer;
  }

  html :is(
    #header-outer:not(.sdw-tablet-header) #top #sdw-site-theme-toggle,
    #header-outer:not(.sdw-tablet-header) #top .slide-out-widget-area-toggle.mobile-icon a,
    html:not(.sdw-has-tablet-nav) .slide-out-widget-area-toggle.slide-out-hover-icon-effect a,
    body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) button.theme-toggle,
    body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) .mobile-menu > summary
  ) {
    --sdw-button-ink: var(--sdw-menu-ink);
    --sdw-button-on-action: var(--sdw-menu-ink);
    --sdw-button-action: var(--sdw-menu-line);
    --sdw-button-edge: var(--sdw-menu-line);
    box-sizing: border-box;
    color: var(--sdw-menu-ink) !important;
    -webkit-text-fill-color: currentColor;
    border: 1px solid var(--sdw-menu-line) !important;
    background: var(--sdw-menu-surface) !important;
    box-shadow: none !important;
  }
  #header-outer:not(.sdw-tablet-header) #top :is(#sdw-site-theme-toggle,.slide-out-widget-area-toggle.mobile-icon a):focus-visible,
  body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) :is(button.theme-toggle,.mobile-menu > summary):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  #header-outer:not(.sdw-tablet-header) #top .slide-out-widget-area-toggle.mobile-icon a::before,
  html:not(.sdw-has-tablet-nav) .slide-out-widget-area-toggle.slide-out-hover-icon-effect a::before,
  body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) .mobile-menu > summary::before {
    content: "Menu";
  }
  #header-outer:not(.sdw-tablet-header) #top .slide-out-widget-area-toggle.mobile-icon a::after,
  html:not(.sdw-has-tablet-nav) .slide-out-widget-area-toggle.slide-out-hover-icon-effect a::after,
  body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) .mobile-menu > summary::after {
    content: "";
    box-sizing: border-box;
    flex: none;
    width: 14px;
    height: 7px;
    border-block: 1.5px solid currentColor;
  }
  #header-outer:not(.sdw-tablet-header) #top .slide-out-widget-area-toggle.mobile-icon a > span,
  html:not(.sdw-has-tablet-nav) .slide-out-widget-area-toggle.slide-out-hover-icon-effect a > span,
  body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) .mobile-menu > summary .menu-bars {
    display: none;
  }

  #header-outer:not(.sdw-tablet-header) #top #sdw-site-theme-toggle > span,
  body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) button.theme-toggle > span {
    width: auto;
    height: auto;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    font: inherit;
    text-shadow: none;
    filter: none;
  }
  html[data-sdw-site-theme="dark"] #header-outer:not(.sdw-tablet-header) #top #sdw-site-theme-toggle > span,
  body.sdw-gallery-page #top.site-head:not(.sdw-tablet-header) button.theme-toggle > .sun {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-variant-emoji: emoji;
  }
  html[data-sdw-site-theme="light"] #header-outer:not(.sdw-tablet-header) #top #sdw-site-theme-toggle > span::before {
    content: none;
  }

  /* Salient places its second toggle above the open drawer. Use its existing click handler. */
  html:not(.sdw-has-tablet-nav) .slide-out-widget-area-toggle.slide-out-hover-icon-effect {
    width: var(--sdw-menu-width);
    height: var(--sdw-menu-height);
    z-index: 100001;
    --sdw-menu-surface: #262621;
  }
  html:not(.sdw-has-tablet-nav) .slide-out-widget-area-toggle.slide-out-hover-icon-effect a {
    pointer-events: auto;
  }
  html:not(.sdw-has-tablet-nav) body:not(:has(#slide-out-widget-area.open)) .slide-out-widget-area-toggle.slide-out-hover-icon-effect {
    display: none !important;
  }

  @media (forced-colors: active) {
    #header-outer:not(.sdw-tablet-header), #top.site-head:not(.sdw-tablet-header) {
      --sdw-menu-ink: ButtonText;
      --sdw-menu-line: ButtonText;
      --sdw-menu-surface: ButtonFace;
    }
  }
}
