/* VP landing (plan 011b1): the core-block landing pages (the self-study hub, the courses overview) in the 010b system. Loaded only on a
   page whose content carries .vp-landing, under velas and Blocksy alike, after brand.css (the fonts and the --p-* tokens). Everything is
   scoped to .vp-landing: no element reset and nothing from the taste kit's system.css (011a M5). The values follow the kit's tokens
   (the 8 px spacing steps, radius 8/12/20, the 48 px button, the hover layer: a linked card lifts 2px, a photo zooms 1.02, buttons
   step and press, underlines draw); motion only without prefers-reduced-motion. */

:is(.vp-landing, .vp-text) {
	--vpl-ink: var(--p-ink, #1a335c);
	--vpl-muted: var(--p-muted, #556887);
	--vpl-bg: var(--p-bg, #f5f3ee);
	--vpl-surface: var(--p-surface, #e9e9e7);
	--vpl-action: var(--p-action, #d9541a);
	--vpl-action-ink: var(--p-action-ink, #111111);
	--vpl-line: color-mix(in oklab, var(--vpl-ink) 16%, transparent);
	--vpl-gap: clamp(24px, 4vw, 48px);
	--vpl-pad: clamp(56px, 8vw, 112px);
	color: var(--vpl-ink);
	font-family: var(--font-text, "Schibsted Grotesk", system-ui, sans-serif);
	font-size: 17px;
	line-height: 1.55;
	margin-block: 0;
}
.vp-landing > * { margin-block: 0; }
/* a classic theme (velas: no theme.json) wraps every group's children in an inner container: it takes no box of its own, so the
   grids below apply to the children under both themes */
:is(.vp-landing, .vp-text) .wp-block-group__inner-container { display: contents; }
/* the page's own column with equal edges (velas gives block content none, and Bold Builder's wrapper takes it out of Blocksy's): the
   width of the theme's header container */
:is(.vp-landing, .vp-text) { width: min(var(--vpl-max, 1290px), calc(100% - 48px)); margin-inline: auto !important; }
body.theme-velas :is(.vp-landing, .vp-text) { --vpl-max: 1200px; }
/* under Blocksy, Bold Builder's wrapper sits at the left edge of the constrained content: centre it when it holds our page */
.entry-content > .bt_bb_wrapper:has(> :is(.vp-landing, .vp-text)) { margin-inline: auto !important; width: min(1290px, 100%); }

/* the rebuilt text pages (the guides): the theme's typography, a readable measure, headings with air above */
.vp-text > :is(p, ul, ol, h2, h3, .wp-block-buttons) { max-width: 72ch; }
.vp-text > h2 { margin-top: 2em; }
.vp-text > h3 { margin-top: 1.4em; }
.vp-text > .wp-block-image { margin-block: 32px; }
.vp-text > .wp-block-image img { border-radius: 12px; height: auto; }
.vp-text > .wp-block-buttons { margin-top: 40px; }
.vp-text .wp-element-button { min-height: 48px; display: inline-flex; align-items: center; border-radius: 8px; padding: 10px 22px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.vp-landing :is(h1, h2, h3) { color: var(--vpl-ink); font-family: var(--font-display, inherit); font-weight: 500; letter-spacing: -0.025em; margin: 0; }
.vp-landing h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: var(--display-tracking-xl, -0.042em); font-weight: var(--display-weight, 400); max-width: 14ch; }
.vp-landing h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; max-width: 22ch; }
.vp-landing h3 { font-size: 20px; line-height: 1.3; }
.vp-landing p { margin: 0; max-width: 62ch; }
.vp-landing a:not(.wp-element-button) { color: var(--vpl-ink); text-decoration: underline; text-decoration-color: var(--vpl-action); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.vp-landing a:not(.wp-element-button):hover { color: var(--vpl-action); }
:is(.vp-landing, .vp-text) :focus-visible { outline: 2px solid var(--vpl-action) !important; outline-offset: 3px; } /* over theme and plugin rules that drop it */

/* sections: one idea each, equal edges, a hairline between them */
.vp-landing .vpl-section { padding-block: var(--vpl-pad); border-top: 1px solid var(--vpl-line); display: grid; gap: 32px; }
.vp-landing .vpl-section:first-child { border-top: 0; padding-top: clamp(32px, 5vw, 72px); }
.vp-landing .vpl-head { display: grid; gap: 16px; }
.vp-landing .vpl-head p { color: var(--vpl-ink); font-size: 19px; } /* body text in the ink (7:1); the muted grey only for labels */
.vp-landing .vpl-split { display: grid; gap: var(--vpl-gap); align-items: center; }
/* the kit's split: 12 columns, gutter 24; text on 1-5, the picture on 7-12 (one pair of lines for every split), top-aligned */
@media (min-width: 900px) {
	.vp-landing .vpl-split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
	/* the classic theme's inner container (display: contents) is the DOM child: its children are the grid items (011b1b) */
	.vp-landing .vpl-split > :first-child, .vp-landing .vpl-split > .wp-block-group__inner-container > :first-child { grid-column: 1 / span 5; }
	.vp-landing .vpl-split > :last-child, .vp-landing .vpl-split > .wp-block-group__inner-container > :last-child { grid-column: 7 / span 6; }
	.vp-landing .vpl-split > .wp-block-group__inner-container:only-child { grid-column: auto; }
}

/* the hero */
.vp-landing .vpl-hero .vpl-hero__text { display: grid; gap: 24px; align-content: center; }
.vp-landing .vpl-hero .vpl-lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--vpl-ink); max-width: 40ch; }
.vp-landing .vpl-kicker { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--vpl-muted); }
.vp-landing .vpl-fact { font-size: 17px; }
.vp-landing .vpl-fact .vpl-price, .vp-landing .vpl-next { font-weight: 600; }
.vp-landing figure { margin: 0; }
.vp-landing .vpl-photo { overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--vpl-surface); }
.vp-landing .vpl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vp-landing .vpl-photo:hover img { transform: scale(1.025); }

/* buttons: the 010b solid button; a quiet outline one for the second action */
.vp-landing .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.vp-landing .wp-element-button, .vp-landing .vpl-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 8px;
	background: var(--vpl-action); color: var(--vpl-action-ink); border: 0; box-shadow: inset 0 0 0 1.5px var(--vpl-action); font-weight: 600; font-size: 16px;
	line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.vp-landing .wp-element-button:hover, .vp-landing .vpl-btn:hover { background: var(--vpl-ink); box-shadow: inset 0 0 0 1.5px var(--vpl-ink); color: var(--vpl-bg); transform: translateY(-1px); }
.vp-landing .wp-element-button:active, .vp-landing .vpl-btn:active { transform: translateY(1px); }
.vp-landing .wp-block-button.is-style-outline > .wp-element-button, .vp-landing .vpl-btn--quiet, .vp-text .wp-block-button.is-style-outline > .wp-element-button { background: transparent; color: var(--vpl-ink); border: 0; box-shadow: inset 0 0 0 1.5px var(--vpl-ink); }
:is(.vp-landing, .vp-text) .wp-block-button.is-style-outline > .wp-element-button:hover, .vp-landing .vpl-btn--quiet:hover { background: var(--vpl-ink); color: var(--vpl-bg); }

/* rows: a name and a line on the left, the price and the action on the right (the kit's .rows) */
.vp-landing .vpl-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--vpl-line); }
.vp-landing .vpl-row { list-style: none; margin: 0; padding-inline: 0; display: grid; gap: 12px 32px; padding-block: 24px; border-bottom: 1px solid var(--vpl-line); }
.vp-landing .vpl-row__main { display: grid; gap: 6px; }
.vp-landing .vpl-row__main p { color: var(--vpl-ink); }
.vp-landing .vpl-row__act { display: grid; grid-template-columns: 6.5rem 11rem; align-items: center; justify-content: start; gap: 12px 20px; } /* fixed tracks: every row's price and button start on the same lines */
.vp-landing .vpl-row__act > :only-child { grid-column: 1 / -1; }
.vp-landing .vpl-row__date { font-weight: 600; color: var(--vpl-ink) !important; }
.vp-landing .vpl-row__fmt { list-style: none; margin: 0; padding: 0; color: var(--vpl-muted); }
.vp-landing .vpl-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 700px) {
	.vp-landing .vpl-row { grid-template-columns: 1fr auto; align-items: center; }
	.vp-landing .vpl-row__act { justify-content: end; }
}
.vp-landing .vpl-note { color: var(--vpl-muted); margin-top: 16px; }
.vp-landing .vpl-offer { display: grid; gap: 24px; }
.vp-landing .vpl-offer__lead { color: var(--vpl-ink); font-size: 19px; }

