/* Safety layer: mobile controls must never appear in the desktop layout. */
@media (min-width: 721px) {
  .mobile-card-toggle,
  .topics-mobile-toggle {
    display: none !important;
  }

  /* One calm desktop header: city at left, campaign in the centre, chooser at right. */
  .header .header__main:has(.city-header-brand) {
    display: grid !important;
    grid-template-columns: minmax(250px, 1fr) minmax(320px, 520px) auto;
    gap: 26px;
    align-items: center;
  }

  .header .city-header-brand {
    display: grid !important;
    grid-template-columns: 10px minmax(0, 1fr);
    min-width: 0;
    gap: 9px;
    align-items: center;
  }

  .header .city-header-brand > span:last-child,
  .header .city-header-brand strong,
  .header .city-header-brand small {
    display: block;
    min-width: 0;
  }

  .header .city-header-brand strong,
  .header .city-header-brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header .city-header-brand small {
    margin-top: 5px;
  }

  .header .header__main:has(.city-header-brand) .header-territories {
    display: none !important;
  }

  .header .header__main:has(.city-header-brand) .header-actions {
    display: flex !important;
    min-width: max-content;
    margin: 0 !important;
    align-items: center;
  }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .header .header__main:has(.city-header-brand) {
    grid-template-columns: minmax(210px, 1fr) minmax(260px, 360px) auto;
    gap: 14px;
  }
}
