/*
 * Browser Prompt — Base Design System
 * "Warm Workspace" · Pure CSS · No Tailwind
 *
 * Palette: warm charcoal (not blue-tinted void)
 * Accent: copper (#d4845a) · CTA: sage (#7fb685)
 * Fonts: Fraunces (display), Source Sans 3 (body), IBM Plex Mono (code)
 *
 * 1. Custom Properties
 * 2. Reset
 * 3. Typography
 * 4. Layout
 * 5. Navigation
 * 6. Cards & Surfaces
 * 7. Buttons & Badges
 * 8. Code Elements
 * 9. Forms
 * 10. Footer
 * 11. Article Body
 * 12. CTA Components
 * 13. Utilities
 * 14. Animations
 * 15. Responsive
 * 16. Print
 */

/* ============================================
   1. CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Surface (warm charcoal) */
  --surface-base: #161412;
  --surface-raised: #201e1b;
  --surface-overlay: #2d2a26;
  --surface-muted: #3d3933;

  /* Content (warm white) */
  --content-primary: #f5f0eb;
  --content-secondary: #b0a99f;
  --content-tertiary: #78716a;

  /* Accent (Copper) */
  --accent: #d4845a;
  --accent-light: #e8a67a;
  --accent-dark: #b86d45;
  --accent-muted: rgba(212, 132, 90, 0.12);

  /* CTA (Sage green) */
  --cta: #7fb685;
  --cta-light: #98c99e;
  --cta-dark: #5f9a66;

  /* Layout */
  --content-width: 720px;
  --container-width: 1280px;
  --nav-height: 64px;

  /* Typography */
  --font-sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  /* Motion — 200ms ease everywhere */
  --ease: 200ms ease;
}


/* ============================================
   2. RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--surface-base);
  color: var(--content-primary);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

button { background: none; border: none; cursor: pointer; font: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Selection */
::selection { background: rgba(212, 132, 90, 0.3); color: var(--content-primary); }
::-moz-selection { background: rgba(212, 132, 90, 0.3); color: var(--content-primary); }

/* Focus */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--surface-muted) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--content-tertiary); }


/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--content-primary);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 1.875rem; margin-top: 3rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.5rem; }

p { color: var(--content-secondary); margin-bottom: 1.5rem; }
strong, b { color: var(--content-primary); font-weight: 600; }
em, i { font-style: italic; }
small { font-size: 0.875rem; color: var(--content-tertiary); }

p a, li a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-muted);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--ease);
}
p a:hover, li a:hover { text-decoration-color: var(--accent); }

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--content-primary);
  font-style: italic;
}
blockquote p { color: var(--content-primary); margin-bottom: 0; }

hr { border: none; height: 1px; background: var(--surface-muted); margin: 3rem 0; }


/* ============================================
   4. LAYOUT
   ============================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Flex helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.col-span-2 { grid-column: span 2; }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

/* Text */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.75; }
.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; align-items: center; }
.w-full { width: 100%; }

/* Position */
.relative { position: relative; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.overflow-y-auto { overflow-y: auto; }


/* ============================================
   5. NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--surface-overlay);
  background: rgba(32, 30, 27, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-mark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.nav-logo-text { color: var(--content-secondary); font-size: 0.875rem; }
.nav-logo-text span { color: var(--accent); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-divider {
  width: 1px;
  height: 1rem;
  margin: 0 0.5rem;
  background: var(--surface-overlay);
}

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  background: var(--cta);
  color: var(--surface-base);
  transition: background var(--ease);
}
.nav-cta:hover { background: var(--cta-light); }

.nav-mobile-btn {
  display: none;
  padding: 0.5rem;
  color: var(--content-tertiary);
}

/* Mega menu triggers */
.mega-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--content-tertiary);
  transition: color var(--ease);
}
.mega-trigger:hover { color: var(--content-primary); }
.mega-trigger[aria-expanded="true"] { color: var(--content-primary); }
.mega-trigger svg { width: 12px; height: 12px; opacity: 0.5; transition: transform var(--ease); }
.mega-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Nav direct link (non-dropdown) */
.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--content-tertiary);
  transition: color var(--ease);
}
.nav-link:hover { color: var(--content-primary); }

/* Mega panels */
.mega-panel {
  border-top: 1px solid var(--surface-overlay);
  background: var(--surface-raised);
  transition: opacity 150ms ease, visibility 150ms ease;
}
.mega-panel.hidden { opacity: 0; visibility: hidden; display: none; }
.mega-panel:not(.hidden) { opacity: 1; visibility: visible; display: block; }

.mega-panel-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.mega-link {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--content-tertiary);
  transition: color var(--ease);
}
.mega-link:hover { color: var(--content-primary); }