/* linked tiles (the free things, the paths): the whole tile is the link; it lifts 2px on hover */
.vp-landing .vpl-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.vp-landing .vpl-tile { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 12px; background: var(--vpl-surface); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.vp-landing .vpl-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px color-mix(in oklab, var(--vpl-ink) 60%, transparent); }
.vp-landing .vpl-tile h3 a { text-decoration: none; }
.vp-landing .vpl-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.vp-landing .vpl-tile p { color: var(--vpl-ink); font-size: 16px; }
.vp-landing :is(.vpl-tile h3, .vpl-row__name) a { display: inline-flex; align-items: center; min-height: 44px; } /* a 44px tap target on a phone */
/* the header stays on screen (sticky): a focused or jumped-to element scrolls into view below it, never under it */
:is(.vp-landing, .vp-text) :is(a, section, [id]) { scroll-margin-top: 120px; }
.vp-landing .vpl-tile .vpl-price { color: var(--vpl-ink); }

/* a band (the account box, the close) */
.vp-landing .vpl-band { background: var(--vpl-ink); color: var(--vpl-bg); border-radius: 20px; padding: clamp(32px, 5vw, 64px); border-top: 0; margin-block: var(--vpl-pad); }
.vp-landing .vpl-band :is(h2, h3, p), .entry-content .vp-landing .vpl-band a:not(.wp-element-button), .vp-landing .vpl-band a:not(.wp-element-button) { color: var(--vpl-bg); text-decoration-color: currentColor; }

