/*
Theme Name:   VBL — Vibe Code Learn
Theme URI:    https://github.com/VibeCodeLearnOrg/vbl_wp
Author:       VibeCodeLearn
Author URI:   https://github.com/VibeCodeLearnOrg
Description:  قالب اختصاصی پلتفرم آموزش وایب کدینگ؛ سبک، سریع، کاملاً راست‌به‌چپ، سئو‌محور و با پشتیبانی از حالت روشن و تاریک.
Version:      1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  vbl
Tags:         rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, education
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	/* Brand */
	--vbl-green-50:  #e9fbf1;
	--vbl-green-100: #c7f5dc;
	--vbl-green-300: #6ee2a8;
	--vbl-green-400: #3ddb8d;
	--vbl-green-500: #21c97a;
	--vbl-green-600: #12a862;
	--vbl-green-700: #0c854e;

	/* Neutral ramp (shared by both themes) */
	--vbl-navy-950: #060a14;
	--vbl-navy-900: #0a111f;
	--vbl-navy-850: #0d1526;
	--vbl-navy-800: #111b2f;
	--vbl-navy-750: #16223a;
	--vbl-navy-700: #1c2a45;
	--vbl-slate-500: #64748b;
	--vbl-slate-300: #cbd5e1;

	/* Radii */
	--vbl-r-xs: 6px;
	--vbl-r-sm: 9px;
	--vbl-r-md: 13px;
	--vbl-r-lg: 18px;
	--vbl-r-xl: 24px;
	--vbl-r-full: 999px;

	/* Rhythm */
	--vbl-gap-1: 4px;
	--vbl-gap-2: 8px;
	--vbl-gap-3: 12px;
	--vbl-gap-4: 16px;
	--vbl-gap-5: 22px;
	--vbl-gap-6: 30px;
	--vbl-gap-7: 44px;
	--vbl-gap-8: 64px;
	--vbl-gap-9: 92px;

	/* Layout */
	--vbl-container: 1400px;
	--vbl-container-narrow: 880px;
	--vbl-header-h: 72px;

	/* Motion */
	--vbl-ease: cubic-bezier(.32, .72, 0, 1);
	--vbl-fast: .16s var(--vbl-ease);
	--vbl-base: .28s var(--vbl-ease);

	/* Type */
	--vbl-font: "IRANYekanX", "Vazirmatn", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
	--vbl-font-mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;

	/* Semantic — overwritten per theme below */
	--vbl-bg: var(--vbl-navy-900);
	--vbl-surface: var(--vbl-navy-850);
	--vbl-surface-2: var(--vbl-navy-800);
	--vbl-surface-3: var(--vbl-navy-750);
	--vbl-border: rgba(146, 178, 230, .12);
	--vbl-border-strong: rgba(146, 178, 230, .22);
	--vbl-text: #e9eff9;
	--vbl-text-soft: #b7c6dd;
	--vbl-text-muted: #8798b5;
	--vbl-accent: var(--vbl-green-400);
	--vbl-accent-hover: var(--vbl-green-300);
	--vbl-accent-ink: #032214;
	--vbl-accent-soft: rgba(33, 201, 122, .13);
	--vbl-accent-line: rgba(33, 201, 122, .30);
	--vbl-info: #5aa9ff;
	--vbl-info-soft: rgba(90, 169, 255, .13);
	--vbl-warn: #f5b544;
	--vbl-warn-soft: rgba(245, 181, 68, .14);
	--vbl-danger: #ff7a6b;
	--vbl-danger-soft: rgba(255, 122, 107, .13);
	--vbl-shadow-sm: 0 1px 2px rgba(2, 6, 16, .40);
	--vbl-shadow-md: 0 1px 2px rgba(2, 6, 16, .40), 0 12px 28px -18px rgba(2, 6, 16, .85);
	--vbl-shadow-lg: 0 2px 6px rgba(2, 6, 16, .45), 0 32px 60px -32px rgba(2, 6, 16, .95);
	--vbl-glow: radial-gradient(60% 60% at 50% 0%, rgba(33, 201, 122, .16), transparent 70%);

	/* Header: a barely-there green wash, white ink, joined tiers. */
	--vbl-header-top-bg: linear-gradient(180deg, var(--vbl-green-500), var(--vbl-green-600));
	--vbl-header-top-ink: #04281a;
	--vbl-header-top-soft: rgba(3, 34, 20, .62);
	--vbl-header-top-field: rgba(255, 255, 255, .92);
	--vbl-header-top-field-ink: #0b1626;
	--vbl-header-top-field-soft: #5b6b81;
	--vbl-header-sub-bg: linear-gradient(180deg, rgba(33, 201, 122, .78), rgba(18, 168, 98, .78));
	--vbl-header-sub-ink: #04281a;
	--vbl-header-sub-line: rgba(3, 34, 20, .14);
}

/* Explicit light theme ---------------------------------------------------- */
[data-theme="light"] {
	--vbl-bg: #f6f8fc;
	--vbl-surface: #ffffff;
	--vbl-surface-2: #f2f5fa;
	--vbl-surface-3: #e9eef7;
	--vbl-border: rgba(15, 30, 60, .10);
	--vbl-border-strong: rgba(15, 30, 60, .18);
	--vbl-text: #0b1626;
	--vbl-text-soft: #35465e;
	--vbl-text-muted: #667a95;
	--vbl-accent: var(--vbl-green-600);
	--vbl-accent-hover: var(--vbl-green-700);
	--vbl-accent-ink: #ffffff;
	--vbl-accent-soft: rgba(18, 168, 98, .10);
	--vbl-accent-line: rgba(18, 168, 98, .26);
	--vbl-info: #1c6dd0;
	--vbl-info-soft: rgba(28, 109, 208, .09);
	--vbl-warn: #b06f00;
	--vbl-warn-soft: rgba(176, 111, 0, .10);
	--vbl-danger: #c0392b;
	--vbl-danger-soft: rgba(192, 57, 43, .09);
	--vbl-shadow-sm: 0 1px 2px rgba(11, 22, 38, .06);
	--vbl-shadow-md: 0 1px 2px rgba(11, 22, 38, .05), 0 12px 26px -16px rgba(11, 22, 38, .22);
	--vbl-shadow-lg: 0 2px 6px rgba(11, 22, 38, .06), 0 30px 55px -30px rgba(11, 22, 38, .30);
	--vbl-glow: radial-gradient(60% 60% at 50% 0%, rgba(18, 168, 98, .10), transparent 70%);

	--vbl-header-top-bg: linear-gradient(180deg, var(--vbl-green-500), var(--vbl-green-600));
	--vbl-header-top-ink: #04281a;
	--vbl-header-top-soft: rgba(3, 34, 20, .66);
	--vbl-header-top-field: rgba(255, 255, 255, .96);
	--vbl-header-top-field-ink: #0b1626;
	--vbl-header-top-field-soft: #5b6b81;
	--vbl-header-sub-bg: linear-gradient(180deg, rgba(33, 201, 122, .78), rgba(18, 168, 98, .78));
	--vbl-header-sub-ink: #04281a;
	--vbl-header-sub-line: rgba(3, 34, 20, .14);
}

/* Follow the OS when the visitor has not chosen a side ------------------- */
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]):not([data-theme="light"]) {
		--vbl-bg: #f6f8fc;
		--vbl-surface: #ffffff;
		--vbl-surface-2: #f2f5fa;
		--vbl-surface-3: #e9eef7;
		--vbl-border: rgba(15, 30, 60, .10);
		--vbl-border-strong: rgba(15, 30, 60, .18);
		--vbl-text: #0b1626;
		--vbl-text-soft: #35465e;
		--vbl-text-muted: #667a95;
		--vbl-accent: var(--vbl-green-600);
		--vbl-accent-hover: var(--vbl-green-700);
		--vbl-accent-ink: #ffffff;
		--vbl-accent-soft: rgba(18, 168, 98, .10);
		--vbl-accent-line: rgba(18, 168, 98, .26);
		--vbl-info: #1c6dd0;
		--vbl-info-soft: rgba(28, 109, 208, .09);
		--vbl-shadow-sm: 0 1px 2px rgba(11, 22, 38, .06);
		--vbl-shadow-md: 0 1px 2px rgba(11, 22, 38, .05), 0 12px 26px -16px rgba(11, 22, 38, .22);
		--vbl-shadow-lg: 0 2px 6px rgba(11, 22, 38, .06), 0 30px 55px -30px rgba(11, 22, 38, .30);
	}
}

/* ==========================================================================
   2. Fonts
   ========================================================================== */

/* IRANYekanX — one family, six static weights. Each file carries both the
   Persian and the Latin glyphs plus GSUB/GPOS shaping, so no unicode-range
   split is needed. Self-hosted; no external request. */

@font-face {
	font-family: "IRANYekanX";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("assets/fonts/iranyekanx/IRANYekanX-Light.woff2") format("woff2"),
	     url("assets/fonts/iranyekanx/IRANYekanX-Light.woff") format("woff");
}

