/*
 * NEON DRIFTERS — public World Reference
 *
 * Kept separate from custom.css so lore-page presentation can evolve
 * without colliding with unrelated website work.
 */

.nd-world {
  --wr-bg: rgba(5, 10, 15, 0.96);
  --wr-panel: rgba(10, 20, 28, 0.94);
  --wr-panel-2: rgba(14, 29, 39, 0.88);
  --wr-line: rgba(81, 224, 255, 0.22);
  --wr-line-hot: rgba(81, 224, 255, 0.58);
  --wr-cyan: #51e0ff;
  --wr-cyan-soft: #a0efff;
  --wr-gold: #ffbb6d;
  --wr-text: #d9e8ed;
  --wr-muted: #8ea6af;

  max-width: 1320px;
  margin: 0 auto 4rem;
  color: var(--wr-text);
}

.nd-world-hero {
  position: relative;
  overflow: hidden;
  padding: 2.2rem;
  border: 1px solid var(--wr-line-hot);
  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(81, 224, 255, 0.12),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      rgba(14, 32, 43, 0.98),
      rgba(4, 8, 13, 0.98) 65%
    );
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.32),
    inset 0 0 40px rgba(81, 224, 255, 0.025);
}

.nd-world-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.12) 4px
    );
}

.nd-world-terminal {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--wr-line);
  color: var(--wr-cyan);
  font-family: monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nd-world-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.72fr);
  gap: 2.4rem;
  align-items: start;
  margin-top: 2rem;
}

