/* ===========================================================================
   Interfaz común de TTS (Elhuyar). Se carga la última en base.html.
   Colores de marca: azul #1A3AAB, turquesa #00ACA9.
   =========================================================================== */
:root {
	--elh-blue: #1A3AAB;
	--elh-teal: #00ACA9;
	--elh-teal-dark: #00807e;
	--elh-ink: #1d1d1b;
	--elh-muted: #5f5e5a;
	--elh-line: #dcdad5;
	--elh-surface: #ffffff;
	--elh-danger: #b42318;
	--elh-danger-bg: #fdecea;
	--elh-ok: #116b3f;
	--elh-ok-bg: #e6f4ec;
	--elh-warn-bg: #fff6e0;
	--elh-radius: 6px;
	--elh-header-gap: 0px;   /* las páginas de TTS ya llevan su espacio arriba (.page-tool: 2rem) */
}

/* Cabecera y footer: en elh_shell.css (común a TTS, Aditu y Elia) */

/* --- Páginas de herramienta (kutxa, dokumentuak, web-orriak, aurkezpenak) --- */
.page-tool { padding-top: 2rem; padding-bottom: 1rem; }
.page-tool__header h2 { color: var(--elh-blue); font-weight: 600; }
.page-tool__header h6 { color: var(--elh-muted); font-weight: 400; line-height: 1.5; }
.text-elhuyar { color: var(--elh-teal) !important; }
.bg-elhuyar { background-color: var(--elh-teal) !important; }
.tool-card {
	background: var(--elh-surface); border: 1px solid var(--elh-line); border-radius: var(--elh-radius);
	padding: 1.5rem; margin-bottom: 1.25rem;
}
.tool-card__options { max-width: 640px; margin: 1.5rem auto 0; }
.upload-drop-zone {
	border: 2px dashed var(--elh-line); border-radius: var(--elh-radius); cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.upload-drop-zone:hover, .upload-drop-zone.drop { border-color: var(--elh-teal); background: rgba(0, 172, 169, .05); }

.tool-steps {
	display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem;
	counter-reset: none; font-size: .9rem; color: var(--elh-muted);
}
.tool-steps__item { display: flex; align-items: center; gap: .5rem; }
.tool-steps__item span {
	display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
	border-radius: 50%; border: 1px solid var(--elh-line); font-size: .8rem; font-weight: 600; background: #fff;
}
.tool-steps__item.is-current { color: var(--elh-blue); font-weight: 600; }
.tool-steps__item.is-current span { background: var(--elh-blue); border-color: var(--elh-blue); color: #fff; }
.tool-steps__item.is-done span { background: var(--elh-teal); border-color: var(--elh-teal); color: #fff; }

.feature-locked { max-width: 640px; margin: 2rem auto; padding: 2.5rem 1.5rem; }

/* --- Aurkezpenak ---------------------------------------------------------- */
/* tts.css da 150px de padding a todos los section */
.pres-app { padding: 0; }
.pres-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; }
.pres-summary__file { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.pres-summary__file > i { font-size: 1.8rem; color: #c43e1c; }
.pres-summary__name { font-weight: 600; word-break: break-word; }
.pres-settings { padding-top: .5rem; }
.pres-result video { width: 100%; max-height: 70vh; background: #000; border-radius: var(--elh-radius); }
.pres-result__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .5rem; }
.pres-result__actions .btn { margin: 0; }

.pres-slides { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.pres-slide {
	display: grid; grid-template-columns: minmax(200px, 34%) 1fr; gap: 1.25rem;
	background: var(--elh-surface); border: 1px solid var(--elh-line); border-radius: var(--elh-radius); padding: 1rem;
}
.pres-slide.is-silent { background: #fafaf8; }
.pres-slide__thumb {
	position: relative; aspect-ratio: 16 / 9; background: #f1f0ec; border-radius: 4px; overflow: hidden;
	border: 1px solid var(--elh-line); align-self: start;
}
/* opacity y no display:none: una imagen lazy oculta con display:none no se descarga nunca */
.pres-slide__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; background: #fff; transition: opacity .2s ease; }
.pres-slide.has-image .pres-slide__thumb img { opacity: 1; }
.pres-slide.has-image .pres-slide__placeholder { display: none; }
.pres-slide__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pres-slide__number {
	position: absolute; top: .4rem; left: .4rem; z-index: 1; min-width: 26px; padding: .1rem .45rem;
	border-radius: 999px; background: rgba(29, 29, 27, .78); color: #fff; font-size: .75rem; font-weight: 600; text-align: center;
}
.pres-slide__body { display: flex; flex-direction: column; min-width: 0; }
.pres-slide__text { resize: vertical; font-size: .95rem; line-height: 1.5; min-height: 90px; }
.pres-slide.is-silent .pres-slide__text { border-style: dashed; }

.pres-actionbar {
	position: sticky; bottom: 0; z-index: 5;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	background: rgba(255, 255, 255, .96); border: 1px solid var(--elh-line); border-radius: var(--elh-radius);
	padding: .75rem 1rem; box-shadow: 0 -4px 12px rgba(0, 0, 0, .05);
}
.pres-actionbar .btn { margin: 0; }
@media (max-width: 767.98px) {
	.page-tool { padding-top: 1.25rem; }
	.tool-card { padding: 1rem; }
	.pres-slide { grid-template-columns: 1fr; gap: .75rem; }
	.pres-actionbar { padding: .6rem .75rem; }
	.pres-actionbar .btn { width: 100%; }
}

/* base.css da 150px de padding a todo section y estilos antiguos de la kutxa: se anulan aquí */
.page-tool section { padding: 0; }
.page-tool .tool-card .elhuyar-select .content { width: 100%; display: block; }
.page-tool .tool-card .elhuyar-select .header { margin-bottom: .15rem; }

/* --- Kutxa ------------------------------------------------------------------ */
.box-note { font-size: .92rem; }
.box-text { position: relative; margin-top: 1.25rem; }
.box-text textarea.form-control {
	width: 100%; min-height: 170px; resize: vertical; font-size: 1.05rem; line-height: 1.6;
	border: 1px solid var(--elh-line) !important; border-radius: var(--elh-radius); padding: .9rem 2.6rem .9rem 1rem;
	box-shadow: none !important; background: #fff;
}
/* Capa de resaltado (la palabra que suena) detrás del textarea, que pasa a ser transparente mientras está activa */
.box-text__backdrop {
	position: absolute; top: 0; left: 0; z-index: 0; display: none; box-sizing: border-box; overflow: hidden;
	white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; color: transparent; pointer-events: none;
	border-style: solid; border-color: transparent; background: #fff;
}
.box-text__backdrop.is-active { display: block; }
.box-text textarea.form-control.has-backdrop { position: relative; z-index: 1; background: transparent !important; }
.box-text__backdrop .tts-word { border-radius: 3px; }
.box-text__backdrop .tts-word.is-spoken { background: rgba(0, 172, 169, .35); color: transparent; box-shadow: 0 0 0 2px rgba(0, 172, 169, .35); }
.box-text textarea.form-control:focus { border-color: var(--elh-teal) !important; box-shadow: 0 0 0 3px rgba(0, 172, 169, .15) !important; }
.box-text__clear {
	position: absolute; z-index: 2; top: .4rem; right: .4rem; margin: 0; padding: .35rem .5rem; color: var(--elh-muted) !important; box-shadow: none !important;
}
.box-text__clear:hover { color: var(--elh-danger) !important; }
.box-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .5rem; }
.box-meta kbd { background: #eeede9; color: var(--elh-ink); box-shadow: none; font-size: .75rem; padding: .1rem .35rem; }
#counter.box-counter { width: auto; margin: 0 0 0 auto; padding: 0; font-size: .85rem; color: var(--elh-muted); }
#counter.box-counter.is-full { color: var(--elh-danger); font-weight: 600; }
.page-tool .reproductor .reader-btn { width: 44px; padding: 0; color: #fff !important; }
.page-tool .reproductor .reader-btn:hover { transform: none; }
.page-tool .reproductor .reader-btn.stop-btn { color: var(--elh-blue) !important; }
.page-tool .reproductor .btn-ghost { width: auto; padding: .35rem .8rem; color: var(--elh-ink) !important; }
.page-tool .reproductor i { font-size: inherit !important; }

/* Botones redondos del reproductor (kutxa y lector) */
.reader-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0;
	border-radius: 50%; border: 1px solid var(--elh-line); background: #fff; color: var(--elh-blue); box-shadow: none !important;
	padding: 0; text-transform: none;
}
.reader-btn:hover:not(:disabled) { background: #f1f4fd; }
.reader-btn--main { width: 52px; height: 52px; background: var(--elh-teal); border-color: var(--elh-teal); color: #fff !important; font-size: 1.1rem; }
.reader-btn--main:hover:not(:disabled) { background: #009996; }
.reader-btn:disabled { opacity: .45; }

/* --- Formularios de subida / URL -------------------------------------------- */
.upload-form .upload-drop-zone { background: #fcfcfb; }
#file_upload.is-dragover .upload-drop-zone { border-color: var(--elh-teal); background: rgba(0, 172, 169, .06); }
.url-label { font-weight: 600; color: var(--elh-blue); margin-bottom: .4rem; }
.url-field { position: relative; }
.url-field i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--elh-muted); }
.url-field input.form-control {
	height: auto; padding: .8rem 1rem .8rem 2.6rem; font-size: 1.05rem;
	border: 1px solid var(--elh-line); border-radius: var(--elh-radius); box-shadow: none;
}
.url-field input.form-control:focus { border-color: var(--elh-teal); box-shadow: 0 0 0 3px rgba(0, 172, 169, .15); }

/* --- Lector (dokumentuak / web-orriak) --------------------------------------- */
.reader { position: relative; padding: 0; overflow: visible; }
.reader-head {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	padding: 1rem 1.25rem; border-bottom: 1px solid var(--elh-line);
}
.reader-head__source { display: flex; align-items: center; gap: .9rem; min-width: 0; flex: 1 1 280px; }
.reader-head__source > i { font-size: 1.6rem; color: var(--elh-teal); }
.min-w-0 { min-width: 0; }
.reader-head__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-head__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.reader-head__actions .btn { margin: 0; text-transform: none; }
.reader-settings { padding: .5rem 1.25rem .75rem; margin: 0; border-bottom: 1px solid var(--elh-line); }
.reader-toolbar {
	display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding: .75rem 1.25rem; background: #fafaf8;
	border-bottom: 1px solid var(--elh-line);
}
.reader-mode { border: 1px solid var(--elh-line); border-radius: 999px; overflow: hidden; background: #fff; }
.reader-mode .btn { margin: 0; box-shadow: none; text-transform: none; border-radius: 0; padding: .35rem .9rem; color: var(--elh-ink); background: transparent; }
.reader-mode .btn.is-active { background: var(--elh-blue); color: #fff; }
.reader-toolbar__edit { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.reader-toolbar__edit[hidden] { display: none; }
.reader-toolbar__edit .btn { margin: 0; box-shadow: none; text-transform: none; }
.reader-toolbar__edit .btn-link { color: var(--elh-blue); }
.reader-toolbar__sep { width: 1px; height: 1.4rem; background: var(--elh-line); margin: 0 .25rem; }
.reader-toolbar__hint { flex: 1 1 260px; text-align: right; }
.reader-alert { margin: 1rem 1.25rem 0; }
.reader-text {
	padding: 1.25rem 1.5rem 1.5rem; max-height: 62vh; overflow-y: auto; font-size: 1.08rem; line-height: 1.75; color: var(--elh-ink);
}
.reader-par { position: relative; margin: 0 0 1rem; padding: .15rem .5rem; border-left: 3px solid transparent; border-radius: 2px; }
.reader-par.paragrafoa-irakurtzen { border-left-color: var(--elh-teal); background: rgba(0, 172, 169, .1); }
.reader:not(.is-editing) .esaldia { cursor: pointer; border-radius: 3px; transition: background-color .15s ease; }
.reader:not(.is-editing) .esaldia:hover { background: rgba(26, 58, 171, .07); }
.esaldia.irakurtzen { background: var(--elh-teal) !important; color: #06201f; box-shadow: 0 0 0 2px var(--elh-teal); }
/* Modo edición: cada párrafo es un campo editable */
.reader.is-editing .reader-text { background: #fff; }
.reader.is-editing .reader-par {
	border: 1px dashed var(--elh-line); padding: .5rem 2.2rem .5rem .75rem; outline: none; cursor: text;
}
.reader.is-editing .reader-par:focus { border: 1px solid var(--elh-teal); box-shadow: 0 0 0 3px rgba(0, 172, 169, .12); }
.reader.is-editing .reader-par:empty::before, .reader.is-editing .reader-par[data-placeholder]:not(:focus):only-child::before { content: attr(data-placeholder); color: var(--elh-muted); }
.reader-par__del {
	position: absolute; right: 1.9rem; z-index: 2; width: 26px; height: 26px; border: 0; border-radius: 50%;
	background: transparent; color: var(--elh-muted); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem;
	user-select: none;
}
.reader-par__del[hidden] { display: none; }
.reader-par__del:hover { background: var(--elh-danger-bg); color: var(--elh-danger); }
.reader-player {
	position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
	padding: .75rem 1.25rem; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--elh-line);
	border-radius: 0 0 var(--elh-radius) var(--elh-radius); box-shadow: 0 -4px 12px rgba(0, 0, 0, .05);
}
.reader-player__controls { display: flex; align-items: center; gap: .5rem; }
.reader-player__progress { flex: 1 1 200px; }
.reader-player__progress .small { color: var(--elh-muted); margin-bottom: .3rem; }
@media (max-width: 767.98px) {
	.reader-text { padding: 1rem; font-size: 1rem; max-height: none; }
	.reader-toolbar__hint { text-align: left; }
	.reader-head__actions { width: 100%; }
	.reader-head__actions .btn { flex: 1 1 auto; }
	.reader-player { gap: .75rem; }
	.reader-player__controls { width: 100%; justify-content: center; }
}

/* Botón neutro (en MDB btn-outline-secondary es morado) */
.btn.btn-ghost {
	background: #fff; color: var(--elh-ink) !important; border: 1px solid var(--elh-line); box-shadow: none; text-transform: none;
}
.btn.btn-ghost:hover:not(:disabled) { background: #f4f4f1; border-color: #c9c7c0; }
.btn.btn-ghost:disabled { opacity: .5; }

/* --- Botones con fondo de color: texto blanco (tts.css los ponía en negro) -------- */
.btn.btn-elhuyar, .btn-elhuyar { color: #fff !important; font-weight: 500; }
.btn.btn-elhuyar:hover, .btn.btn-elhuyar:focus { background-color: #009996 !important; color: #fff !important; }
.btn.btn-elhuyar:disabled, .btn.btn-elhuyar.disabled { color: #fff !important; opacity: .55; }
.btn.btn-elhuyar i, .btn.btn-elhuyar .fas, #box_form #box-submit .fa-play { color: #fff !important; margin-left: 0; }
.bg-elhuyar { color: #fff !important; }

/* --- Qué leer en cada diapositiva ---------------------------------------- */
.read-mode__legend { font-size: .95rem; font-weight: 600; color: var(--elh-blue); margin-bottom: .6rem; }
.read-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.read-mode__option { margin: 0; cursor: pointer; }
.read-mode__option input { position: absolute; opacity: 0; }
.read-mode__option > span {
	display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .75rem .9rem;
	border: 1px solid var(--elh-line); border-radius: var(--elh-radius); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.read-mode__option i { color: var(--elh-teal); margin-bottom: .2rem; }
.read-mode__option strong { font-size: .92rem; color: var(--elh-ink); }
.read-mode__option small { color: var(--elh-muted); line-height: 1.35; }
.read-mode__option input:checked + span { border-color: var(--elh-teal); box-shadow: 0 0 0 2px rgba(0, 172, 169, .25); background: #f6fbfb; }
.read-mode__option input:focus-visible + span { outline: 2px solid var(--elh-blue); outline-offset: 2px; }
@media (max-width: 767.98px) { .read-mode { grid-template-columns: 1fr; } }
fieldset.tool-card__options { max-width: none; border: 0; padding: 0; margin-top: 1.5rem; }

/* --- Aurkezpenak: qué se lee en cada diapositiva --------------------------------- */
.pres-read { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.pres-read__label { font-size: .85rem; font-weight: 600; color: var(--elh-ink); }
.pres-read__opts { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--elh-line); border-radius: 999px; overflow: hidden; background: #fff; }
.pres-read__opt {
	display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .3rem .8rem; border: 0;
	border-right: 1px solid var(--elh-line); background: transparent; color: var(--elh-ink); font-size: .82rem; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.pres-read__opt:last-child { border-right: 0; }
.pres-read__opt i { color: var(--elh-teal); font-size: .8rem; }
.pres-read__opt:hover:not(:disabled):not(.is-active) { background: #f1f4fd; }
.pres-read__opt.is-active { background: var(--elh-blue); color: #fff; font-weight: 500; }
.pres-read__opt.is-active i { color: #fff; }
.pres-read__opt:disabled { color: #b4b2ab; cursor: not-allowed; }
.pres-read__opt:disabled i { color: #c9c7c0; }
.pres-read__opt[data-src="silent"].is-active { background: #6b6a65; }
.pres-slide__foot { display: flex; align-items: center; gap: .75rem; margin-top: .45rem; }
.pres-slide__state { flex: 1; color: var(--elh-muted); }
.pres-slide__state.is-edited { color: #8a5a00; }
.pres-slide__state.is-ocr { color: var(--elh-teal-dark); }
.pres-slide__foot .pres-play { margin: 0; padding: .3rem .8rem; font-size: .85rem; }
.pres-slide.is-edited .pres-slide__text { border-color: #e2b65a; }
.pres-applyall {
	display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; margin: -.25rem 0 1rem; padding: .75rem 1rem;
	background: #fff; border: 1px solid var(--elh-line); border-radius: var(--elh-radius);
}
.pres-applyall__label { font-size: .88rem; font-weight: 600; color: var(--elh-blue); }
.pres-applyall__hint { flex-basis: 100%; }

/* --- Formatos admitidos: un panel con una fila por tipo ------------------------- */
.formats { margin-top: 1.25rem; border: 1px solid var(--elh-line); border-radius: var(--elh-radius); background: #fcfcfb; }
.formats__title {
	margin: 0; padding: .6rem 1rem; font-size: .78rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--elh-muted); border-bottom: 1px solid var(--elh-line);
}
.formats__list { list-style: none; margin: 0; padding: 0; }
.formats__row {
	display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: .35rem 1rem; padding: .6rem 1rem;
	border-bottom: 1px solid #ecebe7;
}
.formats__row:last-child { border-bottom: 0; }
.formats__type { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; color: var(--elh-ink); }
.formats__type i { width: 1.2em; text-align: center; color: var(--elh-teal); font-size: 1.05rem; }
.formats__exts { display: flex; flex-wrap: wrap; gap: .3rem; }
.formats__exts .ext {
	display: inline-block; padding: .1rem .45rem; border-radius: 4px; background: #eef1fb; color: var(--elh-blue);
	font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.formats__note { font-size: .8rem; color: var(--elh-muted); margin-left: .35rem; align-self: center; }
.formats__note::before { content: "·"; margin-right: .5rem; }
@media (max-width: 575.98px) {
	.formats__row { grid-template-columns: 1fr; }
	.formats__note { margin-left: 0; }
	.pres-read__opt { padding: .3rem .6rem; }
}

/* --- Reproductor compacto (kutxa) ------------------------------------------------ */
.page-tool .box-result { padding: 1rem 1.25rem; }
.box-result__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; padding-left: calc(48px + 1rem); }
.box-result__foot .btn { margin: 0; text-transform: none; }
.tts-player { display: flex; align-items: center; gap: 1rem; }
.tts-player__play {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
	border: 0; border-radius: 50%; background: var(--elh-teal); color: #fff; font-size: 1rem; cursor: pointer;
	transition: background-color .15s ease, transform .1s ease;
}
.tts-player__play .fa-play { margin-left: 3px; }
.tts-player__play:hover { background: #009996; }
.tts-player__play:active { transform: scale(.96); }
.tts-player__play:focus-visible, .tts-player__wave:focus-visible { outline: 2px solid var(--elh-blue); outline-offset: 2px; }
.tts-player__wave { position: relative; flex: 1; min-width: 0; height: 56px; cursor: pointer; border-radius: 4px; }
.tts-player__wave canvas { display: block; }
.tts-player__loading { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #d7efee; overflow: hidden; }
.tts-player__loading::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--elh-teal); animation: tts-load 1s ease-in-out infinite; }
.tts-player__wave.is-ready .tts-player__loading { display: none; }
@keyframes tts-load { from { left: -30%; } to { left: 100%; } }
.tts-player__time { flex: none; min-width: 5.5em; text-align: right; font-size: .85rem; color: var(--elh-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
	.tts-player { gap: .65rem; }
	.tts-player__wave { height: 44px; }
	.box-result__foot { padding-left: 0; }
}

/* --- Aurkezpenak: miniatura ampliable y visor ---------------------------------- */
.pres-slide__thumb { cursor: zoom-in; transition: box-shadow .15s ease; }
.pres-slide__thumb:hover, .pres-slide__thumb:focus-visible { box-shadow: 0 0 0 3px rgba(0, 172, 169, .35); outline: none; }
.pres-slide__zoom {
	position: absolute; right: .4rem; bottom: .4rem; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%; background: rgba(29, 29, 27, .7); color: #fff; font-size: .8rem;
	opacity: 0; transition: opacity .15s ease;
}
.pres-slide__thumb:hover .pres-slide__zoom, .pres-slide__thumb:focus-visible .pres-slide__zoom { opacity: 1; }
body.pres-viewer-open { overflow: hidden; }
.pres-viewer {
	position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; gap: 1rem;
	padding: 3rem 1rem 1.5rem; background: rgba(16, 18, 26, .97);
}
.pres-viewer[hidden] { display: none; }
.pres-viewer__figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(1400px, 100%); min-width: 0; }
.pres-viewer__figure img {
	display: block; max-width: 100%; max-height: calc(100vh - 13rem); object-fit: contain;
	background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
.pres-viewer figcaption { width: 100%; max-width: 900px; margin-top: .9rem; color: #e9e8e4; font-size: .9rem; text-align: center; }
.pres-viewer__count { font-weight: 600; margin-right: .75rem; }
.pres-viewer__source { color: #9fdcda; }
.pres-viewer__text {
	display: block; margin-top: .4rem; max-height: 4.8em; overflow-y: auto; color: #c9c7c0; line-height: 1.6; text-align: left;
}
.pres-viewer__nav, .pres-viewer__close {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; cursor: pointer;
	transition: background-color .15s ease;
}
.pres-viewer__nav:hover, .pres-viewer__close:hover { background: rgba(255, 255, 255, .25); }
.pres-viewer__nav:focus-visible, .pres-viewer__close:focus-visible { outline: 2px solid #9fdcda; outline-offset: 2px; }
.pres-viewer__nav[hidden] { display: none; }
.pres-viewer__close { position: absolute; top: .75rem; right: .75rem; width: 40px; height: 40px; }
@media (max-width: 767.98px) {
	.pres-viewer { padding: 3.5rem .5rem 1rem; gap: .25rem; }
	.pres-viewer__nav { position: absolute; bottom: 1rem; width: 42px; height: 42px; }
	.pres-viewer__prev { left: 1rem; }
	.pres-viewer__next { right: 1rem; }
	.pres-viewer__figure img { max-height: calc(100vh - 14rem); }
	.pres-viewer figcaption { padding: 0 3.5rem; }
	.pres-slide__zoom { opacity: 1; }
}

/* Textos largos: el cuadro crece hasta 480 px y después tiene su propio scroll (una hoja antigua ponía overflow: hidden) */
.pres-slide__text { overflow-y: auto !important; max-height: 480px; }

/* Bootstrap 4 pinta un contorno cuadrado en cualquier botón al hacer clic: solo se deja para el teclado */
.page-tool button:focus:not(:focus-visible), .page-tool .btn:focus:not(:focus-visible) { outline: none; }
.pres-read__opt:focus { outline: none; }
.pres-read__opt:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--elh-teal); position: relative; z-index: 1; }
.pres-read__opt:first-child:focus-visible { border-radius: 999px 0 0 999px; }
.pres-read__opt:last-child:focus-visible { border-radius: 0 999px 999px 0; }
.pres-slide__alert { margin: .4rem 0 0; padding: .4rem .6rem; border-radius: 4px; background: var(--elh-danger-bg); color: var(--elh-danger); }
.pres-slide__alert[hidden] { display: none; }

/* --- Aurkezpenak: reproductor fijo de la escucha previa ------------------------------- */
.pres-player {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
	background: #fff; border-top: 1px solid var(--elh-line); box-shadow: 0 -6px 24px rgba(29, 29, 27, .1);
}
.pres-player[hidden] { display: none; }
body.pres-player-open { padding-bottom: 84px; }
body.pres-player-open .pres-actionbar { bottom: 84px; }
.pres-player__inner { display: flex; align-items: center; gap: 1rem; max-width: 1140px; margin: 0 auto; padding: .7rem 1rem; }
.pres-player__controls { display: flex; align-items: center; gap: .35rem; flex: none; }
.pres-player__btn {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; flex: none;
	border: 0; border-radius: 50%; background: transparent; color: var(--elh-blue); cursor: pointer; transition: background-color .15s ease;
}
.pres-player__btn:hover:not(:disabled) { background: #f1f4fd; }
.pres-player__btn:disabled { color: #c9c7c0; cursor: default; }
.pres-player__btn:focus:not(:focus-visible) { outline: none; }
.pres-player__btn--main { width: 46px; height: 46px; background: var(--elh-teal); color: #fff; font-size: 1rem; }
.pres-player__btn--main:hover:not(:disabled) { background: #009996; }
.pres-player__btn--main .fa-play { margin-left: 3px; }
.pres-player__info { flex: 1; min-width: 0; }
.pres-player__line { display: flex; align-items: baseline; gap: .5rem; font-size: .9rem; margin-bottom: .35rem; }
.pres-player__line strong { color: var(--elh-blue); flex: none; }
.pres-player__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--elh-ink); }
.pres-player__time { flex: none; font-size: .8rem; color: var(--elh-muted); font-variant-numeric: tabular-nums; }
.pres-player__progress { height: 4px; border-radius: 4px; background: #e3f6f5; overflow: hidden; }
.pres-player__progress > div { height: 100%; width: 0; background: var(--elh-teal); transition: width .25s linear; }
.pres-player__error { margin: .35rem 0 0; font-size: .82rem; color: var(--elh-danger); }
.pres-player__error[hidden] { display: none; }
.pres-player__auto { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .85rem; color: var(--elh-muted); flex: none; cursor: pointer; }
.pres-slide.is-playing { border-color: var(--elh-teal); box-shadow: 0 0 0 2px rgba(0, 172, 169, .25); }
@media (max-width: 767.98px) {
	.pres-player__inner { flex-wrap: wrap; gap: .5rem .75rem; padding: .6rem .75rem; }
	.pres-player__info { order: 3; flex-basis: 100%; }
	.pres-player__auto { margin-left: auto; }
	body.pres-player-open { padding-bottom: 120px; }
	body.pres-player-open .pres-actionbar { bottom: 120px; }
}

/* --- Aurkezpenak: errores por diapositiva ------------------------------------------ */
.pres-slide.has-error { border-color: #e8a29b; }
.pres-slide.has-error .pres-slide__text { border-color: #e8a29b; }
.pres-slide__alert .pres-slide__retry { padding: 0; margin: 0 0 0 .25rem; font-size: inherit; color: var(--elh-danger) !important; text-decoration: underline; text-transform: none; box-shadow: none; vertical-align: baseline; }
.pres-errors-note { margin: 0 0 0 auto; padding: .3rem .5rem; color: var(--elh-danger) !important; text-transform: none; box-shadow: none; font-size: .9rem; }
.pres-errors-note[hidden] { display: none; }

/* --- Aviso al abandonar la página ---------------------------------------------- */
.leave-modal .modal-content { border: 0; border-radius: 10px; box-shadow: 0 20px 50px rgba(29, 29, 27, .25); }
.leave-modal .modal-body { padding: 1.75rem 1.75rem .5rem; text-align: center; }
.leave-modal__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: .75rem;
	border-radius: 50%; background: var(--elh-warn-bg); color: #b07800; font-size: 1.3rem;
}
.leave-modal__title { font-weight: 600; color: var(--elh-ink); margin-bottom: .5rem; }
.leave-modal__message { color: var(--elh-muted); margin: 0; line-height: 1.55; }
.leave-modal__actions { justify-content: center; flex-wrap: wrap; gap: .5rem; border-top: 0; padding: 1rem 1.5rem 1.5rem; }
.leave-modal__actions .btn { margin: 0; text-transform: none; }
.leave-modal__actions .btn[hidden] { display: none; }
.leave-modal .btn.leave-modal__exit { color: var(--elh-danger) !important; box-shadow: none; text-decoration: underline; }
.pres-save-state { font-size: .82rem; color: var(--elh-muted); white-space: nowrap; }
.pres-save-state.is-error { color: var(--elh-danger); }
.pres-recent { margin: 0 0 1.5rem; }
.pres-recent__item.is-extra { display: none; }
.pres-recent.is-open .pres-recent__item.is-extra { display: flex; }
.pres-recent .btn.pres-recent__more { margin: .5rem 0 0; padding: .25rem 0; font-size: .88rem; font-weight: 500; text-transform: none; box-shadow: none; color: var(--elh-blue) !important; }
.pres-recent__title { font-size: 1rem; font-weight: 600; color: var(--elh-blue); margin-bottom: .25rem; }
.pres-recent__list { list-style: none; margin: .75rem 0 0; padding: 0; border: 1px solid var(--elh-line); border-radius: var(--elh-radius); background: #fff; }
.pres-recent__item { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; border-bottom: 1px solid #ecebe7; }
.pres-recent__item:last-child { border-bottom: 0; }
.pres-recent__item > i { color: #c43e1c; font-size: 1.3rem; }
.pres-recent__main { flex: 1; min-width: 0; }
.pres-recent__name { display: block; font-weight: 600; color: var(--elh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-recent__name:hover { color: var(--elh-blue); }
.pres-recent__meta { font-size: .8rem; color: var(--elh-muted); }
.pres-recent__status { font-size: .75rem; font-weight: 600; padding: .2em .6em; border-radius: 999px; background: #eeede9; color: var(--elh-muted); white-space: nowrap; }
.pres-recent__status.is-done { background: var(--elh-ok-bg); color: var(--elh-ok); }
.pres-recent__status.is-busy { background: #e3f6f5; color: var(--elh-teal-dark); }
.pres-recent__status.is-error { background: var(--elh-danger-bg); color: var(--elh-danger); }
.pres-recent__delete { margin: 0; padding: .3rem .5rem; color: var(--elh-muted) !important; box-shadow: none; }
.pres-recent__delete:hover { color: var(--elh-danger) !important; }

/* --- Diálogo propio (confirmaciones y avisos) ---------------------------------------- */
.tts-dialog .modal-content { border: 0; border-radius: 10px; box-shadow: 0 20px 50px rgba(29, 29, 27, .25); }
.tts-dialog .modal-body { padding: 1.75rem 1.75rem .5rem; text-align: center; }
.tts-dialog__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: .75rem;
	border-radius: 50%; background: #e8ecfb; color: var(--elh-blue); font-size: 1.25rem;
}
.tts-dialog[data-kind="danger"] .tts-dialog__icon, .tts-dialog[data-kind="error"] .tts-dialog__icon { background: var(--elh-danger-bg); color: var(--elh-danger); }
.tts-dialog[data-kind="warning"] .tts-dialog__icon { background: var(--elh-warn-bg); color: #b07800; }
.tts-dialog__title { font-weight: 600; color: var(--elh-ink); margin-bottom: .5rem; }
.tts-dialog__title[hidden] { display: none; }
.tts-dialog__message { color: var(--elh-muted); margin: 0; line-height: 1.55; white-space: pre-line; }
.tts-dialog__actions { justify-content: center; flex-wrap: wrap; gap: .5rem; border-top: 0; padding: 1rem 1.5rem 1.5rem; }
.tts-dialog__actions .btn { margin: 0; text-transform: none; min-width: 7rem; }
.tts-dialog__actions .btn[hidden] { display: none; }
.btn.btn-danger-solid { background: var(--elh-danger); color: #fff !important; border: 0; font-weight: 500; }
.btn.btn-danger-solid:hover { background: #8f1c13; }
.tts-toast {
	position: fixed; left: 50%; bottom: 1.5rem; z-index: 1200; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
	max-width: calc(100vw - 2rem); padding: .7rem 1.1rem; border-radius: 8px; background: #1f2a44; color: #fff; font-size: .92rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: opacity .2s ease, transform .2s ease;
}
.tts-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.tts-toast.is-ok i { color: #7fe0c4; }
.tts-toast.is-error i { color: #ffb1a8; }

/* Degradado de marca: azul -> turquesa claro (#00ACA9), el original */
.bg-gradient-elhuyar { background: linear-gradient(to right, #1A3AAB, #00ACA9); }

/* Página de información de una sección (feature_info.html): en elh_shell.css, común a TTS, Aditu y Elia */

/* Botón neutro (en MDB btn-outline-secondary es morado) */
.btn.btn-ghost {
	background: #fff; color: var(--elh-ink) !important; border: 1px solid var(--elh-line); box-shadow: none; text-transform: none;
}
.btn.btn-ghost:hover:not(:disabled) { background: #f4f4f1; border-color: #c9c7c0; }
.btn.btn-ghost:disabled { opacity: .5; }

/* --- Botones con fondo de color: texto blanco (tts.css los ponía en negro) -------- */
.btn.btn-elhuyar, .btn-elhuyar { color: #fff !important; font-weight: 500; }
.btn.btn-elhuyar:hover, .btn.btn-elhuyar:focus { background-color: #009996 !important; color: #fff !important; }
.btn.btn-elhuyar:disabled, .btn.btn-elhuyar.disabled { color: #fff !important; opacity: .55; }
.btn.btn-elhuyar i, .btn.btn-elhuyar .fas, #box_form #box-submit .fa-play { color: #fff !important; margin-left: 0; }
.bg-elhuyar { color: #fff !important; }

/* --- Qué leer en cada diapositiva ---------------------------------------- */
.read-mode__legend { font-size: .95rem; font-weight: 600; color: var(--elh-blue); margin-bottom: .6rem; }
.read-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.read-mode__option { margin: 0; cursor: pointer; }
.read-mode__option input { position: absolute; opacity: 0; }
.read-mode__option > span {
	display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .75rem .9rem;
	border: 1px solid var(--elh-line); border-radius: var(--elh-radius); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.read-mode__option i { color: var(--elh-teal); margin-bottom: .2rem; }
.read-mode__option strong { font-size: .92rem; color: var(--elh-ink); }
.read-mode__option small { color: var(--elh-muted); line-height: 1.35; }
.read-mode__option input:checked + span { border-color: var(--elh-teal); box-shadow: 0 0 0 2px rgba(0, 172, 169, .25); background: #f6fbfb; }
.read-mode__option input:focus-visible + span { outline: 2px solid var(--elh-blue); outline-offset: 2px; }
@media (max-width: 767.98px) { .read-mode { grid-template-columns: 1fr; } }
fieldset.tool-card__options { max-width: none; border: 0; padding: 0; margin-top: 1.5rem; }

/* --- Aurkezpenak: qué se lee en cada diapositiva --------------------------------- */
.pres-read { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.pres-read__label { font-size: .85rem; font-weight: 600; color: var(--elh-ink); }
.pres-read__opts { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--elh-line); border-radius: 999px; overflow: hidden; background: #fff; }
.pres-read__opt {
	display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .3rem .8rem; border: 0;
	border-right: 1px solid var(--elh-line); background: transparent; color: var(--elh-ink); font-size: .82rem; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.pres-read__opt:last-child { border-right: 0; }
.pres-read__opt i { color: var(--elh-teal); font-size: .8rem; }
.pres-read__opt:hover:not(:disabled):not(.is-active) { background: #f1f4fd; }
.pres-read__opt.is-active { background: var(--elh-blue); color: #fff; font-weight: 500; }
.pres-read__opt.is-active i { color: #fff; }
.pres-read__opt:disabled { color: #b4b2ab; cursor: not-allowed; }
.pres-read__opt:disabled i { color: #c9c7c0; }
.pres-read__opt[data-src="silent"].is-active { background: #6b6a65; }
.pres-slide__foot { display: flex; align-items: center; gap: .75rem; margin-top: .45rem; }
.pres-slide__state { flex: 1; color: var(--elh-muted); }
.pres-slide__state.is-edited { color: #8a5a00; }
.pres-slide__state.is-ocr { color: var(--elh-teal-dark); }
.pres-slide__foot .pres-play { margin: 0; padding: .3rem .8rem; font-size: .85rem; }
.pres-slide.is-edited .pres-slide__text { border-color: #e2b65a; }
.pres-applyall {
	display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; margin: -.25rem 0 1rem; padding: .75rem 1rem;
	background: #fff; border: 1px solid var(--elh-line); border-radius: var(--elh-radius);
}
.pres-applyall__label { font-size: .88rem; font-weight: 600; color: var(--elh-blue); }
.pres-applyall__hint { flex-basis: 100%; }

/* --- Formatos admitidos: un panel con una fila por tipo ------------------------- */
.formats { margin-top: 1.25rem; border: 1px solid var(--elh-line); border-radius: var(--elh-radius); background: #fcfcfb; }
.formats__title {
	margin: 0; padding: .6rem 1rem; font-size: .78rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--elh-muted); border-bottom: 1px solid var(--elh-line);
}
.formats__list { list-style: none; margin: 0; padding: 0; }
.formats__row {
	display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: .35rem 1rem; padding: .6rem 1rem;
	border-bottom: 1px solid #ecebe7;
}
.formats__row:last-child { border-bottom: 0; }
.formats__type { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; color: var(--elh-ink); }
.formats__type i { width: 1.2em; text-align: center; color: var(--elh-teal); font-size: 1.05rem; }
.formats__exts { display: flex; flex-wrap: wrap; gap: .3rem; }
.formats__exts .ext {
	display: inline-block; padding: .1rem .45rem; border-radius: 4px; background: #eef1fb; color: var(--elh-blue);
	font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.formats__note { font-size: .8rem; color: var(--elh-muted); margin-left: .35rem; align-self: center; }
.formats__note::before { content: "·"; margin-right: .5rem; }
@media (max-width: 575.98px) {
	.formats__row { grid-template-columns: 1fr; }
	.formats__note { margin-left: 0; }
	.pres-read__opt { padding: .3rem .6rem; }
}

/* --- Reproductor compacto (kutxa) ------------------------------------------------ */
.page-tool .box-result { padding: 1rem 1.25rem; }
.box-result__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; padding-left: calc(48px + 1rem); }
.box-result__foot .btn { margin: 0; text-transform: none; }
.tts-player { display: flex; align-items: center; gap: 1rem; }
.tts-player__play {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
	border: 0; border-radius: 50%; background: var(--elh-teal); color: #fff; font-size: 1rem; cursor: pointer;
	transition: background-color .15s ease, transform .1s ease;
}
.tts-player__play .fa-play { margin-left: 3px; }
.tts-player__play:hover { background: #009996; }
.tts-player__play:active { transform: scale(.96); }
.tts-player__play:focus-visible, .tts-player__wave:focus-visible { outline: 2px solid var(--elh-blue); outline-offset: 2px; }
.tts-player__wave { position: relative; flex: 1; min-width: 0; height: 56px; cursor: pointer; border-radius: 4px; }
.tts-player__wave canvas { display: block; }
.tts-player__loading { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #d7efee; overflow: hidden; }
.tts-player__loading::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--elh-teal); animation: tts-load 1s ease-in-out infinite; }
.tts-player__wave.is-ready .tts-player__loading { display: none; }
@keyframes tts-load { from { left: -30%; } to { left: 100%; } }
.tts-player__time { flex: none; min-width: 5.5em; text-align: right; font-size: .85rem; color: var(--elh-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
	.tts-player { gap: .65rem; }
	.tts-player__wave { height: 44px; }
	.box-result__foot { padding-left: 0; }
}

/* --- Aurkezpenak: miniatura ampliable y visor ---------------------------------- */
.pres-slide__thumb { cursor: zoom-in; transition: box-shadow .15s ease; }
.pres-slide__thumb:hover, .pres-slide__thumb:focus-visible { box-shadow: 0 0 0 3px rgba(0, 172, 169, .35); outline: none; }
.pres-slide__zoom {
	position: absolute; right: .4rem; bottom: .4rem; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%; background: rgba(29, 29, 27, .7); color: #fff; font-size: .8rem;
	opacity: 0; transition: opacity .15s ease;
}
.pres-slide__thumb:hover .pres-slide__zoom, .pres-slide__thumb:focus-visible .pres-slide__zoom { opacity: 1; }
body.pres-viewer-open { overflow: hidden; }
.pres-viewer {
	position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; gap: 1rem;
	padding: 3rem 1rem 1.5rem; background: rgba(16, 18, 26, .97);
}
.pres-viewer[hidden] { display: none; }
.pres-viewer__figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(1400px, 100%); min-width: 0; }
.pres-viewer__figure img {
	display: block; max-width: 100%; max-height: calc(100vh - 13rem); object-fit: contain;
	background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
.pres-viewer figcaption { width: 100%; max-width: 900px; margin-top: .9rem; color: #e9e8e4; font-size: .9rem; text-align: center; }
.pres-viewer__count { font-weight: 600; margin-right: .75rem; }
.pres-viewer__source { color: #9fdcda; }
.pres-viewer__text {
	display: block; margin-top: .4rem; max-height: 4.8em; overflow-y: auto; color: #c9c7c0; line-height: 1.6; text-align: left;
}
.pres-viewer__nav, .pres-viewer__close {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; cursor: pointer;
	transition: background-color .15s ease;
}
.pres-viewer__nav:hover, .pres-viewer__close:hover { background: rgba(255, 255, 255, .25); }
.pres-viewer__nav:focus-visible, .pres-viewer__close:focus-visible { outline: 2px solid #9fdcda; outline-offset: 2px; }
.pres-viewer__nav[hidden] { display: none; }
.pres-viewer__close { position: absolute; top: .75rem; right: .75rem; width: 40px; height: 40px; }
@media (max-width: 767.98px) {
	.pres-viewer { padding: 3.5rem .5rem 1rem; gap: .25rem; }
	.pres-viewer__nav { position: absolute; bottom: 1rem; width: 42px; height: 42px; }
	.pres-viewer__prev { left: 1rem; }
	.pres-viewer__next { right: 1rem; }
	.pres-viewer__figure img { max-height: calc(100vh - 14rem); }
	.pres-viewer figcaption { padding: 0 3.5rem; }
	.pres-slide__zoom { opacity: 1; }
}

/* Textos largos: el cuadro crece hasta 480 px y después tiene su propio scroll (una hoja antigua ponía overflow: hidden) */
.pres-slide__text { overflow-y: auto !important; max-height: 480px; }

/* Bootstrap 4 pinta un contorno cuadrado en cualquier botón al hacer clic: solo se deja para el teclado */
.page-tool button:focus:not(:focus-visible), .page-tool .btn:focus:not(:focus-visible) { outline: none; }
.pres-read__opt:focus { outline: none; }
.pres-read__opt:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--elh-teal); position: relative; z-index: 1; }
.pres-read__opt:first-child:focus-visible { border-radius: 999px 0 0 999px; }
.pres-read__opt:last-child:focus-visible { border-radius: 0 999px 999px 0; }
.pres-slide__alert { margin: .4rem 0 0; padding: .4rem .6rem; border-radius: 4px; background: var(--elh-danger-bg); color: var(--elh-danger); }
.pres-slide__alert[hidden] { display: none; }

/* --- Aurkezpenak: reproductor fijo de la escucha previa ------------------------------- */
.pres-player {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
	background: #fff; border-top: 1px solid var(--elh-line); box-shadow: 0 -6px 24px rgba(29, 29, 27, .1);
}
.pres-player[hidden] { display: none; }
body.pres-player-open { padding-bottom: 84px; }
body.pres-player-open .pres-actionbar { bottom: 84px; }
.pres-player__inner { display: flex; align-items: center; gap: 1rem; max-width: 1140px; margin: 0 auto; padding: .7rem 1rem; }
.pres-player__controls { display: flex; align-items: center; gap: .35rem; flex: none; }
.pres-player__btn {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; flex: none;
	border: 0; border-radius: 50%; background: transparent; color: var(--elh-blue); cursor: pointer; transition: background-color .15s ease;
}
.pres-player__btn:hover:not(:disabled) { background: #f1f4fd; }
.pres-player__btn:disabled { color: #c9c7c0; cursor: default; }
.pres-player__btn:focus:not(:focus-visible) { outline: none; }
.pres-player__btn--main { width: 46px; height: 46px; background: var(--elh-teal); color: #fff; font-size: 1rem; }
.pres-player__btn--main:hover:not(:disabled) { background: #009996; }
.pres-player__btn--main .fa-play { margin-left: 3px; }
.pres-player__info { flex: 1; min-width: 0; }
.pres-player__line { display: flex; align-items: baseline; gap: .5rem; font-size: .9rem; margin-bottom: .35rem; }
.pres-player__line strong { color: var(--elh-blue); flex: none; }
.pres-player__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--elh-ink); }
.pres-player__time { flex: none; font-size: .8rem; color: var(--elh-muted); font-variant-numeric: tabular-nums; }
.pres-player__progress { height: 4px; border-radius: 4px; background: #e3f6f5; overflow: hidden; }
.pres-player__progress > div { height: 100%; width: 0; background: var(--elh-teal); transition: width .25s linear; }
.pres-player__error { margin: .35rem 0 0; font-size: .82rem; color: var(--elh-danger); }
.pres-player__error[hidden] { display: none; }
.pres-player__auto { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .85rem; color: var(--elh-muted); flex: none; cursor: pointer; }
.pres-slide.is-playing { border-color: var(--elh-teal); box-shadow: 0 0 0 2px rgba(0, 172, 169, .25); }
@media (max-width: 767.98px) {
	.pres-player__inner { flex-wrap: wrap; gap: .5rem .75rem; padding: .6rem .75rem; }
	.pres-player__info { order: 3; flex-basis: 100%; }
	.pres-player__auto { margin-left: auto; }
	body.pres-player-open { padding-bottom: 120px; }
	body.pres-player-open .pres-actionbar { bottom: 120px; }
}

/* --- Aurkezpenak: errores por diapositiva ------------------------------------------ */
.pres-slide.has-error { border-color: #e8a29b; }
.pres-slide.has-error .pres-slide__text { border-color: #e8a29b; }
.pres-slide__alert .pres-slide__retry { padding: 0; margin: 0 0 0 .25rem; font-size: inherit; color: var(--elh-danger) !important; text-decoration: underline; text-transform: none; box-shadow: none; vertical-align: baseline; }
.pres-errors-note { margin: 0 0 0 auto; padding: .3rem .5rem; color: var(--elh-danger) !important; text-transform: none; box-shadow: none; font-size: .9rem; }
.pres-errors-note[hidden] { display: none; }

/* --- Aviso al abandonar la página ---------------------------------------------- */
.leave-modal .modal-content { border: 0; border-radius: 10px; box-shadow: 0 20px 50px rgba(29, 29, 27, .25); }
.leave-modal .modal-body { padding: 1.75rem 1.75rem .5rem; text-align: center; }
.leave-modal__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: .75rem;
	border-radius: 50%; background: var(--elh-warn-bg); color: #b07800; font-size: 1.3rem;
}
.leave-modal__title { font-weight: 600; color: var(--elh-ink); margin-bottom: .5rem; }
.leave-modal__message { color: var(--elh-muted); margin: 0; line-height: 1.55; }
.leave-modal__actions { justify-content: center; flex-wrap: wrap; gap: .5rem; border-top: 0; padding: 1rem 1.5rem 1.5rem; }
.leave-modal__actions .btn { margin: 0; text-transform: none; }
.leave-modal__actions .btn[hidden] { display: none; }
.leave-modal .btn.leave-modal__exit { color: var(--elh-danger) !important; box-shadow: none; text-decoration: underline; }
.pres-save-state { font-size: .82rem; color: var(--elh-muted); white-space: nowrap; }
.pres-save-state.is-error { color: var(--elh-danger); }
.pres-recent { margin: 0 0 1.5rem; }
.pres-recent__item.is-extra { display: none; }
.pres-recent.is-open .pres-recent__item.is-extra { display: flex; }
.pres-recent .btn.pres-recent__more { margin: .5rem 0 0; padding: .25rem 0; font-size: .88rem; font-weight: 500; text-transform: none; box-shadow: none; color: var(--elh-blue) !important; }
.pres-recent__title { font-size: 1rem; font-weight: 600; color: var(--elh-blue); margin-bottom: .25rem; }
.pres-recent__list { list-style: none; margin: .75rem 0 0; padding: 0; border: 1px solid var(--elh-line); border-radius: var(--elh-radius); background: #fff; }
.pres-recent__item { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; border-bottom: 1px solid #ecebe7; }
.pres-recent__item:last-child { border-bottom: 0; }
.pres-recent__item > i { color: #c43e1c; font-size: 1.3rem; }
.pres-recent__main { flex: 1; min-width: 0; }
.pres-recent__name { display: block; font-weight: 600; color: var(--elh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-recent__name:hover { color: var(--elh-blue); }
.pres-recent__meta { font-size: .8rem; color: var(--elh-muted); }
.pres-recent__status { font-size: .75rem; font-weight: 600; padding: .2em .6em; border-radius: 999px; background: #eeede9; color: var(--elh-muted); white-space: nowrap; }
.pres-recent__status.is-done { background: var(--elh-ok-bg); color: var(--elh-ok); }
.pres-recent__status.is-busy { background: #e3f6f5; color: var(--elh-teal-dark); }
.pres-recent__status.is-error { background: var(--elh-danger-bg); color: var(--elh-danger); }
.pres-recent__delete { margin: 0; padding: .3rem .5rem; color: var(--elh-muted) !important; box-shadow: none; }
.pres-recent__delete:hover { color: var(--elh-danger) !important; }

/* --- Diálogo propio (confirmaciones y avisos) ---------------------------------------- */
.tts-dialog .modal-content { border: 0; border-radius: 10px; box-shadow: 0 20px 50px rgba(29, 29, 27, .25); }
.tts-dialog .modal-body { padding: 1.75rem 1.75rem .5rem; text-align: center; }
.tts-dialog__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: .75rem;
	border-radius: 50%; background: #e8ecfb; color: var(--elh-blue); font-size: 1.25rem;
}
.tts-dialog[data-kind="danger"] .tts-dialog__icon, .tts-dialog[data-kind="error"] .tts-dialog__icon { background: var(--elh-danger-bg); color: var(--elh-danger); }
.tts-dialog[data-kind="warning"] .tts-dialog__icon { background: var(--elh-warn-bg); color: #b07800; }
.tts-dialog__title { font-weight: 600; color: var(--elh-ink); margin-bottom: .5rem; }
.tts-dialog__title[hidden] { display: none; }
.tts-dialog__message { color: var(--elh-muted); margin: 0; line-height: 1.55; white-space: pre-line; }
.tts-dialog__actions { justify-content: center; flex-wrap: wrap; gap: .5rem; border-top: 0; padding: 1rem 1.5rem 1.5rem; }
.tts-dialog__actions .btn { margin: 0; text-transform: none; min-width: 7rem; }
.tts-dialog__actions .btn[hidden] { display: none; }
.btn.btn-danger-solid { background: var(--elh-danger); color: #fff !important; border: 0; font-weight: 500; }
.btn.btn-danger-solid:hover { background: #8f1c13; }
.tts-toast {
	position: fixed; left: 50%; bottom: 1.5rem; z-index: 1200; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
	max-width: calc(100vw - 2rem); padding: .7rem 1.1rem; border-radius: 8px; background: #1f2a44; color: #fff; font-size: .92rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: opacity .2s ease, transform .2s ease;
}
.tts-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.tts-toast.is-ok i { color: #7fe0c4; }
.tts-toast.is-error i { color: #ffb1a8; }

/* Degradado de marca: azul -> turquesa claro (#00ACA9), el original */
.bg-gradient-elhuyar { background: linear-gradient(to right, #1A3AAB, #00ACA9); }

/* Página de información de una sección (feature_info.html): en elh_shell.css */

/* Inicio de sesión (.auth-card): en elh_shell.css, común a TTS, Aditu y Elia */
.feature-info__actions .fi-btn-main i { color: var(--elh-blue); }

/* Registro (.auth-card--wide, .auth-type, .auth-row...): en elh_shell.css, común a TTS, Aditu y Elia */

/* --- Estadísticas --- */
.stats-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.5rem; }
.stats-filter label { margin: 0; font-weight: 600; }
.stats-filter select { max-width: 320px; }
.stats-filter .btn { margin: 0; }
.stats-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 991.98px) { .stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats-card { background: #fff; border: 1px solid var(--elh-line); border-left: 4px solid var(--elh-blue); border-radius: 8px; padding: 1rem 1.25rem; }
.stats-card--muted { border-left-color: var(--elh-teal-dark); }
.stats-card__label { display: block; color: var(--elh-muted); font-size: .85rem; }
.stats-card__value { display: block; font-size: 1.6rem; color: var(--elh-ink); font-weight: 700; line-height: 1.3; }
.stats-block { margin-bottom: 1.25rem; }
.stats-block__title { font-size: 1.05rem; font-weight: 700; color: var(--elh-blue); margin: 0 0 1rem; }
.stats-chart { position: relative; height: 230px; }
.stats-chart--bar { height: 260px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.stats-grid .stats-block { margin-bottom: 0; }
.stats-grid + .stats-block { margin-top: 1.25rem; }
@media (max-width: 1199.98px) { .stats-grid { grid-template-columns: 1fr; } }
.stats-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stats-pair figure { margin: 0; }
.stats-pair figcaption { text-align: center; font-size: .85rem; color: var(--elh-muted); margin-bottom: .25rem; }
.stats-empty { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; color: var(--elh-muted); font-size: .92rem; background: #f7f6f3; border-radius: 6px; text-align: center; padding: 1rem; }
.stats-table { font-size: .9rem; }
.stats-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.stats-page section.tool-card { padding: 1.25rem 1.5rem; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
@media (max-width: 575.98px) { .stats-grid { grid-template-columns: 1fr; } .stats-pair { grid-template-columns: 1fr; } }
.stats-grid > *, .stats-pair > *, .stats-chart { min-width: 0; }
.stats-chart canvas { max-width: 100%; }
.auth-card--single { grid-template-columns: 1fr; max-width: 480px; }
.auth-card__lead { color: var(--elh-muted); margin-bottom: 1.25rem; }
.auth-card--single .auth-done__icon { display: flex; margin: 0 auto 1rem; }
.auth-done__icon--warn { background: #fff6e0; color: #8a5a00; }
.auth-submit + .auth-register { margin-top: .75rem !important; }

/* --- Perfil: menú lateral y tarjeta --- */
.profile-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.profile-layout--single { grid-template-columns: 1fr; }
.profile-nav { position: sticky; top: calc(var(--elh-sticky-top, 0px) + 1rem); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--elh-line); border-radius: 10px; padding: .5rem; }
.profile-nav__link { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border-radius: 6px; color: var(--elh-ink) !important; text-decoration: none !important; font-size: .95rem; }
.profile-nav__link i { color: var(--elh-muted); }
.profile-nav__link:hover, .profile-nav__link:focus { background: #f2f4fb; }
.profile-nav__link.active { background: #eef1fc; color: var(--elh-blue) !important; font-weight: 600; box-shadow: inset 3px 0 0 var(--elh-teal); }
.profile-nav__link.active i { color: var(--elh-blue); }
@media (max-width: 767.98px) {
	.profile-layout { grid-template-columns: 1fr; }
	.profile-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
	.profile-nav__link { white-space: nowrap; font-size: .88rem; }
	.profile-nav__link.active { box-shadow: inset 0 -3px 0 var(--elh-teal); }
}
.page-tool section.profile-main { padding: 1.75rem 2rem; }
@media (max-width: 575.98px) { .page-tool section.profile-main { padding: 1.25rem 1rem; } }
.profile-main > h4:first-child, .profile-main > div > h4:first-child { font-size: 1.3rem; font-weight: 700; color: var(--elh-blue) !important; margin-bottom: 1.5rem !important; }
.profile-main > h4:first-child i { color: var(--elh-teal-dark); }

/* --- Formularios antiguos (MDB .md-form) con el estilo nuevo: etiqueta encima y campo con borde --- */
.tts-form .md-form { display: flex; flex-direction: column; margin: 0 0 1.1rem !important; position: relative; }
.tts-form .md-form > label, .tts-form .md-form > .label {
	order: -1; position: static !important; transform: none !important; font-size: .9rem !important; font-weight: 600;
	color: var(--elh-ink) !important; margin: 0 0 .35rem !important; pointer-events: auto; transition: none !important;
}
.tts-form .md-form .form-control, .tts-form select.form-control {
	height: 44px; border: 1px solid #c9c7c1 !important; border-radius: 6px !important; padding: .45rem .75rem !important;
	background: #fff !important; box-shadow: none !important; margin: 0 !important; font-size: 1rem; color: var(--elh-ink);
}
.tts-form .md-form textarea.form-control { height: auto; min-height: 96px; }
.tts-form .md-form .form-control:focus, .tts-form select.form-control:focus { border-color: var(--elh-teal-dark) !important; box-shadow: 0 0 0 3px rgba(0,172,169,.2) !important; }
.tts-form .md-form.invalid .form-control { border-color: var(--elh-danger) !important; }
.tts-form .md-form .form-text.text-danger, .tts-form small.text-danger { color: var(--elh-danger) !important; font-weight: 600; font-size: .85rem; margin-top: .3rem; }
.tts-form .form-row { margin-bottom: 0; }
.tts-form .btn { text-transform: none; font-size: .97rem; }
.tts-form .btn-elhuyar-dark, .tts-form .btn-elhuyar { background-color: #00ACA9 !important; color: #fff !important; }
.tts-form .btn-elhuyar-dark:hover, .tts-form .btn-elhuyar:hover { background-color: #009996 !important; }
.tts-form .alert.bg-elhuyar { background: var(--elh-ok-bg) !important; color: var(--elh-ok) !important; border: 1px solid #b7dfc7; }
.tts-form .table { font-size: .93rem; }
.tts-form .table thead th { border-top: 0; color: var(--elh-muted); font-weight: 600; font-size: .85rem; }
.tts-form .md-form .form-control, .tts-form .md-form input.form-control, .tts-form select.form-control { width: 100% !important; box-sizing: border-box !important; height: 44px !important; }
.tts-form .md-form textarea.form-control { height: auto !important; }
.tts-form .form-row { margin-left: -.5rem; margin-right: -.5rem; }
.tts-form .form-row > [class*="col"] { padding-left: .5rem; padding-right: .5rem; }
.tts-form .pt-5 { padding-top: 1rem !important; }
.tts-form #save, .tts-form .btn-save { margin-left: 0; }

/* --- Flujo de compra --- */
.page-tool section.orders-card { padding: 1.75rem 2rem; }
@media (max-width: 575.98px) { .page-tool section.orders-card { padding: 1.25rem 1rem; } }
.order-steps { list-style: none; display: flex; justify-content: center; gap: .5rem 2.5rem; flex-wrap: wrap; padding: 0; margin: 0 0 2rem; }
.order-steps__item { display: flex; align-items: center; gap: .6rem; color: var(--elh-muted); font-size: .95rem; }
.order-steps__dot { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e4e3df; color: var(--elh-muted); font-weight: 700; }
.order-steps__item.is-current { color: var(--elh-ink); font-weight: 600; }
.order-steps__item.is-current .order-steps__dot { background: var(--elh-blue); color: #fff; }
.order-steps__item.is-done .order-steps__dot { background: #00ACA9; color: #fff; }
.buy-notice { margin-bottom: 1.5rem; }
.buy-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 991.98px) { .buy-plans { grid-template-columns: 1fr; } }
.buy-plan { display: flex; flex-direction: column; border: 1px solid var(--elh-line); border-radius: 10px; padding: 1.5rem; background: #fff; }
.buy-plan--featured { border-color: var(--elh-blue); box-shadow: 0 6px 18px rgba(26,58,171,.10); }
.buy-plan__name { font-size: 1.2rem; font-weight: 700; color: var(--elh-blue); margin: 0 0 .75rem; }
.buy-plan__price { font-size: 1rem; color: var(--elh-ink); margin: 0; }
.buy-plan__price strong { font-size: 1.9rem; }
.buy-plan__amount { color: var(--elh-ink); margin: .25rem 0 .25rem; }
.buy-plan__note { color: var(--elh-muted); font-style: italic; font-size: .9rem; }
.buy-plan__list { list-style: none; padding: 0; margin: .5rem 0 1.25rem; flex: 1; }
.buy-plan__list li { display: flex; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid #f0efeb; font-size: .93rem; }
.buy-plan__list .is-yes i { color: var(--elh-ok); }
.buy-plan__list .is-no { color: var(--elh-muted); }
.buy-plan__list .is-no i { color: var(--elh-danger); }
.buy-plan .btn { margin: auto 0 0 !important; align-self: stretch; }
.buy-plan.is-disabled .buy-plan__name, .buy-plan.is-disabled .buy-plan__price { color: var(--elh-muted); }
.buy-plan .btn[disabled] { background: #c9c7c1 !important; cursor: not-allowed; }
.orders-page .orders-card > h4:first-child { display: none; }

/* --- Zero-shot kutxa --- */
.zs-settings { display: grid; grid-template-columns: 1fr 2fr 140px; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 767.98px) { .zs-settings { grid-template-columns: 1fr; } }
.zs-field > label:first-child { display: block; font-size: .9rem; font-weight: 600; color: var(--elh-ink); margin-bottom: .35rem; }
.zs-field .form-control { height: 44px; border: 1px solid #c9c7c1 !important; border-radius: 6px !important; box-shadow: none !important; padding: .4rem .7rem; }
.zs-file { display: flex; align-items: center; gap: .65rem; min-height: 44px; border: 1px dashed #a9a7a1; border-radius: 6px; padding: .4rem .5rem .4rem .8rem; cursor: pointer; background: #fafaf8; margin: 0; }
.zs-file:hover { border-color: var(--elh-teal-dark); background: #f2fbfb; }
.zs-file i { color: var(--elh-teal-dark); }
.zs-file span:not(.zs-file__btn) { flex: 1; color: var(--elh-muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zs-file__btn { background: #fff; border: 1px solid var(--elh-line); border-radius: 4px; padding: .25rem .7rem; font-size: .88rem; color: var(--elh-blue); }
.zs-file__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.zs-file__input:focus-visible + small, .zs-field--file:focus-within .zs-file { outline: 2px solid var(--elh-teal); outline-offset: 2px; }

/* --- Páginas de error --- */

/* --- Accesibilidad (el enlace "Joan edukira" está en elh_shell.css) --- */
/* Foco visible con teclado en toda la web (MDB/Bootstrap lo quitaban en botones y enlaces) */
a:focus-visible, button:focus-visible, .btn:focus-visible, [role="button"]:focus-visible, summary:focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible, select:focus-visible {
	outline: 3px solid var(--elh-teal) !important; outline-offset: 2px !important; box-shadow: none;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* Botones y fondos de marca: el turquesa claro original (#00ACA9); el texto pequeño turquesa sigue en el oscuro (#00807e) para que se lea */
body.site-body .btn-elhuyar, body.site-body .bg-elhuyar { background-color: #00ACA9 !important; color: #fff !important; }
body.site-body .btn-elhuyar:hover, body.site-body .btn-elhuyar:focus { background-color: #009996 !important; }
body.site-body .text-elhuyar, body.site-body a.text-elhuyar { color: #00807e !important; }
body.site-body .elhuyar-select .header { color: #00807e; }
body.site-body .alert a, body.site-body .alert-link { color: #0b5560 !important; text-decoration: underline; }
body.site-body .pres-recent__name { color: #00807e; }
body.site-body .btn[disabled], body.site-body .btn.disabled { background: #e4e3df !important; color: #4a4945 !important; }
body.site-body a.pres-recent__name { color: #00807e !important; }

/* --- Ahoskera-hiztegia --- */
.pron-form { background: #f7f6f3; border-radius: 8px; padding: 1rem 1.1rem .8rem; margin-bottom: 1.75rem; }
.pron-list__title { font-size: 1.05rem; font-weight: 700; color: var(--elh-ink); margin-bottom: .75rem; }

/* --- Escuchar la voz antes de elegirla --- */
.tts-voice-pick { display: flex; align-items: center; gap: .4rem; width: 100%; }
.tts-voice-pick > select { flex: 1 1 auto; min-width: 0; }
.tts-voice-preview {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #c3cbe6; background: #fff;
	color: var(--elh-blue); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; cursor: pointer; padding: 0;
}
.tts-voice-preview .fa-play { margin-left: 2px; }
.tts-voice-preview:hover, .tts-voice-preview:focus { background: #eef1fc; border-color: var(--elh-blue); }
.tts-voice-preview.is-playing { background: var(--elh-blue); color: #fff; border-color: var(--elh-blue); }
.tts-voice-preview.is-loading { opacity: .6; cursor: progress; }
.tts-voice-preview:focus:not(:focus-visible) { outline: none !important; box-shadow: none; }

/* --- Kutxa: azken audioak --- */
.box-history { margin-top: 1.5rem; }
.box-history__title { font-size: 1.05rem; font-weight: 700; color: var(--elh-blue); margin: 0 0 .25rem; }
.box-history__list { list-style: none; padding: 0; margin: .75rem 0 0; border: 1px solid var(--elh-line); border-radius: 6px; background: #fff; }
.box-history__item { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; border-bottom: 1px solid #f0efeb; }
.box-history__item:last-child { border-bottom: 0; }
.box-history__play { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e6f6f6; color: #00807e; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.box-history__play .fa-play { margin-left: 2px; }
.box-history__play:hover, .box-history__play:focus { background: #d2efee; }
.box-history__play.is-playing { background: #00ACA9; color: #fff; }
.box-history__body { flex: 1 1 auto; min-width: 0; }
.box-history__text { margin: 0; color: var(--elh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box-history__meta { margin: .1rem 0 0; font-size: .8rem; color: var(--elh-muted); }
.box-history__actions { flex: 0 0 auto; display: flex; gap: .25rem; }
.box-history__actions .btn { margin: 0 !important; }
@media (max-width: 575.98px) { .box-history__item { flex-wrap: wrap; } .box-history__actions { width: 100%; justify-content: flex-end; } }
.page-tool .box-history__title, .box-history__title { font-size: 1.05rem !important; }

/* --- Kutxa: etenaldiak eta abiadura --- */
.box-marks { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: .25rem 0 .5rem; }
.box-marks .btn { margin: 0 !important; text-transform: none; }
.box-marks .dropdown-item { font-size: .92rem; }
.box-marks__hint { margin-left: .25rem; }
.box-marks__hint.is-warn { color: var(--elh-danger) !important; font-weight: 600; }

/* --- Kontsumoa --- */
.cons-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.cons-table-wrap { margin-top: .75rem; font-size: .92rem; }
.cons-table-wrap summary { cursor: pointer; color: var(--elh-blue); font-weight: 600; }
.cons-alert__row { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.cons-alert__row .md-form { width: 220px; }
.cons-alert__row .btn { margin: 0 0 .1rem !important; }

/* --- Azpitituluak --- */
.page-tool section.sub-form, .page-tool form.sub-form { padding: 1.5rem 1.75rem; }
.sub-form__voice { margin-top: 1rem; }
.page-tool section.sub-result { padding: 1.5rem 1.75rem; }
.sub-result__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sub-result__head .btn { margin: 0 !important; text-transform: none; }
.sub-result__title { font-size: 1.15rem; font-weight: 700; color: var(--elh-blue); margin: 0 0 .2rem; }
.sub-result__title i { color: var(--elh-ok); }
.sub-warnings { margin-top: 1rem; }
.sub-warnings summary { cursor: pointer; color: #8a5a00; font-weight: 600; }

/* --- Header con 6 secciones: se compacta por pasos para que quepa sin cortar el menú de usuario --- */
@media (max-width: 1599.98px) {
	#mainNav.elh-header .nav-sections .nav-link { padding-left: .6rem !important; padding-right: .6rem !important; }
	#mainNav.elh-header .hdr-credit__unit { display: none; }
	#mainNav.elh-header { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}
@media (max-width: 1439.98px) {   /* el nombre del usuario lo quita elh_navfit.js solo si no cabe */
	#mainNav.elh-header .nav-sections .nav-link { padding-left: .5rem !important; padding-right: .5rem !important; }
}
@media (min-width: 1200px) and (max-width: 1279.98px) {
	#mainNav.elh-header .nav-sections .nav-link { font-size: .9rem; padding-left: .4rem !important; padding-right: .4rem !important; }
}

/* --- Perfil: cabecera con botón y tarjetas de suscripciones/créditos con el estilo común --- */
.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.profile-head h4 { margin: 0 !important; font-size: 1.3rem; font-weight: 700; color: var(--elh-blue) !important; }
.profile-head h4 i { color: var(--elh-teal-dark); }
.profile-head .btn { margin: 0 !important; }
.profile-main .subscription_card { background: #fff !important; border: 1px solid var(--elh-line) !important; border-radius: 8px !important; }
.subscription_card__name { font-size: 1.05rem; font-weight: 700; color: var(--elh-blue); margin: 0 0 .25rem; }
.profile-main h4 { color: var(--elh-blue) !important; }

/* --- Enlace al ahoskera-hiztegia desde las herramientas --- */
.pron-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--elh-blue) !important; white-space: nowrap; }
.pron-link i { color: var(--elh-teal-dark); }
.pron-link:hover { text-decoration: underline; }
.pron-link__count { color: var(--elh-muted); font-size: .8rem; }
.box-marks.is-locked .btn[disabled] { opacity: .55; background: #f7f6f3 !important; color: var(--elh-muted) !important; cursor: not-allowed; }
.box-marks__locked { color: var(--elh-muted); display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.box-marks__locked a { color: var(--elh-blue); font-weight: 600; }
.box-marks .pron-link { margin-left: .25rem; }
.tool-links { display: flex; justify-content: flex-end; gap: 1rem; margin-top: .5rem; }
body.site-body .box-marks__locked a { color: #1A3AAB !important; }


/* Barra común en las herramientas: casilla para aplicar los hiztegiak, justo bajo el título. */
.pron-tool-bar { padding: .85rem 1.1rem; margin: 0 0 1.5rem; background: var(--elh-surface); border: 1px solid var(--elh-line); border-radius: var(--elh-radius); }
.pron-tool-bar[hidden] { display: none !important; }   /* sin sesión: los glosarios no se pueden usar */
.pron-tool-bar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pron-tool-bar__toggle { display: inline-flex; align-items: center; gap: .65rem; margin: 0; color: var(--elh-ink); font-size: .9rem; cursor: pointer; }
.pron-tool-bar__toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--elh-teal-dark); flex-shrink: 0; }
.pron-tool-bar__toggle:has(input:disabled) { color: var(--elh-muted); cursor: default; }
.pron-tool-bar__picks { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; margin: .75rem 0 0; padding: .75rem 0 0 calc(18px + .65rem); border: 0; border-top: 1px solid var(--elh-line); }
.pron-tool-bar__picks[hidden] { display: none; }
.pron-pick { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .4rem .75rem; border: 1px solid var(--elh-line); border-radius: 999px; font-size: .88rem; color: var(--elh-ink); cursor: pointer; }
.pron-pick:has(input:checked) { border-color: var(--elh-teal-dark); background: #eef7f6; }
.pron-pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--elh-teal-dark); }
.pron-pick__meta { color: var(--elh-muted); font-size: .78rem; }
.pron-pick[hidden], .pron-tool-bar__none[hidden] { display: none; }
.pron-tool-bar__none { margin: 0; padding: .4rem 0; color: var(--elh-muted); font-size: .85rem; }
.pron-tool-bar__picks:disabled .pron-pick { cursor: default; opacity: .7; }

/* --- Página de ahoskera-hiztegiak: misma estructura que el perfil (menú lateral + tarjeta) --- */
.pron-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.pron-workspace--empty { grid-template-columns: minmax(0, 740px); justify-content: center; }
.pron-workspace .tool-card { margin-bottom: 0; }
.pron-page .btn { text-transform: none; box-shadow: none; }

/* Lista de hiztegiak, como .profile-nav */
.page-tool aside.pron-library { position: sticky; top: calc(var(--elh-sticky-top, 0px) + 1rem); padding: .5rem; border-radius: 10px; }
.pron-library__header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .55rem .8rem .45rem; }
.pron-library__header h3 { margin: 0; font-size: .78rem !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--elh-muted); }
.pron-library__total { color: var(--elh-muted); font-size: .8rem; }
.pron-library__list { display: flex; flex-direction: column; }
body.site-body a.pron-dictionary { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: 6px; color: var(--elh-ink) !important; text-decoration: none !important; }
body.site-body a.pron-dictionary:hover, body.site-body a.pron-dictionary:focus { background: #f2f4fb; }
body.site-body a.pron-dictionary.is-selected { background: #eef1fc; color: var(--elh-blue) !important; box-shadow: inset 3px 0 0 var(--elh-teal); }
.pron-dictionary__icon { color: var(--elh-muted); width: 1.15em; text-align: center; }
.pron-dictionary.is-selected .pron-dictionary__icon { color: var(--elh-blue); }
.pron-dictionary__body { min-width: 0; flex: 1; }
.pron-dictionary__body strong { display: block; font-size: .95rem; font-weight: 400; overflow-wrap: anywhere; }
.pron-dictionary.is-selected .pron-dictionary__body strong { font-weight: 600; }
.pron-dictionary__body > span { display: block; font-size: .78rem; color: var(--elh-muted); margin-top: .1rem; }
.page-tool .btn.pron-new-button { display: flex; align-items: center; justify-content: center; gap: .5rem; width: calc(100% - .5rem); margin: .5rem .25rem .25rem; padding: .6rem 1rem; border: 1px dashed #c9c7c1; border-radius: 6px; background: transparent; color: var(--elh-teal-dark) !important; font-weight: 600; font-size: .9rem; }
.page-tool .btn.pron-new-button:hover { background: #f2f4fb; border-color: var(--elh-teal-dark); }
.pron-library__help { color: var(--elh-muted); font-size: .8rem; line-height: 1.55; margin: .5rem .8rem .6rem; }

/* Tarjeta principal, como .profile-main */
.page-tool section.pron-editor { min-width: 0; padding: 1.75rem 2rem; }
.pron-editor h3 { color: var(--elh-blue); font-weight: 700; font-size: 1.3rem !important; margin: 0; overflow-wrap: anywhere; }
.pron-editor h3 > i { color: var(--elh-teal-dark); margin-right: .45rem; }
.pron-editor__head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: 1.5rem; }
.pron-chip { display: inline-block; padding: .2em .7em; border-radius: 999px; background: #e8ecfb; color: var(--elh-blue); font-size: .78rem; font-weight: 600; }
.pron-editor__tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.pron-editor__tools form { margin: 0; }
.pron-editor__tools .btn { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .4rem .85rem; font-size: .88rem; }
.pron-editor__tools .btn i { color: var(--elh-muted); font-size: .85em; }
.page-tool .btn.btn-ghost.pron-danger, .page-tool .btn.btn-ghost.pron-danger i { color: var(--elh-danger) !important; }
.page-tool .btn.btn-ghost.pron-danger:hover { background: var(--elh-danger-bg); border-color: #f1b7b0; }
.pron-rename { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin: -.5rem 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--elh-line); border-radius: 6px; }
.pron-rename[hidden] { display: none; }
.pron-rename > div:first-of-type { flex: 1 1 16rem; min-width: 0; }
.pron-api-code { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: -.75rem 0 1.5rem; font-size: .85rem; color: var(--elh-muted); }
.pron-api-code code { padding: .15rem .45rem; border-radius: 4px; background: #f4f4f1; color: var(--elh-ink); font-size: .85rem; user-select: all; }
.pron-api-code .btn { display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .2rem .6rem; font-size: .8rem; }
.pron-api-code .pron-hint { flex-basis: 100%; margin: 0; }
.pron-conflict { display: inline-block; margin-left: .4rem; color: #8a5a00; cursor: help; }
.pron-editor .alert { font-size: .92rem; }

/* Formularios: etiqueta encima y campo con borde, como .tts-form */
.pron-page label { color: var(--elh-ink); font-size: .9rem; font-weight: 600; margin: 0 0 .35rem; }
.pron-page .form-control { width: 100%; height: 44px; padding: .45rem .75rem; border: 1px solid #c9c7c1; border-radius: 6px; background: #fff; box-shadow: none !important; color: var(--elh-ink); font-size: 1rem; }
.pron-page .form-control:focus { border-color: var(--elh-teal-dark); box-shadow: 0 0 0 3px rgba(0, 172, 169, .2) !important; }
.pron-page .form-control[aria-invalid="true"] { border-color: var(--elh-danger); }
.pron-page select { max-width: 100%; }
.pron-field-error { color: var(--elh-danger); font-size: .85rem; font-weight: 600; margin: .35rem 0 0; }
.pron-page .auth-help, .pron-hint, .pron-create__field small { display: block; color: var(--elh-muted); font-size: .82rem; line-height: 1.5; margin: .5rem 0 0; }


/* Alta y edición de hitzak */
.pron-editor .pron-form { padding: 1.1rem 1.25rem 1.2rem; border-radius: 6px; }
.pron-entry-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.pron-entry-grid > div { flex: 1 1 14rem; min-width: 0; }
.pron-entry-grid .pron-form__actions { flex: 0 1 auto; }
.pron-form__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pron-form__actions .btn { display: inline-flex; align-items: center; gap: .45rem; height: 44px; margin: 0 !important; padding: 0 1.1rem; font-size: .95rem; white-space: nowrap; }

/* Lista de hitzak */
.pron-editor .pron-list__title { font-size: 1rem; font-weight: 700; color: var(--elh-ink); margin: 0 0 .5rem; }
.pron-table { margin: 0; font-size: .93rem; }
.pron-table.table thead th { border-top: 0; border-bottom: 1px solid var(--elh-line); padding: .5rem .75rem; color: var(--elh-muted); font-size: .85rem; font-weight: 600; }
.pron-table.table td { padding: .45rem .75rem; border-top: 1px solid var(--elh-line); vertical-align: middle; }
.pron-table td strong { font-weight: 600; }
.pron-table tr.is-editing td { background: #eef7f6; }
.pron-table form { display: inline-flex; margin: 0; }
.pron-table .btn.btn-ghost { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 !important; padding: 0; border-color: transparent; background: transparent; }
.pron-table .btn.btn-ghost:not(.text-danger) { color: var(--elh-muted) !important; }
.pron-table .btn.btn-ghost:hover:not(:disabled) { background: #f4f4f1; border-color: transparent; color: var(--elh-ink) !important; }
.pron-table .btn.btn-ghost.text-danger:hover { background: var(--elh-danger-bg); color: var(--elh-danger) !important; }
.pron-empty { height: auto; padding: 1.5rem; }

/* Hiztegi berria */
.pron-create__heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.pron-create__heading h3 { margin: .3rem 0 .4rem; }
.pron-create__heading p { color: var(--elh-muted); margin: 0; font-size: .92rem; line-height: 1.6; }
.pron-create__icon, .pron-welcome__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--elh-radius); background: #eef1fc; color: var(--elh-teal-dark); font-size: 1.2rem; flex-shrink: 0; }
.pron-create { max-width: 580px; }
.pron-create__field { margin-bottom: 1.4rem; }
.pron-create__field label { display: block; }
.pron-create__next { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: #f7f6f3; border-radius: var(--elh-radius); color: var(--elh-muted); font-size: .85rem; }
.pron-create__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--elh-line); }
.pron-create__actions .btn { display: inline-flex; align-items: center; gap: .5rem; height: 44px; margin: 0 !important; padding: 0 1.25rem; font-size: .95rem; }
.pron-welcome { text-align: center; padding: 1.8rem 1rem; }
.pron-welcome__icon { width: 64px; height: 64px; font-size: 1.7rem; margin-bottom: 1.25rem; }
.pron-welcome h3 { margin-bottom: .9rem; }
.pron-welcome p { max-width: 470px; margin: 0 auto 1.5rem; line-height: 1.7; color: var(--elh-muted); }

.pron-editor__footer { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .65rem 1.25rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--elh-line); }
.pron-sharing, .pron-usage, .pron-message { color: var(--elh-muted); font-size: .82rem; line-height: 1.6; margin: 0; }
.pron-sharing { flex: 1 1 240px; }
.pron-sharing i { color: var(--elh-teal-dark); }
.pron-usage { margin-left: auto; white-space: nowrap; }
.pron-message:not(:empty) { margin-top: 1rem; }

/* Entradas antiguas sin hiztegi */
.page-tool section.pron-pending { padding: 1.75rem 2rem; }
.pron-pending h4 { color: var(--elh-blue); font-weight: 700; font-size: 1.1rem; margin: 0 0 1rem; }
.pron-pending__list { margin: 0; padding: 0; list-style: none; }
.pron-pending__item { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 0; border-top: 1px solid var(--elh-line); font-size: .93rem; }
.pron-pending__word { flex: 1 1 14rem; min-width: 0; }
.pron-pending__item form { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.pron-pending__item .form-control { width: auto; height: 38px; font-size: .9rem; }
.pron-pending__item .btn { margin: 0; }

@media (max-width: 991.98px) {
	.pron-workspace { grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; }
	.page-tool section.pron-editor { padding: 1.5rem; }
}
@media (max-width: 767.98px) {
	.pron-workspace { grid-template-columns: minmax(0, 1fr); }
	.page-tool aside.pron-library { position: static; }
	.pron-library__list { max-height: 240px; overflow: auto; }
	.page-tool section.pron-editor, .page-tool section.pron-pending { padding: 1.25rem 1rem; }
	.pron-tool-bar { align-items: flex-start; gap: .75rem; }
	.pron-editor__tools { margin-left: 0; width: 100%; }
	.pron-tool-bar__picks { padding-left: 0; }
	.pron-create__heading { gap: .75rem; }
	.pron-welcome { padding: 1rem 0; }
}

/* Kutxa: etenaldiak eta abiadura, "Aukera gehiago" barruan */
.box-more { margin-top: .75rem; }
.box-more > summary { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; color: var(--elh-teal-dark, #00807e); font-weight: 600; font-size: .95rem; }
.box-more > summary:focus-visible { outline: 3px solid var(--elh-teal); outline-offset: 2px; }
.box-more .box-marks { margin: .6rem 0 0; }

/* Ahoskera-hiztegia: hitzak fitxategi batean */
.pron-import { margin: -.75rem 0 1.5rem; }
.pron-import > summary { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; color: var(--elh-teal-dark, #00807e); font-weight: 600; font-size: .95rem; }
.pron-import > summary:focus-visible { outline: 3px solid var(--elh-teal); outline-offset: 2px; }
.pron-import__form { background: #f7f6f3; border-radius: 6px; padding: .4rem 1.25rem 1.1rem; margin-top: .6rem; }
.pron-import__sample { background: #fff; border: 1px solid var(--elh-border, #e2e0da); border-radius: 4px; padding: .5rem .75rem; margin: .6rem 0 .8rem; font-size: .85rem; }
.pron-import__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.pron-import__row input { flex: 1 1 14rem; width: auto; }
.pron-import__row .btn { margin: 0; text-transform: none; }
.pron-import__result { margin: -.5rem 0 1.5rem; }

/* Aurkezpenak: atzeko musika */
.pres-music { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: 1rem; }
.pres-music .btn { margin: 0; text-transform: none; }
.pres-music__name { font-weight: 600; overflow-wrap: anywhere; }
.pres-music__level { width: auto; }
.pres-music__help { flex-basis: 100%; color: var(--elh-muted); }

/* Hitzak irakurri ahala (irakurlea, js/tts_words.js; kutxan, .box-text__backdrop) */
/* En el lector la frase ya va resaltada (verde): la palabra, en azul encima */
.esaldia.irakurtzen .tts-word.is-spoken { background: var(--elh-blue); color: #fff; box-shadow: 0 0 0 2px var(--elh-blue); }
.tts-follow-toggle { min-height: 0; }
.tts-follow-toggle .custom-control-label { cursor: pointer; padding-top: .1rem; }
.reader-follow-toggle { margin-left: auto; }
.tts-player__rate { flex: none; width: auto; height: 2rem; padding: 0 .4rem; border: 1px solid var(--elh-line); border-radius: 4px; background: #fff; color: var(--elh-ink); font-size: .85rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.tts-player__rate:focus-visible { outline: 2px solid var(--elh-blue); outline-offset: 2px; }
@media (max-width: 575.98px) {
	.tts-player__time { min-width: 0; }
}

/* Aurkezpenak: testurik gabeko diapositiba baten iraupena */
.pres-slide__duration { display: none; align-items: center; gap: .35rem; margin: 0; color: var(--elh-muted); white-space: nowrap; }
.pres-slide.is-silent .pres-slide__duration { display: inline-flex; }
.pres-slide__duration input { width: 4.2rem; height: calc(1.5em + .5rem + 2px); padding: .2rem .4rem; text-align: right; }

/* Cabecera: menú Produktuak (barra irakurlea, irakurle digitala). El ::after del enlace es el subrayado (elh_shell.css), no el triángulo de Bootstrap */
#mainNav.elh-header .nav-products .dropdown-toggle::after { border: 0; margin: 0; vertical-align: 0; }
#mainNav.elh-header .nav-sections .nav-link .nav-products__caret { display: inline-block !important; width: auto; font-size: .65rem; margin-left: -.15rem; opacity: .7; transition: transform .15s ease; }
#mainNav.elh-header .nav-products.show .nav-products__caret { transform: rotate(180deg); }
.nav-products__menu { min-width: 17rem; padding: .4rem; border: 1px solid var(--elh-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 26, 63, .12); }
.nav-products__menu .dropdown-item { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem .7rem; border-radius: 6px; white-space: normal; }
.nav-products__menu .dropdown-item i { margin-top: .2rem; color: var(--elh-teal); }
.nav-products__menu .dropdown-item strong { display: block; font-weight: 600; color: var(--elh-blue); }
.nav-products__menu .dropdown-item small { display: block; color: var(--elh-muted); font-size: .8rem; }
.nav-products__menu .dropdown-item:hover, .nav-products__menu .dropdown-item:focus { background: rgba(0, 172, 169, .08); }
.nav-products__menu .dropdown-item.active { background: rgba(0, 172, 169, .14); }

/* Páginas de producto (barra irakurlea, irakurle digitala): estructura de feature_info (elh_shell.css) + ejemplos */
.product-hint { color: var(--elh-muted); max-width: 52rem; margin: -.4rem 0 1rem; line-height: 1.55; }
/* Ejemplo de la barra dentro de una "ventana" de navegador */
.product-browser { border: 1px solid var(--elh-line); border-radius: 8px; overflow: hidden; background: #fff; }
.product-browser__bar { display: flex; align-items: center; gap: 1rem; padding: .55rem .9rem; background: #eef0f5; border-bottom: 1px solid var(--elh-line); }
.product-browser__dots { display: inline-flex; gap: .35rem; }
.product-browser__dots i { width: .65rem; height: .65rem; border-radius: 50%; background: #c9ccd6; }
.product-browser__url { flex: 1; max-width: 28rem; padding: .2rem .75rem; border-radius: 999px; background: #fff; color: var(--elh-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-browser__url i { font-size: .7rem; margin-right: .4rem; color: #3c8c5a; }
.product-browser__page { padding: 1.25rem 1.5rem 1.75rem; }
.product-browser__page .lp-barra { margin-bottom: 1.25rem; text-align: left; }
.product-article { max-width: 46rem; }
.product-article__kicker { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elh-teal-dark, #00807e); }
.product-article h3 { font-size: 1.5rem; font-weight: 700; color: var(--elh-ink); margin: 0 0 .75rem; }
.product-article p { color: #3f3e3a; font-size: 1.05rem; line-height: 1.65; }
/* Pasos y código */
/* Barra irakurlea: ejemplo con página web o PDF */
.product-switch { display: inline-flex; gap: .25rem; padding: .25rem; margin-bottom: .75rem; border: 1px solid var(--elh-line); border-radius: 999px; background: #fff; }
.product-switch__btn { border: 0; border-radius: 999px; padding: .35rem 1rem; background: transparent; color: var(--elh-muted); font-weight: 600; font-size: .92rem; cursor: pointer; }
.product-switch__btn[aria-pressed="true"] { background: var(--elh-blue); color: #fff; }
.product-switch__btn:focus-visible { outline: 2px solid var(--elh-blue); outline-offset: 2px; }
.product-pdf { background: #e6e8ee; border-radius: 6px; padding: .75rem; }
.product-pdf__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 0 .25rem .65rem; font-size: .88rem; }
.product-pdf__name { font-weight: 600; color: var(--elh-ink); }
.product-pdf__name i { color: #c0392b; }
.product-pdf__status { flex: 1; color: var(--elh-muted); }
.product-pdf__open { color: var(--elh-blue); font-weight: 600; }
#pdf-reader-content.product-pdf__pages { display: flow-root; max-width: none; margin: 0; }
.product-pdf__pages .pdf-reader-article { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; }
/* #pdf-reader-content: tts.css de la barra se carga después (.pdf-reader-page:first-child le quitaba el padding) */
#pdf-reader-content.product-pdf__pages .pdf-reader-page { max-width: 42rem; margin: 0 auto .9rem; padding: 2.2rem 2.5rem 2.5rem; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(16, 26, 63, .18); }
#pdf-reader-content.product-pdf__pages .pdf-reader-page:last-child { margin-bottom: 0; }
.product-pdf__pages .pdf-reader-page > h2 { margin: -1.2rem 0 1rem; text-align: right; font-size: .75rem; font-weight: 400; color: var(--elh-muted); }
.product-pdf__pages h3 { color: #1A3AAB; font-size: 1.25rem; font-weight: 700; margin: 1.1rem 0 .35rem; }
.product-pdf__pages .pdf-reader-page > h3:first-of-type { font-size: 1.6rem; margin-top: 0; }
.product-pdf__pages p { color: #1d2433; font-size: 1rem; line-height: 1.6; margin: 0 0 .5rem; }

.product-steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.product-steps > li { counter-increment: step; position: relative; padding: .1rem 0 0 3rem; }
.product-steps > li::before {
	content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: var(--elh-teal); color: #fff; font-weight: 700;
}
.product-steps strong { display: block; color: var(--elh-ink); margin-bottom: .15rem; }
.product-steps span { color: var(--elh-muted); }
.product-code { margin: .6rem 0 0; padding: 1rem 1.25rem; border-radius: 8px; background: #101a3f; color: #e6ecff; font-size: .85rem; line-height: 1.55; white-space: pre; overflow-x: auto; }
/* Demostración del Irakurle digitala */
.product-reader { padding: 1.25rem 1.5rem; background: #f7f7f5; border: 1px solid var(--elh-line-soft); border-radius: 8px; }
.product-reader__text { font-size: 1.25rem; line-height: 1.9; color: var(--elh-ink); margin-bottom: 1rem; }
.product-reader__text .esaldia { cursor: pointer; border-radius: 3px; }
.product-reader__text .esaldia:hover { background: rgba(26, 58, 171, .07); }
.product-reader__text .esaldia:focus-visible { outline: 2px solid var(--elh-blue); outline-offset: 2px; }
.product-reader__controls { display: flex; align-items: center; gap: 1rem; }
.product-reader__controls .btn { margin: 0 !important; text-transform: none; }
@media (max-width: 575.98px) {
	.product-browser__page { padding: 1rem .6rem; }
	.product-pdf { padding: .4rem; }
	#pdf-reader-content.product-pdf__pages .pdf-reader-page { padding: 1.4rem 1rem 1.5rem; }
	.product-browser__page .lp-barra { overflow-x: auto; }
	.product-reader { padding: 1rem; }
	.product-reader__text { font-size: 1.1rem; }
}

/* Glosarioen adibidea (pronunciation_demo.html): esaldia, glosarioa eta bi audioak */
.pron-demo__lead { max-width: 52rem; color: var(--elh-muted); }
.pron-demo__example { margin: 1.2rem 0; padding: 1.2rem 1.4rem; border: 1px solid var(--elh-line); border-radius: 12px; background: var(--elh-surface, #fff); }
.pron-demo__sentence { margin: 0 0 1rem; font-size: 1.25rem; line-height: 1.6; color: var(--elh-ink); }
.pron-demo__example mark { padding: 0 .2em; border-radius: 4px; background: #fff1b8 !important; color: #1d1d1b !important; font-weight: 600; }
.pron-demo__buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pron-demo__play { display: inline-flex !important; align-items: center; gap: .5rem; margin: 0 !important; }
.pron-demo__entries { width: 100%; max-width: 36rem; border-collapse: collapse; font-size: .95rem; }
.pron-demo__entries caption { caption-side: top; padding: 0 0 .3rem; color: var(--elh-muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pron-demo__entries th, .pron-demo__entries td { padding: .35rem .6rem; border-bottom: 1px solid var(--elh-line); text-align: left; }
.pron-demo__entries th { color: var(--elh-muted); font-weight: 600; font-size: .85rem; }
.pron-demo__status:empty { display: none; }
.pron-demo__status { margin: .6rem 0 0; color: var(--elh-danger); }
.pron-demo__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: pron-step; }
.pron-demo__steps li { position: relative; padding: .9rem 1rem .9rem 3.2rem; border-radius: 10px; background: var(--elh-blue-hover, #f1f4fd); counter-increment: pron-step; }
.pron-demo__steps li::before { content: counter(pron-step); position: absolute; left: 1rem; top: .85rem; display: flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--elh-blue); color: #fff; font-weight: 700; font-size: .85rem; }
.pron-demo__steps strong { display: block; color: var(--elh-ink); }
.pron-demo__steps span { color: var(--elh-muted); font-size: .92rem; }
@media (max-width: 767.98px) { .pron-demo__steps { grid-template-columns: minmax(0, 1fr); } }
html.theme-dark .pron-demo__example mark { background: #4a3f12 !important; color: #fff3c4 !important; }
html.theme-dark .pron-demo__steps li::before { background: var(--dk-fill, #3d5fe0); }

/* Ahots-klonazioa (products/ahots_klonazioa.html) */
.vc-hero { position: relative; }
.vc-hero__art { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.vc-hero__avatar { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--elh-blue-soft); color: var(--elh-blue); font-size: 1.8rem; box-shadow: 0 0 0 10px rgba(26, 58, 171, .06); }
.vc-wave { display: block; width: 90px; height: 40px; background: repeating-linear-gradient(90deg, var(--elh-teal) 0 3px, transparent 3px 8px); -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 72%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 72%); opacity: .7; }
@media (max-width: 767.98px) { .vc-hero__art { display: none; } }
.vc-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.vc-example { padding: 1.25rem; border: 1px solid var(--elh-line); border-radius: 12px; background: var(--elh-surface, #fff); }
.vc-example__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.vc-example__head img { width: 56px; height: 56px; border-radius: 50%; }
.vc-example__kicker { display: block; color: var(--elh-teal-dark); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vc-example h3 { margin: 0; font-size: 1.15rem !important; font-weight: 700; color: var(--elh-blue); }
.vc-track { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .55rem .7rem; margin-top: .5rem; border-radius: 10px; background: var(--elh-blue-hover, #f1f4fd); }
.vc-track.is-clone { background: #e6f7f6; }
.vc-track__label { padding: .25rem .6rem; border-radius: 6px; background: #fff; color: var(--elh-ink); font-size: .85rem; font-weight: 600; }
.vc-track__play { display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--elh-teal-dark); color: #fff; cursor: pointer; }
.vc-track__play:hover, .vc-track.is-playing .vc-track__play { background: var(--elh-blue); }
.vc-track__play:focus-visible { outline: 3px solid var(--elh-blue); outline-offset: 2px; }
.vc-uses li span strong { display: block; color: var(--elh-ink); }
.vc-uses li span { color: var(--elh-muted); }
.vc-cta { align-items: center; }
.vc-cta__icon { color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 3.2rem; height: 3.2rem; border-radius: 12px; background: rgba(255, 255, 255, .15); font-size: 1.4rem; }
html.theme-dark .vc-track { background: var(--dk-soft, #161a26); }
html.theme-dark .vc-track.is-clone { background: #12302f; }
html.theme-dark .vc-track__label { background: var(--dk-raised, #262d44); color: var(--elh-ink); }
html.theme-dark .vc-hero__avatar { background: var(--dk-raised, #262d44); color: var(--dk-accent, #a9bcff); }

/* Glosarioak (pronunciation.html): goiburua, «Zertarako balio du?», «Nola funtzionatzen du?», atalak eta «Non erabili» */
.page-tool__header.pron-hero { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--elh-line); }
.pron-hero__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 3.4rem; height: 3.4rem; border-radius: 12px; background: var(--elh-blue-soft); color: var(--elh-blue); font-size: 1.5rem; }
.pron-hero__text { min-width: 0; }
.pron-hero__text h2 { margin: 0 !important; }
.pron-hero__tagline { margin: .2rem 0 .35rem; color: var(--elh-ink); font-size: 1.15rem; font-weight: 700; }
.pron-hero__lead { max-width: 46rem; margin: 0; color: var(--elh-muted); }
.pron-hero__art { display: flex; align-items: center; gap: .8rem; margin-left: auto; color: var(--elh-teal-dark); font-size: 1.3rem; }
.pron-hero__pill { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border: 1px solid var(--elh-line); border-radius: 999px; background: var(--elh-surface, #fff); color: var(--elh-ink); font-size: 1rem; font-weight: 600; }
.pron-hero__pill.is-ok { border-color: var(--elh-teal-dark); background: var(--elh-teal-dark); color: #fff; }
.pron-hero__wave { width: 34px; height: 16px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px); opacity: .55; -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 75%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 75%); }
@media (max-width: 991.98px) { .pron-hero__art { display: none; } }
.pron-why { margin: .75rem .3rem .4rem; padding: 1rem; border-radius: 10px; background: var(--elh-blue-hover, #f1f4fd); font-size: .85rem; color: var(--elh-muted); line-height: 1.55; }
.pron-why h4 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .5rem; color: var(--elh-ink); font-size: .95rem !important; font-weight: 700; }
.pron-why h4 i { color: var(--elh-teal-dark); }
.pron-why p { margin: 0 0 .5rem; }
.pron-why__sub { color: var(--elh-ink); font-weight: 600; }
.pron-why ul { margin: 0; padding: 0; list-style: none; }
.pron-why li { display: flex; gap: .45rem; align-items: baseline; padding: .15rem 0; color: var(--elh-ink); }
.pron-why li i { color: var(--elh-teal-dark); font-size: .8em; }
.pron-editor__desc { margin: -1rem 0 1.25rem; color: var(--elh-muted); }
.pron-how { margin: 0 0 1.75rem; padding: .8rem 1.2rem; border: 1px solid #cdd6f6; border-radius: 10px; background: #f5f7fe; }
.pron-how > summary { color: var(--elh-blue); font-size: 1rem; font-weight: 700; cursor: pointer; }
.pron-how > summary > i { margin: 0 .4rem; }
.pron-how[open] > summary { margin-bottom: .5rem; }
.pron-demo--compact { margin: 0; padding: 0; }
.pron-demo--compact .pron-demo__lead { margin: 0 0 .75rem; font-size: .9rem; }
.pron-demo--compact .pron-demo__example { margin: 0; }
.pron-section-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; color: var(--elh-ink); font-size: 1.05rem !important; font-weight: 700; }
.pron-section-title > i { color: var(--elh-teal-dark); }
.pron-section-title__count { color: var(--elh-muted); font-weight: 400; }
.pron-table__actions { text-align: right; white-space: nowrap; }
.pron-table__actions .btn { display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 0 .25rem; padding: .3rem .65rem; border: 1px solid var(--elh-line); font-size: .82rem; }
@media (max-width: 767.98px) { .pron-table__actions .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.pron-where { display: flex; gap: 1rem; align-items: flex-start; margin: 1.75rem 0 1rem; padding: 1.1rem 1.25rem; border-radius: 10px; background: #e9f6f5; }
.pron-where__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--elh-surface, #fff); color: var(--elh-teal-dark); font-size: 1.15rem; }
.pron-where h4 { margin: 0 0 .3rem; color: var(--elh-ink); font-size: 1rem !important; font-weight: 700; }
.pron-where p { margin: 0 0 .35rem; color: var(--elh-muted); font-size: .9rem; }
.pron-where .pron-api-code { margin: 0; }
.pron-import__title { display: flex; align-items: center; gap: .45rem; margin: .9rem 0 .4rem; color: var(--elh-ink); font-size: .95rem !important; font-weight: 700; }
html.theme-dark .pron-hero__icon, html.theme-dark .pron-why { background: var(--dk-soft, #161a26); }
html.theme-dark .pron-hero__icon { color: var(--dk-accent, #a9bcff); }
html.theme-dark .pron-how { border-color: var(--elh-line); background: #1b2340; }
html.theme-dark .pron-hero__pill:not(.is-ok), html.theme-dark .pron-where__icon { background: var(--dk-surface, #1d2233); }
html.theme-dark .pron-where { background: #12302f; }
@media (min-width: 992px) { .feature-info section.vc-cta { flex-wrap: nowrap; } .vc-cta > div:not(.feature-info__actions) { flex: 1 1 auto; } .vc-cta .feature-info__actions { flex: 0 0 auto; } }
/* Las acciones con texto (Entzun, Editatu, Ezabatu): sin el tamaño fijo de los botones de solo icono */
.pron-table .pron-table__actions .btn.btn-ghost { width: auto; height: auto; gap: .35rem; margin: 0 0 0 .3rem !important; padding: .3rem .7rem; border-color: var(--elh-line); }
.pron-table .pron-table__actions .btn.btn-ghost.pron-danger:hover { background: var(--elh-danger-bg); }
.page-tool__header.pron-hero { align-items: flex-start; }
.pron-hero__icon { margin-top: .2rem; }
.pron-hero__art { align-self: center; }
