/* ========================================
   Startup-Scale Landing Zone — Stylesheet
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Azure-inspired palette */
  --azure-blue: #0078D4;
  --azure-blue-dark: #005A9E;
  --azure-cyan: #50E6FF;
  --azure-cyan-dark: #30C6DF;

  /* Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f2f5;
  --bg-code: #f6f8fa;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  --link-color: #0078D4;
  --link-hover: #005A9E;
  --sidebar-bg: #f8f9fa;
  --sidebar-active: #e8f4fd;
  --header-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
  --hero-gradient: linear-gradient(135deg, #0078D4 0%, #005A9E 50%, #003D6B 100%);
}

[data-theme="dark"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-code: #1c2128;
  --text-primary: #e6edf3;
  --text-secondary: #b1bac4;
  --text-muted: #8b949e;
  --border-color: #30363d;
  --border-light: #21262d;
  --link-color: #58a6ff;
  --link-hover: #79c0ff;
  --sidebar-bg: #161b22;
  --sidebar-active: #1c3a5c;
  --header-bg: #161b22;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
  --hero-gradient: linear-gradient(135deg, #0a3d6b 0%, #0d1117 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--azure-blue);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.header-nav a:hover {
  color: var(--text-primary);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* --- Sidebar --- */
.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - 64px - 120px);
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
  background: var(--sidebar-bg);
  padding: 1.5rem 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  margin-top: 0.5rem;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav a {
  display: block;
  padding: 0.4rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.sidebar-nav a.active {
  color: var(--azure-blue);
  border-left-color: var(--azure-blue);
  background: var(--sidebar-active);
  font-weight: 500;
}

/* --- Page Content --- */
.page-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 3rem;
  max-width: 860px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* --- Typography --- */
.page-content h1 { font-size: 2rem; margin-top: 2.5rem; margin-bottom: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.page-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; font-weight: 600; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.page-content h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 600; }
.page-content h4 { font-size: 1.1rem; margin-top: 1.25rem; margin-bottom: 0.5rem; font-weight: 600; }

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.25rem;
}

.page-content blockquote {
  border-left: 4px solid var(--azure-blue);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: var(--bg-secondary);
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary);
}

.page-content blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Tables --- */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.page-content thead th {
  background: var(--bg-tertiary);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
}

.page-content tbody td {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-color);
}

.page-content tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

/* --- Code --- */
.page-content code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.875em;
  background: var(--bg-code);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.page-content pre {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  line-height: 1.5;
}

.page-content pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: 0.85rem;
}

/* --- Task list checkboxes --- */
.page-content ul li input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}

.footer-right a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-right a:hover {
  color: var(--text-primary);
}

/* ========================================
   Landing Page
   ======================================== */

/* --- Hero --- */
.hero {
  background: var(--hero-gradient);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: #0078D4;
}

.btn-primary:hover {
  background: #e8f4fd;
  color: #005A9E;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* --- Section container --- */
.landing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.landing-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.landing-section .section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Alternating section backgrounds */
.landing-section.alt-bg {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-left: 0;
  padding-right: 0;
}

.landing-section.alt-bg > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Quick Start compact --- */
.quick-start-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
}

.step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--azure-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .step-card .step-number {
  background: #3B82F6;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.step-card .step-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--azure-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--azure-blue-dark);
}

[data-theme="dark"] .back-to-top {
  background: #3B82F6;
}

[data-theme="dark"] .back-to-top:hover {
  background: #2563EB;
}

/* --- GitHub badge --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* --- ASCII tree (docs pages) --- */
.architecture-tree {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  color: var(--text-primary);
}

