/* Rasabasa Core – design tokens, WoodMart overrides and components (prefix rb-). */

/* ---------- Tokens ---------- */
html:root {
	--rb-ink: #1d1a17;
	--rb-text: #3a3330;
	--rb-muted: #6a605a;
	--rb-bg: #ffffff;
	--rb-cream: #fbf7f3;
	--rb-sand: #f3e9e1;
	--rb-line: #e9dfd7;
	--rb-primary: #1f4e79;
	--rb-primary-dark: #173b5c;
	--rb-cta: #b84a26;
	--rb-cta-dark: #a8431f;
	--rb-green: #2f7d5b;
	--rb-radius: 14px;
	--rb-radius-lg: 22px;
	--rb-shadow: 0 1px 2px rgba(29, 26, 23, .06), 0 8px 24px rgba(29, 26, 23, .07);
	--rb-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--rb-gutter: 16px;
	--wd-container-w: 1200px; /* WoodMart pages (cart, old pages) line up with the plugin's sections. */

	/* WoodMart variables, so the theme's own elements match. */
	--wd-primary-color: var(--rb-primary);
	--wd-link-color: var(--rb-primary);
	--wd-link-color-hover: var(--rb-primary-dark);
	--wd-text-font: var(--rb-font);
	--wd-title-font: var(--rb-font);
	--wd-entities-title-font: var(--rb-font);
	--wd-widget-title-font: var(--rb-font);
	--wd-header-el-font: var(--rb-font);
	--wd-text-font-size: 17px;
	--wd-title-font-weight: 700;
	--wd-title-color: var(--rb-ink);
	--wd-text-color: var(--rb-text);
	--color-gray-900: var(--rb-ink);
	--btn-accented-bgcolor: var(--rb-cta);
	--btn-accented-bgcolor-hover: var(--rb-cta-dark);
	--btn-accented-color: #fff;
	--btn-accented-color-hover: #fff;
}

@media (min-width: 768px) {
	html:root { --rb-gutter: 24px; }
}

/* ---------- Site-wide fixes ---------- */
body.rb-site {
	font-family: var(--rb-font);
	letter-spacing: normal;
	color: var(--rb-text);
}
body.rb-site .vc_column_container { font-size: 1em; } /* Old Customizer CSS shrank builder text to 12.8px. */
body.rb-site h1, body.rb-site h2, body.rb-site h3, body.rb-site h4,
body.rb-site .title, body.rb-site .product_title, body.rb-site .wd-entities-title {
	font-family: var(--rb-font);
	text-transform: none;
	letter-spacing: normal;
}
body.rb-site .wd-nav > li > a { letter-spacing: .02em; }
body.rb-site :focus-visible { outline: 3px solid var(--rb-primary); outline-offset: 2px; }
body.rb-site ins { text-decoration: none; }

/* Plugin views use the full width; sections set their own container. */
.rb-view .wd-content-layout,
.rb-view .wd-content-layout.container {
	max-width: none;
	padding: 0;
}
.rb-view .wd-content-layout { display: block; } /* Never a sidebar grid on plugin views. */
.rb-view .wd-sidebar, .rb-view .wd-sidebar-opener { display: none; }
.rb-view .wd-page-content { overflow-x: clip; }
.rb-view .main-page-wrapper { padding-top: 0; }

