  @media (max-width: 1300px) {
    .nav__pill {
      flex: 1;
      justify-content: space-between;
      gap: 20px;
    }
  }

  .nav__mobile-group {
    border-bottom: 1px solid var(--border, rgba(66, 21, 21, 0.12));
  }

  .nav__mobile-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Parkinsans', sans-serif;
    font-weight: 500;
    font-size: 26px;
    color: var(--brown, #421515);
    text-align: left;
  }

  .nav__mobile-toggle img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .nav__mobile-group.is-open .nav__mobile-toggle img {
    transform: rotate(180deg);
  }

  .nav__mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0 0 12px 12px;
  }

  .nav__mobile-group.is-open .nav__mobile-submenu {
    display: flex;
  }

  .nav__mobile-sublink {
    font-family: 'Parkinsans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.35;
    color: var(--brown, #421515);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: none !important;
  }

  .nav__mobile-sublink:hover {
    color: var(--orange, #ff5a30);
  }

  .nav__mobile-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--border, rgba(66, 21, 21, 0.12));
  }

  .nav__mobile-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .nav__mobile-social img {
    width: 24px;
    height: 24px;
    display: block;
  }

  .nav__mobile a.nav__mobile-social {
    border-bottom: none !important;
    padding: 0;
  }

  /* Grouped dropdowns: a child with its own children renders as a labelled group (Resources: Learn, Proof). */
  .nav__submenu:has(.nav__group) {
    width: max-content;
    min-width: 240px;
  }

  .nav__group {
    padding: 4px 0;
  }

  .nav__group + .nav__group {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border, rgba(66, 21, 21, 0.15));
  }

  .nav__group-title {
    display: block;
    padding: 6px 20px 4px;
    font-family: 'Golos Text', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--small-text, #662020);
    opacity: 0.75;
  }

  .nav__mobile-subgroup {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav__mobile-subgroup + .nav__mobile-subgroup {
    margin-top: 12px;
  }

  .nav__mobile-group-title {
    margin-top: 4px;
    font-family: 'Golos Text', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--small-text, #662020);
    opacity: 0.75;
  }
