/*
 * LemkoTran translator block, V2: dark smoky glass.
 * Every selector starts with .ltb (root rules with .ltb.ltb): the theme sets font-family
 * and weight on everything inside .entry-content at specificity 0,1,4.
 * Colours are tokens; tune them here without touching markup.
 */

.ltb {
	/* Glass */
	--ltb-glass: rgba(11, 20, 38, 0.84);
	--ltb-card: rgba(10, 19, 36, 0.92);
	--ltb-field: rgba(13, 27, 50, 0.92);
	--ltb-blur: 22px;
	--ltb-stroke: rgba(210, 225, 255, 0.22);
	--ltb-stroke-strong: rgba(210, 225, 255, 0.36);
	--ltb-hover: rgba(255, 255, 255, 0.07);

	/* Text */
	--ltb-text: #f4f7ff;
	--ltb-muted: #bac9e2;
	--ltb-faint: #9aa7c6;
	--ltb-focus: #ffd45c;

	/* Accents (solid) */
	--ltb-amber-1: #f8d98f;
	--ltb-amber-2: #e9b65a;
	--ltb-amber-ink: #1d1503;
	--ltb-auto: #1f62e8;
	--ltb-man: #4f9bff;
	--ltb-woman: #ff5fb0;
	--ltb-group: #34d058;
	--ltb-cta-1: #fbd74a;
	--ltb-cta-2: #c9e65a;
	--ltb-cta-3: #8fe36d;
	--ltb-cta-ink: #141a05;
	--ltb-check: #2fd45c;
	--ltb-check-ink: #04260f;
	--ltb-lemma: #6cb2ff;

	/* Flag of the Lemko Republic (1918–1920) */
	--ltb-flag-blue: #6565fe;
	--ltb-flag-yellow: #cb9832;
	--ltb-flag-green: #32cb65;
	/* Stripes of the Cyrillic result mark, top to bottom (Rusyn overrides below) */
	--ltb-flag-1: var(--ltb-flag-blue);
	--ltb-flag-2: var(--ltb-flag-yellow);
	--ltb-flag-3: var(--ltb-flag-green);

	--ltb-radius: 22px;
	--ltb-radius-s: 14px;
	--ltb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

/* Rusynator (linguonym "rusyn"): the result mark is the Rusyn flag of 2007 (blue half over white and
   red quarters); accents use the blue and yellow bars of the coat of arms of Rusyns in Slovakia
   (Petro, 2026-10-29: no red-white-blue scheme) */
.ltb.ltb--rusyn {
	--ltb-flag-1: #1f429b;
	--ltb-flag-2: #ffffff;
	--ltb-flag-3: #aa1e25;
	--ltb-accent-1: #034ea2;
	--ltb-accent-2: #fed700;
	--ltb-accent-3: #034ea2;
}

.ltb.ltb {
	position: relative;
	box-sizing: border-box;
	color: var(--ltb-text);
	font-family: var(--ltb-font);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	background: none;
}

/* Block text inherits the block's font and weight, not the theme's (rules below set their own) */
.ltb.ltb :where(p, li, a, span, button, label, select, textarea, summary, strong, h2, h3, kbd, option) {
	font-family: inherit;
	font-weight: inherit;
}

.ltb *,
.ltb *::before,
.ltb *::after {
	box-sizing: border-box;
}

.ltb :focus-visible {
	outline: 3px solid var(--ltb-focus);
	outline-offset: 2px;
}

.ltb button {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.ltb p {
	margin: 0;
}

.ltb .ltb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ltb [hidden] {
	display: none !important;
}

/* ------------------------------------------------------------ layout: two glass columns */

.ltb .ltb__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

@media (min-width: 900px) {
	.ltb .ltb__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
		gap: 18px;
	}
}

.ltb .ltb__pane--in,
.ltb .ltb-card {
	background: var(--ltb-glass);
	border: 1px solid var(--ltb-stroke);
	border-radius: var(--ltb-radius);
	box-shadow: 0 18px 50px -24px rgba(0, 6, 18, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(var(--ltb-blur)) saturate(1.15);
	backdrop-filter: blur(var(--ltb-blur)) saturate(1.15);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.ltb .ltb__pane--in,
	.ltb .ltb-card {
		background: #0d1d36;
	}
}

.ltb .ltb__pane--in {
	container: ltb-in / inline-size;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(14px, 1.8vw, 24px);
}

.ltb .ltb__pane--out {
	container: ltb-out / inline-size;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* ------------------------------------------------------------ region tabs */

.ltb .ltb-variety {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ltb .ltb-variety__opt {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 76px;
	padding: 8px 14px;
	border: 1px solid var(--ltb-stroke);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--ltb-text);
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.ltb .ltb-variety__opt:hover {
	background: var(--ltb-hover);
}

.ltb .ltb-compass {
	flex: none;
	width: 54px;
	height: 38px;
	color: #d6e4ff;
}

.ltb .ltb-variety__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: break-word;
	line-height: 1.15;
}

.ltb .ltb-variety__name {
	font-size: 1.3rem;
	font-weight: 700;
}

.ltb .ltb-variety__country {
	color: var(--ltb-muted);
	font-size: 1rem;
	font-weight: 400;
}

/* Name with the engine's BLEU gain beside it, like a stock ticker */
.ltb .ltb-variety__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
}

.ltb .ltb-variety__gain {
	color: #43d675;
	font-size: 0.85rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ltb .ltb-variety__opt[aria-checked="true"] .ltb-variety__gain {
	color: #07521f;
}

/* Selected: solid warm amber, dark ink */
.ltb .ltb-variety__opt[aria-checked="true"] {
	border-color: var(--ltb-amber-1);
	background: linear-gradient(160deg, var(--ltb-amber-1), var(--ltb-amber-2));
	color: var(--ltb-amber-ink);
	box-shadow: 0 6px 22px -10px rgba(233, 182, 90, 0.9);
}

.ltb .ltb-variety__opt[aria-checked="true"] .ltb-compass {
	color: #19345c;
}

.ltb .ltb-variety__opt[aria-checked="true"] .ltb-variety__country {
	color: #4a3a12;
}

/* ------------------------------------------------------------ fields */

.ltb .ltb-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ltb .ltb-label {
	color: var(--ltb-text);
	font-size: 1rem;
	font-weight: 600;
}

.ltb .ltb-field {
	color: var(--ltb-text);
	background-color: var(--ltb-field);
	border: 1px solid var(--ltb-stroke);
}

.ltb .ltb-select {
	flex: 1 1 180px;
	min-height: 48px;
	padding: 8px 40px 8px 14px;
	border-radius: var(--ltb-radius-s);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23d9e4fb' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	font: inherit;
	font-size: 1.05rem;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.ltb .ltb-select option {
	color: #0b1631;
	background: #fff;
}

.ltb .ltb-select--small {
	flex: 0 1 auto;
	min-width: 0;
	min-height: 40px;
	font-size: 0.95rem;
}

.ltb .ltb-notice {
	padding: 8px 12px;
	border-left: 3px solid var(--ltb-amber-2);
	border-radius: 8px;
	background: rgba(233, 182, 90, 0.12);
	font-size: 0.92rem;
}

.ltb .ltb-textwrap {
	position: relative;
}

.ltb .ltb-text {
	display: block;
	width: 100%;
	min-height: calc(4 * 1.5em + 34px);
	padding: 14px 16px 32px;
	border-radius: 16px;
	font: inherit;
	font-size: 1.15rem;
	line-height: 1.5;
	resize: none;
	overflow-y: hidden;
}

.ltb .ltb-text::placeholder {
	color: var(--ltb-faint);
	opacity: 1;
}

.ltb .ltb-text:focus {
	border-color: var(--ltb-amber-1);
	outline: none;
	box-shadow: 0 0 0 3px rgba(248, 217, 143, 0.25);
}

.ltb .ltb-count {
	position: absolute;
	right: 14px;
	bottom: 8px;
	color: var(--ltb-muted);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

.ltb .ltb-count.is-near {
	color: var(--ltb-amber-1);
}

.ltb .ltb-count.is-over {
	color: #ff9a9a;
	font-weight: 700;
}

/* ------------------------------------------------------------ Coming-soon tag (controls the engine can't take yet) */

.ltb .ltb-soon-tag {
	padding: 1px 8px;
	border: 1px solid rgba(52, 208, 88, 0.55);
	border-radius: 999px;
	background: rgba(52, 208, 88, 0.12);
	color: #9ff0b6;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

.ltb .ltb-ico {
	flex: none;
}

/* ------------------------------------------------------------ Stop sliders: Tone, I am a, I'm talking to */

/* --n stops, thumb on stop --pos (set by view.js); each stop sits in the middle of its column */
.ltb .ltb-tone__label {
	display: block;
	margin-bottom: 4px;
	font-size: 1rem;
	font-weight: 600;
}

.ltb .ltb-tone__track {
	--n: 3;
	--pos: 1;
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--n), minmax(0, 1fr));
	padding-top: 30px;
}

.ltb .ltb-tone__rail {
	position: absolute;
	top: 12px;
	left: calc(50% / var(--n));
	right: calc(50% / var(--n));
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(90deg, #4f8ff7, #6f7cf6 50%, #9b6cf5);
	pointer-events: none;
}

.ltb .ltb-tone__stop,
.ltb .ltb-tone__thumb {
	position: absolute;
	pointer-events: none;
	border-radius: 50%;
}

.ltb .ltb-tone__stop {
	top: 7px;
	left: calc((var(--i) + 0.5) * 100% / var(--n));
	width: 16px;
	height: 16px;
	margin-left: -8px;
	background: #dfe6f5;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.ltb .ltb-tone__thumb {
	top: 1px;
	left: calc((var(--pos) + 0.5) * 100% / var(--n));
	width: 28px;
	height: 28px;
	margin-left: -14px;
	border: 4px solid #fff;
	background: var(--ltb-auto);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	transition: left 0.18s ease, background-color 0.18s ease;
}

/* Each stop is a full-height button: rail on top, glyph and label below */
.ltb .ltb-tone__opt {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	min-height: 44px;
	margin-top: -30px;
	padding: 30px 4px 6px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--ltb-muted);
	font-size: 1rem;
	cursor: pointer;
}

.ltb .ltb-tone__opt:hover {
	color: var(--ltb-text);
}

.ltb .ltb-tone__opt[aria-checked="true"] {
	color: var(--ltb-text);
	font-weight: 700;
}

.ltb .ltb-tone__opt[aria-checked="true"] span {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.ltb .ltb-tone__opt span {
	white-space: nowrap;
}

/* I am a / I'm talking to: a plain rail; stops and thumb take the person's colour */
.ltb .ltb-tone--speaker .ltb-tone__rail,
.ltb .ltb-tone--listener .ltb-tone__rail {
	background: rgba(223, 230, 245, 0.35);
}

.ltb .ltb-tone__stop--man { background: var(--ltb-man); }
.ltb .ltb-tone__stop--woman { background: var(--ltb-woman); }
.ltb .ltb-tone__stop--group { background: var(--ltb-group); }

.ltb .ltb-tone[data-value="man"] .ltb-tone__thumb { background: var(--ltb-man); }
.ltb .ltb-tone[data-value="woman"] .ltb-tone__thumb { background: var(--ltb-woman); }
.ltb .ltb-tone[data-value="group"] .ltb-tone__thumb { background: var(--ltb-group); }

.ltb .ltb-tone__opt--man .ltb-ico { color: var(--ltb-man); }
.ltb .ltb-tone__opt--woman .ltb-ico { color: var(--ltb-woman); }
.ltb .ltb-tone__opt--group .ltb-ico { color: var(--ltb-group); }

/* ------------------------------------------------------------ Translate */

.ltb .ltb-go {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 60px;
	padding: 10px 20px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(90deg, var(--ltb-cta-1), var(--ltb-cta-2) 65%, var(--ltb-cta-3));
	color: var(--ltb-cta-ink);
	font-size: 1.4rem;
	font-weight: 750;
	cursor: pointer;
	box-shadow: 0 10px 26px -12px rgba(201, 230, 90, 0.85);
	transition: filter 0.15s, transform 0.05s;
}

.ltb .ltb-go:hover {
	filter: brightness(1.05);
}

.ltb .ltb-go:active {
	transform: translateY(1px);
}

.ltb .ltb-go:disabled {
	cursor: progress;
	opacity: 0.8;
}

/* ------------------------------------------------------------ result cards */

.ltb .ltb-card {
	padding: 14px;
}

.ltb .ltb-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 4px 10px;
}

.ltb .ltb-card__title {
	flex: 1;
	margin: 0 !important;
	color: var(--ltb-text);
	font-size: 1.2rem !important;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.ltb .ltb-card__title:focus {
	outline: none;
}

.ltb .ltb-mark--flag {
	flex: none;
	width: 48px;
	height: 32px;
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ltb .ltb-mark--letter {
	flex: none;
	min-width: 48px;
	color: var(--ltb-text);
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 1;
	text-align: center;
}

.ltb .ltb-card__body {
	padding: 16px 18px;
	border: 1px solid var(--ltb-stroke);
	border-radius: 16px;
	background: var(--ltb-card);
}

/* Speaker, voice slider and copy stay together; on narrow cards they take their own row */
.ltb .ltb-card__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

/* Speaker button and voice slider share one pill */
.ltb .ltb-say {
	display: inline-flex;
	flex: none;
	align-items: center;
}

.ltb .ltb-say--voices {
	box-sizing: border-box;
	height: 44px;
	padding: 3px;
	gap: 4px;
	border: 1px solid var(--ltb-stroke-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}

.ltb .ltb-say--voices .ltb-listen {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: none;
}

.ltb .ltb-say--voices .ltb-listen:hover:not(:disabled) {
	background: var(--ltb-hover);
}

.ltb .ltb-say--voices .ltb-listen.is-speaking {
	background: var(--ltb-cta-2);
}

/* A thin divider between the speaker and the slider */
.ltb .ltb-say--voices .ltb-voicesw {
	height: 36px;
	padding: 0 0 0 5px;
	border: 0;
	border-left: 1px solid var(--ltb-stroke);
	border-radius: 0;
	background: none;
}

.ltb .ltb-say--voices .ltb-voicesw__thumb {
	top: 0;
	left: 5px;
}

/* Woman/man voice: a two-stop slider beside the speaker button */
.ltb .ltb-voicesw {
	--ltb-voice-woman: #f472b6;
	--ltb-voice-man: #60a5fa;
	position: relative;
	display: inline-flex;
	flex: none;
	box-sizing: border-box;
	height: 44px;
	padding: 3px;
	border: 1px solid var(--ltb-stroke-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}

.ltb .ltb-voicesw__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ltb-voice-woman);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	transition: transform 0.18s ease, background-color 0.18s ease;
}

.ltb .ltb-voicesw[data-value="man"] .ltb-voicesw__thumb {
	transform: translateX(36px);
	background: var(--ltb-voice-man);
}

.ltb .ltb-voicesw__opt {
	position: relative;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--ltb-muted);
	cursor: pointer;
}

/* Pink for the woman's voice, blue for the man's; each icon hints at its colour when not chosen */
.ltb .ltb-voicesw__opt[data-value="woman"] {
	color: var(--ltb-voice-woman);
}

.ltb .ltb-voicesw__opt[data-value="man"] {
	color: var(--ltb-voice-man);
}

.ltb .ltb-voicesw__opt:not([aria-checked="true"]) {
	opacity: 0.7;
}

.ltb .ltb-voicesw__opt:hover:not([aria-checked="true"]) {
	opacity: 1;
}

.ltb .ltb-voicesw__opt[aria-checked="true"] {
	color: #14161f;
}

.ltb .ltb-voicesw__opt .ltb-ico {
	width: 20px;
	height: 20px;
}

@media (prefers-reduced-motion: reduce) {
	.ltb .ltb-voicesw__thumb {
		transition: none;
	}
}

.ltb .ltb-copy {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ltb-stroke-strong);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--ltb-text);
	cursor: pointer;
}

.ltb .ltb-copy:hover:not(:disabled) {
	background: var(--ltb-hover);
}

.ltb .ltb-copy:disabled {
	opacity: 0.4;
	cursor: default;
}

.ltb .ltb-listen__stop,
.ltb .ltb-listen.is-speaking .ltb-listen__play {
	display: none;
}

.ltb .ltb-listen.is-speaking .ltb-listen__stop {
	display: block;
}

.ltb .ltb-listen.is-loading {
	animation: ltb-pulse 1s ease-in-out infinite;
}

@keyframes ltb-pulse {
	50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
	.ltb .ltb-listen.is-loading {
		animation: none;
	}
}

.ltb .ltb-listen.is-speaking {
	border-color: var(--ltb-cta-2);
	background: var(--ltb-cta-2);
	color: var(--ltb-cta-ink);
}

.ltb .ltb-copy.is-copied {
	border-color: var(--ltb-check);
	background: var(--ltb-check);
	color: var(--ltb-check-ink);
}

/* Cyrillic and Latin text: large, high-contrast, line breaks kept */
.ltb .ltb-cyr {
	transition: opacity 0.2s;
}

.ltb .ltb-cyr.is-pending {
	opacity: 0.5;
}

.ltb .ltb-cyr__text,
.ltb .ltb-lat {
	color: var(--ltb-text);
	font-weight: 600;
	line-height: 1.35;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.ltb .ltb-cyr__text { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); }
.ltb .ltb-lat { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); }

.ltb .ltb-cyr[data-size="m"] .ltb-cyr__text { font-size: 1.35rem; }
.ltb .ltb-cyr[data-size="s"] .ltb-cyr__text { font-size: 1.15rem; line-height: 1.5; }

.ltb .ltb-placeholder {
	color: var(--ltb-faint);
	font-size: 1.05rem;
	font-weight: 400;
}

.ltb .ltb-lat.is-missing {
	color: var(--ltb-muted);
	font-size: 0.95rem;
	font-weight: 400;
}

.ltb .ltb-w {
	cursor: pointer;
	border-radius: 3px;
}

.ltb .ltb-w--dict {
	text-decoration: underline dotted rgba(244, 247, 255, 0.55);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.ltb .ltb-w--unsure {
	text-decoration: underline wavy #f2b35a;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.22em;
}

.ltb .ltb-w:hover,
.ltb .ltb-w:focus-visible {
	background: rgba(255, 255, 255, 0.1);
}

.ltb .ltb-caret {
	display: inline-block;
	width: 0.45em;
	height: 1em;
	margin-left: 3px;
	vertical-align: -0.1em;
	background: rgba(244, 247, 255, 0.45);
	animation: ltb-blink 1s steps(1) infinite;
}

@keyframes ltb-blink {
	50% { opacity: 0; }
}

.ltb .ltb-latin__bar {
	display: flex;
	align-items: center;
	gap: 10px 20px;
	flex-wrap: wrap;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--ltb-stroke);
}

.ltb .ltb-latin__field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	min-width: 0;
}

/* Too narrow for the label and a readable menu side by side: the label goes on top */
.ltb .ltb-latin__field .ltb-select {
	min-width: min(100%, 10.5rem);
}

/* Latin spelling: a stop slider like Tone (.ltb-tone__track, added by view.js), flag over the preview word */
.ltb .ltb-styles {
	flex-basis: 100%;
}

.ltb .ltb-styles .ltb-tone__rail {
	background: rgba(223, 230, 245, 0.35);
}

.ltb .ltb-style {
	flex-direction: column;
	gap: 2px;
	padding-left: 0;
	padding-right: 0;
	color: var(--ltb-text);
}

.ltb .ltb-style__flag {
	font-size: 1.2rem;
	line-height: 1;
}

.ltb .ltb-style[aria-checked="true"] .ltb-style__flag {
	text-decoration: none;
}

.ltb .ltb-style__eg {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.ltb .ltb-style__badge {
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ltb-cta-2);
	color: var(--ltb-cta-ink);
	font-size: 0.65rem;
	font-weight: 700;
}

.ltb .ltb-latin__bar .ltb-label {
	color: var(--ltb-muted);
	font-size: 0.92rem;
	white-space: nowrap;
}

.ltb .ltb-upsell {
	margin-top: 8px !important;
	color: var(--ltb-muted);
	font-size: 0.9rem;
}

.ltb .ltb-upsell a {
	color: var(--ltb-amber-1);
}

/* Confidence chip in the Cyrillic card */
.ltb .ltb-band {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	padding: 3px 12px;
	border: 1px solid var(--ltb-stroke-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--ltb-text);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: help;
}

.ltb .ltb-band__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
}

