/* modevc.com/tools/native-charts.css
   Native Charting (D3/SVG) + 3d-glow paired visual styling for Mode VC Founder Workbench.
   Validated dark forest surface (#040d0a / #06150f) with single emerald hierarchy (#14a878 / #34d399). */

:root {
  --nc-bg: #040d0a;
  --nc-card: #06150f;
  --nc-line: #0d2b20;
  --nc-line2: #174936;
  --nc-grid: #0a2018;
  --nc-ink: #f5f5f4;
  --nc-ink2: #a8a29e;
  --nc-mute: #78716c;
  --nc-hi: #10b981;
  --nc-hi-bright: #34d399;
  --nc-alt: #d6d3d1;
  --nc-warn: #a8a29e;
  --nc-bad: #f43f5e;
  --nc-base: #57534e;
  --nc-serif: "Playfair Display", Georgia, serif;
  --nc-sans: "Outfit", "Inter", system-ui, sans-serif;
  --nc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nc-card {
  background: rgba(6, 29, 21, 0.38);
  border: 1px solid rgba(18, 76, 58, 0.65);
  border-radius: 16px;
  padding: 22px 24px 18px;
  position: relative;
  font-variant-numeric: tabular-nums;
}

.nc-kicker {
  font: 600 10px/1.3 var(--nc-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nc-hi-bright);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nc-claim {
  font: 600 clamp(18px, 2.2vw, 22px)/1.28 var(--nc-serif);
  color: var(--nc-ink);
  margin: 0 0 6px;
}

.nc-sub {
  font: 400 13px/1.45 var(--nc-sans);
  color: var(--nc-ink2);
  margin: 0 0 14px;
}

.nc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font: 500 12px/1.3 var(--nc-mono);
  color: var(--nc-ink2);
  margin: 0 0 12px;
}

.nc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nc-legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.nc-legend i.dash {
  background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important;
}

.nc-plot-host {
  position: relative;
  width: 100%;
  min-height: 220px;
  outline: none;
  user-select: none;
}

.nc-plot-host:focus-visible {
  box-shadow: 0 0 0 2px var(--nc-hi);
  border-radius: 8px;
}

.nc-plot-host svg.plot {
  display: block;
  width: 100%;
  overflow: visible;
}

.nc-plot-host svg text {
  font-family: var(--nc-mono);
  font-variant-numeric: tabular-nums;
}

.nc-plot-host svg .grid line {
  stroke: var(--nc-grid);
  stroke-width: 1;
}

.nc-plot-host svg .ax line,
.nc-plot-host svg .ax path {
  stroke: var(--nc-line2);
}

.nc-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(4, 13, 10, 0.96);
  border: 1px solid var(--nc-line2);
  border-radius: 10px;
  padding: 10px 12px;
  font: 400 12px/1.45 var(--nc-mono);
  color: var(--nc-ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.1s ease;
  z-index: 30;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  font-variant-numeric: tabular-nums;
}

.nc-tip b {
  font-weight: 600;
  color: #ffffff;
}

.nc-tip .m {
  color: var(--nc-ink2);
  font-size: 11px;
  margin-bottom: 3px;
}

.nc-credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--nc-line);
  font: 400 11px/1.4 var(--nc-mono);
  color: var(--nc-mute);
}

.nc-credit .mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 10px/1 var(--nc-sans);
  letter-spacing: 0.18em;
  color: var(--nc-ink2);
  opacity: 0.75;
}

.nc-credit .mark svg {
  width: 13px;
  height: 13px;
  fill: var(--nc-hi);
}

details.nc-table {
  margin-top: 10px;
  font: 400 12px/1.45 var(--nc-mono);
  color: var(--nc-ink2);
}

details.nc-table summary {
  cursor: pointer;
  color: var(--nc-mute);
  user-select: none;
  font-size: 11px;
  transition: color 0.15s;
}

details.nc-table summary:hover {
  color: var(--nc-hi-bright);
}

details.nc-table .nc-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

details.nc-table table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

details.nc-table th,
details.nc-table td {
  text-align: left;
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--nc-line);
}

details.nc-table th {
  cursor: pointer;
  color: var(--nc-ink);
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}

details.nc-table th:hover {
  color: var(--nc-hi-bright);
}

details.nc-table td.n,
details.nc-table th.n {
  text-align: right;
}

/* 3D-Glow Isometric Stage Overrides for Mode VC Forest Theme */
.nc-glow-card {
  background: rgba(6, 29, 21, 0.32);
  border: 1px solid rgba(18, 76, 58, 0.65);
  border-radius: 16px;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  --g-bg: #040d0a;
  --g-panel: #061d15;
  --g-edge: #124c3a;
  --g-line: #1a6650;
  --g-ink: #a8a29e;
  --g-ink-hi: #f5f5f4;
  --g-accent: #10b981;
  --g-accent-2: #34d399;
}

.nc-glow-card .glow-stage {
  width: 100%;
  max-height: 250px;
  display: block;
}

.nc-glow-card .glow-readout {
  font: 500 11px/1.4 var(--nc-mono);
  color: var(--nc-hi-bright);
  margin: 8px 0 0;
  text-align: center;
}

/* Chart caption and footer (used by every card ModeNativeChart.render builds) */
.nc-eyebrow { font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: #a8a29e; margin: 0 0 8px; }
.nc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font-size: 12px; line-height: 1.4; color: #78716c; }
