/*
 * LemkoTran homepage modules. Every rule is scoped to .lemkotran-home (a class on each module's
 * Group block), so other pages and the translator block itself are untouched.
 * Colours: the flag of the Lemko-Rusyn Republic (1918–1920), blue #6666FF, gold #CC9933, green #33CC66,
 * as on the translator block (Petro, 2026-10-29: no red-white-blue on the Lemko pages).
 */

.lemkotran-home {
	--lth-navy: #0a1930;
	--lth-blue: #6666ff;
	--lth-gold: #cc9933;
	--lth-green: #33cc66;
	--lth-gold-ink: #1d1503;
	--lth-ivory: #f7f2e8;
	--lth-ink: #0a1930;
	--lth-muted: #4a5873;
	--lth-line: #dfe4ee;
	--lth-radius: 18px;
	box-sizing: border-box;
}

.lemkotran-home *,
.lemkotran-home *::before,
.lemkotran-home *::after {
	box-sizing: inherit;
}

/* ---------- Hero headline inside the video cover ---------- */

.lemkotran-home.lth-hero-copy {
	max-width: 1200px;
	margin: 0 auto 22px;
	padding: 0 4px;
	color: #fff;
	text-align: left;
}

.lemkotran-home .lth-headline {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.4rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.lemkotran-home .lth-headline .lth-c-blue {
	color: var(--lth-blue);
}

.lemkotran-home .lth-headline .lth-c-red,
.lemkotran-home .lth-headline .lth-c-green {
	color: var(--lth-green);
}

.lemkotran-home .lth-lede {
	max-width: 46em;
	margin: 0;
	color: #eef3ff;
	font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
	line-height: 1.5;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- Section shell ---------- */

.lemkotran-home.lth-section {
	padding: clamp(40px, 6vw, 72px) 16px;
}

.lemkotran-home .lth-inner {
	max-width: 1200px;
	margin-inline: auto;
}

.lemkotran-home .lth-kicker {
	margin: 0 0 6px;
	color: var(--lth-ink);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lemkotran-home h2.lth-title {
	margin: 0 0 10px;
	color: var(--lth-ink);
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
	line-height: 1.15;
}

.lemkotran-home .lth-sub {
	margin: 0 0 24px;
	color: var(--lth-muted);
}

/* Shared card and button look */
.lemkotran-home .lth-card {
	height: 100%;
	margin: 0;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--lth-line);
	border-radius: var(--lth-radius);
	box-shadow: 0 14px 40px -28px rgba(10, 25, 48, 0.5);
	color: var(--lth-ink);
}

.lemkotran-home .lth-card h3 {
	margin: 0 0 8px;
	font-size: 1.25rem;
	line-height: 1.25;
}

.lemkotran-home .lth-card p {
	margin: 0 0 14px;
	color: var(--lth-muted);
	line-height: 1.55;
}

.lemkotran-home .lth-badge {
	display: inline-block;
	margin: 0 0 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff4dc;
	color: #7a5200;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lemkotran-home.lemkotran-home .wp-block-button__link {
	border-radius: 999px;
	font-weight: 600;
}

.lemkotran-home.lemkotran-home .wp-block-buttons {
	gap: 10px;
}

/* The theme paints every button's background-color with !important; these module buttons need theirs */
.lemkotran-home.lemkotran-home .lth-btn-blue .wp-block-button__link {
	background-color: var(--lth-blue) !important;
	color: #fff;
}

.lemkotran-home.lemkotran-home .lth-btn-gold .wp-block-button__link,
.lemkotran-home.lemkotran-home .lth-btn-red .wp-block-button__link {
	background-color: var(--lth-gold) !important;
	color: var(--lth-gold-ink) !important;
}

.lemkotran-home.lemkotran-home .lth-btn-ig .wp-block-button__link {
	background-color: var(--lth-gold) !important;
	color: var(--lth-gold-ink) !important;
}

.lemkotran-home.lemkotran-home .lth-btn-ghost .wp-block-button__link {
	background-color: transparent !important;
	border: 2px solid currentColor;
	color: var(--lth-blue) !important;
	box-shadow: none;
}

.lemkotran-home.lth-stories .lth-btn-ghost .wp-block-button__link {
	color: #fff !important;
}

.lemkotran-home.lemkotran-home .wp-block-button__link:hover,
.lemkotran-home.lemkotran-home .wp-block-button__link:focus-visible {
	filter: brightness(1.08);
	text-decoration: none;
}

/* The theme sets light heading weights; modules use bold titles */
.lemkotran-home.lemkotran-home h2,
.lemkotran-home.lemkotran-home h3 {
	font-weight: 700;
}

.lemkotran-home.lemkotran-home .lth-headline {
	font-weight: 800;
}

/* ---------- Declaration of Conformity band (ivory, embroidery-like border) ---------- */

.lemkotran-home.lth-declaration {
	position: relative;
	padding: 34px 16px;
	background: var(--lth-ivory);
	color: var(--lth-ink);
	border-block: 6px solid transparent;
	border-image: repeating-linear-gradient(90deg, var(--lth-blue) 0 10px, var(--lth-ivory) 10px 14px, var(--lth-gold) 14px 24px, var(--lth-ivory) 24px 28px, var(--lth-green) 28px 38px, var(--lth-ivory) 38px 42px) 6;
}

.lemkotran-home.lth-declaration .lth-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.lemkotran-home.lth-declaration h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
	line-height: 1.1;
}

.lemkotran-home.lth-declaration .lth-decl-sub {
	margin: 4px 0 6px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
}

.lemkotran-home.lth-declaration .lth-decl-ref {
	margin: 0;
	color: var(--lth-muted);
	font-size: 0.92rem;
}

/* ---------- Social: YouTube + Instagram ---------- */

.lemkotran-home.lth-social {
	background: #f4f6fb;
}

.lemkotran-home.lth-social .wp-block-columns {
	gap: 24px;
	margin: 0;
}

.lemkotran-home.lth-social .wp-block-embed {
	margin: 0 0 16px;
	border-radius: 14px;
	overflow: hidden;
}

.lemkotran-home .lth-ig {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(204, 153, 51, 0.2), transparent 60%),
		radial-gradient(120% 90% at 100% 100%, rgba(102, 102, 255, 0.18), transparent 60%),
		#fff;
}

