/* Shared infographic stage + primitives — GenTwo design system */
@import url("./colors_and_type.css");

:root {
  --canvas-w: 1600px;
  --canvas-h: 1000px;
  --pad: 80px;
  --accent: var(--color-pink-500);
  --rule: var(--color-neutral-200);
  --ink-1: var(--color-neutral-950);
  --ink-2: var(--color-neutral-700);
  --ink-3: var(--color-neutral-500);
  --ink-4: var(--color-neutral-300);
  --bg: #FFFFFF;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-sans);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stage-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.canvas {
  width: var(--canvas-w);
  height: var(--canvas-h);
  background: var(--bg);
  color: var(--ink-1);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* Auto-scale to fit viewport on screen, but keep 1600x1000 for export */
.scaler {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}

/* Header / footer */
.ig-header {
  position: absolute;
  top: 56px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.ig-header .meta {
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-feature-settings: "tnum" 1;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow.muted { color: var(--ink-3); }
.ig-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 1100px;
}
.ig-subtitle {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 1000px;
  margin-top: 18px;
}

.ig-footer {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  font-feature-settings: "tnum" 1;
}
.ig-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ig-footer .brand .swatch {
  width: 14px; height: 14px; background: var(--accent); display: inline-block;
}
.ig-footer .brand .brand-logo {
  height: 22px; width: auto; display: inline-block; color: var(--ink-1);
}

/* Content area helper */
.ig-body {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 260px;
  bottom: 110px;
}

/* Reusable atoms */
.label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.kpi {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum" 1;
}
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.rule { background: var(--rule); }
.hairline { border: 1px solid var(--rule); }
.accent { color: var(--accent); }
.bg-accent { background: var(--accent); color: white; }
.bg-ink { background: var(--ink-1); color: white; }
.bg-muted { background: var(--color-neutral-100); }

.card {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 28px;
}

/* Arrow glyphs (for flow diagrams) */
.arrow-h { width: 100%; height: 1px; background: var(--ink-1); position: relative; }
.arrow-h::after {
  content: "";
  position: absolute; right: -1px; top: 50%;
  width: 10px; height: 10px;
  border-top: 1px solid var(--ink-1);
  border-right: 1px solid var(--ink-1);
  transform: translateY(-50%) rotate(45deg);
  transform-origin: right center;
}

/* tiny ticks for timeline */
.tick { width: 1px; height: 12px; background: var(--ink-1); }

/* Print sizing */
@media print {
  html, body { background: white; }
  .stage-wrap { position: static; display: block; }
  .canvas { box-shadow: none; }
  .scaler { transform: none !important; }
}
