/* ============================================================
   Midnight Sky Design System — javascript-testing.com
   Deep navy + rich gold palette
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --color-navy:        #0f172a;
  --color-navy-mid:    #1e3a5f;
  --color-navy-light:  #1e293b;
  --color-gold:        #f59e0b;
  --color-gold-light:  #fbbf24;
  --color-gold-dark:   #d97706;
  --color-bg:          #f8fafc;
  --color-surface:     #ffffff;
  --color-surface-2:   #f1f5f9;
  --color-text:        #1e293b;
  --color-text-muted:  #64748b;
  --color-border:      #e2e8f0;
  --color-teal:        #0d9488;
  --color-blue:        #3b82f6;
  --color-green:       #10b981;

  --header-height:     64px;
  --container-max:     1400px;
  --radius:            8px;
  --radius-lg:         16px;
  --shadow-sm:         0 1px 3px rgba(0,0,0,.08);
  --shadow-md:         0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:         0 8px 32px rgba(0,0,0,.14);

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', 'Courier New', monospace;
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-gold); }

/* ── Layout Container ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 48px; } }
@media (min-width: 1600px) { .container { padding: 0 80px; } }

/* ── Sticky Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.site-logo img { width: 36px; height: 36px; }
.site-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: .3px;
  line-height: 1.2;
}
.site-logo-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(245,158,11,.15);
  color: var(--color-gold);
}
.site-nav a .nav-icon { font-size: 1em; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 8px;
  border-radius: var(--radius);
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 16px; font-size: .95rem; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,.6);
  padding: 48px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 48px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 8px;
}
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-section h4 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 12px;
}
.footer-section ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-section a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}
.footer-section a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 60%, #1a2f50 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(245,158,11,.08) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--color-gold); }
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  color: var(--color-navy);
  box-shadow: 0 6px 24px rgba(245,158,11,.45);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn-section {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
}
.btn-section:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.btn-icon { font-size: 1.1em; }

@media (max-width: 600px) { .hero { padding: 64px 0 56px; } }

/* ── Section Cards (home) ─────────────────────────────────── */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  padding: 48px 0;
}
.section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
  color: inherit;
}
.section-card-icon {
  font-size: 2.5rem;
  line-height: 1;
}
.section-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}
.section-card p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}
.section-card-arrow {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.section-card:hover .section-card-arrow { gap: 8px; }

/* ── Home intro ───────────────────────────────────────── */
.home-intro {
  padding: 64px 0 8px;
}
.home-intro h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.home-intro p {
  font-size: clamp(.95rem, 1.3vw, 1.05rem);
  color: var(--color-text-muted);
  margin-bottom: 18px;
  line-height: 1.8;
  max-width: 780px;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--color-text-muted);
  padding: 20px 0 0;
  list-style: none;
}
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-gold-dark); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--color-border); }

/* ── Article Layout ──────────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;   /* default: single column */
  gap: 0;
}
@media (min-width: 1200px) {
  /* Only use 2-column when a sidebar is actually present */
  .page-layout:has(.page-sidebar) {
    grid-template-columns: 270px 1fr;
  }
}

/* When page-content is the only child (no sidebar), span full width */
.page-layout > .page-content:only-child {
  grid-column: 1 / -1;
}

.page-sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 32px 20px;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}
.sidebar-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.sidebar-nav a:hover { background: var(--color-surface-2); color: var(--color-text); }
.sidebar-nav a.active { background: rgba(245,158,11,.1); color: var(--color-gold-dark); font-weight: 600; }
.sidebar-nav .sidebar-sub { padding-left: 8px; }
.sidebar-nav .sidebar-sub a { font-size: .8rem; }

.page-content {
  padding: 40px 24px 80px;
  min-width: 0;
  width: 100%;
}
@media (min-width: 768px)  { .page-content { padding: 48px 40px 96px; } }
@media (min-width: 1200px) { .page-content { padding: 56px 64px 96px; } }
@media (min-width: 1600px) { .page-content { padding: 64px 80px 112px; } }

/* ── Article Prose ──────────────────────────────────────── */
.prose {
  /* Width is controlled by the container + page-content padding. */
  width: 100%;
}
.prose h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -.03em;
}
.prose h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--color-navy);
  margin: 56px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-gold);
  letter-spacing: -.01em;
}
.prose h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--color-navy-mid);
  margin: 36px 0 12px;
}
.prose h4 {
  font-weight: 700;
  color: var(--color-gold-dark);
  margin: 24px 0 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .8rem;
}
.prose p { margin-bottom: 20px; line-height: 1.85; font-size: 1.0125rem; }
.prose ul, .prose ol { padding-left: 28px; margin-bottom: 20px; }
.prose li { margin-bottom: 8px; line-height: 1.75; }
.prose strong { color: var(--color-navy); font-weight: 700; }
.prose em { font-style: italic; }
.prose hr { border: none; border-top: 1px solid var(--color-border); margin: 48px 0; }

/* Links in prose */
.prose a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .15s;
}
.prose a:hover { color: var(--color-gold); }

