/*
 * eclipse.css — Eclipse & Ember design tokens
 * Generated by Design/adapters/css.py (theme: eclipse_ember)
 * Source of truth: Design/tokens/*.json
 * DO NOT EDIT directly — regenerate with: python -X utf8 Design/adapters/css.py
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

/* === Default theme: dark === */
:root {
  /* === Colors === */
  --bg-base: #0E1116;
  --bg-panel: #161B22;
  --bg-raised: #1F2630;
  --bg-edge: #2A2F38;
  --ink-50: #F5F2EC;
  --ink-200: #C9CDD3;
  --ink-400: #A8B0BD;
  --ink-600: #5C6471;
  --steel: #C9CDD3;
  --steel-soft: #3A4150;
  --ember: #FF7A29;
  --ember-light: #FF9A5A;
  --ember-bg: rgba(255,122,41,0.16);
  --ember-soft: #3D2418;
  --positive: #4ADE80;
  --negative: #F0506E;
  --warning: #D4A04A;
  /* === Typography families === */
  --font-sans: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: "Source Serif 4", Georgia, 'Times New Roman', serif;
  --font-mono: "JetBrains Mono", 'Fira Code', 'Consolas', 'Courier New', monospace;
  /* === Type scale === */
  --t-display-size: 6.0rem;
  --t-display-lh: 1.0;
  --t-display-weight: 400;
  --t-display-tracking: -0.03em;
  --t-h1-size: 3.5rem;
  --t-h1-lh: 1.1;
  --t-h1-weight: 400;
  --t-h1-tracking: -0.02em;
  --t-h2-size: 2.25rem;
  --t-h2-lh: 1.2;
  --t-h2-weight: 400;
  --t-h2-tracking: -0.02em;
  --t-h3-size: 1.5rem;
  --t-h3-lh: 1.3;
  --t-h3-weight: 600;
  --t-lead-size: 1.3125rem;
  --t-lead-lh: 1.5;
  --t-lead-weight: 400;
  --t-body-size: 1.0625rem;
  --t-body-lh: 1.6;
  --t-body-weight: 400;
  --t-small-size: 0.875rem;
  --t-small-lh: 1.5;
  --t-small-weight: 400;
  --t-mono-size: 0.875rem;
  --t-mono-lh: 1.5;
  --t-mono-weight: 400;
  --t-eyebrow-size: 0.6875rem;
  --t-eyebrow-lh: 1.4;
  --t-eyebrow-weight: 500;
  --t-eyebrow-tracking: 0.14em;
  /* === Spacing === */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --container-max: 1280px;
  --content-max: 65ch;
  /* === Radius === */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-2xl: 12px;
  /* === Borders === */
  --border-default: 1px;
  --border-emphasis: 2px;
  --border-stroke-logo-lg: 2.5px;
  --border-stroke-logo-sm: 7px;
  --border-stroke-favicon-md: 9px;
  --border-stroke-favicon-xs: 14px;
  /* === Motion === */
  --ease-primary: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-linear: linear;
  --ease-snappy: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-instant: 100ms;
  --dur-micro: 150ms;
  --dur-default: 200ms;
  --dur-card: 240ms;
  --dur-page: 320ms;
  --dur-long: 480ms;
}

/* === Light theme override === */
:root[data-theme="light"], :root.light, :root[data-output-mode="print"] {
  --bg-base: #FAF8F2;
  --bg-panel: #F2EEE3;
  --bg-raised: #E8E2D2;
  --bg-edge: #D5CDB7;
  --ink-50: #0E1116;
  --ink-200: #3A4150;
  --ink-400: #5C6471;
  --ink-600: #8A92A0;
  --steel: #4A4F58;
  --steel-soft: #C9CDD3;
  --ember: #DC591F;
  --ember-light: #E87D4F;
  --ember-bg: rgba(220,89,31,0.12);
  --ember-soft: #F4DCC8;
  --positive: #1B7A3A;
  --negative: #B8323F;
  --warning: #B5891E;
}

