/* =========================================================
   BOROUGH HEIGHTS — Midnight Cobalt Glassmorphism UI
   ========================================================= */

:root {
  --bg-base: #070b14;
  --header-bg: rgba(8, 12, 22, 0.86);
  --section-links-bg: rgba(12, 18, 32, 0.92);
  --block-bg: rgba(11, 16, 28, 0.86);
  --block-header-bg: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(9, 13, 24, 0.98));
  --node-divider: rgba(148, 163, 184, 0.11);
  --overlay-bg: rgba(13, 19, 33, 0.96);
  --footer-bottom-bg: rgba(5, 8, 16, 0.96);

  --accent-blue: #3b82f6;
  --accent-blue-bright: #60a5fa;
  --accent-blue-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.28);

  --text-primary: #cbd5e1;
  --text-link: #e2e8f0;
  --text-link-hover: #ffffff;
  --text-dimmed: #94a3b8;
  --text-muted: #64748b;

  --input-border-heavy: rgba(148, 163, 184, 0.24);
  --input-border-light: rgba(148, 163, 184, 0.14);
  --bg-effect-blur: 0px;
  --bg-effect-y: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 13px;
  line-height: 1.5;
  font-family: 'Inter', BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: var(--text-primary);
  background: var(--bg-base);
}

/* Subtle Falling City Snow / Sparkle Overlay */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background-repeat: repeat;
}

body::before {
  opacity: 0.45;
  background-size: 420px 520px;
  background-image:
    radial-gradient(1.8px 1.8px at 30px 40px, rgba(191, 219, 254, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 120px 160px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(2px 2px at 220px 80px, rgba(147, 197, 253, 0.8), transparent),
    radial-gradient(1.4px 1.4px at 310px 230px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.8px 1.8px at 80px 340px, rgba(191, 219, 254, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 260px 420px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 370px 310px, rgba(147, 197, 253, 0.8), transparent);
  animation: bh-snow-fall 11s linear infinite;
}

body::after {
  opacity: 0.3;
  background-size: 460px 560px;
  background-image:
    radial-gradient(1.2px 1.2px at 60px 90px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.8px 1.8px at 180px 210px, rgba(147, 197, 253, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 320px 110px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 140px 410px, rgba(191, 219, 254, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 390px 450px, rgba(255, 255, 255, 0.65), transparent);
  animation: bh-snow-fall-slow 16s linear infinite;
}

@keyframes bh-snow-fall {
  0% { background-position: 0 0; }
  100% { background-position: 0 520px; }
}

@keyframes bh-snow-fall-slow {
  0% { background-position: 0 0; }
  100% { background-position: 0 560px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    display: none;
    animation: none;
  }
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-link-hover);
}

/* Full-Bleed Fixed Parallax NYC Skyline Backdrop */
.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.background-clear,
.background-blur {
  position: absolute;
  inset: -40px 0 -40px 0;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  transform: translateY(var(--bg-effect-y));
  transition: background-image 0.4s ease;
}

html[data-focus-bg='1'] .background-clear,
html[data-focus-bg='1'] .background-blur {
  background-image: url('/assets/nyc-skyline-1.jpg');
}

html[data-focus-bg='2'] .background-clear,
html[data-focus-bg='2'] .background-blur {
  background-image: url('/assets/nyc-skyline-2.jpg');
}

.background-blur {
  filter: blur(var(--bg-effect-blur));
  opacity: 0;
  transition: opacity 0.15s linear;
}

html.has-parallax-scrolled .background-blur {
  opacity: 1;
}

/* Atmospheric Dark Vignette + Cobalt Gradient Overlay */
.background::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.16) 0%, transparent 55%),
    linear-gradient(
      to bottom,
      rgba(7, 11, 20, 0.45) 0%,
      rgba(7, 11, 20, 0.62) 45%,
      rgba(7, 11, 20, 0.94) 85%,
      #070b14 100%
    );
}

.p-pageWrapper {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================================
   Sticky Frosted Glass Navbar
   ========================================================= */
.p-navSticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(96, 165, 250, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.p-nav {
  width: 100%;
  color: #fff;
}

.p-nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.p-nav-menuTrigger {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 17px;
  padding: 6px 10px;
  cursor: pointer;
}

.focus-wrap-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.p-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.p-nav-list > li {
  font-size: 13px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.p-navEl {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  transition: background-color 0.15s ease;
}

.p-navEl:hover {
  background: rgba(255, 255, 255, 0.06);
}

.p-navEl.is-selected {
  background: rgba(59, 130, 246, 0.14);
  font-weight: 600;
}

.p-navEl.is-selected::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-blue-bright);
  box-shadow: 0 0 10px var(--accent-blue);
}

.p-navEl-link {
  color: #e2e8f0;
  padding: 0 13px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.p-navEl-link i {
  color: var(--accent-blue-bright);
  font-size: 12px;
}

.p-navEl-link:hover {
  color: #fff;
}

.p-navEl-splitTrigger {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 9px 0 0;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 10px;
}

.p-navEl-splitTrigger:hover {
  color: #fff;
}

/* Nav Dropdown Menu */
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(13, 19, 33, 0.98);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  padding: 6px 0;
  z-index: 200;
}

.p-nav-list > li.is-open .menu-dropdown,
.p-nav-list > li:hover .menu-dropdown {
  display: block;
}

.menu-linkRow {
  display: block;
  padding: 8px 15px;
  color: var(--text-link);
  font-size: 12px;
  white-space: nowrap;
}

.menu-linkRow:hover {
  background: rgba(59, 130, 246, 0.14);
  color: #fff;
}

/* Inline Center Search */
.focus-wrap-search {
  flex: 1;
  max-width: 310px;
  margin: 0 auto;
}

.focus-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.focus-search:hover,
.focus-search:focus-within {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(96, 165, 250, 0.5);
}

.focus-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  min-width: 0;
}

.focus-search input::placeholder {
  color: rgba(203, 213, 225, 0.65);
}

.focus-search button {
  background: transparent;
  border: none;
  color: var(--accent-blue-bright);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
}

/* Right User & Utility Controls */
.focus-wrap-user {
  display: flex;
  align-items: center;
}

.p-nav-opposite {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-navgroup-link {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
}

.p-navgroup-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.p-navgroup-link--register {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: rgba(147, 197, 253, 0.35);
  color: #fff;
  font-weight: 600;
  padding: 7px 16px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.4);
}

.p-navgroup-link--register:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.55);
}