.ltb .ltb-band--high .ltb-band__dot { color: var(--ltb-check); }
.ltb .ltb-band--medium .ltb-band__dot { color: var(--ltb-amber-1); }
.ltb .ltb-band--low .ltb-band__dot { color: #f2a65a; }

/* Status: progress, restarting, errors */
.ltb .ltb-status {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
	color: var(--ltb-muted);
	font-size: 0.95rem;
}

.ltb .ltb-status:empty {
	display: none;
}

.ltb .ltb-status.is-error {
	padding: 10px 12px;
	border: 1px solid rgba(248, 217, 143, 0.5);
	border-radius: 12px;
	background: rgba(248, 217, 143, 0.1);
	color: var(--ltb-text);
}

.ltb .ltb-spin {
	width: 16px;
	height: 16px;
	border: 2px solid var(--ltb-stroke-strong);
	border-top-color: var(--ltb-cta-1);
	border-radius: 50%;
	animation: ltb-spin 0.8s linear infinite;
}

@keyframes ltb-spin {
	to { transform: rotate(360deg); }
}

.ltb .ltb-btn {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 6px 16px;
	border: 1px solid var(--ltb-stroke-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--ltb-text);
	font-size: 0.92rem;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
}

.ltb .ltb-btn--yellow {
	border-color: var(--ltb-cta-1);
	background: var(--ltb-cta-1);
	color: var(--ltb-cta-ink) !important;
}

.ltb .ltb-understood {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 12px;
	padding: 6px 36px 6px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--ltb-muted);
	font-size: 0.92rem;
}