@font-face {
	font-family: "IRANYekanX";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/iranyekanx/IRANYekanX-Regular.woff2") format("woff2"),
	     url("assets/fonts/iranyekanx/IRANYekanX-Regular.woff") format("woff");
}

@font-face {
	font-family: "IRANYekanX";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/iranyekanx/IRANYekanX-Medium.woff2") format("woff2"),
	     url("assets/fonts/iranyekanx/IRANYekanX-Medium.woff") format("woff");
}

@font-face {
	font-family: "IRANYekanX";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/iranyekanx/IRANYekanX-DemiBold.woff2") format("woff2"),
	     url("assets/fonts/iranyekanx/IRANYekanX-DemiBold.woff") format("woff");
}

@font-face {
	font-family: "IRANYekanX";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/iranyekanx/IRANYekanX-Bold.woff2") format("woff2"),
	     url("assets/fonts/iranyekanx/IRANYekanX-Bold.woff") format("woff");
}

@font-face {
	font-family: "IRANYekanX";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("assets/fonts/iranyekanx/IRANYekanX-Black.woff2") format("woff2"),
	     url("assets/fonts/iranyekanx/IRANYekanX-Black.woff") format("woff");
}

/* ==========================================================================
   3. Reset & base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--vbl-header-h) + 20px);
	--vbl-adminbar-h: 0px;
}

body.vbl-body {
	margin: 0;
	background: var(--vbl-bg);
	color: var(--vbl-text);
	font-family: var(--vbl-font);
	font-size: 15.5px;
	font-weight: 400;
	line-height: 1.9;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/*
	 * No overflow-x hack here: it turns <body> into a scroll container, which
	 * breaks `position: sticky` on the header (it detaches while scrolling).
	 * The layout is genuinely fluid now, so nothing needs clipping.
	 */
}

body.vbl-body.vbl-no-scroll { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
svg { flex: none; }

a {
	color: var(--vbl-accent);
	text-decoration: none;
	transition: color var(--vbl-fast);
}

a:hover { color: var(--vbl-accent-hover); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: -.005em;
	color: var(--vbl-text);
}

h1 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.85rem); line-height: 1.35; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: clamp(1.1rem, .98rem + .5vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.35em; }
li { margin-bottom: .35em; }

hr {
	border: 0;
	border-top: 1px solid var(--vbl-border);
	margin: var(--vbl-gap-6) 0;
}

code, pre, kbd {
	font-family: var(--vbl-font-mono);
	font-size: .88em;
	direction: ltr;
	unicode-bidi: embed;
}

code {
	background: var(--vbl-surface-3);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-xs);
	padding: .15em .45em;
}

pre {
	background: var(--vbl-surface-3);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-md);
	padding: 18px 20px;
	overflow-x: auto;
	text-align: left;
	line-height: 1.7;
}

pre code { background: none; border: 0; padding: 0; }

blockquote {
	margin: 0 0 1.2em;
	padding: 14px 20px;
	border-inline-start: 3px solid var(--vbl-accent);
	background: var(--vbl-accent-soft);
	border-radius: 0 var(--vbl-r-sm) var(--vbl-r-sm) 0;
	color: var(--vbl-text-soft);
}

table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--vbl-border); padding: 9px 12px; text-align: right; }
th { background: var(--vbl-surface-2); font-weight: 600; }

::selection { background: var(--vbl-accent); color: var(--vbl-accent-ink); }

:focus-visible {
	outline: 2px solid var(--vbl-accent);
	outline-offset: 2px;
	border-radius: var(--vbl-r-xs);
}

.vbl-sr {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.vbl-skip {
	position: absolute;
	top: -100px;
	inset-inline-start: 12px;
	z-index: 999;
	background: var(--vbl-accent);
	color: var(--vbl-accent-ink);
	padding: 10px 16px;
	border-radius: var(--vbl-r-sm);
	font-weight: 600;
}

.vbl-skip:focus { top: 12px; color: var(--vbl-accent-ink); }

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

.vbl-container {
	width: 100%;
	max-width: var(--vbl-container);
	margin-inline: auto;
	padding-inline: 24px;
}

.vbl-container--narrow { max-width: var(--vbl-container-narrow); }

.vbl-section { padding-block: var(--vbl-gap-8); }
.vbl-section--tight { padding-block: var(--vbl-gap-7); }
.vbl-section--surface { background: var(--vbl-surface); border-block: 1px solid var(--vbl-border); }

.vbl-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--vbl-gap-4);
	margin-bottom: var(--vbl-gap-6);
	flex-wrap: wrap;
}

.vbl-section__head--center { flex-direction: column; align-items: center; text-align: center; }

.vbl-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--vbl-accent);
	background: var(--vbl-accent-soft);
	border: 1px solid var(--vbl-accent-line);
	border-radius: var(--vbl-r-full);
	padding: 5px 13px;
	margin-bottom: 14px;
}

.vbl-lede {
	font-size: 1.03rem;
	color: var(--vbl-text-muted);
	max-width: 62ch;
	margin: 0;
}

.vbl-grid { display: grid; gap: var(--vbl-gap-5); }
.vbl-grid--courses { grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); }
.vbl-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.vbl-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

.vbl-split-main { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: var(--vbl-gap-6); align-items: start; }

@media (max-width: 1024px) {
	.vbl-split-main { grid-template-columns: 1fr; }
}

.vbl-stack { display: flex; flex-direction: column; gap: var(--vbl-gap-4); }
.vbl-row { display: flex; align-items: center; gap: var(--vbl-gap-3); flex-wrap: wrap; }
.vbl-row--between { justify-content: space-between; }

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.vbl-btn {
	--btn-bg: var(--vbl-surface-2);
	--btn-ink: var(--vbl-text);
	--btn-line: var(--vbl-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--btn-line);
	background: var(--btn-bg);
	color: var(--btn-ink);
	font-family: inherit;
	font-size: .94rem;
	font-weight: 600;
	line-height: 1;
	padding: 12px 20px;
	border-radius: var(--vbl-r-sm);
	cursor: pointer;
	transition: background var(--vbl-fast), border-color var(--vbl-fast), color var(--vbl-fast), transform var(--vbl-fast);
	white-space: nowrap;
	text-decoration: none;
}

.vbl-btn:hover { color: var(--btn-ink); transform: translateY(-1px); }
.vbl-btn:active { transform: translateY(0); }

.vbl-btn--primary {
	--btn-bg: var(--vbl-accent);
	--btn-ink: var(--vbl-accent-ink);
	--btn-line: var(--vbl-accent);
}

.vbl-btn--primary:hover { --btn-bg: var(--vbl-accent-hover); --btn-line: var(--vbl-accent-hover); }

.vbl-btn--ghost { --btn-bg: transparent; --btn-line: var(--vbl-border-strong); }
.vbl-btn--ghost:hover { --btn-bg: var(--vbl-surface-2); }

.vbl-btn--soft { --btn-bg: var(--vbl-accent-soft); --btn-ink: var(--vbl-accent); --btn-line: var(--vbl-accent-line); }
.vbl-btn--soft:hover { --btn-ink: var(--vbl-accent-hover); }

.vbl-btn--lg { padding: 15px 28px; font-size: 1rem; }
.vbl-btn--sm { padding: 10px 16px; font-size: .85rem; }
.vbl-btn--block { width: 100%; }

.vbl-btn[disabled], .vbl-btn.is-disabled {
	opacity: .5;
	pointer-events: none;
}

.vbl-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: .9rem;
}

/* ==========================================================================
   6. Surfaces: cards, badges, alerts
   ========================================================================== */

.vbl-card {
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-lg);
	box-shadow: var(--vbl-shadow-sm);
}

.vbl-card--pad { padding: var(--vbl-gap-5); }
.vbl-card--roomy { padding: var(--vbl-gap-6); }
.vbl-card--quiet { box-shadow: none; }

.vbl-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vbl-gap-3);
	padding: var(--vbl-gap-4) var(--vbl-gap-5);
	border-bottom: 1px solid var(--vbl-border);
}

.vbl-card__head h2, .vbl-card__head h3 { margin: 0; font-size: 1.02rem; }
.vbl-card__body { padding: var(--vbl-gap-5); }

.vbl-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .78rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: var(--vbl-r-full);
	background: var(--vbl-surface-3);
	color: var(--vbl-text-soft);
	border: 1px solid transparent;
	white-space: nowrap;
}

.vbl-badge--accent { background: var(--vbl-accent-soft); color: var(--vbl-accent); border-color: var(--vbl-accent-line); }
.vbl-badge--info   { background: var(--vbl-info-soft); color: var(--vbl-info); }
.vbl-badge--warn   { background: var(--vbl-warn-soft); color: var(--vbl-warn); }
.vbl-badge--danger { background: var(--vbl-danger-soft); color: var(--vbl-danger); }
.vbl-badge--solid  { background: var(--vbl-accent); color: var(--vbl-accent-ink); }

