/* ==========================================================================
   Istoric — strat de integrare peste pluginurile Horizontal Timeline
   și History Accordion (design: Figma „web-istoric”).
   Se încarcă doar pe pagina /istoric/. Pluginurile nu sunt modificate.
   ========================================================================== */

.elim-istoric {
	--ink: #1B141A;
	--plum: #483041;
	--text: #585058;
	--gold: #DAA769;
	--orange: #FF8C1A;
	--line: #E2D6D3;
	--mauve: #AD8E87;
	--mauve-dark: #8F6E68;   /* 4,6:1 pe alb (AA pentru text mic) */
	--mist: #F7F3F2;
	--ease: cubic-bezier(.22, .8, .2, 1);
	--elim-acc-dur: 620ms;   /* = DURATION din istoric.js */
	--overhang: 56px;        /* cât iese linia capitolului spre stânga, ca în design */
}

/* =========================================================================
   CRONOLOGIA
   ========================================================================= */
.elim-istoric .horizontal-timeline-wrapper {
	padding-top: 58px;
	outline: none;
}
.elim-istoric .horizontal-timeline-wrapper:focus,
.elim-istoric .horizontal-timeline-wrapper:focus-visible { outline: none; box-shadow: none; }
.elim-istoric .horizontal-timeline-wrapper .horizontal-timeline-bkg-lines { box-shadow: none !important; }
.elim-istoric .horizontal-timeline-container { position: relative; }
/* banda se derulează pe toată lățimea ecranului, dar primul an pornește de pe marginea gridului (ca titlul de deasupra) */
.elim-istoric .horizontal-timeline-container { padding-left: calc(var(--elim-gutter, 20px) - 10px); }   /* primul an (1928) pornește de lângă marginea stângă a ecranului */
.elim-istoric .horizontal-timeline-text strong,
.elim-istoric .horizontal-timeline-text b { font-weight: 700; } /* Macha 700 există în kit; 600 nu */

/* Banda „Adresele credinței” */
.elim-eras {
	position: absolute;
	left: 0;
	top: -106px;
	height: 40px;
	pointer-events: none;
}
.elim-era {
	position: absolute;
	top: 0;
	height: 40px;
	border-left: 1.5px solid var(--gold);
	padding: 0 0 0 10px;
	display: flex;
	flex-direction: column;
}
.elim-era::after {
	content: "";
	position: absolute;
	left: 0;
	right: 24px;
	bottom: 6px;
	height: 1.5px;
	background: linear-gradient(90deg, var(--gold) 0%, rgba(218, 167, 105, 0) 100%);
}
.elim-era__tag {
	width: max-content;
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	will-change: transform;
}
.elim-era__label {
	font-family: "Montserrat", sans-serif;
	font-weight:800;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--plum);
	white-space: nowrap;
}
.elim-era__years {
	font-family: "Montserrat", sans-serif;
	font-weight:800;
	font-size: 11px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--mauve);
	margin-top: 3px;
	white-space: nowrap;
}
.elim-era--home .elim-era__label { color: var(--ink); }
.elim-era--home .elim-era__label::after { content: " · acasă"; color: var(--orange); }

/* Link „Citește povestea” */
.elim-story-link {
	all: unset;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-family: "Montserrat", sans-serif;
	font-weight:800;
	font-size: 12px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--plum);
	border-bottom: 1.5px solid var(--gold);
	padding-bottom: 3px;
	transition: color .2s, border-color .2s;
}
.elim-story-link:hover { color: var(--ink); border-color: var(--orange); }
.elim-story-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.elim-story-link svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.elim-story-link:hover svg { transform: translateY(2px); }