.ltb .ltb-understood__label {
	font-weight: 650;
}

.ltb .ltb-understood__text {
	color: var(--ltb-text);
}

.ltb .ltb-x {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ltb-muted);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

/* ------------------------------------------------------------ dictionary hits */

.ltb .ltb-card--dict .ltb-card__head .ltb-ico {
	width: 26px;
	height: 26px;
	color: var(--ltb-text);
}

.ltb .ltb-matches__list {
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--ltb-stroke);
	border-radius: 16px;
	background: var(--ltb-card);
	list-style: none;
	overflow: hidden;
}

.ltb .ltb-match {
	display: grid;
	grid-template-columns: 40px minmax(5rem, auto) minmax(0, 1fr) auto 40px;
	align-items: center;
	gap: 6px 14px;
	margin: 0 !important;
	padding: 10px 14px;
	border-top: 1px solid var(--ltb-stroke);
}

.ltb .ltb-match:first-child {
	border-top: 0;
}

.ltb .ltb-match__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ltb-check);
	color: var(--ltb-check-ink);
	box-shadow: 0 0 14px -2px rgba(47, 212, 92, 0.6);
}

.ltb .ltb-match__lemma {
	color: var(--ltb-lemma);
	font-size: 1.2rem;
	font-weight: 700;
}

