/* RATA iSlideAudio player. Everything is scoped to .rata-isa and states the properties themes like
   to override (display of svg, button looks), so the player keeps its shape in any theme. */

.rata-isa {
	--isa-spot: #f2b53c;
	--isa-dim: .35;
	--t-bg: #ffffff;
	--t-ink: #1b1d2a;
	--t-mute: #555b6e;
	--t-line: #dfe1e8;
	--t-bar: #f3f2f7;
	--t-track: #d3d1de;
	--t-btn-ink: #2a1c00;
	--t-hl: color-mix(in srgb, var(--isa-spot) 30%, transparent);
	position: relative;
	margin: 1.5em 0;
	border: 1px solid var(--t-line);
	border-radius: 12px;
	background: var(--t-bg);
	color: var(--t-ink);
	font-size: 16px;
	line-height: 1.55;
	overflow: hidden;
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}
.rata-isa *, .rata-isa *::before, .rata-isa *::after { box-sizing: border-box; }
.rata-isa[data-scheme="dark"] {
	--t-bg: #16171f; --t-ink: #eef0f8; --t-mute: #a9adc2; --t-line: #2f3142; --t-bar: #20222e; --t-track: #3a3d52;
	--t-hl: color-mix(in srgb, var(--isa-spot) 26%, transparent);
}
@media (prefers-color-scheme: dark) {
	.rata-isa[data-scheme="auto"] {
		--t-bg: #16171f; --t-ink: #eef0f8; --t-mute: #a9adc2; --t-line: #2f3142; --t-bar: #20222e; --t-track: #3a3d52;
		--t-hl: color-mix(in srgb, var(--isa-spot) 26%, transparent);
	}
}
/* Cinema: dark stage in both schemes */
.rata-isa--tpl-cinema { --t-bar: #0b0b0f; }

/* ---------- head ----------
   Closed: speaker + iSlideAudio, title, Listen. Open: the speaker sends sound waves, the brand
   shortens to iSA, ✕ takes the place of Listen. */
.rata-isa__head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; background: var(--t-bar); border-bottom: 1px solid var(--t-line); min-height: 50px; }
.rata-isa__brand { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font: 700 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--t-btn-ink); background: var(--isa-spot); border-radius: 999px; padding: 4px 11px 4px 6px; white-space: nowrap; }
.rata-isa__bshort, .rata-isa.is-open .rata-isa__bname { display: none; }
.rata-isa.is-open .rata-isa__bshort { display: inline; }
.rata-isa__title { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 15px; color: var(--t-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rata-isa__now { display: none; }
.rata-isa button.rata-isa__listen, .rata-isa button.rata-isa__x, .rata-isa a.rata-isa__edit {
	all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto;
	min-height: 34px; min-width: 34px; padding: 0 14px; border-radius: 999px; font: 600 13.5px/1 inherit; font-family: inherit;
}
.rata-isa button.rata-isa__listen { background: var(--t-ink); color: var(--t-bg); }
.rata-isa.is-open button.rata-isa__listen { display: none; }
.rata-isa button.rata-isa__x, .rata-isa a.rata-isa__edit { padding: 0; border: 1px solid var(--t-line); color: var(--t-ink); background: var(--t-bg); font-size: 14px; }
.rata-isa button.rata-isa__x[hidden] { display: none; }
.rata-isa a.rata-isa__edit { border-style: dashed; text-decoration: none; }
.rata-isa button:focus-visible, .rata-isa a:focus-visible { outline: 2px solid var(--isa-spot); outline-offset: 2px; }
.rata-isa button.rata-isa__listen.is-cue { animation: isaCue 1.2s ease-in-out infinite; }
/* Speaker: still while closed, sound waves spreading while the presentation plays. */
/* Logo: a slide frame with a play sign; its sound waves spread while the presentation plays. */
.rata-isa__spk { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.rata-isa__spk svg { display: block !important; width: 22px; height: 22px; }
.rata-isa.is-playing .rata-isa__spk .w1 { animation: isaBlink 1.2s ease-in-out infinite; }
.rata-isa.is-playing .rata-isa__spk .w2 { animation: isaBlink 1.2s .4s ease-in-out infinite; }
@keyframes isaBlink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes isaCue { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--isa-spot) 70%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
/* The summary sentence stays in the page for the whole-article reading and screen readers. */
.rata-isa__summary { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.rata-isa__logo .scr { fill: var(--isa-spot, #f2b53c); }

/* ---------- stage ---------- */
.rata-isa__view { position: relative; }
.rata-isa__stage { position: relative; padding: 12px 14px; max-width: 100%; overflow: hidden; }
/* Content scaled to fit the player (--isa-fit set by the player): never a scroll bar inside. */
.rata-isa__stage > * { zoom: var(--isa-fit, 1); }
.rata-isa__stage > * { width: var(--isa-fw, auto); max-width: var(--isa-fw, 100%); margin-left: auto !important; margin-right: auto !important; }
.rata-isa__stage figure { max-width: 100%; }
.rata-isa__stage .wp-block-table { overflow: visible; }
.rata-isa__stage > :first-child { margin-top: 0; }
.rata-isa__stage > :last-child { margin-bottom: 0; }
.rata-isa__stage svg { display: block !important; visibility: visible !important; max-width: 100%; height: auto; }
.rata-isa__stage img { display: block; max-width: 100%; height: auto; }
.rata-isa__stage [data-isa-t] { cursor: pointer; transition: opacity .35s, background-color .35s, box-shadow .35s, outline-color .35s, filter .35s; }
.rata-isa.isa-tr-none .rata-isa__stage [data-isa-t] { transition: none; }
.rata-isa .isa-hl, .rata-isa .isa-hl > td, .rata-isa .isa-hl > th { background-color: var(--t-hl) !important; }
.rata-isa tr.isa-hl > :first-child { box-shadow: inset 3px 0 0 var(--isa-spot); }
.rata-isa .isa-glow { outline: 3px solid var(--isa-spot); outline-offset: 2px; border-radius: 4px; }
.rata-isa svg .isa-glow, .rata-isa svg .isa-on { outline: none; filter: drop-shadow(0 0 4px var(--isa-spot)) drop-shadow(0 0 2px var(--isa-spot)); }
.rata-isa .isa-dim { opacity: var(--isa-dim); }
.rata-isa .isa-future { opacity: .08; }
.rata-isa .isa-past { opacity: .75; }
.rata-isa.isa-tr-zoom .isa-on:not(tr):not(td):not(th):not(g):not(text) { transform: scale(1.02); }

/* Tables: bold header row, striped rows */
.rata-isa.isa-th-bold .rata-isa__stage thead th, .rata-isa.isa-th-bold .rata-isa__stage thead td { background: #2b2d42 !important; color: #fff !important; font-weight: 700; border-color: #2b2d42; }
.rata-isa.isa-zebra .rata-isa__stage tbody tr:nth-child(even) > * { background-color: color-mix(in srgb, var(--t-ink) 5%, var(--t-bg)); }

/* Captions over the content, like video captions */
.rata-isa__over { display: none; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: 88%; text-align: center; pointer-events: none; z-index: 5; }
.rata-isa__over > span { display: inline; background: rgba(8, 8, 12, .8); color: #fff; font-size: 15px; line-height: 1.6; padding: 4px 10px 4px 12px; border-left: 3px solid var(--isa-spot, #f2b53c); border-radius: 0 4px 4px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.rata-isa.isa-cc-over.is-cc .rata-isa__over { display: block; }
.rata-isa.isa-cc-over .rata-isa__cap { display: none !important; }

/* ---------- images: pins and areas ---------- */
/* 1.4.19 · The wrap is exactly as wide as the image (centred): pins and areas are placed in percent of the
   layer that covers the wrap, so a wrap wider than the picture (a large screen, the browser zoomed out, full
   screen) moved every pin and area away from what it points at. */
.rata-isa__imgwrap { position: relative; display: block; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; overflow: hidden; border-radius: 6px; line-height: 0; background: var(--t-bar); }
.rata-isa__imgwrap img { transition: transform .45s ease; }
.rata-isa__layer { position: absolute; inset: 0; transition: transform .45s ease; pointer-events: none; }
.rata-isa__layer > * { pointer-events: auto; }
.rata-isa__imgwrap.is-dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--isa-zx, 50%) var(--isa-zy, 50%), transparent 0 9%, rgba(0, 0, 0, calc(var(--isa-dim) + .2)) 16%); transition: background .4s; }
.rata-isa .isa-area { position: absolute; border: 2px dashed color-mix(in srgb, var(--isa-spot) 60%, transparent); border-radius: 6px; cursor: pointer; transition: box-shadow .35s, border-color .35s; }
.rata-isa .isa-area.on { border: 3px solid var(--isa-spot); z-index: 2; }
.rata-isa__imgwrap.is-dark .isa-area.on { box-shadow: 0 0 0 9999px rgba(0, 0, 0, calc(var(--isa-dim) + .2)); }
.rata-isa__imgwrap.is-dark:has(.isa-area.on)::after { display: none; }
.rata-isa .isa-area.glow { animation: isaGlowBox 1.2s ease-in-out infinite; }
@keyframes isaGlowBox { 0%, 100% { outline: 0 solid color-mix(in srgb, var(--isa-spot) 70%, transparent); } 50% { outline: 8px solid transparent; } }

.rata-isa button.isa-pin { all: unset; position: absolute; width: 0; height: 0; cursor: pointer; z-index: 3; pointer-events: auto; scale: var(--isa-pin, 1); }
.isa-pin .head { position: absolute; display: grid; place-items: center; font: 700 12px/1 ui-monospace, Consolas, monospace; color: #2a1c00; transition: transform .25s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.isa-pin .head em { display: none; font-style: normal; }
.isa-pin .ring { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--isa-spot); opacity: 0; pointer-events: none; }
.isa-pin .r2 { display: none; }
.isa-pin:not(.on) { opacity: .8; }
.isa-pin.on.pulse .ring { animation: isaPulse 1.4s ease-out infinite; }
.isa-pin:focus-visible .head { outline: 2px solid #3858e9; outline-offset: 3px; }
.isa-pin[data-style="drop"] .head { left: -14px; top: -34px; width: 28px; height: 28px; background: var(--isa-spot); border: 1.5px solid #7a5200; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.isa-pin[data-style="drop"] .head b { transform: rotate(45deg); }
.isa-pin.on[data-style="drop"] .head { transform: rotate(-45deg) scale(1.15); }
.isa-pin[data-style="dot"] .head, .isa-pin[data-style="radar"] .head { left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--isa-spot); border: 2px solid #fff; box-shadow: 0 0 0 1.5px #7a5200; }
.isa-pin[data-style="dot"] .head b, .isa-pin[data-style="radar"] .head b, .isa-pin[data-style="cross"] .head b, .isa-pin[data-style="beacon"] .head b { display: none; }
.isa-pin[data-style="radar"] .r2 { display: block; }
.isa-pin.on.pulse[data-style="radar"] .r2 { animation: isaPulse 1.4s .7s ease-out infinite; }
.isa-pin[data-style="num"] .head { left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: #1d35b3; color: #fff; border: 2px solid #fff; }
.isa-pin[data-style="cross"] .head { left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #e03131; filter: none; }
.isa-pin[data-style="cross"] .head::before, .isa-pin[data-style="cross"] .head::after { content: ""; position: absolute; background: #e03131; }
.isa-pin[data-style="cross"] .head::before { left: 50%; top: -7px; bottom: -7px; width: 2px; transform: translateX(-50%); }
.isa-pin[data-style="cross"] .head::after { top: 50%; left: -7px; right: -7px; height: 2px; transform: translateY(-50%); }
.isa-pin[data-style="cross"] .ring { border-color: #e03131; }
.isa-pin[data-style="tag"] .head { left: 0; top: -36px; transform: translateX(-50%); grid-auto-flow: column; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 999px; background: #1e1e1e; color: #fff; white-space: nowrap; }
.isa-pin[data-style="tag"] .head b { width: 18px; height: 18px; border-radius: 50%; background: var(--isa-spot); color: #2a1c00; display: grid; place-items: center; font-size: 10.5px; }
.isa-pin[data-style="tag"] .head em { display: inline; font: 600 11.5px/1.2 system-ui, sans-serif; }
.isa-pin[data-style="tag"] .head::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1e1e1e; border-bottom: 0; }
.isa-pin.on[data-style="tag"] .head { transform: translateX(-50%) scale(1.1); transform-origin: 50% 100%; }
.isa-pin[data-style="beacon"] .head { left: -9px; top: -9px; width: 18px; height: 18px; background: var(--isa-spot); border: 2px solid #fff; transform: rotate(45deg); box-shadow: 0 0 0 1.5px #7a5200; }
.isa-pin.on[data-style="beacon"] .head { transform: rotate(45deg) scale(1.15); }
.isa-pin.on.pulse[data-style="beacon"] .head { animation: isaGlow 1.2s ease-in-out infinite; }
.isa-pin.on.pulse[data-style="beacon"] .ring { animation: none; }
.isa-pin.on[data-style="dot"] .head, .isa-pin.on[data-style="radar"] .head, .isa-pin.on[data-style="num"] .head, .isa-pin.on[data-style="cross"] .head { transform: scale(1.15); }
@keyframes isaGlow { 0%, 100% { box-shadow: 0 0 0 1.5px #7a5200, 0 0 0 0 rgba(242, 181, 60, .75); } 50% { box-shadow: 0 0 0 1.5px #7a5200, 0 0 0 12px rgba(242, 181, 60, 0); } }
@keyframes isaPulse { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(3.4); opacity: 0; } }

/* ---------- slides ---------- */
/* Progress: a gap before each slide (or row) */
.rata-isa__bar .isa-seg button.isa-gs { margin-left: 4px; }
/* A control that does not fit the line is in ⋯ */
.rata-isa .rata-isa__bar .isa-over { display: none !important; }
/* Control steps: a stop until pressed, a countdown */
.rata-isa__hold { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 12; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; background: var(--isa-spot, #f2b53c); color: #1e1e1e; font: 600 16px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.rata-isa__hold:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rata-isa__count { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 12; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.rata-isa__count b { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: rgba(8, 8, 12, .78); color: #fff; font: 700 44px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: 0 0 0 4px var(--isa-spot, #f2b53c); }
.rata-isa__count span { background: rgba(8, 8, 12, .78); color: #fff; border-radius: 6px; padding: 3px 10px; font-size: 14px; }
/* Children of a slide or row: after their turn */
.rata-isa .isa-gone { visibility: hidden !important; }
/* Entrance of an object */
.rata-isa .isa-in-fade { animation: isaInFade .5s ease both; }
.rata-isa .isa-in-up { animation: isaInUp .5s ease both; }
.rata-isa .isa-in-zoom { animation: isaInZoom .45s ease both; }
@keyframes isaInFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes isaInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes isaInZoom { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rata-isa .isa-in-fade, .rata-isa .isa-in-up, .rata-isa .isa-in-zoom { animation: none; } }
/* One slide on the screen, before playing as while playing. */
.rata-isa.is-slides .isa-slide-off { display: none !important; }
.rata-isa.is-slides .wp-block-gallery:has(.isa-slide-on) { display: block !important; }
.rata-isa.is-slides .wp-block-gallery > .isa-slide-on { width: 100% !important; margin: 0 !important; }
.rata-isa.isa-tr-smooth .isa-slide-on { animation: isaSlideIn .35s ease; }
.rata-isa.isa-tr-zoom .isa-slide-on { animation: isaZoomIn .35s ease; }
@keyframes isaSlideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes isaZoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- controls: one line ---------- */
.rata-isa__ui[hidden] { display: none !important; }
.rata-isa__ui { background: var(--t-bar); border-top: 1px solid var(--t-line); }
.rata-isa__cap { display: none; padding: 10px 14px 4px; font-size: 15px; line-height: 1.5; color: var(--t-ink); }
.rata-isa__ui.cc-on .rata-isa__cap { display: block; }
.rata-isa .isa-badge { display: inline-block; font: 700 10.5px/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; background: #fcf0d4; color: #8a5a00; border-radius: 4px; padding: 3px 6px; vertical-align: 2px; }
.rata-isa .isa-badge.is-browser { background: #e8f0fe; color: #1a4fb4; }
.rata-isa__bar { position: relative; display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px; flex-wrap: nowrap; min-width: 0; }
.rata-isa button.isa-b { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; flex: 0 0 auto; height: 32px; min-width: 32px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--t-line); background: var(--t-bg); color: var(--t-ink); font: 600 12.5px/1 system-ui, sans-serif; }
.rata-isa button.isa-play { background: var(--isa-spot); border-color: var(--isa-spot); color: var(--t-btn-ink); min-width: 40px; }
.rata-isa button.isa-cc[aria-pressed="true"] { background: var(--t-ink); color: var(--t-bg); border-color: var(--t-ink); }
.rata-isa__menu[hidden] { display: none !important; }
.rata-isa__menu { position: absolute; right: 10px; bottom: calc(100% + 6px); z-index: 20; min-width: 200px; background: var(--t-bg); color: var(--t-ink); border: 1px solid var(--t-line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); padding: 4px; display: grid; }
.rata-isa__ui { position: relative; }
.rata-isa__menu button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 7px; font: 500 13.5px/1.2 system-ui, sans-serif; }
.rata-isa__menu button:hover, .rata-isa__menu button:focus-visible { background: var(--t-bar); }
.rata-isa__menu button[disabled] { cursor: default; opacity: .85; }
.rata-isa__menu b { font-weight: 600; color: var(--t-mute); }
/* ☰ Contents: the presentation as a tree */
.rata-isa__toc[hidden] { display: none !important; }
.rata-isa__toc { position: absolute; right: 10px; bottom: calc(100% + 6px); z-index: 21; width: min(340px, calc(100% - 20px)); max-height: min(60vh, 420px); overflow: auto; background: var(--t-bg); color: var(--t-ink); border: 1px solid var(--t-line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); padding: 6px; font: 500 13.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; }
.rata-isa .rata-isa__toc ol.isa-toc-l { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.rata-isa .rata-isa__toc ol.isa-toc-l ol.isa-toc-l { padding-left: 18px !important; border-left: 1px solid var(--t-line); margin-left: 12px !important; }
.rata-isa .rata-isa__toc li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.rata-isa .rata-isa__toc li::before, .rata-isa .rata-isa__toc li::marker { content: none !important; }
.rata-isa .rata-isa__toc button.isa-toc-i { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 8px; align-items: baseline; width: 100%; padding: 7px 8px; border-radius: 7px; }
.rata-isa .rata-isa__toc button.isa-toc-i b { flex: 0 0 auto; min-width: 2.2em; font: 700 12px/1.3 ui-monospace, Consolas, monospace; color: var(--t-mute); }
.rata-isa .rata-isa__toc button.isa-toc-i span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rata-isa .rata-isa__toc button.isa-toc-i:hover, .rata-isa .rata-isa__toc button.isa-toc-i:focus-visible { background: var(--t-bar); }
.rata-isa .rata-isa__toc button.isa-toc-i.in { font-weight: 600; }
.rata-isa .rata-isa__toc button.isa-toc-i.on { background: var(--t-hl); font-weight: 700; }
.rata-isa .rata-isa__toc button.isa-toc-i.on b { color: var(--t-ink); }
.rata-isa button.isa-toc[aria-expanded="true"], .rata-isa button.isa-fs[aria-pressed="true"] { background: var(--t-ink); color: var(--t-bg); border-color: var(--t-ink); }
/* The player's controls keep their own type and look whatever the theme sets for text, lists, svg. */
.rata-isa .rata-isa__head, .rata-isa .rata-isa__ui, .rata-isa .rata-isa__menu { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: normal; text-transform: none; text-align: left; text-indent: 0; }
.rata-isa .rata-isa__bar svg, .rata-isa .rata-isa__head svg, .rata-isa .rata-isa__menu svg { display: inline-block; max-width: none; height: auto; vertical-align: middle; }
/* The stylesheet is complete (an optimiser removing the rules of classes only scripts add is found by the player). */
.rata-isa-probe { --isa-probe: 1; }
/* Progress: a thin line along the top of the controls, one piece per step */
.rata-isa .isa-seg { position: absolute; left: 0; right: 0; top: -1px; height: 4px; display: flex; gap: 2px; }
.rata-isa .isa-seg button { all: unset; flex: 1; height: 4px; background: var(--t-track); cursor: pointer; position: relative; overflow: hidden; }
.rata-isa .isa-seg button .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--isa-spot); }
.rata-isa .isa-seg button.done { background: var(--isa-spot); }
.rata-isa .isa-seg button:focus-visible { outline: 2px solid var(--isa-spot); outline-offset: 1px; }
/* 1.4.12 · A step turned off on this device leaves the line; a silence, stop or countdown is a narrow hatched mark. */
.rata-isa .isa-seg button[hidden], .rata-isa .isa-side-item[hidden] { display: none !important; }
.rata-isa .isa-seg button.isa-ctl { flex: 0 0 10px; background: repeating-linear-gradient(135deg, var(--t-track) 0 2px, transparent 2px 4px); }
.rata-isa .isa-seg button.isa-ctl.done { background: repeating-linear-gradient(135deg, var(--isa-spot) 0 2px, transparent 2px 4px); }
.rata-isa .isa-seg button.isa-ctl .fill { background: repeating-linear-gradient(135deg, var(--isa-spot) 0 2px, transparent 2px 4px); }
/* Steps: played ones counted in ✓n, the step being read named, the coming ones counted in +n */
.rata-isa .isa-lab { font: 700 12.5px/1 ui-monospace, Consolas, monospace; font-style: normal; font-variant-numeric: tabular-nums; color: var(--t-ink); padding: 0 4px; white-space: nowrap; }
.rata-isa .isa-voice { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--t-mute); white-space: nowrap; overflow: hidden; min-width: 0; max-width: 34%; }
.rata-isa .isa-voice svg { flex: 0 0 auto; display: block !important; }
.rata-isa .isa-voice span { overflow: hidden; text-overflow: ellipsis; }
.rata-isa .isa-voice:empty { display: none; }
/* 1.4.10: the voice sits in the bar like a button (outline, rounded, filled, same height); a voice read
   by Vbee shows its speaker in the accent colour, the browser voice a dashed outline. */
.rata-isa .isa-voice { box-sizing: border-box; flex: 0 1 auto; height: 32px; padding: 0 11px 0 9px; gap: 6px; border-radius: 999px; border: 1px solid var(--t-line); background: var(--t-bg); color: var(--t-ink); font: 600 12.5px/1 system-ui, -apple-system, "Segoe UI", sans-serif; }
.rata-isa .isa-voice svg { color: var(--isa-spot, #f2b53c); width: 15px; height: 15px; }
.rata-isa .isa-voice.is-browser { border-style: dashed; color: var(--t-mute); }
.rata-isa .isa-voice.is-browser svg { color: var(--t-mute); }
.rata-isa.is-narrow .isa-voice { height: 34px; }
.rata-isa--tpl-cinema .isa-voice { background: #20222e; color: #eef0f8; border-color: #3a3d52; }
.rata-isa .isa-badge.is-browser { padding: 2px 4px; }
.rata-isa .isa-badge.is-browser svg { width: 14px; height: 14px; vertical-align: -3px; }
.rata-isa .isa-sp { flex: 1 1 0; }
.rata-isa__side { display: grid; align-content: start; }
.rata-isa button.isa-side-item { all: unset; cursor: pointer; display: block; padding: 7px 12px; border-top: 1px solid var(--t-line); font-size: 13px; color: var(--t-mute); }
.rata-isa button.isa-side-item b { font-family: ui-monospace, Consolas, monospace; color: var(--t-ink); margin-right: 4px; }
.rata-isa button.isa-side-item.on { background: var(--t-hl); color: var(--t-ink); font-weight: 600; }

/* ---------- narrow blocks (phones): two lines of control, each one line ----------
   Head: iSA, the step being read, CC, ✕. Controls: play, ‹, [✓n] [i/n] [+n], ›, ⋯ (speed, ⛶). */
.rata-isa.is-narrow.is-open .rata-isa__title { display: none; }
.rata-isa.is-narrow.is-open .rata-isa__now { display: block; flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14px; color: var(--t-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rata-isa.is-narrow .rata-isa__head { gap: 6px; padding: 6px 8px; min-height: 46px; }
.rata-isa.is-narrow button.rata-isa__listen { padding: 0 12px; }
.rata-isa.is-narrow .isa-cc, .rata-isa.is-narrow .isa-rate, .rata-isa.is-narrow .isa-voice { display: none; }
.rata-isa.is-narrow .rata-isa__toc { left: 10px; right: 10px; width: auto; }
.rata-isa.is-narrow button.isa-b { min-height: 34px; min-width: 34px; }

/* Tables on narrow blocks: the template chosen for the block. */
/* 1 · fixed columns: header and first column stay, the other columns scroll */
.rata-isa.is-narrow.isa-mt-fz .rata-isa__stage table { min-width: 520px; }
.rata-isa.is-narrow.isa-mt-fz .rata-isa__stage tr > :first-child { position: sticky; left: 0; z-index: 1; background-color: var(--t-bg); box-shadow: 1px 0 0 var(--t-line); }
.rata-isa.is-narrow.isa-mt-fz.isa-th-bold .rata-isa__stage thead tr > :first-child { background-color: #2b2d42 !important; }
.rata-isa.is-narrow.isa-mt-fz.isa-zebra .rata-isa__stage tbody tr:nth-child(even) > :first-child { background-color: color-mix(in srgb, var(--t-ink) 5%, var(--t-bg)); }
.rata-isa.is-narrow.isa-mt-fz .rata-isa__stage tr.isa-hl > :first-child { background-color: color-mix(in srgb, var(--isa-spot) 30%, var(--t-bg)) !important; }
/* 2 · vertical cards, 3 · only the row being read: each row a card, cells named by their column */
.rata-isa.is-narrow.isa-mt-cards .rata-isa__stage table, .rata-isa.is-narrow.isa-mt-cards .rata-isa__stage tbody,
.rata-isa.is-narrow.isa-mt-focus .rata-isa__stage table, .rata-isa.is-narrow.isa-mt-focus .rata-isa__stage tbody { display: block; width: 100%; border: 0; }
.rata-isa.is-narrow.isa-mt-cards .rata-isa__stage thead, .rata-isa.is-narrow.isa-mt-focus .rata-isa__stage thead { display: none; }
.rata-isa.is-narrow.isa-mt-cards .rata-isa__stage tr, .rata-isa.is-narrow.isa-mt-focus .rata-isa__stage tr { display: grid; gap: 2px; border: 1px solid var(--t-line); border-radius: 10px; padding: 8px 10px; margin: 0 0 6px; background: var(--t-bg); overflow: hidden; }
.rata-isa.is-narrow.isa-mt-cards .rata-isa__stage td, .rata-isa.is-narrow.isa-mt-cards .rata-isa__stage tbody th,
.rata-isa.is-narrow.isa-mt-focus .rata-isa__stage td, .rata-isa.is-narrow.isa-mt-focus .rata-isa__stage tbody th { display: block; border: 0; padding: 0; font-size: 13.5px; color: var(--t-ink); background: none !important; box-shadow: none !important; }
.rata-isa.is-narrow.isa-mt-cards .rata-isa__stage tr > :first-child, .rata-isa.is-narrow.isa-mt-focus .rata-isa__stage tr > :first-child { font-weight: 700; font-size: 14.5px; }
.rata-isa.is-narrow.isa-th-bold.isa-mt-cards .rata-isa__stage tr > :first-child, .rata-isa.is-narrow.isa-th-bold.isa-mt-focus .rata-isa__stage tr > :first-child { background: #2b2d42 !important; color: #fff; margin: -8px -10px 4px; padding: 7px 10px; }
.rata-isa.is-narrow .rata-isa__stage [data-isa-col]::before { content: attr(data-isa-col) ": "; color: var(--t-mute); }
.rata-isa.is-narrow.isa-mt-fz .rata-isa__stage [data-isa-col]::before { content: none; }
.rata-isa.is-narrow.isa-zebra.isa-mt-cards .rata-isa__stage tbody tr:nth-child(even) { background: color-mix(in srgb, var(--t-ink) 5%, var(--t-bg)); }
.rata-isa.is-narrow.isa-mt-cards .rata-isa__stage tr.isa-on, .rata-isa.is-narrow.isa-mt-focus .rata-isa__stage tr.isa-on { border-color: var(--isa-spot); background: var(--t-hl) !important; }
.rata-isa.is-narrow.isa-mt-cards .rata-isa__stage tr.isa-dim { opacity: .55; }
.rata-isa.is-narrow.isa-mt-focus.is-open .rata-isa__stage table:has(tr.isa-on) tbody tr:not(.isa-on) { display: none; }
.rata-isa.is-narrow.isa-mt-focus .rata-isa__stage tr.isa-on { font-size: 15px; padding: 12px 14px; }

/* Floating card */
.rata-isa--tpl-float.is-open { padding-bottom: 8px; }
.rata-isa--tpl-float .rata-isa__ui { position: sticky; bottom: 12px; margin: 0 12px 0 auto; width: min(320px, calc(100% - 24px)); border: 1px solid var(--t-line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
/* Cinema: captions large over a dark band */
.rata-isa--tpl-cinema .rata-isa__ui { background: #0b0b0f; border-top: 0; }
.rata-isa--tpl-cinema .rata-isa__cap { color: #fff; font-size: 17px; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.rata-isa--tpl-cinema button.isa-b:not(.isa-play) { background: #20222e; color: #eef0f8; border-color: #3a3d52; }
.rata-isa--tpl-cinema.is-open .rata-isa__stage { background: #0b0b0f; color: #eef0f8; }
/* Minimal: small pill on top, one-line caption */
.rata-isa--tpl-mini .rata-isa__ui { position: absolute; top: 52px; right: 10px; border: 1px solid var(--t-line); border-radius: 999px; z-index: 4; }
.rata-isa--tpl-mini .rata-isa__bar { padding: 3px 4px; flex-wrap: nowrap; }
.rata-isa--tpl-mini .isa-rate, .rata-isa--tpl-mini .isa-voice { display: none; }
.rata-isa--tpl-mini .rata-isa__cap { position: fixed; display: none; }
.rata-isa--tpl-mini .rata-isa__ui.cc-on .rata-isa__cap { position: absolute; display: block; top: 100%; right: 0; margin-top: 6px; width: min(420px, 80vw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--t-bar); border: 1px solid var(--t-line); border-radius: 8px; padding: 6px 10px; font-size: 13.5px; }
/* Side list */
.rata-isa--tpl-side.is-open { display: grid; grid-template-columns: 1fr 230px; }
.rata-isa--tpl-side.is-open > .rata-isa__head { grid-column: 1 / -1; }
.rata-isa--tpl-side.is-open .rata-isa__ui { display: contents; }
.rata-isa--tpl-side.is-open .rata-isa__side { grid-column: 2; grid-row: 2; border-left: 1px solid var(--t-line); background: var(--t-bar); }
.rata-isa--tpl-side.is-open .rata-isa__cap, .rata-isa--tpl-side.is-open .rata-isa__bar { grid-column: 1 / -1; background: var(--t-bar); }
.rata-isa--tpl-side.is-open .rata-isa__view { grid-column: 1; grid-row: 2; min-width: 0; }
@media (max-width: 640px) {
	.rata-isa--tpl-side.is-open { grid-template-columns: 1fr; }
	.rata-isa--tpl-side.is-open .rata-isa__side { grid-column: 1; grid-row: auto; display: flex; overflow-x: auto; scrollbar-width: none; border-left: 0; }
	.rata-isa--tpl-side.is-open .isa-side-item { flex: 0 0 auto; border: 1px solid var(--t-line); border-radius: 999px; margin: 6px 3px; padding: 3px 9px; }
}

/* Transcript: real text in the page (search engines, screen readers); shown by CC through the caption. */
.rata-isa__transcript { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- full screen ⛶ ---------- */
.rata-isa.is-fs { position: fixed; inset: 0; z-index: 100000; margin: 0; border-radius: 0; border: 0; max-width: none; max-height: none; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0); }
.rata-isa.is-fs .rata-isa__view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rata-isa.is-fs .rata-isa__stage { flex: 1; min-height: 0; overflow: hidden; }
html.rata-isa-noscroll { overflow: hidden; }
.rata-isa.is-fs.rata-isa--tpl-side.is-open { display: grid; grid-template-rows: auto 1fr auto auto; }
.rata-isa.is-narrow.rata-isa--tpl-side.is-open { grid-template-columns: 1fr; }
.rata-isa.is-narrow.rata-isa--tpl-side.is-open .rata-isa__side { display: none; }
.rata-isa.is-landscape.is-open .rata-isa__stage { columns: auto; }
.rata-isa.is-portrait.rata-isa--tpl-float .rata-isa__ui { position: relative; bottom: auto; width: 100%; margin: 0; border-radius: 16px 16px 0 0; }

@media (prefers-reduced-motion: reduce) {
	.rata-isa *, .rata-isa *::before, .rata-isa *::after { animation: none !important; transition: none !important; }
	.isa-pin.on .ring { opacity: .9; transform: scale(2); }
}

.rata-isa-gone { color: #8a2424; font-size: 14px; }

/* ---------- phones: play button in the middle, head and controls fade when idle ---------- */
.rata-isa button.rata-isa__big { all: unset; box-sizing: border-box; display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: 64px; height: 64px; border-radius: 50%; background: rgba(20, 20, 26, .82); border: 2px solid var(--isa-spot); color: #fff; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.rata-isa button.rata-isa__big svg { width: 24px; height: 24px; margin-left: 3px; }
.rata-isa.is-narrow:not(.is-open) button.rata-isa__big { display: grid; }
.rata-isa.is-narrow:not(.is-open) button.rata-isa__listen { display: none; }
.rata-isa.is-idle .rata-isa__head, .rata-isa.is-idle .rata-isa__ui { opacity: 0; pointer-events: none; transition: opacity .4s; }
.rata-isa .rata-isa__head, .rata-isa .rata-isa__ui { transition: opacity .25s; }

/* ---------- content fits the screen in full screen ----------
   A grid centres the content in the height. Its items keep the width of the stage (a flex item
   shrank to its content: content sized by its container, container-type, as many slides are,
   then had no width and folded into a strip). The content is scaled by --isa-fit, not squeezed. */
.rata-isa.is-fs .rata-isa__stage { display: grid !important; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: stretch; overflow: hidden; }
/* Each item has auto side margins (to centre it once the fit narrows it): in a grid (or flex) these
   take the free room and the item would shrink to its content, so its width is stated. */
.rata-isa.is-fs .rata-isa__stage > * { min-width: 0; justify-self: stretch; width: var(--isa-fw, 100%); }
.rata-isa.is-fs .rata-isa__stage > img, .rata-isa.is-fs .rata-isa__stage > svg { justify-self: center; }
.rata-isa.is-fs .rata-isa__stage svg, .rata-isa.is-fs .rata-isa__stage img { width: auto; max-width: 100%; object-fit: contain; }
.rata-isa.is-fs .rata-isa__stage > figure > img, .rata-isa.is-fs .rata-isa__stage > figure > svg, .rata-isa.is-fs .rata-isa__stage > figure > a > img, .rata-isa.is-fs .rata-isa__stage > figure > .rata-isa__imgwrap { margin-left: auto; margin-right: auto; }
.rata-isa.is-fs.isa-mt-fz .rata-isa__stage, .rata-isa.is-fs.rata-isa--bang .rata-isa__stage { align-content: start; }

/* ---------- captions: size and background opacity ---------- */
.rata-isa.isa-ccs-s .rata-isa__over span, .rata-isa.isa-ccs-s .rata-isa__cap { font-size: 13px; }
.rata-isa.isa-ccs-l .rata-isa__over span, .rata-isa.isa-ccs-l .rata-isa__cap { font-size: 18px; }
.rata-isa__over > span { background: rgba(8, 8, 12, var(--isa-ccbg, .75)) !important; }
/* The background box is the whole line; the words inside it are plain text. */
.rata-isa__over .isa-w { padding: 0; }
/* Captions over the content take the place of the content's own caption, kept in its place. */
.rata-isa.isa-cc-over.is-cc .rata-isa__stage figcaption, .rata-isa.isa-cc-over.is-cc .rata-isa__stage .wp-element-caption { visibility: hidden; }
.rata-isa__over { max-width: 90%; }

/* ---------- pins on cells and slides, arrows, areas while idle ---------- */
.rata-isa .rata-isa__anchor { position: relative; }
.rata-isa .rata-isa__anchor > .rata-isa__layer { position: absolute; inset: 0; pointer-events: none; }
.rata-isa svg .isa-arrow { stroke: var(--isa-spot) !important; stroke-width: 3px; stroke-dasharray: 10 6; animation: isaDash 1s linear infinite; }
@keyframes isaDash { to { stroke-dashoffset: -32; } }
.rata-isa:not(.is-open) .isa-area { border-color: transparent; }
.rata-isa:not(.is-open) .rata-isa__imgwrap:hover .isa-area { border-color: color-mix(in srgb, var(--isa-spot) 60%, transparent); }

/* ---------- presentation pointer ---------- */
.rata-isa__ptr { position: absolute; left: 50%; top: 50%; z-index: 7; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .25s; --isa-ptr: #ff3b30; }
.rata-isa__ptr.on { opacity: 1; }
.rata-isa__ptr > * { position: absolute; display: none; }
.rata-isa__ptr .pa { left: -4px; top: -2px; width: 28px; height: 28px; min-width: 28px; max-width: none; max-height: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)) drop-shadow(0 0 1px #fff); }
.rata-isa__ptr.is-arrow .pa, .rata-isa__ptr.is-mouse .pa { display: block; }
.rata-isa__ptr .pl { left: -10px; top: -10px; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; background: var(--isa-ptr); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 16px 7px color-mix(in srgb, var(--isa-ptr) 65%, transparent); }
.rata-isa__ptr.is-laser .pl { display: block; }
.rata-isa__ptr .ph { left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--isa-ptr) 18%, transparent); border: 2px solid color-mix(in srgb, var(--isa-ptr) 45%, transparent); animation: isaHalo 1.6s ease-in-out infinite; }
/* 1.4.16: the virtual mouse has no halo (the halo element stays for no pointer). */
.rata-isa__ptr.is-mouse .ph { display: none; }
@keyframes isaHalo { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.08); } }
.rata-isa__spot { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 0 var(--r, 80px), color-mix(in srgb, var(--isa-ptr, #ff3b30) 70%, #fff) calc(var(--r, 80px) + 1px) calc(var(--r, 80px) + 3px), rgba(0, 0, 0, .7) calc(var(--r, 80px) + 9px)); }
.rata-isa__spot.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rata-isa svg .isa-arrow { animation: none; } }

/* ---------- listen button, spacing, phones in full screen, explore, shakes ---------- */
/* Listen: a round speaker with waves spreading around it (head on computers, middle of the content on phones). */
.rata-isa button.rata-isa__listen, .rata-isa.is-narrow button.rata-isa__listen { position: relative; width: 40px; min-width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--isa-spot); color: #2a1c00; }
.rata-isa button.rata-isa__listen svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.rata-isa button.rata-isa__listen::before, .rata-isa button.rata-isa__listen::after,
.rata-isa button.rata-isa__big::before, .rata-isa button.rata-isa__big::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--isa-spot); animation: isaRipple 1.8s ease-out infinite; pointer-events: none; }
.rata-isa button.rata-isa__listen::after, .rata-isa button.rata-isa__big::after { animation-delay: .9s; }
@keyframes isaRipple { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(1.75); opacity: 0; } }
.rata-isa button.rata-isa__big { background: var(--isa-spot); color: #2a1c00; border: 0; width: 66px; height: 66px; }
.rata-isa button.rata-isa__big svg { width: 30px; height: 30px; margin: 0; position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .rata-isa button.rata-isa__listen::before, .rata-isa button.rata-isa__listen::after, .rata-isa button.rata-isa__big::before, .rata-isa button.rata-isa__big::after { animation: none; opacity: 0; } }

/* Even room above and below the content; the caption right under it. */
.rata-isa__stage { padding: 12px; }
.rata-isa.is-narrow .rata-isa__stage { padding: 8px; }
.rata-isa__stage > *, .rata-isa__stage > * > figure, .rata-isa__stage figure.wp-block-image { margin-top: 0 !important; margin-bottom: 0 !important; }
.rata-isa__stage figcaption, .rata-isa__stage .wp-element-caption { margin: 6px 0 0 !important; }

/* Full screen on phones: the content in the middle of the room left (tables too). */
.rata-isa.is-fs.is-mobile .rata-isa__stage, .rata-isa.is-fs.is-mobile.rata-isa--bang .rata-isa__stage { align-content: center; }

/* ✋ and ⟳ on the controls: ✋ everywhere, ⟳ on phones in full screen. */
.rata-isa button.isa-hand[aria-pressed="true"] { background: var(--t-ink); color: var(--t-bg); border-color: var(--t-ink); }
.rata-isa button.isa-rot { display: none; }
.rata-isa.is-fs.is-mobile button.isa-rot { display: grid; }

/* Phones held sideways: head over the content (it fades with the controls), captions over the
   content, no caption of the content itself; voice name and CC back on the controls. */
.rata-isa.is-fs.is-landscape .rata-isa__head { position: absolute; left: 0; right: 0; top: 0; z-index: 9; background: linear-gradient(rgba(14, 16, 32, .85), rgba(14, 16, 32, 0)); border: 0; transition: opacity .4s; }
.rata-isa.is-fs.is-landscape .rata-isa__stage figcaption, .rata-isa.is-fs.is-landscape .rata-isa__stage .wp-element-caption { display: none; }
.rata-isa.is-fs.is-landscape .rata-isa__cap { display: none !important; }
.rata-isa.is-fs.is-landscape.is-cc .rata-isa__over { display: block; }
.rata-isa.is-fs.is-landscape .isa-cc, .rata-isa.is-fs.is-landscape .isa-voice { display: inline-flex; }
.rata-isa.is-fs.is-landscape .isa-voice:empty { display: none; }

/* ✋ Explore: the content follows the viewer's drag and zoom. */
.rata-isa.is-explore .rata-isa__stage { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.rata-isa.is-explore .rata-isa__stage:active { cursor: grabbing; }
.rata-isa.is-explore .rata-isa__stage > * { transform: var(--isa-ex, none); transform-origin: 0 0; transition: none; }

/* Phones that cannot lock the orientation: the player turned a quarter inside the screen. */
.rata-isa.is-fs.is-rot { width: var(--isa-rw, 100vh); height: var(--isa-rh, 100vw); max-width: none; max-height: none; inset: auto; left: var(--isa-rh, 100vw); top: 0; transform: rotate(90deg); transform-origin: top left; }

/* Effect "shake": the object, and the pointer reaching it. */
/* Shakes: --isa-shk is the strength set on the object (1-10). */
@keyframes isaShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(calc(var(--isa-shk, 5) * -1px)) rotate(calc(var(--isa-shk, 5) * -.3deg)); } 40% { transform: translateX(calc(var(--isa-shk, 5) * 1px)) rotate(calc(var(--isa-shk, 5) * .3deg)); } 60% { transform: translateX(calc(var(--isa-shk, 5) * -.7px)); } 80% { transform: translateX(calc(var(--isa-shk, 5) * .4px)); } }
.rata-isa .isa-shake { animation: isaShake .55s ease-in-out 2; transform-box: fill-box; transform-origin: center; }
@keyframes isaPtrShake { 0%, 100% { transform: translate(0, 0) rotate(0); } 15% { transform: translateX(calc(var(--isa-shk, 5) * -1.2px)) rotate(calc(var(--isa-shk, 5) * -2.5deg)); } 30% { transform: translateX(calc(var(--isa-shk, 5) * 1.2px)) rotate(calc(var(--isa-shk, 5) * 2.2deg)); } 45% { transform: translateX(calc(var(--isa-shk, 5) * -1px)) rotate(calc(var(--isa-shk, 5) * -1.8deg)); } 60% { transform: translateX(calc(var(--isa-shk, 5) * .8px)) rotate(calc(var(--isa-shk, 5) * 1.4deg)); } 80% { transform: translateX(calc(var(--isa-shk, 5) * -.4px)) rotate(calc(var(--isa-shk, 5) * -.6deg)); } }
.rata-isa__ptr.shake > * { animation: isaPtrShake .6s ease-in-out 2; }
.rata-isa__ptr.shake .pa { transform-origin: 4px 2px; }
@media (prefers-reduced-motion: reduce) { .rata-isa .isa-shake, .rata-isa__ptr.shake > * { animation: none; } }

/* 1.4.11 · Caption effect while read. Fill (karaoke, as the article reading): the words read light
   up one after another, the words to come are faint. One: only the word being read, in the block
   colour. None: the caption as it is. */
.rata-isa.isa-ccm-fill .isa-w { opacity: .5; transition: opacity .15s; }
.rata-isa.isa-ccm-fill .isa-w.is-read, .rata-isa.isa-ccm-fill .isa-w.is-now { opacity: 1; }
.rata-isa.isa-ccm-one .isa-w { transition: color .12s; }
.rata-isa.isa-ccm-one .isa-w.is-now { color: var(--isa-spot, #f2b53c); }
@media (prefers-reduced-motion: reduce) { .rata-isa.isa-ccm-fill .isa-w, .rata-isa.isa-ccm-one .isa-w { transition: none; } }

/* Brand card of the presentation style: before the first step and after the last one. */
/* Sized from the player (container units): the logo takes about a third of its height, the words
   under it a short accent line; the same balance on a phone and in full screen. */
.rata-isa__brandcard { position: absolute; inset: 0; z-index: 9; container-type: size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 4cqh, 32px); background: var(--t-bg, #fff); color: var(--t-ink, #1b1d2a); cursor: pointer; text-align: center; padding: 8cqh 8cqw; animation: isaBrandFade .5s ease-out both; }
.rata-isa__brandcard img { display: block; width: auto; height: clamp(56px, 34cqh, 300px); max-width: 64cqw; object-fit: contain; }
.rata-isa__brandcard b { display: block; max-width: 82cqw; font-size: clamp(16px, 5.4cqmin, 44px); line-height: 1.3; font-weight: 600; letter-spacing: .01em; text-wrap: balance; }
.rata-isa__brandcard img + b::before { content: ""; display: block; width: clamp(28px, 9cqmin, 72px); height: 3px; margin: 0 auto clamp(8px, 3cqh, 22px); border-radius: 2px; background: var(--isa-spot, #f2b53c); }
.rata-isa__brandcard small { position: absolute; right: clamp(10px, 2.5cqw, 24px); bottom: clamp(8px, 2.5cqh, 20px); font-size: clamp(11px, 2.4cqmin, 15px); opacity: .6; }
.rata-isa__brandcard.is-slide { animation-name: isaBrandSlide; }
.rata-isa__brandcard.is-zoom { animation-name: isaBrandZoom; }
@keyframes isaBrandFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes isaBrandSlide { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes isaBrandZoom { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rata-isa__brandcard { animation: none; } }

/* 1.4.8: two effects while an object is read. Flash: it lights up in short beats.
   Spreading light: rings of light leave its edge, again and again. SVG parts use drop-shadow. */
.rata-isa .rata-isa__view .isa-flash { animation: isaFlash 1.1s ease-in-out infinite; }
.rata-isa .rata-isa__view .isa-ripple { animation: isaSpread 1.6s ease-out infinite; border-radius: 6px; }
.rata-isa .rata-isa__view svg .isa-flash { animation: isaFlashSvg 1.1s ease-in-out infinite; }
.rata-isa .rata-isa__view svg .isa-ripple { animation: isaSpreadSvg 1.6s ease-out infinite; }
.rata-isa .rata-isa__view .isa-area.flash { animation: isaFlash 1.1s ease-in-out infinite; }
.rata-isa .rata-isa__view .isa-area.ripple { animation: isaSpread 1.6s ease-out infinite; }
@keyframes isaFlash {
  0%, 100% { filter: none; box-shadow: 0 0 0 0 transparent; }
  15% { filter: brightness(1.35) saturate(1.2); box-shadow: 0 0 18px 4px var(--isa-spot); }
  30% { filter: none; box-shadow: 0 0 0 0 transparent; }
  45% { filter: brightness(1.25); box-shadow: 0 0 12px 2px var(--isa-spot); }
}
@keyframes isaSpread {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--isa-spot) 70%, transparent), 0 0 0 0 color-mix(in srgb, var(--isa-spot) 45%, transparent); }
  70% { box-shadow: 0 0 0 14px transparent, 0 0 0 26px transparent; }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
}
@keyframes isaFlashSvg {
  0%, 30%, 100% { filter: none; }
  15% { filter: brightness(1.4) drop-shadow(0 0 8px var(--isa-spot)); }
  45% { filter: brightness(1.25) drop-shadow(0 0 5px var(--isa-spot)); }
}
@keyframes isaSpreadSvg {
  0% { filter: drop-shadow(0 0 0 var(--isa-spot)); }
  50% { filter: drop-shadow(0 0 10px var(--isa-spot)) drop-shadow(0 0 4px var(--isa-spot)); }
  100% { filter: drop-shadow(0 0 18px transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .rata-isa .rata-isa__view .isa-flash, .rata-isa .rata-isa__view .isa-ripple, .rata-isa .rata-isa__view .isa-area.flash, .rata-isa .rata-isa__view .isa-area.ripple { animation: none; box-shadow: 0 0 0 3px var(--isa-spot); }
  .rata-isa .rata-isa__view svg .isa-flash, .rata-isa .rata-isa__view svg .isa-ripple { animation: none; filter: drop-shadow(0 0 4px var(--isa-spot)); }
}

/* 1.4.8: phones in full screen. The content takes the touches (a tap shows or hides the controls,
   two taps zoom), without the browser's own double-tap zoom. */
.rata-isa.is-fs.is-mobile .rata-isa__view { touch-action: manipulation; }
.rata-isa.is-zoomed .rata-isa__stage { touch-action: none; }
.rata-isa.is-zoomed .rata-isa__stage > * { transform: var(--isa-ex, none); transform-origin: 0 0; transition: transform .25s ease; }
/* Held sideways: the controls lie over the bottom of the content like the head over its top, so
   the content gets the whole height of the screen. */
/* 1.4.10: in full screen the controls lie over the foot of the view on every device (like video players),
   so hiding them never moves the content. */
.rata-isa.is-fs .rata-isa__ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; padding-bottom: env(safe-area-inset-bottom, 0); transition: opacity .4s; }
.rata-isa.is-fs.is-idle .rata-isa__view { cursor: none; }
.rata-isa.is-fs.is-landscape .rata-isa__stage { padding: 4px 8px; }

/* ---------- 1.4.9 · Fixed frame (slides), like a video player ----------
   The stage keeps the frame's ratio on the page and the whole room in full screen; the frame (design
   size --isa-cw × --isa-ch) is scaled as one with --isa-fit and centred; bands around it take the
   player's background. A slide fills the frame; a taller one is shrunk inside it by the script. */
.rata-isa.is-canvas .rata-isa__stage { display: grid !important; place-items: center; padding: 0 !important; overflow: hidden !important; columns: auto !important; background: var(--t-bg); }
.rata-isa.is-canvas .rata-isa__stage > .rata-isa__canvas { position: relative; box-sizing: border-box; width: var(--isa-cw, 960px) !important; max-width: none !important; min-width: 0; height: var(--isa-ch, 540px); margin: 0 !important; overflow: hidden; zoom: var(--isa-fit, 1); justify-self: center; align-self: center; }
.rata-isa.is-canvas .rata-isa__canvas > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.rata-isa.is-canvas .rata-isa__canvas .isa-cslide { box-sizing: border-box; width: 100% !important; max-width: none !important; min-height: var(--isa-ch, 540px); margin: 0 auto !important; display: flex !important; flex-direction: column; justify-content: center; }
.rata-isa.is-canvas .rata-isa__canvas .isa-cslide.isa-slide-off { display: none !important; }
.rata-isa.is-canvas .rata-isa__canvas .isa-cslide > :only-child { flex: 1 1 auto; }
.rata-isa.is-canvas .rata-isa__canvas .isa-cslide > .isa-cmain { flex: 1 1 auto; box-sizing: border-box; margin-top: 0 !important; margin-bottom: 0 !important; }
/* Full screen: black bands around the frame, as video players. */
.rata-isa.is-canvas.is-fs .rata-isa__stage { background: #000; }
.rata-isa.is-canvas .rata-isa__canvas .wp-block-gallery { height: 100%; }
.rata-isa.is-canvas .rata-isa__canvas figure.isa-cslide img { max-height: var(--isa-ch, 540px); width: 100%; object-fit: contain; }
.rata-isa.is-canvas.is-fs .rata-isa__stage { flex: 1 1 auto; min-height: 0; height: auto !important; }
.rata-isa.is-canvas.is-fs .rata-isa__stage > .rata-isa__canvas { width: var(--isa-cw, 960px) !important; justify-self: center; }
/* Paused: the content's own CSS animations wait with the voice. */
.rata-isa.is-paused .rata-isa__canvas *, .rata-isa.is-paused .rata-isa__canvas *::before, .rata-isa.is-paused .rata-isa__canvas *::after { animation-play-state: paused !important; }

/* Captions always lie over the content (like video captions), over the frame and not its bands,
   above the controls when these lie over the content; aligned left, centre or right. */
/* 1.4.10: captions sit at the foot of the view, just above the controls (desktop, phones upright and
   sideways), never in the middle of the screen under a frame; with the controls hidden they go down. */
.rata-isa__over { left: calc(var(--isa-ol, 0px) + 12px); right: calc(var(--isa-or, 0px) + 12px); bottom: 12px; width: auto; max-width: none; transform: none; text-align: center; transition: bottom .3s; }
.rata-isa.is-fs:not(.is-idle) .rata-isa__over { bottom: calc(var(--isa-uih, 0px) + 10px); }
.rata-isa.is-fs.is-idle .rata-isa__over { bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
.rata-isa.is-fs.is-cc .rata-isa__over { display: block; }
.rata-isa.isa-cca-left .rata-isa__over { text-align: left; }
.rata-isa.isa-cca-right .rata-isa__over { text-align: right; }

.rata-isa.is-cc .rata-isa__ui .rata-isa__cap { display: none !important; }

/* Where the viewer stopped last time; turn-the-phone hint; press to listen when sound was refused. */
.rata-isa__resume { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 8; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: calc(100% - 24px); }
.rata-isa__resume button { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font: 600 13.5px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; background: rgba(14, 16, 32, .86); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.rata-isa__resume button.isa-r-go { background: var(--isa-spot, #f2b53c); color: #2a1c00; }
.rata-isa__resume button svg { width: 16px; height: 16px; }
.rata-isa__resume button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rata-isa.is-playing .rata-isa__resume { display: none; }
.rata-isa__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: rgba(14, 16, 32, .88); color: #fff; font: 600 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.rata-isa__hint svg { flex: 0 0 auto; width: 22px; height: 22px; }

/* 1.4.13 · Slides of an iSA that does not play yet: one tab per slide, in one place (no script: all shown). */
.rata-isa-tabs { margin: 1.5em 0; }
.rata-isa-tabs__bar { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.rata-isa-tabs__bar button { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 6px 12px; border-radius: 999px; border: 1px solid; border-color: color-mix(in srgb, currentColor 28%, transparent); font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; opacity: .78; }
.rata-isa-tabs__bar button b { font-variant-numeric: tabular-nums; }
.rata-isa-tabs__bar button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rata-isa-tabs__bar button[aria-selected="true"] { opacity: 1; background: var(--isa-spot, #f2b53c); border-color: var(--isa-spot, #f2b53c); color: #1e1e1e; }
.rata-isa-tabs__bar button:focus-visible { outline: 2px solid var(--isa-spot, #f2b53c); outline-offset: 2px; }
.rata-isa-tabs.is-ready .rata-isa-tabs__frame > .isa-slide:not(.is-on) { display: none !important; }
.rata-isa-tabs__frame > .isa-slide { margin-top: 0 !important; margin-bottom: 0 !important; }
.rata-isa-tabs:not(.is-ready) .rata-isa-tabs__frame > .isa-slide + .isa-slide { margin-top: 12px !important; }

/* 1.4.11 · Caption look. Box (as before): fitted to the words, translucent, its left edge in the
   accent colour. Bar: a band across the foot of the view, centred. Plain: words with a shadow. */
.rata-isa.isa-ccst-box .rata-isa__over > span { border-left: 3px solid var(--isa-spot, #f2b53c); border-radius: 0 4px 4px 0; }
.rata-isa.isa-ccst-bar .rata-isa__over { left: var(--isa-ol, 0px); right: var(--isa-or, 0px); bottom: 0; text-align: center !important; }
.rata-isa.isa-ccst-bar .rata-isa__over > span { display: block; border-left: 0; border-radius: 0; padding: 8px 16px; }
.rata-isa.is-fs.isa-ccst-bar:not(.is-idle) .rata-isa__over { bottom: var(--isa-uih, 0px); }
.rata-isa.is-fs.isa-ccst-bar.is-idle .rata-isa__over { bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
/* No box, but the content right behind the words is dimmed: readable on light slides as on dark ones. */
.rata-isa.isa-ccst-plain .rata-isa__over > span { display: inline-block; background: rgba(0, 0, 0, .18) !important; -webkit-backdrop-filter: brightness(.55); backdrop-filter: brightness(.55); border-left: 0; border-radius: 6px; padding: 1px 8px; font-weight: 600; text-shadow: 0 0 2px rgba(0, 0, 0, .95), 0 1px 3px rgba(0, 0, 0, .9), 0 0 10px rgba(0, 0, 0, .7), 0 0 18px rgba(0, 0, 0, .5); }
.rata-isa.isa-ccst-plain.isa-ccm-fill .isa-w:not(.is-read):not(.is-now) { opacity: .62; }

/* 1.4.11 · Time on the controls: heard / whole length. */
.rata-isa .isa-time { font: 600 12px/1 ui-monospace, Consolas, monospace; font-style: normal; font-variant-numeric: tabular-nums; color: var(--t-mute, var(--t-ink)); padding: 0 6px; white-space: nowrap; }
.rata-isa .isa-time:empty { display: none; }
.rata-isa--tpl-cinema .isa-time { color: #c9ccdb; }

/* 1.4.11 · Waiting for the audio or the slide's images: a ring on Play and in the middle. */
.rata-isa__spin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 11; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.rata-isa__spin[hidden] { display: none; }
.rata-isa__spin i { width: 44px; height: 44px; box-sizing: border-box; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .4); border-top-color: var(--isa-spot, #f2b53c); background: rgba(8, 8, 12, .25); animation: isa-spin .8s linear infinite; }
.rata-isa__spin span { background: rgba(8, 8, 12, .82); color: #fff; font: 600 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 6px 12px; border-radius: 999px; text-align: center; }
.rata-isa__spin span:empty { display: none; }
.rata-isa.is-loading button.isa-play { position: relative; }
.rata-isa.is-loading button.isa-play svg { opacity: 0; }
.rata-isa.is-loading button.isa-play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: isa-spin .8s linear infinite; }
@keyframes isa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rata-isa__spin i, .rata-isa.is-loading button.isa-play::after { animation-duration: 2s; } }

/* 1.4.11 · Two fingers zoom the content only with ✋ on (is-explore: touch-action none, above).
   Without it the player locks the zoom: no pinch or double-tap zoom of the browser over the player;
   one finger still scrolls the page. */
.rata-isa .rata-isa__view, .rata-isa.is-fs.is-mobile .rata-isa__view { touch-action: pan-x pan-y; }

/* 1.4.16 · Virtual mouse: the arrow presses when an object is done and three rings spread from its tip. */
.rata-isa__ptr.press .pa { transform: scale(.82); transform-origin: 4px 2px; transition: transform .12s; }
.rata-isa__ring { position: absolute; z-index: 6; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--isa-ptr, #ff3b30); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); pointer-events: none; animation: isaPtrRing 1s ease-out forwards; }
@keyframes isaPtrRing { from { transform: scale(1); opacity: .95; } to { transform: scale(6.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rata-isa__ring { display: none; } }
