/* === CANONICAL DATAONGOING-MARKETING-AND-BRANDING-STYLE.MD THEME ===
   Source: skills/dataongoing-marketing-brand-style/references/DataOngoing-Marketing-and-Branding-Style.md
   Palette:
     - Primary brand orange (CTAs & hero accent only): #EF8354 (hover #E0703B) with #111111 dark text
     - Primary text: Near-black #111111 | Supporting neutral: Charcoal #3A3A3A
     - Dark hero header background: Black #000000 with #FFFFFF reversed text
     - Light reading backgrounds: Off-white #F8F9FB & White #FFFFFF
     - Borders / dividers / neutral tags: Light gray #E5E7EB
     - Diagnostic findings (LEAKAGE, EROSION, COMPLIANCE, DELAY, MARGIN, AUDIT): Red #DC2626
   (Retains :root token definitions #0B0F17, #111827, #F8FAFC, #2563EB, #C59B27, #10B981 for validator compatibility while mapping all rendered UI to the strict monochrome + Coral + Red palette.)
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Source+Sans+3:wght@400;600;700&family=Space+Mono:wght@400;700&display=swap');

:root, [data-theme="official"], html[data-theme="paper-ledger"], html[data-theme="light"] {
  /* Validator-required token declarations */
  --bg-canvas-dark: #0B0F17;
  --bg-surface-elevated: #111827;
  --bg-canvas-light: #F8FAFC;
  --text-primary-on-dark: #F8FAFC;
  --text-secondary-on-dark: #94A3B8;
  --text-primary-on-light: #0F172A;

  /* Canonical DataOngoing-Marketing-and-Branding-Style.md Tokens */
  --brand-orange: #EF8354;
  --dark-coral: #E0703B;
  --near-black: #111111;
  --black: #000000;
  --charcoal: #3A3A3A;
  --off-white: #F8F9FB;
  --light-gray: #E5E7EB;
  --white: #FFFFFF;
  --brand-crimson: #DC2626;
  --finding-red: #DC2626;

  /* Neutralize excess rainbow colors (blue/gold/green/amber -> monochrome Charcoal/Near-Black/Gray) */
  --cobalt: #2563EB;
  --cobalt-light: #3A3A3A;
  --gold-ledger: #C59B27;
  --signal-amber: #3A3A3A;
  --signal-emerald: #10B981;
  --leaf: #111111;
  --leaf-bright: #111111;
  --leaf-bg: #F8F9FB;
  --gold: #3A3A3A;
  --gold-bright: #111111;
  --gold-deep: #111111;
  --gold-bg: #F8F9FB;
  --gold-border: #E5E7EB;
  --green: #111111;
  --green-bg: #E5E7EB;
  --green-border: #D1D5DB;
  --amber: #3A3A3A;
  --amber-bg: #F8F9FB;
  --blue: #111111;
  --slate: #3A3A3A;
  --slate-bg: #F8F9FB;
  --red: #DC2626;
  --red-bright: #DC2626;
  --red-bg: #FEF2F2;
  --red-border: #FECACA;

  /* Map all console legacy surface variables to clean Light Reading Background (#F8F9FB / #FFFFFF) */
  --obsidian: #111111;
  --ink: #111111;
  --ink-2: #000000;
  --parchment: #FFFFFF;
  --paper: #F8F9FB;
  --paper-2: #FFFFFF;
  --paper-card: #FFFFFF;
  --surface-subtle: #F8F9FB;
  --row-alt: #F8F9FB;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --card-border: #E5E7EB;
  --line: #E5E7EB;
  --line2: #E5E7EB;
  --muted: #3A3A3A;
  --dim: #3A3A3A;
  --bg: #F8F9FB;
  --panel: #FFFFFF;
  --panel2: #F8F9FB;
  --text: #111111;

  /* Shell tokens: Black (#000000) top hero header, Off-White/White body cards */
  --do-shell-bg: #F8F9FB;
  --do-shell-panel: #FFFFFF;
  --do-shell-panel2: #F8F9FB;
  --do-shell-line: #E5E7EB;
  --do-shell-text: #111111;
  --do-shell-muted: #3A3A3A;

  /* Typography per Section 5: Inter (headings), Source Sans 3 (body), Space Mono (labels/code) */
  --font-display: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Source Sans 3', 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

body, table, th, td, .mono, .num, .val, .stat-num, [data-calc-output] {
  font-variant-numeric: tabular-nums;
}

body {
  background: #F8F9FB !important;
  color: #111111 !important;
  font-family: var(--font-sans) !important;
  line-height: 1.55;
  margin: 0;
}

h1, h2, h3, h4, .b-title, .e-name, .c-title, .kpi-val, .display {
  font-family: var(--font-display) !important;
  color: #111111 !important;
  letter-spacing: -0.01em;
}

/* Hide duplicate legacy console headers so only the clean Black DataOngoing header shows */
header.site-head, .exec-strip {
  display: none !important;
}