.ltb .ltb-match__lat {
	color: var(--ltb-muted);
	font-size: 0.95rem;
	font-weight: 500;
}

/* Tone not supported yet: Auto stays selected, the rest dimmed and explained on tap */
.ltb .ltb-tone.is-soon .ltb-tone__opt[aria-checked="false"] {
	opacity: 0.55;
	cursor: help;
}

.ltb .ltb-tone.is-soon .ltb-tone__rail,
.ltb .ltb-tone.is-soon .ltb-tone__stop {
	opacity: 0.5;
}

.ltb .ltb-tone__label .ltb-soon-tag {
	margin-left: 8px;
	vertical-align: 2px;
}

.ltb .ltb-match__gloss {
	color: var(--ltb-text);
	font-size: 1rem;
}

.ltb .ltb-match__ref {
	color: var(--ltb-muted);
	font-size: 0.85rem;
	text-align: right;
	white-space: nowrap;
}

.ltb .ltb-match__book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ltb-stroke-strong);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--ltb-text);
	cursor: pointer;
}

.ltb .ltb-match__book:hover {
	border-color: var(--ltb-check);
}

.ltb .ltb-matches__empty {
	padding: 14px 16px;
	border: 1px solid var(--ltb-stroke);
	border-radius: 16px;
	background: var(--ltb-card);
	color: var(--ltb-muted);
}

