/* ============================================================
   StratPulse TechLabs — Knowledge Base & Intelligence Hub CSS
   Version 1.0 · 2026
   Brand: StratPulse_Brand_Guidelines.md v2.0
   Layout inspiration: FeedBridge KB (UCP article)
   ============================================================ */

/* ------------------------------------------------------------
   0 · Google Fonts Import
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ------------------------------------------------------------
   1 · Design Tokens (Brand-accurate CSS Variables)
   ------------------------------------------------------------ */
:root {
  /* Core Brand Colors */
  --sp-deep-navy:       #000D28;
  --sp-electric-blue:   #7170E7;
  --sp-brand-purple:    #A272D4;
  --sp-vivid-magenta:   #D36FC9;
  --sp-cloud-white:     #F7F7FC;
  --sp-pure-white:      #FFFFFF;

  /* Supporting / Neutrals */
  --sp-dark-slate:      #444460;
  --sp-mid-gray:        #8888A8;
  --sp-muted-blue-gray: #8888B8;
  --sp-light-gray:      #EEEEF5;
  --sp-dark-panel:      #050F2E;
  --sp-dark-border:     #1A2A50;

  /* Gradient */
  --sp-gradient: linear-gradient(90deg, #7170E7, #A272D4, #D36FC9);
  --sp-gradient-diag: linear-gradient(135deg, #7170E7, #A272D4, #D36FC9);

  /* Typography */
  --font-primary: 'DM Sans', Calibri, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing Scale */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  32px;
  --sp-xl:  64px;
  --sp-2xl: 128px;

  /* Layout */
  --content-max:    860px;
  --sidebar-width:  240px;
  --hub-max:        1280px;
  --page-padding:   clamp(16px, 4vw, 48px);
}

/* ------------------------------------------------------------
   2 · Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--sp-pure-white);
  color: var(--sp-dark-slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--sp-electric-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   3 · Intelligence Hub — Top Navigation Bar
   ------------------------------------------------------------ */
/* ── Gradient top rule ── */
.sp-hub-nav__grad {
  height: 3px;
  background: var(--sp-gradient);
}

.sp-hub-nav {
  background: var(--sp-deep-navy);
  border-bottom: 1px solid var(--sp-dark-border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.sp-hub-nav__inner {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.sp-hub-nav__logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* ── Primary nav list ── */
.sp-hub-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

/* Top-level links & dropdown triggers */
.sp-hub-nav__links > li > a,
.sp-nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
}

.sp-hub-nav__links > li > a:hover,
.sp-nav-dropdown__trigger:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

/* Active state — gradient underline */
.sp-hub-nav__links > li > a[aria-current="page"],
.sp-hub-nav__links > li.sp-nav-active > .sp-nav-dropdown__trigger {
  color: var(--sp-electric-blue);
}

/* Caret icon for dropdowns */
.sp-nav-caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: transform 0.18s;
}

/* ── Dropdown panel (level 1) ── */
.sp-nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.sp-nav-dropdown__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--sp-dark-panel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 9999;
  flex-direction: column;
}

.sp-nav-dropdown:hover > .sp-nav-dropdown__panel,
.sp-nav-dropdown:focus-within > .sp-nav-dropdown__panel {
  display: flex;
}

.sp-nav-dropdown:hover .sp-nav-caret {
  transform: rotate(180deg);
}

/* Level-1 panel items */
.sp-nav-dropdown__panel > a,
.sp-nav-dropdown__panel > .sp-nav-sub {
  display: block;
}

.sp-nav-dropdown__panel > a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 10px 18px;
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.sp-nav-dropdown__panel > a:hover {
  color: #fff;
  background: rgba(113,112,231,0.12);
  text-decoration: none;
}

/* ── Section header inside dropdown (non-clickable label) ── */
.sp-nav-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 12px 18px 4px;
}

/* ── Nested sub-menu (level 2) ── */
.sp-nav-sub {
  position: relative;
}

.sp-nav-sub__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 10px 18px;
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
}

.sp-nav-sub__trigger:hover {
  color: #fff;
  background: rgba(113,112,231,0.12);
}

/* Chevron pointing right */
.sp-nav-sub__caret {
  display: inline-block;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  opacity: 0.5;
  margin-left: 10px;
  flex-shrink: 0;
}

.sp-nav-sub__panel {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--sp-dark-panel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 10000;
  flex-direction: column;
}