/* ---------- Layout ---------- */
.rb-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--rb-gutter);
}
.rb-wrap--narrow { max-width: 820px; }
.rb-section { padding-block: 48px; }
@media (min-width: 900px) { .rb-section { padding-block: 80px; } }
.rb-section--cream { background: var(--rb-cream); }
.rb-section--sand { background: var(--rb-sand); }
.rb-section--ink { background: var(--rb-ink); color: #f4eee9; }
.rb-section--ink h2, .rb-section--ink h3 { color: #fff; }
.rb-section__head { max-width: 720px; margin-bottom: 32px; }
.rb-section__head--center { margin-inline: auto; text-align: center; }

/* Columns follow the available width, so grids also fit narrow areas (thank-you page). */
.rb-grid { display: grid; gap: 20px; }
.rb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.rb-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.rb-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 1000px) { .rb-grid { gap: 28px; } }

/* ---------- Typography ---------- */
.rb-view, .rb-part { font-size: 17px; line-height: 1.65; }
.rb-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rb-cta);
}
.rb-h1, .rb-h2, .rb-h3 { color: var(--rb-ink); font-weight: 700; line-height: 1.15; margin: 0 0 16px; }
.rb-h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); letter-spacing: -.015em; }
.rb-h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); letter-spacing: -.01em; }
.rb-h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; }
.rb-lead { font-size: 1.15rem; line-height: 1.6; color: var(--rb-text); margin: 0 0 20px; }
@media (min-width: 900px) { .rb-lead { font-size: 1.25rem; } }
.rb-muted { color: var(--rb-muted); }
.rb-small { font-size: .9rem; }
.rb-prose p { margin: 0 0 1em; }
.rb-prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.rb-btn, a.rb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 28px;
	border: 2px solid var(--rb-cta);
	border-radius: 999px;
	background: var(--rb-cta);
	color: #fff;
	font-family: var(--rb-font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, transform .15s;
}
.rb-btn:hover, .rb-btn:focus-visible { background: var(--rb-cta-dark); border-color: var(--rb-cta-dark); color: #fff; }
.rb-btn:active { transform: translateY(1px); }
.rb-btn--lg { min-height: 58px; padding-inline: 34px; font-size: 1.05rem; }
.rb-btn--block { width: 100%; }
.rb-btn--ghost, a.rb-btn--ghost { background: transparent; color: var(--rb-ink); border-color: var(--rb-ink); }
.rb-btn--ghost:hover, .rb-btn--ghost:focus-visible { background: var(--rb-ink); border-color: var(--rb-ink); color: #fff; }
.rb-btn .rb-icon { width: 18px; height: 18px; }
.rb-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rb-link { font-weight: 600; color: var(--rb-primary); text-decoration: underline; text-underline-offset: 3px; }
.rb-link:hover { color: var(--rb-primary-dark); }
.rb-link .rb-icon { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Icons, checks, facts ---------- */
.rb-icon { flex: none; }
.rb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rb-checks li { position: relative; padding-left: 34px; margin: 0; }
.rb-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--rb-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.rb-checks--two { gap: 12px 32px; }
@media (min-width: 760px) { .rb-checks--two { grid-template-columns: 1fr 1fr; } }

.rb-facts { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rb-facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--rb-line);
	font-size: .875rem;
	font-weight: 600;
	color: var(--rb-ink);
}
.rb-facts .rb-icon { width: 16px; height: 16px; color: var(--rb-primary); }

/* ---------- Price ---------- */
.rb-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rb-price__now { font-size: 1.75rem; font-weight: 700; color: var(--rb-ink); }
.rb-price .amount, .rb-price bdi { color: inherit; } /* WoodMart colours amounts blue; follow the price element instead. */
.rb-price__old { color: var(--rb-muted); font-size: 1.05rem; }
.rb-price__save {
	padding: 2px 10px;
	border-radius: 999px;
	background: #e7f2ec;
	color: #1f5d43;
	font-size: .85rem;
	font-weight: 700;
}
.rb-cart-savings { display: block; margin-top: 6px; color: #1f5d43; font-size: .9rem; font-weight: 700; }

/* ---------- Course cover (typographic, replaces dated banner images) ---------- */
.rb-cover {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 16 / 10;
	padding: 22px;
	overflow: clip; /* Not "hidden": lets the box grow when a long title needs more room. */
	border-radius: var(--rb-radius);
	color: var(--rb-ink);
	isolation: isolate;
}
.rb-cover::before, .rb-cover::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
}
.rb-cover::before { width: 70%; aspect-ratio: 1; right: -18%; top: -30%; }
.rb-cover::after { width: 34%; aspect-ratio: 1; left: -8%; bottom: -14%; background: rgba(255, 255, 255, .28); }
.rb-cover--peach { background: linear-gradient(135deg, #f4b998 0%, #f6d9c8 55%, #efe7e1 100%); }
.rb-cover--rose { background: linear-gradient(135deg, #eeb5c0 0%, #f4d9de 55%, #f1eaeb 100%); }
.rb-cover--sage { background: linear-gradient(135deg, #b9d2b2 0%, #dbe8d6 55%, #eef1ea 100%); }
.rb-cover--sky { background: linear-gradient(135deg, #b2d0e6 0%, #d9e7f2 55%, #edf1f5 100%); }
.rb-cover--sand { background: linear-gradient(135deg, #e3c9ae 0%, #efe1d2 55%, #f3efea 100%); }
.rb-cover__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.rb-cover__sub { margin: -4px 0 8px; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.rb-cover__title { margin: 6px 0 8px; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.rb-cover__by { font-size: .85rem; font-weight: 600; opacity: .85; }
.rb-cover--lg { aspect-ratio: 4 / 3; padding: 32px; }
.rb-cover--image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; padding: 0; object-fit: cover; }
.rb-cover--lg .rb-cover__title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }

/* ---------- Course card ---------- */
.rb-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--rb-line);
	border-radius: var(--rb-radius-lg);
	overflow: hidden;
	box-shadow: var(--rb-shadow);
	transition: transform .2s, box-shadow .2s;
}
.rb-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29, 26, 23, .06), 0 16px 36px rgba(29, 26, 23, .1); }
.rb-card__media { display: block; padding: 10px 10px 0; text-decoration: none; }
.rb-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.rb-card__title { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
.rb-card__title a { color: var(--rb-ink); text-decoration: none; }
.rb-card__title a:hover { color: var(--rb-primary); }
.rb-card__text { margin: 0 0 14px; color: var(--rb-muted); font-size: .95rem; line-height: 1.55; }
.rb-card .rb-facts { margin-bottom: 16px; }
.rb-card .rb-facts li { padding: 4px 10px; font-size: .8rem; background: var(--rb-cream); }
.rb-card__foot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.rb-card .rb-price__now { font-size: 1.35rem; }
.rb-card .rb-price__save { display: none; }
.rb-card .rb-btn { min-height: 46px; padding: 10px 20px; font-size: .95rem; }

/* ---------- Home hero ---------- */
.rb-hero { padding-block: 32px 48px; background: linear-gradient(180deg, var(--rb-cream) 0%, #fff 100%); }
.rb-hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
	.rb-hero { padding-block: 64px 80px; }
	.rb-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
.rb-hero__media { position: relative; } /* Text first on phones: headline and button stay above the fold. */
.rb-hero__photo {
	display: block;
	width: 100%;
	max-height: 300px;
	object-fit: cover;
	object-position: 50% 15%;
	border-radius: var(--rb-radius-lg);
	box-shadow: var(--rb-shadow);
}
@media (min-width: 900px) { .rb-hero__photo { max-height: 600px; aspect-ratio: 4 / 5; } }
.rb-hero__badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .94);
	box-shadow: var(--rb-shadow);
	font-size: .85rem;
	line-height: 1.3;
	color: var(--rb-ink);
}
.rb-hero__badge strong { display: block; font-size: 1.1rem; }
.rb-hero__badge .rb-icon { color: var(--rb-cta); width: 26px; height: 26px; }
.rb-hero .rb-btns { margin-top: 8px; }

/* Trust strip */
.rb-trust { padding-block: 22px; border-block: 1px solid var(--rb-line); background: #fff; }
.rb-trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; text-align: center; }
.rb-trust__label { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rb-muted); }
.rb-trust__logos { max-width: min(460px, 100%); height: auto; opacity: .75; filter: grayscale(1); }

/* ---------- Steps ---------- */
.rb-steps { list-style: none; margin: 0; padding: 0; counter-reset: rbstep; }
.rb-steps li {
	counter-increment: rbstep;
	position: relative;
	margin: 0;
	padding: 24px 24px 24px 76px;
	background: #fff;
	border: 1px solid var(--rb-line);
	border-radius: var(--rb-radius);
}
.rb-steps li::before {
	content: counter(rbstep);
	position: absolute;
	left: 22px;
	top: 22px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--rb-sand);
	color: var(--rb-cta);
	font-weight: 700;
}
.rb-steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.rb-steps p { margin: 0; color: var(--rb-muted); font-size: .95rem; }

/* ---------- Lecturer ---------- */
.rb-lecturer { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .rb-lecturer { grid-template-columns: 340px 1fr; gap: 56px; } }
.rb-lecturer__photo { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--rb-radius-lg); }
.rb-lecturer .rb-checks { margin: 20px 0 24px; }
.rb-lecturer .rb-checks li::before { background-color: var(--rb-primary); }

/* ---------- Testimonials ---------- */
.rb-quote {
	margin: 0;
	padding: 26px;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--rb-line);
	border-radius: var(--rb-radius);
}
.rb-quote__stars { display: flex; gap: 2px; color: #d99a1e; margin-bottom: 12px; }
.rb-quote__stars .rb-icon { width: 16px; height: 16px; }
.rb-quote p { margin: 0 0 16px; font-size: 1rem; line-height: 1.6; color: var(--rb-text); }
.rb-quote footer { margin-top: auto; font-weight: 700; color: var(--rb-ink); }
.rb-quote cite { font-style: normal; }

/* ---------- FAQ ---------- */
.rb-faq { display: grid; gap: 10px; }
.rb-faq details { background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); }
.rb-faq summary {
	position: relative;
	padding: 18px 56px 18px 22px;
	font-weight: 700;
	color: var(--rb-ink);
	cursor: pointer;
	list-style: none;
}
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--rb-cta);
}
.rb-faq details[open] summary::after { content: "–"; }
.rb-faq__a { padding: 0 22px 20px; color: var(--rb-text); }
.rb-faq__a p { margin: 0 0 .6em; }

/* ---------- Video ---------- */
.rb-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rb-radius); overflow: hidden; background: #000; }
.rb-video__btn { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.rb-video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.rb-video__btn:hover img, .rb-video__btn:focus-visible img { opacity: 1; }
.rb-video__btn:focus-visible { outline: 3px solid var(--rb-primary); outline-offset: -3px; }
.rb-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--rb-cta);
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.rb-video__play .rb-icon { width: 28px; height: 28px; margin-left: 4px; }
.rb-video--frame .rb-video__play { left: 20px; top: auto; bottom: 20px; transform: none; width: 60px; height: 60px; }
.rb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Free lectures ---------- */
.rb-lecture { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius-lg); overflow: hidden; }
.rb-lecture .rb-video { border-radius: 0; }
.rb-lecture__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rb-lecture__body .rb-h3 { margin-bottom: 10px; }
.rb-lecture__intro { margin: 0 0 12px; color: var(--rb-muted); font-size: .95rem; }
.rb-lecture .rb-checks { gap: 8px; font-size: .95rem; margin-bottom: 16px; }
.rb-lecture .rb-checks li { padding-left: 30px; }
.rb-lecture .rb-checks li::before { width: 19px; height: 19px; background-size: 11px; }
.rb-lecture__more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rb-line); font-size: .95rem; }
.rb-lecture--featured { border: 2px solid var(--rb-cta); }
@media (min-width: 1000px) {
	/* The recording sits inset beside the text, vertically centred, so a tall text column never letterboxes it. */
	.rb-lecture--featured { grid-column: span 2; flex-direction: row; align-items: center; }
	.rb-lecture--featured .rb-video { flex: 1.25; align-self: center; margin: 22px 0 22px 22px; border-radius: 12px; }
	.rb-lecture--featured .rb-lecture__body { flex: 1; align-self: stretch; padding: 28px; }
}
.rb-tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: #fbe9e2; color: #8f3a1c; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Newsletter ---------- */
.rb-newsletter { display: grid; gap: 24px; align-items: center; padding: 28px; border-radius: var(--rb-radius-lg); background: var(--rb-sand); }
@media (min-width: 900px) { .rb-newsletter { grid-template-columns: 1fr 1fr; padding: 48px; gap: 48px; } }
.rb-newsletter .rb-h2 { margin-bottom: 10px; }
.rb-nl-form { display: grid; gap: 12px; }
.rb-nl-form label { display: block; margin-bottom: 4px; font-size: .9rem; font-weight: 600; color: var(--rb-ink); }
.rb-nl-form input[type="text"], .rb-nl-form input[type="email"], .rb-nl-form input[type="tel"] {
	width: 100%;
	min-height: 50px;
	padding: 10px 16px;
	border: 1px solid #d8ccc2;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
	color: var(--rb-ink);
}
.rb-nl-form input:focus { border-color: var(--rb-primary); outline: 2px solid var(--rb-primary); outline-offset: 0; }
.rb-nl-form .rb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; font-weight: 400; color: var(--rb-text); }
.rb-nl-form .rb-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.rb-nl-form .ml-error input, .rb-nl-form .ml-error .rb-consent { border-color: #b3261e; color: #b3261e; }
.rb-nl-success { padding: 18px; border-radius: 12px; background: #fff; }
.rb-nl-success p { margin: 0 0 6px; }

/* ---------- Course page ---------- */
.rb-course-hero { padding-block: 28px 44px; background: linear-gradient(180deg, var(--rb-cream) 0%, #fff 100%); }
.rb-course-hero__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) {
	.rb-course-hero { padding-block: 56px 72px; }
	.rb-course-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
}
.rb-course-hero .rb-h1 { margin-bottom: 14px; }
@media (max-width: 599px) {
	.rb-course-hero .rb-facts li:nth-child(n+4) { display: none; } /* Keep the price above the fold on phones. */
	.rb-course-hero .rb-lead { font-size: 1.05rem; }
}
.rb-breadcrumbs { margin-bottom: 18px; font-size: .85rem; color: var(--rb-muted); }
.rb-breadcrumbs a { color: var(--rb-muted); text-decoration: underline; text-underline-offset: 2px; }
.rb-buybox { margin-top: 8px; padding: 22px; background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius-lg); box-shadow: var(--rb-shadow); }
.rb-buybox .rb-price { margin-bottom: 14px; }
.rb-buybox__trust { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--rb-muted); }
.rb-buybox__trust li { display: flex; gap: 8px; align-items: center; margin: 0; }
.rb-buybox__trust .rb-icon { width: 17px; height: 17px; color: var(--rb-green); }
.rb-course-media .rb-video, .rb-course-media .rb-cover { box-shadow: var(--rb-shadow); }
.rb-free-link { margin-top: 14px; font-size: .95rem; }
.rb-free-link .rb-link { display: inline-flex; align-items: center; gap: 8px; }
.rb-free-link .rb-icon { width: 14px; height: 14px; color: var(--rb-cta); }
.rb-section--intro { padding-top: 8px; } /* Directly under the hero, which already ends in white space. */

.rb-learn { display: grid; gap: 16px; }
@media (min-width: 760px) { .rb-learn { grid-template-columns: 1fr 1fr; } }
.rb-learn__item { padding: 22px; background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); }
.rb-learn__item p { margin: 0; color: var(--rb-muted); font-size: .95rem; }

