@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #0D1F3C;
  --navy-mid: #1A3260;
  --navy-light: #2A4A8A;
  --accent: #C8A84B;
  --accent-light: #E8C96E;
  --accent-pale: #FDF6E3;
  --surface: #F7F8FA;
  --surface-card: #FFFFFF;
  --border: #E2E6ED;
  --border-strong: #C8CDD8;
  --text-primary: #0D1F3C;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --green: #1A7A4A;
  --green-bg: #E6F4EC;
  --red: #C0392B;
  --red-bg: #FDEEEC;
  --blue: #185FA5;
  --blue-bg: #E6F1FB;
  --purple: #534AB7;
  --purple-bg: #EEEDFE;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ─── HEADER ─── */
.header {
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.brand-text {
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.2px;
}
.brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-top: 1px;
}
.nav-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  border: none;
  background: transparent;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-pill:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-pill.active { background: var(--accent); color: var(--navy); font-weight: 600; }

/* ─── LAYOUT ─── */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.full-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.sidebar-header {
  padding: 14px 16px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: var(--surface); color: var(--navy); }
.sidebar-item.active { background: var(--blue-bg); color: var(--blue); font-weight: 500; }
.sidebar-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-item.active .sidebar-num { background: var(--blue); }

/* ─── CONTENT ─── */
.content { display: flex; flex-direction: column; gap: 1.5rem; }

/* ─── SECTION ─── */
.section {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.section-header {
  padding: 20px 24px;
  background: var(--navy);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-title { font-size: 18px; font-weight: 600; color: white; letter-spacing: 0.2px; }
.section-subtitle { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; font-weight: 400; }
.section-body { padding: 24px; }

/* ─── PROSE ─── */
.prose { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.prose:last-child { margin-bottom: 0; }

/* ─── STEPS GRID ─── */
.steps-overview {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.step-pill {
  background: var(--navy);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
}
.step-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.step-pill-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}
.step-pill-text { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.85); line-height: 1.3; }

/* ─── INFO BOX ─── */
.info-box {
  background: var(--blue-bg);
  border: 1px solid #B5D4F4;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.info-box-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.info-box-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.tip-box {
  background: var(--accent-pale);
  border: 1px solid #E8C96E;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.tip-box-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #8A6A00; margin-bottom: 6px; }
.tip-box-text { font-size: 13px; color: #5A4400; line-height: 1.6; }

.example-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.example-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.example-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── NUMBERED LIST ─── */
.num-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.num-item { display: flex; gap: 12px; align-items: flex-start; }
.num-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.num-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.num-text strong { color: var(--text-primary); font-weight: 600; }

/* ─── FRAMEWORK GRID ─── */
.framework-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.fw-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 16px;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.fw-card:hover { border-color: var(--accent); }
.fw-card-title { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.fw-sub-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.fw-sub-item { font-size: 11.5px; color: rgba(255,255,255,0.78); line-height: 1.4; }
.fw-sub-item::before { content: '· '; color: var(--accent-light); }

/* ─── BUCKET GRID ─── */
.bucket-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.bucket-card {
  background: var(--navy);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(200, 168, 75, 0.3);
  transition: all 0.15s;
}
.bucket-card:hover { background: var(--navy-mid); border-color: var(--accent); }
.bucket-name { font-size: 12px; font-weight: 600; color: white; line-height: 1.3; }

/* ─── QUANT CARDS ─── */
.quant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.quant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  border-top: 3px solid var(--navy);
}
.quant-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.quant-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.quant-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ─── FORMULA BOX ─── */
.formula-box {
  background: var(--navy);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.formula-label { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); }
.formula-eq { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: white; font-weight: 500; }

/* ─── QUALITATIVE GRID ─── */
.qual-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.qual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.qual-slash { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.qual-subtext { font-size: 10px; color: var(--text-muted); }

/* ─── RECOMMENDATION BOX ─── */
.rec-template {
  background: var(--navy);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 1px solid var(--accent);
}
.rec-template-line { font-size: 14px; color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: 8px; }
.rec-template-line:last-child { margin-bottom: 0; }
.rec-placeholder {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.rec-indent {
  padding-left: 20px;
  border-left: 2px solid rgba(200,168,75,0.4);
  margin-left: 12px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rec-indent-item { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ─── NEXT STEPS GRID ─── */
.next-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.ns-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  border-top: 3px solid var(--navy);
}
.ns-title { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.ns-body { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── QUICK REF ─── */
.quick-ref { background: var(--navy); border-radius: 12px; padding: 20px 24px; margin-bottom: 16px; }
.quick-ref-title { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.3px; }
.quick-ref-list { display: flex; flex-direction: column; gap: 8px; }
.quick-ref-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255,255,255,0.8); }
.quick-ref-item-num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── CASE PROMPT ─── */
.case-prompt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.case-prompt-speaker { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.case-prompt-text { font-size: 14px; color: var(--text-primary); line-height: 1.6; font-style: italic; }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  text-align: center;
  padding: 16px;
  margin-top: 2rem;
  border-top: 3px solid var(--accent);
}
.footer strong { color: var(--accent); font-weight: 600; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .steps-overview { grid-template-columns: repeat(4, 1fr); }
  .framework-grid, .bucket-grid { grid-template-columns: repeat(2, 1fr); }
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 0 1rem; }
  .nav-pill { padding: 5px 10px; font-size: 11px; }
}
@media (max-width: 600px) {
  .steps-overview { grid-template-columns: repeat(3, 1fr); }
  .quant-grid, .next-steps-grid { grid-template-columns: 1fr; }
  .framework-grid { grid-template-columns: 1fr; }
}