.sp-nav-sub:hover > .sp-nav-sub__panel,
.sp-nav-sub:focus-within > .sp-nav-sub__panel {
  display: flex;
}

.sp-nav-sub__panel a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 10px 18px;
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
  white-space: nowrap;
  display: block;
}

.sp-nav-sub__panel a:hover {
  color: #fff;
  background: rgba(113,112,231,0.12);
  text-decoration: none;
}

/* Divider inside dropdown */
.sp-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 4px 0;
}

/* ── CTA slot (right side) ── */
.sp-hub-nav__cta {
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Responsive: mobile hamburger ── */
.sp-hub-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 201;
}

.sp-hub-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: 1px;
}

@media (max-width: 900px) {
  .sp-hub-nav__hamburger { display: flex; }
  .sp-hub-nav__cta { display: none; }

  .sp-hub-nav__links {
    display: none;
    position: absolute;
    top: 63px; /* 60px header + 3px grad */
    left: 0;
    width: 100%;
    background: var(--sp-deep-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    gap: 0;
    z-index: 199;
  }

  .sp-hub-nav__links.sp-nav-open { display: flex; }

  .sp-hub-nav__links > li > a,
  .sp-nav-dropdown__trigger {
    padding: 11px 24px;
    font-size: 12px;
    border-radius: 0;
    width: 100%;
    text-align: left;
  }

  .sp-nav-dropdown,
  .sp-nav-sub { height: auto; }

  .sp-nav-dropdown__panel,
  .sp-nav-sub__panel {
    position: static;
    display: flex !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.03);
    padding: 0;
    min-width: 100%;
  }

  .sp-nav-dropdown__panel > a,
  .sp-nav-sub__panel a {
    padding: 9px 24px 9px 36px;
    font-size: 10px;
  }

  .sp-nav-sub__trigger { padding: 9px 24px 9px 36px; font-size: 10px; cursor: default; }
  .sp-nav-sub__caret,
  .sp-nav-caret { display: none; }
  .sp-nav-section-label { padding: 10px 24px 2px 36px; }
  .sp-nav-divider { margin: 2px 0; }
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.sp-btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.sp-btn:active { transform: translateY(0); }

.sp-btn--primary {
  background: var(--sp-gradient);
  color: var(--sp-pure-white);
}

.sp-btn--outline {
  background: transparent;
  color: var(--sp-electric-blue);
  border: 1.5px solid var(--sp-electric-blue);
}

/* ------------------------------------------------------------
   4 · Intelligence Hub — Hero / Search Header
   ------------------------------------------------------------ */
.sp-hub-hero {
  background: var(--sp-deep-navy);
  padding: var(--sp-xl) var(--page-padding) var(--sp-lg);
  position: relative;
  overflow: hidden;
}

/* Gradient top bar */
.sp-hub-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sp-gradient);
}

/* Decorative orb */
.sp-hub-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113,112,231,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sp-hub-hero__inner {
  max-width: var(--hub-max);
  margin: 0 auto;
}

.sp-hub-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-electric-blue);
  margin-bottom: var(--sp-sm);
}

.sp-hub-hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--sp-pure-white);
  line-height: 1.05;
  margin-bottom: var(--sp-md);
  letter-spacing: -0.02em;
}

.sp-hub-hero__subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--sp-muted-blue-gray);
  max-width: 560px;
  margin-bottom: var(--sp-lg);
  line-height: 1.6;
}

/* Search bar */
.sp-search {
  display: flex;
  max-width: 540px;
  gap: 0;
}