.rb-program { list-style: none; margin: 0; padding: 0; counter-reset: rbprog; display: grid; gap: 14px; }
.rb-program li { counter-increment: rbprog; display: grid; grid-template-columns: 48px 1fr; gap: 16px; margin: 0; padding: 22px; background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); }
.rb-program li::before { content: counter(rbprog, decimal-leading-zero); font-size: 1.5rem; font-weight: 700; color: var(--rb-cta); line-height: 1.1; }
.rb-program p { margin: 0; color: var(--rb-muted); font-size: .95rem; }

.rb-note { margin: 18px 0 0; padding: 14px 18px; border-left: 4px solid var(--rb-cta); background: #fff; border-radius: 0 10px 10px 0; font-weight: 600; color: var(--rb-ink); }
.rb-guarantee { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--rb-radius); background: #e7f2ec; color: #1f3d30; }
.rb-guarantee .rb-icon { width: 34px; height: 34px; color: var(--rb-green); }
.rb-guarantee h3 { margin: 0 0 4px; font-size: 1.1rem; color: #173126; }
.rb-guarantee p { margin: 0; }

.rb-cta-band { text-align: center; }
.rb-cta-band .rb-price { justify-content: center; margin: 4px 0 18px; }
.rb-cta-band .rb-price__now { color: #fff; font-size: 2rem; }
.rb-cta-band .rb-price__old { color: #cfc5bd; }
.rb-cta-band .rb-h2 { color: #fff; }
.rb-disclaimer { margin: 0; padding-block: 20px; font-size: .8rem; color: var(--rb-muted); text-align: center; }

/* Sticky buy bar */
.rb-stickybar {
	position: fixed;
	z-index: 390;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px var(--rb-gutter) calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--rb-line);
	box-shadow: 0 -6px 20px rgba(29, 26, 23, .08);
	transform: translateY(110%);
	transition: transform .25s ease;
}
.rb-stickybar.is-visible { transform: translateY(0); }
.rb-stickybar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; margin-inline: auto; }
.rb-stickybar__title { display: none; font-weight: 700; color: var(--rb-ink); }
@media (min-width: 760px) { .rb-stickybar__title { display: block; } }
.rb-stickybar .rb-price__now { font-size: 1.3rem; }
.rb-stickybar .rb-price__old { font-size: .9rem; }
.rb-stickybar .rb-price__save { display: none; }
.rb-stickybar .rb-btn { min-height: 46px; padding: 10px 22px; }
.rb-stickybar__right { display: flex; align-items: center; gap: 14px; }
.rb-view--course .scrollToTop, .rb-view--course .wd-sticky-btn { bottom: 80px; }

/* ---------- Checkout & thank-you ---------- */
.rb-checkout-intro { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; background: var(--rb-cream); font-size: .95rem; color: var(--rb-ink); }
.rb-checkout-intro .rb-icon { color: var(--rb-green); }
.rb-next { margin: 0 0 20px; padding: 18px 20px; border-radius: 12px; background: var(--rb-cream); border: 1px solid var(--rb-line); font-size: .92rem; }
.rb-next h3 { margin: 0 0 8px; font-size: 1rem; color: var(--rb-ink); }
.rb-next ul { margin: 0; padding-left: 18px; }
.rb-next li { margin: 0 0 4px; }
.rb-next__guarantee { display: flex; gap: 8px; margin-top: 10px; font-weight: 600; color: #1f5d43; }
.rb-next__guarantee .rb-icon { width: 18px; height: 18px; }
.rb-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 14px; font-size: .82rem; color: var(--rb-muted); }
.rb-badges span { display: inline-flex; align-items: center; gap: 6px; }
.rb-badges .rb-icon { width: 15px; height: 15px; }
.rb-next--thankyou { padding: 24px; margin-bottom: 32px; font-size: 1rem; border-color: #cfe3d7; background: #f1f8f4; }
.rb-next--thankyou h2 { margin: 0 0 12px; font-size: 1.35rem; }
body.rb-site.woocommerce-checkout .form-row .description { font-size: .82rem; color: var(--rb-muted); }
body.rb-site.woocommerce-checkout #place_order { min-height: 56px; border-radius: 999px; font-size: 1.05rem; }
.rb-part .rb-section__head { margin-bottom: 20px; }

/* ---------- Pre-footer ---------- */
body.rb-site .wd-prefooter { padding-block: 0; background-color: var(--rb-ink); }
.rb-prefooter { padding-block: 48px 28px; color: #d9d0c8; font-size: .95rem; }
.rb-prefooter__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .rb-prefooter__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.rb-prefooter h2 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.rb-prefooter p { margin: 0 0 10px; }
.rb-prefooter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rb-prefooter li { margin: 0; }
.rb-prefooter a { color: #fff; text-decoration: none; }
@media (max-width: 759px) {
	/* Thumb-sized tap targets on phones. */
	.rb-prefooter ul { gap: 0; }
	.rb-prefooter li a, .rb-prefooter p a { display: inline-block; padding-block: 7px; }
	.rb-breadcrumbs a { display: inline-block; padding-block: 6px; }
}
.rb-prefooter a:hover { text-decoration: underline; }
.rb-prefooter__brand { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.rb-prefooter__pay { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; color: #b9aea5; }
body.rb-site .wd-copyrights {
	padding-block: 16px;
	background: var(--rb-ink);
	border-top: 1px solid rgba(255, 255, 255, .12);
	color: #b9aea5;
	font-size: .85rem;
}
body.rb-site .wd-copyrights a { color: #e9e1da !important; } /* The copyright text option has inline color:black. */
body.rb-site .wd-copyrights a:hover { color: #fff !important; }
/* Footer content lines up with the page sections. */
body.rb-site .wd-prefooter > .container,
body.rb-site .wd-copyrights > .container { max-width: 1200px; padding-inline: var(--rb-gutter); }
/* The footer's "Informacija" column already lists the legal pages. */
body.rb-site .wd-prefooter + .wd-footer .wd-copyrights .wd-col-end { display: none; }

/* ---------- About page ---------- */
.rb-about-hero { padding-block: 36px 56px; background: var(--rb-cream); }
.rb-about-hero .rb-lecturer__photo { max-width: 420px; }

/* ---------- Header ---------- */
body.rb-site .whb-header .container { max-width: 1200px; padding-inline: var(--rb-gutter); }
body.rb-site .whb-header {
	position: sticky; /* Navigation stays in reach on long course pages. */
	top: 0;
	z-index: 390;
	background: #fff;
	box-shadow: 0 1px 0 var(--rb-line);
}
body.rb-site.admin-bar .whb-header { top: 32px; }
@media (max-width: 782px) { body.rb-site.admin-bar .whb-header { top: 0; } }
body.rb-site [id] { scroll-margin-top: 96px; }
body.rb-site .whb-header-bottom-inner { height: 68px; max-height: 68px; }
body.rb-site .wd-nav-main > li > a {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rb-ink);
}
body.rb-site .wd-nav-main > li > a:hover,
body.rb-site .wd-nav-main > li.current-menu-item > a { color: var(--rb-cta); }
body.rb-site .wd-nav-main > li.rb-nav-cta { margin-inline-start: 12px; }
body.rb-site .wd-nav-main > li.rb-nav-cta > a {
	height: 42px;
	padding-inline: 20px;
	border-radius: 999px;
	background: var(--rb-cta);
	color: #fff;
}
body.rb-site .wd-nav-main > li.rb-nav-cta > a:hover { background: var(--rb-cta-dark); color: #fff; }
body.rb-site .wd-nav-mobile > li > a { text-transform: none; font-weight: 600; font-size: 16px; }

/* ---------- Hero details ---------- */
.rb-hero__points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--rb-muted); }
.rb-hero__points li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.rb-hero__points .rb-icon { width: 17px; height: 17px; color: var(--rb-green); }
.rb-hero__media::before {
	content: "";
	position: absolute;
	inset: 7% -5% -5% 9%;
	border-radius: 32px;
	background: var(--rb-sand);
	transform: rotate(3deg);
}
.rb-hero__photo { position: relative; z-index: 1; }
.rb-hero__badge { z-index: 2; }
.rb-hero--page { padding-block: 40px 28px; }
@media (min-width: 900px) { .rb-hero--page { padding-block: 64px 36px; } }

/* Course hero: the promo video on the course colour; the player replaces the thumbnail on click. */
.rb-reel { display: grid; place-items: center; padding: 24px; border-radius: var(--rb-radius-lg); box-shadow: var(--rb-shadow); }
@media (min-width: 900px) { .rb-reel { padding: 36px; } }
.rb-course-media .rb-reel > .rb-video { width: 100%; border-radius: 14px; box-shadow: 0 18px 40px rgba(29, 26, 23, .22); }
.rb-course-media .rb-reel > .rb-video--vertical { aspect-ratio: 9 / 16; width: min(100%, 280px); border-radius: 18px; }
@media (min-width: 900px) { .rb-course-media .rb-reel > .rb-video--vertical { width: min(100%, 320px); } }
.rb-reel .rb-video__btn img { opacity: 1; }
.rb-reel > .rb-video:not(.rb-video--vertical) .rb-video__chip { right: auto; padding-inline: 16px; } /* Keep a wide frame visible. */
.rb-video__chip {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	display: flex;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--rb-ink);
	font-size: .9rem;
	font-weight: 700;
	text-align: center;
	box-shadow: var(--rb-shadow);
	transition: transform .2s;
}
.rb-video__btn:hover .rb-video__chip, .rb-video__btn:focus-visible .rb-video__chip { transform: translateY(-2px); }

/* ---------- Cart & checkout ---------- */
.rb-mini-cover { display: inline-grid; place-items: center; width: 72px; height: 48px; border-radius: 10px; color: var(--rb-ink); vertical-align: middle; }
.rb-mini-cover .rb-icon { width: 16px; height: 16px; opacity: .55; }
body.woocommerce-cart .shop_table .product-quantity { display: none; } /* One seat per course. */
body.woocommerce-cart button[name="update_cart"] { display: none !important; }
body.rb-site .wc-proceed-to-checkout .checkout-button,
body.rb-site .woocommerce-mini-cart__buttons .checkout {
	min-height: 54px;
	border-radius: 999px;
	font-size: 1rem;
	text-transform: none;
}
body.rb-site .cart-totals-inner, body.rb-site .cart_totals { border-radius: var(--rb-radius); }
body.rb-site .woocommerce .button,
body.rb-site .woocommerce button.button,
body.rb-site .woocommerce-mini-cart__buttons .button { text-transform: none; border-radius: 999px; letter-spacing: 0; }
body.woocommerce-checkout:not(.woocommerce-order-received) .whb-header { display: none !important; } /* Distraction-free checkout; brand bar instead. */
html body.rb-site.woocommerce-order-received .whb-header[class][class][class] { display: block !important; } /* The thank-you page keeps the menu; outranks the old Customizer rule that hid it on all checkout pages. */
.rb-checkout-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; margin-bottom: 20px; border-bottom: 1px solid var(--rb-line); }
.rb-checkout-brand__logo img { display: block; width: auto; height: 46px; }
.rb-checkout-brand__secure { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: #1f5d43; }
.rb-checkout-brand__secure .rb-icon { width: 17px; height: 17px; }
body.woocommerce-checkout #order_review_heading { text-transform: none; letter-spacing: 0; }
body.woocommerce-checkout #place_order { text-transform: none; }
body.woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .select2-container .select2-selection { min-height: 48px; border-radius: 10px; }
body.woocommerce-checkout .select2-container .select2-selection__rendered { line-height: 46px; }
body.rb-site .woocommerce-thankyou-order-received {
	margin-bottom: 24px;
	padding: 20px 24px;
	border: 0;
	border-radius: var(--rb-radius);
	background: #e3f1ea;
	color: #1f5d43;
	font-size: 1.15rem;
	font-weight: 700;
	text-align: center;
}
body.woocommerce-checkout .checkout-order-review { border-radius: var(--rb-radius-lg); }
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { border-radius: 12px; }

/* ---------- Contact ---------- */
.rb-contact-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--rb-line);
	border-radius: var(--rb-radius);
	color: var(--rb-ink);
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}
.rb-contact-card:hover, .rb-contact-card:focus-visible { box-shadow: var(--rb-shadow); transform: translateY(-2px); color: var(--rb-ink); }
.rb-contact-card > .rb-icon { width: 28px; height: 28px; margin-bottom: 8px; color: var(--rb-cta); }
.rb-contact-card__label { font-size: .85rem; color: var(--rb-muted); }
.rb-contact-card strong { display: inline-flex; align-items: center; gap: 6px; font-size: 1.1rem; }
.rb-contact-card strong .rb-icon { width: 16px; height: 16px; }
@media (max-width: 639px) {
	.rb-contact-card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; padding: 18px 20px; }
	.rb-contact-card > .rb-icon { grid-row: span 2; margin: 0; }
}
.rb-contact-form { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 900px) { .rb-contact-form { grid-template-columns: .8fr 1.2fr; gap: 56px; margin-top: 64px; } }
.rb-legal { margin-top: 24px; }
.rb-form-card { padding: 28px; background: var(--rb-cream); border-radius: var(--rb-radius-lg); }
body.rb-site .wpcf7 p { margin: 0 0 16px; }
body.rb-site .wpcf7 .hidden-fields-container { display: none; } /* WoodMart draws a border around CF7's hidden-field fieldset. */
body.rb-site .wpcf7 label { display: block; font-size: .95rem; font-weight: 600; color: var(--rb-ink); }
body.rb-site .wpcf7 input[type="text"],
body.rb-site .wpcf7 input[type="email"],
body.rb-site .wpcf7 textarea {
	width: 100%;
	min-height: 50px;
	margin-top: 6px;
	padding: 10px 16px;
	border: 1px solid #d8ccc2;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-weight: 400;
}
body.rb-site .wpcf7 textarea { min-height: 150px; }
body.rb-site .wpcf7 input:focus, body.rb-site .wpcf7 textarea:focus { border-color: var(--rb-primary); outline: 2px solid var(--rb-primary); outline-offset: 0; }
body.rb-site .wpcf7 input[type="submit"] {
	min-height: 52px;
	padding: 12px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--rb-cta);
	color: #fff;
	font-weight: 700;
	text-transform: none;
	cursor: pointer;
}
body.rb-site .wpcf7 input[type="submit"]:hover { background: var(--rb-cta-dark); }

/* ---------- Reviews ---------- */
.rb-shots { columns: 1; column-gap: 20px; }
@media (min-width: 640px) { .rb-shots { columns: 2; } }
@media (min-width: 1000px) { .rb-shots { columns: 3; } }
.rb-shot {
	display: block;
	break-inside: avoid;
	margin-bottom: 20px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--rb-line);
	border-radius: var(--rb-radius);
	box-shadow: var(--rb-shadow);
	transition: transform .2s;
}
.rb-shot:hover { transform: translateY(-2px); }
.rb-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ---------- Free lecture registration ---------- */
.rb-reg-hero { padding-block: 32px 48px; background: linear-gradient(180deg, var(--rb-cream) 0%, #fff 100%); }
.rb-reg-hero__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) {
	.rb-reg-hero { padding-block: 64px 80px; }
	.rb-reg-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
}
.rb-reg-hero .rb-h1 { margin-bottom: 14px; }
.rb-reg-when { list-style: none; margin: 24px 0; padding: 6px 20px; display: grid; background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); }
.rb-reg-when li { display: flex; gap: 14px; align-items: center; margin: 0; padding: 12px 0; color: var(--rb-muted); }
.rb-reg-when li + li { border-top: 1px solid var(--rb-line); }
.rb-reg-when strong { color: var(--rb-ink); }
.rb-reg-when .rb-icon { flex: none; width: 22px; height: 22px; color: var(--rb-cta); }
.rb-reg-host { display: flex; gap: 14px; align-items: center; }
.rb-reg-host__photo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.rb-reg-host p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--rb-muted); }
.rb-reg-host strong { display: block; color: var(--rb-ink); }
.rb-reg-card { padding: 24px; background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius-lg); box-shadow: var(--rb-shadow); }
@media (min-width: 900px) { .rb-reg-card { padding: 32px; } }
.rb-reg-card .rb-h3 { margin: 0 0 4px; font-size: 1.35rem; }
.rb-reg-card > .rb-small { margin: 0 0 18px; }
.rb-reg-card .ml-form-embedSubmit .rb-btn { min-height: 56px; font-size: 1.05rem; }
.rb-reg-card .rb-nl-success { padding: 0; }
.rb-optional { font-weight: 400; color: var(--rb-muted); }
.rb-hint { display: block; margin-top: 4px; font-size: .8rem; color: var(--rb-muted); }
.rb-reg-points { gap: 14px; }
.rb-reg-points li { font-size: 1.05rem; }
.rb-reg-qa { display: flex; width: fit-content; max-width: 100%; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 18px 20px; border-radius: var(--rb-radius); background: var(--rb-sand); color: var(--rb-text); }
.rb-reg-qa .rb-icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--rb-cta); }
.rb-reg-band__when { margin: 0 0 22px; color: #e6ddd6; font-weight: 600; }
/* After the lecture: recording first on phones, the checklist under it. */
.rb-reg-hero--past .rb-reg-points { margin-top: 20px; }
.rb-reg-hero--past .rb-reg-points li { font-size: 1rem; }
.rb-reg-hero__media { display: grid; gap: 20px; }
.rb-reg-hero__media .rb-video { box-shadow: var(--rb-shadow); }
@media (max-width: 899px) {
	.rb-reg-hero--past .rb-reg-hero__text { display: contents; }
	.rb-reg-hero--past .rb-reg-hero__grid { gap: 0; }
	.rb-reg-hero--past .rb-reg-hero__media { order: 3; margin-block: 8px 4px; }
	.rb-reg-hero--past .rb-reg-points { order: 4; }
	.rb-reg-hero:not(.rb-reg-hero--past) .rb-reg-host { display: none; } /* Form first; the lecturer section follows. */
	.rb-reg-hero__grid { gap: 20px; }
	.rb-reg-hero .rb-lead { font-size: 1.05rem; }
	.rb-reg-when { margin-block: 18px 0; }
	.rb-reg-when li { padding-block: 10px; }
}
/* Signup done */
.rb-reg-done { text-align: center; }
.rb-reg-done__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--rb-green); color: #fff; }
.rb-reg-done__icon .rb-icon { width: 36px; height: 36px; }
.rb-reg-done__help { margin: 28px 0 0; text-align: center; }