.vbl-alert {
	border: 1px solid var(--vbl-border);
	background: var(--vbl-surface-2);
	border-radius: var(--vbl-r-md);
	padding: 13px 16px;
	font-size: .9rem;
	margin-bottom: var(--vbl-gap-4);
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.vbl-alert--success { background: var(--vbl-accent-soft); border-color: var(--vbl-accent-line); color: var(--vbl-accent); }
.vbl-alert--info    { background: var(--vbl-info-soft); border-color: transparent; color: var(--vbl-info); }
.vbl-alert--warn    { background: var(--vbl-warn-soft); border-color: transparent; color: var(--vbl-warn); }
.vbl-alert--error   { background: var(--vbl-danger-soft); border-color: transparent; color: var(--vbl-danger); }

.vbl-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--vbl-r-md);
	background: var(--vbl-accent-soft);
	color: var(--vbl-accent);
	border: 1px solid var(--vbl-accent-line);
	flex: none;
}

.vbl-icon { display: block; }
.vbl-icon--star { fill: none; }

/* ==========================================================================
   7. Header
   ========================================================================== */

.vbl-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: color-mix(in srgb, var(--vbl-bg) 82%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--vbl-base), background var(--vbl-base);
}

.vbl-header.is-stuck { border-bottom-color: var(--vbl-border); }

/* --- scrolled state -------------------------------------------------------
 * Scrolling down slides the nav tier up behind the bar and fades it out, and
 * turns the bar itself to frosted glass. Scrolling back to the top restores
 * both tiers. The `is-stuck` class is toggled in theme.js.
 * ------------------------------------------------------------------------ */

/* the bar paints over the nav tier as it retracts */
.vbl-header__bar { position: relative; z-index: 2; }
.vbl-header__navbar { position: relative; z-index: 1; }

.vbl-header__navbar {
	/*
	 * No clipping at rest: the mega panel hangs below this element and
	 * `overflow: hidden` would cut it off. Clipping is applied only while the
	 * tier is retracting, where it is actually wanted.
	 */
	max-height: 6rem;
	transform: translateY(0);
	opacity: 1;
	transition:
		max-height var(--vbl-base),
		transform var(--vbl-base),
		opacity var(--vbl-fast),
		padding-block var(--vbl-base),
		border-top-width var(--vbl-base);
}

.vbl-header.is-stuck .vbl-header__navbar {
	overflow: hidden;
	max-height: 0;
	transform: translateY(-100%);
	opacity: 0;
	padding-block: 0;
	border-top-width: 0;
	pointer-events: none;
}

/*
 * With the nav tier gone the bar closes the block off on its own and turns to
 * glass: a thin green veil over a heavy blur of whatever is scrolling past.
 * The veil is too sheer to carry the resting ink, so the ink tokens are
 * redefined here and every child follows through var().
 */
.vbl-header.is-stuck .vbl-header__bar {
	--vbl-header-top-ink: #ffffff;
	--vbl-header-top-soft: rgba(255, 255, 255, .72);
	--vbl-header-top-field: rgba(255, 255, 255, .14);
	--vbl-header-top-field-ink: #ffffff;
	--vbl-header-top-field-soft: rgba(255, 255, 255, .78);

	border-radius: var(--vbl-r-lg);
	background: linear-gradient(180deg, rgba(33, 201, 122, .45), rgba(18, 168, 98, .40));
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	box-shadow: var(--vbl-shadow-lg);
}

/* On a light page the same veil stays light, so the ink has to stay dark. */
[data-theme="light"] .vbl-header.is-stuck .vbl-header__bar {
	--vbl-header-top-ink: #04281a;
	--vbl-header-top-soft: rgba(3, 34, 20, .66);
	--vbl-header-top-field: rgba(255, 255, 255, .60);
	--vbl-header-top-field-ink: #0b1626;
	--vbl-header-top-field-soft: #41556e;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]):not([data-theme="light"]) .vbl-header.is-stuck .vbl-header__bar {
		--vbl-header-top-ink: #04281a;
		--vbl-header-top-soft: rgba(3, 34, 20, .66);
		--vbl-header-top-field: rgba(255, 255, 255, .60);
		--vbl-header-top-field-ink: #0b1626;
		--vbl-header-top-field-soft: #41556e;
	}
}

/* the round controls need to read on the sheer veil too */
.vbl-header.is-stuck .vbl-header__bar .vbl-icon-btn,
.vbl-header.is-stuck .vbl-header__bar .vbl-theme-toggle,
.vbl-header.is-stuck .vbl-header__bar .vbl-btn--ghost { background: rgba(255, 255, 255, .18); }

.vbl-header.is-stuck .vbl-header__bar .vbl-search__input { border-color: rgba(255, 255, 255, .22); }

.vbl-header__bar {
	transition:
		background var(--vbl-base),
		border-radius var(--vbl-base),
		box-shadow var(--vbl-base);
}

/*
 * WordPress' admin bar is fixed over the top of the viewport for logged-in
 * users, so a sticky header pinned to top:0 would sit underneath it. Offset by
 * the bar's height at each of the widths WordPress itself switches at.
 */
body.admin-bar .vbl-header { top: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar .vbl-header { top: 46px; }
}

/* Below 600px WordPress makes the bar absolute, so it scrolls away entirely. */
@media screen and (max-width: 600px) {
	body.admin-bar .vbl-header { top: 0; }
}

/*
 * One floating block, two joined tiers: a green account bar with a deeper
 * green nav bar fused to its underside. The header element itself stays
 * transparent so the block reads as a single card over the page.
 */
.vbl-header > .vbl-container {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-block: 12px;
}

.vbl-header__bar {
	min-height: var(--vbl-header-h);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--vbl-gap-5);
	min-width: 0;
	background: var(--vbl-header-top-bg);
	color: var(--vbl-header-top-ink);
	border: 0;
	border-radius: var(--vbl-r-lg) var(--vbl-r-lg) 0 0;
	box-shadow: var(--vbl-shadow-md);
	padding-inline: 22px;
}

.vbl-header__bar > * { min-width: 0; }

/*
 * The two tiers are flush vertically, but the nav tier is inset from both
 * sides so the block steps inwards as it goes down.
 */
.vbl-header__navbar {
	margin-inline: 36px;
	/*
	 * Frosted glass: the same green as the bar above, a shade lighter and at
	 * low alpha, with the page blurred behind it.
	 */
	/*
	 * The same green as the bar above at lower alpha. The white underlay keeps
	 * the lower opacity reading as *lighter* in both themes, instead of letting
	 * the dark page show through and darken it.
	 */
	background: var(--vbl-header-sub-bg), #ffffff;
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	color: var(--vbl-header-sub-ink);
	border: 1px solid var(--vbl-border);
	border-top: 1px solid var(--vbl-header-sub-line);
	border-radius: 0 0 var(--vbl-r-lg) var(--vbl-r-lg);
	box-shadow: var(--vbl-shadow-md);
	padding: 4px 22px;
}

/* when the nav tier is hidden the bar has to close the block off itself */
.vbl-header__bar:last-child { border-radius: var(--vbl-r-lg); }

/* --- ink on the green bar ------------------------------------------------ */

.vbl-header__bar .vbl-brand,
.vbl-header__bar .vbl-brand:hover { color: var(--vbl-header-top-ink); }
.vbl-header__bar .vbl-brand__sub { color: var(--vbl-header-top-soft); }

.vbl-header__bar .vbl-brand__mark {
	background: var(--vbl-header-top-ink);
	color: var(--vbl-green-300);
}

.vbl-header__bar .vbl-search__input {
	background: var(--vbl-header-top-field);
	border-color: transparent;
	color: var(--vbl-header-top-field-ink);
}

.vbl-header__bar .vbl-search__input::placeholder { color: var(--vbl-header-top-field-soft); opacity: 1; }
.vbl-header__bar .vbl-search__submit { color: var(--vbl-header-top-field-soft); }
.vbl-header__bar .vbl-search__submit:hover { color: var(--vbl-accent); }

/*
 * The generic .vbl-search__input:focus swaps in --vbl-surface, which on a dark
 * page is nearly black — and the ink above stays the field's dark navy, so what
 * you typed vanished the moment you clicked in. In the header the field keeps
 * its own palette on focus; the tokens are already redefined for the stuck
 * state, so this follows the bar through both.
 */
.vbl-header__bar .vbl-search__input:focus {
	background: var(--vbl-header-top-field);
	color: var(--vbl-header-top-field-ink);
	border-color: var(--vbl-accent-line);
}

/* round account controls */
.vbl-icon-btn--round,
.vbl-header__bar .vbl-icon-btn,
.vbl-header__bar .vbl-theme-toggle { border-radius: var(--vbl-r-full); }

.vbl-header__bar .vbl-icon-btn,
.vbl-header__bar .vbl-theme-toggle {
	background: rgba(255, 255, 255, .24);
	border-color: transparent;
	color: var(--vbl-header-top-ink);
}