.mega-view-all {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--ease);
}
.mega-view-all:hover { color: var(--accent-light); }

.mega-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--content-tertiary);
}
.mega-section-label svg { width: 16px; height: 16px; color: var(--accent); }

.mega-profession-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
  row-gap: 0.25rem;
}

.mega-cta-card {
  background: var(--accent-muted);
  border: 1px solid rgba(212, 132, 90, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mega-cta-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--content-primary);
}

.mega-cta-card p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--content-secondary);
}

.mega-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  background: var(--cta);
  color: var(--surface-base);
  transition: background var(--ease);
}
.mega-cta-btn:hover { background: var(--cta-light); }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--surface-overlay);
  background: var(--surface-raised);
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.mobile-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--content-primary);
}
.mobile-section-toggle svg {
  width: 16px; height: 16px;
  color: var(--content-tertiary);
  transition: transform var(--ease);
}

.mobile-section {
  padding-left: 1rem;
  padding-bottom: 0.75rem;
}
.mobile-section a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--content-secondary);
}
.mobile-section .section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--content-tertiary);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.mobile-section .view-all {
  font-weight: 500;
  color: var(--accent);
}

.mobile-direct-link {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--content-primary);
}

.mobile-cta {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  border-radius: 8px;
  background: var(--cta);
  color: var(--surface-base);
}


/* ============================================
   6. CARDS & SURFACES
   ============================================ */
.card {
  background: var(--surface-raised);
  border: 1px solid var(--surface-overlay);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow var(--ease);
}
.card:hover { box-shadow: 0 4px 16px rgba(22, 20, 18, 0.5); }

.card-interactive { cursor: pointer; }
.card-interactive:hover { box-shadow: 0 6px 20px rgba(22, 20, 18, 0.6); }

.card-cluster { border-left: 3px solid var(--accent); }

.surface-raised { background: var(--surface-raised); }
.surface-overlay { background: var(--surface-overlay); }
.border-overlay { border: 1px solid var(--surface-overlay); }


/* ============================================
   7. BUTTONS & BADGES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--ease), box-shadow var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface-base);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 12px rgba(212, 132, 90, 0.25);
}

.btn-cta {
  background: var(--cta);
  color: var(--surface-base);
  font-weight: 600;
}
.btn-cta:hover {
  background: var(--cta-light);
  box-shadow: 0 4px 12px rgba(127, 182, 133, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--content-secondary);
  border: 1px solid var(--surface-muted);
}
.btn-ghost:hover {
  background: var(--surface-overlay);
  color: var(--content-primary);
  border-color: var(--content-tertiary);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: var(--surface-overlay);
  color: var(--content-secondary);
}

.badge-accent {
  background: var(--accent-muted);
  color: var(--accent-light);
}

.badge-cta {
  background: rgba(127, 182, 133, 0.15);
  color: var(--cta-light);
}

/* Pill kicker (hero) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9999px;
  background: var(--accent-muted);
  color: var(--accent-light);
  border: 1px solid rgba(212, 132, 90, 0.2);
}


/* ============================================
   8. CODE ELEMENTS
   ============================================ */
code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface-overlay);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  color: var(--accent-light);
}

pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  background: var(--surface-raised);
  border: 1px solid var(--surface-overlay);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.75em;
  background: var(--surface-overlay);
  border: 1px solid var(--surface-muted);
  border-radius: 4px;
  padding: 0.125rem 0.5rem;
  box-shadow: 0 2px 0 var(--surface-muted);
  color: var(--content-primary);
}


/* ============================================
   9. FORMS
   ============================================ */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--surface-muted);
  border-radius: 6px;
  color: var(--content-primary);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.input::placeholder { color: var(--content-tertiary); }
.input:hover { border-color: var(--content-tertiary); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); outline: none; }


/* ============================================
   10. FOOTER
   ============================================ */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid var(--surface-overlay);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--content-tertiary);
  max-width: 20rem;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--content-tertiary);
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--content-tertiary);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--content-secondary); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--surface-overlay);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--surface-muted);
  margin: 0;
}

.footer-bottom a {
  color: var(--content-tertiary);
  transition: color var(--ease);
}
.footer-bottom a:hover { color: var(--content-secondary); }


/* ============================================
   11. ARTICLE BODY
   ============================================ */
