/* MC Mastery — shared stylesheet */

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

:root {
  --blue: #185FA5;
  --blue-light: #E6F1FB;
  --blue-mid: #378ADD;
  --blue-dark: #0C447C;
  --green: #0F6E56;
  --green-light: #E1F5EE;
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --amber: #854F0B;
  --amber-light: #FAEEDA;
  --coral: #993C1D;
  --coral-light: #FAECE7;
  --gray-50: #F8F8F7;
  --gray-100: #F1EFE8;
  --gray-200: #D3D1C7;
  --gray-400: #888780;
  --gray-600: #5F5E5A;
  --gray-900: #1A1A18;
  --text: #1A1A18;
  --text-muted: #5F5E5A;
  --text-subtle: #888780;
  --border: rgba(0,0,0,0.1);
  --border-mid: rgba(0,0,0,0.18);
  --surface: #ffffff;
  --surface-alt: #F8F8F7;
  --radius: 8px;
  --radius-lg: 12px;
  --nav-h: 56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.nav-logo-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue-mid);
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--blue); font-weight: 500; }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-mid);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--gray-50); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 12px max(32px, calc((100vw - 1100px) / 2));
  font-size: 13px;
  color: var(--text-subtle);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--text-subtle); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text-muted); }

/* ── HERO ── */
.page-hero {
  padding: 56px max(32px, calc((100vw - 1100px) / 2)) 48px;
  background: var(--surface-alt);
  border-bottom: 0.5px solid var(--border);
}
.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 16px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.page-hero .lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-mid); cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-outline:hover { background: var(--gray-50); text-decoration: none; }

/* ── PROGRESS / LEVEL BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}
.badge-beginner { background: var(--green-light); color: var(--green); }
.badge-practitioner { background: var(--blue-light); color: var(--blue); }
.badge-advanced { background: var(--purple-light); color: var(--purple); }
.badge-cert { background: var(--amber-light); color: var(--amber); }
.badge-new { background: var(--green-light); color: var(--green); }
.badge-popular { background: var(--blue-light); color: var(--blue); }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 2px; }
.sidebar-nav a {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.12s;
}
.sidebar-nav a:hover { background: var(--gray-50); color: var(--text); }
.sidebar-nav a.active { background: var(--blue-light); color: var(--blue); font-weight: 500; }

/* ── MAIN CONTENT ── */
.main-content h2 {
  font-size: 22px; font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 0.5px solid var(--border);
}
.main-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.main-content h3 {
  font-size: 17px; font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}
.main-content p { margin-bottom: 14px; color: var(--text-muted); }
.main-content ul, .main-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.main-content li { margin-bottom: 6px; }
.main-content strong { color: var(--text); font-weight: 600; }