/* ---------- Tablet (640–999px) ----------
   Three-column grids drop to two columns here, so 3, 5 or 7 items left one card alone on the last row.
   The odd last card now takes the full row and lies on its side; the three steps keep three columns. */
@media (min-width: 640px) and (max-width: 999px) {
	.rb-grid--3, .rb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rb-grid--3:not(.rb-steps, .rb-contact-cards) > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }

	.rb-grid > .rb-card:last-child:nth-child(odd):not(:first-child) { flex-direction: row; align-items: center; }
	.rb-grid > .rb-card:last-child:nth-child(odd):not(:first-child) .rb-card__media { flex: 0 0 50%; padding: 12px; }
	.rb-grid > .rb-card:last-child:nth-child(odd):not(:first-child) .rb-card__body { align-self: stretch; padding: 22px 24px 22px 12px; }

	.rb-grid > .rb-lecture:last-child:nth-child(odd):not(:first-child) { flex-direction: row; align-items: center; }
	.rb-grid > .rb-lecture:last-child:nth-child(odd):not(:first-child) .rb-video { flex: 0 0 calc(50% - 18px); margin: 18px 0 18px 18px; border-radius: 12px; }
	.rb-grid > .rb-lecture:last-child:nth-child(odd):not(:first-child) .rb-lecture__body { flex: 1; }

	.rb-steps.rb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.rb-steps li { padding: 70px 20px 22px; }
	.rb-steps li::before { left: 20px; top: 20px; }

	.rb-contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rb-contact-card { padding: 20px; }
	.rb-contact-card strong { font-size: 1rem; overflow-wrap: anywhere; }
}

