/* ── COUNTRY COLORS ── */
:root {
  --country-usa:         #5fa8d3;
  --country-japan:       #fb923c;
  --country-korea:       #2dd4bf;
  --country-china:       #f08080;
  --country-russia:      #94a3b8;
  --country-netherlands: #a78bfa;
  --country-taiwan:      #f8c46a;
}

/* ── COMPANY COLORS ── */
:root {
  --eda-synopsys: #60a5fa;
  --eda-cadence:  #6ee7b7;
  --eda-siemens:  #a78bfa;
}

/* ── WORLD MAP ── */
#map-container { border-radius: 10px; border: 1px solid var(--border); background: var(--bg); overflow: hidden; }
#world-map { width: 100%; height: auto; display: block; border-radius: 0 !important; border: none !important; background: var(--bg); cursor: grab; user-select: none; touch-action: none; }
#world-map:active { cursor: grabbing; }

/* ── ZOOM CONTROLS ── */
#map-zoom-ctrl { display: none; position: absolute; bottom: 10px; right: 10px; gap: 4px; }
.map-zoom-btn { width: 28px; height: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text-bright); font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.map-zoom-btn:disabled { opacity: .3; cursor: default; }
.map-zoom-btn:not(:disabled):hover { background: var(--card); }

.map-marker { cursor: pointer; }
/* Fix jitter: use filter/opacity, NOT transform, for hover effect */
.map-marker circle.pulse  { transition: opacity .2s; opacity: .2; }
.map-marker circle.dot    { transition: opacity .2s; }
.map-marker:hover circle.pulse  { opacity: .45; }
.map-marker:hover circle.dot    { opacity: .9; }
.map-marker.selected circle.pulse { opacity: .55; }
.map-marker text { pointer-events: none; transition: fill .2s; }

/* ── INFO PANEL ── */
.info-block { background: var(--bg); border-radius: 8px; padding: 11px 13px; }
.info-block h5 { font-size: 11px; font-weight: 600; color: var(--highlight); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.info-block ul { padding-left: var(--list-indent); color: var(--text); }
.info-block ul li { font-size: 12px; margin-bottom: 3px; }
.info-block ul li strong { color: var(--text-bright); }
.info-full { grid-column: 1 / -1; }

/* ── PIE CHART ── */
.pie-wrap { display: flex; gap: 18px; align-items: center; margin: 12px 0; }
.pie { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--border); }
.pie-legend { display: flex; flex-direction: column; gap: 5px; flex-grow: 1; min-width: 0; }
.legend-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.legend-row strong { color: var(--text-bright); }
.legend-label { display: flex; align-items: center; gap: 5px; color: var(--text); }
.legend-label.dim { color: var(--text-dim); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.legend-val { color: var(--text-dim); }

/* ── STEP LIST ── */
.step-list { display: flex; flex-direction: column; padding-left: 4px; }
.step { display: flex; gap: 14px; }
.step-icon-col { display: flex; flex-direction: column; align-items: center; }
.step-icon-bg { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; z-index: 1; background: var(--bg); border: 1.5px solid var(--accent); }
.step-icon-bg.strong { background: var(--accent); color: var(--bg); border: none; box-shadow: 0 0 10px rgba(98, 182, 203, 0.3); }
.step-line { width: 2px; height: 24px; margin: -2px 0; background:linear-gradient(to bottom,var(--accent),var(--border)) }
.step-content { padding-bottom: 16px; padding-top: 2px; }
.step-title { color: var(--text); font-size: 12px; font-weight: 700; }
.step-desc { color: var(--text-dim); font-size: 11px; margin-top: 1px; }

/* ── VS DIVIDER ── */
.grid-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.vs-divider { display: flex; align-items: center; padding: 0 4px; font-size: 2rem; font-weight: 800; color: var(--text-dim); }

/* ── ERA CARDS ── */
.era-label { color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.era-icon { color: var(--text); font-size: 24px; line-height: 1; margin-bottom: 8px; }
.era-sub { color: var(--text); font-size: 12px; font-weight: 600; }
.era-arrow { color: var(--text); font-size: 20px; font-weight: 300; }
