/* TASK001A v10.4 APPROVED: v10.3 + logo 3px right; line and other elements unchanged. */
@media (min-width:781px) {
  .site-header.on-hero {
    --target-hero-left: clamp(28px, 8vw, 140px);
    --header-inner-left: calc(clamp(18px, 4vw, 76px) + max(0px, calc(50vw - clamp(18px, 4vw, 76px) - 755px)));
    --visual-glyph-correction: 2px;
  }
  .site-header.on-hero .brand {
    transform: translateX(calc(var(--target-hero-left) - var(--header-inner-left) + 0.89px));
  }
  .site-header.on-hero .header-inner {
    position:relative;
    border-bottom-color:transparent; /* retain its 1px in the layout */
  }
  .site-header.on-hero .header-inner::after {
    content:"";
    position:absolute;
    left:calc(var(--target-hero-left) - var(--header-inner-left) + var(--visual-glyph-correction));
    right:0;
    bottom:0;
    height:1px;
    background:color-mix(in srgb,currentColor 30%,transparent);
    pointer-events:none;
  }
}
@media (min-width:781px) and (max-width:1100px) {
  .site-header.on-hero { --target-hero-left: 6vw; }
}
/* Preserve the prototype's animated underline in place of the global link decoration. */
.site-header .site-nav a {
  text-decoration: none;
}

.site-header .site-nav a[aria-current="location"]::after {
  width: 100%;
}

.site-menu-fallback {
  display: none;
}

@media (max-width: 780px) {
  .site-header:not(.has-mobile-menu) {
    /* Keep the initial layout, with the fallback header scrolling off the page. */
    position: absolute;
  }

  .site-header:not(.has-mobile-menu) .menu-toggle {
    display: none;
  }

  .site-header:not(.has-mobile-menu) .site-menu-fallback {
    display: block;
  }

  .site-menu-fallback summary {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 4px;
    cursor: pointer;
  }

  .site-menu-fallback summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  .site-header:not(.has-mobile-menu) .header-inner {
    column-gap: 16px;
  }

  .site-header:not(.has-mobile-menu) .site-nav {
    transition: none;
  }

  .site-header:not(.has-mobile-menu):has(.site-menu-fallback[open]) {
    position: static;
    background: var(--cream);
    color: var(--ink);
  }

  .site-header:not(.has-mobile-menu):has(.site-menu-fallback[open]) .brand img {
    content: normal;
    filter: none;
  }

  .site-header:not(.has-mobile-menu):has(.site-menu-fallback[open]) .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .site-header:not(.has-mobile-menu) .site-menu-fallback[open] + .site-nav {
    position: static;
    flex: 0 0 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 16px;
    height: auto;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-header:not(.has-mobile-menu) .site-menu-fallback[open] + .site-nav a {
    font-size: 22px;
  }
}