.vbl-header__bar .vbl-icon-btn:hover,
.vbl-header__bar .vbl-theme-toggle:hover { background: rgba(255, 255, 255, .44); }

.vbl-header__bar .vbl-btn--ghost {
	background: rgba(255, 255, 255, .22);
	border-color: transparent;
	color: var(--vbl-header-top-ink);
}

.vbl-header__bar .vbl-btn--ghost:hover { background: rgba(255, 255, 255, .40); }

.vbl-header__bar .vbl-btn--primary {
	background: var(--vbl-header-top-ink);
	color: var(--vbl-green-300);
}

.vbl-header__bar .vbl-btn--primary:hover { background: #06301e; }

.vbl-header__bar .vbl-user__trigger .vbl-avatar { border-color: rgba(255, 255, 255, .60); }
.vbl-header__bar .vbl-user__trigger:hover .vbl-avatar { border-color: var(--vbl-accent); }

/* search owns the middle column; the controls stay pinned to the far edge */
.vbl-header__search { width: 100%; }
.vbl-header__bar .vbl-brand { justify-self: start; }
.vbl-header__actions { justify-self: end; }

.vbl-user__trigger {
	padding: 0;
	border-radius: var(--vbl-r-full);
	background: none;
	border: 0;
	cursor: pointer;
	display: inline-flex;
}

.vbl-user__trigger .vbl-avatar {
	width: 40px;
	height: 40px;
	border-radius: var(--vbl-r-full);
	overflow: hidden;
	border: 2px solid var(--vbl-border-strong);
	transition: border-color var(--vbl-fast);
}

.vbl-user__trigger:hover .vbl-avatar,
.vbl-user.is-open .vbl-avatar { border-color: var(--vbl-accent); }

.vbl-dropdown__head {
	padding: 9px 11px 11px;
	border-bottom: 1px solid var(--vbl-border);
	margin-bottom: 5px;
	color: var(--vbl-text);
	font-size: .9rem;
}

/* --- mega menu ----------------------------------------------------------- */

.vbl-mega {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 8px);
	max-width: 680px;
	margin-inline: auto;
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-lg);
	box-shadow: var(--vbl-shadow-lg);
	padding: 18px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--vbl-fast), transform var(--vbl-fast), visibility var(--vbl-fast);
	z-index: 60;
}

.vbl-nav__item--mega:hover .vbl-mega,
.vbl-nav__item--mega:focus-within .vbl-mega,
.vbl-nav__item--mega.is-open .vbl-mega { opacity: 1; visibility: visible; transform: translateY(0); }

.vbl-mega__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 6px;
}

.vbl-mega__item {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 11px 12px;
	border-radius: var(--vbl-r-md);
	border: 1px solid transparent;
	color: var(--vbl-text-soft);
	transition: background var(--vbl-fast), border-color var(--vbl-fast);
}

.vbl-mega__item:hover { background: var(--vbl-surface-2); border-color: var(--vbl-border); }

.vbl-mega__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: var(--vbl-r-sm);
	background: var(--vbl-accent-soft);
	color: var(--vbl-accent);
}

.vbl-mega__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vbl-mega__text strong { color: var(--vbl-text); font-size: .92rem; font-weight: 600; }
.vbl-mega__text span { color: var(--vbl-text-muted); font-size: .8rem; line-height: 1.6; }

.vbl-mega__foot {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--vbl-border);
}

.vbl-mega__foot-title { display: block; color: var(--vbl-text); font-size: .88rem; font-weight: 600; margin-bottom: 9px; }
.vbl-mega__chips { display: flex; flex-wrap: wrap; gap: 7px; }

.vbl-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: var(--vbl-r-full);
	background: var(--vbl-surface-2);
	border: 1px solid var(--vbl-border);
	color: var(--vbl-text-soft);
	font-size: .82rem;
	transition: background var(--vbl-fast), color var(--vbl-fast), border-color var(--vbl-fast);
}

.vbl-chip:hover { background: var(--vbl-accent-soft); color: var(--vbl-accent); border-color: var(--vbl-accent-line); }

/* brand */
.vbl-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--vbl-text);
	font-weight: 800;
	font-size: 1.12rem;
	letter-spacing: -.01em;
	/* Shrinkable: the brand is what used to force the header past the viewport. */
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
}

/* the text half of the lockup — truncates rather than pushing the header wider */
.vbl-brand > span:not(.vbl-brand__mark) {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vbl-brand:hover { color: var(--vbl-text); }

.vbl-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--vbl-accent);
	color: var(--vbl-accent-ink);
	flex: none;
}

.vbl-brand__sub {
	display: block;
	font-size: .75rem;
	font-weight: 500;
	color: var(--vbl-text-muted);
	line-height: 1.4;
	letter-spacing: 0;
}

/* nav */
.vbl-nav { display: flex; align-items: center; gap: 4px; }
.vbl-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.vbl-header__navbar .vbl-nav { justify-content: center; }

.vbl-header__navbar .vbl-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 12px 16px;
	border-radius: var(--vbl-r-sm);
	color: var(--vbl-header-sub-ink);
	font-size: .93rem;
	font-weight: 600;
	transition: color var(--vbl-fast), background var(--vbl-fast);
}

.vbl-header__navbar .vbl-nav__link:hover,
.vbl-header__navbar .is-current > .vbl-nav__link {
	color: var(--vbl-header-sub-ink);
	background: rgba(255, 255, 255, .22);
}

.vbl-header__navbar .vbl-nav__link .vbl-icon { transition: transform var(--vbl-fast); }
.vbl-nav__item--mega:hover .vbl-nav__link .vbl-icon { transform: rotate(180deg); }

.vbl-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--vbl-text-soft);
	font-size: .92rem;
	font-weight: 500;
	padding: 9px 13px;
	border-radius: var(--vbl-r-sm);
	transition: color var(--vbl-fast), background var(--vbl-fast);
}

.vbl-nav__link:hover { color: var(--vbl-text); background: var(--vbl-surface-2); }

.vbl-nav__item.is-current > .vbl-nav__link { color: var(--vbl-text); font-weight: 600; }

.vbl-nav__item.is-current > .vbl-nav__link::after {
	content: "";
	position: absolute;
	inset-inline: 13px;
	bottom: 3px;
	height: 2px;
	border-radius: 2px;
	background: var(--vbl-accent);
}

.vbl-nav__item { position: relative; }

/*
 * The mega panel spans the whole nav bar, so its containing block must be the
 * bar — not the list item. Declared after the rule above so it actually wins.
 */
.vbl-header__navbar { position: relative; }
.vbl-nav__item--mega { position: static; }

.vbl-nav__item--has-children:hover > .vbl-submenu,
.vbl-nav__item--has-children:focus-within > .vbl-submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.vbl-submenu {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	min-width: 210px;
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-md);
	box-shadow: var(--vbl-shadow-lg);
	padding: 7px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--vbl-fast), transform var(--vbl-fast), visibility var(--vbl-fast);
	z-index: 20;
}

.vbl-submenu a {
	display: block;
	padding: 8px 11px;
	border-radius: var(--vbl-r-xs);
	color: var(--vbl-text-soft);
	font-size: .89rem;
}

.vbl-submenu a:hover { background: var(--vbl-surface-2); color: var(--vbl-text); }

/* actions */
.vbl-header__actions { display: flex; align-items: center; gap: 8px; flex: none; justify-content: flex-end; }

.vbl-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--vbl-r-sm);
	border: 1px solid var(--vbl-border);
	background: transparent;
	color: var(--vbl-text-soft);
	cursor: pointer;
	transition: background var(--vbl-fast), color var(--vbl-fast), border-color var(--vbl-fast);
	padding: 0;
}

.vbl-icon-btn:hover { background: var(--vbl-surface-2); color: var(--vbl-text); border-color: var(--vbl-border-strong); }

/* theme switch */
.vbl-theme-toggle { position: relative; overflow: hidden; }
.vbl-theme-toggle svg { transition: transform var(--vbl-base), opacity var(--vbl-fast); }
.vbl-theme-toggle .vbl-icon--moon { display: none; }
[data-theme="light"] .vbl-theme-toggle .vbl-icon--moon { display: block; }
[data-theme="light"] .vbl-theme-toggle .vbl-icon--sun { display: none; }

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]):not([data-theme="light"]) .vbl-theme-toggle .vbl-icon--moon { display: block; }
	:root:not([data-theme="dark"]):not([data-theme="light"]) .vbl-theme-toggle .vbl-icon--sun { display: none; }
}

/* user menu */
.vbl-user { position: relative; }

.vbl-user__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-full);
	padding: 4px 12px 4px 5px;
	cursor: pointer;
	color: var(--vbl-text-soft);
	font-family: inherit;
	font-size: .88rem;
	font-weight: 500;
	transition: background var(--vbl-fast), border-color var(--vbl-fast);
}

.vbl-user__trigger:hover { background: var(--vbl-surface-2); border-color: var(--vbl-border-strong); }