/* ------------------------------------------------------------ limit card, popover, footer */

.ltb .ltb-limit {
	position: relative;
	padding: 16px 46px 16px 18px;
	border: 1px solid rgba(248, 217, 143, 0.55);
	border-radius: var(--ltb-radius);
	background: var(--ltb-glass);
	-webkit-backdrop-filter: blur(var(--ltb-blur));
	backdrop-filter: blur(var(--ltb-blur));
}

.ltb .ltb-limit__title {
	font-weight: 700;
}

.ltb .ltb-limit__body {
	margin: 4px 0 12px !important;
	color: var(--ltb-muted);
	font-size: 0.95rem;
}

.ltb .ltb-pop {
	position: absolute;
	z-index: 50;
	max-width: min(340px, calc(100% - 16px));
	padding: 9px 13px;
	border: 1px solid var(--ltb-stroke-strong);
	border-radius: 12px;
	background: #0a1228;
	color: var(--ltb-text);
	box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.85);
	font-size: 0.9rem;
	line-height: 1.45;
	white-space: pre-line;
}

.ltb .ltb-foot {
	margin-top: 14px;
	padding: 8px 14px;
	border-radius: 12px;
	background: rgba(11, 20, 38, 0.72);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.ltb .ltb-privacy,
.ltb .ltb-plan {
	color: var(--ltb-muted);
	font-size: 0.8rem;
	line-height: 1.5;
}

.ltb .ltb-privacy a,
.ltb .ltb-plan a {
	color: var(--ltb-text);
}

/* ------------------------------------------------------------ Machine-translation note, opt-out, credits */

.ltb .ltb-mt-note {
	margin: 0;
	color: var(--ltb-faint);
	font-size: 0.85rem;
}

.ltb .ltb-keep {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	color: var(--ltb-muted);
	font-size: 0.85rem;
	cursor: pointer;
}

.ltb .ltb-keep input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--ltb-auto);
}