.article-body { max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.article-body h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--content-primary);
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  margin: 2.5rem 0 1rem;
  color: var(--content-primary);
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--content-primary);
}
.article-body p { margin-bottom: 1.5rem; color: var(--content-secondary); line-height: 1.8; }
.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }
.article-body ul, .article-body ol { margin: 1.5rem 0; padding-left: 1.5rem; color: var(--content-secondary); }
.article-body li { margin-bottom: 0.75rem; line-height: 1.7; }
.article-body strong { color: var(--content-primary); }
.article-body blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--content-primary); }
.article-body .meta { color: var(--content-tertiary); font-size: 0.9rem; margin-bottom: 2rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 2rem 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 24px rgba(22, 20, 18, 0.24); }
.article-body th, .article-body td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--surface-overlay); color: var(--content-secondary); }
.article-body th { color: var(--content-primary); font-weight: 600; font-family: var(--font-serif); background: var(--surface-raised); border-bottom: 2px solid var(--accent); }
.article-body td:first-child { color: var(--content-primary); font-weight: 600; }
.article-body tbody tr:nth-child(even) { background: rgba(45, 42, 38, 0.35); }
.article-body tbody tr { transition: background 0.2s ease; }
.article-body tbody tr:hover { background: rgba(45, 42, 38, 0.5); }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body table caption { background: linear-gradient(90deg, var(--accent), var(--surface-raised)); height: 4px; }


/* ============================================
   12. CTA COMPONENTS
   ============================================ */
.cta-box {
  background: rgba(212, 132, 90, 0.08);
  border: 1px solid rgba(212, 132, 90, 0.25);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}
.cta-box h3 {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--content-primary);
}
.cta-box p { color: var(--content-secondary); margin-bottom: 1.5rem; }

.cta-button {
  display: inline-block;
  background: var(--cta);
  color: var(--surface-base);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--ease), box-shadow var(--ease);
}
.cta-button:hover {
  background: var(--cta-light);
  box-shadow: 0 4px 12px rgba(127, 182, 133, 0.25);
}

.cta-section {
  background: var(--surface-raised);
  border: 1px solid var(--surface-overlay);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
}

.related-articles { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--surface-overlay); }
.related-articles h3 { margin-bottom: 1rem; }
.related-articles ul { list-style: none; padding: 0; }
.related-articles li { margin-bottom: 0.5rem; }


/* ============================================
   13. UTILITIES
   ============================================ */
/* Color utilities */
.color-primary { color: var(--content-primary); }
.color-secondary { color: var(--content-secondary); }
.color-tertiary { color: var(--content-tertiary); }
.color-accent { color: var(--accent); }
.color-accent-light { color: var(--accent-light); }
.color-cta { color: var(--cta); }
.color-muted { color: var(--surface-muted); }

.bg-base { background: var(--surface-base); }
.bg-raised { background: var(--surface-raised); }
.bg-overlay { background: var(--surface-overlay); }

/* Rounded */
.rounded { border-radius: 6px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

/* Borders */
.border-b { border-bottom: 1px solid var(--surface-overlay); }
.border-t { border-top: 1px solid var(--surface-overlay); }

/* Gradients */
.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.breadcrumbs a { color: var(--content-tertiary); transition: color var(--ease); }
.breadcrumbs a:hover { color: var(--content-secondary); }
.breadcrumbs .sep { color: var(--surface-muted); }

/* Category nav bar */
.category-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--surface-raised);
  border: 1px solid var(--surface-overlay);
  border-radius: 12px;
}
.category-nav .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--content-tertiary);
  margin-bottom: 0.25rem;
}
.category-nav .name { font-weight: 500; color: var(--content-primary); }
.category-nav .browse { font-size: 0.875rem; font-weight: 500; color: var(--accent); }

/* Metric strip (hero) */
.metric-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--content-tertiary);
}
.metric-strip .divider {
  width: 1px;
  height: 1rem;
  background: var(--surface-overlay);
}


/* ============================================
   14. ANIMATIONS (Calm Confidence)
   No scroll entrance. No stagger. No blink.
   ============================================ */
.fade-in {
  animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ============================================
   15. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-mobile-btn { display: block; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; margin-top: 2.5rem; }
  h3 { font-size: 1.25rem; margin-top: 2rem; }

  .article-body h1 { font-size: 2rem; }
  .article-body h2 { font-size: 1.5rem; }

  .grid-2, .grid-3, .grid-4, .grid-6 {
    grid-template-columns: 1fr;
  }
  .col-span-2 { grid-column: span 1; }

  .container, .container-narrow { padding: 0 1rem; }

  pre {
    padding: 1rem;
    font-size: 0.8125rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .mega-panel-inner .grid-3,
  .mega-panel-inner .grid-4 {
    grid-template-columns: 1fr;
  }

  .metric-strip { flex-wrap: wrap; gap: 0.75rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}


/* ============================================
   16. PRINT
   ============================================ */
@media print {
  body { background: white; color: black; }
  .no-print, .site-nav, .site-footer { display: none !important; }
  a { text-decoration: underline; color: black; }
  pre, code { background: #f0f0f0; border: 1px solid #ccc; }
}