.vbl-avatar {
	width: 30px; height: 30px;
	border-radius: var(--vbl-r-full);
	overflow: hidden;
	flex: none;
	background: var(--vbl-accent-soft);
	color: var(--vbl-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .8rem;
}

.vbl-avatar img { width: 100%; height: 100%; object-fit: cover; }

.vbl-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	/*
	 * Anchored to the inline-end edge so it opens inwards. Anchored the other
	 * way it hung 69px off the side of the viewport, because the account menu
	 * sits hard against that edge of the header.
	 */
	inset-inline-end: 0;
	min-width: 220px;
	max-width: calc(100vw - 24px);
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-md);
	box-shadow: var(--vbl-shadow-lg);
	padding: 7px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--vbl-fast), transform var(--vbl-fast), visibility var(--vbl-fast);
	z-index: 30;
}

.vbl-user.is-open .vbl-dropdown,
.vbl-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.vbl-dropdown a, .vbl-dropdown button {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 9px 11px;
	border: 0;
	background: none;
	border-radius: var(--vbl-r-xs);
	color: var(--vbl-text-soft);
	font-size: .89rem;
	font-family: inherit;
	text-align: right;
	cursor: pointer;
}

.vbl-dropdown a:hover, .vbl-dropdown button:hover { background: var(--vbl-surface-2); color: var(--vbl-text); }
.vbl-dropdown__sep { height: 1px; background: var(--vbl-border); margin: 6px 3px; }

/* mobile nav */
.vbl-burger { display: none; }

.vbl-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	visibility: hidden;
	pointer-events: none;
	/*
	 * The closed panel is parked off-screen with a transform, and a transform
	 * still counts towards the document's scroll width. Clip it to the viewport
	 * so the parked drawer cannot create a horizontal scrollbar.
	 */
	overflow: hidden;
}

.vbl-drawer.is-open { visibility: visible; pointer-events: auto; }

.vbl-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 16, .55);
	opacity: 0;
	transition: opacity var(--vbl-base);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.vbl-drawer.is-open .vbl-drawer__scrim { opacity: 1; }

.vbl-drawer__panel {
	position: relative;
	width: min(330px, 88vw);
	margin-inline-end: auto;
	background: var(--vbl-surface);
	border-inline-end: 1px solid var(--vbl-border);
	height: 100%;
	overflow-y: auto;
	padding: 20px;
	/*
	 * translateX is physical, so the hidden position must follow the writing
	 * direction. The panel rests against the inline-start edge — the right in
	 * RTL, the left in LTR — and slides out towards that same edge.
	 */
	transform: translateX(-100%);
	transition: transform var(--vbl-base);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

[dir="rtl"] .vbl-drawer__panel { transform: translateX(100%); }

.vbl-drawer.is-open .vbl-drawer__panel,
[dir="rtl"] .vbl-drawer.is-open .vbl-drawer__panel { transform: translateX(0); }

.vbl-drawer__panel a {
	display: block;
	padding: 12px 14px;
	border-radius: var(--vbl-r-sm);
	color: var(--vbl-text-soft);
	font-weight: 500;
	border: 1px solid transparent;
}

.vbl-drawer__panel a:hover { background: var(--vbl-surface-2); color: var(--vbl-text); border-color: var(--vbl-border); }

.vbl-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vbl-gap-3);
	padding-bottom: var(--vbl-gap-4);
	border-bottom: 1px solid var(--vbl-border);
}

/* --- drawer identity card ------------------------------------------------ */

.vbl-duser {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: var(--vbl-gap-4) 0;
}

.vbl-duser__avatar {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	flex: none;
}

/*
 * `.vbl-drawer__panel a` is more specific than `.vbl-duser__avatar`, so it was
 * winning: the anchor came out display:block with 12px/14px padding and a
 * border, which pushed the 50px picture 13px down inside its 60px box and left
 * the top of the progress disc uncovered — the stray green wedge above the
 * avatar. Matching that selector's specificity puts the layout back.
 */
.vbl-drawer__panel .vbl-duser__avatar {
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	width: 60px;
	height: 60px;
}

.vbl-drawer__panel .vbl-duser__avatar:hover { background: none; }

/*
 * The ring plots average course progress: --vbl-ring is the swept angle, set
 * inline from the real percentage.
 *
 * The conic gradient paints a filled disc, so it is masked down to a true
 * annulus rather than being hidden behind the avatar. Relying on the overlay
 * meant any misalignment showed the disc's interior as a solid wedge.
 */
.vbl-duser__ring {
	position: absolute;
	inset: 0;
	border-radius: var(--vbl-r-full);
	background: conic-gradient(var(--vbl-accent) var(--vbl-ring, 0deg), var(--vbl-surface-3) 0);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 3.5px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 3.5px));
}

.vbl-duser__pic {
	position: relative;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: var(--vbl-r-full);
	overflow: hidden;
	background: var(--vbl-accent-soft);
	box-shadow: 0 0 0 3px var(--vbl-surface);
	/* initial shows through when the remote avatar is missing or blocked */
	color: var(--vbl-accent);
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1;
}

.vbl-duser__initial { grid-area: 1 / 1; }

/*
 * The global `img { height: auto }` would letterbox the avatar, so pin both
 * axes and crop with object-fit to fill the circle exactly.
 */
.vbl-duser__pic img {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: inherit;
	display: block;
}

/*
 * Centred with physical left/translate: `inset-inline-start` flips under RTL
 * while `translateX` does not, so the pair pushed the badge off to one side.
 */
.vbl-duser__pct {
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%);
	box-shadow: 0 0 0 2px var(--vbl-surface);
	background: var(--vbl-accent);
	color: var(--vbl-accent-ink);
	font-size: .66rem;
	font-weight: 700;
	line-height: 1;
	padding: 3px 6px;
	border-radius: var(--vbl-r-full);
	white-space: nowrap;
}

.vbl-duser__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vbl-duser__name { color: var(--vbl-text); font-size: 1rem; font-weight: 700; }
.vbl-duser__stat { color: var(--vbl-text-muted); font-size: .8rem; line-height: 1.6; }

.vbl-duser--guest { flex-direction: column; align-items: stretch; gap: 11px; }
.vbl-duser__pitch { color: var(--vbl-text-soft); font-size: .88rem; margin: 0; line-height: 1.7; }
.vbl-duser__cta { display: flex; gap: 8px; }
.vbl-duser__cta .vbl-btn { flex: 1; justify-content: center; }

/* --- drawer sections ------------------------------------------------------ */

.vbl-drawer__search { margin-bottom: var(--vbl-gap-4); }
.vbl-drawer__search .vbl-search__form { position: relative; }

.vbl-drawer__section { padding-top: var(--vbl-gap-4); border-top: 1px solid var(--vbl-border); }

.vbl-drawer__label {
	display: block;
	color: var(--vbl-text-muted);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .04em;
	margin-bottom: 8px;
}

.vbl-drawer__links { display: flex; flex-direction: column; gap: 2px; }

.vbl-drawer__links a,
.vbl-drawer__list a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 12px;
	border-radius: var(--vbl-r-sm);
	color: var(--vbl-text-soft);
	font-weight: 500;
	font-size: .93rem;
	border: 1px solid transparent;
	transition: background var(--vbl-fast), color var(--vbl-fast);
}

.vbl-drawer__links a:hover,
.vbl-drawer__list a:hover { background: var(--vbl-surface-2); color: var(--vbl-text); }

.vbl-drawer__links a .vbl-icon { color: var(--vbl-text-muted); flex: none; }
.vbl-drawer__links a:hover .vbl-icon { color: var(--vbl-accent); }

.vbl-drawer__logout { color: var(--vbl-danger); }
.vbl-drawer__logout .vbl-icon,
.vbl-drawer__logout:hover .vbl-icon { color: var(--vbl-danger); }
.vbl-drawer__logout:hover { background: var(--vbl-danger-soft); color: var(--vbl-danger); }

.vbl-drawer__foot {
	margin-top: auto;
	padding-top: var(--vbl-gap-4);
	border-top: 1px solid var(--vbl-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vbl-gap-3);
}

/* ==========================================================================
   8. Search
   ========================================================================== */

.vbl-search { position: relative; }

.vbl-search__form { display: flex; align-items: center; }

.vbl-search__input {
	width: 100%;
	background: var(--vbl-surface-2);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-full);
	color: var(--vbl-text);
	font-family: inherit;
	font-size: .9rem;
	padding: 11px 44px 11px 18px;
	transition: border-color var(--vbl-fast), background var(--vbl-fast);
}

.vbl-search__input::placeholder { color: var(--vbl-text-muted); }
.vbl-search__input:focus { outline: 0; border-color: var(--vbl-accent-line); background: var(--vbl-surface); }

.vbl-search__submit {
	position: absolute;
	inset-inline-end: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 0;
	color: var(--vbl-text-muted);
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	border-radius: var(--vbl-r-xs);
}

