:root {
  --ws-bg: #0d0e0f;
  --ws-surface: #17191c;
  --ws-surface-2: #1e2125;
  --ws-border: #2b2d30;
  --ws-text: #ece7dc;
  --ws-text-muted: #a6a298;
  --ws-accent: #d3943c;
  --ws-page-background:
    radial-gradient(
      ellipse 82% 62rem at 50% 17rem,
      rgba(230, 157, 53, 0.105) 0%,
      rgba(230, 157, 53, 0.032) 44%,
      transparent 80%
    ) fixed,
    var(--ws-bg);
  --ws-glow-background:
    radial-gradient(
      ellipse 72% 82% at 50% 45%,
      rgba(230, 157, 53, 0.18) 0%,
      rgba(230, 157, 53, 0.05) 58%,
      transparent 100%
    ),
    rgba(10, 12, 14, 0.94);
}

/* Page-level ambient light continues behind content instead of ending at the hero. */
.ws-page-glow {
  background: var(--ws-page-background);
}

/* Shared branded hero/search backdrop. */
.ws-glow-panel {
  background: transparent;
  border-bottom-color: transparent !important;
}

/* Opaque while sticky, but visually seamless because it repaints the page background. */
.has-results .ws-sticky-surface {
  background: var(--ws-page-background) !important;
}

/* Shared primary search shell. */
.ws-search-region {
  width: min(800px, calc(100% - 32px));
  max-width: 800px;
}

.ws-search-shell {
  --surface: var(--ws-surface);
  --surface2: var(--ws-surface-2);
  --border: var(--ws-border);
  --text: var(--ws-text);
  --text2: var(--ws-text-muted);
  --accent: var(--ws-accent);
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 82% 180% at 50% 0%, rgba(211, 148, 60, 0.075), transparent 72%),
    var(--ws-surface);
  border: 1.5px solid #44413b;
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(211, 148, 60, 0.055), 0 4px 24px rgba(0, 0, 0, 0.30);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ws-search-shell:hover { border-color: rgba(230, 157, 53, 0.35); }
.ws-search-shell:focus-within {
  border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px rgba(230, 157, 53, 0.12), 0 4px 24px rgba(0, 0, 0, 0.30);
}
.ws-search-shell .ws-search-control { height: 52px !important; font-size: 16px !important; }
.ws-search-shell .ws-search-divider { height: 30px; background: #3d3f42; }

/* Shared elevated content panel and its internal control language. */
.ws-panel {
  --surface: var(--ws-surface);
  --surface2: var(--ws-surface-2);
  --border: var(--ws-border);
  --border2: #3d3f42;
  --text: var(--ws-text);
  --text2: var(--ws-text-muted);
  --text3: #66645f;
  --accent: var(--ws-accent);
  color: var(--ws-text);
  font-family: 'Inter', -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 125% 32% at 50% 0%, rgba(211, 148, 60, 0.085), transparent 74%),
    rgba(23, 25, 28, 0.97) !important;
  border: 1px solid var(--ws-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 34px rgba(211, 148, 60, 0.055), 0 16px 40px rgba(0, 0, 0, 0.52) !important;
}
.ws-panel-header {
  background: rgba(23, 25, 28, 0.78) !important;
  border-bottom-color: var(--ws-border) !important;
}
.ws-panel .view-segmented-wrap,
.ws-panel .flat-chip-btn,
.ws-panel .sort-select-flat,
.ws-panel .empty-card-box {
  background: var(--ws-surface-2);
  border-color: #2d3342;
}
.ws-panel .drawer-headline,
.ws-panel .empty-title { color: var(--ws-text); }
.ws-panel .drawer-sub-row,
.ws-panel .empty-sub { color: var(--ws-text-muted); }

@media (max-width: 580px) {
  .ws-search-region { width: calc(100% - 24px); }
}

/* Viewport-wide variant for panels inside a centered content wrapper. */
.ws-glow-panel--bleed {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.ws-glow-panel--bleed::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: transparent;
  pointer-events: none;
}

/* Host form for legacy/static markup whose hero is the first child. */
.ws-glow-panel-host > .hero {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.ws-glow-panel-host > .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: transparent;
  pointer-events: none;
}

/* ── UNIFIED GLOBAL NAVBAR ── */
.ws-nav,
nav.ws-nav {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid #1c1f28;
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-sizing: border-box;
  width: 100%;
}
.ws-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 600;
  color: #eae5d9;
  text-decoration: none;
  letter-spacing: -0.45px;
  flex-shrink: 0;
}
.ws-brand svg {
  width: 39px;
  height: 24px;
  display: block;
}
.ws-brand span span {
  color: #e69d35;
}
.ws-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  color: #7a8299;
  margin-left: 8px;
}
.ws-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  color: #9a9fa9;
  text-decoration: none;
  position: relative;
  transition: color 0.15s ease;
}
.ws-nav-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}
.ws-nav-links a:hover .ws-nav-icon,
.ws-nav-links a.active .ws-nav-icon {
  opacity: 1;
}
.ws-nav-links a:hover,
.ws-nav-links a.active {
  color: #e69d35;
}
.ws-nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: #e69d35;
}

@media (max-width: 900px) {
  .ws-nav,
  nav.ws-nav {
    height: 48px;
    padding: 0 16px;
    gap: 14px;
  }
  .ws-brand {
    font-size: 18px;
    gap: 8px;
  }
  .ws-brand svg {
    width: 34px;
    height: 21px;
  }
  .ws-nav-links {
    gap: 14px;
    font-size: 12px;
    margin-left: 0;
  }
  .ws-nav-icon { width: 17px; height: 17px; flex-basis: 17px; }
}

@media (max-width: 480px) {
  .ws-nav,
  nav.ws-nav {
    padding: 0 12px;
    gap: 10px;
  }
  .ws-nav-links {
    gap: 10px;
    font-size: 11.5px;
  }
  .ws-nav-links a { gap: 4px; }
  .ws-nav-icon { width: 16px; height: 16px; flex-basis: 16px; }
}
