.site-topnav {
  max-width: 960px;
  margin: 12px auto 0;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end;
}

.header-inner > .site-topnav {
  max-width: none;
  padding: 0;
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.site-lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header-top .site-lang-switcher {
  margin-left: auto;
}

.site-lang-switcher .lang-link {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-grey, #d7d7d7);
  font-size: 12px;
  background: #ffffff;
  color: var(--text-main, #111827);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.site-lang-switcher .lang-link:hover {
  border-color: var(--primary-green, #3d642d);
  color: var(--primary-green, #3d642d);
}

.site-lang-switcher .lang-link.active {
  background: var(--primary-green, #3d642d);
  color: #ffffff;
  border-color: var(--primary-green, #3d642d);
}

header .top .nav {
  margin-left: auto;
}

#watchlist-form {
  scroll-margin-top: 120px;
}

@media (max-width: 640px) {
  #watchlist-form {
    scroll-margin-top: 96px;
  }

  .site-header-top,
  .header-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    width: 100% !important;
  }
  
  .site-header-top .site-lang-switcher,
  .header-top .lang-switcher {
    margin-left: 0 !important;
    width: 100% !important;
    justify-content: flex-end !important;
  }

  .logo-icon {
    width: 56px !important;
    height: 56px !important;
  }

  .logo-text {
    font-size: 26px !important;
  }
  
  .brand {
    gap: 12px !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .site-lang-switcher .lang-link,
  .lang-switcher .lang-link {
    padding: 5px 8px !important;
    font-size: 11px !important;
    gap: 3px !important;
  }
}

.site-topnav .topnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border-grey, #d7d7d7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-topnav .topnav-pill::-webkit-scrollbar {
  display: none;
}

.site-topnav .topnav-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-main, #111827);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.06s ease;
}

.site-topnav .topnav-pill a:hover {
  background: rgba(61, 100, 45, 0.09);
  color: var(--primary-green, #3d642d);
}

.site-topnav .topnav-pill a:active {
  transform: translateY(1px);
}

.site-topnav .topnav-pill a.active {
  background: var(--primary-green, #3d642d);
  color: #ffffff;
}

.site-topnav .topnav-pill a.active:hover {
  background: var(--primary-green-dark, #304f23);
  color: #ffffff;
}

.site-topnav .topnav-pill a:focus-visible {
  outline: 3px solid rgba(246, 182, 0, 0.55);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .site-topnav {
    justify-content: center;
    padding: 0 12px;
  }
}

.site-footer {
  text-align: center;
  padding: 24px 16px 32px;
  font-size: 14px;
  color: #6b7280;
  border-top: 1px solid var(--border-grey, #d7d7d7);
  background: #ffffff;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--primary-green, #3d642d);
}

.site-footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.site-footer .footer-meta,
.site-footer .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-sep {
  color: #9ca3af;
  user-select: none;
}

.site-footer .footer-nav a.active {
  color: var(--primary-green, #3d642d);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border-grey, #d7d7d7);
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.12);
}

.cookie-banner .cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner .cookie-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted, #4b5563);
  line-height: 1.4;
}

.cookie-banner .cookie-text strong {
  color: var(--text-main, #111827);
}

.cookie-banner .cookie-text a {
  color: var(--primary-green, #3d642d);
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner .cookie-btn {
  border-radius: 10px;
  border: 1px solid var(--border-grey, #d7d7d7);
  background: #ffffff;
  color: var(--text-main, #111827);
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner .cookie-btn:hover {
  border-color: var(--primary-green, #3d642d);
}

.cookie-banner .cookie-btn.primary {
  background: var(--primary-green, #3d642d);
  border-color: var(--primary-green, #3d642d);
  color: #ffffff;
}

.cookie-banner .cookie-btn.primary:hover {
  background: var(--primary-green-dark, #304f23);
  border-color: var(--primary-green-dark, #304f23);
}

@media (max-width: 540px) {
  .cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media print {
  .site-topnav {
    display: none !important;
  }
  .cookie-banner {
    display: none !important;
  }
}