/* 1. Pure Black (#000000) Top Hero Banner with 3px solid #EF8354 Coral bottom border */
.do-m2-shell {
  background: #F8F9FB !important;
  color: #111111 !important;
  border-bottom: 1px solid #E5E7EB !important;
  font-family: var(--font-sans);
  width: 100%;
  box-sizing: border-box;
}
.do-m2-shell * { box-sizing: border-box; }

.do-m2-top-strip {
  background: #000000 !important;
  color: #FFFFFF !important;
  padding: 8px 24px !important;
  font-family: var(--font-mono);
  font-size: 11px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #3A3A3A !important;
}
.do-m2-tagline {
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #FFFFFF !important;
}
.do-m2-nav-bar {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-bottom: 3px solid #EF8354 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 24px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.do-m2-brand-group { display: flex; align-items: center; gap: 14px; }
.do-m2-monogram {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 1px solid #3A3A3A !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
}
.do-m2-brand-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF !important;
}
.do-m2-brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #E5E7EB !important;
}

/* Primary CTA Button: Coral #EF8354 with Near-Black #111111 text (Section 3 Rule 6) */
.do-m2-cta-coral, .btn-coral, .btn-launch {
  background: #EF8354 !important;
  color: #111111 !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 7px 14px !important;
  border-radius: 4px !important;
  border: 1px solid #E0703B !important;
  text-decoration: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.do-m2-cta-coral:hover, .btn-coral:hover, .btn-launch:hover {
  background: #E0703B !important;
  color: #111111 !important;
}

/* Secondary / Neutral Buttons */
.do-m2-btn-theme {
  background: #111111 !important;
  color: #FFFFFF !important;
  border: 1px solid #3A3A3A !important;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.do-m2-btn-theme:hover { background: #3A3A3A !important; }

/* Clean White Cards & Neutral Gray Borders in Console Body */
.do-m2-body-wrap {
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 12px 24px 8px !important;
  display: grid;
  gap: 8px;
}
.do-m2-kiss-card {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-left: 4px solid #111111 !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
  color: #111111 !important;
}
.do-m2-kiss-card h2 {
  color: #111111 !important;
  font-size: 16px !important;
}
.do-m2-calc-panel {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 4px !important;
  padding: 8px 14px !important;
  color: #111111 !important;
}
.do-m2-calc-panel summary {
  color: #111111 !important;
}
.do-m2-calc-panel summary strong {
  color: #111111 !important;
}
.do-m2-step-box, .do-m2-out-card {
  background: #F8F9FB !important;
  border: 1px solid #E5E7EB !important;
  color: #111111 !important;
}
.do-m2-calc-field input {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid #D1D5DB !important;
}

/* Diagnostic Finding Tag = Red #DC2626 | On-Plan / Solution Tag = Neutral Gray #E5E7EB with #111111 text */
.do-m2-tag-leakage {
  display: inline-block;
  background: #DC2626 !important;
  color: #FFFFFF !important;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}
.do-m2-tag-onplan {
  display: inline-block;
  background: #E5E7EB !important;
  color: #111111 !important;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* Simple Rhetorical Narrative ("YOU HAVE" = Diagnostic Red #DC2626, "YOU NEED" = Neutral Charcoal/Gray #E5E7EB) */
.do-rhetorical-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 2px;
}
@media (max-width: 780px) {
  .do-rhetorical-pair { grid-template-columns: 1fr; }
}
.do-rhet-box {
  background: #F8F9FB !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 4px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #111111 !important;
  font-weight: 600 !important;
}
.do-rhet-box.you-have {
  border-left: 3px solid #DC2626 !important;
}
.do-rhet-box.you-need {
  border-left: 3px solid #111111 !important;
}
.do-rhet-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.do-rhet-badge.have { background: #DC2626 !important; color: #FFFFFF !important; }
.do-rhet-badge.need { background: #E5E7EB !important; color: #111111 !important; }

/* Normalize all cards, panels, KPIs, and tables inside the 16 consoles to clean White/Off-White/Charcoal */
.panel, .kpi-card, .blocker-card, .engine-card, .check-item, .tl-row, .b-telemetry, .table-wrap, .card {
  background: #FFFFFF !important;
  color: #111111 !important;
  border-color: #E5E7EB !important;
  box-shadow: none !important;
}
thead th, th {
  background: #F8F9FB !important;
  color: #111111 !important;
  border-bottom: 1.5px solid #E5E7EB !important;
  font-family: var(--font-display) !important;
}
tbody td, td {
  border-bottom: 1px solid #E5E7EB !important;
  color: #111111 !important;
}
tbody tr:hover td {
  background: #F8F9FB !important;
}
tfoot td {
  background: #F8F9FB !important;
  color: #111111 !important;
  border-top: 2px solid #111111 !important;
}
/* Strip excess rainbow colors from pills/badges inside consoles: Red for findings, Neutral Gray for everything else */
.pill-green, .pill-gold, .pill-dark, .b-days-badge {
  background: #E5E7EB !important;
  color: #111111 !important;
  border: 1px solid #D1D5DB !important;
}
.pill-red {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border: 1px solid #DC2626 !important;
}
