:root {
  --hero1: #0f172a;
  --hero2: #1e3a8a;
  --soft: #f8fafc;
  --accent: #0d6efd;
  --text: #1f2937;
  --muted: #475569;
  --warn: #f59e0b;
  --danger: #ef4444;
}

body {
  background: #eef2f7;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--hero1), var(--hero2));
  color: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 340px; height: 340px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  filter: blur(2px);
}

/* ── Glass — light background (cards, TOC, general) ── */
.glass {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}

/* ── Glass inside the dark hero stays translucent ── */
.hero .glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  color: #fff;
}
.hero .glass h5,
.hero .glass li,
.hero .glass ol,
.hero .glass p {
  color: #fff;
}
.hero p.lead,
.hero p {
  color: rgba(255,255,255,0.85);
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 0;
  border-radius: 1.25rem;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.card-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  color: var(--text);
  border-radius: 1.25rem 1.25rem 0 0 !important;
}

/* ── Section titles ── */
.section-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

/* ── Code blocks ── */
.code-block {
  background: #0b1220;
  color: #dbeafe;
  border: none;
  border-radius: 1rem;
  padding: 1rem;
  font-family: ui-monospace, Consolas, Monaco, monospace;
  font-size: .92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0;
  overflow: auto;
}

/* ── Inline code ── */
.mini-code {
  background: #e2e8f0;
  color: #1e3a8a;
  border-radius: .35rem;
  padding: .15rem .4rem;
  font-family: ui-monospace, Consolas, Monaco, monospace;
  font-size: .88em;
}

/* ── Chips ── */
.chip {
  display: inline-block;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: #e9f2ff;
  color: #0d47a1;
  font-size: .85rem;
  font-weight: 600;
  margin: .15rem;
}
.hero .chip {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ── Badge in hero ── */
.badge-soft {
  background: rgba(255,255,255,0.15);
  color: #e0f2fe;
  border: 1px solid rgba(255,255,255,0.22);
}

/* ── Tables ── */
.table-dark-custom {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #f8fafc;
  --bs-table-hover-bg: #eff6ff;
  color: var(--text);
}
.table-dark-custom td,
.table-dark-custom th {
  color: var(--text);
}
.table-dark-custom thead th {
  background: #f1f5f9;
  border-bottom-width: 1px;
}

/* ── Icon circle ── */
.icon-circle {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9f2ff;
  border: 1px solid #bfdbfe;
  font-size: 1.3rem;
  color: var(--accent);
}

/* ── TOC ── */
.toc a {
  text-decoration: none;
  color: #334155;
  display: block;
  padding: .45rem .75rem;
  border-radius: .75rem;
  margin-bottom: .2rem;
}
.toc a:hover {
  background: #eff6ff;
  color: var(--accent);
}

/* ── Misc ── */
.small-note,
.footer-note {
  font-size: .92rem;
  color: var(--muted);
}
.sticky-top-offset {
  top: 1rem;
}

/* ── Alerts ── */
.alert-warning {
  background: #fefce8;
  border-color: #fde047;
  color: #713f12;
}