.ltb .ltb-credits {
	margin: 8px 0 0;
	color: var(--ltb-faint);
	font-size: 0.78rem;
	line-height: 1.5;
}

/* ------------------------------------------------------------ Rating corner of each result box */

.ltb .ltb-rate {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	width: fit-content;
	margin: 12px 0 0 auto;
}

.ltb .ltb-rate[hidden] {
	display: none;
}

.ltb .ltb-rate__faces {
	display: flex;
	gap: 2px;
}

.ltb .ltb-rate .ltb-face {
	width: 38px;
	height: 38px;
}

.ltb .ltb-rate .ltb-face__ico {
	width: 26px;
	height: 26px;
}

.ltb .ltb-rate__label {
	color: var(--ltb-faint);
	font-size: 0.78rem;
	white-space: nowrap;
}

/* Thanks line and note box, moved by view.js right under the rating corner that was used */
.ltb .ltb-card__body .ltb-feedback {
	gap: 8px;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
}

.ltb .ltb-card__body .ltb-feedback__thanks {
	text-align: right;
}

.ltb .ltb-feedback__reply {
	margin: 0;
	color: var(--ltb-muted);
	font-size: 0.85rem;
	text-align: right;
}

.ltb .ltb-feedback__reply a {
	color: var(--ltb-text);
}

/* ------------------------------------------------------------ Feedback: happy / meh / sad, then an optional note */

.ltb .ltb-feedback {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid var(--ltb-stroke);
	border-radius: var(--ltb-radius-s);
	background: var(--ltb-card);
}

.ltb .ltb-feedback[hidden],
.ltb .ltb-feedback__more[hidden] {
	display: none;
}

.ltb .ltb-feedback__ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
}

.ltb .ltb-feedback__q {
	color: var(--ltb-muted);
	font-size: 0.95rem;
	font-weight: 600;
}

.ltb .ltb-feedback__faces {
	display: flex;
	gap: 6px;
}

.ltb .ltb-face {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--ltb-faint);
	cursor: pointer;
	transition: color 0.15s, background-color 0.15s, transform 0.15s;
}