/* ── Inline Code ─────────────────────────────────────────── */
.prose code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: #f0f4ff;
  color: var(--color-navy-mid);
  border: 1px solid #dde5f4;
  border-radius: 4px;
  padding: 1px 6px;
}

/* ── Code Blocks ─────────────────────────────────────────── */
.prose pre {
  position: relative;
  background: #f5f7fb;
  border: 1px solid #dde5f0;
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  overflow-x: auto;
  margin: 24px 0 32px;
  box-shadow: var(--shadow-sm);
  /* Allow pre to be wider than the prose text columns */
  width: 100%;
}
.prose pre code {
  font-family: var(--font-mono);
  font-size: .85rem;
  background: none;
  border: none;
  padding: 0;
  color: #1e293b;
  line-height: 1.65;
}

/* Language label */
.prose pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  opacity: .6;
}

/* Copy button */
.copy-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: var(--font-sans);
}
.copy-btn:hover { background: rgba(15,23,42,.12); color: var(--color-text); }
.copy-btn.copied { color: var(--color-green); border-color: var(--color-green); }

/* PrismJS token overrides to match palette */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #8099b8; font-style: italic; }
.token.punctuation { color: #64748b; }
.token.namespace { opacity: .7; }
.token.property, .token.tag, .token.constant, .token.symbol, .token.deleted { color: #b91c1c; }
.token.boolean, .token.number { color: #0891b2; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #0d6e3f; }
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #b45309; }
.token.atrule, .token.attr-value, .token.keyword { color: #7c3aed; font-weight: 600; }
.token.function, .token.class-name { color: #1d4ed8; }
.token.regex, .token.important, .token.variable { color: #b45309; }

/* ── Tables ─────────────────────────────────────────────── */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 24px 0;
}
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--color-border); }
.table-wrap table { margin: 0; }
.prose th {
  background: var(--color-navy);
  color: var(--color-gold);
  padding: 12px 16px;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.prose td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.5;
}
.prose tr:nth-child(even) td { background: var(--color-surface-2); }
.prose tr:last-child td { border-bottom: none; }
.prose tr:hover td { background: #fffbf0; }

/* ── Checkboxes ─────────────────────────────────────────── */
.prose ul:has(input[type="checkbox"]),
.prose li:has(input[type="checkbox"]) {
  list-style: none;
  padding-left: 0;
}
.prose li input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 2px solid var(--color-gold-dark);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.prose li input[type="checkbox"]:checked {
  background: var(--color-gold);
  border-color: var(--color-gold);
}
.prose li input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 1px;
  font-size: .75rem;
  color: var(--color-navy);
  font-weight: 700;
}
.prose li:has(input[type="checkbox"]:checked) {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* ── FAQ Accordion ─────────────────────────────────────── */
.faq-accordion {
  margin: 16px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.faq-question {
  padding: 16px 20px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: background .15s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-gold);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] .faq-question { background: rgba(245,158,11,.05); }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-question:hover { background: var(--color-surface-2); }
.faq-answer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--color-border);
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* ── Related Content ──────────────────────────────────── */
.related-content {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--color-border);
}
.related-content h3 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  font-size: .875rem;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s, background .15s;
  line-height: 1.4;
}
.related-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
  background: #fffdf5;
  color: var(--color-navy);
}
.related-card-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

/* ── Section page sub-nav ─────────────────────────────── */
.subsection-nav {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.subsection-card {
  display: block;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.subsection-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
  color: inherit;
}
.subsection-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 6px;
}
.subsection-card p {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin: 0;
}
.subsection-card-arrow {
  margin-top: 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-gold-dark);
}

/* ── Mermaid Diagrams ─────────────────────────────────── */
.prose .mermaid {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
  text-align: center;
}

/* ── Page header band ─────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  padding: 56px 0 48px;
}
.page-header .container { position: relative; }
.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.025em;
  line-height: 1.15;
  max-width: 900px;
}
.page-header .page-desc {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.72);
  max-width: 720px;
  line-height: 1.7;
}

/* ── Utility ──────────────────────────────────────────── */
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Tradeoff / callout paragraphs ───────────────────── */
/* Paragraphs starting with "Tradeoff Analysis:" get callout styling */
.prose p:has(strong:first-child) {
  background: linear-gradient(90deg, rgba(245,158,11,.07) 0%, transparent 100%);
  border-left: 3px solid var(--color-gold);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

/* Common Pitfalls lists get a warning accent */
.prose h2:has(.header-anchor[href="#common-pitfalls"]) + ul li::marker,
.prose h2:has(.header-anchor[href="#common-pitfalls-anti-patterns"]) + ul li::marker {
  color: #dc2626;
}

/* ── Responsive Adjustments ───────────────────────────── */
@media (max-width: 1199px) {
  /* Hide sticky sidebar on tablet/mobile; nav moves to related section */
  .page-sidebar { display: none; }
}
@media (max-width: 768px) {
  .prose pre { padding: 14px 16px; border-left-width: 3px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .section-cards { grid-template-columns: 1fr; }
  .page-header { padding: 36px 0 32px; }
}
@media (max-width: 480px) {
  .page-content { padding: 28px 16px 64px; }
}

