/* ═══════════════════════════════════════════════
   PRAXIS Platform Document — Stylesheet
   Version 1.0 · 2026
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* ── Design Tokens ──────────────────────────── */
:root {
  --black:          #0a0908;
  --off-black:      #141210;
  --red:            #c0410f;
  --red-dim:        #8a2e0f;
  --red-bg:         #fdf1ec;
  --red-border:     #edb898;

  --sidebar-bg:     #ffffff;
  --sidebar-border: #e5e0d8;
  --sidebar-hover:  #f5f2ed;

  --surface:        #ffffff;
  --surface-2:      #f8f5f1;
  --surface-3:      #f0ece5;
  --border:         #e5e0d8;
  --border-2:       #d5cfc5;

  --text-1:         #1a1712;
  --text-2:         #585048;
  --text-3:         #98908a;
  --text-4:         #c0b8b0;

  --green-bg:       #f0f8f2;
  --green-border:   #a8d4b8;
  --green-text:     #2a6b42;

  --purple:         #7b6bb5;
  --purple-bg:      #f5f3fa;
  --purple-border:  #c4bce0;
  --amber:          #b8862e;
  --amber-bg:       #faf6ec;
  --amber-border:   #dfc888;
  --blue:           #3a7cc0;
  --blue-bg:        #ecf2fa;
  --blue-border:    #9cc0e5;
  --teal:           #2a8a7a;
  --teal-bg:        #ecf8f6;
  --teal-border:    #8ad4c8;

  --font-display:   'Syne', system-ui, sans-serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'DM Mono', 'Courier New', monospace;

  --radius-sm:      3px;
  --radius-md:      6px;
  --radius-lg:      10px;
  --radius-xl:      14px;

  --sb-sub-color:       #98908a;
  --sb-section-label:   #98908a;
  --sb-btn-color:       #585048;
  --sb-btn-hover:       #1a1712;
  --sb-btn-active-bg:   #f0ece5;
  --sb-sub-btn-color:   #787068;
  --sb-meta-color:      #98908a;
  --sb-scrollbar-thumb: #d5cfc5;

  --callout-color:      #281408;
  --callout-strong:     #1a0c04;

  --sidebar-width:  240px;
}

/* ── Dark Mode Tokens ────────────────────────── */
[data-theme="dark"] {
  --black:          #f0ece5;
  --off-black:      #e5e0d8;
  --red:            #e05a2b;
  --red-dim:        #b8451a;
  --red-bg:         #1e1210;
  --red-border:     #4a2218;

  --sidebar-bg:     #0d0b0a;
  --sidebar-border: #1a1816;
  --sidebar-hover:  #171412;

  --surface:        #161412;
  --surface-2:      #1a1816;
  --surface-3:      #201e1a;
  --border:         #2a2622;
  --border-2:       #3a3530;

  --text-1:         #e5e0d8;
  --text-2:         #b0a89e;
  --text-3:         #888078;
  --text-4:         #686058;

  --green-bg:       #101e14;
  --green-border:   #1a3a24;
  --green-text:     #6abf82;

  --purple:         #9b8ed5;
  --purple-bg:      #1a1828;
  --purple-border:  #3a3560;
  --amber:          #d4a848;
  --amber-bg:       #1e1a10;
  --amber-border:   #4a3e1a;
  --blue:           #5a9ce0;
  --blue-bg:        #101820;
  --blue-border:    #1e3550;
  --teal:           #4abaa8;
  --teal-bg:        #101e1c;
  --teal-border:    #1a3a35;

  --sb-sub-color:       #888078;
  --sb-section-label:   #686058;
  --sb-btn-color:       #a09890;
  --sb-btn-hover:       #d0c8c0;
  --sb-btn-active-bg:   #1a1614;
  --sb-sub-btn-color:   #888078;
  --sb-meta-color:      #686058;
  --sb-scrollbar-thumb: #383028;

  --callout-color:      #d0c8c0;
  --callout-strong:     #e5e0d8;
}

[data-theme="dark"] body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

/* ── Layout ─────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--surface-2);
  color: var(--text-1);
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-right: 1px solid var(--sidebar-border);
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section-wrap {
  max-width: 840px;
  padding: 60px 72px 96px;
}

/* ── Sidebar ─────────────────────────────────── */
.sb-brand {
  padding: 26px 24px 20px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sb-wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -1.5px;
  line-height: 1;
}

.sb-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--sb-sub-color);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 7px;
}

.sb-nav {
  padding: 12px 0 24px;
  flex: 1;
}