.sp-search__input {
  flex: 1;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  color: var(--sp-pure-white);
  background: rgba(255,255,255,0.07);
  border: 1.5px solid var(--sp-dark-border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.sp-search__input::placeholder {
  color: var(--sp-muted-blue-gray);
}

.sp-search__input:focus {
  border-color: var(--sp-electric-blue);
  background: rgba(113,112,231,0.08);
}

.sp-search__btn {
  background: var(--sp-electric-blue);
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 11px 20px;
  color: var(--sp-pure-white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.sp-search__btn:hover { background: #5f5ed4; }

/* ------------------------------------------------------------
   5 · KB Category Navigation (breadcrumb-style tabs)
   ------------------------------------------------------------ */
.sp-kb-tabs {
  background: var(--sp-cloud-white);
  border-bottom: 1px solid var(--sp-light-gray);
}

.sp-kb-tabs__inner {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sp-kb-tabs__inner::-webkit-scrollbar { display: none; }

.sp-kb-tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-mid-gray);
  padding: 14px 20px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
}

.sp-kb-tab:hover {
  color: var(--sp-dark-slate);
  text-decoration: none;
}

.sp-kb-tab--active {
  color: var(--sp-electric-blue);
  border-bottom-color: var(--sp-electric-blue);
}

/* Tag badge */
.sp-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(113,112,231,0.12);
  color: var(--sp-electric-blue);
  margin-left: 6px;
}

.sp-tag--new {
  background: rgba(211,111,201,0.12);
  color: var(--sp-vivid-magenta);
}

/* ------------------------------------------------------------
   6 · KB Article Layout — Two-Column (Content + Sidebar)
   ------------------------------------------------------------ */
.sp-kb-layout {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: var(--sp-lg) var(--page-padding) var(--sp-xl);
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--sp-xl);
  align-items: start;
}

@media (max-width: 900px) {
  .sp-kb-layout {
    grid-template-columns: 1fr;
  }
  .sp-kb-sidebar { display: none; }
}

/* ------------------------------------------------------------
   7 · Article Breadcrumb
   ------------------------------------------------------------ */
.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 12px;
  color: var(--sp-mid-gray);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
}

.sp-breadcrumb a {
  color: var(--sp-mid-gray);
  transition: color 0.2s;
}

.sp-breadcrumb a:hover {
  color: var(--sp-electric-blue);
  text-decoration: none;
}

.sp-breadcrumb__sep {
  color: var(--sp-light-gray);
  font-size: 14px;
}

.sp-breadcrumb__current {
  color: var(--sp-dark-slate);
  font-weight: 600;
}

/* ------------------------------------------------------------
   8 · Article Header
   ------------------------------------------------------------ */
.sp-article__header {
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--sp-light-gray);
}

.sp-article__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-electric-blue);
  margin-bottom: var(--sp-sm);
}

.sp-article__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--sp-deep-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}

.sp-article__lead {
  font-size: 17px;
  font-weight: 400;
  color: var(--sp-dark-slate);
  line-height: 1.65;
  max-width: 680px;
}

.sp-article__lead strong {
  color: var(--sp-deep-navy);
  font-weight: 700;
}

/* Article meta strip */
.sp-article__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
  flex-wrap: wrap;
}

.sp-article__meta-item {
  font-size: 12px;
  color: var(--sp-mid-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.sp-article__meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--sp-light-gray);
}

/* ------------------------------------------------------------
   9 · Article Body Typography
   ------------------------------------------------------------ */
.sp-article__body {
  font-size: 15px;
  color: var(--sp-dark-slate);
  line-height: 1.7;
}

.sp-article__body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--sp-deep-navy);
  margin: var(--sp-xl) 0 var(--sp-md);
  letter-spacing: -0.01em;
  padding-top: var(--sp-md);
  border-top: 1px solid var(--sp-light-gray);
}

.sp-article__body h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.sp-article__body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--sp-deep-navy);
  margin: var(--sp-lg) 0 var(--sp-sm);
}

.sp-article__body h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-electric-blue);
  margin: var(--sp-lg) 0 var(--sp-sm);
}

.sp-article__body p {
  margin-bottom: var(--sp-md);
}

.sp-article__body p:last-child { margin-bottom: 0; }

.sp-article__body strong {
  font-weight: 700;
  color: var(--sp-deep-navy);
}

.sp-article__body a {
  color: var(--sp-electric-blue);
  font-weight: 500;
  border-bottom: 1px solid rgba(113,112,231,0.3);
  transition: border-color 0.2s;
}

.sp-article__body a:hover {
  border-bottom-color: var(--sp-electric-blue);
  text-decoration: none;
}

.sp-article__body ul,
.sp-article__body ol {
  padding-left: var(--sp-lg);
  margin-bottom: var(--sp-md);
}

.sp-article__body li {
  margin-bottom: var(--sp-sm);
}

.sp-article__body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--sp-cloud-white);
  border: 1px solid var(--sp-light-gray);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--sp-dark-slate);
}

.sp-article__body pre {
  background: var(--sp-cloud-white);
  border: 1px solid var(--sp-light-gray);
  border-left: 3px solid var(--sp-electric-blue);
  border-radius: 6px;
  padding: var(--sp-md);
  overflow-x: auto;
  margin-bottom: var(--sp-md);
}

