/**
 * Site header + top/user nav — production chrome (matches paynexor-home-draft header band).
 * Load after css.css and windsurf-theme.css.
 */

:root {
  --site-header-bg: #07080F;
  --site-nav-bg: #0C0E19;
  --site-nav-border: #1B1E2F;
  --site-nav-text: #A8B4CE;
  --site-nav-text-hover: #D8DDF0;
  --site-tagline: #ce9178;
  --site-tagline-rule: #6e6e6e;
  --site-gold-rule: #d4af37;
}

/* One canvas color — legacy css.css body padding created a #1e1e1e gutter */
html,
body {
  margin: 0;
  padding: 0 !important;
  background-color: var(--site-header-bg) !important;
}

main.ph-main-public {
  display: block;
  width: 100%;
}

/* Full-width gold rule above public nav (separate from tagline HR under the words) */
.ws-brand-band {
  background: var(--site-header-bg);
}

.ws-brand-gold-rule {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0;
  padding: 0;
  background-color: var(--site-gold-rule);
  border: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.ws-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 24px 0;
  margin-bottom: 0;
  position: relative;
  background: transparent;
  border-bottom: none !important;
  box-shadow: none !important;
}

.ws-logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 7px;
  text-decoration: none;
  color: inherit;
}

/* HR directly under tagline words only (not the full-width gold nav rule) */
.ws-logo-text-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.ws-tagline-rule {
  display: block;
  width: 100%;
  height: 0;
  margin: 0.35em 0 0;
  padding: 0;
  border: none;
  border-bottom: 2px solid var(--site-tagline-rule);
}

.ws-header .logo-image {
  height: 150px;
  width: auto;
  max-width: 100%;
}

.ws-brand-band .ws-logo-text,
.ws-brand-band h2 {
  color: var(--site-tagline) !important;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.ws-header-dashboard-slot {
  position: absolute;
  bottom: 10px;
  right: 20px;
}

/* Public top menu — directly under gold rule */
.ws-top-nav-section {
  display: block;
  background: var(--site-nav-bg);
  border-bottom: 1px solid var(--site-nav-border);
  padding: 8px 24px 12px;
}

.ws-top-nav-section .ws-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0;
  margin: 0;
  border-bottom: none !important;
  list-style: none;
}

.ws-top-nav-section .ws-nav li {
  margin: 0;
  list-style: none;
}

.ws-top-nav-section .ws-nav-item {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--site-nav-text) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.ws-top-nav-section .ws-nav-item:hover {
  color: var(--site-nav-text-hover) !important;
  background: var(--site-nav-border) !important;
  border: none !important;
}

.ws-top-nav-section .ws-nav-active {
  color: var(--site-nav-text-hover) !important;
  background: var(--site-nav-border) !important;
  border: none !important;
  font-weight: 600;
}

/* Logged-in: gold rule between public top nav and user menu */
body.ws-logged-in .ws-top-nav-section {
  border-bottom: 2px solid var(--site-gold-rule) !important;
}

.ws-users-nav-section {
  background: var(--site-nav-bg);
  border-bottom: 1px solid var(--site-nav-border);
  padding: 8px 24px 12px;
  margin-bottom: 0;
}

.ws-users-nav-section .ws-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0;
  margin: 0;
  border-bottom: none !important;
}

.ws-users-nav-section .ws-nav li {
  margin: 0;
  list-style: none;
}

.ws-users-nav-section .ws-nav-item {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--site-nav-text) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.ws-users-nav-section .ws-nav-item:hover {
  color: var(--site-nav-text-hover) !important;
  background: var(--site-nav-border) !important;
  border: none !important;
}

.ws-users-nav-section .ws-nav-active {
  color: var(--site-nav-text-hover) !important;
  background: var(--site-nav-border) !important;
  border: none !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ws-header {
    padding: 2px 16px 0;
  }

  .ws-brand-band .logo-image {
    height: 80px;
  }

  .ws-brand-band .ws-logo-text {
    font-size: 16px;
  }

  .ws-top-nav-section,
  .ws-users-nav-section {
    padding: 8px 16px 12px;
  }
}

@media (max-width: 480px) {
  .ws-brand-band .ws-logo-text {
    font-size: 14px;
  }
}