/* ── CODE BLOCKS ── */
.code-block {
  position: relative;
  margin: 20px 0;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1e1e2e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-lang {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.code-title {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.copy-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.85); }
.copy-btn.copied { color: #4ade80; border-color: rgba(74,222,128,0.4); }
.code-block pre {
  margin: 0;
  padding: 20px;
  background: #1e1e2e;
  color: #cdd6f4;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}
.code-block code {
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  color: inherit;
}

/* Syntax highlighting — manual */
.kw { color: #c792ea; }        /* keywords */
.fn { color: #82aaff; }        /* functions */
.str { color: #c3e88d; }       /* strings */
.num { color: #f78c6c; }       /* numbers */
.cmt { color: #7c9aab; font-style: italic; } /* comments */
.var { color: #f07178; }       /* variables */
.op  { color: #89ddff; }       /* operators */
.attr{ color: #ffcb6b; }       /* attributes */
.tag { color: #f07178; }       /* HTML tags */
.punc{ color: #89ddff; }       /* punctuation */

/* ── INFO CALLOUT ── */
.callout {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  margin: 20px 0;
  border-left: 3px solid;
}
.callout-info { background: var(--blue-light); border-color: var(--blue-mid); }
.callout-info .callout-title { color: var(--blue-dark); }
.callout-tip { background: var(--green-light); border-color: var(--green); }
.callout-tip .callout-title { color: var(--green); }
.callout-warn { background: var(--amber-light); border-color: #EF9F27; }
.callout-warn .callout-title { color: var(--amber); }
.callout-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.callout p { margin: 0; font-size: 14px; }

/* ── MODULE CARDS ── */
.module-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.module-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.module-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 2px 12px rgba(24,95,165,0.07);
  text-decoration: none;
}
.module-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.module-num.done { background: var(--green-light); color: var(--green); }
.module-body { flex: 1; }
.module-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.module-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.module-meta { font-size: 12px; color: var(--text-subtle); margin-top: 6px; display: flex; gap: 12px; }

/* ── PATH CARDS (homepage) ── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.path-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s;
  display: flex; flex-direction: column;
}
.path-card:hover { border-color: var(--border-mid); text-decoration: none; }
.path-card.featured { border: 2px solid var(--blue-mid); }
.path-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.path-icon.bg-green { background: var(--green-light); color: var(--green); }
.path-icon.bg-blue { background: var(--blue-light); color: var(--blue); }
.path-icon.bg-purple { background: var(--purple-light); color: var(--purple); }
.path-icon.bg-amber { background: var(--amber-light); color: var(--amber); }
.path-card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.path-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; flex: 1; margin-bottom: 12px; }
.path-card-meta { font-size: 12px; color: var(--text-subtle); }

/* ── TOPIC CHIPS ── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.topic-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.12s, border 0.12s;
  border: 0.5px solid transparent;
}
.topic-chip:hover { background: var(--surface); border-color: var(--border); text-decoration: none; }
.topic-chip-icon { font-size: 16px; color: var(--text-subtle); }
.topic-chip-name { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; }
.topic-chip-count { font-size: 11px; color: var(--text-subtle); }

/* ── SECTIONS ── */
.section {
  padding: 52px 0;
  border-bottom: 0.5px solid var(--border);
}
.section:last-child { border-bottom: none; }
.section-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 6px;
}
.section-title { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.section-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }

/* ── ARTICLE CARDS ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.article-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--border-mid); text-decoration: none; }
.article-type-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.article-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 8px; flex: 1; }
.article-meta { font-size: 12px; color: var(--text-subtle); display: flex; gap: 10px; }

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.tool-card {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  border: 0.5px solid transparent;
  transition: all 0.12s;
}
.tool-card:hover { background: var(--surface); border-color: var(--border); text-decoration: none; }
.tool-card-icon { font-size: 24px; color: var(--text-muted); margin-bottom: 8px; }
.tool-card-name { font-size: 13px; font-weight: 600; color: var(--text); }
.tool-card-desc { font-size: 11px; color: var(--text-subtle); margin-top: 3px; }

/* ── CTA BAND ── */
.cta-band {
  padding: 52px 32px;
  background: var(--surface-alt);
  text-align: center;
  border-top: 0.5px solid var(--border);
}
.cta-band h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.cta-band p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.email-form {
  display: flex; gap: 8px; max-width: 400px; margin: 0 auto;
}
.email-form input {
  flex: 1; padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-mid);
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.email-form input:focus { border-color: var(--blue-mid); }

/* ── FOOTER ── */
.site-footer {
  border-top: 0.5px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 12.5px; color: var(--text-subtle); text-decoration: none; }
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 12.5px; color: var(--text-subtle); }

/* ── STATS ROW ── */
.stats-row {
  display: flex; gap: 36px; flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 0.5px solid var(--border);
}
.stat-item {}
.stat-num { font-size: 26px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-subtle); margin-top: 2px; }

/* ── CERT CARD ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.cert-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.cert-card:hover { border-color: var(--border-mid); text-decoration: none; }
.cert-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.cert-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.cert-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.cert-stats { display: flex; gap: 16px; }
.cert-stat-item {}
.cert-stat-num { font-size: 17px; font-weight: 700; color: var(--text); }
.cert-stat-label { font-size: 11px; color: var(--text-subtle); }

/* ── DIFFICULTY PIPS ── */
.diff-row { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.pip { width: 9px; height: 9px; border-radius: 50%; }
.pip-filled { background: var(--blue-mid); }
.pip-empty { background: var(--gray-200); }
.diff-label { font-size: 12px; color: var(--text-subtle); margin-left: 4px; }

/* ── STEP LIST ── */
.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
}
.step-list li:last-child { border-bottom: none; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-content {}
.step-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0; }
.data-table th {
  text-align: left; font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-mid);
  color: var(--text);
  background: var(--surface-alt);
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-muted);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table code {
  font-size: 12px; font-family: 'Fira Code', monospace;
  background: var(--gray-100); padding: 2px 6px; border-radius: 4px;
  color: var(--text);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
  .nav-links { display: none; }
  .page-hero h1 { font-size: 26px; }
  .section-title { font-size: 20px; }
}