.lemkotran-home .lth-ig .lth-handle {
	margin: 0 0 14px;
	color: var(--lth-ink);
	font-size: 1.4rem;
	font-weight: 800;
}

/* ---------- Community cards ---------- */

.lemkotran-home.lth-community .wp-block-columns {
	gap: 24px;
	margin: 0;
}

.lemkotran-home .lth-cal-visual {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin: 0 0 16px;
	padding: 14px;
	border-radius: 12px;
	background: var(--lth-navy);
}

.lemkotran-home .lth-cal-visual span {
	aspect-ratio: 1;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
}

.lemkotran-home .lth-cal-visual span:nth-child(9),
.lemkotran-home .lth-cal-visual span:nth-child(17) {
	background: var(--lth-blue);
}

.lemkotran-home .lth-cal-visual span:nth-child(17) {
	background: var(--lth-gold);
}

.lemkotran-home .lth-cal-visual span:nth-child(24) {
	background: var(--lth-green);
}

.lemkotran-home .lth-list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.lemkotran-home .lth-list li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 26px;
	color: var(--lth-ink);
}

.lemkotran-home .lth-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--lth-green);
	font-weight: 800;
}

.lemkotran-home .lth-optin {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.lemkotran-home .lth-optin input {
	flex: 1 1 180px;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--lth-line);
	border-radius: 999px;
	background: #f4f6fb;
	color: var(--lth-muted);
	font: inherit;
}

.lemkotran-home .lth-optin button {
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: #c8d0de;
	color: #3b4760;
	font: inherit;
	font-weight: 600;
	cursor: not-allowed;
}

.lemkotran-home .lth-note {
	font-size: 0.85rem;
}

/* ---------- Comments: preview + native thread in a Details block ---------- */

.lemkotran-home.lth-comments {
	background: #fff;
}

.lemkotran-home .lth-thread {
	margin: 28px 0 0;
	border: 1px solid var(--lth-line);
	border-radius: var(--lth-radius);
	background: #fbfcfe;
}

.lemkotran-home .lth-thread > summary {
	padding: 16px 22px;
	color: var(--lth-blue);
	font-weight: 700;
	cursor: pointer;
}

.lemkotran-home .lth-thread[open] > summary {
	border-bottom: 1px solid var(--lth-line);
}

.lemkotran-home .lth-thread > :not(summary) {
	padding-inline: 22px;
}

