/*
 * 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;
  }
}