.sp-article__body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
}

/* ------------------------------------------------------------
   10 · Key Insight / Pull Quote Block
   ------------------------------------------------------------ */
.sp-callout {
  background: var(--sp-cloud-white);
  border-left: 3px solid var(--sp-electric-blue);
  border-radius: 0 8px 8px 0;
  padding: var(--sp-md) var(--sp-lg);
  margin: var(--sp-lg) 0;
}

.sp-callout--gradient {
  background: linear-gradient(135deg, rgba(113,112,231,0.06), rgba(211,111,201,0.04));
  border-left-color: var(--sp-brand-purple);
}

.sp-callout__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-electric-blue);
  margin-bottom: var(--sp-xs);
}

.sp-callout__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-deep-navy);
  line-height: 1.5;
}

/* Stat callouts */
.sp-stat-row {
  display: flex;
  gap: var(--sp-md);
  margin: var(--sp-lg) 0;
  flex-wrap: wrap;
}

.sp-stat {
  flex: 1;
  min-width: 120px;
  background: var(--sp-cloud-white);
  border: 1px solid var(--sp-light-gray);
  border-radius: 8px;
  padding: var(--sp-md);
  text-align: center;
}

.sp-stat__value {
  font-size: 28px;
  font-weight: 900;
  color: var(--sp-deep-navy);
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--sp-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-stat__label {
  font-size: 12px;
  color: var(--sp-mid-gray);
  margin-top: var(--sp-xs);
  line-height: 1.4;
}

/* ------------------------------------------------------------
   11 · Numbered Step List (How It Works style)
   ------------------------------------------------------------ */
.sp-steps {
  list-style: none;
  padding: 0;
  margin: var(--sp-lg) 0;
  counter-reset: steps;
}

.sp-step {
  display: flex;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
  counter-increment: steps;
}

.sp-step__num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--sp-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--sp-pure-white);
  font-family: var(--font-primary);
  margin-top: 2px;
}

.sp-step__num::after { content: counter(steps); }

.sp-step__content {}

.sp-step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-deep-navy);
  margin-bottom: 4px;
}

.sp-step__desc {
  font-size: 14px;
  color: var(--sp-dark-slate);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   12 · Key Components Table
   ------------------------------------------------------------ */
.sp-table-wrap {
  overflow-x: auto;
  margin: var(--sp-lg) 0;
  border-radius: 8px;
  border: 1px solid var(--sp-light-gray);
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.sp-table thead {
  background: var(--sp-deep-navy);
}

.sp-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-muted-blue-gray);
}

.sp-table thead th:first-child { border-radius: 7px 0 0 0; }
.sp-table thead th:last-child  { border-radius: 0 7px 0 0; }

.sp-table tbody tr {
  border-bottom: 1px solid var(--sp-light-gray);
  transition: background 0.15s;
}

.sp-table tbody tr:last-child { border-bottom: none; }
.sp-table tbody tr:hover { background: var(--sp-cloud-white); }

.sp-table tbody td {
  padding: 12px 16px;
  color: var(--sp-dark-slate);
  vertical-align: top;
  line-height: 1.5;
}

.sp-table tbody td:first-child {
  font-weight: 700;
  color: var(--sp-deep-navy);
}

/* Status pill in tables */
.sp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.sp-pill--blue {
  background: rgba(113,112,231,0.1);
  color: var(--sp-electric-blue);
}

.sp-pill--purple {
  background: rgba(162,114,212,0.1);
  color: var(--sp-brand-purple);
}

.sp-pill--magenta {
  background: rgba(211,111,201,0.1);
  color: var(--sp-vivid-magenta);
}

.sp-pill__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ------------------------------------------------------------
   13 · Sidebar
   ------------------------------------------------------------ */
.sp-kb-sidebar {
  position: sticky;
  top: 80px;
}

.sp-sidebar-card {
  background: var(--sp-cloud-white);
  border: 1px solid var(--sp-light-gray);
  border-radius: 8px;
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.sp-sidebar-card__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sp-electric-blue);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--sp-light-gray);
}

/* On This Page TOC */
.sp-toc {
  list-style: none;
  padding: 0;
}

.sp-toc__item {
  margin-bottom: var(--sp-sm);
}

