/*
 * Cyberpunk TBG — Website visual foundation
 *
 * Phase 1A:
 *   - presentation only
 *   - no gameplay/web-view changes
 *   - no Gelatinous game-specific behavior
 *
 * Gelatinous (Daiimus) was used as a design/implementation donor for the
 * general principle of giving the Evennia website a coherent custom visual
 * language through the supported custom.css override.
 */

/* -------------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------------- */

:root {
    --tbg-bg: #090d10;
    --tbg-bg-raised: #0d1317;
    --tbg-panel: #11191e;
    --tbg-panel-soft: #151e24;

    --tbg-line: #26343c;
    --tbg-line-strong: #3b505a;

    --tbg-text: #d7dee1;
    --tbg-text-bright: #f0f4f5;
    --tbg-muted: #87979f;
    --tbg-faint: #596970;

    --tbg-accent: #83c8d9;
    --tbg-accent-bright: #b9edf5;
    --tbg-accent-dim: #355d67;

    --tbg-warning: #d0a05c;
    --tbg-danger: #ca716c;
    --tbg-success: #79a98e;

    --tbg-shadow: rgba(0, 0, 0, 0.38);

    --tbg-radius: 2px;
    --tbg-content-width: 1180px;

    --tbg-font-ui:
        "IBM Plex Sans",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    --tbg-font-mono:
        "IBM Plex Mono",
        "Cascadia Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}


/* -------------------------------------------------------------------------
   Global page
   ------------------------------------------------------------------------- */

html {
    background: var(--tbg-bg);
}

body {
    min-height: 100vh;
    margin: 0;

    color: var(--tbg-text);
    background:
        linear-gradient(
            180deg,
            rgba(131, 200, 217, 0.025) 0,
            transparent 260px
        ),
        var(--tbg-bg);

    font-family: var(--tbg-font-ui);
    font-size: 1rem;
    line-height: 1.62;

    letter-spacing: 0.005em;
}

::selection {
    color: var(--tbg-bg);
    background: var(--tbg-accent-bright);
}

a {
    color: var(--tbg-accent);
    text-decoration-color: rgba(131, 200, 217, 0.42);
    text-underline-offset: 0.16em;
}

a:hover,
a:focus {
    color: var(--tbg-accent-bright);
    text-decoration-color: var(--tbg-accent-bright);
}

.container {
    max-width: var(--tbg-content-width);
}


/* -------------------------------------------------------------------------
   Main navigation
   ------------------------------------------------------------------------- */

.navbar {
    min-height: 68px;

    background:
        linear-gradient(
            90deg,
            rgba(131, 200, 217, 0.055),
            transparent 35%
        ),
        #0b1013 !important;

    border-top: 1px solid #111b20;
    border-bottom: 1px solid var(--tbg-line);

    box-shadow: 0 8px 28px var(--tbg-shadow);
}

.navbar::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 180px;
    height: 1px;

    background: var(--tbg-accent);
    opacity: 0.72;
}

.navbar-brand {
    color: var(--tbg-text-bright) !important;

    font-family: var(--tbg-font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--tbg-muted);

    font-family: var(--tbg-font-mono);
    font-size: 0.78rem;
    font-weight: 500;

    letter-spacing: 0.075em;
    text-transform: uppercase;

    transition:
        color 120ms ease,
        background-color 120ms ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--tbg-text-bright);
}

.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--tbg-accent-bright);
}

.navbar-toggler {
    border-color: var(--tbg-line-strong) !important;
    border-radius: var(--tbg-radius);
}


/* -------------------------------------------------------------------------
   Main content
   ------------------------------------------------------------------------- */

.main-content {
    position: relative;

    margin-top: 3rem !important;
    margin-bottom: 5rem;

    padding-top: 2rem;
    padding-bottom: 2rem;
}

.main-content::before {
    content: "TBG // PUBLIC NETWORK";

    display: block;

    margin-bottom: 2rem;
    padding-bottom: 0.72rem;

    color: var(--tbg-faint);
    border-bottom: 1px solid var(--tbg-line);

    font-family: var(--tbg-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--tbg-text-bright);

    font-weight: 600;
    line-height: 1.18;

    letter-spacing: -0.015em;
}

h1 {
    margin-bottom: 1.4rem;

    font-size: clamp(2rem, 4.6vw, 4.5rem);
    font-weight: 500;

    letter-spacing: -0.045em;
}

h2 {
    margin-top: 2.8rem;
    margin-bottom: 1rem;

    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

h3 {
    margin-top: 2rem;

    font-size: 1.25rem;
}

hr {
    border-color: var(--tbg-line);
}

p {
    max-width: 76ch;
}


/* -------------------------------------------------------------------------
   Bootstrap cards / panels
   ------------------------------------------------------------------------- */

.card,
.jumbotron,
.list-group-item,
.dropdown-menu {
    color: var(--tbg-text);

    background: var(--tbg-panel);

    border: 1px solid var(--tbg-line);
    border-radius: var(--tbg-radius);

    box-shadow: none;
}

.card {
    overflow: hidden;
}

.card-header {
    color: var(--tbg-text-bright);

    background: var(--tbg-bg-raised);
    border-bottom: 1px solid var(--tbg-line);

    font-family: var(--tbg-font-mono);
    font-size: 0.78rem;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body {
    background:
        linear-gradient(
            135deg,
            rgba(131, 200, 217, 0.025),
            transparent 45%
        );
}

.jumbotron {
    padding: 2.5rem;

    background:
        linear-gradient(
            120deg,
            rgba(131, 200, 217, 0.045),
            transparent 50%
        ),
        var(--tbg-panel);
}

.dropdown-item {
    color: var(--tbg-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--tbg-text-bright);
    background: var(--tbg-panel-soft);
}


/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
    border-radius: var(--tbg-radius);

    font-family: var(--tbg-font-mono);
    font-size: 0.78rem;
    font-weight: 600;

    letter-spacing: 0.055em;
    text-transform: uppercase;

    box-shadow: none !important;
}

.btn-primary {
    color: #071013 !important;

    background: var(--tbg-accent);
    border-color: var(--tbg-accent);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #05090b !important;

    background: var(--tbg-accent-bright);
    border-color: var(--tbg-accent-bright);
}

.btn-secondary {
    color: var(--tbg-text);

    background: transparent;
    border-color: var(--tbg-line-strong);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--tbg-text-bright);

    background: var(--tbg-panel-soft);
    border-color: var(--tbg-accent-dim);
}