/* --- Key Points (4 cards) --- */
.key-points {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Architecture Preview --- */
.architecture-preview {
  border-bottom: 1px solid var(--border-color);
}

/* --- Visual Architecture Diagrams --- */
.arch-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.arch-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.arch-panel h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Management Group Diagram */
.mg-diagram {
  font-size: 0.85rem;
}

.mg-tenant {
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  padding: 0.85rem;
}

.mg-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mg-group {
  background: rgba(0, 120, 212, 0.04);
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: 8px;
  padding: 0.85rem;
}

[data-theme="dark"] .mg-group {
  background: rgba(88, 166, 255, 0.05);
  border-color: rgba(88, 166, 255, 0.15);
}

.mg-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mg-icon {
  font-size: 1.1rem;
}

.mg-tag {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--azure-blue);
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
  margin-left: auto;
}

[data-theme="dark"] .mg-tag {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.2);
}

.mg-subs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mg-sub {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.mg-sub-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mg-sub-prod .mg-sub-dot {
  background: #10B981;
}

.mg-sub-nonprod .mg-sub-dot {
  background: #F59E0B;
}

.mg-sub div {
  display: flex;
  flex-direction: column;
}

.mg-sub strong {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mg-sub span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Network Diagram */
.net-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.net-vnet {
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
}

.net-vnet-prod {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.2);
}

.net-vnet-nonprod {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .net-vnet-prod {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .net-vnet-nonprod {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.15);
}

.net-vnet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.net-vnet-header span {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.net-vnet-header code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.72rem;
  background: var(--bg-code);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.net-subnets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.net-subnet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  border-left: 3px solid var(--border-color);
  background: var(--bg-primary);
}

.net-subnet.subnet-aks { border-left-color: #3B82F6; }
.net-subnet.subnet-app { border-left-color: #10B981; }
.net-subnet.subnet-data { border-left-color: #F59E0B; }
.net-subnet.subnet-shared { border-left-color: #8B5CF6; }

.net-subnet span {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-primary);
}

.net-subnet code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: none;
  padding: 0;
  border: none;
}

.net-no-peering {
  text-align: center;
  padding: 0.5rem;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
}

.net-no-peering span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.diagram-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  margin: 0;
}

.diagram-frame img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  cursor: zoom-in;
}

.diagram-frame figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --- Comparison grid --- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.compare-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--card-shadow);
}

.compare-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.compare-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.compare-card.accent {
  border-left: 4px solid var(--azure-blue);
  background: var(--sidebar-active);
}

.compare-card.accent h3 {
  color: var(--azure-blue);
}

[data-theme="dark"] .compare-card.accent h3 {
  color: var(--link-color);
}

/* --- Included grid --- */
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.included-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

.included-card .check-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #16a34a;
  line-height: 1.4;
}

[data-theme="dark"] .included-card .check-icon {
  color: #4ade80;
}

.included-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.included-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --- Not-included list --- */
.not-included-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.not-included-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.not-included-item .dash-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.not-included-item strong {
  color: var(--text-primary);
}

.not-included-item .trigger {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Examples grid --- */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.example-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
  color: var(--text-primary);
}

.example-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.example-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.example-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.example-card .card-link {
  font-size: 0.85rem;
  color: var(--link-color);
  font-weight: 500;
}

/* --- Docs grid --- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.doc-card {
  display: block;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.doc-card:hover {
  border-color: var(--azure-blue);
  box-shadow: var(--card-shadow);
  color: var(--text-primary);
}

.doc-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.doc-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ========================================
   Image Lightbox
   ======================================== */
.page-content img[data-zoomable] {
  cursor: zoom-in;
  transition: opacity 0.15s;
}

