/* ─── GTM Handbook — Base CSS ─────────────────────────────────────────────
   Shared across all pages: hub + all domain handbooks.
   Defines CSS variables, reset, typography tokens, shared atoms.
   Domain-specific accent colors are injected at runtime via JS.
──────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
  /* Backgrounds */
  --bg:  #0d0f0e;
  --bg2: #131614;
  --bg3: #181c1a;
  --bg4: #1e2320;

  /* Borders */
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);

  /* Text */
  --text:  #e8ece9;
  --text2: #9aa69d;
  --text3: #5c6b61;

  /* Accent — default neutral; overridden per domain via JS */
  --accent:      #ffffff;
  --accent2:     #cccccc;
  --accent-dim:  rgba(255,255,255,0.10);
  --accent-dim2: rgba(255,255,255,0.06);
  --accent-rgb:  255,255,255;

  /* Pill tag backgrounds + text */
  --tag-purple:      #2d2545;
  --tag-purple-text: #b39ddb;
  --tag-teal:        #0f2b25;
  --tag-teal-text:   #4db6ac;
  --tag-amber:       #2b1f0a;
  --tag-amber-text:  #ffcc80;
  --tag-coral:       #2b140f;
  --tag-coral-text:  #ff8a65;
  --tag-blue:        #0d1e30;
  --tag-blue-text:   #64b5f6;

  /* Layout */
  --sidebar-w: 280px;
  --header-h:  56px;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Pill tags ── */
.pill {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 400;
}
.pill-purple { background: var(--tag-purple); color: var(--tag-purple-text); }
.pill-teal   { background: var(--tag-teal);   color: var(--tag-teal-text); }
.pill-amber  { background: var(--tag-amber);  color: var(--tag-amber-text); }
.pill-coral  { background: var(--tag-coral);  color: var(--tag-coral-text); }
.pill-blue   { background: var(--tag-blue);   color: var(--tag-blue-text); }
.item-pills  { display: flex; gap: 4px; flex-wrap: wrap; }

/* ── Category dot colors ── */
.section-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-frameworks { background: #4aff8c; }
.dot-technical  { background: #64b5f6; }
.dot-algorithms { background: #ff8a65; }
.dot-people     { background: #b39ddb; }
.dot-policies   { background: #ffcc80; }
.dot-tools      { background: #4db6ac; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--accent); color: #0d0f0e; }
.btn-primary:hover { background: var(--accent2); }
.btn-secondary { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg4); color: var(--text); }

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.25s ease forwards; }

/* ── No-results empty state ── */
.no-results {
  padding: 80px 0;
  text-align: center;
  color: var(--text3);
}
.no-results h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--text2);
  margin-bottom: 8px;
}
