/* Shared site header/nav — used across all pages */
.site-header {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header .brand {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.site-header .brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  color: #9aa4b2;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.site-nav a.active {
  background: #4fc3f7;
  color: #012026;
  font-weight: 600;
}

.site-header .brand svg {
  display: block;
  flex-shrink: 0;
}

/* Generators dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  font: inherit;
  color: #9aa4b2;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-dropdown-trigger.active {
  background: #4fc3f7;
  color: #012026;
  font-weight: 600;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 50;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #9aa4b2;
  text-decoration: none;
  font-size: 14px;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-dropdown-menu a.active {
  background: #4fc3f7;
  color: #012026;
  font-weight: 600;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 4px;
    width: 100%;
  }
}

/* Shared main-content container — used across all pages */
.site-main {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px;
}

@media (max-width: 640px) {
  .site-main {
    padding: 16px;
  }
}

/* Shared footer — injected by js/footer.js */
#site-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.site-footer-links a {
  color: #9aa4b2;
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
}

.site-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-copy {
  margin-top: 10px;
  font-size: 12px;
  color: #9aa4b2;
}