/* Minimap 1928 → azi, cu săgeți */
.elim-minimap {
	display: flex;
	align-items: center;
	gap: 22px;
	max-width: 1280px;
	margin: 34px auto 0;
	padding: 0 24px;
	user-select: none;
}
.elim-minimap__body { position: relative; flex: 1; }
.elim-minimap__btn {
	all: unset;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--line);
	display: grid;
	place-items: center;
	color: var(--plum);
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s, opacity .2s;
}
.elim-minimap__btn:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.elim-minimap__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.elim-minimap__btn:disabled { opacity: .3; cursor: default; background: none; border-color: var(--line); color: var(--plum); }
.elim-minimap__btn svg { width: 16px; height: 16px; }
.elim-minimap__track {
	position: relative;
	height: 44px;
	cursor: pointer;
	touch-action: none;
}
.elim-minimap__track::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 21px;
	height: 2px;
	background: var(--line);
}
.elim-minimap__tick {
	position: absolute;
	top: 15px;
	width: 1.5px;
	height: 14px;
	background: var(--mauve);
	transform: translateX(-50%);
	transition: background .2s;
}
.elim-minimap__tick.is-era { background: var(--gold); top: 11px; height: 22px; width: 2px; }
.elim-minimap__tick.is-visible { background: var(--ink); }
.elim-minimap__window {
	position: absolute;
	top: 4px;
	height: 36px;
	border-radius: 10px;
	background: rgba(218, 167, 105, .16);
	border: 1.5px solid var(--gold);
	cursor: grab;
	transition: left .45s var(--ease), width .45s var(--ease), background .2s;
}
.elim-minimap__window:active { cursor: grabbing; background: rgba(218, 167, 105, .26); }
.elim-minimap__now {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	font-family: "macha", sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	color: var(--ink);
	white-space: nowrap;
}
.elim-minimap__ends {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	font-family: "Montserrat", sans-serif;
	font-weight:800;
	font-size: 12px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--mauve);
}

/* =========================================================================
   CAPITOLELE (acordeon) — design Figma
   ========================================================================= */

/* Linia: trece pe sub eticheta de an și iese puțin spre stânga, ca în design */
.elim-istoric .elim-acc .elim-accordion__item {
	position: relative;
	display: flow-root;
	border-top: 0;
	padding-top: 0;
}
.elim-istoric .elim-acc .elim-accordion__item::before,
.elim-istoric .elim-acc .elim-accordion__item::after {
	content: "";
	position: absolute;
	top: 0;
	left: calc(-1 * var(--overhang));
	right: 0;
	height: 3px;
	background: var(--line);
}
/* Progres de citire: linia capitolului deschis se umple cu auriu */
.elim-istoric .elim-acc .elim-accordion__item::after {
	background: var(--gold);
	transform-origin: left center;
	transform: scaleX(var(--p, 0));
	transition: transform .18s linear;
}