.p-discovery-search {
  display: none;
}

/* Secondary Section Links Bar */
.p-sectionLinks {
  background: var(--section-links-bg);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-link);
}

.p-sectionLinks-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 38px;
  font-size: 12px;
  overflow-x: auto;
}

.p-sectionLinks-inner a {
  color: var(--text-dimmed);
  white-space: nowrap;
}

.p-sectionLinks-inner a:hover,
.p-sectionLinks-inner a.is-active {
  color: #fff;
  font-weight: 600;
}

/* =========================================================
   Hero / Logo Banner
   ========================================================= */
.p-header {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 20px;
  position: relative;
}

.p-header-glow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.p-header-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.p-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-header-logo img {
  max-height: 235px;
  width: auto;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.75));
  transition: transform 0.25s ease;
}

.p-header-logo:hover img {
  transform: scale(1.03);
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(11, 16, 28, 0.78);
  border: 1px solid rgba(96, 165, 250, 0.3);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* =========================================================
   Main Body Container
   ========================================================= */
.p-body {
  flex: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px 28px;
}

/* Guest Welcome Notice Card */
.notices--block {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.notice--primary {
  position: relative;
  min-height: 220px;
  padding: 36px 28px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 18, 34, 0.82), rgba(19, 34, 68, 0.72)),
    rgba(11, 16, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.notice--primary h2 {
  margin: 0 0 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.notice--primary p {
  margin: 0 0 22px;
  max-width: 720px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

.notice-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.85);
  color: #f1f5f9;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.3;
}

.button:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(148, 163, 184, 0.45);
  color: #ffffff;
}

.button--primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-color: rgba(147, 197, 253, 0.4);
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35);
}