.sp-toc__link {
  font-size: 13px;
  color: var(--sp-mid-gray);
  font-weight: 400;
  transition: color 0.2s;
  line-height: 1.4;
  display: block;
}

.sp-toc__link:hover {
  color: var(--sp-electric-blue);
  text-decoration: none;
}

.sp-toc__link--active {
  color: var(--sp-electric-blue);
  font-weight: 600;
}

/* Page Info sidebar */
.sp-page-info {
  list-style: none;
  padding: 0;
}

.sp-page-info__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--sp-light-gray);
}

.sp-page-info__item:last-child { border-bottom: none; }

.sp-page-info__label {
  color: var(--sp-mid-gray);
}

.sp-page-info__value {
  font-weight: 600;
  color: var(--sp-dark-slate);
  text-align: right;
}

/* In This Hub (related) */
.sp-related-links {
  list-style: none;
  padding: 0;
}

.sp-related-links__item {
  margin-bottom: var(--sp-sm);
}

.sp-related-links__link {
  font-size: 13px;
  color: var(--sp-electric-blue);
  font-weight: 500;
  transition: color 0.2s;
  line-height: 1.4;
  display: block;
}

.sp-related-links__link:hover {
  color: var(--sp-brand-purple);
  text-decoration: none;
}

/* CTA card in sidebar */
.sp-sidebar-cta {
  background: var(--sp-deep-navy);
  border-radius: 8px;
  padding: var(--sp-md);
  position: relative;
  overflow: hidden;
}

.sp-sidebar-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sp-gradient);
}

.sp-sidebar-cta__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--sp-pure-white);
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
}

.sp-sidebar-cta__desc {
  font-size: 12px;
  color: var(--sp-muted-blue-gray);
  margin-bottom: var(--sp-md);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   14 · FAQ Section
   ------------------------------------------------------------ */
.sp-faq {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: var(--sp-xl) var(--page-padding);
}

.sp-faq__header {
  margin-bottom: var(--sp-lg);
}

.sp-faq__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-electric-blue);
  margin-bottom: var(--sp-sm);
}

.sp-faq__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--sp-deep-navy);
  letter-spacing: -0.02em;
}

/* Accordion */
.sp-faq__list {
  border-top: 1px solid var(--sp-light-gray);
}

.sp-faq__item {
  border-bottom: 1px solid var(--sp-light-gray);
}

.sp-faq__question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md) 0;
  cursor: pointer;
  text-align: left;
  gap: var(--sp-md);
}

.sp-faq__question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-deep-navy);
  line-height: 1.4;
}

.sp-faq__question:hover .sp-faq__question-text {
  color: var(--sp-electric-blue);
}

.sp-faq__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--sp-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-mid-gray);
  font-size: 14px;
  transition: all 0.25s;
  font-style: normal;
}

.sp-faq__item--open .sp-faq__icon {
  background: var(--sp-electric-blue);
  border-color: var(--sp-electric-blue);
  color: var(--sp-pure-white);
  transform: rotate(45deg);
}

.sp-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.sp-faq__item--open .sp-faq__answer {
  max-height: 500px;
  padding-bottom: var(--sp-md);
}

.sp-faq__answer-inner {
  font-size: 15px;
  color: var(--sp-dark-slate);
  line-height: 1.7;
  padding-right: var(--sp-xl);
}

.sp-faq__answer-inner p { margin-bottom: var(--sp-sm); }
.sp-faq__answer-inner p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   15 · Related Articles Grid
   ------------------------------------------------------------ */
.sp-related {
  background: var(--sp-cloud-white);
  padding: var(--sp-xl) var(--page-padding);
  border-top: 1px solid var(--sp-light-gray);
}

.sp-related__inner {
  max-width: var(--hub-max);
  margin: 0 auto;
}

.sp-related__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
}

.sp-related__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--sp-deep-navy);
}

.sp-related__see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-electric-blue);
}

.sp-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-md);
}

.sp-article-card {
  background: var(--sp-pure-white);
  border: 1px solid var(--sp-light-gray);
  border-radius: 8px;
  padding: var(--sp-md);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  text-decoration: none;
}

.sp-article-card:hover {
  border-color: var(--sp-electric-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(113,112,231,0.1);
  text-decoration: none;
}

.sp-article-card__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sp-electric-blue);
}

.sp-article-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sp-deep-navy);
  line-height: 1.35;
}

