/* ═══════════════════════════════════════════════════════
   MSP PLAYBOOK — MATTE BLUE DESIGN SYSTEM
   Optimized for readability, authority, and professional vibe.
   Microsoft/Enterprise blue accents with soft off-white surfaces.
   ═══════════════════════════════════════════════════════ */

:root {
  /* Core Matt Blue Palette (Enterprise/Microsoft vibe) */
  --ink: #1a202c;        /* Deep matte charcoal-blue */
  --ink-soft: #2d3748;   /* Softer blue-grey */
  --ink-muted: #718096;  /* Muted metadata */
  --slate: #4a5568;
  --slate-light: #64748b;
  
  /* Primary Branding: Matte Blue */
  --blue: #005a9e;       /* Microsoft Signature Blue */
  --blue-soft: #f0f4f8;  /* Very soft blue tint for backgrounds */
  --blue-dark: #004578;  /* Deep navy for hover states */
  
  /* Secondary Accents */
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.08);
  --teal: #0d70a5;
  --green: #107c10;      /* Office green for success/positive sentiment */
  --red: #a80000;
  
  /* Backgrounds & Surfaces */
  --bg: #f3f5f9;         /* Light matte grey-blue background */
  --card: #ffffff;       /* Pure white cards for separation */
  --snow: #ffffff;
  --cloud: #edf2f7;
  
  /* Borders & Shadows */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --sh-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --sh-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
  
  --r: 8px;              /* Professional tighter radius */
  --r-sm: 4px;
}

/* ── Body Reset ── */
body {
  background: var(--bg);
  background-image: radial-gradient(at 0% 0%, rgba(0, 90, 158, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  line-height: 1.7;
  color: var(--ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
}

/* ── Global Typography ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1.2; }
h2 { font-size: 1.75rem; margin-top: 2rem; color: var(--blue-dark); }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blue-dark);
}

/* ── Content Readability ── */
.content {
  max-width: 760px;
  margin: 0 auto;
}

.content p { margin-bottom: 1.5rem; }

/* ── Header: Professional Matte ── */
header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: var(--sh-sm) !important;
  height: 64px !important;
}

.logo {
  color: var(--blue) !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.logo-mark {
  background: var(--blue) !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: 4px !important;
}

nav a {
  color: var(--ink-soft) !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
}

nav a:hover {
  background: var(--blue-soft) !important;
  color: var(--blue) !important;
}

/* ── Search Input ── */
.search-input {
  background: var(--blue-soft) !important;
  border: 1px solid var(--border) !important;
  color: var(--ink) !important;
}

.search-input:focus {
  border-color: var(--blue) !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(0, 90, 158, 0.1) !important;
}

/* ── Cards & Grid Elements ── */
.card, .article-tile, .cat-card, .tool-card, .sb-card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--sh-sm) !important;
}

.card:hover, .article-tile:hover {
  border-color: var(--blue) !important;
  box-shadow: var(--sh-md) !important;
  transform: translateY(-2px) !important;
}

/* ── HERO NATURAL (Homepage Specific) ── */
.hero-natural {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 4rem 2rem !important;
  box-shadow: var(--sh-md) !important;
  text-align: center !important;
}

.hn-accent {
  color: var(--blue) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.hn-btn-primary {
  background: var(--blue) !important;
  color: #fff !important;
}

.hn-btn-primary:hover {
  background: var(--blue-dark) !important;
}

.hn-btn-secondary {
  background: #fff !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--ink-soft) !important;
}

.hn-btn-secondary:hover {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

.hn-stat .stat-num {
  color: var(--blue) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 1.875rem !important;
  font-weight: 800 !important;
}

.stat-num {
  color: var(--blue) !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 1.875rem !important;
  font-weight: 800 !important;
}


/* ── Footer ── */
footer {
  background: var(--ink) !important;
  color: var(--slate-light) !important;
  padding: 4rem 2rem !important;
}

footer .brand { color: #fff !important; }

/* ── UI Components ── */
.badge-cat { background: var(--blue-soft); color: var(--blue); }
.n-tool-cta { color: var(--blue); font-weight: 600; }
.progress { background: var(--blue); box-shadow: none; }

/* ── Ensure No Dark Mode Leaks ── */
[data-theme="dark"] { display: contents !important; }
[data-theme="dark"] body { background: var(--bg) !important; color: var(--ink-soft) !important; }