.button--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: rgba(191, 219, 254, 0.6);
  color: #fff;
}

.button--discord {
  background: #5865f2;
  border-color: #4752c4;
  color: #fff;
  font-weight: 600;
}

.button--discord:hover {
  background: #4752c4;
  color: #fff;
}

.button--dark {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text-link);
}

.button--dark:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #fff;
}

/* Breadcrumbs Bar */
.focus-breadcrumb {
  margin-bottom: 14px;
}

.p-breadcrumbs-wrap {
  background: rgba(11, 16, 28, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  padding: 8px 14px;
  color: #e2e8f0;
}

.p-breadcrumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.p-breadcrumbs > li {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p-breadcrumbs > li + li::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  color: var(--accent-blue-bright);
}

.p-breadcrumbs a {
  color: #e2e8f0;
}

.p-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Page Title & Action Header */
.p-body-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.p-title-value {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Main Content + Sidebar Grid */
.p-body-main--withSidebar {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.p-body-content {
  flex: 1;
  min-width: 0;
}

.p-body-sidebar {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Blocks & Containers */
.block {
  margin-bottom: 16px;
}

.p-body-sidebar .block {
  margin-bottom: 0;
}

.block-container {
  background: var(--block-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.block-header,
.block-minorHeader {
  margin: 0;
  background: var(--block-header-bg);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  border-left: 3px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-header a,
.block-minorHeader a {
  color: #f8fafc;
}

.block-body {
  padding: 0;
}

.block-row {
  padding: 11px 16px;
}

.block-row + .block-row {
  border-top: 1px solid var(--node-divider);
}

.block-footer {
  padding: 9px 16px;
  background: rgba(5, 8, 16, 0.55);
  border-top: 1px solid var(--node-divider);
  font-size: 12px;
  color: var(--text-dimmed);
}

/* Forum Node List */
.node-list {
  display: flex;
  flex-direction: column;
}

.node {
  display: grid;
  grid-template-columns: 48px 1fr 140px 235px;
  align-items: center;
  padding: 15px 16px;
  gap: 12px;
  transition: background-color 0.15s ease;
}

.node:hover {
  background: rgba(59, 130, 246, 0.06);
}

.node + .node {
  border-top: 1px solid var(--node-divider);
}

.node-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.node--unread .node-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue-bright);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.node-main {
  min-width: 0;
}

.node-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.node--unread .node-title {
  font-weight: 700;
}

.node-title a {
  color: #f1f5f9;
}

.node-title a:hover {
  color: var(--accent-blue-bright);
}

.node-description {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-dimmed);
}

.node-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  text-align: center;
}

.node-stats dl {
  margin: 0;
  flex: 1;
}

.node-stats dt {
  color: var(--text-muted);
  font-size: 11px;
}

.node-stats dd {
  margin: 0;
  color: #f1f5f9;
  font-weight: 600;
}

.node-extra {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
}

.node-extra-row {
  min-width: 0;
  flex: 1;
}

.node-extra-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #e2e8f0;
}

.node-extra-title:hover {
  color: var(--accent-blue-bright);
}

.node-extra-meta {
  color: var(--text-dimmed);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-extra-none {
  color: var(--text-muted);
  font-style: italic;
}

/* Grid Layout Mode (Theme Editor Toggle) */
body.focus-grid-layout .node-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 14px;
}

body.focus-grid-layout .node {
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto auto;
  border: 1px solid var(--node-divider);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  align-items: start;
}

body.focus-grid-layout .node + .node {
  border-top: 1px solid var(--node-divider);
}

body.focus-grid-layout .node-stats,
body.focus-grid-layout .node-extra {
  grid-column: 1 / -1;
  justify-content: flex-start;
  text-align: left;
  border-top: 1px solid var(--node-divider);
  padding-top: 8px;
}

/* Avatars */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.avatar--lg {
  width: 50px;
  height: 50px;
  font-size: 18px;
}

/* Sidebar Widget Rows */
.contentRow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contentRow-main {
  min-width: 0;
  flex: 1;
}

.contentRow-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contentRow-title:hover {
  color: var(--accent-blue-bright);
}

.contentRow-minor {
  font-size: 11px;
  color: var(--text-dimmed);
  line-height: 1.4;
}

.pairs {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 5px 0;
  font-size: 12px;
}

.pairs dt {
  color: var(--text-dimmed);
}

.pairs dd {
  margin: 0;
  color: #f1f5f9;
  font-weight: 600;
}

/* Custom User Role Banners */
.userBanner {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  line-height: 1.3;
  text-transform: uppercase;
}

.userBanner--borough-hotties { background: #e97cf7; border-color: #e97cf7; color: #fff; }
.userBanner--content-creator { background: #8b5cf6; border-color: #7c3aed; color: #fff; }
.userBanner--content-creator-plus { background: #4c1d95; border-color: #3b0764; color: #fff; }
.userBanner--staff-owner { background: #9f1239; border-color: #881337; color: #fff; }
.userBanner--staff-faction-management { background: #4338ca; border-color: #3730a3; color: #fff; }
.userBanner--staff-director { background: #0f766e; border-color: #115e59; color: #fff; }
.userBanner--whitelisted { background: #2563eb; border-color: #3b82f6; color: #fff; }

/* =========================================================
   Subpages: Thread List, Post View, Rules, Members, Search
   ========================================================= */
.structItem {
  display: grid;
  grid-template-columns: 42px 1fr 110px 180px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.structItem + .structItem {
  border-top: 1px solid var(--node-divider);
}

.structItem:hover {
  background: rgba(59, 130, 246, 0.06);
}

.structItem-title {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.structItem-title:hover {
  color: var(--accent-blue-bright);
}

.structItem-minor {
  font-size: 11px;
  color: var(--text-dimmed);
  margin-top: 2px;
}

.filterBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  background: rgba(5, 8, 16, 0.45);
  border-bottom: 1px solid var(--node-divider);
  font-size: 12px;
  color: var(--text-dimmed);
  gap: 10px;
  flex-wrap: wrap;
}

/* Post / Message View */
.message-inner {
  display: flex;
}

.message-user {
  width: 175px;
  flex-shrink: 0;
  padding: 18px 12px;
  background: rgba(5, 8, 16, 0.35);
  border-right: 1px solid var(--node-divider);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.message-name {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.message-main {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
}

.message-attribution {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--node-divider);
}

.bbWrapper h3 {
  color: #f8fafc;
  font-size: 15px;
  margin: 18px 0 8px;
  border-bottom: 1px solid var(--node-divider);
  padding-bottom: 4px;
}

.bbWrapper h3:first-child {
  margin-top: 0;
}

.bbWrapper ul {
  margin: 6px 0 12px;
  padding-left: 20px;
}

.bbWrapper li {
  margin-bottom: 5px;
}

.tier-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  margin-right: 6px;
}

.tier-a { background: #2563eb; }
.tier-b { background: #d97706; }
.tier-c { background: #ea580c; }
.tier-d { background: #dc2626; }

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--node-divider);
  background: rgba(5, 8, 16, 0.55);
  overflow-x: auto;
}

.tabs-tab {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dimmed);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tabs-tab:hover {
  color: #fff;
}

.tabs-tab.is-active {
  color: #fff;
  border-bottom-color: var(--accent-blue-bright);
}

.memberGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* Forms & Inputs */
.formRow {
  margin-bottom: 14px;
}

.formRow label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-link);
  margin-bottom: 5px;
}

.formRow .explain {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.input {
  width: 100%;
  padding: 9px 11px;
  background: #090d18;
  border: 1px solid var(--input-border-heavy);
  border-radius: 6px;
  color: #f8fafc;
  font-size: 13px;
  outline: none;
}

.input:focus {
  border-color: var(--accent-blue-bright);
}

.inputGroup {
  display: flex;
  align-items: stretch;
}

.inputGroup .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.inputGroup-btn {
  background: #1e293b;
  border: 1px solid var(--input-border-heavy);
  border-left: none;
  color: var(--text-link);
  padding: 0 12px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 12px;
}

/* =========================================================
   Footer
   ========================================================= */
.p-footer {
  margin-top: auto;
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px 22px;
}

.p-footer-inner {
  background: var(--block-bg);
  backdrop-filter: blur(14px);
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.focus-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--node-divider);
}

.focus-footer h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.focus-footer p {
  margin: 0 0 12px;
  color: var(--text-dimmed);
  line-height: 1.55;
}

.focus-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-wrap {
  background: var(--footer-bottom-bg);
  padding: 13px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.p-footer-linkList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.p-footer-linkList a {
  color: var(--text-dimmed);
}

.p-footer-linkList a:hover {
  color: #fff;
}

.p-footer-rss {
  color: #f97316 !important;
}

.p-footer-copyright {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* =========================================================
   Overlays / Modals & Theme Editor Drawer
   ========================================================= */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.75);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay-backdrop.is-open {
  display: flex;
}

.overlay {
  width: 100%;
  max-width: 480px;
  background: var(--overlay-bg);
  color: var(--text-primary);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.overlay-title {
  background: #050811;
  color: #f8fafc;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-close {
  background: transparent;
  border: none;
  color: var(--text-dimmed);
  font-size: 16px;
  cursor: pointer;
}

.overlay-close:hover {
  color: #fff;
}

.overlay-content {
  padding: 18px;
}

.divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  margin: 14px 0;
  text-transform: uppercase;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--node-divider);
}

.divider-or::before { margin-right: 10px; }
.divider-or::after { margin-left: 10px; }

/* Theme Editor Drawer */
.xenfocus-editor-drawer {
  position: fixed;
  top: 54px;
  right: -340px;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: var(--overlay-bg);
  border-left: 1px solid rgba(96, 165, 250, 0.25);
  border-bottom: 1px solid rgba(96, 165, 250, 0.25);
  border-bottom-left-radius: 10px;
  box-shadow: -8px 10px 28px rgba(0, 0, 0, 0.6);
  z-index: 450;
  transition: right 0.22s ease;
  color: var(--text-primary);
}

.xenfocus-editor-drawer.is-open {
  right: 0;
}

.editor-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--node-divider);
}

.editor-section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #f8fafc;
}

.bg-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bg-swatch {
  height: 64px;
  border-radius: 6px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.bg-swatch.is-active {
  border-color: var(--accent-blue-bright);
}

.bg-swatch span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 8, 16, 0.78);
  font-size: 10px;
  padding: 3px 6px;
  color: #fff;
}

.editor-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.editor-toggle strong {
  display: block;
  font-size: 12px;
  color: #f8fafc;
}

.editor-toggle small {
  display: block;
  font-size: 11px;
  color: var(--text-dimmed);
}

/* Mobile Navigation Drawer & Bottom Bar */
.offCanvasMenu {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
}

.offCanvasMenu.is-open {
  display: block;
}

.offCanvasMenu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.offCanvasMenu-content {
  position: relative;
  width: 260px;
  height: 100%;
  background: #0b101c;
  padding: 16px;
  overflow-y: auto;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.6);
}

.focus-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(8, 12, 22, 0.95);
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  z-index: 120;
  justify-content: space-around;
  align-items: center;
}

.focus-mobile-nav a {
  color: var(--text-link);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1050px) {
  .focus-wrap-search { display: none; }
  .p-discovery-search { display: inline-flex; }
}

@media (max-width: 900px) {
  .p-body-main--withSidebar { flex-direction: column; }
  .p-body-sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
  }
  .node { grid-template-columns: 42px 1fr; }
  .node-stats, .node-extra {
    grid-column: 2 / -1;
    justify-content: flex-start;
    text-align: left;
  }
  .structItem { grid-template-columns: 36px 1fr; }
  .message-inner { flex-direction: column; }
  .message-user {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--node-divider);
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .p-nav-menuTrigger { display: inline-flex; }
  .focus-wrap-nav { display: none; }
  .focus-footer { grid-template-columns: 1fr; }
  .focus-mobile-nav { display: flex; }
  body { padding-bottom: 54px; }
}

@media (max-width: 480px) {
  .p-title-value { font-size: 20px; }
  .p-header { min-height: 230px; }
  .p-header-logo img { max-height: 175px; }
}
