/* shared.css — reset, header, navigation (all pages) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#header {
  background: #1a1a2e;
  color: #fff;
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 2000;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
}
.brand a {
  color: #fff;
  text-decoration: none;
}
.brand a:hover {
  text-decoration: none;
}
.brand-uk {
  color: #6fa2d0;
  font-weight: 800;
}
.beta-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f0c040;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
  cursor: default;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-disclaimer {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #f6ed95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
}

#nav {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-left: 6px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-primary .header-link {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ccc;
  text-decoration: none;
}
.nav-primary .header-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.nav-primary .header-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-menu-toggle {
  background: none;
  border: none;
  color: #a0a0b0;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.nav-menu-toggle:hover {
  color: #fff;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 34px;
  left: 0;
  background: #1a1a2e;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  z-index: 100;
}
.nav-menu.open {
  display: block;
}
.nav-menu .header-link {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #a0a0b0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-menu .header-link:hover {
  color: #fff;
}
.nav-menu .header-link.active {
  color: #fff;
  font-weight: 600;
}
.nav-menu .header-link:last-child {
  border-bottom: none;
}
.nav-menu .nav-menu-mobile {
  display: none;
}

/* ── Website info badges ──────────────────────────────────────────── */
.badge-v4,
.badge-v6 {
  display: inline-block;
  width: 32px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  vertical-align: middle;
}
.badge-v4 {
  background: #d1fae5;
  color: #065f46;
}
.badge-v6 {
  background: #dbeafe;
  color: #1e40af;
}
.badge-v4.off,
.badge-v6.off {
  opacity: 0.25;
}
.badge-host {
  display: inline-block;
  background: #eef;
  color: #335;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  vertical-align: middle;
}
.badge-sender {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-family: inherit;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .beta-badge {
    display: none;
  }
  .header-disclaimer {
    font-size: 10px;
    padding: 0 6px;
  }
  .nav-primary .header-link {
    font-size: 11px;
    padding: 2px 8px;
  }
  .nav-primary {
    display: none;
  }
  .nav-menu .nav-menu-mobile {
    display: block;
  }
}