/* Eticheta de an, pe linie, cu un spațiu alb în jurul ei (linia „se oprește”) */
.elim-istoric .elim-acc .accordion__item_year {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	min-width: 64px;
	height: 36px;
	padding: 0 16px;
	margin: -16.5px 0 0 0;    /* centrată pe linia de 3px; aliniată cu titlul și textul */
	border-radius: 10px;
	background: var(--mauve) !important;
	box-shadow: 0 0 0 10px #fff;
	font-family: "macha", sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	color: #F3ECEA;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .35s var(--ease), color .35s var(--ease);
}
.elim-istoric .elim-acc .accordion__item_year::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -12px;
	width: 34px;
	height: 13px;
	margin-left: -17px;
	background: var(--mauve);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 39 13'%3E%3Cpath d='M39 0C19.554 0 19.5 12.933 19.5 13C19.5 12.933 19.446 0 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 39 13'%3E%3Cpath d='M39 0C19.554 0 19.5 12.933 19.5 13C19.5 12.933 19.446 0 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	transition: background-color .35s var(--ease);
}
.elim-istoric .elim-acc .elim-accordion__item:hover > .accordion__item_year { background: var(--mauve-dark) !important; }
.elim-istoric .elim-acc .elim-accordion__item:hover > .accordion__item_year::after { background: var(--mauve-dark); }
.elim-istoric .elim-acc .elim-accordion__item.is-open > .accordion__item_year { background: var(--ink) !important; color: #fff; }
.elim-istoric .elim-acc .elim-accordion__item.is-open > .accordion__item_year::after {
	bottom: auto;
	top: -12px;
	background: var(--ink);
	transform: scaleY(-1);
}

/* Rândul titlului */
.elim-istoric .elim-acc .elim-accordion__header-row {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin: 16px 0 34px;
}
.elim-istoric .elim-acc button.elim-accordion__trigger {
	margin: 0;
	padding: 0;
	height: auto;
	min-height: 0;
	flex: 1 1 auto;
	text-align: left;
	cursor: pointer;
	background: none;
}
.elim-istoric .elim-acc .elim-accordion__trigger span { display: block; text-align: left; }
.elim-istoric .elim-acc .elim-accordion__item h4 {
	margin: 0;
	font-size: 22px;   /* restul titlului: rolul .elim-t-title (assets/global/type.css) */
	transition: color .25s;
}
.elim-istoric .elim-acc .elim-accordion__item:hover h4 { color: var(--plum); }
.elim-istoric .elim-acc .elim-accordion__trigger,
.elim-istoric .elim-acc .elim-accordion__trigger:focus,
.elim-istoric .elim-acc .elim-accordion__trigger:focus-visible { outline: none !important; box-shadow: none !important; }
.elim-istoric .elim-acc .elim-accordion__trigger:focus-visible h4 {
	text-decoration: underline;
	text-decoration-color: var(--gold);
	text-underline-offset: 6px;
}

/* „Închide”: apare lin, nu sare */
.elim-istoric .elim-acc button.elim-accordion__close {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 2px 0 0;
	padding: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(6px);
	transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
	font-family: "macha", sans-serif;
	font-weight: 500;
	font-size: 15px;
	color: var(--ink);
}
.elim-istoric .elim-acc .elim-accordion__item.is-open > .elim-accordion__header-row button.elim-accordion__close {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .3s var(--ease) .15s, transform .3s var(--ease) .15s, visibility 0s;
}
.elim-istoric .elim-acc .elim-accordion__close span[aria-hidden] {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--gold);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	transition: transform .3s var(--ease);
}
.elim-istoric .elim-acc .elim-accordion__close:hover span[aria-hidden] { transform: rotate(90deg); }

