/* One icon and one hit area per disclosure. Desktop navigation is unchanged. */
@media (max-width: 1023px) {
  /* The transformed header used to offset its fixed menu by its 4px border. */
  body.tsf-menu-open .tsf-header { transform: none; }
  .tsf-header .tsf-nav { overscroll-behavior-y: contain; }
  .tsf-header .tsf-nav > * { flex-shrink: 0; }

  .tsf-header .tsf-nav > a:not(.tsf-nav-cta),
  .tsf-header .tsf-nav > .tsf-nav-dropdown > .tsf-nav-dropdown-trigger > a,
  .tsf-header .tsf-nav-dropdown--menu-only > .tsf-nav-dropdown-trigger > .tsf-nav-dropdown-primary {
    align-items: center;
    font-family: var(--font-ui, Inter, sans-serif) !important;
    font-size: clamp(20px, 5.6vw, 25px) !important;
    font-weight: 500 !important;
    letter-spacing: -.02em !important;
    line-height: 1.25;
    min-width: 0;
    text-align: left;
  }
  .tsf-header .tsf-nav > a:not(.tsf-nav-cta) { display: flex; gap: 12px; justify-content: space-between; }
  .tsf-header .tsf-nav > a:not(.tsf-nav-cta)::after {
    background: none;
    color: var(--red, #c6192e);
    content: "→";
    flex: 0 0 44px;
    font-family: var(--font-ui, sans-serif);
    font-size: 20px;
    height: auto;
    margin: 0;
    opacity: 1;
    position: static;
    text-align: center;
    transform: none;
    width: 44px;
  }
  .tsf-header .tsf-nav-dropdown-trigger > a { flex: 1; }
  .tsf-header .tsf-nav-dropdown-trigger > a::after,
  .tsf-header .tsf-nav-dropdown-primary::after { content: none; }
  .tsf-header .tsf-nav-dropdown-trigger > button:not(.tsf-nav-dropdown-primary) {
    flex: 0 0 44px;
    height: 54px;
    padding: 0;
    width: 44px;
  }
  .tsf-header .tsf-nav-dropdown--menu-only > .tsf-nav-dropdown-trigger > .tsf-nav-dropdown-primary {
    display: flex;
    gap: 12px;
    height: auto;
    justify-content: space-between;
    min-height: 60px;
    padding: 8px 0;
    width: 100%;
  }
  .tsf-header .tsf-nav-dropdown-trigger > button > span[aria-hidden="true"] {
    color: var(--red, #c6192e);
    display: block;
    flex: 0 0 44px;
    font-size: 0;
    height: 44px;
    line-height: 0;
    position: relative;
    width: 44px;
  }
  .tsf-header .tsf-nav .tsf-nav-dropdown .tsf-nav-dropdown-trigger > button > span[aria-hidden="true"]::before,
  .tsf-header .tsf-nav .tsf-nav-dropdown .tsf-nav-dropdown-trigger > button > span[aria-hidden="true"]::after {
    background: currentColor;
    border: 0;
    content: "";
    height: 2px;
    left: 14px;
    position: absolute;
    top: 21px;
    transform: none;
    transition: none;
    width: 16px;
  }
  .tsf-header .tsf-nav .tsf-nav-dropdown .tsf-nav-dropdown-trigger > button > span[aria-hidden="true"]::after { transform: rotate(90deg); }
  .tsf-header .tsf-nav .tsf-nav-dropdown .tsf-nav-dropdown-trigger > button[aria-expanded="true"] > span[aria-hidden="true"]::after { transform: rotate(0); }
  .tsf-header .tsf-nav-dropdown:not(.is-open) .tsf-nav-submenu { visibility: hidden; }
  .tsf-header .tsf-nav-dropdown.is-open .tsf-nav-submenu { visibility: visible; }
  .tsf-header .tsf-nav-submenu a { min-height: 44px; }
}

/* Tablets retain the 34px language bar above the 80px main header. */
@media (min-width: 768px) and (max-width: 1023px) {
  .tsf-header .tsf-nav { top: 114px; height: calc(100dvh - 114px); }
  .admin-bar .tsf-header .tsf-nav { top: 146px; height: calc(100dvh - 146px); }
}
@media (min-width: 768px) and (max-width: 782px) {
  .admin-bar .tsf-header .tsf-nav { top: 160px; height: calc(100dvh - 160px); }
}