.vbl-search__submit:hover { color: var(--vbl-accent); }

.vbl-search__results {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline: 0;
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-md);
	box-shadow: var(--vbl-shadow-lg);
	overflow: hidden;
	z-index: 40;
}

.vbl-search__results[hidden] { display: none; }

.vbl-search__item {
	display: flex;
	gap: 11px;
	align-items: center;
	padding: 10px 13px;
	color: var(--vbl-text-soft);
	border-bottom: 1px solid var(--vbl-border);
}

.vbl-search__item:last-child { border-bottom: 0; }
.vbl-search__item:hover { background: var(--vbl-surface-2); color: var(--vbl-text); }
.vbl-search__item img { width: 52px; height: 34px; border-radius: var(--vbl-r-xs); object-fit: cover; }
.vbl-search__item strong { display: block; font-size: .9rem; font-weight: 600; color: var(--vbl-text); }
.vbl-search__item span { font-size: .78rem; color: var(--vbl-text-muted); }
.vbl-search__empty { padding: 14px; color: var(--vbl-text-muted); font-size: .88rem; }

/* header inline search grows on desktop */
/* placement is the header grid's job now — this only needs to fill its column */
.vbl-header__search { width: 100%; }

/* ==========================================================================
   9. Hero
   ========================================================================== */

.vbl-hero { position: relative; padding-block: clamp(48px, 7vw, 92px) clamp(44px, 6vw, 78px); overflow: hidden; }

.vbl-hero::before {
	content: "";
	position: absolute;
	inset: -20% 0 auto;
	height: 520px;
	background: var(--vbl-glow);
	pointer-events: none;
	z-index: 0;
}

.vbl-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(30px, 5vw, 64px);
	align-items: center;
}

.vbl-hero__title { margin-bottom: 18px; }
.vbl-hero__title em { font-style: normal; color: var(--vbl-accent); }

.vbl-hero__text { font-size: 1.05rem; color: var(--vbl-text-soft); max-width: 54ch; margin-bottom: 26px; }

.vbl-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.vbl-hero__meta {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
	padding-top: 22px;
	border-top: 1px solid var(--vbl-border);
}

.vbl-hero__meta-item strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.vbl-hero__meta-item span { font-size: .82rem; color: var(--vbl-text-muted); }

/* hero visual */
.vbl-hero__visual { position: relative; }

.vbl-hero__card {
	position: relative;
	border-radius: var(--vbl-r-xl);
	overflow: hidden;
	border: 1px solid var(--vbl-border);
	background: var(--vbl-surface);
	box-shadow: var(--vbl-shadow-lg);
}

.vbl-hero__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.vbl-hero__card-body { padding: 18px 20px 20px; }

.vbl-hero__badge {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	z-index: 2;
}

.vbl-hero__float {
	position: absolute;
	bottom: -18px;
	inset-inline-start: -14px;
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-md);
	box-shadow: var(--vbl-shadow-lg);
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: .86rem;
}

.vbl-hero__float strong { display: block; font-size: .95rem; }

@media (max-width: 520px) { .vbl-hero__float { inset-inline-start: 8px; bottom: -14px; } }

/* ==========================================================================
   10. Course card
   ========================================================================== */

.vbl-course-card {
	display: flex;
	flex-direction: column;
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-lg);
	overflow: hidden;
	height: 100%;
	transition: border-color var(--vbl-base), transform var(--vbl-base), box-shadow var(--vbl-base);
}

.vbl-course-card:hover {
	border-color: var(--vbl-border-strong);
	transform: translateY(-3px);
	box-shadow: var(--vbl-shadow-md);
}

.vbl-course-card__media { position: relative; display: block; overflow: hidden; background: var(--vbl-surface-3); }

.vbl-course-card__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .5s var(--vbl-ease);
}

.vbl-course-card:hover .vbl-course-card__media img { transform: scale(1.03); }

.vbl-course-card__media--placeholder {
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vbl-text-muted);
	background: linear-gradient(135deg, var(--vbl-surface-3), var(--vbl-surface-2));
}

.vbl-course-card__tags {
	position: absolute;
	top: 11px;
	inset-inline-start: 11px;
	display: flex;
	gap: 6px;
}

.vbl-course-card__body { padding: 17px 18px; display: flex; flex-direction: column; flex: 1; gap: 10px; }

.vbl-course-card__title { font-size: 1.03rem; font-weight: 700; line-height: 1.65; margin: 0; }
.vbl-course-card__title a { color: var(--vbl-text); }
.vbl-course-card__title a:hover { color: var(--vbl-accent); }

.vbl-course-card__excerpt {
	font-size: .87rem;
	color: var(--vbl-text-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vbl-course-card__stats {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: .8rem;
	color: var(--vbl-text-muted);
	flex-wrap: wrap;
}

.vbl-course-card__stat { display: inline-flex; align-items: center; gap: 5px; }

.vbl-course-card__foot {
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid var(--vbl-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.vbl-price { display: flex; align-items: baseline; gap: 8px; }
.vbl-price__now { font-size: 1.02rem; font-weight: 700; color: var(--vbl-text); }
.vbl-price__was { font-size: .82rem; color: var(--vbl-text-muted); text-decoration: line-through; }
.vbl-price--free .vbl-price__now { color: var(--vbl-accent); }

.vbl-rating { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--vbl-text-muted); }
.vbl-rating strong { color: var(--vbl-text); font-weight: 700; }

/* stars */
.vbl-stars { display: inline-flex; gap: 1px; color: var(--vbl-warn); }
.vbl-star__icon { stroke: currentColor; }
.vbl-star .vbl-star__icon { fill: none; opacity: .35; }
.vbl-star.is-full .vbl-star__icon { fill: currentColor; opacity: 1; }
.vbl-star.is-half .vbl-star__icon { fill: currentColor; opacity: .55; }

/* ==========================================================================
   11. Feature / value tiles
   ========================================================================== */

.vbl-feature {
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-lg);
	padding: var(--vbl-gap-5);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vbl-feature h3 { font-size: 1rem; margin: 0; }
.vbl-feature p { font-size: .88rem; color: var(--vbl-text-muted); margin: 0; }

/* ==========================================================================
   12. Stats strip
   ========================================================================== */

.vbl-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
	gap: var(--vbl-gap-4);
}

.vbl-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: var(--vbl-gap-5) var(--vbl-gap-4);
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-lg);
	text-align: center;
	color: var(--vbl-accent);
}

.vbl-stats__value { font-size: 1.5rem; font-weight: 800; color: var(--vbl-text); letter-spacing: -.02em; }
.vbl-stats__label { font-size: .84rem; color: var(--vbl-text-muted); }

/* ==========================================================================
   13. Curriculum accordion
   ========================================================================== */

.vbl-curriculum { display: flex; flex-direction: column; gap: 12px; }

.vbl-sect {
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-md);
	background: var(--vbl-surface);
	overflow: hidden;
}

.vbl-sect__head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 15px 18px;
	background: none;
	border: 0;
	color: var(--vbl-text);
	font-family: inherit;
	font-size: .96rem;
	font-weight: 700;
	text-align: right;
	cursor: pointer;
	transition: background var(--vbl-fast);
}

.vbl-sect__head:hover { background: var(--vbl-surface-2); }
.vbl-sect__head .vbl-icon { color: var(--vbl-text-muted); transition: transform var(--vbl-base); }
.vbl-sect.is-open .vbl-sect__head .vbl-icon { transform: rotate(180deg); }
.vbl-sect__index { color: var(--vbl-text-muted); font-weight: 600; font-size: .85rem; }
.vbl-sect__meta { margin-inline-start: auto; font-size: .8rem; font-weight: 500; color: var(--vbl-text-muted); }

.vbl-sect__body { border-top: 1px solid var(--vbl-border); }
.vbl-sect__body[hidden] { display: none; }

.vbl-lesson-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-bottom: 1px solid var(--vbl-border);
	color: var(--vbl-text-soft);
	font-size: .9rem;
}

.vbl-lesson-row:last-child { border-bottom: 0; }
.vbl-lesson-row:hover { background: var(--vbl-surface-2); }
.vbl-lesson-row__num { color: var(--vbl-text-muted); font-size: .82rem; min-width: 22px; }
.vbl-lesson-row__title { flex: 1; color: inherit; font-weight: 500; }
.vbl-lesson-row__title:hover { color: var(--vbl-accent); }
.vbl-lesson-row__dur { font-size: .8rem; color: var(--vbl-text-muted); direction: ltr; }
.vbl-lesson-row__lock { color: var(--vbl-text-muted); }
.vbl-lesson-row__play { color: var(--vbl-accent); }
.vbl-lesson-row.is-done .vbl-lesson-row__title { color: var(--vbl-text-muted); }
.vbl-lesson-row__check { color: var(--vbl-accent); }

/* ==========================================================================
   14. Testimonials
   ========================================================================== */