.nd-world-overline,
.nd-world-section-code,
.nd-world-card-code,
.nd-world-quicklook-header,
.nd-world-footer-code {
  color: var(--wr-cyan);
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nd-world-hero h1 {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.nd-world-strapline {
  margin-top: 0.8rem;
  color: var(--wr-gold);
  font-family: monospace;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nd-world-lead {
  max-width: 760px;
  margin: 2rem 0 0;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.nd-world-summary {
  max-width: 840px;
  margin: 1.1rem 0 0;
  color: var(--wr-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.nd-world-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.nd-world-quicklook {
  border: 1px solid var(--wr-line);
  background: rgba(3, 8, 12, 0.76);
}

.nd-world-quicklook-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--wr-line);
  background: rgba(81, 224, 255, 0.055);
}

.nd-world-quicklook-row {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(81, 224, 255, 0.11);
}

.nd-world-quicklook-row:last-child {
  border-bottom: 0;
}

.nd-world-quicklook-row span {
  color: var(--wr-muted);
  font-family: monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.nd-world-quicklook-row strong {
  color: var(--wr-text);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: right;
}

.nd-world-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(81, 224, 255, 0.17);
  background: rgba(4, 9, 14, 0.94);
  font-family: monospace;
  font-size: 0.7rem;
}

.nd-world-jumps > span {
  color: var(--wr-muted);
}

.nd-world-jumps a {
  color: var(--wr-cyan-soft);
  text-decoration: none;
}

.nd-world-jumps a:hover,
.nd-world-jumps a:focus {
  color: #fff;
  text-decoration: underline;
}

.nd-world-content {
  margin-top: 1rem;
  border: 1px solid rgba(81, 224, 255, 0.15);
  background: var(--wr-bg);
}

.nd-world-section {
  padding: 2.35rem;
  border-bottom: 1px solid rgba(81, 224, 255, 0.14);
  scroll-margin-top: 6rem;
}

.nd-world-section:last-child {
  border-bottom: 0;
}

.nd-world-section h2 {
  max-width: 980px;
  margin: 0.35rem 0 1.1rem;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.08;
}

.nd-world-section > p {
  max-width: 920px;
  color: var(--wr-text);
  font-size: 1rem;
  line-height: 1.82;
}

.nd-world-section .nd-world-intro {
  color: var(--wr-cyan-soft);
  font-size: 1.08rem;
}

.nd-world-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.nd-world-card {
  position: relative;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(81, 224, 255, 0.17);
  background:
    linear-gradient(
      155deg,
      var(--wr-panel-2),
      rgba(6, 12, 18, 0.96)
    );
}

.nd-world-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 2px;
  background: var(--wr-cyan);
}

.nd-world-card h3 {
  margin: 0.38rem 0 0.72rem;
  color: #fff;
  font-size: 1.13rem;
}

.nd-world-card p {
  margin: 0;
  color: var(--wr-muted);
  font-size: 0.9rem;
  line-height: 1.67;
}

.nd-world-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(81, 224, 255, 0.2);
  background: rgba(4, 9, 14, 0.94);
}

.nd-world-footer p {
  max-width: 780px;
  margin: 0.45rem 0 0;
  color: var(--wr-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.nd-world-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

@media (max-width: 991px) {
  .nd-world-hero-grid {
    grid-template-columns: 1fr;
  }

  .nd-world-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nd-world-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nd-world-footer-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nd-world-hero,
  .nd-world-section {
    padding: 1.25rem;
  }

  .nd-world-terminal {
    align-items: flex-start;
    flex-direction: column;
  }

  .nd-world-cards {
    grid-template-columns: 1fr;
  }

  .nd-world-quicklook-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .nd-world-quicklook-row strong {
    text-align: left;
  }

  .nd-world-jumps {
    flex-direction: column;
  }
}

/* FACTIONS-OVERHAUL-2 */

.nd-factions__hero {
  padding-bottom: 2.7rem;
}

.nd-factions__hero-copy {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-top: 2rem;
}

.nd-factions__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(81, 224, 255, 0.17);
  background: rgba(4, 9, 14, 0.94);
  font-family: monospace;
  font-size: 0.7rem;
}

.nd-factions__nav > span {
  color: var(--wr-muted);
}

.nd-factions__nav a {
  color: var(--wr-cyan-soft);
  text-decoration: none;
}

.nd-factions__nav a:hover,
.nd-factions__nav a:focus {
  color: #fff;
  text-decoration: underline;
}

.nd-factions__groups {
  margin-top: 1rem;
  border: 1px solid rgba(81, 224, 255, 0.15);
  background: var(--wr-bg);
}

.nd-factions__group {
  padding: 2.5rem 2.35rem;
  border-bottom: 1px solid rgba(81, 224, 255, 0.14);
  scroll-margin-top: 6rem;
}

.nd-factions__group:last-child {
  border-bottom: 0;
}

.nd-factions__group-header {
  max-width: 920px;
  margin-bottom: 1.6rem;
}

.nd-factions__kicker,
.nd-faction-card__signal,
.nd-factions__notice-code {
  color: var(--wr-cyan);
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nd-factions__group-header h2 {
  margin: 0.4rem 0 0.8rem;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.08;
}

.nd-factions__group-header p {
  margin: 0;
  color: var(--wr-cyan-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.nd-factions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.nd-faction-card {
  position: relative;
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid rgba(81, 224, 255, 0.18);
  background:
    linear-gradient(
      155deg,
      rgba(14, 29, 39, 0.9),
      rgba(6, 12, 18, 0.97)
    );
}

.nd-faction-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 46px;
  height: 2px;
  background: var(--wr-cyan);
}

.nd-faction-card h3 {
  margin: 0.45rem 0 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.nd-faction-card__short {
  margin-top: 0.25rem;
  color: var(--wr-gold);
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nd-faction-card__body {
  margin: 1rem 0 0;
  color: var(--wr-text);
  font-size: 0.96rem;
  line-height: 1.75;
}

.nd-faction-card__note {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(81, 224, 255, 0.12);
  color: var(--wr-muted);
  font-family: monospace;
  font-size: 0.76rem;
  line-height: 1.55;
}

.nd-factions__notice {
  margin-top: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(81, 224, 255, 0.2);
  background: rgba(4, 9, 14, 0.94);
}

.nd-factions__notice p {
  max-width: 900px;
  margin: 0.55rem 0 1.15rem;
  color: var(--wr-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .nd-factions__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nd-factions__group {
    padding: 1.35rem 1.25rem;
  }

  .nd-factions__nav {
    flex-direction: column;
  }
}

/* FACTIONS-OVERHAUL-4 */

.nd-faction-card__identity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

.nd-faction-card__status {
  color: var(--wr-muted);
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.nd-faction-card__field {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(81, 224, 255, 0.12);
}

.nd-faction-card__field-label {
  color: var(--wr-cyan);
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nd-faction-card__field p {
  margin: 0.4rem 0 0;
  color: var(--wr-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.nd-faction-card__field--street p {
  color: var(--wr-gold);
  font-style: italic;
}

.nd-faction-card__note {
  margin-top: 1rem;
}
