.header {
  position: relative;
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 24px;
  background-color: var(--color-page);
}

.logo {
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 200px;
  height: auto;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-links a {
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-links a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--color-dark);
  border-radius: 4px;
  background: transparent;
  color: var(--color-dark);
  cursor: pointer;
}

@media (max-width: 1100px) {
  .header {
    flex-wrap: wrap;
    gap: 20px;
  }

  .navigation {
    gap: 24px;
  }
}

/* Mobile menu (the toggle is shown by script.js) */
@media (max-width: 900px) {
  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .navigation {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header-links a {
    padding: 12px 0;
    border-bottom: 1px solid #25282a20;
  }

  .header-links.is-collapsed {
    display: none;
  }

  .navigation > .donate-button,
  .navigation > .donate-slot {
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .header {
    gap: 16px;
    padding: 16px;
  }

  .logo img {
    width: 160px;
  }

  .navigation {
    gap: 8px;
  }
}