.vbl-quote {
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-lg);
	padding: var(--vbl-gap-5);
	display: flex;
	flex-direction: column;
	gap: 13px;
	height: 100%;
}

.vbl-quote__text { font-size: .92rem; color: var(--vbl-text-soft); margin: 0; flex: 1; }
.vbl-quote__author { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.vbl-quote__author strong { display: block; }
.vbl-quote__author span { color: var(--vbl-text-muted); font-size: .78rem; }

/* ==========================================================================
   15. FAQ
   ========================================================================== */

.vbl-faq { display: flex; flex-direction: column; gap: 10px; }

.vbl-faq__item {
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-md);
	background: var(--vbl-surface);
	overflow: hidden;
}

.vbl-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding: 15px 18px;
	background: none;
	border: 0;
	color: var(--vbl-text);
	font-family: inherit;
	font-size: .95rem;
	font-weight: 600;
	text-align: right;
	cursor: pointer;
}

.vbl-faq__q .vbl-icon { color: var(--vbl-text-muted); transition: transform var(--vbl-base); flex: none; }
.vbl-faq__q[aria-expanded="true"] .vbl-icon { transform: rotate(180deg); color: var(--vbl-accent); }

.vbl-faq__a { padding: 0 18px 16px; color: var(--vbl-text-muted); font-size: .9rem; }
.vbl-faq__a[hidden] { display: none; }
.vbl-faq__a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   16. CTA band
   ========================================================================== */

.vbl-cta-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vbl-gap-5);
	padding: clamp(26px, 4vw, 44px);
	border-radius: var(--vbl-r-xl);
	background: var(--vbl-surface);
	border: 1px solid var(--vbl-border);
	position: relative;
	overflow: hidden;
	flex-wrap: wrap;
}

.vbl-cta-band::before {
	content: "";
	position: absolute;
	inset: auto -10% -60% auto;
	width: 420px;
	height: 420px;
	background: var(--vbl-glow);
	pointer-events: none;
}

.vbl-cta-band__text { position: relative; max-width: 60ch; }
.vbl-cta-band h3 { margin-bottom: 6px; }
.vbl-cta-band p { margin: 0; color: var(--vbl-text-muted); font-size: .93rem; }
.vbl-cta-band .vbl-btn { position: relative; }

/* ==========================================================================
   17. Footer
   ========================================================================== */

.vbl-footer {
	border-top: 1px solid var(--vbl-border);
	background: var(--vbl-surface);
	margin-top: var(--vbl-gap-8);
	padding-top: var(--vbl-gap-7);
}

.vbl-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(min(150px, 100%), 1fr));
	gap: var(--vbl-gap-6);
	padding-bottom: var(--vbl-gap-7);
}

.vbl-footer__about p { font-size: .88rem; color: var(--vbl-text-muted); max-width: 40ch; }

.vbl-footer h4 {
	font-size: .88rem;
	font-weight: 700;
	margin-bottom: 14px;
	color: var(--vbl-text);
}

.vbl-footer ul { list-style: none; padding: 0; margin: 0; }
.vbl-footer li { margin-bottom: 9px; }
.vbl-footer a { color: var(--vbl-text-muted); font-size: .87rem; }
.vbl-footer a:hover { color: var(--vbl-accent); }

.vbl-social { display: flex; gap: 8px; margin-top: 16px; }

.vbl-footer__bottom {
	border-top: 1px solid var(--vbl-border);
	padding-block: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	font-size: .83rem;
	color: var(--vbl-text-muted);
}

/* ==========================================================================
   18. Forms
   ========================================================================== */

.vbl-field { margin-bottom: var(--vbl-gap-4); }

.vbl-field label {
	display: block;
	font-size: .87rem;
	font-weight: 600;
	margin-bottom: 7px;
	color: var(--vbl-text-soft);
}

.vbl-input, .vbl-textarea, .vbl-select,
input[type="text"].vbl-input, input[type="email"].vbl-input,
input[type="password"].vbl-input, input[type="url"].vbl-input,
input[type="search"].vbl-input, input[type="number"].vbl-input {
	width: 100%;
	background: var(--vbl-surface-2);
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-sm);
	color: var(--vbl-text);
	font-family: inherit;
	font-size: .93rem;
	padding: 12px 14px;
	transition: border-color var(--vbl-fast), background var(--vbl-fast), box-shadow var(--vbl-fast);
}

.vbl-input::placeholder, .vbl-textarea::placeholder { color: var(--vbl-text-muted); }

.vbl-input:focus, .vbl-textarea:focus, .vbl-select:focus {
	outline: 0;
	border-color: var(--vbl-accent-line);
	background: var(--vbl-surface);
	box-shadow: 0 0 0 3px var(--vbl-accent-soft);
}

.vbl-textarea { min-height: 130px; resize: vertical; line-height: 1.85; }
.vbl-select { appearance: none; background-image: none; cursor: pointer; }

.vbl-help { font-size: .79rem; color: var(--vbl-text-muted); margin-top: 6px; }

.vbl-check { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; cursor: pointer; }
.vbl-check input { margin-top: 6px; accent-color: var(--vbl-accent); width: 16px; height: 16px; flex: none; }

/* ==========================================================================
   19. Progress
   ========================================================================== */

.vbl-progress {
	height: 7px;
	background: var(--vbl-surface-3);
	border-radius: var(--vbl-r-full);
	overflow: hidden;
}

.vbl-progress__bar {
	height: 100%;
	background: var(--vbl-accent);
	border-radius: inherit;
	transition: width var(--vbl-base);
}

.vbl-progress--lg { height: 10px; }

.vbl-progress__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: .8rem;
	color: var(--vbl-text-muted);
	margin-bottom: 7px;
}

/* ==========================================================================
   20. Breadcrumbs & pagination
   ========================================================================== */

.vbl-breadcrumb {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	font-size: .82rem;
	color: var(--vbl-text-muted);
	margin-bottom: var(--vbl-gap-4);
}

.vbl-breadcrumb a { color: var(--vbl-text-muted); }
.vbl-breadcrumb a:hover { color: var(--vbl-accent); }
.vbl-breadcrumb__sep { opacity: .5; }

.vbl-pagination { display: flex; justify-content: center; margin-top: var(--vbl-gap-6); }

.vbl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 11px;
	margin: 0 3px;
	border: 1px solid var(--vbl-border);
	border-radius: var(--vbl-r-sm);
	color: var(--vbl-text-soft);
	font-size: .9rem;
	background: var(--vbl-surface);
}

.vbl-pagination .page-numbers:hover { border-color: var(--vbl-border-strong); color: var(--vbl-text); }

.vbl-pagination .page-numbers.current {
	background: var(--vbl-accent);
	border-color: var(--vbl-accent);
	color: var(--vbl-accent-ink);
	font-weight: 700;
}

/* ==========================================================================
   21. Entry content (posts, pages)
   ========================================================================== */

.vbl-entry { font-size: 1rem; line-height: 2; color: var(--vbl-text-soft); }
.vbl-entry > * { margin-bottom: 1.15em; }
.vbl-entry h2 { margin-top: 1.8em; font-size: 1.45rem; }
.vbl-entry h3 { margin-top: 1.5em; }
.vbl-entry img { border-radius: var(--vbl-r-md); }
.vbl-entry a { text-decoration: underline; text-underline-offset: 3px; }
.vbl-entry ul, .vbl-entry ol { padding-inline-start: 1.5em; }
.vbl-entry li { margin-bottom: .5em; }

.vbl-figure { margin: 0 0 1.5em; }
.vbl-figure figcaption { font-size: .82rem; color: var(--vbl-text-muted); text-align: center; margin-top: 9px; }

.alignwide { margin-inline: -40px; max-width: calc(100% + 80px); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.aligncenter { margin-inline: auto; display: block; }

/* WordPress core classes the theme intentionally styles */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--vbl-text-muted); text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   22. Utilities
   ========================================================================== */

.vbl-muted { color: var(--vbl-text-muted); }
.vbl-small { font-size: .84rem; }
.vbl-center { text-align: center; }
.vbl-mt-0 { margin-top: 0; }
.vbl-mb-0 { margin-bottom: 0; }
.vbl-mb-4 { margin-bottom: var(--vbl-gap-4); }
.vbl-mb-6 { margin-bottom: var(--vbl-gap-6); }
.vbl-hidden { display: none !important; }
.vbl-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbl-ltr { direction: ltr; text-align: left; }
.vbl-hr { border: 0; border-top: 1px solid var(--vbl-border); margin: var(--vbl-gap-5) 0; }

/* ==========================================================================
   23. Responsive — mobile-first ladder
   --------------------------------------------------------------------------
   The un-queried rules in this section ARE the phone layout; they intentionally
   come last so they win over the wide-screen defaults declared earlier in the
   file. Each min-width step then widens the layout back out.

   Ladder: base (phone) -> 480 -> 768 -> 1024 -> 1280.
   ========================================================================== */

/* --- Phone base ---------------------------------------------------------- */