/* ---------- Real people. Real stories. ---------- */

.lemkotran-home.lth-stories {
	background:
		radial-gradient(80% 120% at 85% 20%, rgba(102, 102, 255, 0.35), transparent 60%),
		radial-gradient(60% 100% at 10% 90%, rgba(51, 204, 102, 0.22), transparent 60%),
		var(--lth-navy);
	color: #fff;
}

.lemkotran-home.lth-stories h2.lth-title {
	color: #fff;
}

.lemkotran-home.lth-stories .lth-sub {
	color: #d5def0;
	max-width: 40em;
}

@media (max-width: 781px) {
	.lemkotran-home .lth-card {
		padding: 20px;
	}
}

/* Comment excerpts: left-aligned cards (the theme centres quotes) */
.lemkotran-home .ltcp,
.lemkotran-home .ltcp .ltcp__quote,
.lemkotran-home .ltcp .ltcp__quote p {
	text-align: left;
}

/* Section labels carry a small Lemko-flag bar */
.lemkotran-home .lth-kicker::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 9px;
	margin-right: 8px;
	vertical-align: 0;
	background: linear-gradient(var(--lth-blue) 0 33.4%, var(--lth-gold) 33.4% 66.7%, var(--lth-green) 66.7%);
	border-radius: 2px;
}

/* Rusynator pages (body.lth-rusyn, see includes/home.php): accents from the coat of arms of Rusyns in
   Slovakia, its blue and yellow bars (#034EA2, #FED700). The arms' red stays in the arms only, so the
   page never reads as red-white-blue (Petro, 2026-10-29). Lighter tint on the dark video only. */
body.lth-rusyn .lemkotran-home {
	--lth-blue: #034ea2;
	--lth-gold: #fed700;
	--lth-gold-ink: #1d1a03;
	--lth-green: #034ea2;
}

body.lth-rusyn .lemkotran-home .lth-headline .lth-c-blue {
	color: #4d8fe6;
}

body.lth-rusyn .lemkotran-home .lth-headline .lth-c-green {
	color: #fed700;
}

/* Section label bar: the arms' blue and yellow bars */
body.lth-rusyn .lemkotran-home .lth-kicker::before {
	background: repeating-linear-gradient(#034ea2 0 2.25px, #fed700 2.25px 4.5px);
}

body.lth-rusyn .lemkotran-home .lth-cal-visual span:nth-child(17) {
	background: #fed700;
}

body.lth-rusyn .lemkotran-home .lth-ig {
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(254, 215, 0, 0.2), transparent 60%),
		radial-gradient(120% 90% at 100% 100%, rgba(3, 78, 162, 0.16), transparent 60%),
		#fff;
}

body.lth-rusyn .lemkotran-home.lth-stories {
	background:
		radial-gradient(80% 120% at 85% 20%, rgba(3, 78, 162, 0.55), transparent 60%),
		radial-gradient(60% 100% at 10% 90%, rgba(254, 215, 0, 0.14), transparent 60%),
		var(--lth-navy);
}

body.lth-rusyn .lemkotran-home .ltcp {
	--ltcp-blue: #034ea2;
}

body.lth-rusyn .lemkotran-home .ltcp .ltcp__quote p::before,
body.lth-rusyn .lemkotran-home .ltcp .ltcp__quote p::after {
	color: #034ea2;
}

/* Coat of arms at the top of the Rusynator, beside the headline */
.lemkotran-home.lth-has-arms {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.5vw, 28px);
}