.sp-article-card__desc {
  font-size: 13px;
  color: var(--sp-mid-gray);
  line-height: 1.5;
  flex: 1;
}

.sp-article-card__meta {
  font-size: 11px;
  color: var(--sp-mid-gray);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--sp-light-gray);
}

/* ------------------------------------------------------------
   16 · Hub Index Page — Category Grid
   ------------------------------------------------------------ */
.sp-hub-index {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: var(--sp-xl) var(--page-padding);
}

.sp-hub-index__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--sp-deep-navy);
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.02em;
}

.sp-hub-index__subtitle {
  font-size: 15px;
  color: var(--sp-mid-gray);
  margin-bottom: var(--sp-xl);
}

.sp-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-md);
}

.sp-category-card {
  background: var(--sp-pure-white);
  border: 1px solid var(--sp-light-gray);
  border-radius: 10px;
  padding: var(--sp-lg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.sp-category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sp-gradient);
  opacity: 0;
  transition: opacity 0.2s;
}

.sp-category-card:hover {
  border-color: rgba(113,112,231,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(113,112,231,0.1);
  text-decoration: none;
}

.sp-category-card:hover::before { opacity: 1; }

.sp-category-card__icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(113,112,231,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--sp-md);
}

.sp-category-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--sp-deep-navy);
  margin-bottom: var(--sp-sm);
}

.sp-category-card__desc {
  font-size: 13px;
  color: var(--sp-dark-slate);
  line-height: 1.55;
  margin-bottom: var(--sp-md);
}

.sp-category-card__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--sp-electric-blue);
}

.sp-category-card--coming-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.sp-category-card--coming-soon:hover {
  transform: none;
  border-color: var(--sp-light-gray);
}

.sp-coming-soon-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sp-pure-white);
  background: var(--sp-dark-slate);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ------------------------------------------------------------
   17 · Dark Theme — Intelligence Hub Sections
   ------------------------------------------------------------ */
.sp-dark-section {
  background: var(--sp-deep-navy);
  padding: var(--sp-xl) var(--page-padding);
  position: relative;
}

.sp-dark-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sp-gradient);
}

.sp-dark-section__inner {
  max-width: var(--hub-max);
  margin: 0 auto;
}

.sp-dark-section h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--sp-pure-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-sm);
}

.sp-dark-section p {
  color: var(--sp-muted-blue-gray);
  font-size: 15px;
  line-height: 1.65;
}

/* Dark stat cards */
.sp-dark-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.sp-dark-stat {
  background: var(--sp-dark-panel);
  border: 1px solid var(--sp-dark-border);
  border-radius: 8px;
  padding: var(--sp-md);
  position: relative;
  overflow: hidden;
}

.sp-dark-stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--sp-gradient);
}

.sp-dark-stat__value {
  font-size: 32px;
  font-weight: 900;
  background: var(--sp-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.sp-dark-stat__label {
  font-size: 13px;
  color: var(--sp-muted-blue-gray);
  line-height: 1.4;
}

/* ------------------------------------------------------------
   18 · Footer
   ------------------------------------------------------------ */
.sp-footer {
  background: var(--sp-deep-navy);
  padding: var(--sp-xl) var(--page-padding) var(--sp-lg);
  border-top: 1px solid var(--sp-dark-border);
}

.sp-footer__inner {
  max-width: var(--hub-max);
  margin: 0 auto;
}

.sp-footer__top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--sp-dark-border);
  margin-bottom: var(--sp-lg);
}

@media (max-width: 600px) {
  .sp-footer__top { grid-template-columns: 1fr; }
}

.sp-footer__logo img { height: 28px; width: auto; }
.sp-footer__tagline {
  font-size: 13px;
  color: var(--sp-muted-blue-gray);
  margin-top: var(--sp-sm);
  line-height: 1.5;
}

.sp-footer__links {
  display: flex;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}

.sp-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sp-pure-white);
  margin-bottom: var(--sp-md);
}

.sp-footer__col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.sp-footer__col a {
  font-size: 13px;
  color: var(--sp-muted-blue-gray);
  transition: color 0.2s;
}

.sp-footer__col a:hover {
  color: var(--sp-pure-white);
  text-decoration: none;
}

.sp-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.sp-footer__legal {
  font-size: 12px;
  color: var(--sp-mid-gray);
}

.sp-footer__contact a {
  font-size: 12px;
  color: var(--sp-electric-blue);
}

