/* Dark Network Observatory & Infrastructure Dashboard Theme */
:root {
  --bg-base: #070a11;
  --bg-surface: #0d1322;
  --bg-surface-elevated: #131c31;
  --bg-card: #10182b;
  --border-subtle: #1e293b;
  --border-focus: #38bdf8;
  --border-active: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-violet: #8b5cf6;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 15px rgba(16, 185, 129, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Grid & Layout */
.site-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.site-header {
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}
.sub-ribbon {
  background: rgba(6, 9, 18, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(16, 185, 129, 0.28);
  height: 40px;
  display: flex;
  align-items: center;
}
.sub-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.sub-ribbon-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ribbon-label {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ribbon-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ribbon-menu .nav-link {
  font-size: 0.84rem;
  padding: 5px 10px;
  color: #cbd5e1;
  font-weight: 500;
  border-radius: 5px;
  white-space: nowrap;
}
.ribbon-menu .nav-link:hover {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.16);
}
.sub-ribbon-right {
  display: flex;
  align-items: center;
}
.ribbon-stat-pill {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ribbon-stat-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}
@media (max-width: 1080px) {
  .sub-ribbon-right { display: none; }
  .header-left { gap: 14px; }
}
@media (max-width: 960px) {
  .sub-ribbon { height: auto; padding: 6px 0; }
  .sub-ribbon-inner { flex-wrap: wrap; gap: 8px; }
  .ribbon-label { display: none; }
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.brand-logo-badge {
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #041009;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.brand-avatar:hover {
  transform: rotate(10deg) scale(1.1);
  border-color: #38bdf8;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-tag {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-item {
  position: relative;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-active);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  list-style: none;
  z-index: 1010;
}
.nav-item:hover .nav-dropdown {
  display: block;
}
.dropdown-item a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.15s;
}
.dropdown-item a:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.1);
  padding-left: 16px;
}
.dropdown-item .desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 20px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* NOC Hero Dashboard */
.noc-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
}
.hero-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 36px;
}
.hero-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  color: var(--border-focus);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Metric Counter Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.metric-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.metric-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-active);
}
.metric-tile.emerald::before { background: var(--accent-emerald); }
.metric-tile.cyan::before { background: var(--accent-cyan); }
.metric-tile.blue::before { background: var(--accent-blue); }
.metric-tile.amber::before { background: var(--accent-amber); }

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.metric-val {
  font-size: 1.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.metric-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Master Brand Spotlight: 光速云 */
.master-spotlight {
  background: linear-gradient(145deg, #0d1627 0%, #080f1d 100%);
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.spotlight-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.spotlight-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.spotlight-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.spotlight-price {
  font-size: 0.95rem;
  color: #34d399;
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; }
}
.spotlight-info p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.tag-spec {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #283548;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.tag-spec::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
}
.tag-spec:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

/* NOC Speed Monitoring Panel */
.noc-speed-panel {
  background: #090e1a;
  border: 1px solid #1a253c;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.speed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #141d30;
}
.speed-row:last-child { border-bottom: none; }
.speed-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 90px;
  color: var(--text-muted);
}
.speed-bar-container {
  flex: 1;
  background: #141e33;
  height: 6px;
  border-radius: 3px;
  margin: 0 16px;
  overflow: hidden;
}
.speed-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
  border-radius: 3px;
}
.speed-val {
  color: var(--accent-emerald);
  font-weight: 600;
  text-align: right;
  width: 80px;
}
.speed-ping {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-align: right;
  width: 60px;
}

/* Service Matrix */
.service-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.service-item {
  background: #090e1a;
  border: 1px solid #192338;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.service-item.supported { border-left: 3px solid var(--accent-emerald); }
.service-item.partial { border-left: 3px solid var(--accent-amber); }
.service-item.not-tested { border-left: 3px solid var(--text-dim); }

/* Buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.3px;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
  border: 1px solid var(--border-active);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
  background: rgba(255,255,255,0.02);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover {
  color: #fff;
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.08);
}
.filter-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  font-weight: 600;
}

/* Brand Grid & Directory */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin: 32px 0 48px;
}
.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand-card:hover {
  border-color: #2b3b55;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-rank {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.card-title a {
  color: var(--text-main);
  text-decoration: none;
}
.card-title a:hover {
  color: var(--accent-cyan);
}
.card-price {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  margin-bottom: 12px;
}
.card-features {
  list-style: none;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.card-features li {
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-features li::before {
  content: "•";
  color: var(--accent-cyan);
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.btn-card-primary {
  flex: 1;
  text-align: center;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-card-primary:hover {
  background: #38bdf8;
  color: #041009;
}
.btn-card-sec {
  flex: 1;
  text-align: center;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
}
.btn-card-sec:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* Honeycomb Internal Link Cluster Section */
.cluster-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}
.section-headline {
  margin-bottom: 24px;
}
.section-headline h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.section-headline p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.topic-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}
.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
}
.topic-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #cbd5e1;
}
.topic-links {
  list-style: none;
}
.topic-links li {
  margin: 6px 0;
}
.topic-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s;
}
.topic-links a:hover {
  color: var(--accent-cyan);
}