.vp-landing .vpl-band .vpl-btn--quiet, .vp-landing .vpl-band .wp-block-button.is-style-outline > .wp-element-button { color: var(--vpl-bg) !important; box-shadow: inset 0 0 0 1.5px var(--vpl-bg); }
.vp-landing .vpl-band .vpl-btn--quiet:hover, .vp-landing .vpl-band .wp-block-button.is-style-outline > .wp-element-button:hover { background: var(--vpl-bg); color: var(--vpl-ink) !important; }
.vp-landing .vpl-account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.vp-landing .vpl-band + .vpl-section { border-top: 0; }

/* 011b1b: the course landings. The main action beside a quiet one; facts as label/value rows; the topics; the FAQ (every answer open) */
.vp-landing .vpl-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; max-width: none; }
.vp-landing .vpl-facts, .vp-landing .vpl-topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--vpl-line); }
.vp-landing .vpl-facts > li { display: grid; gap: 4px 24px; padding-block: 16px; border-bottom: 1px solid var(--vpl-line); margin: 0; }
.vp-landing .vpl-facts > li > strong:first-child { font-weight: 600; color: var(--vpl-muted); font-size: 15px; letter-spacing: 0.02em; }
@media (min-width: 600px) { .vp-landing .vpl-facts > li { grid-template-columns: 8.5rem 1fr; align-items: baseline; } }
.vp-landing .vpl-topics > li { padding-block: 14px; border-bottom: 1px solid var(--vpl-line); margin: 0; font-size: 19px; }
.vp-landing .vpl-faq { display: grid; gap: 8px; }
.vp-landing .vpl-faq > h3 { margin-top: 24px; }
.vp-landing .vpl-faq > h3:first-child { margin-top: 0; }
.vp-landing .vpl-seat { display: inline; }
.vp-landing .vpl-band .vpl-head { margin-bottom: 8px; }
/* a Tutor course description (vp-text inside Tutor's own column: no column of our own) */
.vp-text.vp-course-desc { width: auto; margin-inline: 0 !important; }
body .vp-text.vp-course-desc h3.wp-block-heading { margin: 1.4em 0 0.4em; font-size: 18px; line-height: 1.35; } /* under Tutor's own h2 "Apie kursą" */
.vp-text.vp-course-desc .vp-course-lead { font-size: 18px; line-height: 1.5; }
body .vp-text.vp-course-desc a { text-decoration: underline; text-underline-offset: 3px; } /* Tutor's column drops link underlines */

/* 011b1b review L5: keyboard focus scrolls at once (a smooth scroll left the focused control under the sticky header mid-scroll) */
html:focus-within { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

@media (prefers-reduced-motion: reduce) {
	.vp-landing *, .vp-landing *::after { transition: none !important; }
	.vp-landing .vpl-photo:hover img, .vp-landing .vpl-tile:hover { transform: none; }
}
@media (max-width: 599px) {
	.vp-landing { font-size: 16px; }
	.vp-landing .vpl-head p, .vp-landing .vpl-offer__lead { font-size: 17px; }
	.vp-landing .wp-element-button, .vp-landing .vpl-btn { white-space: normal; }
}