.page-content img[data-zoomable]:hover {
  opacity: 0.85;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 95%;
  max-height: 95vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Mermaid
   ======================================== */
.mermaid {
  text-align: center;
  margin: 1.5rem 0;
  overflow: auto;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Diagram Page Visualizations
   ======================================== */
.viz-diagram { margin: 1.5rem 0; }

/* --- Common viz elements --- */
.viz-boundary {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
}

.viz-boundary-label {
  position: absolute;
  top: -0.65rem;
  left: 1rem;
  background: var(--bg-primary);
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.viz-pill {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}

.viz-pill-blue {
  color: var(--azure-blue);
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(0, 120, 212, 0.2);
}

.viz-pill-amber {
  color: #B45309;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .viz-pill-blue {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.2);
}

[data-theme="dark"] .viz-pill-amber {
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.viz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.viz-dot-amber { background: #F59E0B; }
.viz-dot-green { background: #10B981; }

.viz-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* --- Landing Zone Overview --- */
.viz-mg-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 120, 212, 0.04);
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: 8px;
  margin-bottom: 1rem;
}

[data-theme="dark"] .viz-mg-bar {
  background: rgba(88, 166, 255, 0.05);
  border-color: rgba(88, 166, 255, 0.15);
}

.viz-mg-icon { font-size: 1.1rem; }

.viz-mg-name {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: auto;
}

.viz-sub-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--card-shadow);
}

.viz-sub-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.viz-sub-title strong {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
}

.viz-amber-accent { border-bottom-color: #F59E0B; }
.viz-green-accent { border-bottom-color: #10B981; }

.viz-rg-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.viz-rg-tag {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.viz-vnet-box {
  border-radius: 8px;
  padding: 0.65rem;
  border: 1px solid var(--border-color);
}

.viz-amber-border {
  background: rgba(245, 158, 11, 0.03);
  border-color: rgba(245, 158, 11, 0.2);
}

.viz-green-border {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .viz-amber-border {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .viz-green-border {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
}

.viz-vnet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.viz-vnet-title span {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.viz-subnet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem;
}

.viz-subnet {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.68rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-left: 3px solid var(--border-color);
}

.viz-subnet.snet-aks { border-left-color: #3B82F6; }
.viz-subnet.snet-app { border-left-color: #10B981; }
.viz-subnet.snet-data { border-left-color: #F59E0B; }
.viz-subnet.snet-shared { border-left-color: #8B5CF6; }

.viz-cross-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.viz-cross-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--border-color);
}

.viz-cross-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.viz-cross-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.viz-blue-left { border-left-color: var(--azure-blue); }
.viz-amber-left { border-left-color: #F59E0B; }
.viz-green-left { border-left-color: #10B981; }

/* --- Graduation Path --- */
.viz-grad-pipeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.viz-grad-step {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  position: relative;
  margin-right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.viz-grad-step:last-child { margin-right: 0; }

.viz-grad-step::after {
  content: "\2192";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
}

.viz-grad-step:last-child::after { display: none; }

.viz-grad-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.viz-grad-step strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.viz-grad-step span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.viz-grad-active {
  border-color: var(--azure-blue);
  border-width: 2px;
  background: rgba(0, 120, 212, 0.03);
}

[data-theme="dark"] .viz-grad-active {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.06);
}

.viz-grad-active .viz-grad-num {
  background: var(--azure-blue);
  color: #fff;
}

[data-theme="dark"] .viz-grad-active .viz-grad-num {
  background: #3B82F6;
}

.viz-grad-final {
  border-color: #10B981;
  border-width: 2px;
  background: rgba(16, 185, 129, 0.03);
}

[data-theme="dark"] .viz-grad-final {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.06);
}

.viz-grad-final .viz-grad-num {
  background: #10B981;
  color: #fff;
}

.viz-grad-trigger {
  text-align: center;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
}

.viz-grad-trigger span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Networking Architecture --- */
.viz-net-ingress {
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.viz-net-cloud {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.4rem 1rem;
}

.viz-net-proto {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.viz-net-ingress::after {
  content: "\2193";
  font-size: 1.2rem;
  color: var(--text-muted);
}

.viz-net-nsg-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.viz-net-nsg {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.viz-net-nsg strong {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.viz-net-nsg span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.viz-net-vnet {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  background: var(--bg-secondary);
  margin-bottom: 1rem;
}

.viz-net-vnet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.viz-net-vnet-header span {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.viz-net-subnet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.viz-net-subnet-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem;
  border-top: 3px solid var(--border-color);
}

.viz-blue-top { border-top-color: #3B82F6; }
.viz-green-top { border-top-color: #10B981; }
.viz-amber-top { border-top-color: #F59E0B; }
.viz-purple-top { border-top-color: #8B5CF6; }

.viz-net-subnet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.viz-net-subnet-head strong {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.viz-net-ip-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.viz-net-svc-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.viz-net-svc-list span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.viz-net-pe-bar {
  text-align: center;
  padding: 0.6rem 1rem;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
}

.viz-net-pe-bar span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Security Model --- */
.viz-sec-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.viz-sec-arrow {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.viz-sec-layer {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
}

.viz-sec-layer-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.viz-sec-layer-cards {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.viz-sec-card {
  flex: 1;
  min-width: 140px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.viz-sec-card strong {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.viz-sec-card span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.viz-sec-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.25rem;
  width: fit-content;
}

.viz-badge-red {
  color: #DC2626;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.viz-badge-green {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

[data-theme="dark"] .viz-badge-red {
  color: #FCA5A5;
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.25);
}

[data-theme="dark"] .viz-badge-green {
  color: #6EE7B7;
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.25);
}

/* --- TL;DR Terminal --- */
.tldr-terminal {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .tldr-terminal {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.tldr-titlebar {
  background: #e2e8f0;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

[data-theme="dark"] .tldr-titlebar {
  background: #21262d;
}

.tldr-dots {
  display: flex;
  gap: 6px;
}

.tldr-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tldr-dots span:nth-child(1) { background: #ff5f57; }
.tldr-dots span:nth-child(2) { background: #febc2e; }
.tldr-dots span:nth-child(3) { background: #28c840; }

.tldr-title {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tldr-body {
  background: #1e293b;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

[data-theme="dark"] .tldr-body {
  background: #0d1117;
}

.tldr-line {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.tldr-prompt {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #50E6FF;
  width: 1.5rem;
  text-align: right;
}

.tldr-line div {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

[data-theme="dark"] .tldr-line div {
  color: #b1bac4;
}

.tldr-line strong {
  color: #f1f5f9;
}

[data-theme="dark"] .tldr-line strong {
  color: #e6edf3;
}

.tldr-line code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82em;
  background: rgba(80, 230, 255, 0.1);
  color: #50E6FF;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  border: 1px solid rgba(80, 230, 255, 0.2);
}

/* --- Step Card Details (expand/collapse) --- */
.step-card details {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.5rem;
}

.step-card summary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--link-color);
  cursor: pointer;
  padding: 0.35rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.step-card summary::-webkit-details-marker {
  display: none;
}

.step-card summary::before {
  content: "\25B6";
  font-size: 0.6rem;
  transition: transform 0.15s;
}

.step-card details[open] summary::before {
  transform: rotate(90deg);
}

.step-card summary:hover {
  color: var(--link-hover);
}

.step-card details pre {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 0;
  overflow-x: auto;
  line-height: 1.5;
}

.step-card details code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  background: none;
  padding: 0;
  border: none;
  color: var(--text-primary);
}

/* --- Day-1 Checklist Timeline --- */
.timeline {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-phase {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--azure-blue);
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 120, 212, 0.25);
  z-index: 1;
}

[data-theme="dark"] .timeline-icon {
  background: #3B82F6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--azure-blue), var(--border-color));
  min-height: 100%;
}

[data-theme="dark"] .timeline-line {
  background: linear-gradient(to bottom, #3B82F6, var(--border-color));
}

.timeline-content {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 14px;
  width: 14px;
  height: 14px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.timeline-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.timeline-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--azure-blue);
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

[data-theme="dark"] .timeline-badge {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.2);
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.timeline-content li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.timeline-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-color);
  border-radius: 3px;
  background: var(--bg-primary);
}

.timeline-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82em;
  background: var(--bg-code);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-start-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .viz-net-nsg-row {
    grid-template-columns: 1fr 1fr;
  }

  .page-content {
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .header-nav.open {
    display: flex;
  }

  .sidebar {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 90;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  }

  .sidebar.open {
    display: block;
  }

  .page-content {
    padding: 1.25rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

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

  .examples-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .quick-start-steps {
    grid-template-columns: 1fr;
  }

  .arch-visual {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .included-grid {
    grid-template-columns: 1fr;
  }

  .timeline-phase {
    gap: 1rem;
  }

  .timeline-content::before {
    display: none;
  }

  .viz-two-col {
    grid-template-columns: 1fr;
  }

  .viz-cross-row {
    grid-template-columns: 1fr;
  }

  .viz-net-nsg-row {
    grid-template-columns: 1fr;
  }

  .viz-net-subnet-grid {
    grid-template-columns: 1fr;
  }

  .viz-grad-step {
    min-width: 90px;
    padding: 0.75rem 0.5rem;
    margin-right: 1.5rem;
  }

  .viz-grad-step::after {
    right: -1.15rem;
    font-size: 1rem;
  }

  .viz-sec-layer-cards {
    flex-direction: column;
  }

  .viz-sec-card {
    min-width: auto;
  }

  .tldr-body {
    padding: 1rem;
  }

  .tldr-line {
    gap: 0.65rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ========================================
   Rouge Syntax Highlighting
   ======================================== */
.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs { color: #6a737d; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt { color: #d73a49; }
.highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .s1 { color: #032f62; }
.highlight .na { color: #6f42c1; }
.highlight .nb { color: #005cc5; }
.highlight .nc { color: #6f42c1; }
.highlight .no { color: #005cc5; }
.highlight .nf, .highlight .fm { color: #6f42c1; }
.highlight .nn { color: #005cc5; }
.highlight .nt { color: #22863a; }
.highlight .nv, .highlight .vi, .highlight .vm { color: #e36209; }
.highlight .o, .highlight .ow { color: #d73a49; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo { color: #005cc5; }

[data-theme="dark"] .highlight .c, [data-theme="dark"] .highlight .cm, [data-theme="dark"] .highlight .c1, [data-theme="dark"] .highlight .cs { color: #8b949e; }
[data-theme="dark"] .highlight .k, [data-theme="dark"] .highlight .kd, [data-theme="dark"] .highlight .kn, [data-theme="dark"] .highlight .kp, [data-theme="dark"] .highlight .kr, [data-theme="dark"] .highlight .kt { color: #ff7b72; }
[data-theme="dark"] .highlight .s, [data-theme="dark"] .highlight .sb, [data-theme="dark"] .highlight .sc, [data-theme="dark"] .highlight .sd, [data-theme="dark"] .highlight .s2, [data-theme="dark"] .highlight .se, [data-theme="dark"] .highlight .sh, [data-theme="dark"] .highlight .si, [data-theme="dark"] .highlight .sx, [data-theme="dark"] .highlight .s1 { color: #a5d6ff; }
[data-theme="dark"] .highlight .na { color: #d2a8ff; }
[data-theme="dark"] .highlight .nb { color: #79c0ff; }
[data-theme="dark"] .highlight .nc { color: #d2a8ff; }
[data-theme="dark"] .highlight .no { color: #79c0ff; }
[data-theme="dark"] .highlight .nf, [data-theme="dark"] .highlight .fm { color: #d2a8ff; }
[data-theme="dark"] .highlight .nn { color: #79c0ff; }
[data-theme="dark"] .highlight .nt { color: #7ee787; }
[data-theme="dark"] .highlight .nv, [data-theme="dark"] .highlight .vi, [data-theme="dark"] .highlight .vm { color: #ffa657; }
[data-theme="dark"] .highlight .o, [data-theme="dark"] .highlight .ow { color: #ff7b72; }
[data-theme="dark"] .highlight .m, [data-theme="dark"] .highlight .mi, [data-theme="dark"] .highlight .mf, [data-theme="dark"] .highlight .mh, [data-theme="dark"] .highlight .mo { color: #79c0ff; }

/* --- Print --- */
@media print {
  .site-header, .sidebar, .site-footer, .theme-toggle, .mobile-menu-toggle { display: none; }
  .page-content { max-width: 100%; padding: 0; }
}