.btn-danger {
    background: transparent;
    border-color: var(--tbg-danger);
    color: var(--tbg-danger);
}


/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */

.form-control {
    color: var(--tbg-text-bright);

    background: #090e11;
    border: 1px solid var(--tbg-line-strong);
    border-radius: var(--tbg-radius);

    box-shadow: none !important;
}

.form-control:focus {
    color: var(--tbg-text-bright);

    background: #0a1013;

    border-color: var(--tbg-accent);
    box-shadow: 0 0 0 1px rgba(131, 200, 217, 0.16) !important;
}

.form-control::placeholder {
    color: var(--tbg-faint);
}

label {
    color: var(--tbg-muted);

    font-family: var(--tbg-font-mono);
    font-size: 0.78rem;

    letter-spacing: 0.04em;
}

.helptext,
.form-text,
.text-muted {
    color: var(--tbg-muted) !important;
}


/* -------------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------------- */

.table {
    color: var(--tbg-text);
}

.table thead th {
    color: var(--tbg-muted);

    border-top: none;
    border-bottom: 1px solid var(--tbg-line-strong);

    font-family: var(--tbg-font-mono);
    font-size: 0.72rem;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.table td,
.table th {
    border-top-color: var(--tbg-line);
}


/* -------------------------------------------------------------------------
   Alerts / messages
   ------------------------------------------------------------------------- */

.alert {
    background: var(--tbg-panel);
    border-width: 1px;
    border-radius: var(--tbg-radius);
}

.alert-info {
    color: var(--tbg-accent-bright);
    border-color: var(--tbg-accent-dim);
}

.alert-warning {
    color: var(--tbg-warning);
    border-color: var(--tbg-warning);
}

.alert-danger {
    color: var(--tbg-danger);
    border-color: var(--tbg-danger);
}

.alert-success {
    color: var(--tbg-success);
    border-color: var(--tbg-success);
}


/* -------------------------------------------------------------------------
   Code / technical text
   ------------------------------------------------------------------------- */

code,
pre,
kbd,
samp {
    font-family: var(--tbg-font-mono);
}

code {
    color: var(--tbg-accent-bright);
}

pre {
    color: var(--tbg-text);
    background: #070b0d;

    border: 1px solid var(--tbg-line);
    border-left: 2px solid var(--tbg-accent-dim);

    padding: 1rem;
}


/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.footer {
    position: relative;

    padding: 2rem 0;

    color: var(--tbg-faint) !important;
    background: #070a0c !important;

    border-top: 1px solid var(--tbg-line);
}

.footer::before {
    content: "";

    position: absolute;
    top: -1px;
    right: 0;

    width: 120px;
    height: 1px;

    background: var(--tbg-accent-dim);
}

.footer,
.footer a,
.footer .text-white {
    color: var(--tbg-muted) !important;
}

.footer a:hover {
    color: var(--tbg-accent-bright) !important;
}


/* -------------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .navbar {
        min-height: 60px;
    }

    .main-content {
        margin-top: 1.5rem !important;
        margin-bottom: 3rem;
        padding-top: 1rem;
    }

    .main-content::before {
        margin-bottom: 1.4rem;
    }

    .jumbotron {
        padding: 1.5rem;
    }

    h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }
}


/* -------------------------------------------------------------------------
   Motion preference
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* === NEON DRIFTERS PHASE 1B ===
 *
 * Public masthead and homepage.
 *
 * Gelatinous (Daiimus) informed the use of a restrained aligned homepage
 * rather than Evennia's stock card stack. The visual implementation and
 * content below are specific to NEON DRIFTERS.
 */

/* Wordmark --------------------------------------------------------------- */

.nd-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.nd-wordmark,
.nd-hero-title {
  font-family: var(--font-display, inherit);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nd-wordmark {
  font-size: 0.96rem;
  color: var(--text-strong, #eef5f7);
}

.nd-wordmark-o {
  display: inline-block;
  color: var(--accent, #79c9df);
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 0.88em;
  height: 0.88em;
  line-height: 0.76em;
  text-align: center;
  margin: 0 0.04em;
  transform: translateY(-0.01em);
}

.nd-tagline {
  margin-top: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted, #82949b);
}


/* Homepage --------------------------------------------------------------- */

.nd-hero {
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-kicker,
.nd-principle-code,
.nd-status-heading,
.nd-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.nd-kicker,
.nd-principle-code,
.nd-stat-label {
  color: var(--text-muted, #82949b);
}

.nd-hero-title {
  margin: 1.1rem 0 0;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.94;
  color: var(--text-strong, #eef5f7);
}

.nd-hero-title .nd-wordmark-o {
  border-width: 2px;
}

.nd-hero-subtitle {
  margin-top: 1rem;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent, #79c9df);
}

.nd-hero-copy {
  max-width: 68ch;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.nd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.nd-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  background: var(--border, rgba(150, 190, 205, 0.18));
}

.nd-principle {
  padding: 2rem 1.6rem 2.25rem 0;
  background: var(--bg, #081014);
}

.nd-principle + .nd-principle {
  padding-left: 1.6rem;
}

.nd-principle h2 {
  margin-top: 0.8rem;
  font-size: 1.15rem;
}

.nd-principle p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.nd-status {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-status-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  color: var(--text-muted, #82949b);
}

.nd-status-state {
  color: var(--success, #88c999);
}

.nd-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-left: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-stat {
  padding: 1.35rem;
  border-right: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-strong, #eef5f7);
}

.nd-stat-label {
  margin-top: 0.35rem;
}

.nd-development {
  max-width: 68ch;
  padding: 3rem 0 4.5rem;
}

.nd-development h2 {
  margin-top: 0.8rem;
}

.nd-development p {
  margin-bottom: 0;
}


/* Responsive ------------------------------------------------------------- */

@media (max-width: 767.98px) {
  .nd-brand {
    padding: 0.3rem 0;
  }

  .nd-principles {
    grid-template-columns: 1fr;
    background: transparent;
  }

  .nd-principle,
  .nd-principle + .nd-principle {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  }

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

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

  .nd-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nd-hero-actions .btn {
    width: 100%;
  }
}

/* === NEON DRIFTERS PHASE 1B.1 ===
 *
 * Homepage visual cleanup after first live verification.
 */

/*
 * The stock-layout network label predates the NEON DRIFTERS homepage.
 * The hero now supplies its own public-network context, so don't duplicate it.
 */
.main-content::before {
  content: none;
  display: none;
}

/*
 * Keep the O distinctive without letting it overpower the wordmark.
 * The interior follows the page background rather than becoming a solid badge.
 */
.nd-wordmark-o {
  color: var(--accent, #79c9df);
  background: transparent;
}

.nd-hero-title .nd-wordmark-o {
  border-width: 2px;
  box-shadow: inset 0 0 0 0.08em rgba(121, 201, 223, 0.16);
}



/* === NEON DRIFTERS PHASE 1B.2 ===
 * Preserve the CityNET service mark inside uppercase system-label text.
 */
.nd-citynet {
  text-transform: none;
}

/* === NEON DRIFTERS CITYNET MAP PLACEHOLDER === */

.nd-map-header {
  padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem;
}

.nd-map-header h1 {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.nd-map-intro {
  max-width: 65ch;
  font-size: 1.05rem;
}

.nd-map-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-map-notice strong {
  letter-spacing: 0.1em;
  color: var(--warning, #d7ae69);
}

.nd-map-placeholder {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  border: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  background: rgba(10, 20, 24, 0.7);
}

.nd-map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(
      rgba(121, 201, 223, 0.13) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(121, 201, 223, 0.13) 1px,
      transparent 1px
    );
  background-size: 3rem 3rem;
}

.nd-map-placeholder-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: clamp(2rem, 6vw, 5rem);
}

.nd-map-placeholder-title {
  margin-top: 0.85rem;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--text-strong, #eef5f7);
}

.nd-map-placeholder-copy p {
  margin-top: 1.2rem;
}

.nd-map-directory {
  padding: 3rem 0;
}

.nd-map-directory h2 {
  margin-top: 0.7rem;
  margin-bottom: 1.5rem;
}

.nd-map-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-left: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-map-category {
  min-height: 13rem;
  padding: 1.3rem;
  border-right: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-map-category-id,
.nd-map-category-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #82949b);
}

.nd-map-category h3 {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.nd-map-category p {
  font-size: 0.9rem;
}

.nd-map-category-status {
  margin-top: 1.2rem;
  color: var(--warning, #d7ae69);
}

.nd-map-boundary {
  max-width: 65ch;
  padding: 0 0 4.5rem;
}

.nd-map-boundary h2 {
  margin-top: 0.7rem;
}

@media (max-width: 991.98px) {
  .nd-map-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .nd-map-placeholder {
    min-height: 20rem;
  }

  .nd-map-category-grid {
    grid-template-columns: 1fr;
  }
}

/* === NEON DRIFTERS CITYNET SERVICES === */

.nd-city-services {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-city-services h2 {
  margin-top: 0.7rem;
  margin-bottom: 0.8rem;
}

.nd-city-services-intro {
  max-width: 65ch;
  margin-bottom: 1.8rem;
}

.nd-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-left: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-service-card {
  min-height: 12.5rem;
  padding: 1.3rem;
  border-right: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-service-id,
.nd-service-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #82949b);
}

.nd-service-card h3 {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.nd-service-card p {
  font-size: 0.9rem;
}

.nd-service-status {
  margin-top: 1.2rem;
  color: var(--warning, #d7ae69);
}

@media (max-width: 991.98px) {
  .nd-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* === NEON DRIFTERS CITYNET NESTED SERVICES === */

.nd-map-category {
  display: flex;
  flex-direction: column;
}

.nd-map-category-services {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-map-category-services-label {
  margin-bottom: 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #82949b);
}

.nd-map-category-service {
  padding: 0.18rem 0;
  font-size: 0.82rem;
  color: var(--accent, #79c9df);
}

.nd-map-category-status {
  margin-top: auto;
  padding-top: 1.1rem;
}

/* === NEON DRIFTERS CITYNET GUIDE === */

.nd-guide-header {
  padding: clamp(2.5rem, 6vw, 5rem) 0 3rem;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-guide-header h1 {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.nd-guide-intro {
  max-width: 65ch;
  font-size: 1.05rem;
}

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

.nd-guide-directory {
  padding: 3rem 0;
}

.nd-guide-directory h2 {
  margin-top: 0.7rem;
  margin-bottom: 1.5rem;
}

.nd-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-left: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-guide-card {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  padding: 1.3rem;
  border-right: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-guide-id,
.nd-guide-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #82949b);
}

.nd-guide-card h3 {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.nd-guide-card p {
  font-size: 0.9rem;
}

.nd-guide-status {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--warning, #d7ae69);
}

.nd-guide-boundary {
  max-width: 65ch;
  padding: 0 0 4.5rem;
}

.nd-guide-boundary h2 {
  margin-top: 0.7rem;
}

@media (max-width: 991.98px) {
  .nd-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nd-guide-actions {
    flex-direction: column;
  }

  .nd-guide-actions .btn {
    width: 100%;
  }
}

/* === NEON DRIFTERS GUIDE ARTICLES === */

.nd-guide-card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nd-guide-article {
  max-width: 58rem;
  padding: 1rem 0 5rem;
}

.nd-guide-step {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

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

.nd-guide-step-number {
  margin-bottom: 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted, #82949b);
}

.nd-guide-step h2 {
  margin-bottom: 1rem;
}

.nd-guide-step p {
  max-width: 68ch;
}

.nd-command-example {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  background: rgba(0, 0, 0, 0.18);
}

.nd-command-example code {
  font-size: 1rem;
  color: var(--accent, #7fc8dc);
}

/* === NEON DRIFTERS PRINCIPLE GRID BORDER FIX === */
.nd-principles {
  border-left: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

/* === NEON DRIFTERS ACCOUNT SERVICES === */

.nd-account-header {
  padding: clamp(2.5rem, 6vw, 5rem) 0 3rem;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-account-header h1 {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.nd-account-intro {
  max-width: 65ch;
  font-size: 1.05rem;
}

.nd-account-service {
  max-width: 65ch;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-account-service h2,
.nd-account-boundary h2 {
  margin-top: 0.7rem;
}

.nd-account-boundary {
  max-width: 65ch;
  padding: 3rem 0 4.5rem;
}

/* === NEON DRIFTERS STAFF COMMUNICATIONS === */

.nd-staff-header {
  padding: clamp(2.5rem, 6vw, 5rem) 0 3rem;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-staff-header h1 {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.nd-staff-intro {
  max-width: 65ch;
  font-size: 1.05rem;
}

.nd-staff-directory {
  padding: 3rem 0;
}

.nd-staff-directory h2 {
  margin-top: 0.7rem;
  margin-bottom: 1.4rem;
}

.nd-channel-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-channel-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.nd-channel-table th,
.nd-channel-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-channel-table tr:last-child td {
  border-bottom: 0;
}

.nd-channel-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #82949b);
  background: rgba(255, 255, 255, 0.015);
}

.nd-channel-table td {
  font-size: 0.92rem;
}

.nd-channel-table td:first-child {
  width: 20%;
  white-space: nowrap;
}

.nd-channel-table td:last-child,
.nd-channel-table th:last-child {
  width: 10rem;
}

.nd-channel-count {
  font-family: var(--font-mono, monospace);
  color: var(--accent, #7fc8dc);
}

.nd-channel-empty {
  color: var(--text-muted, #82949b);
}

.nd-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nd-staff-boundary {
  max-width: 65ch;
  padding: 0 0 4.5rem;
}

.nd-staff-boundary h2 {
  margin-top: 0.7rem;
}

@media (max-width: 575.98px) {
  .nd-channel-table th,
  .nd-channel-table td {
    padding: 0.8rem;
  }

  .nd-channel-table td:first-child {
    white-space: normal;
  }
}

/* === NEON DRIFTERS CHANNEL DETAIL === */

.nd-channel-record {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-channel-record-main h2 {
  margin-top: 0.7rem;
  margin-bottom: 1.4rem;
}

.nd-channel-log {
  border-top: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-left: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-right: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-channel-log-entry {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-channel-log-time {
  margin-bottom: 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted, #82949b);
}

.nd-channel-log-message {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.nd-channel-log-empty {
  padding: 1.25rem;
  border: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  color: var(--text-muted, #82949b);
}

.nd-channel-record-sidebar {
  align-self: start;
}

.nd-channel-metadata {
  margin-top: 1rem;
  border-top: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-left: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-right: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-channel-meta-row {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-channel-meta-key {
  margin-bottom: 0.25rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #82949b);
}

.nd-channel-meta-value {
  font-size: 0.88rem;
}

.nd-channel-index {
  margin-top: 1.5rem;
  border: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-channel-index-title {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #82949b);
}

.nd-channel-index-link {
  display: block;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-channel-index-link:last-child {
  border-bottom: 0;
}

@media (max-width: 991.98px) {
  .nd-channel-record {
    grid-template-columns: 1fr;
  }
}



/* === NEON DRIFTERS WEBSITE-MAP-1A — REAL PUBLIC CITYNET MAP === */

.nd-map-notice--online strong {
  color: var(--accent, #79c9df);
}

.nd-city-map-panel {
  padding-bottom: 3.5rem;
}

.nd-city-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.nd-city-map-heading h2 {
  margin-top: 0.55rem;
  margin-bottom: 0;
}

.nd-city-map-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #82949b);
}

.nd-city-map-viewport {
  overflow: auto;
  border: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  background: rgba(5, 12, 15, 0.88);
}

.nd-city-map-svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  background: rgba(4, 10, 13, 0.96);
}

.nd-city-map-cell {
  stroke: rgba(7, 15, 18, 0.34);
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-cell--built-up {
  fill: rgba(115, 132, 140, 0.42);
}

.nd-city-map-cell--road {
  fill: rgba(121, 201, 223, 0.78);
}

.nd-city-map-cell--park {
  fill: rgba(78, 133, 88, 0.68);
}

.nd-city-map-cell--vegetation {
  fill: rgba(74, 108, 78, 0.48);
}

.nd-city-map-cell--open {
  fill: rgba(78, 88, 91, 0.20);
}

.nd-city-map-cell--marsh {
  fill: rgba(66, 112, 101, 0.52);
}

.nd-city-map-cell--water {
  fill: rgba(37, 91, 120, 0.66);
}

.nd-city-map-cell--deep-water {
  fill: rgba(21, 58, 84, 0.88);
}

.nd-city-map-station circle {
  fill: var(--warning, #d7ae69);
  stroke: rgba(8, 15, 18, 0.95);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-station text {
  font-size: 6px;
  font-weight: 900;
  text-anchor: middle;
  fill: rgba(5, 10, 12, 0.98);
  pointer-events: none;
}

.nd-city-map-north text {
  font-size: 15px;
  font-weight: 900;
  text-anchor: middle;
  fill: var(--text-strong, #eef5f7);
}

.nd-city-map-north path {
  fill: var(--text-strong, #eef5f7);
}

.nd-city-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  padding: 1rem 0;
  font-size: 0.75rem;
  color: var(--text-muted, #82949b);
}

.nd-city-map-legend-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nd-city-map-legend-swatch {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(150, 190, 205, 0.18);
}

.nd-city-map-legend-station {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.52rem;
  font-weight: 900;
  color: rgba(5, 10, 12, 0.98);
  background: var(--warning, #d7ae69);
}

.nd-city-map-transit,
.nd-city-map-districts {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-city-map-transit h2,
.nd-city-map-districts h2 {
  margin-top: 0.6rem;
  margin-bottom: 1.25rem;
}

.nd-city-map-station-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-left: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-city-map-station-card {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  border-bottom: 1px solid var(--border, rgba(150, 190, 205, 0.18));
}

.nd-city-map-station-code {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--warning, #d7ae69);
}

.nd-city-map-district-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.nd-city-map-district-list span {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border, rgba(150, 190, 205, 0.18));
  font-size: 0.78rem;
  color: var(--text-muted, #82949b);
}

.nd-map-directory-intro {
  max-width: 70ch;
  margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
  .nd-city-map-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nd-city-map-stats {
    justify-content: flex-start;
  }

  .nd-city-map-station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .nd-city-map-station-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   NEON DRIFTERS — WEBSITE-MAP-1A2 CARTOGRAPHIC RENDERER
   Exact authored geometry; presentation-only visual upgrade.
   ================================================================ */

.nd-city-map-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(105, 204, 226, 0.30);
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(27, 71, 82, 0.22),
      rgba(3, 9, 12, 0.96) 68%
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    inset 0 0 60px rgba(23, 112, 135, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.26);
}

.nd-city-map-console-topline,
.nd-city-map-console-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1.2rem;
  padding: 0.62rem 0.85rem;
  font-family:
    "Roboto Mono",
    "Courier New",
    monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(126, 209, 228, 0.64);
  background: rgba(3, 12, 15, 0.72);
}

.nd-city-map-console-topline {
  border-bottom: 1px solid rgba(105, 204, 226, 0.16);
}

.nd-city-map-console-footer {
  justify-content: flex-start;
  border-top: 1px solid rgba(105, 204, 226, 0.16);
}

.nd-city-map-viewport {
  position: relative;
  overflow: auto;
  border: 0;
  background: #061014;
}

.nd-city-map-svg {
  display: block;
  width: 100%;
  min-width: 820px;
  height: auto;
  background: #061014;
}

.nd-city-map-backdrop {
  fill: #061014;
}

.nd-city-map-terrain-run {
  stroke: none;
  shape-rendering: crispEdges;
}


/* Terrain palette */

.nd-city-map-cell--built-up {
  fill: #1b292e;
}

.nd-city-map-cell--road {
  fill: #377c8b;
}

.nd-city-map-cell--park {
  fill: #294a3b;
}

.nd-city-map-cell--vegetation {
  fill: #243c32;
}

.nd-city-map-cell--open {
  fill: #101b1e;
}

.nd-city-map-cell--marsh {
  fill: #1c4546;
}

.nd-city-map-cell--water {
  fill: #12364b;
}

.nd-city-map-cell--deep-water {
  fill: #092739;
}


/*
Road cells remain exact authored map cells. This soft inset light gives them
the appearance of a continuous illuminated transport layer without moving
or widening the actual geometry.
*/

.nd-city-map-terrain .nd-city-map-cell--road {
  filter: url(#nd-map-road-glow);
}


/* Subtle CityNET display texture */

.nd-city-map-scan-line {
  stroke: rgba(132, 222, 239, 0.035);
  stroke-width: 0.7;
}

.nd-city-map-scan-overlay {
  opacity: 0.55;
}


/* Major road names */

.nd-city-map-road-labels text {
  font-family:
    "Roboto Mono",
    "Courier New",
    monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.0px;
  text-anchor: middle;
  dominant-baseline: central;
  fill: rgba(197, 235, 242, 0.72);
  stroke: rgba(4, 13, 16, 0.94);
  stroke-width: 3.1px;
  paint-order: stroke fill;
  pointer-events: none;
}


/* District labels */

.nd-city-map-district-label,
.nd-city-map-district-label-shadow {
  font-family:
    "Arial Narrow",
    "Roboto Condensed",
    sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-anchor: middle;
  dominant-baseline: central;
  text-transform: uppercase;
  pointer-events: none;
}

.nd-city-map-district-label-shadow {
  fill: transparent;
  stroke: rgba(2, 8, 10, 0.90);
  stroke-width: 5.5px;
}

.nd-city-map-district-label {
  fill: rgba(219, 237, 241, 0.70);
}


/* Monorail stations */

.nd-city-map-station-ring {
  fill: rgba(221, 173, 81, 0.08);
  stroke: rgba(236, 191, 100, 0.82);
  stroke-width: 2.1px;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-station-core {
  fill: #e1b15d;
  stroke: #071014;
  stroke-width: 1.7px;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-station-text {
  font-family:
    "Roboto Mono",
    "Courier New",
    monospace;
  font-size: 5.3px;
  font-weight: 900;
  text-anchor: middle;
  fill: #071014;
  pointer-events: none;
}

.nd-city-map-station:hover .nd-city-map-station-ring {
  stroke-width: 3.5px;
}


/* North indicator */

.nd-city-map-north-ring {
  fill: rgba(4, 14, 18, 0.72);
  stroke: rgba(190, 230, 238, 0.55);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-north-arrow {
  fill: rgba(221, 239, 243, 0.92);
}

.nd-city-map-north text {
  font-family:
    "Roboto Mono",
    "Courier New",
    monospace;
  font-size: 8px;
  font-weight: 900;
  text-anchor: middle;
  fill: rgba(221, 239, 243, 0.90);
}


/* Frame */

.nd-city-map-frame {
  fill: none;
  stroke: rgba(135, 215, 232, 0.19);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}


/* Improved legend */

.nd-city-map-legend {
  padding: 1rem 0 0;
}

.nd-city-map-legend-swatch {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}


/* Smaller screens keep the map spatially legible by scrolling it instead of
   crushing a 64:40 city into an unreadable thumbnail. */

@media (max-width: 767.98px) {
  .nd-city-map-svg {
    width: 920px;
    max-width: none;
  }

  .nd-city-map-console-footer {
    gap: 0.45rem 0.85rem;
  }
}



/* ================================================================
   WEBSITE-MAP-1A3 — CENTERLINE CARTOGRAPHY
   Replace bright full-cell road rendering with map-like streets.
   ================================================================ */

.nd-city-map-cell--roadbed {
  fill: #101a1e;
}

/* Kill the earlier whole-cell road glow. */
.nd-city-map-terrain .nd-city-map-cell--road,
.nd-city-map-terrain .nd-city-map-cell--roadbed {
  filter: none;
}


/* District outlines */

.nd-city-map-district-edge {
  stroke: rgba(154, 188, 196, 0.13);
  stroke-width: 0.8;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.nd-city-map-district-edge--emphasis {
  stroke: rgba(217, 177, 94, 0.48);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}


/* Exact road centerlines */

.nd-city-map-road-casing,
.nd-city-map-road-core {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-road-casing {
  stroke: rgba(4, 10, 13, 0.92);
}

.nd-city-map-road-core {
  stroke: rgba(131, 185, 196, 0.92);
}

.nd-city-map-road-casing--arterial {
  stroke-width: 9px;
}

.nd-city-map-road-core--arterial {
  stroke-width: 5.2px;
}

.nd-city-map-road-casing--major {
  stroke-width: 7px;
}

.nd-city-map-road-core--major {
  stroke-width: 3.8px;
}

.nd-city-map-road-casing--local {
  stroke-width: 5px;
}

.nd-city-map-road-core--local {
  stroke-width: 2.4px;
  stroke: rgba(111, 157, 166, 0.72);
}


/* Roads are reference information, not glowing neon rivers. */

.nd-city-map-road-labels text {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.55px;
  fill: rgba(196, 220, 225, 0.72);
  stroke: rgba(4, 10, 13, 0.96);
  stroke-width: 2.4px;
}


/* District names recede behind the transport network. */

.nd-city-map-district-label,
.nd-city-map-district-label-shadow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.nd-city-map-district-label-shadow {
  stroke-width: 4px;
}

.nd-city-map-district-label {
  fill: rgba(215, 231, 235, 0.72);
}


/* Smaller transit markers. */

.nd-city-map-station-ring {
  r: 8px;
  stroke-width: 1.4px;
}

.nd-city-map-station-core {
  r: 4.6px;
  stroke-width: 1.2px;
}

.nd-city-map-station-text {
  font-size: 4px;
}


/* Tone down display texture. */

.nd-city-map-scan-overlay {
  opacity: 0.22;
}


/* Real HTML legend colors. SVG fill does not paint span elements. */

.nd-city-map-legend-swatch {
  position: relative;
  background: #101a1e;
}

.nd-city-map-legend-swatch.nd-city-map-cell--built-up {
  background: #1b292e;
}

.nd-city-map-legend-swatch.nd-city-map-cell--park {
  background: #294a3b;
}

.nd-city-map-legend-swatch.nd-city-map-cell--vegetation {
  background: #243c32;
}

.nd-city-map-legend-swatch.nd-city-map-cell--open {
  background: #101b1e;
}

.nd-city-map-legend-swatch.nd-city-map-cell--marsh {
  background: #1c4546;
}

.nd-city-map-legend-swatch.nd-city-map-cell--water {
  background: #12364b;
}

.nd-city-map-legend-swatch.nd-city-map-cell--deep-water {
  background: #092739;
}

.nd-city-map-legend-swatch.nd-city-map-cell--road {
  background: #101a1e;
}

.nd-city-map-legend-swatch.nd-city-map-cell--road::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(131, 185, 196, 0.92);
}


/* Make water and green space readable without screaming. */

.nd-city-map-cell--water {
  fill: #12364b;
}

.nd-city-map-cell--deep-water {
  fill: #08283c;
}

.nd-city-map-cell--marsh {
  fill: #173b3c;
}

.nd-city-map-cell--park {
  fill: #223e32;
}

.nd-city-map-cell--vegetation {
  fill: #1d332b;
}

.nd-city-map-cell--built-up {
  fill: #182327;
}

.nd-city-map-cell--open {
  fill: #0e171a;
}



/* ================================================================
   WEBSITE-MAP-2A — APPROVED STATIC PUBLIC MAP
   ================================================================ */

.nd-city-map-image-panel {
  padding-bottom: 3.5rem;
}

.nd-city-map-image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(105, 204, 226, 0.30);
  background: rgba(4, 10, 13, 0.96);
  box-shadow:
    0 16px 46px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.nd-city-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.nd-city-map-image-frame figcaption {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(105, 204, 226, 0.16);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-muted, #82949b);
  background: rgba(3, 12, 15, 0.82);
}


/* MAP-3A / MAP-3B — FROZEN BASE + RESPONSIVE SVG OVERLAY */

.nd-city-map-stage {
  position: relative;
  width: 100%;
  line-height: 0;
}

.nd-city-map-stage .nd-city-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.nd-city-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.nd-city-map-overlay > g {
  pointer-events: none;
}


/* MAP-3C-2 — TEMPORARY CALIBRATION MARKERS */

.nd-city-map-calibration-marker {
  pointer-events: none;
}

.nd-city-map-calibration-ring {
  fill: rgba(2, 8, 12, 0.88);
  stroke: #ff3bd4;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-calibration-crosshair {
  stroke: #ffffff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-calibration-code,
.nd-city-map-calibration-coords {
  font-family: monospace;
  font-weight: 700;
  paint-order: stroke;
  stroke: #02080c;
  stroke-width: 5;
  stroke-linejoin: round;
}

.nd-city-map-calibration-code {
  fill: #ffffff;
  font-size: 17px;
}

.nd-city-map-calibration-coords {
  fill: #ffd75e;
  font-size: 13px;
}


/* MAP-3C-3 — TEMPORARY ROADS-ONLY CALIBRATION */

#nd-city-map-road-calibration {
  pointer-events: none;
}

.nd-city-map-road-calibration-segment {
  fill: none;
  stroke: #ff3bd4;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.nd-city-map-road-calibration-major {
  stroke-width: 3;
}

.nd-city-map-road-calibration-arterial {
  stroke-width: 3.6;
}


/* MAP-3C-3B — TEMPORARY ROAD-NAME CALIBRATION LABELS */

.nd-city-map-road-calibration-label {
  fill: #ffe45e;
  stroke: #05090d;
  stroke-width: 4px;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25px;
  dominant-baseline: middle;
  pointer-events: none;
}


/* ================================================================
   MAP-3G-1B — PUBLIC POI MARKERS + DIRECTORY
   ================================================================ */

.nd-city-map-pois {
  pointer-events: none;
}

.nd-city-map-poi-wrap,
.nd-city-map-poi {
  pointer-events: none;
}

.nd-city-map-poi-leader {
  stroke: rgba(118, 226, 243, 0.64);
  stroke-width: 1.15px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.nd-city-map-poi-anchor {
  fill: #dffbff;
  stroke: rgba(2, 8, 11, 0.98);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.nd-city-map-poi-ring {
  fill: rgba(3, 11, 15, 0.94);
  stroke: rgba(113, 224, 241, 0.96);
  stroke-width: 1.6px;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-poi-core {
  fill: rgba(13, 42, 50, 0.97);
  stroke: rgba(4, 12, 16, 0.96);
  stroke-width: 0.9px;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-poi-code {
  fill: #f1fdff;
  stroke: rgba(2, 8, 11, 0.99);
  stroke-width: 2px;
  paint-order: stroke fill;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.45px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.nd-map-poi-directory {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(105, 204, 226, 0.18);
}

.nd-map-poi-directory-intro {
  max-width: 62rem;
  color: var(--text-muted, #82949b);
}

.nd-map-poi-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(240px, 1fr)
    );
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.nd-map-poi-entry {
  min-width: 0;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(105, 204, 226, 0.16);
  background: rgba(3, 12, 15, 0.72);
}

.nd-map-poi-entry-code {
  margin-bottom: 0.28rem;
  color: rgba(113, 224, 241, 0.96);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nd-map-poi-entry h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
}

.nd-map-poi-entry-alias {
  margin-top: 0.3rem;
  color: rgba(193, 216, 221, 0.82);
  font-size: 0.72rem;
  line-height: 1.35;
}

.nd-map-poi-entry-district {
  margin-top: 0.38rem;
  color: var(--text-muted, #82949b);
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.025em;
}

@media (max-width: 767.98px) {
  .nd-map-poi-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   MAP-3H-1-R2 — INTERACTIVE MAP VIEWPORT
   ================================================================ */

.nd-city-map-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  background: rgba(3, 9, 12, 0.98);
}

.nd-city-map-viewport.is-dragging {
  cursor: grabbing;
}

.nd-city-map-viewport:focus-visible {
  outline: 2px solid rgba(113, 224, 241, 0.92);
  outline-offset: -2px;
}

.nd-city-map-viewport .nd-city-map-stage {
  transform-origin: 0 0;
  will-change: transform;
}

.nd-city-map-controls {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem;
  border: 1px solid rgba(113, 224, 241, 0.42);
  border-radius: 4px;
  background: rgba(2, 9, 13, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  line-height: 1;
  pointer-events: auto;
}

.nd-city-map-control {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(113, 224, 241, 0.42);
  border-radius: 3px;
  background: rgba(9, 31, 38, 0.97);
  color: #e9fcff;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.nd-city-map-control:hover,
.nd-city-map-control:focus-visible {
  border-color: rgba(113, 224, 241, 0.95);
  background: rgba(17, 55, 65, 0.99);
  outline: none;
}

.nd-city-map-control:disabled {
  opacity: 0.4;
  cursor: default;
}

.nd-city-map-control:active:not(:disabled) {
  transform: translateY(1px);
}

.nd-city-map-zoom-readout {
  min-width: 3.8rem;
  padding: 0 0.35rem;
  color: rgba(218, 248, 253, 0.94);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}

.nd-city-map-viewport .nd-city-map-image {
  pointer-events: none;
  -webkit-user-drag: none;
}

.nd-city-map-viewport .nd-city-map-overlay {
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .nd-city-map-controls {
    top: 0.4rem;
    right: 0.4rem;
    gap: 0.25rem;
    padding: 0.3rem;
  }

  .nd-city-map-control {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
  }
}

@media print {
  .nd-city-map-controls {
    display: none;
  }
}


/* ================================================================
   MAP-3H-2B — SVG VIEWBOX PAN/ZOOM
   The stage itself is never scaled.  The existing raster base is
   inserted into the SVG by citynet_map.js and the SVG viewBox is
   used for navigation.
   ================================================================ */

.nd-city-map-viewport .nd-city-map-stage {
  transform: none;
  transform-origin: initial;
  will-change: auto;
}

.nd-city-map-viewport.is-viewbox-ready
.nd-city-map-stage > .nd-city-map-image {
  display: none;
}

.nd-city-map-viewport.is-viewbox-ready
.nd-city-map-overlay {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1453 / 1082;
  overflow: hidden;
}

.nd-city-map-svg-base {
  pointer-events: none;
  user-select: none;
}


/* ================================================================
   MAP-3I-1B — MONORAIL PRESENTATION
   Canonical route/station identity comes from the backend transit
   registry.  Artwork-space route geometry is browser presentation.
   ================================================================ */

.nd-city-map-monorail-route-layer,
.nd-city-map-monorail-station-layer {
  pointer-events: none;
}

.nd-city-map-monorail-halo {
  fill: none;
  stroke: rgba(2, 10, 14, 0.92);
  stroke-width: 9px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.nd-city-map-monorail-route {
  fill: none;
  stroke: #65e8ff;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.nd-city-map-monorail-stop {
  pointer-events: none;
}

.nd-city-map-monorail-stop-ring {
  fill: rgba(2, 10, 14, 0.98);
  stroke: #65e8ff;
  stroke-width: 2.4px;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-monorail-stop-core {
  fill: rgba(7, 35, 44, 0.98);
  stroke: rgba(223, 252, 255, 0.88);
  stroke-width: 0.8px;
  vector-effect: non-scaling-stroke;
}

.nd-city-map-monorail-stop-code {
  fill: #f3fdff;
  stroke: rgba(2, 8, 11, 0.99);
  stroke-width: 2px;
  paint-order: stroke fill;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 8px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}


/* ================================================================
   MAP-3J-ROAD-1 — ROAD LINES ONLY

   Presentation only.
   No road-name styling.
   No label movement.
   No label rotation.
   No route geometry changes.
   ================================================================ */

.nd-city-map-road-calibration-segment {
  stroke: #ff9f43;
  stroke-width: 3.2px;
  opacity: 0.98;

  stroke-linecap: round;
  stroke-linejoin: round;

  vector-effect: non-scaling-stroke;

  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 1))
    drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.72));
}

/*
 * Preserve the existing hierarchy, only slightly heavier than
 * the ordinary route width.
 */
.nd-city-map-road-calibration-major {
  stroke-width: 3.6px;
}

.nd-city-map-road-calibration-arterial {
  stroke-width: 4px;
}

