/* ============================================================
   Exchanged Timeline — Influence view (influence.css)
   Used by the [et_influence] shortcode (v2.0.260)
   Blue = influence; amber = polemic ("wrote against"), the same
   amber the author page's Influence tag uses.
   ============================================================ */

.et-iv {
	--iv-ink: #1d2327;
	--iv-muted: #646970;
	--iv-faint: #8c8f94;
	--iv-rule: #dcdcde;
	--iv-sheet: #fff;
	--iv-blue: #2a4fa3;
	--iv-amber: #8a4b00;
	font-family: inherit;
	color: var(--iv-ink);
	display: grid;
	gap: 1rem;
	margin: 0 0 2rem;
}

/* ── Controls ────────────────────────────────────────────── */
.et-iv-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
}
.et-iv-modes {
	display: inline-flex;
	border: 1px solid var(--iv-rule);
	border-radius: 999px;
	padding: 3px;
	background: var(--iv-sheet);
}
.et-iv-modes button {
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--iv-muted);
	background: none;
	border: 0;
	border-radius: 999px;
	padding: .45rem 1rem;
	cursor: pointer;
}
.et-iv-modes button[aria-pressed="true"] {
	background: var(--iv-ink);
	color: #fff;
}
.et-iv-pick {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--iv-muted);
	font-size: .9rem;
	margin: 0;
}
.et-iv-pick select {
	font: inherit;
	max-width: 100%;
}
.et-iv-key {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1rem;
	margin-left: auto;
	font-size: .8rem;
	color: var(--iv-muted);
}
.et-iv-key span { display: inline-flex; align-items: center; gap: .4rem; }
.et-iv-key-line { display: inline-block; width: 24px; border-top: 2px solid var(--iv-blue); }
.et-iv-key-against { border-top: 2px dashed var(--iv-amber); }
.et-iv-key-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--iv-blue); }
.et-iv button:focus-visible,
.et-iv select:focus-visible,
.et-iv-node:focus-visible { outline: 2px solid var(--iv-blue); outline-offset: 2px; }

/* ── Stage ───────────────────────────────────────────────── */
.et-iv-stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 1.25rem;
	align-items: start;
}
@media ( max-width: 900px ) {
	.et-iv-stage { grid-template-columns: minmax(0, 1fr); }
	.et-iv-key { margin-left: 0; }
}
.et-iv-canvas {
	background: var(--iv-sheet);
	border: 1px solid var(--iv-rule);
	border-radius: 8px;
	overflow-x: auto;
	min-width: 0;
}
.et-iv-canvas svg { display: block; max-width: none; }

/* ── Details column ──────────────────────────────────────── */
.et-iv-side { display: grid; gap: 1rem; min-width: 0; }
.et-iv-who h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.et-iv-dates { color: var(--iv-faint); font-size: .85rem; }
.et-iv-page { display: inline-block; margin-top: .3rem; font-size: .9rem; }
.et-iv-side h4 {
	font-size: .78rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #50575e;
	margin: 0 0 .4rem;
	font-weight: 600;
}
.et-iv-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.et-iv-side li { line-height: 1.45; padding-left: .7rem; border-left: 3px solid var(--iv-rule); }
.et-iv-go {
	font: inherit;
	font-weight: 600;
	color: var(--iv-ink);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: left;
}
.et-iv-go:hover { color: var(--iv-blue); text-decoration: underline; }
.et-iv-yr { color: var(--iv-faint); font-size: .82em; margin-left: .35em; white-space: nowrap; }
.et-iv-tag { color: var(--iv-amber); font-style: italic; font-size: .82em; margin-left: .35em; }
.et-iv-via, .et-iv-pubnote { display: block; color: var(--iv-muted); font-size: .82em; }
.et-iv-pubnote { font-style: italic; }
.et-iv-none { color: var(--iv-muted); font-style: italic; margin: 0; }
.et-iv-note { color: var(--iv-muted); font-size: .88rem; margin: 0; max-width: 72ch; }

/* ── SVG ─────────────────────────────────────────────────── */
.et-iv-axis line { stroke: var(--iv-rule); }
.et-iv-axis text,
.et-iv-colhead { fill: var(--iv-faint); font-size: 11px; letter-spacing: .06em; }
.et-iv-gutter { stroke: var(--iv-rule); stroke-dasharray: 3 3; }
.et-iv-edge {
	fill: none;
	stroke: var(--iv-blue);
	stroke-width: 1.4;
	opacity: .55;
	transition: opacity .15s;
}
.et-iv-edge.against { stroke: var(--iv-amber); stroke-dasharray: 5 4; }
.et-iv-dim .et-iv-edge { opacity: .08; }
.et-iv-dim .et-iv-edge.on { opacity: .95; stroke-width: 2; }
.et-iv-node { cursor: pointer; }
.et-iv-node circle { fill: var(--iv-sheet); stroke: var(--iv-blue); stroke-width: 1.6; }
.et-iv-node.has-page circle { fill: var(--iv-blue); }
.et-iv-node.undated circle { stroke: var(--iv-faint); stroke-dasharray: 2 2; }
.et-iv-node.focus circle { fill: var(--iv-ink); stroke: var(--iv-ink); }
.et-iv-nm { fill: var(--iv-ink); font-size: 13px; }
.et-iv-ny { fill: var(--iv-faint); font-size: 10px; }
.et-iv-node.focus .et-iv-nm { font-weight: 600; font-size: 15px; }
.et-iv-node:hover .et-iv-nm { fill: var(--iv-blue); }
.et-iv-dim .et-iv-node { opacity: .25; }
.et-iv-dim .et-iv-node.on { opacity: 1; }
@media ( prefers-reduced-motion: reduce ) { .et-iv-edge { transition: none; } }

.et-iv-fallback { columns: 2; }
.et-iv-empty { color: var(--iv-muted, #646970); }