/* === Auto dark/light via system preference === */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg-base: #FAF8F2;
    --bg-panel: #F2EEE3;
    --bg-raised: #E8E2D2;
    --bg-edge: #D5CDB7;
    --ink-50: #0E1116;
    --ink-200: #3A4150;
    --ink-400: #5C6471;
    --ink-600: #8A92A0;
    --steel: #4A4F58;
    --steel-soft: #C9CDD3;
    --ember: #DC591F;
    --ember-light: #E87D4F;
    --ember-bg: rgba(220,89,31,0.12);
    --ember-soft: #F4DCC8;
    --positive: #1B7A3A;
    --negative: #B8323F;
    --warning: #B5891E;
  }
}

/* === Reset minimal === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  color: var(--ink-50);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ember); }
code, pre, kbd, samp { font-family: var(--font-mono); }
hr { border: 0; border-top: 1px solid var(--bg-edge); margin: var(--space-12) 0; }

/* === Layout containers === */
.ee-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}
.ee-narrow { max-width: var(--content-max); margin-left: auto; margin-right: auto; }

/* === Typography classes === */
.t-display { font-family: var(--font-serif); font-size: var(--t-display-size); line-height: var(--t-display-lh); letter-spacing: var(--t-display-tracking); font-weight: var(--t-display-weight); }
.t-h1      { font-family: var(--font-serif); font-size: var(--t-h1-size);      line-height: var(--t-h1-lh);      letter-spacing: var(--t-h1-tracking);      font-weight: var(--t-h1-weight); }
.t-h2      { font-family: var(--font-serif); font-size: var(--t-h2-size);      line-height: var(--t-h2-lh);      letter-spacing: var(--t-h2-tracking);      font-weight: var(--t-h2-weight); }
.t-h3      { font-family: var(--font-sans);  font-size: var(--t-h3-size);      line-height: var(--t-h3-lh);      font-weight: var(--t-h3-weight); }
.t-lead    { font-family: var(--font-serif); font-size: var(--t-lead-size);    line-height: var(--t-lead-lh);    color: var(--ink-200); font-weight: var(--t-lead-weight); }
.t-body    { font-family: var(--font-sans);  font-size: var(--t-body-size);    line-height: var(--t-body-lh); }
.t-small   { font-family: var(--font-sans);  font-size: var(--t-small-size);   line-height: var(--t-small-lh);   color: var(--ink-200); }
.t-mono    { font-family: var(--font-mono);  font-size: var(--t-mono-size);    line-height: var(--t-mono-lh); }
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow-size);
  line-height: var(--t-eyebrow-lh);
  letter-spacing: var(--t-eyebrow-tracking);
  font-weight: var(--t-eyebrow-weight);
  text-transform: uppercase;
  color: var(--ember);
}

/* In neutral mode, eyebrow downgrades to ink-200 */
[data-output-mode="neutral"] .t-eyebrow { color: var(--ink-200); }