.ltb .ltb-face--happy:hover, .ltb .ltb-face--happy[aria-checked="true"] { color: #43d675; }
.ltb .ltb-face--meh:hover, .ltb .ltb-face--meh[aria-checked="true"] { color: var(--ltb-amber-1); }
.ltb .ltb-face--sad:hover, .ltb .ltb-face--sad[aria-checked="true"] { color: #ff8a8a; }

.ltb .ltb-face[aria-checked="true"] {
	border-color: currentColor;
	background: rgba(255, 255, 255, 0.08);
	transform: scale(1.06);
}

.ltb .ltb-feedback__more {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.ltb .ltb-feedback .ltb-feedback__text {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	padding: 8px 12px;
	font-size: 0.95rem;
	resize: vertical;
}

.ltb .ltb-feedback__thanks {
	margin: 0;
	color: var(--ltb-muted);
	font-size: 0.9rem;
}

.ltb .ltb-feedback__thanks:empty {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.ltb .ltb-tone__thumb,
	.ltb .ltb-face {
		transition: none;
	}
}

/* ------------------------------------------------------------ small screens */

/* Input panel narrower than 560px */
@container ltb-in (max-width: 560px) {
	/* Four "talking to" stops: glyph above the label */
	.ltb .ltb-tone--listener .ltb-tone__opt {
		flex-direction: column;
		gap: 2px;
		padding-left: 0;
		padding-right: 0;
		font-size: 0.88rem;
	}

	.ltb .ltb-variety__opt {
		gap: 8px;
		min-height: 64px;
		padding: 8px 10px;
	}

	.ltb .ltb-compass {
		width: 42px;
		height: 30px;
	}

	.ltb .ltb-variety__name {
		font-size: 1.1rem;
	}

	.ltb .ltb-variety__country {
		font-size: 0.88rem;
	}
}

/* Very narrow: compass above the name, slider glyphs above their labels */
@container ltb-in (max-width: 400px) {
	.ltb .ltb-variety__opt {
		flex-direction: column;
		align-items: flex-start;
	}

	.ltb .ltb-tone__opt {
		flex-direction: column;
		gap: 2px;
		padding-left: 0;
		padding-right: 0;
		font-size: 0.84rem;
	}
}

/* Result column narrower than 480px: confidence below the title, smaller marks */
@container ltb-out (max-width: 480px) {
	.ltb .ltb-card__head {
		flex-wrap: wrap;
		row-gap: 8px;
	}

	.ltb .ltb-card__title {
		font-size: 1.05rem !important;
	}

	.ltb .ltb-card__band {
		order: 3;
		flex-basis: 100%;
	}

	.ltb .ltb-card__actions {
		order: 4;
	}

	.ltb .ltb-card__body {
		padding: 14px;
	}

	.ltb .ltb-mark--flag {
		width: 40px;
		height: 27px;
	}

	.ltb .ltb-latin__bar {
		flex-wrap: wrap;
	}
}

/* Very narrow cards: smaller preview words so six stops still fit */
@container ltb-out (max-width: 360px) {
	.ltb .ltb-style__eg {
		font-size: 0.8rem;
	}
}

/* Dictionary rows stack when the result column is narrow */
@container ltb-out (max-width: 620px) {
	.ltb .ltb-match {
		grid-template-columns: 38px minmax(0, 1fr) 40px;
		grid-template-areas:
			"check lemma book"
			"check gloss book"
			"check ref book";
		row-gap: 0;
	}

	.ltb .ltb-match__check { grid-area: check; }
	.ltb .ltb-match__lemma { grid-area: lemma; }
	.ltb .ltb-match__gloss { grid-area: gloss; }
	.ltb .ltb-match__ref { grid-area: ref; text-align: left; white-space: normal; }
	.ltb .ltb-match__book { grid-area: book; }
}

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

/* ============================================================
 * Gutenberg Cover behind the translator: Additional CSS class "lt-video-hero".
 * The media belongs to the Cover block (Replace in the editor); nothing is hardcoded.
 * ============================================================ */

.wp-block-cover.lt-video-hero {
	isolation: isolate;
	box-sizing: border-box;
	padding: clamp(18px, 3.2vw, 52px) max(clamp(10px, 3vw, 36px), env(safe-area-inset-right)) clamp(18px, 3.2vw, 52px) max(clamp(10px, 3vw, 36px), env(safe-area-inset-left));
	/* Deliberate static backdrop until (or instead of) the video playing */
	background: radial-gradient(120% 90% at 70% 20%, #1c2f57 0%, #0b1426 55%, #070d1a 100%);
}

.wp-block-cover.lt-video-hero.has-lt-fallback {
	background: var(--lt-fallback) center / cover no-repeat, #0b1426;
}

.wp-block-cover.lt-video-hero .wp-block-cover__video-background {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	user-select: none;
	opacity: 0;
	transition: opacity 0.6s ease;
}

/* Only a playing video shows: never a random paused frame */
.wp-block-cover.lt-video-hero.is-playing .wp-block-cover__video-background {
	opacity: 1;
}

.wp-block-cover.lt-video-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
	width: min(1360px, 100%);
	max-width: 100%;
	margin-inline: auto;
}

.wp-block-cover.lt-video-hero .wp-block-cover__inner-container > .ltb,
.wp-block-cover.lt-video-hero .wp-block-cover__inner-container > :has(> .ltb),
.wp-block-cover.lt-video-hero .wp-block-cover__inner-container > :has(> .ltb) > .ltb {
	max-width: none;
	width: 100%;
}

@media (max-width: 760px) {
	.wp-block-cover.lt-video-hero {
		padding: 14px max(10px, env(safe-area-inset-right)) 18px max(10px, env(safe-area-inset-left));
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-cover.lt-video-hero .wp-block-cover__video-background {
		display: none;
	}
}

.ltb .ltb-mark--rusyn {
	width: 50px;
	height: 30px;
}

@container ltb-out (max-width: 480px) {
	.ltb .ltb-mark--rusyn {
		width: 45px;
		height: 27px;
	}
}

/* Rusynator: a blue-yellow-blue stripe (the arms' bars) along the top of the input panel and the Rusyn coat of arms faint behind it */
.ltb.ltb--rusyn .ltb__pane--in {
	position: relative;
	isolation: isolate;
	background:
		linear-gradient(180deg, var(--ltb-accent-1) 0 33.4%, var(--ltb-accent-2) 33.4% 66.7%, var(--ltb-accent-3) 66.7%) top / 100% 9px no-repeat,
		var(--ltb-glass);
}

.ltb.ltb--rusyn .ltb__pane--in::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: url("../../assets/img/rusyn-herb.svg") no-repeat center 62% / auto 58%;
	opacity: 0.09;
	pointer-events: none;
}

/* Rusynator: four regional varieties (Cracow Region, Prešov Region, Pannonian, Subcarpathian),
   two by two (three in a row left the names too cramped for a fourth), 2026-10-30 */
.ltb.ltb--rusyn .ltb-variety {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ltb.ltb--rusyn .ltb-variety__opt {
	gap: 8px;
	padding: 8px 10px;
}

.ltb.ltb--rusyn .ltb-compass {
	width: 40px;
	height: 28px;
}

.ltb.ltb--rusyn .ltb-variety__name {
	font-size: 0.95rem;
	line-height: 1.2;
}

@container ltb-in (max-width: 520px) {
	.ltb.ltb--rusyn .ltb-variety__opt {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

/* Pannonian is an experimental model: a small tag on its button and a note when chosen */
.ltb .ltb-variety__exp {
	display: inline-block;
	margin-top: 3px;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(255, 212, 92, 0.16);
	color: var(--ltb-amber-1);
	max-width: 100%;
	overflow: hidden;
	font-size: 0.68rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: top;
}

.ltb.ltb--rusyn .ltb-variety__text {
	min-width: 0;
	max-width: 100%;
}

.ltb .ltb-variety__opt[aria-checked="true"] .ltb-variety__exp {
	background: rgba(29, 21, 3, 0.14);
	color: var(--ltb-amber-ink);
}

.ltb .ltb-notice--exp {
	margin: 10px 0 0;
}

.ltb .ltb-tip {
	margin: 6px 0 0;
	color: var(--ltb-muted);
	font-size: 0.85rem;
}

/* Pannonian and East (Subcarpathian) have no Latin spelling, no dictionary and no read-aloud voice yet
   (engine agent, 2026-10-29 and 2026-10-30) */
.ltb[data-variety="pannonian"] [data-ltb-latin],
.ltb[data-variety="pannonian"] [data-ltb-latin-bar],
.ltb[data-variety="pannonian"] .ltb-card--dict,
.ltb[data-variety="pannonian"] .ltb-say,
.ltb[data-variety="east"] [data-ltb-latin],
.ltb[data-variety="east"] [data-ltb-latin-bar],
.ltb[data-variety="east"] .ltb-card--dict,
.ltb[data-variety="east"] .ltb-say {
	display: none !important;
}

.ltb.ltb--rusyn .ltb-variety__country {
	font-size: 0.78rem;
}

/* One result card (2026-10-29): the Latin spelling sits under the Cyrillic, smaller and quieter,
   like the transliteration line in Google Translate, with its own small copy button */
.ltb .ltb-latin {
	margin-top: 10px;
}

.ltb .ltb-latin__line {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
}

.ltb .ltb-latin .ltb-lat {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--ltb-muted);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.45;
}

.ltb .ltb-latin .ltb-lat .ltb-placeholder {
	font-size: 0.95rem;
}

.ltb .ltb-latin .ltb-lat.is-missing {
	font-size: 0.88rem;
}

/* Labelled copy button right after each spelling (2026-11-01) */
.ltb .ltb-copyrow {
	display: flex;
	margin-top: 8px;
}

.ltb .ltb-copy.ltb-copy--text {
	gap: 6px;
	width: auto;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1;
}

.ltb .ltb-copy.ltb-copy--text .ltb-ico {
	width: 16px;
	height: 16px;
}

.ltb .ltb-card__body > .ltb-latin__bar {
	margin-top: 12px;
	padding-top: 10px;
}

/* Tone, I am a, I'm talking to on one shared four-column grid (Petro, 2026-10-29): Woman, Auto and Man
   (and Informal, Auto, Formal) line up in the same columns; "I'm talking to a" runs on to Group, so the
   three-option sliders are shorter. First label flush left, Group flush right, the rest centred on their stops.
   (The Latin-spelling slider keeps its own centred columns.) */
.ltb .ltb-tone .ltb-tone__track {
	--edge: 14px;
	--step: calc((100% - 2 * var(--edge)) / 3);
	grid-template-columns: 0.5fr 1fr 1fr 0.5fr;
}

.ltb .ltb-tone .ltb-tone__rail {
	left: var(--edge);
	right: calc(var(--edge) + (4 - var(--n)) * (100% - 2 * var(--edge)) / 3);
}

.ltb .ltb-tone .ltb-tone__stop {
	left: calc(var(--edge) + var(--i) * (100% - 2 * var(--edge)) / 3);
}

.ltb .ltb-tone .ltb-tone__thumb {
	left: calc(var(--edge) + var(--pos) * (100% - 2 * var(--edge)) / 3);
}

.ltb .ltb-tone .ltb-tone__opt {
	overflow: visible;
}

.ltb .ltb-tone .ltb-tone__opt:first-of-type {
	justify-content: flex-start;
	padding-left: 0;
}

.ltb .ltb-tone--listener .ltb-tone__opt:last-of-type {
	justify-content: flex-end;
	padding-right: 0;
}

@container ltb-in (max-width: 560px) {
	.ltb .ltb-tone .ltb-tone__opt:first-of-type {
		align-items: flex-start;
	}

	.ltb .ltb-tone--listener .ltb-tone__opt:last-of-type {
		align-items: flex-end;
	}
}