/* Panoul: animăm grid-template-rows (0fr ↔ 1fr), fără înălțimi calculate în JS */
.elim-istoric .elim-acc .elim-accordion__panel {
	display: grid;
	grid-template-rows: 0fr;
	height: auto !important;
	overflow: hidden;
	transition: none;
}
.elim-istoric .elim-acc.is-ready .elim-accordion__panel {
	transition: grid-template-rows var(--elim-acc-dur) var(--ease);
}
.elim-istoric .elim-acc .elim-accordion__item.is-open > .elim-accordion__panel { grid-template-rows: 1fr; }
.elim-istoric .elim-acc .elim-accordion__item.no-anim > .elim-accordion__panel,
.elim-istoric .elim-acc .elim-accordion__item.no-anim .elim-panel-inner { transition: none !important; }
.elim-istoric .elim-acc .elim-panel-inner {
	min-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .25s ease, transform var(--elim-acc-dur) var(--ease);
}
.elim-istoric .elim-acc .elim-accordion__item.is-open .elim-panel-inner {
	opacity: 1;
	transform: none;
	transition: opacity .45s ease .12s, transform var(--elim-acc-dur) var(--ease);
}
.elim-istoric .elim-acc .elim-accordion__item.is-highlight .accordion__item_year { animation: elimPulse 1.4s var(--ease); }
@keyframes elimPulse {
	0% { box-shadow: 0 0 0 10px #fff, 0 0 0 10px rgba(218, 167, 105, .0); }
	35% { box-shadow: 0 0 0 10px #fff, 0 0 0 16px rgba(218, 167, 105, .55); }
	100% { box-shadow: 0 0 0 10px #fff, 0 0 0 22px rgba(218, 167, 105, 0); }
}

/* Textul capitolului: rolul „text de citit” vine din assets/global/type.css */
.elim-istoric .elim-acc .elim-accordion__content p { margin: 0 0 1em; }
.elim-istoric .elim-acc .elim-accordion__content strong { font-weight: 700; }
.elim-istoric .elim-acc .elim-accordion__content ul { margin: 0 0 1em; padding-left: 1.1em; }
.elim-istoric .elim-acc .elim-accordion__content ul.elim-venues { list-style: none; padding: 0; }
.elim-istoric .elim-acc .elim-accordion__content ul.elim-venues li { padding: 10px 0; border-top: 1px solid var(--line); }
.elim-istoric .elim-acc .elim-accordion__content ul.elim-venues li:last-child { border-bottom: 1px solid var(--line); }

/* „Capitolul următor” */
.elim-next-chapter {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 34px 0 56px;
	color: var(--ink);
}
.elim-next-chapter__k {
	font-family: "Montserrat", sans-serif;
	font-weight:800;
	font-size: 12px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--mauve);
}
.elim-next-chapter__t {
	font-family: "macha", sans-serif;
	font-weight: 700;
	font-size: 18px;
	transition: color .2s;
}
.elim-next-chapter__t b { color: var(--gold); margin-right: 10px; font-weight: 700; }
.elim-next-chapter svg { width: 16px; height: 16px; align-self: center; color: var(--gold); transition: transform .3s var(--ease); }
.elim-next-chapter:hover .elim-next-chapter__t { color: var(--plum); }
.elim-next-chapter:hover svg { transform: translateX(4px); }
.elim-next-chapter:focus-visible .elim-next-chapter__t { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }

/* Galerie: mozaic pe grilă, joasă, asimetrică (Figma: 1282 × 197) */
.elim-istoric .elim-accordion__gallery.elim-mosaic {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 34px 0 0;
	border-radius: 16px !important;
	overflow: hidden;
	max-width: none;
	container-type: inline-size;
}
.elim-istoric .elim-mosaic .elim-accordion__gallery-item {
	position: relative;
	margin: 0;
	height: 96px;
	height: 7.5cqw;
	flex: 0 0 auto;
	width: calc((100% - 12px) * var(--w, .25));
	overflow: hidden;
	cursor: zoom-in;
	background: var(--line);
}
.elim-istoric .elim-mosaic .elim-accordion__gallery-item img {
	width: 100%;
	height: 100% !important;
	max-height: none;
	object-fit: cover;
	display: block;
	transition: transform .6s var(--ease), filter .4s;
	filter: saturate(.92);
}
.elim-istoric .elim-mosaic .elim-accordion__gallery-item:hover img { transform: scale(1.04); filter: none; }
.elim-istoric .elim-mosaic .elim-accordion__gallery-item.is-hidden { display: none; }
.elim-istoric .elim-mosaic .elim-accordion__gallery-item[data-more]::after {
	content: attr(data-more);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(27, 20, 26, .62);
	color: #fff;
	font-family: "macha", sans-serif;
	font-weight: 700;
	font-size: 22px;
}
.elim-istoric .elim-mosaic .elim-accordion__gallery-item:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.elim-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(18, 13, 17, .96);
	display: grid;
	grid-template-rows: auto 1fr auto;
	color: #fff;
}
.elim-lb[hidden] { display: none; }
.elim-lb__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px;
	font-family: "Montserrat", sans-serif;
	font-weight:800;
	font-size: 12px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #d9ccd4;
}
.elim-lb__top b {
	font-family: "macha", sans-serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
	margin-right: 14px;
}
.elim-lb__stage {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	touch-action: pan-y;
}
.elim-lb__stage img {
	max-width: min(92vw, 1500px);
	max-height: 80vh;
	border-radius: 14px;
	transition: opacity .25s;
}
.elim-lb button {
	all: unset;
	cursor: pointer;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	transition: background .2s, color .2s;
}
.elim-lb button:hover { background: var(--gold); color: var(--ink); }
.elim-lb button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.elim-lb button svg { width: 22px; height: 22px; }
.elim-lb .elim-lb__prev, .elim-lb .elim-lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.elim-lb .elim-lb__prev { left: 22px; }
.elim-lb .elim-lb__next { right: 22px; }
.elim-lb__count { padding: 16px; text-align: center; font-family: "Montserrat", sans-serif; font-weight:800; font-size: 12px; letter-spacing: 0; color: #bfb1ba; }

/* =========================================================================
   MOBIL
   ========================================================================= */
@media (max-width: 1360px) {
	.elim-istoric { --overhang: 24px; }
}
@media (max-width: 767px) {
	.elim-istoric { --overhang: 0px; }
	.elim-era__years { display: none; }
	.elim-minimap { gap: 10px; padding: 0 16px; }
	.elim-minimap__btn { flex-basis: 34px; width: 34px; height: 34px; }
	.elim-istoric .elim-acc .elim-accordion__header-row { flex-wrap: wrap; gap: 8px 12px; margin-bottom: 24px; }
	.elim-istoric .elim-acc button.elim-accordion__trigger { flex: 1 1 100%; }
	.elim-istoric .elim-acc .elim-accordion__item h4 { font-size: 19px; }
	.elim-istoric .elim-acc button.elim-accordion__close { margin-left: auto; }
	.elim-istoric .elim-mosaic .elim-accordion__gallery-item { height: 64px; height: max(64px, 12cqw); }
	.elim-lb .elim-lb__prev, .elim-lb .elim-lb__next { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.elim-istoric *, .elim-istoric *::before, .elim-istoric *::after { transition: none !important; animation: none !important; }
}

/* ---------- Rezumat la hover (capitole închise) ----------
   Se desfășoară lin sub titlu, pe toată lățimea, aliniat cu titlul
   (grid-template-rows 0fr ↔ 1fr, ca la capitole). */
.elim-teaser { display: none; }
@media (hover: hover) {
	.elim-istoric .elim-acc .elim-accordion__header-row { flex-wrap: wrap; row-gap: 0; }
	.elim-istoric .elim-acc button.elim-accordion__trigger { flex: 1 1 0; min-width: 0; }
	.elim-istoric .elim-acc .elim-teaser {
		order: 3;
		flex: 0 0 100%;
		display: grid;
		grid-template-rows: 0fr 0fr;
		row-gap: 0;
		margin-top: 0;
		cursor: pointer;
		opacity: 0;
		pointer-events: none;
		transition: grid-template-rows var(--elim-acc-dur) var(--ease), row-gap var(--elim-acc-dur) var(--ease),
			margin-top var(--elim-acc-dur) var(--ease), opacity .3s ease;
	}
	.elim-istoric .elim-acc .elim-teaser > span { min-height: 0; overflow: hidden; }
	/* .elim-teaser__text: rolul „rezumat discret” (.elim-t-teaser, assets/global/type.css) */
	.elim-teaser__cta {
		display: inline-flex;
		justify-self: start;
		align-items: center;
		gap: 8px;
		font-family: "Montserrat", sans-serif;
		font-weight:800;
		font-size: 11px;
		letter-spacing: 0;
		text-transform: uppercase;
		color: var(--plum);
	}
	.elim-teaser__cta svg { width: 13px; height: 13px; color: var(--gold); transition: transform .35s var(--ease); }
	.elim-istoric .elim-acc .elim-accordion__item:not(.is-open):hover .elim-teaser {
		grid-template-rows: 1fr 1fr;
		row-gap: 10px;
		margin-top: 10px;
		opacity: 1;
		pointer-events: auto;
		transition-delay: .08s;
	}
	.elim-istoric .elim-acc .elim-teaser:hover .elim-teaser__cta svg { transform: translateX(3px); }
	/* linia capitolului „se aprinde” discret la hover */
	.elim-istoric .elim-acc .elim-accordion__item:not(.is-open)::after { transition: transform .6s var(--ease); }
	.elim-istoric .elim-acc .elim-accordion__item:not(.is-open):hover::after { transform: scaleX(.18); }
}

/* ---------- Butonul de sunet ---------- */
.elim-minimap__sound .x { display: none; }
.elim-minimap__sound[aria-pressed="false"] .w1,
.elim-minimap__sound[aria-pressed="false"] .w2 { display: none; }
.elim-minimap__sound[aria-pressed="false"] .x { display: inline; }
.elim-minimap__sound[aria-pressed="false"] { color: var(--mauve); }

/* ---------- Iconițe Haicon (din designul Figma) ---------- */
.elim-minimap__btn svg { width: 8px; height: 14px; }
.elim-minimap__sound svg { width: 17px; height: 14px; }
.elim-story-link svg { width: 11px; height: 6px; }
.elim-next-chapter svg { width: 7px; height: 13px; }
.elim-teaser__cta svg { width: 6px; height: 11px; }
.elim-lb .elim-lb__prev svg, .elim-lb .elim-lb__next svg { width: 10px; height: 18px; }
.elim-lb .elim-lb__close { background: none; width: 40px; height: 40px; color: var(--gold); }
.elim-lb .elim-lb__close:hover { background: none; color: #fff; }
.elim-lb .elim-lb__close svg { width: 34px; height: 34px; }
.elim-istoric .elim-acc .elim-accordion__close span.elim-close-icon {
	width: 22px; height: 22px; background: none; color: var(--gold); display: grid; place-items: center;
}
.elim-istoric .elim-acc .elim-accordion__close span.elim-close-icon svg { width: 22px; height: 22px; }
.elim-istoric .elim-acc .elim-accordion__close:hover span.elim-close-icon { color: var(--plum); }

/* „Închide”: textul și iconița centrate pe aceeași axă */
.elim-istoric .elim-acc button.elim-accordion__close { align-items: center; line-height: 1; height: 22px; margin-top: 3px; }
.elim-istoric .elim-acc .elim-accordion__close > span:first-child { display: block; line-height: 22px; }
.elim-istoric .elim-acc .elim-accordion__close span.elim-close-icon { line-height: 0; flex: 0 0 22px; padding: 0 !important; margin: 0; }
.elim-istoric .elim-acc .elim-accordion__close span.elim-close-icon svg { display: block; }

/* Rezumatul la hover: săgeata nu mai e tăiată */
@media (hover: hover) and (min-width: 1100px) {
	.elim-istoric .elim-acc .elim-accordion__item:not(.is-open):hover .elim-teaser { clip-path: inset(-6px -12px -6px -6px); }
	.elim-teaser__cta { overflow: visible; line-height: 1.4; }
	.elim-teaser__cta svg { flex: 0 0 auto; overflow: visible; }
}

/* Difuzorul „line” */
.elim-minimap__sound svg { width: 22px; height: 22px; }

/* Săgeata din „Deschide capitolul”: aceeași culoare și înălțime ca majusculele textului, fără tremur */
@media (hover: hover) and (min-width: 1100px) {
	.elim-teaser__cta { align-items: center; gap: 10px; }
	.elim-teaser__cta svg {
		width: 6px; height: 10px; color: currentColor; display: block;
		transform: none !important; transition: none !important;
	}
	.elim-teaser__cta svg path { stroke: currentColor; stroke-width: .5px; }
	.elim-istoric .elim-acc .elim-accordion__item:not(.is-open):hover .elim-teaser__cta { color: var(--ink); }
}
.elim-minimap__sound[aria-pressed="false"]:hover { color: var(--ink); }
.elim-minimap__btn:focus:not(:focus-visible) { border-color: var(--line); outline: none; box-shadow: none; }

/* =========================================================================
   Acțiuni: tiparul din Figma — text mov + cerc 30px (fond alb, contur auriu 1px)
   cu săgeata Haicon angle-right plină, mov. Hover: cercul se umple cu auriu.
   ========================================================================= */
.elim-cta-circle {
	display: inline-grid; place-items: center; flex: 0 0 auto;
	width: 30px; height: 30px; border-radius: 50%;
	background: #fff; border: 1px solid var(--gold); color: var(--plum);
	transition: background-color .25s var(--ease), color .25s;
}
.elim-cta-circle svg { width: 7px !important; height: 13px !important; display: block; transform: none !important; }
.elim-cta-circle svg path { stroke: none !important; }
.elim-cta-circle--sm { width: 24px; height: 24px; }
.elim-cta-circle--sm svg { width: 6px !important; height: 11px !important; }
.elim-story-link .elim-cta-circle svg { width: 11px !important; height: 6px !important; }

.elim-next-chapter { align-items: center; }
.elim-next-chapter:hover .elim-cta-circle,
.elim-story-link:hover .elim-cta-circle,
.elim-istoric .elim-acc .elim-accordion__item:not(.is-open):hover .elim-teaser__cta .elim-cta-circle { background: var(--gold); color: var(--ink); }
.elim-story-link { border-bottom: 0; padding-bottom: 0; gap: 10px; }
@media (hover: hover) and (min-width: 1100px) { .elim-teaser__cta { gap: 10px; } }

/* Butoanele rotunde de control (minimap, sunet): același cerc, contur auriu */
.elim-minimap__btn { border-color: var(--gold); }
.elim-minimap__btn:focus:not(:focus-visible) { border-color: var(--gold); }
.elim-minimap__btn:disabled { border-color: var(--line); }
.elim-next-chapter .elim-cta-circle svg, .elim-story-link .elim-cta-circle svg, .elim-teaser__cta .elim-cta-circle svg { color: currentColor !important; }

/* =========================================================================
   Link „slim” (stil acceptat pentru zone discrete): fără cerc,
   săgeata Haicon angle-right plină, aurie, lângă text. Hover: textul și
   săgeata devin #1B141A, iar săgeata se apropie 3px (fără tremur).
   ========================================================================= */
.elim-slim { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.elim-slim__arrow { display: inline-grid; place-items: center; color: var(--gold); line-height: 0; transition: transform .3s var(--ease), color .25s; }
.elim-slim__arrow svg { width: 7px !important; height: 13px !important; display: block; transform: none !important; color: currentColor !important; }
.elim-slim__arrow svg path { stroke: none !important; }
.elim-slim__arrow--down svg { width: 11px !important; height: 6px !important; }
.elim-slim:hover .elim-slim__arrow,
.elim-istoric .elim-acc .elim-accordion__item:not(.is-open):hover .elim-teaser__cta .elim-slim__arrow { transform: translateX(3px); }
.elim-slim:hover .elim-slim__arrow--down { transform: translateY(2px); }
.elim-story-link.elim-slim { border-bottom: 0; padding-bottom: 0; }

/* „Capitolul următor”: două stiluri, nu cinci — eticheta + un rând de titlu */
.elim-next-chapter.elim-slim { flex-direction: column; align-items: flex-start; gap: 6px; }
.elim-next-chapter .elim-next-chapter__k {
	font-family: "Montserrat", sans-serif; font-weight:800; font-size: 12px; letter-spacing: 0;
	text-transform: uppercase; color: var(--mauve);
}
.elim-next-chapter .elim-next-chapter__t {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: "macha", sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--plum);
}
.elim-next-chapter:hover .elim-next-chapter__t { color: var(--ink); }
.elim-slim { padding-right: 4px; } .elim-teaser__cta.elim-slim { overflow: visible; } .elim-next-chapter.elim-slim { gap: 4px; }

/* Finalul unui capitol: două linkuri slim, pe un rând */
.elim-chapter-end { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 34px 0 56px; }
.elim-chapter-end button {
	all: unset; box-sizing: border-box; cursor: pointer;
	display: inline-flex; align-items: center; gap: 10px; padding-right: 4px;
	font-family: "Montserrat", sans-serif; font-weight:800; font-size: 12px; letter-spacing: 0;
	text-transform: uppercase; color: var(--plum); transition: color .2s;
}
.elim-chapter-end button:hover { color: var(--ink); }
.elim-chapter-end button:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.elim-slim__arrow--up svg { width: 11px !important; height: 6px !important; transform: rotate(180deg) !important; }
.elim-slim:hover .elim-slim__arrow--up { transform: translateY(-2px); }

/* Corecție optică: în textul mic cu majuscule (12px), săgeata depășește înălțimea
   majusculelor (~7.5px) cu doar ~1px sus/jos — nu cu 50%. */
.elim-slim__arrow svg { width: 5.4px !important; height: 10px !important; }
.elim-slim__arrow--down svg, .elim-slim__arrow--up svg { width: 10px !important; height: 5.5px !important; }

/* Cronologie: prima literă a descrierii e mereu mare (plasă de siguranță peste regula de salvare) */
.horizontal-timeline-text > p:first-child::first-letter { text-transform: uppercase; }

/* Vizualizator unic (capitole + cronologie): colțuri rotunjite și pentru video */
.elim-lb__stage .elim-lb__media {
	width: min(92vw, 1280px);
	aspect-ratio: 16 / 9;
	max-height: 80vh;
	border: 0;
	border-radius: 14px;
	background: #000;
	overflow: hidden;
}
.elim-lb__stage video.elim-lb__media { object-fit: contain; }
.elim-lb.is-single .elim-lb__prev, .elim-lb.is-single .elim-lb__next { display: none; }
.elim-lb__top b { max-width: 70vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.elim-minimap__window.is-dragging { transition: none; cursor: grabbing; background: rgba(218,167,105,.26); }

/* Rezumatul la hover se deschide fin: curbă simetrică (fără „salt” la început),
   iar textul apare cu o mică întârziere, alunecând ușor din sus. */
@media (hover: hover) {
	.elim-istoric .elim-acc .elim-teaser {
		--teaser-ease: cubic-bezier(.45, .05, .25, 1);
		--teaser-dur: 560ms;
		transition: grid-template-rows var(--teaser-dur) var(--teaser-ease), row-gap var(--teaser-dur) var(--teaser-ease),
			margin-top var(--teaser-dur) var(--teaser-ease), opacity .4s ease;
		will-change: grid-template-rows;
	}
	.elim-istoric .elim-acc .elim-teaser > span {
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity .3s ease, transform .3s var(--teaser-ease);
	}
	.elim-istoric .elim-acc .elim-accordion__item:not(.is-open):hover .elim-teaser { transition-delay: .06s; }
	.elim-istoric .elim-acc .elim-accordion__item:not(.is-open):hover .elim-teaser > span {
		opacity: 1;
		transform: none;
		transition: opacity .45s ease .2s, transform .55s var(--teaser-ease) .2s;
	}
	.elim-istoric .elim-acc .elim-accordion__item:not(.is-open):hover .elim-teaser > span + span { transition-delay: .28s; }
}
/* „Trage sau folosește săgețile” */
/* (oct. 2026) lipit de marginea dreaptă a ecranului, ca linia cronologiei care merge până la margine */
.elim-istoric .infoafter { width: 100vw; max-width: none; align-self: flex-end; margin-left: auto !important; margin-right: calc(50% - 50vw) !important; padding: 0 var(--elim-gutter, 20px) 0 0 !important; box-sizing: border-box; }
.elim-istoric .infoafter > .elementor-widget-container { margin: 0 !important; padding: 0 !important; }

/* linkul spre înregistrarea completă (ex. 1988, deschiderea lăcașului): legătura „slim” a site-ului — play mic, text mov, săgeată aurie */
.elim-istoric .horizontal-timeline-text a.htl-yt { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; text-decoration: underline !important; text-decoration-color: #DAA769 !important; text-underline-offset: 3px; font-family: "macha", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.3; color: #483041; text-decoration: none; transition: color .2s; }
.elim-istoric .horizontal-timeline-text a.htl-yt::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #F7F3F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7.5v9l7.5-4.5z' fill='%23483041'/%3E%3C/svg%3E") center / 18px no-repeat; transition: background-color .2s; }
.elim-istoric .horizontal-timeline-text a.htl-yt::after { display: none; content: ""; width: 14px; height: 14px; background: #DAA769; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.3 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4-1.4L14.6 12 9.3 6.7a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.3 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4-1.4L14.6 12 9.3 6.7a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.elim-istoric .horizontal-timeline-text a.htl-yt:hover { color: #1B141A; }
.elim-istoric .horizontal-timeline-text a.htl-yt:hover::before { background-color: #DAA769; }
.elim-istoric .horizontal-timeline-text a.htl-yt:hover::after { transform: translateX(3px); }
@media (max-width: 767px) { .elim-istoric .infoafter { display: none !important; } }   /* pe telefon gestul e evident; controlul e deasupra */
/* controlul deasupra cronologiei: aer între el și etichetele perioadelor */
.elim-istoric .elim-minimap { margin: 8px auto 44px; }
@media (max-width: 767px) { .elim-istoric .elim-minimap { margin: 0 auto 32px; } }