h1 { font-family: var(--font-serif); font-size: var(--t-h1-size); line-height: var(--t-h1-lh); letter-spacing: var(--t-h1-tracking); font-weight: var(--t-h1-weight); margin-bottom: var(--space-6); }
h2 { font-family: var(--font-serif); font-size: var(--t-h2-size); line-height: var(--t-h2-lh); letter-spacing: var(--t-h2-tracking); font-weight: var(--t-h2-weight); margin-top: var(--space-12); margin-bottom: var(--space-4); }
h3 { font-family: var(--font-sans);  font-size: var(--t-h3-size); line-height: var(--t-h3-lh); font-weight: var(--t-h3-weight); margin-top: var(--space-8); margin-bottom: var(--space-3); }
p  { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* === Component primitives === */

/* Hero */
.ee-hero {
  padding: var(--space-24) 0 var(--space-12);
  border-bottom: 1px solid var(--bg-edge);
  margin-bottom: var(--space-12);
}
.ee-hero .t-eyebrow { margin-bottom: var(--space-4); }
.ee-hero .t-lead    { margin-top: var(--space-4); max-width: var(--content-max); }

/* TOC */
.ee-toc {
  background: var(--bg-panel);
  border-left: 3px solid var(--steel);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  border-radius: var(--radius-md);
}
.ee-toc strong { font-family: var(--font-mono); font-size: var(--t-eyebrow-size); text-transform: uppercase; letter-spacing: var(--t-eyebrow-tracking); color: var(--ink-200); display: block; margin-bottom: var(--space-2); }
.ee-toc ul { list-style: none; padding: 0; }
.ee-toc li { padding: var(--space-1) 0; }
.ee-toc a { color: var(--ink-200); transition: color var(--dur-micro) var(--ease-primary); }
.ee-toc a:hover { color: var(--ember); }

/* KPI cards */
.ee-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.ee-kpi {
  background: var(--bg-panel);
  border: 1px solid var(--bg-edge);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur-card) var(--ease-primary);
}
.ee-kpi:hover { border-color: var(--steel); }
.ee-kpi--accent { border-color: var(--ember); }
.ee-kpi__label { font-family: var(--font-mono); font-size: var(--t-eyebrow-size); text-transform: uppercase; letter-spacing: var(--t-eyebrow-tracking); color: var(--ink-400); margin-bottom: var(--space-2); }
.ee-kpi__value { font-family: var(--font-serif); font-size: 2.25rem; line-height: 1.1; color: var(--ink-50); margin-bottom: var(--space-1); }
.ee-kpi--accent .ee-kpi__value { color: var(--ember); }
.ee-kpi__delta { font-family: var(--font-mono); font-size: var(--t-small-size); color: var(--ink-200); }
.ee-kpi__delta--pos { color: var(--positive); }
.ee-kpi__delta--neg { color: var(--negative); }

/* Diagram container */
.ee-diagram {
  background: var(--bg-panel);
  border: 1px solid var(--bg-edge);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  overflow-x: auto;
}
.ee-diagram__caption { font-family: var(--font-mono); font-size: var(--t-eyebrow-size); text-transform: uppercase; letter-spacing: var(--t-eyebrow-tracking); color: var(--ink-400); margin-top: var(--space-3); }
.ee-diagram .mermaid { text-align: center; min-height: 80px; }

/* Section */
.ee-section { margin: var(--space-16) 0; }
.ee-section__eyebrow { margin-bottom: var(--space-2); }
.ee-section__title   { margin-bottom: var(--space-4); }
.ee-section__lead    { margin-bottom: var(--space-8); max-width: var(--content-max); }

/* Tables */
.ee-table-wrap { overflow-x: auto; margin: var(--space-6) 0; }
.ee-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--t-small-size);
}
.ee-table th {
  background: var(--bg-edge);
  color: var(--ink-50);
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow-size);
  text-transform: uppercase;
  letter-spacing: var(--t-eyebrow-tracking);
  text-align: left;
  padding: var(--space-3) var(--space-4);
}
.ee-table td {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--bg-edge);
  color: var(--ink-200);
}
.ee-table td.num { font-family: var(--font-mono); text-align: right; color: var(--ink-50); }
.ee-table tr:hover td { background: var(--bg-raised); }

/* Footer */
.ee-footer {
  margin-top: var(--space-24);
  padding-top: var(--space-8);
  border-top: 1px solid var(--bg-edge);
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow-size);
  text-transform: uppercase;
  letter-spacing: var(--t-eyebrow-tracking);
  color: var(--ink-400);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Utilities */
.ee-mono   { font-family: var(--font-mono); }
.ee-serif  { font-family: var(--font-serif); }
.ee-muted  { color: var(--ink-400); }
.ee-ember  { color: var(--ember); }
.ee-steel  { color: var(--steel); }

/* Print */
@media print {
  body { background: white; color: black; }
  .ee-page { padding: 20mm 15mm; }
  .ee-toc, .ee-kpi:hover, .ee-table tr:hover td { background: white; }
  .ee-diagram, .ee-kpi { border: 1px solid #999; }
  a { color: black; text-decoration: underline; }
  h1, h2, h3 { page-break-after: avoid; }
  .ee-diagram, .ee-table-wrap, .ee-kpi { page-break-inside: avoid; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