/* Three columns (1000px+, iPad landscape and desktop): an unfinished last row of courses is centred. */
@media (min-width: 1000px) {
	.rb-grid--3.rb-grid--courses { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.rb-grid--courses > * { grid-column: span 2; }
	.rb-grid--courses > :nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
	.rb-grid--courses > :nth-child(3n+1):last-child { grid-column: 3 / span 2; }
	/* Free lectures: the featured recording takes two of the three columns, so rows start at items 3, 6, 9… */
	.rb-grid--3.rb-grid--lectures { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.rb-grid--lectures > * { grid-column: span 2; }
	.rb-grid--lectures > .rb-lecture--featured { grid-column: span 4; }
	.rb-grid--lectures > :nth-child(3n):nth-last-child(2) { grid-column: 2 / span 2; }
	.rb-grid--lectures > :nth-child(3n):last-child { grid-column: 3 / span 2; }
}

/* Home hero, lecturer and lecture signup sit side by side from tablet width instead of stacking. */
@media (min-width: 700px) and (max-width: 899px) {
	.rb-hero { padding-block: 40px 56px; }
	.rb-hero__grid { grid-template-columns: 1.2fr .8fr; gap: 36px; }
	.rb-hero__photo { max-height: 460px; aspect-ratio: 4 / 5; }
	.rb-hero .rb-h1 { font-size: 2.3rem; }
	.rb-hero__points { flex-direction: column; gap: 8px; }

	.rb-reg-hero:not(.rb-reg-hero--past) .rb-reg-hero__grid { grid-template-columns: 1fr minmax(300px, .9fr); gap: 32px; }
	.rb-reg-hero:not(.rb-reg-hero--past) .rb-h1 { font-size: 2.2rem; }
}
@media (min-width: 700px) and (max-width: 859px) {
	.rb-lecturer { grid-template-columns: 260px 1fr; gap: 36px; }
}
@media (min-width: 700px) and (max-width: 959px) {
	/* Vertical promo videos fit beside the text; a wide video stays full width under the buy box. */
	.rb-course-hero__grid:has(.rb-video--vertical) { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
	.rb-course-hero__grid:has(.rb-video--vertical) .rb-h1 { font-size: 2.2rem; }
	.rb-course-media .rb-reel { padding: 18px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.rb-card, .rb-stickybar, .rb-btn, .rb-contact-card, .rb-shot, .rb-video__chip { transition: none; }
	.rb-card:hover { transform: none; }
}
