/* Desktop header (1024px+): the logo sits at a central height in the bar, not at the top
   (Mark, 6 Nov 2026). The brand spans the two rows above the pinstripe. Phones are untouched. */
@media (min-width: 1024px) {
  /* Logo with its strapline underneath on the left, the links centred in the bar on the right.
     Equal top and bottom padding and no row gap keep the pair at the bar's middle. */
  .jos-header--alt {
    grid-template-areas:
      "brand main toggle"
      "tagline main toggle"
      "line line line"
      "nav nav nav";
    padding-bottom: 18px;
    padding-top: 18px;
    row-gap: 0;
  }

  .jos-header--alt .jos-brand {
    align-self: end;
  }

  .jos-header--alt .jos-brand-tagline {
    justify-self: start;
    font-size: 11px;
    margin: 4px 0 0;
  }
}

/* Menu links open in the bar (Mark, 6 Nov 2026). Phones keep the burger. */
.jos-nav-bar {
  display: none;
}

@media (min-width: 1024px) {
  .jos-header--alt .jos-nav-toggle {
    display: none !important;
  }

  .jos-header--alt .jos-nav-bar {
    align-self: center;
    display: block;
    grid-area: main;
    justify-self: end;
  }

  .jos-nav-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .jos-nav-bar > ul {
    align-items: center;
    column-gap: clamp(14px, 1.9vw, 32px);
    display: flex;
  }

  .jos-nav-bar li {
    position: relative;
  }

  .jos-nav-bar a {
    border-bottom: 1px solid transparent;
    color: var(--jos-alt-cream, #f0f4e6);
    font-family: "Josefin Sans", "Josefin Sans Fallback", sans-serif;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 0;
    text-decoration: none;
    white-space: nowrap;
  }

  .jos-nav-bar a[aria-current="page"] {
    border-bottom-color: var(--jos-alt-cream, #f0f4e6);
  }

  .jos-nav-bar a:hover,
  .jos-nav-bar a:focus-visible {
    color: var(--jos-alt-gold, #ad8330);
  }

  .jos-nav-bar .has-sub > a::after {
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    content: "";
    display: inline-block;
    height: 5px;
    margin: 0 0 3px 8px;
    transform: rotate(45deg);
    width: 5px;
  }

  .jos-nav-bar .has-sub > ul {
    background: var(--jos-alt-bg, #3a320c);
    border: 1px solid rgba(240, 244, 230, 0.16);
    display: none;
    left: -16px;
    min-width: 230px;
    padding: 8px 16px;
    position: absolute;
    top: 100%;
    z-index: 450;
  }

  .jos-nav-bar .has-sub:hover > ul,
  .jos-nav-bar .has-sub:focus-within > ul {
    display: block;
  }

  .jos-nav-bar .has-sub > ul a {
    border-bottom: 0;
    display: block;
    padding: 9px 0;
  }
}