:root {
	--vbl-header-h: 60px;
	--vbl-gap-7: 34px;
	--vbl-gap-8: 50px;
	--vbl-gap-9: 60px;
}

.vbl-container { padding-inline: 16px; }

/*
 * The header is the one component that used to force the document wider than
 * the viewport. On phones it carries the brand and the burger only — every
 * other control lives in the drawer — so it cannot overflow by construction.
 */
.vbl-header__bar {
	gap: var(--vbl-gap-3);
	padding-inline: 14px;
	/* burger | brand | actions — exactly one of burger/search shows per breakpoint */
	grid-template-columns: auto minmax(0, 1fr) auto;
	/* the nav tier is hidden here, so this bar closes the block on its own */
	border-radius: var(--vbl-r-lg);
}
.vbl-header__navbar { display: none; }
.vbl-header__search { display: none; }
.vbl-nav--desktop { display: none; }
.vbl-burger { display: inline-flex; }
.vbl-header__actions { margin-inline-start: auto; flex: none; }
.vbl-header__actions > .vbl-btn,
.vbl-header__actions > .vbl-user,
.vbl-header__actions > .vbl-theme-toggle { display: none; }
.vbl-brand { font-size: 1.02rem; }
.vbl-brand__sub { display: none; }
.vbl-brand__mark { width: 32px; height: 32px; }

/* Drawer */
.vbl-drawer__panel { width: min(320px, 86vw); padding: 18px; }
.vbl-drawer__auth { display: flex; flex-direction: column; gap: 8px; margin-top: var(--vbl-gap-5); }
.vbl-drawer__auth .vbl-btn { width: 100%; }
.vbl-drawer__theme { margin-top: var(--vbl-gap-4); }

/* Type scale */
.vbl-hero__text { font-size: .97rem; }
.vbl-section { padding-block: var(--vbl-gap-7); }
.vbl-section__head { flex-direction: column; align-items: flex-start; gap: var(--vbl-gap-3); }

/* Hero */
.vbl-hero { padding-block: 34px 40px; }
.vbl-hero__inner { grid-template-columns: 1fr; gap: var(--vbl-gap-6); }
.vbl-hero__float { display: none; }
.vbl-hero__cta { flex-direction: column; align-items: stretch; }
.vbl-hero__cta .vbl-btn { width: 100%; }

/* Bands and footer */
.vbl-cta-band { flex-direction: column; text-align: center; gap: var(--vbl-gap-5); }
.vbl-cta-band .vbl-btn { width: 100%; }
.vbl-footer__grid { grid-template-columns: 1fr; gap: var(--vbl-gap-5); }
.vbl-footer__bottom { flex-direction: column; text-align: center; gap: 8px; }

/* Curriculum rows stay readable at narrow widths */
.vbl-sect__head { padding: 13px 14px; font-size: .92rem; }
.vbl-lesson-row { padding: 11px 14px; font-size: .88rem; }

/* Forms: 16px keeps iOS from zooming the page on focus */
.vbl-input, .vbl-textarea, .vbl-select, .vbl-search__input { font-size: 16px; padding: 11px 13px; }
.vbl-search__input { padding-inline: 13px 40px; }
.vbl-field { margin-bottom: var(--vbl-gap-4); }

/* --- >= 480px: large phones ---------------------------------------------- */
@media (min-width: 480px) {
	.vbl-container { padding-inline: 20px; }
	.vbl-hero__cta { flex-direction: row; flex-wrap: wrap; align-items: center; }
	.vbl-hero__cta .vbl-btn { width: auto; }
	.vbl-cta-band .vbl-btn { width: auto; }
}

/* --- >= 768px: tablets ---------------------------------------------------- */
@media (min-width: 768px) {
	:root { --vbl-header-h: 66px; }

	.vbl-container { padding-inline: 24px; }

	/* the account controls fit alongside the brand again */
	.vbl-header__actions > .vbl-btn,
	.vbl-header__actions > .vbl-user,
	.vbl-header__actions > .vbl-theme-toggle { display: inline-flex; }
	.vbl-brand { font-size: 1.12rem; }
	.vbl-brand__sub { display: block; }
	.vbl-brand__mark { width: 34px; height: 34px; }

	.vbl-section__head { flex-direction: row; align-items: center; justify-content: space-between; }
	.vbl-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.vbl-footer__bottom { flex-direction: row; text-align: initial; }
	.vbl-cta-band { flex-direction: row; text-align: initial; }
}

/* --- >= 1024px: laptops --------------------------------------------------- */
@media (min-width: 1024px) {
	:root { --vbl-header-h: 72px; }

	.vbl-container { padding-inline: 32px; }

	.vbl-header__bar {
		gap: var(--vbl-gap-4);
		padding-inline: 24px;
		/*
		 * Equal side columns put the search dead centre in the bar rather than
		 * centring it in whatever space the brand and actions leave over.
		 */
		grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr);
		/* fully rounded even with the nav tier attached below */
		border-radius: var(--vbl-r-lg);
	}
	.vbl-header__navbar { display: block; }
	.vbl-header__search { display: block; }
	.vbl-nav--desktop { display: flex; }
	.vbl-burger { display: none; }
	.vbl-header__actions { margin-inline-start: 0; }

	.vbl-hero { padding-block: clamp(48px, 7vw, 92px) clamp(44px, 6vw, 78px); }
	.vbl-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 64px); }
	.vbl-hero__float { display: flex; }
	.vbl-hero__text { font-size: 1.05rem; }

	.vbl-section { padding-block: var(--vbl-gap-8); }
	.vbl-footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
}

/* --- >= 1280px: desktops -------------------------------------------------- */
@media (min-width: 1280px) {
	.vbl-container { padding-inline: 48px; }
}

/* --- Touch devices -------------------------------------------------------- */
/*
 * any-pointer:coarse also covers touch-capable laptops, which the older
 * hover:none query missed entirely.
 */
@media (any-pointer: coarse) {
	.vbl-icon-btn { min-width: 44px; min-height: 44px; }
	.vbl-btn { min-height: 44px; }
	.vbl-search__submit { min-width: 44px; min-height: 44px; }
	.vbl-faq__q, .vbl-sect__head { min-height: 48px; }
	.vbl-nav__link, .vbl-dropdown a, .vbl-dropdown button { min-height: 44px; }
}

@media (hover: none) {
	.vbl-btn:hover { transform: none; }
	.vbl-course-card:hover { transform: none; }
	.vbl-nav__link:hover { background: transparent; }
	.vbl-lesson-row:hover { background: transparent; }
}

/* --- Forced colours ------------------------------------------------------- */
@media (forced-colors: active) {
	.vbl-btn { border: 2px solid ButtonText; }
	.vbl-input, .vbl-textarea, .vbl-select { border: 2px solid ButtonText; }
	.vbl-card { border: 2px solid CanvasText; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
	.vbl-header, .vbl-footer, .vbl-drawer, .vbl-hero__visual,
	.vbl-cta-band, .vbl-search, .vbl-burger, .vbl-theme-toggle { display: none !important; }
	.vbl-main { padding: 0; }
	.vbl-card { box-shadow: none; border: 1px solid #ccc; }
	body { font-size: 12pt; line-height: 1.5; color: #000; background: #fff; }
	a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   24. Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
/*
 * Metadata separator.
 *
 * These lines used to carry a literal "·" in the sentence. In IRANYekan the
 * middle dot and the Persian zero are near-identical at text size, so
 * "۲ درس · ۷ دقیقه" was read as seventy minutes. A drawn rule cannot be
 * mistaken for a digit.
 */
.vbl-sep {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.vbl-sep > * + *::before {
	content: '';
	display: inline-block;
	width: 1px;
	height: .82em;
	margin-inline-end: 10px;
	background: currentColor;
	opacity: .38;
	vertical-align: -.08em;
}

/*
 * The panel shortcut in the header. It carries the full label where there is
 * room and the short one where there is not, rather than shrinking into an
 * unlabelled icon — this is the one control staff are looking for.
 */
.vbl-panel-cta { white-space: nowrap; flex: none; }

/*
 * The drawer and dropdown entries are ordinary menu rows that happen to lead
 * somewhere important, so they look like their neighbours and only the accent
 * marks them out. They were first given the class name the drawer's own
 * sliding container already uses, which dropped an 18px padded flex column on
 * a single link.
 */
.vbl-drawer__cta,
.vbl-dropdown__cta { color: var(--vbl-accent) !important; font-weight: 600; }
.vbl-drawer__cta .vbl-icon,
.vbl-dropdown__cta .vbl-icon { color: var(--vbl-accent); }
.vbl-panel-cta__short { display: none; }

@media (max-width: 1100px) {
	.vbl-panel-cta__long { display: none; }
	.vbl-panel-cta__short { display: inline; }
}

/* On a phone the header is already tight and the drawer carries the same link
   with its full name, so the button steps aside there. */
@media (max-width: 860px) {
	.vbl-panel-cta { display: none; }
}