.sb-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sb-section-label);
  padding: 18px 24px 7px;
}

.sb-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sb-btn-color);
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  line-height: 1.5;
}

.sb-btn:hover {
  color: var(--sb-btn-hover);
  background: var(--sidebar-hover);
}

.sb-btn.active {
  color: var(--red);
  border-left-color: var(--red);
  background: var(--sb-btn-active-bg);
}

.sb-btn.sb-sub-btn {
  padding-left: 36px;
  font-size: 10px;
  color: var(--sb-sub-btn-color);
  letter-spacing: 1px;
}

.sb-btn.sb-sub-btn.active {
  color: var(--red);
}

.sb-meta {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--sidebar-border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--sb-meta-color);
  letter-spacing: 1px;
  line-height: 1.6;
}

/* ── Document Header ─────────────────────────── */
.doc-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.doc-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}

.doc-lead {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 640px;
  padding-left: 18px;
  border-left: 2px solid var(--border-2);
}

/* ── Section Dividers ────────────────────────── */
.sub-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 36px 0 16px;
}

.rule {
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}

/* ── Callout ─────────────────────────────────── */
.callout {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--callout-color);
  line-height: 1.6;
}

.callout strong {
  font-weight: 600;
  color: var(--callout-strong);
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 14px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 9px;
  letter-spacing: -0.1px;
}

.card-body {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

.card-body strong {
  font-weight: 500;
  color: var(--text-1);
}

/* ── Stat Blocks ─────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stat-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1.5px;
  line-height: 1;
}

.stat-value.red {
  color: var(--red);
}

/* ── Layer / List Items ──────────────────────── */
.item-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 28px;
}

.list-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface-3);
}

.list-item:last-child {
  border-bottom: none;
}

.item-badge {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-top: 1px;
}

.item-body {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}

.item-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.tag.live {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-text);
}

/* ── Data Tables ─────────────────────────────── */
.data-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 28px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
}

.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 12px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--surface-3);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.6;
}

.data-table td:first-child {
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  padding-right: 28px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr.row-total td {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: none;
}

/* ── Class Grid ──────────────────────────────── */
.class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.class-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.class-role {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.class-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.class-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── XP Table ────────────────────────────────── */
.xp-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 20px;
}

.xp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 22px;
  border-bottom: 1px solid var(--surface-3);
  font-size: 14px;
}

.xp-row:last-child {
  border-bottom: none;
}

.xp-row:nth-child(even) {
  background: var(--surface-2);
}

.xp-action {
  color: var(--text-2);
}

.xp-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
  letter-spacing: -0.3px;
}

/* ── Phase Blocks ────────────────────────────── */
.phase-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 20px;
}

.phase-block.featured {
  border: 1.5px solid var(--red);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.phase-block.featured .phase-header {
  background: var(--red-bg);
  border-bottom-color: var(--red-border);
}

.phase-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
}

.phase-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

.phase-dates {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-left: auto;
}

.phase-intro {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  border-bottom: 1px solid var(--surface-3);
}

.phase-intro strong {
  color: var(--text-1);
  font-weight: 500;
}

.track-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
}

.track-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 11px 10px 11px 24px;
  border-right: 1px solid var(--surface-3);
  border-bottom: 1px solid var(--surface-3);
  display: flex;
  align-items: flex-start;
}

.track-items {
  padding: 11px 24px;
  border-bottom: 1px solid var(--surface-3);
}

.track-label:last-of-type,
.track-items:last-child {
  border-bottom: none;
}

.track-item {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 4px;
  padding-left: 16px;
  position: relative;
}

.track-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
}

.track-item.key {
  color: var(--text-1);
  font-weight: 500;
}

.track-item.key::before {
  content: "★";
  font-size: 10px;
}

/* ── Bullet List ─────────────────────────────── */
.bullet-list {
  margin-bottom: 28px;
}

.bullet-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-3);
  align-items: flex-start;
}

.bullet-item:last-child {
  border-bottom: none;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.bullet-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.bullet-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── NYC Grid ────────────────────────────────── */
.nyc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.nyc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.nyc-box-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-3);
}

.nyc-item {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 5px;
  padding-left: 14px;
  position: relative;
}

.nyc-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
}

/* ── Checklist ───────────────────────────────── */
.checklist {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 28px;
}

.check-item {
  padding: 18px 24px;
  border-bottom: 1px solid var(--surface-3);
}

.check-item:last-child {
  border-bottom: none;
}

