/*
 * Landing V3 (#392): additions of the app to the design's own CSS (styles.css, update.css and
 * refinements.css are copied from docs/design/landing-2026-11-04/dist/ unchanged except the font
 * path, so a new export of the design can replace them as files). Loaded last.
 */

/* #397: the walkthrough video in the preview dialog takes the place of the design's screenshot gallery. */
.media-stage video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* #412: the button that opens the video shows a still of it instead of the design's blue placeholder.
   The still covers the box from the top (heading and the template cards), a light veil keeps the
   play button and the caption readable on it. */
.walkthrough-still {
	/* Until the lazy still loads, a light background instead of the design's blue. */
	background: #fdfbf3;
}

.walkthrough-still::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #0b1d411a;
	transition: background .2s;
}

.walkthrough-still:hover::before {
	background: #0b1d410d;
}

.walkthrough-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform .25s;
}

.walkthrough-still:hover .walkthrough-poster {
	transform: scale(1.03);
}

.walkthrough-still .play,
.walkthrough-caption {
	position: relative;
	z-index: 2;
}

.walkthrough-caption {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 10px 18px;
	border-radius: 16px;
	background: #fffef7f2;
	box-shadow: 0 4px 15px #0000001a;
}

.walkthrough-caption strong {
	margin-top: 0;
}

/* #489: "PRIPRAVUJEME" of a planned template on its card in Šablóny — the chip of the detail
   (`.status-chip.planned`) over the top left corner of the illustration. The selector outweighs the
   design's `.catalog-entry>span:not(…):not(…)` (margins and font size of the card's texts). */
.catalog-entry {
	position: relative;
}
.catalog-list > .catalog-entry > span.catalog-entry-chip {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	margin: 0;
	font-size: 11px;
	box-shadow: 0 2px 8px #0000001f;
}

/* Flash messages of the presenter (e.g. after sign-out) above the page content. */
.flashes {
	padding-top: 12px;
	font-size: 14px;
}

/* #394: the contact form of "Pre riaditeľov" is sent by the server — its errors and the thank-you. */
.contact-errors {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fdecec;
	color: #8a1f1f;
	font-size: 14px;
}

.contact-errors p {
	margin: 0;
}

.contact-fields .field-error {
	display: block;
	margin-top: 6px;
	color: #b42318;
	font-size: 13px;
	font-weight: 400;
}

.contact-grid #contact-result {
	align-self: start;
}

.contact-grid #contact-result p:last-child {
	margin-bottom: 0;
}

/* AI photos (Dana, 2026-11-05): a short "Vytvorené AI" right under each photo, right-aligned,
   regular weight, discreet but readable on a phone. */
.ai-photo-label {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: #5b6170;
	text-align: right;
}
.offer-figure {
	margin: 0 0 19px;
}
.offer-figure .offer-photo {
	margin-bottom: 0;
}
.offer-figure .ai-photo-label {
	margin-right: 30px;
}
/* Pre riaditeľov: the hero's `.director-hero>div>p` rule of the design would size the label as body text. */
.director-hero .director-photo > .ai-photo-label {
	max-width: none;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
}
@media (max-width: 760px) {
	.ai-photo-label,
	.director-hero .director-photo > .ai-photo-label {
		font-size: 12px;
	}
	.offer-figure .ai-photo-label {
		margin-right: 23px;
	}
}

/* #411: the header stays at the top of every landing page. The full-width wrapper takes the page's
   own background (the pricing page has a warmer one), a hairline separates it from the content that
   scrolls under. Section links (#ukazka, #kontakt …) stop below it, not under it. */
html {
	scroll-padding-top: 110px;
}
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: inherit;
	box-shadow: 0 1px 0 #0000000d;
}
.skip:focus {
	z-index: 40;
}

/* #628: SK / EN switch, the first of the header actions (left of the credits / "Prihlásiť sa"). */
.header .lang-switch {
	display: inline-flex;
	align-items: center;
	padding: 3px;
	border-radius: 50px;
	background: #fff;
	border: 1px solid #dbe1f4;
	flex: none;
}
.lang-switch__item {
	padding: 6px 10px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.04em;
	line-height: 1.2;
}
.lang-switch__item:hover {
	background: #f2f3ff;
}
.lang-switch__item--current,
.lang-switch__item--current:hover {
	background: var(--ink);
	color: #fff;
}
@media (max-width: 760px) {
	.lang-switch__item {
		padding: 5px 8px;
		font-size: 10px;
	}
}

/* #411: a signed-in teacher — person icon with the credits (Môj účet) next to "Prejsť do portálu",
   the white button of the design's `.outline`, which the design hides on narrow screens. */
.header .account-link {
	gap: 7px;
	background: #fff;
	border: 1px solid #dbe1f4;
}
.account-link svg {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.account-credits b {
	font-weight: 800;
}

@media (max-width: 1120px) {
	html {
		scroll-padding-top: 95px;
	}
}
@media (max-width: 760px) {
	html {
		scroll-padding-top: 85px;
	}
	/* Two buttons where a visitor has one: the number without "kreditov" and no arrow. */
	.account-credits-unit,
	.signed-in .header-actions .yellow > span[aria-hidden] {
		display: none;
	}
	.header .account-link {
		gap: 5px;
	}
	.account-link svg {
		width: 16px;
		height: 16px;
	}
}
@media (max-width: 400px) {
	.signed-in .header .brand img {
		width: 92px;
	}
	.signed-in .header-actions {
		gap: 6px;
	}
}