/* Post Layout */
.article-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.compliance-callout {
  background: rgba(14, 165, 233, 0.05);
  border-left: 3px solid #0284c7;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TOC Navigation */
.post-toc {
  list-style: none;
  padding-left: 0;
}
.post-toc-child {
  padding-left: 18px;
  list-style: none;
}
.post-toc a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.post-toc a:hover {
  color: var(--accent-cyan);
}

/* Article Markdown Styling & NOC Typography */
.article-content {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
  word-break: break-word;
}
.article-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 48px 0 20px;
  color: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 36px 0 16px;
  color: #e2e8f0;
}
.article-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 26px 0 12px;
  color: #94a3b8;
}
.article-content p {
  margin-bottom: 22px;
}
.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.article-content li {
  margin-bottom: 10px;
}

/* NOC Modern Terminal Window for Pre/Code */
.article-content pre {
  background: #060911;
  border: 1px solid #1e293b;
  border-top: 32px solid #0f172a;
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 32px 0;
  position: relative;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7);
}
.article-content pre::before {
  content: "● ● ●  NOC Observatory Terminal • Network Topology & Matrix";
  position: absolute;
  top: -26px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 600;
}
.article-content pre code {
  font-family: "Cascadia Code", "Cascadia Mono", "Fira Code", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: #cbd5e1;
  display: block;
  white-space: pre;
  tab-size: 2;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  background: transparent;
  padding: 0;
  border: none;
}
.article-content pre::-webkit-scrollbar {
  height: 6px;
  background: #060911;
}
.article-content pre::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
.article-content pre::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Inline Code Badge */
.article-content :not(pre) > code {
  background: #141d2e;
  color: #38bdf8;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  border: 1px solid #1e293b;
}

/* High-Precision Tables */
.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  font-size: 0.88rem;
  background: #090e1a;
  border-radius: 8px;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  display: block;
}
.article-content th {
  background: #0f172a;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 2px solid #1e293b;
  font-weight: 600;
  white-space: nowrap;
}
.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #141d30;
  color: #cbd5e1;
  vertical-align: middle;
}
.article-content tbody tr:last-child td {
  border-bottom: none;
}
.article-content tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
.article-content tbody tr:hover td {
  background: rgba(56, 189, 248, 0.04);
  color: #ffffff;
}

/* Blockquote & Callouts */
.article-content blockquote {
  border-left: 3px solid var(--accent-cyan);
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.01) 100%);
  border-radius: 0 8px 8px 0;
  padding: 16px 22px;
  margin: 28px 0;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.article-content blockquote p {
  margin-bottom: 0;
}

/* Image Mockups & Captions */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #1e293b;
  margin: 24px auto 8px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.article-content img:hover {
  border-color: #38bdf8;
  transform: scale(1.006);
}
.article-content em {
  display: block;
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-style: normal;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  margin-top: 80px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.footer-col h5 {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--accent-cyan);
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* -------------------------------------------------------------
 * Markdown GitHub Alert Boxes & High-Contrast Typography
 * ------------------------------------------------------------- */
.markdown-alert {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid;
  background: #0d1527;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.markdown-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.markdown-alert-icon {
  font-size: 1.15rem;
  line-height: 1;
}
.markdown-alert-title {
  letter-spacing: 0.3px;
}
.markdown-alert-content {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.markdown-alert-content p {
  margin: 6px 0;
}
.markdown-alert-content p:first-child {
  margin-top: 0;
}
.markdown-alert-content p:last-child {
  margin-bottom: 0;
}

.markdown-alert-note {
  border-left-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}
.markdown-alert-note .markdown-alert-header {
  color: #38bdf8;
}

.markdown-alert-tip {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}
.markdown-alert-tip .markdown-alert-header {
  color: #34d399;
}

.markdown-alert-important {
  border-left-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}
.markdown-alert-important .markdown-alert-header {
  color: #a78bfa;
}

.markdown-alert-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.markdown-alert-warning .markdown-alert-header {
  color: #fbbf24;
}

.markdown-alert-caution {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}
.markdown-alert-caution .markdown-alert-header {
  color: #f87171;
}

/* Force high contrast on all CTA buttons */
a.btn-cta, a.btn-primary, .btn-cta, .btn-primary {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}
a.btn-cta:hover, a.btn-primary:hover {
  color: #ffffff !important;
}