.check-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 5px;
}

.check-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Document Footer ─────────────────────────── */
.doc-footer {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 1px;
}

/* ── Theme Toggle ───────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px 0;
}

.theme-toggle-btn {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid var(--sidebar-border);
  background: #d5cfc5;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle-btn::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] .theme-toggle-btn {
  background: #3a3530;
}

[data-theme="dark"] .theme-toggle-btn::after {
  transform: translateX(16px);
  background: var(--red);
}

.theme-toggle-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sb-meta-color);
}

/* ── Scrollbar ───────────────────────────────── */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--sb-scrollbar-thumb); border-radius: 2px; }

/* ── Section Hero Image ──────────────────────── */
.section-hero {
  width: 100%;
  margin-bottom: 32px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.section-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.section-hero figcaption {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  padding: 8px 14px;
  background: var(--surface);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.section-hero figcaption a {
  color: var(--text-3);
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 2px;
}

.section-hero figcaption a:hover {
  color: var(--red);
}

/* ── Inline Figure ───────────────────────────── */
.fig {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.fig img {
  width: 100%;
  display: block;
}

.fig figcaption {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  padding: 8px 14px;
  background: var(--surface);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.fig figcaption a {
  color: var(--text-3);
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 2px;
}

.fig figcaption a:hover {
  color: var(--red);
}

/* ── Figure Grid (side-by-side images) ───────── */
.fig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.fig-grid .fig {
  margin-bottom: 0;
}

/* ── Prompt Card ─────────────────────────────── */
.prompt-card {
  background: var(--surface-2);
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 14px;
}

.prompt-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.prompt-question {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.prompt-hint {
  font-size: 14px;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Prompt Category Variants ──────────────── */
.prompt-card[data-category="tool"] {
  border: 2px solid var(--red-border);
  border-left: 4px solid var(--red);
  background: var(--red-bg);
}
.prompt-card[data-category="tool"] .prompt-eyebrow { color: var(--red); }

.prompt-card[data-category="model"] {
  border: 2px solid var(--purple-border);
  border-left: 4px solid var(--purple);
  background: var(--purple-bg);
}
.prompt-card[data-category="model"] .prompt-eyebrow { color: var(--purple); }

.prompt-card[data-category="sop"] {
  border: 2px solid var(--green-border);
  border-left: 4px solid var(--green-text);
  background: var(--green-bg);
}
.prompt-card[data-category="sop"] .prompt-eyebrow { color: var(--green-text); }

.prompt-card[data-category="assess"] {
  border: 2px solid var(--amber-border);
  border-left: 4px solid var(--amber);
  background: var(--amber-bg);
}
.prompt-card[data-category="assess"] .prompt-eyebrow { color: var(--amber); }

.prompt-card[data-category="plan"] {
  border: 2px solid var(--blue-border);
  border-left: 4px solid var(--blue);
  background: var(--blue-bg);
}
.prompt-card[data-category="plan"] .prompt-eyebrow { color: var(--blue); }

.prompt-card[data-category="guide"] {
  border: 2px solid var(--teal-border);
  border-left: 4px solid var(--teal);
  background: var(--teal-bg);
}
.prompt-card[data-category="guide"] .prompt-eyebrow { color: var(--teal); }

/* ── Tool Card ───────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.tool-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.tool-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 10px;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.tool-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.tool-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.12s ease;
}

.tool-link:hover {
  color: var(--red);
}

/* ── Section Purpose ─────────────────────────── */
.section-purpose {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-left: 3px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--green-text);
  line-height: 1.6;
}

.section-purpose strong {
  font-weight: 600;
}

/* ── Print ───────────────────────────────────── */
@media print {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .section { display: block !important; page-break-after: always; }
  .section-wrap { padding: 32px 40px; }
  .section-hero img { height: auto; max-height: 200px; }
  .fig img { max-height: 300px; object-fit: contain; }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-100%); transition: transform 0.2s ease; }
  .sidebar.open { transform: translateX(0); width: 240px; }
  .section-wrap { padding: 40px 28px 64px; }
  .stat-row { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: 1fr; }
  .nyc-grid { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  .track-label { border-right: none; padding-left: 24px; }
  .tool-grid { grid-template-columns: 1fr; }
  .fig-grid { grid-template-columns: 1fr; }
  .section-hero img { height: 200px; }

  /* Mobile menu button */
  .mobile-menu-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
  }
  .mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-1);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
}

@media (min-width: 901px) {
  .mobile-menu-btn { display: none; }
}