.lemkotran-home.lth-has-arms .lth-arms {
	flex: none;
	width: clamp(64px, 8vw, 104px);
	margin: 0;
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.lemkotran-home.lth-has-arms .lth-arms img {
	display: block;
	width: 100% !important;
	height: auto;
}

.lemkotran-home.lth-has-arms .lth-hero-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* Video cover: keep the right-hand side clear for the woman in the scarf (the mirrored metro clip puts her
   top right): the headline wraps on the left. The result card starts level with the text box
   (view.js alignOutput), which leaves her face and shoulders clear (Petro, 2026-10-29). */
@media (min-width: 900px) {
	.lemkotran-home.lth-hero-copy .lth-headline,
	.lemkotran-home.lth-hero-copy .lth-lede {
		max-width: 780px;
	}
}

/* Lemko page: the Lemko-Rusyn Republic flag in the place of the Rusyn emblem */
.lemkotran-home.lth-has-arms .lth-arms--flag img {
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Community Calendar on its own full-width row above the other community cards (events table, 2026-10-30) */
.lemkotran-home .lth-cal-card {
	height: auto;
	margin: 0 0 24px;
}

/* ---------- About the language (prose section) ---------- */

.lemkotran-home.lth-about p:not(.lth-kicker) {
	max-width: 46em;
	color: var(--lth-ink);
	line-height: 1.65;
}

/* About section: short intro stays open; history and culture sit in a core Details block (.lth-more)
   whose text is in the initial HTML for crawlers and opens with the keyboard (2026-11-06) */
.lemkotran-home .lth-more {
	max-width: 46em;
	margin: 28px 0;
	border: 1px solid var(--lth-line);
	border-radius: var(--lth-radius);
	background: #fbfcfe;
}

.lemkotran-home .lth-more > summary {
	padding: 16px 22px;
	color: var(--lth-blue);
	font-weight: 700;
	cursor: pointer;
}

.lemkotran-home .lth-more > summary:focus-visible {
	outline: 2px solid var(--lth-blue);
	outline-offset: 2px;
}

.lemkotran-home .lth-more[open] > summary {
	border-bottom: 1px solid var(--lth-line);
}

.lemkotran-home .lth-more > :not(summary) {
	padding-inline: 22px;
}

/* "More about the language ↓" text link under the translator, jumping to the About section
   (pl/uk/sk pages, Petro 2026-11-03: a quiet link, not a button, so the translator stays the one CTA) */
.lemkotran-home.lth-about-jump {
	max-width: 1200px;
	margin: 18px auto 0;
	text-align: center;
	font-size: 0.95rem;
}

.lemkotran-home.lth-about-jump a {
	color: #eef3ff;
	text-decoration: underline;
	text-decoration-color: rgba(238, 243, 255, 0.45);
	text-underline-offset: 3px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.lemkotran-home.lth-about-jump a:hover,
.lemkotran-home.lth-about-jump a:focus-visible {
	text-decoration-color: currentColor;
}

/* clear the sticky site header when the About section is the jump target */
.lemkotran-home.lth-about {
	scroll-margin-top: var(--lth-about-offset, 80px);
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.lemkotran-home.lth-about) {
		scroll-behavior: smooth;
	}
}

/* "Install the app" link + how-to dialog (includes/pwa.php, assets/js/install.js; 2026-11-03).
   The link looks like the "More about the language" link beside it. */
.lemkotran-home.lth-about-jump .lth-install {
	padding: 0;
	border: 0;
	background: none;
	color: #eef3ff;
	font: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(238, 243, 255, 0.45);
	text-underline-offset: 3px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.lemkotran-home.lth-about-jump .lth-install:hover,
.lemkotran-home.lth-about-jump .lth-install:focus-visible {
	text-decoration-color: currentColor;
}

.lemkotran-home.lth-about-jump .lth-install-sep {
	color: rgba(238, 243, 255, 0.6);
}

.lemkotran-home.lt-install-dlg {
	width: min(420px, calc(100vw - 32px));
	padding: 22px 22px 18px;
	border: 0;
	border-radius: var(--lth-radius);
	background: #fff;
	color: var(--lth-ink);
	box-shadow: 0 24px 60px rgba(10, 25, 48, 0.35);
}

.lemkotran-home.lt-install-dlg::backdrop {
	background: rgba(10, 25, 48, 0.55);
}

.lemkotran-home .lt-install-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 8px;
}

.lemkotran-home .lt-install-head img {
	flex: none;
	border-radius: 11px;
}

.lemkotran-home .lt-install-head h2 {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

.lemkotran-home.lt-install-dlg ol {
	margin: 12px 0 18px;
	padding-left: 1.3em;
	line-height: 1.55;
}

.lemkotran-home.lt-install-dlg li + li {
	margin-top: 8px;
}

.lemkotran-home .lt-install-share {
	vertical-align: -3px;
	color: #007aff;
}

.lemkotran-home .lt-install-close {
	display: block;
	width: 100%;
	padding: 11px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--lth-gold) !important;
	color: var(--lth-gold-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* Phones: one link per line instead of a line break inside a link */
@media (max-width: 599px) {
	.lemkotran-home.lth-about-jump:has(.lth-install) {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.lemkotran-home.lth-about-jump .lth-install-sep {
		display: none;
	}
}