/* ------------------------------------------------------------
   19 · Hub Cards — "Topics in this tower" section on tower pages
   ------------------------------------------------------------ */
.sp-tower-hubs > h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--sp-deep-navy);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--sp-light-gray, #E8E8F0);
  margin-top: 40px;
}

.sp-hub-card {
  background: var(--sp-pure-white);
  border: 1px solid var(--sp-light-gray, #E8E8F0);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 12px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sp-hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--sp-gradient, linear-gradient(180deg,#7170E7,#A78BFA));
  border-radius: 10px 0 0 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

.sp-hub-card:hover {
  border-color: rgba(113,112,231,0.4);
  box-shadow: 0 6px 20px rgba(113,112,231,0.1);
  transform: translateY(-2px);
}

.sp-hub-card:hover::before {
  opacity: 1;
}

.sp-hub-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sp-hub-card h3 a {
  color: var(--sp-electric-blue, #7170E7);
  text-decoration: none;
}

.sp-hub-card h3 a:hover {
  text-decoration: underline;
}

.sp-hub-card p {
  font-size: 13px;
  color: var(--sp-dark-slate, #2A2A4A);
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------
   20 · FAQ Article List — used on /faq/<tower>/ index pages
   ------------------------------------------------------------ */
.sp-article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

@media (max-width: 720px) {
  .sp-article-list {
    grid-template-columns: 1fr;
  }
}

.sp-article-list__item {
  background: var(--sp-pure-white);
  border: 1px solid var(--sp-light-gray);
  border-radius: 10px;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.sp-article-list__item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sp-gradient, linear-gradient(90deg,#7170E7,#A78BFA));
  opacity: 0;
  transition: opacity 0.2s;
}

.sp-article-list__item:hover {
  border-color: rgba(113,112,231,0.4);
  box-shadow: 0 8px 24px rgba(113,112,231,0.1);
  transform: translateY(-2px);
}

.sp-article-list__item:hover::before {
  opacity: 1;
}

.sp-article-list__link {
  display: block;
  padding: 20px 22px;
  text-decoration: none;
  height: 100%;
}

.sp-article-list__link:hover {
  text-decoration: none;
}

.sp-article-list__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-electric-blue, #7170E7);
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.sp-article-list__desc {
  font-size: 13px;
  color: var(--sp-dark-slate, #2A2A4A);
  line-height: 1.6;
  margin: 0;
}

/* FAQ index CTA block */
.sp-faq-index-cta {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--sp-light-bg, #F7F7FC);
  border: 1px solid var(--sp-light-gray, #E8E8F0);
  border-radius: 12px;
  max-width: 600px;
}

.sp-faq-index-cta__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sp-electric-blue, #7170E7);
  margin-bottom: 6px;
}

.sp-faq-index-cta__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sp-deep-navy, #000D28);
  margin-bottom: 6px;
}

.sp-faq-index-cta__body {
  font-size: 14px;
  color: var(--sp-mid-gray, #444460);
  line-height: 1.6;
  margin-bottom: 16px;
}

.sp-faq-index-cta__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-electric-blue, #7170E7);
  text-decoration: none;
}

.sp-faq-index-cta__link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   19 · Utility Classes
   ------------------------------------------------------------ */
.sp-gradient-bar {
  height: 3px;
  background: var(--sp-gradient);
  border: none;
  margin: 0;
}

.sp-divider {
  border: none;
  border-top: 1px solid var(--sp-light-gray);
  margin: var(--sp-lg) 0;
}

.sp-text-electric { color: var(--sp-electric-blue); }
.sp-text-navy     { color: var(--sp-deep-navy); }
.sp-text-muted    { color: var(--sp-mid-gray); }

.sp-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   20 · FAQ Accordion JS hook (toggle via JS class)
   ------------------------------------------------------------ */
/*
  JS: toggle class 'sp-faq__item--open' on .sp-faq__item
  when .sp-faq__question is clicked.

  Example:
  document.querySelectorAll('.sp-faq__question').forEach(btn => {
    btn.addEventListener('click', () => {
      btn.closest('.sp-faq__item').classList.toggle('sp-faq__item--open');
    });
  });
*/

/* ------------------------------------------------------------
   END OF FILE
   stratpulse-kb.css · StratPulse TechLabs · v1.0 · 2026
   ------------------------------------------------------------ */
