/*
Theme Name: OTR Tutoring
Theme URI: https://onlinetutoringresources.com
Author: Online Tutoring Resources
Author URI: https://onlinetutoringresources.com
Description: A modern, dark, block-based (FSE) WordPress theme for the OTR ESL tutoring platform. Built on core blocks with design tokens from the OTR brand system (brand blue, amber accent, near-black surfaces). Integrates with the OTR Platform Core plugin and Easy Digital Downloads, but degrades gracefully without them.
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.0
Version: 1.3.77
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: otr-tutoring
Tags: full-site-editing, block-patterns, education, dark, blog, custom-colors, custom-menu
*/

/*
 * Most styling lives in theme.json (global styles) and individual block markup.
 * This file holds supplemental styling that theme.json cannot express:
 * focus visibility, sticky header behaviour, reduced-motion safety, and
 * light EDD/plugin compatibility tweaks.
 */

/* --- Global responsive foundation (Phase 0) --- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 100%;
	overflow-x: hidden;
}

body {
	min-width: 0;
	font-size: 1rem;
	line-height: 1.6;
	/* clip guards horizontal overflow like hidden, but without creating a
	 * scroll container — position:sticky (checkout order summary) keeps
	 * working. Falls back to the html-level guard where unsupported. */
	overflow-x: clip;
}

.wp-site-blocks {
	min-width: 0;
}

img,
picture,
video,
canvas,
svg {
	max-width: 100%;
	height: auto;
}

/* Preserve intentional icon / logo sizing (global media rule above). */
.otr-site-brand__icon,
.otr-nav__chevron,
.otr-nav__icon,
.otr-plan__icon,
.otr-social__btn svg,
.otr-detail__list svg,
.otr-detail__assurances svg,
.otr-founder__badge svg {
	max-width: none;
}

/* Shared fluid grid utility for homepage card/column groups. */
.otr-fluid-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

/* Fluid query grids on inner archives, search, and related-post sections. */
.wp-block-query:not(.otr-blog-grid) .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

/* --- Accessibility: always-visible focus indicator --- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
	border-radius: 2px;
}

/* --- Respect reduced-motion preference --- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Sticky header (template part marked position:sticky in markup) --- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 200;
}

/* --- Site brand: transparent whale icon + "ESL TUTORING PRO" wordmark.
 * Committed in theme code via the otr/site-brand pattern, so it never depends
 * on the WordPress Site Logo DB setting (which can render blank/broken). --- */
.otr-site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	flex: 0 0 auto;
	min-width: 0;
	text-decoration: none;
}
.otr-site-brand__icon {
	display: block;
	flex-shrink: 0;
	width: auto;
	height: clamp(36px, 4vw, 44px);
	max-width: none;
	object-fit: contain;
}
.otr-site-brand__text {
	flex-shrink: 0;
	white-space: nowrap;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	color: var(--wp--preset--color--text-primary);
}
/* Header brand: white-wash pill (matches the nav row/Login/Join for Free
 * treatment) + the icon sits on its own inset amber badge — leave room for
 * hamburger; wrap wordmark on very narrow viewports.
 * flex-shrink: 0 keeps the pill sized to its content (icon + wordmark) so it
 * never clamps narrower than the text and lets the text spill past the pill
 * boundary; the row's other flex children absorb the squeeze instead. */
header .otr-site-brand {
	flex-shrink: 0;
	background-color: rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	padding: 6px 16px 6px 6px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
header .otr-site-brand__icon,
footer .otr-site-brand__icon {
	background-color: var(--wp--preset--color--amber);
	border-radius: 999px;
	padding: 4px;
	box-sizing: content-box;
}
header .otr-site-brand__text {
	font-size: clamp(0.875rem, 2.2vw, 1.25rem);
	line-height: 1.15;
	max-width: 100%;
	overflow-wrap: anywhere;
	color: var(--wp--preset--color--menu-bar-text);
}
/* Below 480px the wordmark wraps to 3 lines instead of one long pill.
 * max-width: 70px is a hard cap that forces the wrap even though the 11px
 * text is narrow enough to fit unwrapped in the available flex space — a
 * one-line pill at this width runs into the hamburger. Capping width alone
 * (without also disabling shrink) is safe here because clamping happens
 * pre-wrap: the browser reflows text to fit the box instead of overflowing
 * past it, unlike flex-shrink squeezing an already-laid-out line. */
@media (max-width: 480px) {
	header .otr-site-brand__text {
		max-width: 70px;
		font-size: 11px;
		white-space: normal;
		overflow-wrap: normal;
		word-break: normal;
	}
}
/* Footer brand: wrap wordmark; fluid columns handle reflow (no overlap with link cols).
 * Icon gets the same amber badge as the header (see rule above) for a
 * consistent mark; wordmark is toned down from the header's size so it
 * doesn't visually compete with the "Platform/Company/Account" headings
 * beside it, and the description paragraph gets extra line-height/spacing
 * so it doesn't read as a cramped afterthought under the wordmark. */
footer .otr-site-brand {
	min-width: 0;
	max-width: 100%;
	gap: 0.75rem;
	margin-bottom: 20px;
}
footer .otr-site-brand__icon {
	height: 32px;
}
footer .otr-site-brand__text {
	white-space: normal;
	overflow-wrap: anywhere;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}
footer .otr-fluid-columns > .wp-block-column:first-child p {
	margin-top: 4px;
	font-size: 0.9375rem;
	line-height: 1.65;
}

/* --- Skip link (accessibility) --- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--ui-panel);
	color: var(--wp--preset--color--text-primary);
	border: 1px solid var(--wp--preset--color--border-subtle);
}
.skip-link:focus {
	left: 0;
}

/* ============================================================
 * Primary navigation (parts/navigation.html — custom mega-menu)
 * CSS-first: works on hover and :focus-within, no JS required.
 * The toggle/trigger buttons carry ARIA state for assistive tech;
 * a small progressive-enhancement script (assets/js/navigation.js)
 * syncs aria-expanded and adds click/Esc support where JS is on.
 * ============================================================ */

.otr-nav {
	position: relative;
	display: flex;
	align-items: center;
}

.otr-nav__menu {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.otr-nav__item {
	position: relative;
}

.otr-nav__item--auth {
	margin-left: 4px;
}

.otr-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0.25rem 0.15rem;
	color: var(--wp--preset--color--text-primary);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.otr-nav__link:hover,
.otr-nav__link:focus-visible {
	color: var(--wp--preset--color--link);
}

.otr-nav__icon {
	display: none;
	color: currentColor;
}

/* Header sits on the light "menu-bar" background — links need dark text here.
 * Scoped to .otr-nav--full/.otr-nav--measuring (the horizontal bar itself,
 * always on the menu-bar background) so the compact drawer and mega-menu
 * overlays (still dark ui-panel bg) keep their light text. Revert by
 * deleting this rule. */
.otr-nav--full .otr-nav__link:not(.otr-nav__cta):not(.otr-nav__login):not(.otr-nav__logout),
.otr-nav--measuring .otr-nav__link:not(.otr-nav__cta):not(.otr-nav__login):not(.otr-nav__logout) {
	color: var(--wp--preset--color--menu-bar-text);
	font-weight: 700;
}
.otr-nav--full .otr-nav__link:not(.otr-nav__cta):not(.otr-nav__login):not(.otr-nav__logout):hover,
.otr-nav--full .otr-nav__link:not(.otr-nav__cta):not(.otr-nav__login):not(.otr-nav__logout):focus-visible,
.otr-nav--measuring .otr-nav__link:not(.otr-nav__cta):not(.otr-nav__login):not(.otr-nav__logout):hover,
.otr-nav--measuring .otr-nav__link:not(.otr-nav__cta):not(.otr-nav__login):not(.otr-nav__logout):focus-visible {
	color: var(--wp--preset--color--brand);
}

/* "Join for Free" CTA — brand blue rounded-rect, matching the site's primary
 * button language (Start Learning, Read my full story, etc.) rather than a
 * one-off amber pill. inline-flex + line-height:1 keeps the label optically
 * centered (the inherited 1.7 link line-height otherwise pushes text high). */
.otr-nav__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0.5rem 1.1rem;
	line-height: 1;
	border-radius: 8px;
	background-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
	font-weight: 700;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-nav__cta:hover,
.otr-nav__cta:focus-visible {
	background-color: var(--wp--preset--color--brand-dark);
	color: var(--wp--preset--color--brand-foreground);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.otr-nav__chevron {
	transition: transform 200ms ease;
}
/* Rotate on hover (desktop preview) or when actually expanded — NOT on bare
 * :focus-within, which stays true after a click closes the menu (the button
 * keeps focus) and would otherwise leave the chevron stuck pointing up. */
.otr-nav--full .otr-nav__item--has-mega:hover .otr-nav__chevron,
.otr-nav__mega-trigger[aria-expanded="true"] .otr-nav__chevron {
	transform: rotate(180deg);
}

/* --- SERVICE mega-dropdown shared styling.
 * Positioning (static vs absolute panel) is controlled by the full/compact
 * nav classes further down; here we keep shared transition + z-index, and the
 * grid base. --- */
.otr-mega {
	z-index: 200;
	transition: opacity 300ms ease, transform 300ms ease, visibility 300ms;
}

.otr-mega__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px 14px;
}

.otr-mega__heading {
	margin: 4px 0 6px 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
}

.otr-mega__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Each item is a compact row: icon + (title over muted description) */
.otr-mega__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--wp--custom--radius--md, 8px);
	text-decoration: none;
	transition: background-color 150ms ease;
}
.otr-mega__item:hover,
.otr-mega__item:focus-visible {
	background-color: rgba(255, 255, 255, 0.06);
	outline: none;
}
.otr-mega__item:focus-visible {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--link);
}
.otr-mega__icon {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--wp--preset--color--link);
}
.otr-mega__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.otr-mega__title {
	color: var(--wp--preset--color--text-primary);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}
.otr-mega__desc {
	color: var(--wp--preset--color--text-muted);
	font-size: 12px;
	line-height: 1.35;
}
.otr-mega__item:hover .otr-mega__title,
.otr-mega__item:focus-visible .otr-mega__title {
	color: var(--wp--preset--color--link);
}

/* --- Hamburger toggle: hidden on desktop, shown on mobile --- */
.otr-nav__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}
.otr-nav__toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--wp--preset--color--menu-bar-text);
}

/* ============================================================
 * Overflow-aware full / compact nav switching.
 *
 * The theme DEFAULTS to the compact (hamburger) layout — this is what renders
 * with JavaScript disabled and on narrow screens, so it is always safe. A small
 * progressive-enhancement script (assets/js/navigation.js) measures whether the
 * full horizontal menu actually fits the header row and, only when it does,
 * adds `.otr-nav--full`. There is no hand-picked viewport breakpoint: the switch
 * tracks the real content width. `.otr-nav--measuring` lays the menu out as full
 * (off-screen, no transition) purely so the script can measure it.
 * ============================================================ */

/* COMPACT (default): hamburger + vertical stacked drawer. */
.otr-nav__toggle {
	display: flex;
	position: relative;
	z-index: 160;
	flex-shrink: 0;
}
.otr-nav__menu {
	display: none;
	position: fixed;
	top: calc(var(--otr-header-height, 72px) + 8px);
	right: 16px;
	left: 16px;
	width: auto;
	max-width: min(420px, calc(100vw - 32px));
	margin-left: auto;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	max-height: calc(100dvh - var(--otr-header-height, 72px) - 24px);
	z-index: 150;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: clamp(18px, 5vw, 28px);
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}
.otr-nav__menu.is-open {
	display: flex;
}
.otr-nav__item {
	width: 100%;
}
.otr-nav__link {
	width: 100%;
	padding: 0.75rem 0;
	white-space: normal;
	overflow-wrap: anywhere;
	font-size: clamp(0.75rem, 3.2vw, 0.875rem);
}
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-nav__item:not(.otr-nav__item--drawer-account):not(.otr-nav__item--auth) {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-nav__link {
	gap: 1rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-nav__icon {
	display: inline-block;
	width: 22px;
	height: 22px;
}
.otr-nav__item--auth {
	margin-left: 0;
}
.otr-nav__cta {
	text-align: center;
	white-space: normal;
}
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-nav__cta {
	box-sizing: border-box;
	margin-top: var(--wp--preset--spacing--30, 8px);
	width: 100%;
	padding: 0.75rem 1rem;
	justify-content: center;
	text-align: center;
}
/* Login (drawer instance) — same box-vs-text decoupling trick as the CTA
 * above: negative margin pulls the box off the panel wall, matching padding
 * keeps the label text aligned with HOME/ABOUT/etc. */
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-nav__login {
	box-sizing: border-box;
	width: 100%;
	padding: 0.75rem 1rem;
	justify-content: center;
	text-align: center;
}
/* Compact mega-menu: stacks inline, single column. */
.otr-mega {
	position: static;
	transform: none;
	min-width: 0;
	width: auto;
	max-width: none;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	padding: var(--wp--preset--spacing--40, 16px) 0 var(--wp--preset--spacing--40, 16px) var(--wp--preset--spacing--40, 16px);
	background: none;
	border: none;
	box-shadow: none;
	display: none;
}
.otr-nav__mega-trigger[aria-expanded="true"] + .otr-mega {
	display: block;
	transform: none;
}
.otr-mega__inner {
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40, 16px);
}
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-mega {
	padding-left: var(--wp--preset--spacing--40, 16px);
	padding-right: var(--wp--preset--spacing--40, 16px);
}
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-mega__title,
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-mega__desc {
	overflow-wrap: anywhere;
}

/* FULL (fits) and MEASURING: restore the horizontal desktop layout. */
.otr-nav--full .otr-nav__toggle,
.otr-nav--measuring .otr-nav__toggle {
	display: none;
}
.otr-nav--full .otr-nav__menu,
.otr-nav--measuring .otr-nav__menu {
	display: flex;
	position: static;
	top: auto;
	left: auto;
	right: auto;
	width: auto;
	max-width: none;
	overflow-x: visible;
	overflow-y: visible;
	max-height: none;
	z-index: auto;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background-color: rgba(255, 255, 255, 0.35);
	border: none;
	border-top: none;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.otr-nav--full .otr-nav__item,
.otr-nav--measuring .otr-nav__item {
	width: auto;
}
.otr-nav--full .otr-nav__link,
.otr-nav--measuring .otr-nav__link {
	width: auto;
	padding: 0.25rem 0.6rem;
	white-space: nowrap;
	overflow-wrap: normal;
	font-size: 0.8125rem;
}
/* 3-zone header: logo (left) / primary nav (center) / auth actions (right).
 *
 * The header row is a flex `space-between` group with two children: the brand
 * group and this `.otr-header__nav` wrapper. The wrapper grows to fill the gap
 * and lays out as its own flex row:  [ primary menu (grows, centered) ][ actions ].
 *
 * Crucially, the auth links (Join for Free / Login) live in `.otr-nav__actions`
 * — a SEPARATE element, NOT inside `.otr-nav__menu`. The overflow-measuring JS
 * (assets/js/navigation.js) only measures `.otr-nav__menu`, so the primary
 * links are sized on their own and comfortably fit + center, exactly like the
 * 8080 reference. The actions rail keeps its natural width on the right edge. */
.otr-header__nav { flex: 1 1 auto; min-width: 0; }
.otr-header__nav > .otr-nav {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 16px;
}
.otr-header__nav > .otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) {
	justify-content: flex-end;
}

/* Primary menu: in FULL mode grow to fill and center the links within that
 * space. In MEASURING mode it must keep its NATURAL width (no flex-grow, no
 * centering) so the JS reads the true intrinsic width of the 5 links — a
 * flex-grown menu would report the whole wrapper width and never "fit". */
.otr-nav--full .otr-nav__menu {
	flex: 1 1 auto;
	justify-content: center;
	gap: 4px;
}
.otr-nav--measuring .otr-nav__menu {
	flex: 0 0 auto;
	justify-content: flex-start;
	gap: 4px;
}

/* Right-rail auth actions: visible only in full mode; sits at the right edge. */
.otr-nav__actions {
	display: none;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}
.otr-nav--full .otr-nav__actions,
.otr-nav--measuring .otr-nav__actions {
	display: flex;
}
/* Login — amber rounded-rect box, same shape language as the blue Join for
 * Free button (border-radius, padding, line-height) but amber to read as the
 * secondary action next to the primary blue CTA. */
.otr-nav__login,
.otr-nav__logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	min-height: 0;
	padding: 0.5rem 1.1rem;
	line-height: 1;
	border-radius: 8px;
	background-color: var(--wp--preset--color--amber);
	color: #ffffff;
	font-weight: 700;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-nav__login:hover,
.otr-nav__login:focus-visible,
.otr-nav__logout:hover,
.otr-nav__logout:focus-visible {
	background-color: var(--wp--preset--color--amber-hover);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.otr-nav__account,
.otr-nav__drawer-account {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	color: var(--wp--preset--color--menu-bar-text);
	font-weight: 700;
}

.otr-nav__avatar {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border-radius: 999px;
	background-color: rgba(209, 250, 239, 0.9);
	color: var(--wp--preset--color--menu-bar-text);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.otr-nav__account-name {
	min-width: 0;
	max-width: 9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.otr-nav__drawer-account {
	width: 100%;
	padding-bottom: var(--wp--preset--spacing--40, 16px);
	margin-bottom: var(--wp--preset--spacing--30, 8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	color: var(--wp--preset--color--text-primary);
	font-size: 1.125rem;
}

.otr-nav__drawer-account .otr-nav__avatar {
	width: 56px;
	height: 56px;
	font-size: 1.25rem;
}

.otr-nav__item--drawer-logout {
	padding-top: var(--wp--preset--spacing--40, 16px);
}

.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-nav__item--drawer-logout .otr-nav__logout {
	width: 100%;
	min-height: 52px;
	padding: 0.75rem 1rem;
}

/* Cart access pill: shown only when the EDD cart has items (server-rendered
 * hidden at zero; navigation.js reveals it after an AJAX add-to-cart). The
 * count span carries EDD's `edd-cart-quantity` class so EDD keeps it live. */
/* The header rail (brand | menu | actions) needs more room than the global
 * 1200px wide size once the cart pill joins Login / Join for Free. Scoped to
 * the header so the global wide size stays untouched. */
header.wp-block-group > .wp-block-group.alignwide {
	max-width: min(85rem, 100%);
}

.otr-nav__cart {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	min-height: 0;
	padding: 0.45rem 0.85rem;
	font-size: 0.9rem;
	line-height: 1;
	border-radius: 8px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background-color: rgba(255, 255, 255, 0.94);
	color: var(--wp--preset--color--menu-bar-text);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-nav__cart:hover,
.otr-nav__cart:focus-visible {
	background-color: #ffffff;
	color: var(--wp--preset--color--menu-bar-text);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.otr-nav__cart-icon {
	flex: 0 0 auto;
}
.otr-nav__cart[hidden],
.otr-nav__item--cart[hidden] {
	display: none;
}

/* Drawer variant: full-width row consistent with drawer nav items, with a
 * subtle highlighted background. */
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-nav__item--cart .otr-nav__cart {
	width: 100%;
	min-height: 52px;
	padding: 0.75rem 1rem;
	justify-content: flex-start;
	gap: 12px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 12px;
	background-color: rgba(125, 226, 209, 0.10);
	color: var(--wp--preset--color--text-primary);
	box-shadow: none;
}
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-nav__item--cart .otr-nav__cart:hover,
.otr-nav:not(.otr-nav--full):not(.otr-nav--measuring) .otr-nav__item--cart .otr-nav__cart:focus-visible {
	background-color: rgba(125, 226, 209, 0.18);
	transform: none;
}

/* In full mode the drawer-only auth copies (inside the menu) are hidden — the
 * right rail above takes over. They reappear inside the mobile drawer. */
.otr-nav--full .otr-nav__item--drawer-only,
.otr-nav--measuring .otr-nav__item--drawer-only {
	display: none;
}

/* Keep the Join for Free pill comfortable — never let the compact link-padding
 * rule collapse it. Applies to the CTA wherever it renders. */
.otr-nav__cta {
	text-align: center;
}
.otr-nav--full .otr-nav__cta,
.otr-nav--measuring .otr-nav__cta {
	white-space: nowrap;
}
.otr-nav--full .otr-nav__cta,
.otr-nav--measuring .otr-nav__cta {
	padding: 0.5rem 0.85rem;
	line-height: 1;
	min-height: 44px;
}
/* Login shares the CTA's height/line-height (so the two buttons sit at the
 * same scale) but gets wider horizontal padding — without an explicit
 * override here, the generic .otr-nav__link padding rule above wins and
 * squashes Login well below the CTA's padding. */
.otr-nav--full .otr-nav__login,
.otr-nav--measuring .otr-nav__login,
.otr-nav--full .otr-nav__logout,
.otr-nav--measuring .otr-nav__logout {
	padding: 0.5rem 1.5rem;
	line-height: 1;
	min-height: 44px;
}
/* Full mega-menu: absolute dropdown panel. */
.otr-nav--full .otr-mega,
.otr-nav--measuring .otr-mega {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	width: max-content;
	max-width: 760px;
	padding: 18px;
	background-color: var(--wp--preset--color--ui-dark);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--lg, 12px);
	box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	display: block;
}
.otr-nav--full .otr-nav__item--has-mega:hover .otr-mega,
.otr-nav--full .otr-nav__item--has-mega:focus-within .otr-mega,
.otr-nav--full .otr-nav__mega-trigger[aria-expanded="true"] + .otr-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
.otr-nav--full .otr-mega__inner,
.otr-nav--measuring .otr-mega__inner {
	grid-template-columns: repeat(3, minmax(180px, 1fr));
	gap: 8px 14px;
}

/* Measuring pass: lay out full but keep it invisible & non-interactive. */
.otr-nav--measuring .otr-nav__menu {
	visibility: hidden;
	position: absolute;
}

/* Reduced-motion: drop the slide/rotate transitions */
@media (prefers-reduced-motion: reduce) {
	.otr-mega,
	.otr-nav__chevron {
		transition: none;
	}
}

/* --- Footer: link lists without bullets, muted until hover --- */
.is-style-no-bullet {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
ul.is-style-no-bullet li a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
}
ul.is-style-no-bullet li a:hover {
	color: var(--wp--preset--color--text-primary);
	text-decoration: underline;
}

/* --- EDD compatibility: inherit theme button styling on storefront elements --- */
.edd-submit,
#edd-purchase-button,
.edd_purchase_submit_wrapper input[type="submit"] {
	background-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
	border: none;
	border-radius: var(--wp--custom--radius--md, 8px);
	padding: 0.75rem 1.5rem;
	min-height: 44px;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.edd-submit:hover,
#edd-purchase-button:hover,
.edd_purchase_submit_wrapper input[type="submit"]:hover {
	background-color: var(--wp--preset--color--brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

/* --- Search block: dark rounded pill with left icon + compact blue button.
 * Applies to every core/search block (404, archives, search results). --- */
.wp-block-search .wp-block-search__inside-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	padding: 4px;
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 999px;
}
.wp-block-search .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 10px 14px 10px 40px;
	color: var(--wp--preset--color--text-primary);
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 14px center;
	border: none;
	border-radius: 999px;
	font-size: 16px;
}
.wp-block-search .wp-block-search__input:focus,
.wp-block-search .wp-block-search__input:focus-visible {
	outline: none;
	box-shadow: none;
}
.wp-block-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--text-muted);
}
.wp-block-search .wp-block-search__button {
	flex: 0 0 auto;
	margin: 0;
	padding: 9px 20px;
	color: var(--wp--preset--color--brand-foreground);
	background-color: var(--wp--preset--color--brand);
	border: none;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.wp-block-search .wp-block-search__button:hover,
.wp-block-search .wp-block-search__button:focus-visible {
	background-color: var(--wp--preset--color--brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

/* --- Subscription plan cards (otr/subscription-cards pattern) --- */
.otr-plan-teaser {
	position: relative;
}
.otr-plan-teaser::before {
	content: "";
	position: absolute;
	inset: clamp(1rem, 4vw, 2rem);
	z-index: 0;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 24px;
	background:
		radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 34%),
		radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.16), transparent 30%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
	pointer-events: none;
}
.otr-plan-teaser > * {
	position: relative;
	z-index: 1;
}
.otr-plan-teaser .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--30, 12px);
}
.otr-plan-teaser--compact {
	padding-top: clamp(3rem, 6vw, 4.25rem) !important;
	padding-bottom: clamp(3.25rem, 6vw, 4.75rem) !important;
}
.otr-plan-teaser--compact::before {
	inset: clamp(1rem, 3vw, 1.75rem);
	border-color: rgba(255, 255, 255, 0.1);
	background:
		radial-gradient(circle at 22% 18%, rgba(59, 130, 246, 0.2), transparent 34%),
		radial-gradient(circle at 78% 34%, rgba(245, 158, 11, 0.18), transparent 30%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018));
	box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}
.otr-plan-teaser--compact h2 {
	margin-bottom: 0;
	line-height: 1.15;
}
.otr-plan-teaser--compact p {
	max-width: 42rem;
	margin-inline: auto;
	line-height: 1.65;
}
.otr-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: clamp(1rem, 2vw, var(--wp--preset--spacing--50, 1.5rem));
	max-width: min(100%, 68.75rem);
	margin: var(--wp--preset--spacing--60, 40px) auto 0;
}
.otr-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	container-type: inline-size;
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color 200ms ease, transform 200ms ease;
}
.otr-plan:hover {
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}
.otr-plan--featured {
	background-color: #050505;
	border-color: rgba(245, 158, 11, 0.5);
}
.otr-plan--featured:hover {
	border-color: var(--wp--preset--color--amber);
}
.otr-plan__ribbon {
	position: absolute;
	top: 14px;
	right: 0;
	padding: 5px 14px;
	background-color: var(--wp--preset--color--amber);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px 0 0 999px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.otr-plan__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	color: var(--wp--preset--color--amber);
	background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}
.otr-plan__icon {
	opacity: 0.85;
}
.otr-plan__badge {
	position: absolute;
	top: 14px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	background-color: rgba(0, 0, 0, 0.55);
	color: var(--wp--preset--color--text-primary);
}
.otr-plan__badge--type { left: 14px; }
.otr-plan__badge--level { right: 14px; color: var(--wp--preset--color--text-muted); }
.otr-plan__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 12px;
	padding: 22px;
}
.otr-plan__title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}
.otr-plan__summary {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 1rem;
	line-height: 1.5;
}
.otr-plan__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.otr-plan__features li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--wp--preset--color--text-primary);
	font-size: 1rem;
}
.otr-plan__tick {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--wp--preset--color--link);
}
.otr-plan__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--border-subtle);
}
/* Stack price + button when the card column is narrow. */
@container (max-width: 22rem) {
	.otr-plan__foot {
		flex-direction: column;
		align-items: stretch;
	}
	.otr-plan__btn {
		width: 100%;
	}
}
.otr-plan__price {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	color: var(--wp--preset--color--text-primary);
}
.otr-plan__price span {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--wp--preset--color--text-muted);
}
.otr-plan__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 22px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-plan__btn:hover,
.otr-plan__btn:focus-visible {
	background-color: var(--wp--preset--color--brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}
.otr-plan__btn:active {
	transform: scale(0.98);
}
.otr-plan__btn--amber {
	background-color: var(--wp--preset--color--amber);
	color: #ffffff;
}
.otr-plan__btn--amber:hover,
.otr-plan__btn--amber:focus-visible {
	background-color: var(--wp--preset--color--amber-hover);
	color: #ffffff;
}

/* --- Fluid column grids (feature blocks, free resources, footer, etc.) --- */
.otr-fluid-columns {
	display: grid !important;
}
.otr-fluid-columns > .wp-block-column {
	flex-basis: unset !important;
	width: auto !important;
	min-width: 0;
}
/* Footer: explicit breakpoints (not auto-fit) so the 3 link columns never
 * wrap into a lopsided 2-up grid with Account stranded alone on its own row.
 * Brand is always full width on its own row except at the >=1024px 4-up
 * layout, where it sits as the first, wider column beside the three. */
footer .otr-fluid-columns {
	grid-template-columns: 1fr;
}
footer .otr-fluid-columns > .wp-block-column:first-child {
	grid-column: 1 / -1;
}
@media (min-width: 560px) {
	footer .otr-fluid-columns {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 1024px) {
	footer .otr-fluid-columns {
		grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, 1fr));
	}
	footer .otr-fluid-columns > .wp-block-column:first-child {
		grid-column: auto;
	}
}

/* --- Feature step numbers (otr/feature-blocks pattern) --- */
.otr-feature-step {
	font-size: clamp(2rem, 1.5rem + 2vw, 2.5rem);
	font-weight: 600;
}

/* --- Blog grid (otr/blog-grid pattern) — fluid columns --- */
.otr-blog-grid .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

/* --- Subscription product detail (otr/subscription-detail pattern) --- */
.otr-detail {
	max-width: 1100px;
	margin: 0 auto;
}
.otr-detail__back {
	margin: 0 0 18px;
}
.otr-detail__back a {
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
	font-size: 14px;
}
.otr-detail__back a:hover { color: var(--wp--preset--color--link); }
.otr-detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(min(100%, 20rem), 20rem);
	gap: var(--wp--preset--spacing--60, 40px);
	align-items: start;
}
.otr-detail__badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background-color: rgba(37, 99, 235, 0.18);
	color: var(--wp--preset--color--link);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.otr-detail__title {
	margin: 14px 0 10px;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1;
	color: var(--wp--preset--color--text-primary);
}
.otr-detail__summary {
	margin: 0 0 24px;
	max-width: 60ch;
	color: var(--wp--preset--color--text-muted);
	font-size: 1.05rem;
	line-height: 1.6;
}
.otr-detail__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
	gap: 14px;
	margin-bottom: 32px;
}
.otr-detail__metacard {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 12px;
}
.otr-detail__metalabel {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
}
.otr-detail__metaval {
	font-size: 18px;
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}
.otr-detail__h2 {
	margin: 0 0 16px;
	font-size: 1.5rem;
	color: var(--wp--preset--color--text-primary);
}
.otr-detail__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.otr-detail__list li,
.otr-detail__assurances li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--wp--preset--color--text-primary);
}
.otr-detail__list svg,
.otr-detail__assurances svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--wp--preset--color--link);
}
.otr-detail__buy {
	position: sticky;
	top: 96px;
	padding: 24px;
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 16px;
}
.otr-detail__price {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	color: var(--wp--preset--color--text-primary);
}
.otr-detail__price span {
	font-size: 15px;
	font-weight: 400;
	color: var(--wp--preset--color--text-muted);
}
.otr-detail__finehint {
	margin: 8px 0 18px;
	color: var(--wp--preset--color--text-muted);
	font-size: 13px;
}
.otr-detail__cta {
	display: block;
	text-align: center;
	padding: 12px 18px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 10px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-detail__cta:hover,
.otr-detail__cta:focus-visible {
	background-color: var(--wp--preset--color--brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}
.otr-detail__cta--ghost {
	background-color: transparent;
	color: var(--wp--preset--color--text-primary);
	border: 1px solid var(--wp--preset--color--border-subtle);
	box-shadow: none;
}
.otr-detail__cta--ghost:hover,
.otr-detail__cta--ghost:focus-visible {
	background-color: rgba(255, 255, 255, 0.06);
	box-shadow: none;
}
.otr-detail__assurances {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
}
@media (max-width: 860px) {
	.otr-detail__grid { grid-template-columns: 1fr; }
	.otr-detail__buy { position: static; }
}

/* ============================================================
 * SINGLE LESSON DETAIL (templates/single-lesson.html)
 * Shared premium layout — every lesson inherits this. No
 * per-lesson styling. Access state (free vs subscriber) is
 * handled by the plugin quota shortcode, not by this CSS.
 * ============================================================ */
.otr-lesson-detail {
	--otr-lesson-width: min(100%, 52rem);
}
/* On wider screens, widen the shared lesson column so the quota callout and
 * other single-sentence copy sit on one line instead of wrapping. The explicit
 * max-width overrides the constrained-layout content-size cap that core injects
 * on child blocks (otherwise the width bump is clamped back to ~768px). */
@media (min-width: 1200px) {
	.otr-lesson-detail {
		--otr-lesson-width: min(100%, 60rem);
	}
	.otr-lesson-detail .otr-lesson-hero__inner,
	.otr-lesson-detail .otr-lesson-body,
	.otr-lesson-detail .otr-lesson-access,
	.otr-lesson-related > .wp-block-heading,
	.otr-lesson-related > .otr-related-grid {
		max-width: var(--otr-lesson-width);
	}
}

/* Hero: title + metadata in a contained, subtly lifted panel */
.otr-lesson-hero {
	padding-block: var(--wp--preset--spacing--70, 48px);
	background:
		radial-gradient(120% 140% at 50% -20%, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 60%),
		var(--wp--preset--color--ui-dark);
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}
.otr-lesson-hero__inner {
	width: var(--otr-lesson-width);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40, 16px);
	text-align: center;
	align-items: center;
}
.otr-lesson-hero__title {
	margin: 0;
	line-height: 1.1;
	text-wrap: balance;
}

/* Metadata as pill badges (post-terms output) */
.otr-lesson-meta {
	justify-content: center;
	gap: 10px !important;
}
.otr-lesson-meta .wp-block-post-terms {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 5px 13px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--wp--preset--color--border-subtle);
}
/* First badge (CEFR level) picks up the brand accent */
.otr-lesson-meta .wp-block-post-terms:first-child {
	color: var(--wp--preset--color--amber);
	background-color: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.32);
}
.otr-lesson-meta .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}
.otr-lesson-meta .wp-block-post-terms a:hover {
	text-decoration: underline;
}

/* Body: content column matched to hero width for rhythm */
.otr-lesson-body {
	width: var(--otr-lesson-width);
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--70, 48px) 0;
}
/* Collapse the body block when a lesson has no featured image and no
 * content, so the access panel follows the hero with tight rhythm
 * instead of a large dead gap. */
.otr-lesson-body:not(:has(.otr-lesson-featured img)):not(:has(.wp-block-post-content > *)) {
	padding-block: 0;
}
.otr-lesson-body > .otr-lesson-featured img {
	width: 100%;
	height: auto;
	object-fit: cover;
}
.otr-lesson-body .wp-block-post-content > * {
	margin-block: var(--wp--preset--spacing--40, 16px);
}

/* Access panel: premium bordered card grouping includes + quota + CTA */
.otr-lesson-access {
	/* Marginally narrower than the shared column so the card feels contained. */
	width: min(var(--otr-lesson-width), 46rem);
	margin: var(--wp--preset--spacing--60, 40px) auto;
	padding: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
		var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--xl, 16px);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.otr-lesson-access__title {
	margin: 0 0 var(--wp--preset--spacing--40, 16px);
}
.otr-lesson-includes {
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--50, 24px);
	padding: 0;
	display: grid;
	/* 2 columns on desktop/tablet, 1 column on mobile (per mockup). */
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px 32px;
}
.otr-lesson-includes li {
	position: relative;
	padding-left: 30px;
	min-width: 0;
	color: var(--wp--preset--color--text-primary);
	line-height: 1.4;
}
.otr-lesson-includes li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background-color: rgba(37, 99, 235, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2360a5fa' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}
/* Quota widget: style the plugin output as an intentional callout —
 * brand-tinted panel with a left accent bar, not a plain grey box. */
.otr-lesson-access .otr-quota-display,
.otr-lesson-access [class*="quota"] {
	margin-block: var(--wp--preset--spacing--50, 24px);
	padding: var(--wp--preset--spacing--40, 16px) var(--wp--preset--spacing--50, 24px);
	background:
		linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 55%),
		var(--wp--preset--color--ui-dark);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-left: 3px solid var(--wp--preset--color--brand);
	border-radius: var(--wp--custom--radius--md, 8px);
	color: var(--wp--preset--color--text-primary);
	line-height: 1.55;
}
.otr-lesson-access__actions {
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-lesson-access__actions .wp-block-button__link {
	padding: 0.85rem 1.75rem;
	border-radius: var(--wp--custom--radius--md, 8px);
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
	transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.otr-lesson-access__actions .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(245, 158, 11, 0.36);
	background-color: var(--wp--preset--color--amber-hover);
}
.otr-lesson-access__note {
	margin: var(--wp--preset--spacing--40, 16px) 0 0;
}

/* State-aware access panel ([otr_lesson_access] plugin output).
 * Shared structure across states: status row (pill + text) -> CTA -> note. */
.otr-lesson-access-panel {
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-lesson-access-panel__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 var(--wp--preset--spacing--40, 16px);
	line-height: 1.4;
}
.otr-lesson-access-panel__status-text {
	min-width: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 14px;
}
.otr-lesson-access-panel__badge {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 5px 13px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	/* Default (free / has-access): green. */
	color: #34d399;
	background-color: rgba(16, 185, 129, 0.14);
	border: 1px solid rgba(16, 185, 129, 0.32);
}
/* Amber variant: subscription-required / quota-reached. */
.otr-lesson-access-panel__badge--amber {
	color: var(--wp--preset--color--amber);
	background-color: rgba(245, 158, 11, 0.14);
	border-color: rgba(245, 158, 11, 0.35);
}
.otr-lesson-access-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30, 8px);
}
/* CTA: full-width, tall, label sized to match the "What's included" heading
 * (x-large), matching the mockup. Same treatment for both states. */
.otr-lesson-access-panel__cta {
	/* Mechanical vertical centering: fixed height, zero vertical padding, flex
	 * centering, line-height 1. No asymmetric padding. */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 64px;
	min-height: 0;
	padding-block: 0;
	padding-inline: 1.75rem;
	font-size: var(--wp--preset--font-size--x-large, 1.5rem);
	font-weight: 700;
	line-height: 1;
	text-align: center;
}
.otr-lesson-access-panel--locked .otr-lesson-access-panel__cta,
.otr-lesson-access-panel--subscriber-blocked .otr-lesson-access-panel__cta {
	box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}
.otr-lesson-access-panel--locked .otr-lesson-access-panel__cta:hover,
.otr-lesson-access-panel--subscriber-blocked .otr-lesson-access-panel__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(245, 158, 11, 0.36);
}
.otr-lesson-access-panel--open .otr-lesson-access-panel__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}
.otr-lesson-access-panel__note {
	margin: var(--wp--preset--spacing--40, 16px) 0 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 14px;
}
/* Mobile: reduce access-card padding and keep the CTA label readable. */
@media (max-width: 600px) {
	.otr-lesson-access {
		padding: var(--wp--preset--spacing--50, 24px);
	}
	.otr-lesson-access-panel__cta {
		height: 56px;
		font-size: var(--wp--preset--font-size--large, 1.25rem);
	}
}

/* Related lessons: heading + grid share one centered width. The grid is given a
 * bit more room than the reading column so each card's title fits on one line
 * while the three cards still align cleanly to a shared container edge. */
.otr-lesson-related > .wp-block-heading,
.otr-lesson-related > .otr-related-grid {
	width: min(100%, 64rem);
	margin-inline: auto;
}

/* Section heading as a teal icon-pill flanked by hairlines. */
.otr-lesson-related__heading {
	margin: 0;
}
.otr-related-eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}
.otr-related-eyebrow::before,
.otr-related-eyebrow::after {
	content: "";
	flex: 0 1 96px;
	height: 1px;
	background: var(--wp--preset--color--border-subtle);
}
.otr-related-eyebrow__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 18px 7px 14px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	color: #5fd6bf;
	background-color: rgba(45, 212, 191, 0.12);
	border: 1px solid rgba(45, 212, 191, 0.32);
	white-space: nowrap;
}
.otr-related-eyebrow__pill::before {
	content: "";
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	background-color: #2dd4bf;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19a9 9 0 0 1 9 0 9 9 0 0 1 9 0'/%3E%3Cpath d='M3 6a9 9 0 0 1 9 0 9 9 0 0 1 9 0'/%3E%3Cline x1='3' y1='6' x2='3' y2='19'/%3E%3Cline x1='12' y1='6' x2='12' y2='19'/%3E%3Cline x1='21' y1='6' x2='21' y2='19'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19a9 9 0 0 1 9 0 9 9 0 0 1 9 0'/%3E%3Cpath d='M3 6a9 9 0 0 1 9 0 9 9 0 0 1 9 0'/%3E%3Cline x1='3' y1='6' x2='3' y2='19'/%3E%3Cline x1='12' y1='6' x2='12' y2='19'/%3E%3Cline x1='21' y1='6' x2='21' y2='19'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Compact horizontal related-lesson cards (mockup "Refined Option 2").
 * Scoped under .otr-lesson-related and the core layout classes so these rules
 * out-specify the generic Query-Loop grid + equal-height-card rules elsewhere
 * in this stylesheet. */
.otr-lesson-related .otr-related-cards.wp-block-post-template.is-layout-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}
.otr-lesson-related .otr-related-cards.is-layout-grid > li > .otr-related-card {
	position: relative;
	/* Flex column: a top row (pills + arrow) and the title below. Using a column
	 * instead of a 2-col grid guarantees the pills and the title share the exact
	 * same left edge (the card padding) on every card, regardless of title length
	 * or arrow width — so all cards align identically. */
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	height: 100%;
	padding: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
		var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--lg, 12px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
	transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
/* Neutralize the constrained-layout auto-centering that core applies to child
 * blocks, so the pills and title are flush-left to the card padding on every
 * card (this is what makes all cards align identically). */
.otr-related-card > .otr-related-card__pills,
.otr-related-card > .otr-related-card__title,
.otr-related-card > .otr-related-card__arrow {
	margin-inline: 0;
	align-self: stretch;
	max-width: none;
}
/* Top row: pills on the left, arrow on the right, on the same line. */
.otr-related-card__pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 6px !important;
	/* Reserve room on the right so the absolutely-positioned arrow never overlaps
	 * the pills; the arrow sits in that reserved space, on the pills' line. */
	padding-right: 48px;
}
.otr-related-card__level,
.otr-related-card__skill {
	display: inline-flex;
	margin: 0;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
}
.otr-related-card__level {
	color: var(--wp--preset--color--link);
	background-color: rgba(96, 165, 250, 0.16);
	border: 1px solid rgba(96, 165, 250, 0.34);
}
.otr-related-card__skill {
	color: var(--wp--preset--color--amber);
	background-color: rgba(245, 158, 11, 0.14);
	border: 1px solid rgba(245, 158, 11, 0.35);
}
.otr-related-card__level a,
.otr-related-card__skill a {
	color: inherit;
	text-decoration: none;
	pointer-events: none;
}
.otr-related-card__title {
	margin: 0;
	line-height: 1.3;
	font-weight: 600;
	/* Title starts at the same left edge as the pills (both are flush to the card
	 * padding). One line across all cards; truncate rather than wrap so every
	 * card is the same height. */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.otr-related-card__title a {
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
}
.otr-related-card__title a:hover {
	color: var(--wp--preset--color--link);
}
/* Arrow IS the link (core/read-more anchor). Only the arrow navigates — the rest
 * of the card is not clickable. Title text stays independently clickable. */
.otr-related-card__arrow {
	/* Pinned top-right, its 40px circle centered on the ~26px pill row: shift up
	 * by half the height difference so the arrow sits on the pills' line. */
	position: absolute;
	top: calc(clamp(1rem, 0.75rem + 1vw, 1.5rem) - 7px);
	right: calc(clamp(1rem, 0.75rem + 1vw, 1.5rem) - 8px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: 999px;
	font-size: 22px;
	line-height: 1;
	color: var(--wp--preset--color--link);
	text-decoration: none;
	transition: transform 150ms ease, background-color 150ms ease;
}
.otr-related-card__arrow:hover {
	background-color: rgba(96, 165, 250, 0.16);
	transform: translateX(2px);
}
.otr-related-card__arrow:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}
/* Card lift on hover/focus as a subtle affordance (the arrow is the link). */
.otr-related-card:hover,
.otr-related-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(96, 165, 250, 0.25);
	border-color: var(--wp--preset--color--brand);
}
.otr-related-card__title a:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 3px;
}
/* Tablet: 2 columns. Mobile: single full-width column. */
@media (max-width: 900px) {
	.otr-lesson-related .otr-related-cards.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.otr-lesson-related .otr-related-cards.wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.otr-lesson-access {
		border-radius: var(--wp--custom--radius--lg, 12px);
	}
}

/* --- Accessibility utility: visually hidden but available to screen readers --- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Homepage newsletter form (front-page.html) --- */
.otr-newsletter {
	display: flex;
	gap: var(--wp--preset--spacing--30, 8px);
	flex-wrap: wrap;
}
.otr-newsletter__input {
	flex: 1 1 220px;
	min-height: 44px;
	padding: 0.5rem 1rem;
	color: var(--wp--preset--color--text-primary);
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--wp--custom--radius--md, 8px);
	font-size: 1rem;
	font-family: inherit;
}
.otr-newsletter__input::placeholder {
	color: var(--wp--preset--color--text-muted);
}
.otr-newsletter__input:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 1px;
}
.otr-newsletter__button {
	min-height: 44px;
	padding: 0.5rem 1.5rem;
	color: var(--wp--preset--color--brand-foreground);
	background-color: var(--wp--preset--color--brand);
	border: none;
	border-radius: var(--wp--custom--radius--md, 8px);
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-newsletter__button:hover,
.otr-newsletter__button:focus-visible {
	background-color: var(--wp--preset--color--brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

/* --- FAQ accordion (patterns/faq-accordion.php, core/details) --- */
.otr-faq {
	padding: var(--wp--preset--spacing--40, 16px) var(--wp--preset--spacing--50, 24px);
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--md, 8px);
	transition: border-color 200ms ease;
}
.otr-faq:hover {
	border-color: var(--wp--preset--color--brand);
}
.otr-faq > summary {
	font-weight: 600;
	cursor: pointer;
	list-style-position: inside;
}
.otr-faq > summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}

/* --- Filter pills (lesson archive + blog archive) --- */
.otr-filters__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30, 8px);
	margin-bottom: var(--wp--preset--spacing--40, 16px);
}
.otr-filters__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--text-muted);
	margin-right: var(--wp--preset--spacing--20, 4px);
}
.otr-filters__pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30, 8px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.otr-filters__pills li {
	margin: 0;
}

/* Pill appearance — shared by hand-written .otr-pill and core/categories links */
.otr-pill,
.otr-filters__pills.wp-block-categories a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 8px 18px;
	color: var(--wp--preset--color--text-primary);
	background: transparent;
	border: 1px solid var(--wp--preset--color--text-muted);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.otr-pill:hover,
.otr-pill:focus-visible,
.otr-filters__pills.wp-block-categories a:hover,
.otr-filters__pills.wp-block-categories a:focus-visible {
	background-color: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
}
/* Active state: current term archive */
.otr-pill[aria-current],
.otr-pill.is-active {
	background-color: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
}

/* Course catalog category tabs (otr/course-catalog pattern) */
.otr-catalog-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30, 8px);
	margin-top: var(--wp--preset--spacing--50, 24px);
}

/* Equal-height cards in any Query Loop grid (blog, courses, lesson archives).
 * Each post renders as a grid item; stretch its inner group to full height and
 * push the date / read-more to the bottom so cards line up cleanly. */
.wp-block-post-template.is-layout-grid {
	align-items: stretch;
}
.wp-block-post-template.is-layout-grid > li {
	display: flex;
}
.wp-block-post-template.is-layout-grid > li > .wp-block-group {
	display: flex;
	flex-direction: column;
	width: 100%;
	transition: border-color 200ms ease, transform 200ms ease;
}
.wp-block-post-template.is-layout-grid > li > .wp-block-group:hover {
	/* !important needed: each post card sets border-color via inline style
	 * attribute (block editor border control), which inline-style specificity
	 * otherwise always wins over a stylesheet :hover rule. */
	border-color: var(--wp--preset--color--brand) !important;
	transform: translateY(-2px);
}
.wp-block-post-template.is-layout-grid .wp-block-post-excerpt {
	flex: 1 1 auto;
}

/* core/categories rendered as pills: strip default list styling */
.otr-filters__pills.wp-block-categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30, 8px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.otr-filters__pills.wp-block-categories li {
	margin: 0;
}

.otr-filters__clear {
	margin: 0;
	font-size: 14px;
}

/* --- 404 hero: oversized code (override the huge preset) --- */
.wp-block-cover h1.otr-404-code {
	font-size: clamp(4rem, 2rem + 8vw, 6.5rem);
	line-height: 1;
	margin-bottom: 0;
}

/* ============================================================
 * PLUGIN INTEGRATION — OTR Platform Core shortcodes
 * Styles the markup the plugin renders so it matches the theme.
 * ============================================================ */

/* Quota display ([otr_quota_display]) */
.otr-quota-display {
	padding: var(--wp--preset--spacing--50, 24px);
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--lg, 12px);
	color: var(--wp--preset--color--text-primary);
}
.otr-quota-display strong,
.otr-quota-display b {
	color: var(--wp--preset--color--link);
}
/* If the plugin emits a meter/progress element, theme it */
.otr-quota-display progress,
.otr-quota-display meter {
	width: 100%;
	height: 12px;
	accent-color: var(--wp--preset--color--brand);
}

/* Lesson library ([otr_lesson_library]) */
.otr-lesson-library {
	box-sizing: border-box;
	width: min(100%, 72rem);
	max-width: calc(100vw - 2rem);
	margin: var(--wp--preset--spacing--50, 24px) auto var(--wp--preset--spacing--70, 40px);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background:
		radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.16), transparent 30rem),
		radial-gradient(circle at 88% 14%, rgba(245, 158, 11, 0.12), transparent 26rem),
		linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(8, 13, 24, 0.94));
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--otr-radius-xl, 18px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.otr-library-header {
	display: grid;
	gap: 0.5rem;
	max-width: 46rem;
	margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
}
.otr-library-title {
	margin: 0;
	color: var(--wp--preset--color--text-primary);
	font-size: clamp(1.85rem, 1.45rem + 1.2vw, var(--wp--preset--font-size--xx-large, 2.5rem));
	font-weight: 600;
	line-height: 1.1;
}
.otr-library-intro {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	line-height: 1.65;
}
.otr-library-filters {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: clamp(1rem, 1.5vw, 1.1rem);
	align-items: end;
	width: 100%;
	margin: 0;
	padding: clamp(1.25rem, 2.6vw, 2rem);
	background:
		linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.82)),
		var(--wp--preset--color--ui-dark);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--otr-radius-xl, 18px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 14px 34px rgba(0, 0, 0, 0.2);
}
.otr-filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
}
.otr-filter-search {
	grid-column: span 2;
}
.otr-filter-field label {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
}
.otr-library-filters input[type="search"],
.otr-library-filters select {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.85rem;
	color: var(--wp--preset--color--text-primary);
	background-color: rgba(255, 255, 255, 0.065);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: var(--otr-radius-md, 10px);
	font-size: 16px;
	font-family: inherit;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.otr-library-filters input[type="search"]:focus-visible,
.otr-library-filters select:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 1px;
}
.otr-filter-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	justify-content: flex-end;
	grid-column: 1 / -1;
	padding-top: 0.1rem;
}
.otr-filter-submit,
.otr-filter-actions button {
	min-height: 44px;
	padding: 0.65rem 1.5rem;
	color: var(--wp--preset--color--brand-foreground);
	background-color: var(--wp--preset--color--brand);
	border: none;
	border-radius: var(--otr-radius-md, 10px);
	font-weight: 600;
	text-transform: capitalize;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-filter-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1.1rem;
	color: var(--wp--preset--color--text-primary);
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--otr-radius-md, 10px);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.otr-filter-submit:hover,
.otr-filter-actions button:hover {
	background-color: var(--wp--preset--color--brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}
.otr-filter-clear:hover,
.otr-filter-clear:focus-visible {
	background-color: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.26);
	transform: translateY(-2px);
}
@media (max-width: 640px) {
	.otr-filter-search {
		grid-column: 1 / -1;
	}
	.otr-filter-actions {
		align-items: stretch;
		flex-direction: column;
		justify-content: stretch;
	}
	.otr-filter-submit,
	.otr-filter-actions button,
	.otr-filter-clear {
		width: 100%;
	}
}
@media (min-width: 641px) {
	.otr-filter-actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: inherit;
		align-items: center;
	}
	.otr-filter-submit,
	.otr-filter-actions button {
		grid-column: 2;
		width: 100%;
	}
	.otr-filter-clear {
		grid-column: 3;
		width: 100%;
	}
}
@media (min-width: 900px) {
	.otr-library-filters {
		grid-template-columns: minmax(14rem, 1.6fr) repeat(4, minmax(7.5rem, 1fr));
	}
	.otr-filter-search {
		grid-column: auto;
	}
	.otr-filter-actions {
		grid-template-columns: minmax(14rem, 1.6fr) repeat(4, minmax(7.5rem, 1fr));
	}
	.otr-filter-submit,
	.otr-filter-actions button {
		grid-column: 4;
		width: 100%;
	}
	.otr-filter-clear {
		grid-column: 5;
		width: 100%;
	}
}

.otr-library-context {
	margin: var(--wp--preset--spacing--50, 24px) 0 0;
	padding: clamp(1rem, 2vw, 1.35rem) 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.otr-library-context__label {
	margin: 0 0 0.35rem;
	color: var(--wp--preset--color--amber);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}
.otr-library-context__title {
	margin: 0;
	color: var(--wp--preset--color--text-primary);
	font-size: clamp(1.35rem, 1.12rem + 0.7vw, 1.85rem);
	line-height: 1.2;
}
.otr-library-context__description {
	max-width: 48rem;
	margin-top: 0.65rem;
	color: var(--wp--preset--color--text-muted);
	font-size: clamp(1rem, 0.95rem + 0.18vw, 1.0625rem);
	line-height: 1.65;
}
.otr-library-context__description > * {
	margin-top: 0;
}
.otr-library-context__description > *:last-child {
	margin-bottom: 0;
}

/* Empty / no-results state */
.otr-library-empty {
	margin: var(--wp--preset--spacing--50, 24px) 0 0;
	padding: var(--wp--preset--spacing--70, 48px) var(--wp--preset--spacing--50, 24px);
	color: var(--wp--preset--color--text-muted);
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--lg, 12px);
	text-align: center;
	font-size: 15px;
}

/* Lesson card grid */
.otr-library-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: var(--wp--preset--spacing--50, 24px);
	margin-top: var(--wp--preset--spacing--50, 24px);
	align-items: start;
}
.otr-lesson-library .otr-lesson-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--wp--preset--spacing--50, 24px);
	background: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--lg, 12px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
	transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.otr-lesson-library .otr-lesson-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
	border-color: var(--wp--preset--color--brand);
}
.otr-lesson-library .otr-lesson-card.is-locked {
	opacity: 0.92;
}
.otr-card-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--30, 8px);
	margin-bottom: var(--wp--preset--spacing--40, 16px);
}
.otr-card-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	min-height: calc(1.3em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-wrap: balance;
	text-align: center;
}
.otr-card-title a {
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
}
.otr-card-title a:hover {
	color: var(--wp--preset--color--link);
}
.otr-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}
.otr-card-meta li {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}
.otr-card-meta .otr-meta-key {
	display: none;
}
.otr-card-meta .otr-meta-value {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}
.otr-card-meta .otr-meta-level .otr-meta-value {
	color: var(--wp--preset--color--link);
	background-color: rgba(96, 165, 250, 0.14);
}
.otr-card-meta .otr-meta-skill .otr-meta-value {
	color: #fbbf24;
	background-color: rgba(245, 158, 11, 0.14);
}
.otr-card-footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--30, 8px);
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-card-footer .otr-card-cta {
	margin-left: 0;
	margin-right: 0;
}

/* Access badges */
.otr-access-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 11px 4px 9px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
	border: 1px solid transparent;
}
.otr-lock-icon {
	font-size: 10px;
	line-height: 1;
}
.otr-access-free {
	color: #ffffff;
	background-color: #059669;
	border-color: rgba(52, 211, 153, 0.34);
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.38);
	transform-origin: center;
	transition: transform 150ms ease, box-shadow 150ms ease;
}
/* FREE badge: lift on hover (matches the "Available — View Lesson" CTA). */
.otr-lesson-card:hover .otr-access-free {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(5, 150, 105, 0.44);
}
.otr-card-description {
	display: none;
}
.otr-access-locked {
	color: #fbbf24;
	background-color: rgba(245, 158, 11, 0.13);
	border-color: rgba(245, 158, 11, 0.35);
	transform-origin: center;
}
/* SUBSCRIBER ONLY badge: jitter on hover. */
.otr-lesson-card:hover .otr-access-locked {
	animation: otr-badge-jitter 2.4s ease-in-out infinite;
}
@keyframes otr-badge-jitter {
	0%, 88%, 100% { transform: translateX(0) rotate(0deg); }
	90% { transform: translateX(-1.5px) rotate(-2deg); }
	92% { transform: translateX(1.5px) rotate(2deg); }
	94% { transform: translateX(-1.5px) rotate(-2deg); }
	96% { transform: translateX(1.5px) rotate(2deg); }
	98% { transform: translateX(-1px) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
	.otr-lesson-card:hover .otr-access-locked {
		animation: none;
	}
}

/* Card CTAs */
.otr-card-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	width: 100%;
	padding: 0.5rem 1rem;
	border-radius: var(--wp--custom--radius--md, 8px);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	text-transform: capitalize;
	box-shadow: none;
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-cta-available,
.otr-cta-subscribe {
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.otr-cta-download {
	min-height: 32px;
	color: var(--wp--preset--color--text-muted);
	background-color: transparent;
	font-weight: 500;
	font-size: 14px;
}
.otr-cta-download:hover {
	color: var(--wp--preset--color--link);
}
.otr-cta-available {
	color: var(--wp--preset--color--brand-foreground);
	background-color: var(--wp--preset--color--brand);
}
.otr-cta-available:hover {
	background-color: var(--wp--preset--color--brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}
.otr-cta-subscribe {
	color: #ffffff;
	background-color: var(--wp--preset--color--amber);
}

/* Single-lesson access CTA: compensate for font metrics so the label sits at
 * the optical center of the tall pill, while the shared card CTA styles remain
 * unchanged elsewhere. */
.otr-lesson-access-panel .otr-lesson-access-panel__cta {
	padding-block: 0 0.75em;
}
.otr-cta-subscribe:hover {
	background-color: var(--wp--preset--color--amber-hover);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

/* ============================================================
 * EDD STOREFRONT / CHECKOUT / HISTORY compatibility
 * ============================================================ */
.edd_download {
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--lg, 12px);
	padding: var(--wp--preset--spacing--50, 24px);
}
.edd_download_title a {
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
}
.edd_download_title a:hover {
	color: var(--wp--preset--color--link);
}
.edd_download_excerpt {
	color: var(--wp--preset--color--text-muted);
}
.edd_price,
.edd_download_price {
	color: var(--wp--preset--color--link);
	font-weight: 600;
}
.edd_empty_cart,
.edd-blocks__empty,
#edd_checkout_form_wrap:not(:has(#edd_purchase_form)) .edd-blocks-form__cart {
	display: block;
	width: min(100%, 44rem);
	margin: clamp(1.5rem, 4vw, 3rem) auto;
	padding: clamp(1.5rem, 5vw, 3rem);
	overflow: visible;
	color: var(--wp--preset--color--text-muted);
	text-align: center;
	background:
		radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.18), transparent 36%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
		var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: clamp(1rem, 3vw, 1.5rem);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.otr-checkout-empty-card {
	display: grid;
	justify-items: center;
	gap: var(--wp--preset--spacing--40, 16px);
	max-width: 100%;
}
.otr-checkout-empty-message {
	display: block;
	color: var(--wp--preset--color--text-primary);
	font-size: clamp(1.25rem, 1.07rem + 0.9vw, 1.75rem);
	font-weight: 800;
	line-height: 1.25;
}
.otr-checkout-recovery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--40, 16px);
	max-width: 100%;
}
.otr-checkout-recovery a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	max-width: 100%;
	padding: 0.8rem 1.25rem;
	border-radius: 999px;
	background: var(--wp--preset--color--amber);
	border: 1px solid transparent;
	color: var(--wp--preset--color--background-dark);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 14px 30px rgba(245, 158, 11, 0.24);
}
.otr-checkout-recovery a:hover,
.otr-checkout-recovery a:focus-visible {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
	box-shadow: 0 16px 34px rgba(59, 130, 246, 0.22);
}
.otr-checkout-account-required {
	display: grid;
	gap: var(--wp--preset--spacing--40, 16px);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	color: var(--wp--preset--color--text-primary);
	background:
		linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(59, 130, 246, 0.05)),
		var(--wp--preset--color--ui-panel);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--amber) 42%, transparent);
	border-radius: 1rem;
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}
.otr-checkout-account-required__message {
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.35vw, 1.35rem);
	font-weight: 800;
	line-height: 1.3;
}
.otr-checkout-account-required__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}
.otr-checkout-account-required__button,
.otr-checkout-account-required__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	max-width: 100%;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
}
.otr-checkout-account-required__button {
	padding: 0.75rem 1.1rem;
	color: var(--wp--preset--color--brand-foreground);
	background: var(--wp--preset--color--brand);
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 800;
	box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}
.otr-checkout-account-required__button--secondary {
	color: var(--wp--preset--color--background-dark);
	background: var(--wp--preset--color--amber);
	box-shadow: 0 14px 30px rgba(245, 158, 11, 0.22);
}
.otr-checkout-account-required__link {
	padding: 0.5rem 0.25rem;
	color: var(--wp--preset--color--link);
	font-weight: 700;
}
.otr-checkout-account-required__button:hover,
.otr-checkout-account-required__button:focus-visible,
.otr-checkout-account-required__link:hover,
.otr-checkout-account-required__link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}
#edd_checkout_form_wrap:has(.otr-checkout-account-required) .edd-blocks__purchase-form {
	display: none;
}
/* Checkout / cart / history tables */
/* ---- Purchase history + legacy table cart (kept for compatibility) ---- */
#edd_purchase_history,
.edd-cart {
	color: var(--wp--preset--color--text-primary);
}
#edd_purchase_history {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
#edd_purchase_history table {
	width: 100%;
	min-width: 32rem;
}
#edd_purchase_history th {
	color: var(--wp--preset--color--text-muted);
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}
#edd_purchase_history td {
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}

/* =================================================================
 * Premium checkout / cart (EDD block-cart: .edd-blocks-cart, the
 * .edd-blocks__checkout form). Goals: a connected checkout flow,
 * generous rows, a visible secondary "Remove" control, and clear totals.
 * ================================================================= */
#edd_checkout_form_wrap:has(#edd_purchase_form) {
	box-sizing: border-box;
	display: grid;
	gap: clamp(1rem, 2vw, 1.5rem);
	width: min(100%, 48rem);
	max-width: calc(100vw - 2rem);
	margin: clamp(1.25rem, 3vw, 2rem) auto 0;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	align-items: start;
	background:
		radial-gradient(circle at 18% 0%, rgba(59, 130, 246, 0.18), transparent 34%),
		linear-gradient(145deg, rgba(17, 24, 39, 0.86), rgba(26, 26, 26, 0.94));
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: clamp(1rem, 2vw, 1.35rem);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
#edd_checkout_form_wrap:has(#edd_purchase_form) > * {
	min-width: 0;
}
#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-blocks__cart,
#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-blocks__purchase-form {
	width: 100%;
	min-width: 0;
}
#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-blocks__cart {
	order: 1;
}
#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-blocks__purchase-form {
	order: 2;
}
#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-blocks-form__cart {
	width: 100%;
	margin: 0;
	padding: 0;
	color: inherit;
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.otr-checkout-summary-heading {
	margin: 0 0 0.85rem;
	color: var(--wp--preset--color--text-primary);
	font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.5rem);
	font-weight: 800;
	line-height: 1.2;
}
#edd_checkout_cart.edd-blocks-cart {
	color: var(--wp--preset--color--text-primary);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
		var(--wp--preset--color--ui-panel);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--otr-radius-xl, 18px);
	overflow: hidden;
	margin: 0;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}
/* Header row */
#edd_checkout_cart .edd-blocks-cart__row-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: 0.9rem clamp(1rem, 2vw, 1.35rem);
	background: rgba(255, 255, 255, 0.035);
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wp--preset--color--text-muted);
}
/* Item rows */
#edd_checkout_cart .edd-blocks-cart__row-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.8rem 1rem;
	padding: clamp(1rem, 2.2vw, 1.25rem) clamp(1rem, 2vw, 1.35rem);
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}
#edd_checkout_cart .edd-blocks-cart__row-item:last-child { border-bottom: none; }
.edd_cart_item_name {
	display: grid;
	gap: 0.55rem;
	min-width: 0;
	font-weight: 700;
	line-height: 1.35;
}
.edd_checkout_cart_item_title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}
.edd_cart_item_name img,
.edd_cart_item_name .edd_download_image {
	width: 44px;
	height: 44px;
	border-radius: var(--otr-radius-md, 8px);
	object-fit: cover;
}
.edd_cart_item_price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.6rem;
	font-weight: 800;
	white-space: normal;
	text-align: right;
}
/* Visible Remove control. EDD's block CSS renders this link as a tiny (13px),
 * muted trash-icon background image with no label. We raise specificity
 * under #edd_checkout_cart so it remains readable after EDD CSS loads. */
#edd_checkout_cart .edd_cart_actions { display: inline-flex; }
#edd_checkout_cart .edd-blocks-cart__action-remove,
#edd_checkout_cart a.edd_cart_remove_item_btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	height: auto;
	min-height: 34px;
	padding: 0.5rem 0.75rem 0.5rem 1.85rem; /* room for the trash icon on the left */
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	color: rgba(250, 250, 250, 0.76);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	background-color: rgba(255, 255, 255, 0.045);
	background-repeat: no-repeat;
	background-position: 0.7rem center;
	background-size: 14px 14px;
	transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
#edd_checkout_cart .edd-blocks-cart__action-remove::after,
#edd_checkout_cart a.edd_cart_remove_item_btn::after {
	content: "Remove";
}
#edd_checkout_cart .edd-blocks-cart__action-remove:hover,
#edd_checkout_cart .edd-blocks-cart__action-remove:focus-visible,
#edd_checkout_cart a.edd_cart_remove_item_btn:hover,
#edd_checkout_cart a.edd_cart_remove_item_btn:focus-visible {
	color: var(--wp--preset--color--amber);
	border-color: var(--wp--preset--color--amber);
	background-color: rgba(245, 158, 11, 0.10);
}
/* SR text already announces "Remove"; the ::after label is aria-hidden by
 * being generated content, so keep the SR span hidden to avoid duplication. */
#edd_checkout_cart .edd-blocks-cart__action-remove .screen-reader-text,
#edd_checkout_cart a.edd_cart_remove_item_btn .screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
/* Footer / total */
#edd_checkout_cart .edd-blocks-cart__row-footer {
	display: flex;
	justify-content: flex-end;
	padding: 1rem clamp(1rem, 2vw, 1.35rem);
	background: rgba(255, 255, 255, 0.04);
}
.edd_cart_total {
	font-size: clamp(1.05rem, 0.98rem + 0.28vw, 1.2rem);
	font-weight: 800;
}
.edd_cart_total .edd_cart_amount { color: var(--wp--preset--color--amber); }
.otr-checkout-change-plan {
	margin: 0.85rem 0 0;
	font-size: 0.95rem;
	line-height: 1.5;
}
.otr-checkout-change-plan a {
	color: var(--wp--preset--color--text-muted);
	text-decoration-color: rgba(255, 255, 255, 0.28);
	text-underline-offset: 0.2em;
}
.otr-checkout-change-plan a:hover,
.otr-checkout-change-plan a:focus-visible {
	color: var(--wp--preset--color--amber);
	text-decoration-color: currentColor;
}

/* Checkout form fieldsets as cards */
#edd_checkout_form_wrap:has(#edd_purchase_form) #edd_purchase_form {
	box-sizing: border-box;
	display: grid;
	gap: clamp(1rem, 2vw, 1.25rem);
	width: 100%;
	margin: 0;
	padding: clamp(1.1rem, 2.6vw, 1.6rem);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
		var(--wp--preset--color--ui-panel);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--otr-radius-xl, 18px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}
#edd_checkout_form_wrap:has(#edd_purchase_form) #edd_purchase_form fieldset {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}
#edd_checkout_form_wrap:has(#edd_purchase_form) #edd_checkout_user_info {
	display: grid;
	gap: 1rem;
}
#edd_checkout_form_wrap:has(#edd_purchase_form) legend {
	display: block;
	width: 100%;
	margin: 0 0 0.15rem;
	padding: 0;
	font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.5rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--text-primary);
}
#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-blocks-form__group {
	display: grid;
	gap: 0.45rem;
	margin: 0;
}
#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-blocks-form__group label {
	margin: 0 !important;
	color: var(--wp--preset--color--text-primary);
	font-weight: 700;
	line-height: 1.35;
}
#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-required-indicator {
	color: var(--wp--preset--color--amber);
}
#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-description {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}
#edd_checkout_form_wrap input[type="text"],
#edd_checkout_form_wrap input[type="email"],
#edd_checkout_form_wrap input[type="password"],
#edd_checkout_form_wrap input[type="tel"],
#edd_checkout_form_wrap select {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0.6rem 0.85rem;
	color: var(--wp--preset--color--text-primary);
	background-color: var(--wp--preset--color--ui-dark);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--wp--custom--radius--md, 8px);
	font-size: 16px;
}
#edd_checkout_form_wrap input:focus-visible,
#edd_checkout_form_wrap select:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 1px;
}
#edd_purchase_submit {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.9rem;
	padding-top: 0.25rem !important;
}
#edd-purchase-button {
	width: 100%;
	min-height: 48px;
	font-weight: 800;
}

/* --- Section rhythm: dividers between the stacked form sections. EDD wraps
 * the fieldsets in .edd-blocks__user-details / .edd-blocks__payment-details. */
#edd_purchase_form .edd-blocks__user-details,
#edd_purchase_form .edd-blocks__payment-details {
	display: grid;
	gap: clamp(1rem, 2vw, 1.25rem);
}
#edd_purchase_form .edd-blocks__user-details > fieldset + fieldset,
#edd_purchase_form .edd-blocks__payment-details > fieldset + fieldset,
#edd_purchase_form .edd-blocks__user-details + .edd-blocks__payment-details {
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	padding-top: clamp(1.1rem, 2.4vw, 1.5rem);
}

/* --- Returning-customer switcher (EDD's native login/guest form nav) --- */
#edd_purchase_form .edd-blocks__checkout-forms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin: 0;
}
#edd_purchase_form .edd-blocks__checkout-forms button.link {
	background: transparent;
	border: 0;
	min-height: 44px;
	padding: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.95rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}
#edd_purchase_form .edd-blocks__checkout-forms button.link:hover,
#edd_purchase_form .edd-blocks__checkout-forms button.link:focus-visible {
	color: var(--wp--preset--color--amber);
}
#edd_purchase_form .edd-blocks__checkout-forms button.link[disabled] {
	color: var(--wp--preset--color--text-primary);
	font-weight: 700;
	text-decoration: none;
	cursor: default;
}
/* The swapped-in login form's submit inherits the brand button look. */
#edd_purchase_form input[type="submit"]:not(#edd-purchase-button) {
	min-height: 44px;
	padding: 0.5rem 1.5rem;
	border: 0;
	border-radius: var(--wp--custom--radius--md, 8px);
	background-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
	font-weight: 700;
	cursor: pointer;
}

/* --- Billing details (EDD address fields, output when taxes are enabled) --- */
#edd_checkout_form_wrap:has(#edd_purchase_form) #edd_cc_address {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
#edd_cc_address legend,
#edd_cc_address .edd-blocks-form__group-country,
#edd_cc_address .edd-blocks-form__group-address,
#edd_cc_address .edd-blocks-form__group-address-2,
#edd_cc_address .edd-blocks-form__group-city {
	grid-column: 1 / -1;
}
/* State and ZIP pair up on one row (EDD's cc-address--state-zip intent). */
#edd_cc_address .edd-blocks-form__group-state,
#edd_cc_address .edd-blocks-form__group-zip {
	grid-column: span 1;
}

/* --- Payment method (gateway selection) as segmented pills --- */
#edd_payment_mode_select #edd-payment-mode-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	padding: 0;
}
#edd_payment_mode_select .edd-gateway-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0.55rem 1.15rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.045);
	color: var(--wp--preset--color--text-primary);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease;
}
#edd_payment_mode_select .edd-gateway-option:hover {
	border-color: var(--wp--preset--color--brand);
}
#edd_payment_mode_select .edd-gateway-option-selected,
#edd_payment_mode_select .edd-gateway-option-selected:hover {
	background: rgba(59, 130, 246, 0.16);
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--text-primary);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--brand);
}
#edd_payment_mode_select .edd-gateway-option:focus-within {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 1px;
}

/* --- Payment info (Stripe Payment Element mounts here) --- */
#edd_cc_fields #edd-stripe-payment-element {
	border-radius: var(--wp--custom--radius--md, 8px);
}
/* Honest placeholder while Stripe is not yet connected: the element stays
 * empty, so show a muted note instead of a blank section. */
#edd_cc_fields #edd-stripe-payment-element:empty::before {
	content: "Secure card fields will appear here once Stripe is connected in the store settings.";
	display: block;
	padding: 0.9rem 1rem;
	border: 1px dashed rgba(255, 255, 255, 0.22);
	border-radius: var(--wp--custom--radius--md, 8px);
	color: var(--wp--preset--color--text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}
#edd_cc_fields .edds-field-spacer-shim {
	display: none;
}

/* --- Terms agreement --- */
#edd_terms_agreement {
	margin: 0;
	padding: 0;
	border: 0;
}
.edd-terms-agreement {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.edd-terms-agreement input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex: 0 0 auto;
	accent-color: var(--wp--preset--color--brand);
}
.edd-terms-agreement label {
	color: var(--wp--preset--color--text-primary);
	font-weight: 500;
	line-height: 1.45;
}
.edd-terms-agreement label a {
	color: var(--wp--preset--color--link);
}

/* --- Discount code (EDD renders it in the cart footer) --- */
#edd_checkout_cart .edd-blocks-cart__row-footer:has(#edd_discount_code) {
	justify-content: flex-start;
	background: transparent;
	padding-top: 0.85rem;
	padding-bottom: 0.35rem;
}
#edd_discount_code {
	width: 100%;
	text-align: left;
}
#edd_show_discount .edd_discount_link {
	background: transparent;
	border: 0;
	min-height: 44px;
	padding: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.95rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}
#edd_show_discount .edd_discount_link:hover,
#edd_show_discount .edd_discount_link:focus-visible {
	color: var(--wp--preset--color--amber);
}
#edd_discount_code .edd-blocks-form__group-discount {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
#edd_discount_code input[type="text"] {
	flex: 1 1 12rem;
}
#edd_discount_code .edd-apply-discount {
	min-height: 44px;
	padding: 0.5rem 1.25rem;
	border: 0;
	border-radius: var(--wp--custom--radius--md, 8px);
	background-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
	font-weight: 700;
	cursor: pointer;
}
/* Trust line above the cart (added by the checkout pattern wrapper). */
.otr-checkout-trust {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--wp--preset--spacing--40, 16px);
	font-size: 14px;
	color: var(--wp--preset--color--text-muted);
}
.otr-checkout-trust svg { color: var(--wp--preset--color--brand); flex: 0 0 auto; }
@media (min-width: 900px) {
	#edd_checkout_form_wrap:has(#edd_purchase_form) {
		grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.82fr);
		width: min(calc(100vw - 2rem), 72rem);
		margin-left: 0;
		margin-right: 0;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
	}
	#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-blocks__purchase-form {
		grid-column: 1;
		grid-row: 1;
		order: 1;
	}
	#edd_checkout_form_wrap:has(#edd_purchase_form) .edd-blocks__cart {
		grid-column: 2;
		grid-row: 1;
		order: 2;
		position: sticky;
		top: calc(var(--otr-header-height, 80px) + 16px);
	}
}
@media (max-width: 600px) {
	/* Column labels are meaningless once rows stack — hide them. */
	#edd_checkout_cart .edd-blocks-cart__row-header {
		display: none;
	}
	#edd_checkout_cart .edd-blocks-cart__row-item {
		grid-template-columns: 1fr;
	}
	#edd_checkout_form_wrap:has(#edd_purchase_form) #edd_cc_address {
		grid-template-columns: 1fr;
	}
	#edd_cc_address legend,
	#edd_cc_address .edd-blocks-form__group {
		grid-column: auto;
	}
	.edd_cart_item_price {
		justify-content: flex-start;
		text-align: left;
	}
	#edd-purchase-button {
		width: 100%;
	}
	ul.is-style-no-bullet li a { min-height: 44px; }
}

/* ============================================================
 * AUTH forms ([edd_login] / [edd_register] inside auth patterns)
 * ============================================================ */
.otr-auth-card .edd-login-form,
.otr-auth-card #edd_login_form,
.otr-auth-card #edd_register_form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40, 16px);
}
.otr-auth-card .edd-input,
.otr-auth-card input[type="text"],
.otr-auth-card input[type="email"],
.otr-auth-card input[type="password"] {
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	color: var(--wp--preset--color--text-primary);
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--wp--custom--radius--md, 8px);
	font-size: 16px;
	font-family: inherit;
}
.otr-auth-card .edd-input:focus-visible,
.otr-auth-card input:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 1px;
}
.otr-auth-card label {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--text-muted);
}
.otr-auth-card input[type="submit"] {
	min-height: 44px;
	padding: 0.5rem 1.5rem;
	color: var(--wp--preset--color--brand-foreground);
	background-color: var(--wp--preset--color--brand);
	border: none;
	border-radius: var(--wp--custom--radius--md, 8px);
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-auth-card input[type="submit"]:hover {
	background-color: var(--wp--preset--color--brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

/* ============================================================
 * Split-layout auth page (otr/auth-login pattern)
 * ============================================================ */
.otr-auth {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	min-height: 0;
}
.otr-auth__brandpanel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding: clamp(1.75rem, 4vw, 3.5rem);
	background:
		radial-gradient(120% 80% at 20% 0%, rgba(37, 99, 235, 0.2), transparent 60%),
		radial-gradient(110% 90% at 85% 18%, rgba(96, 165, 250, 0.14), transparent 58%),
		linear-gradient(180deg, rgba(7, 20, 40, 0.92) 0%, rgba(10, 10, 10, 1) 62%),
		var(--wp--preset--color--background-dark);
	border-right: 1px solid var(--wp--preset--color--border-subtle);
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
	overflow: hidden;
}
.otr-auth__brandpanel::before,
.otr-auth__brandpanel::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	pointer-events: none;
}
.otr-auth__brandpanel::before {
	right: -12%;
	bottom: 6%;
	width: clamp(14rem, 34vw, 24rem);
	height: clamp(14rem, 34vw, 24rem);
	background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 72%);
}
.otr-auth__brandpanel::after {
	left: clamp(1rem, 4vw, 2.5rem);
	top: clamp(2rem, 10vh, 4.5rem);
	width: clamp(10rem, 24vw, 16rem);
	height: 1px;
	background: linear-gradient(90deg, rgba(96, 165, 250, 0.55) 0%, rgba(96, 165, 250, 0) 100%);
}
@media (min-width: 40rem) {
	.otr-auth__brandpanel {
		border-bottom: none;
	}
}
.otr-auth__pitch {
	position: relative;
	z-index: 1;
	width: min(100%, 29rem);
	margin-top: clamp(3.5rem, 12vh, 7rem);
	padding: clamp(1.5rem, 3vw, 2rem);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 1.5rem;
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(8px);
}
.otr-auth__pitchtitle {
	margin: 0 0 24px;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.2;
	color: var(--wp--preset--color--text-primary);
}
.otr-auth__benefits {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.otr-auth__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--wp--preset--color--text-primary);
}
.otr-auth__benefits svg { flex: 0 0 auto; margin-top: 2px; color: var(--wp--preset--color--link); }
.otr-auth__social-proof {
	margin: 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--text-muted);
	font-size: 14px;
}
@media (max-width: 39.99rem) {
	.otr-auth__brandpanel {
		padding-bottom: clamp(1.5rem, 5vw, 2rem);
	}
	.otr-auth__brandpanel::after {
		top: 2.25rem;
		width: clamp(6.5rem, 26vw, 9rem);
		opacity: 0.8;
	}
	.otr-auth__pitch {
		width: 100%;
		margin-top: 0;
		padding: 1.25rem;
		border-radius: 1.25rem;
	}
}
.otr-auth__formpanel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.75rem, 4.5vw, 4rem) clamp(1rem, 3vw, 1.75rem);
	background:
		radial-gradient(70% 70% at 15% 10%, rgba(59, 130, 246, 0.07), transparent 60%),
		linear-gradient(180deg, rgba(10, 10, 10, 1) 0%, rgba(7, 7, 7, 1) 100%);
}
.otr-auth__formwrap {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: min(100%, 28rem);
	padding: clamp(1.5rem, 3vw, 2.15rem);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 1.35rem;
	box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
}
.otr-auth__header {
	margin-bottom: 1.25rem;
	text-align: center;
}
.otr-auth__title {
	margin: 0 0 0.65rem;
	font-size: clamp(2rem, 1.7rem + 1vw, 2.45rem);
	line-height: 1.05;
	color: var(--wp--preset--color--text-primary);
}
.otr-auth__subtitle {
	margin: 0 auto;
	max-width: 30ch;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.94rem;
	line-height: 1.5;
}
/* Style the real EDD login form inside the panel. */
.otr-auth__eddform {
	display: grid;
	gap: 0.8rem;
}
.otr-auth__eddform .edd-login-form,
.otr-auth__eddform #edd_login_form,
.otr-auth__eddform #edd_register_form,
.otr-auth__eddform form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.otr-auth__eddform fieldset {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	border: 0;
}
.otr-auth__eddform legend {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.otr-auth__eddform p {
	margin: 0;
	position: relative;
}
.otr-auth__eddform .otr-auth__field > label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.otr-auth__eddform input[type="text"],
.otr-auth__eddform input[type="email"],
.otr-auth__eddform input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 3.55rem;
	padding: 0.9rem 1rem;
	color: var(--wp--preset--color--text-primary);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.95rem;
	font-size: 16px;
	font-family: inherit;
	transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.otr-auth__eddform input::placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--text-muted) 88%, white 12%);
}
.otr-auth__eddform label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
	letter-spacing: 0.01em;
}
.otr-auth__eddform .edd-login-remember label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--wp--preset--color--text-muted);
}
.otr-auth__eddform input[type="text"]:hover,
.otr-auth__eddform input[type="email"]:hover,
.otr-auth__eddform input[type="password"]:hover {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.07);
}
.otr-auth__eddform input[type="text"]:focus-visible,
.otr-auth__eddform input[type="email"]:focus-visible,
.otr-auth__eddform input[type="password"]:focus-visible {
	outline: 2px solid rgba(96, 165, 250, 0.45);
	outline-offset: 1px;
	border-color: rgba(96, 165, 250, 0.6);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}
.otr-auth__eddform input[aria-invalid="true"] {
	border-color: rgba(248, 113, 113, 0.78);
	box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}
.otr-auth__eddform input:user-invalid {
	border-color: rgba(248, 113, 113, 0.78);
	box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}
.otr-auth__eddform .edd_errors,
.otr-auth__eddform .edd_error,
.otr-auth__eddform .edd-alert-error {
	margin: 0;
	padding: 0.75rem 0.85rem;
	color: #fecaca;
	background: rgba(127, 29, 29, 0.28);
	border: 1px solid rgba(248, 113, 113, 0.3);
	border-radius: 0.85rem;
	font-size: 0.9rem;
	line-height: 1.45;
}
.otr-auth__eddform .edd_errors p,
.otr-auth__eddform .edd_error p,
.otr-auth__eddform .edd-alert-error p {
	margin: 0;
}
.otr-auth__eddform input[type="checkbox"] {
	display: inline-grid;
	place-content: center;
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	appearance: none;
	color: var(--wp--preset--color--brand-foreground);
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 0.35rem;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.otr-auth__eddform input[type="checkbox"]::before {
	content: "";
	width: 0.62rem;
	height: 0.62rem;
	background: currentColor;
	clip-path: polygon(14% 44%, 0 58%, 38% 96%, 100% 24%, 85% 10%, 37% 67%);
	transform: scale(0);
	transform-origin: center;
	transition: transform 120ms ease;
}
.otr-auth__eddform input[type="checkbox"]:checked {
	background: var(--wp--preset--color--brand);
	border-color: rgba(96, 165, 250, 0.95);
}
.otr-auth__eddform input[type="checkbox"]:checked::before {
	transform: scale(1);
}
.otr-auth__eddform input[type="checkbox"]:focus-visible {
	outline: 2px solid rgba(96, 165, 250, 0.55);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.14);
}
.otr-auth__meta {
	margin: 0;
}
.otr-auth__meta--remember {
	display: flex;
	align-items: center;
}
.otr-auth__utilityrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.65rem 1rem;
	margin-top: 0.05rem;
	margin-bottom: 0.15rem;
}
.otr-auth__meta--lost {
	text-align: right;
}
.otr-auth__meta--lost a {
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
	font-size: 0.88rem;
}
.otr-auth__meta--lost a:hover,
.otr-auth__meta--lost a:focus-visible {
	color: var(--wp--preset--color--text-primary);
	text-decoration: underline;
}
.otr-auth__submitrow {
	margin-top: 0.25rem;
}
.otr-auth__eddform input[type="submit"],
.otr-auth__btn {
	width: 100%;
	min-height: 3.4rem;
	padding: 0.9rem 1.2rem;
	color: var(--wp--preset--color--brand-foreground);
	background: linear-gradient(180deg, #2583ff 0%, #1768e2 100%);
	border: none;
	border-radius: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 14px 28px rgba(23, 104, 226, 0.28);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
.otr-auth__eddform input[type="submit"]:hover,
.otr-auth__btn:hover {
	filter: brightness(1.05);
	transform: translateY(-2px);
	box-shadow: 0 18px 34px rgba(23, 104, 226, 0.34);
}
.otr-auth__eddform input[type="submit"]:focus-visible,
.otr-auth__btn:focus-visible {
	outline: 2px solid rgba(96, 165, 250, 0.7);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2), 0 16px 34px rgba(23, 104, 226, 0.3);
}
.otr-auth__eddform input[type="submit"]:active,
.otr-auth__btn:active {
	transform: translateY(0);
	box-shadow: 0 10px 22px rgba(23, 104, 226, 0.24);
}
.otr-auth__eddform input[type="submit"]:disabled,
.otr-auth__eddform input[type="submit"][aria-disabled="true"],
.otr-auth__eddform input[type="submit"].is-loading,
.otr-auth__btn[aria-disabled="true"] {
	cursor: progress;
	filter: saturate(0.9) brightness(0.94);
	box-shadow: 0 10px 22px rgba(23, 104, 226, 0.2);
	transform: none;
}
.otr-auth__alt {
	margin: 1rem 0 0;
	text-align: center;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.92rem;
}
.otr-auth__alt a {
	color: var(--wp--preset--color--link);
	font-weight: 600;
	text-decoration: none;
}
.otr-auth__alt a:hover,
.otr-auth__alt a:focus-visible {
	color: var(--wp--preset--color--text-primary);
	text-decoration: underline;
}
.otr-auth__note {
	margin: 18px 0 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 12px;
	text-align: center;
	opacity: 0.85;
}
.otr-auth__field--hidden {
	display: none !important;
}

/* Social sign-in buttons (otr_social_login_buttons) */
.otr-social {
	display: grid;
	gap: 0.75rem;
	margin: 0;
}
.otr-auth__socialgroup {
	margin-top: 0.85rem;
	padding-top: 0;
}
.otr-social__stack {
	display: grid;
	gap: 0.7rem;
}
.otr-social__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 3.1rem;
	padding: 0.82rem 1.1rem;
	font: inherit;
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 0.95rem;
	cursor: pointer;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.otr-social__btn--google {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.96) 100%);
	border-color: rgba(191, 219, 254, 0.95);
	color: #0f172a;
	box-shadow: 0 14px 34px rgba(59, 130, 246, 0.14);
}
.otr-social__btn:hover:not([disabled]),
.otr-social__btn:focus-visible:not([disabled]) {
	background: #fff;
	border-color: rgba(255, 255, 255, 0.92);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
	transform: translateY(-1px);
}
.otr-social__btn:focus-visible,
.otr-social__compact:focus-visible {
	outline: 2px solid rgba(96, 165, 250, 0.68);
	outline-offset: 2px;
}
.otr-social__btn:active:not([disabled]),
.otr-social__compact:active:not([disabled]) {
	transform: translateY(0);
}
.otr-social__btn[disabled] {
	opacity: 0.82;
	cursor: not-allowed;
}
.otr-social__btn svg {
	flex: 0 0 auto;
	color: #0f172a;
}
.otr-social__compactrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin-top: 0.05rem;
}
.otr-social__compact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.2rem;
	min-width: 3.2rem;
	height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.06);
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
	box-shadow: 0 14px 30px rgba(2, 6, 23, 0.18);
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.otr-social__compact:hover:not([disabled]),
.otr-social__compact:focus-visible:not([disabled]) {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.28);
}
.otr-social__compact[disabled] {
	opacity: 0.38;
	cursor: not-allowed;
}
.otr-social__compact svg {
	width: 1rem;
	height: 1rem;
}
.otr-social__compact--facebook {
	background: #1877f2;
	border-color: #1877f2;
	color: #fff;
}
.otr-social__compact--linkedin {
	background: #0077b5;
	border-color: #0077b5;
	color: #fff;
}

/* "or with email" divider */
.otr-auth__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--text-muted);
	font-size: 12px;
	letter-spacing: 0.04em;
}
.otr-auth__divider::before,
.otr-auth__divider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--wp--preset--color--border-subtle);
}
.otr-auth--signup .otr-auth__brandpanel {
	background:
		radial-gradient(120% 80% at 20% 0%, rgba(14, 165, 233, 0.18), transparent 60%),
		radial-gradient(110% 90% at 85% 18%, rgba(45, 212, 191, 0.14), transparent 58%),
		linear-gradient(180deg, rgba(4, 18, 32, 0.95) 0%, rgba(7, 18, 26, 1) 62%),
		var(--wp--preset--color--background-dark);
}
.otr-auth--signup .otr-auth__formpanel {
	background:
		radial-gradient(80% 60% at 20% 10%, rgba(255, 255, 255, 0.04), transparent 60%),
		var(--wp--preset--color--background-dark);
}
@media (max-width: 39.99rem) {
	.otr-auth__formwrap {
		padding: 1.25rem;
		border-radius: 1.25rem;
	}
	.otr-auth__utilityrow {
		align-items: flex-start;
	}
	.otr-auth__meta--lost {
		margin-left: auto;
	}
}

/* ============================================================
 * M8 content patterns
 * ============================================================ */

/* Contact form ([otr/contact]) */
.otr-contact-form {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2vw, var(--wp--preset--spacing--40, 16px));
}
.otr-form-group {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.otr-form-group label {
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}
.otr-required {
	color: var(--wp--preset--color--amber);
}
.otr-contact-form input[type="text"],
.otr-contact-form input[type="email"],
.otr-contact-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.85rem;
	color: var(--wp--preset--color--text-primary);
	background-color: var(--wp--preset--color--ui-panel);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--wp--custom--radius--md, 8px);
	font-size: 16px;
	font-family: inherit;
	transition: border-color 150ms ease, background-color 150ms ease;
}
.otr-contact-form textarea {
	min-height: 140px;
	resize: vertical;
}
.otr-contact-form input:hover,
.otr-contact-form textarea:hover {
	border-color: rgba(255, 255, 255, 0.28);
}
.otr-contact-form input:focus-visible,
.otr-contact-form textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--brand);
}
.otr-contact-form input[aria-invalid="true"],
.otr-contact-form textarea[aria-invalid="true"] {
	border-color: var(--wp--preset--color--amber);
}
.otr-field-error {
	font-size: 14px;
	color: var(--wp--preset--color--amber);
	min-height: 1em;
}
/* Honeypot: visually and from layout hidden, still in DOM for bots */
.otr-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.otr-contact-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 1.75rem;
	color: var(--wp--preset--color--brand-foreground);
	background-color: var(--wp--preset--color--brand);
	border: none;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-contact-submit__icon { flex: 0 0 auto; }
.otr-contact-submit:hover,
.otr-contact-submit:focus-visible {
	background-color: var(--wp--preset--color--brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}
.otr-contact-submit:focus-visible {
	outline: 2px solid var(--wp--preset--color--amber);
	outline-offset: 3px;
}
.otr-contact-submit:active {
	transform: scale(0.98);
}
.otr-form-status {
	padding: 0.75rem 1rem;
	border-radius: var(--wp--custom--radius--md, 8px);
	border: 1px solid transparent;
	font-weight: 600;
	line-height: 1.45;
}
.otr-form-status.is-error {
	color: var(--wp--preset--color--amber);
	background-color: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.35);
}
.otr-form-status.is-success {
	color: var(--wp--preset--color--link);
	background-color: rgba(37, 99, 235, 0.12);
	border-color: rgba(37, 99, 235, 0.35);
}

/* =================================================================
 * Contact page — two-column premium layout (patterns/contact.php).
 * Left: form in a card; right: Email / Support / Headquarters cards.
 * ================================================================= */
.otr-contact-layout {
	position: relative;
	left: 50%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(min(100%, 28rem), 28rem);
	gap: clamp(1rem, 2vw, var(--wp--preset--spacing--50, 1.5rem));
	width: min(calc(100vw - 2rem), 72rem);
	max-width: calc(100vw - 2rem);
	margin-top: var(--wp--preset--spacing--50, 24px);
	margin-inline: auto;
	align-items: start;
	transform: translateX(-50%);
}
.otr-contact-card {
	min-width: 0;
	padding: var(--wp--preset--spacing--60, 32px);
	background: linear-gradient(145deg, rgba(20, 28, 48, 0.96), rgba(12, 18, 32, 0.98));
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}
.otr-contact-form {
	width: 100%;
}
.otr-contact-form__cue {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
	line-height: 1.55;
}
/* Name + Email side by side on the form. */
.otr-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40, 16px);
}
/* Topic select — match the input chrome. */
.otr-contact-form select {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.85rem;
	color: var(--wp--preset--color--text-primary);
	background-color: var(--wp--preset--color--ui-dark);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--wp--custom--radius--md, 8px);
	font-size: 16px;
	font-family: inherit;
	transition: border-color 150ms ease, background-color 150ms ease;
}
.otr-contact-form select:hover {
	border-color: rgba(255, 255, 255, 0.28);
}
.otr-contact-form select:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--brand);
}
/* Inputs inside the form card sit on the darker panel for contrast. */
.otr-contact-card input[type="text"],
.otr-contact-card input[type="email"],
.otr-contact-card textarea {
	background-color: var(--wp--preset--color--ui-dark);
}
/* Right-rail info cards — horizontal: icon left of the title + body (matches
 * the 8080 reference). */
.otr-contact-info {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40, 16px);
}
.otr-contact-info-panel {
	width: 100%;
	padding: clamp(1.125rem, 1.8vw, 1.5rem);
	gap: 12px;
}
.otr-contact-info-panel .otr-included-benefits__header {
	margin-bottom: 0;
}
.otr-contact-info-panel .otr-included-benefits__title {
	font-size: clamp(1.35rem, 1.12rem + 0.65vw, 1.75rem);
}
.otr-info-card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
	padding: var(--wp--preset--spacing--40, 20px);
	min-height: 112px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
	transition: border-color 150ms ease, transform 150ms ease;
}
.otr-info-card:hover {
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}
.otr-info-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: var(--otr-radius-md, 10px);
	background: rgba(37, 99, 235, 0.12);
	color: var(--wp--preset--color--brand);
}
.otr-info-card__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.otr-info-card__title { margin: 0; font-size: 15px; }
.otr-info-card__body {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--wp--preset--color--text-muted);
	overflow-wrap: anywhere;
}
.otr-info-card__body a { color: var(--wp--preset--color--link); text-decoration: none; }
.otr-info-card__body a:hover { text-decoration: underline; }
.otr-contact-info-panel .otr-info-card {
	gap: 10px;
	min-height: auto;
	padding: 14px;
}
.otr-contact-info-panel .otr-info-card__icon {
	width: 32px;
	height: 32px;
}
.otr-contact-info-panel .otr-info-card__body,
.otr-contact-info-panel .otr-info-card__body a {
	overflow-wrap: break-word;
	word-break: normal;
}

/* =================================================================
 * Contact page section. Sits flush on the page background (no separate
 * banding) — only the form/info cards carry their own surface color.
 * ================================================================= */
.otr-contact-band {
	background: var(--wp--preset--color--background-dark);
}
.otr-contact-band .otr-contact-card {
	background: linear-gradient(145deg, rgba(20, 28, 48, 0.96), rgba(12, 18, 32, 0.98));
}
.otr-contact-band .otr-contact-card:not(:hover) {
	border-color: var(--wp--preset--color--border-subtle);
}
.otr-contact-band .otr-form-group label { color: var(--wp--preset--color--text-primary); }
.otr-contact-band .otr-contact-card input[type="text"],
.otr-contact-band .otr-contact-card input[type="email"],
.otr-contact-band .otr-contact-card textarea,
.otr-contact-band .otr-contact-form select {
	color: var(--wp--preset--color--text-primary);
	background-color: var(--wp--preset--color--ui-dark);
	border-color: rgba(255, 255, 255, 0.16);
}
.otr-contact-band .otr-contact-form input::placeholder,
.otr-contact-band .otr-contact-form textarea::placeholder { color: var(--wp--preset--color--text-muted); }
.otr-contact-band .otr-info-card__icon {
	background: rgba(37, 99, 235, 0.14);
}
.otr-contact-band .otr-info-card__title { color: var(--wp--preset--color--text-primary); }
.otr-contact-band .otr-info-card__body { color: var(--wp--preset--color--text-muted); }
.otr-contact-band .otr-info-card__body a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}
.otr-contact-band .otr-contact-info-panel .otr-info-card__body a {
	display: inline;
	min-height: 0;
}

/* =================================================================
 * Support routing page (patterns/support.php).
 * ================================================================= */
.otr-support-page {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 28rem),
		radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.12), transparent 24rem),
		var(--wp--preset--color--background-dark);
}
.otr-support-section {
	position: relative;
	z-index: 1;
}
.otr-support-section > h2,
.otr-support-final > h2 {
	max-width: 48rem;
	margin-inline: auto;
	color: var(--wp--preset--color--text-primary);
	line-height: 1.15;
	text-wrap: balance;
}
.otr-support-topic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr));
	gap: clamp(1rem, 2vw, var(--wp--preset--spacing--50, 1.5rem));
	width: min(100%, 68rem);
	margin-top: var(--wp--preset--spacing--50, 24px);
	margin-inline: auto;
}
.otr-support-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 100%;
	padding: clamp(1.25rem, 2.2vw, 1.85rem);
	background:
		linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(11, 18, 32, 0.96)),
		var(--wp--preset--color--ui-panel);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--otr-radius-lg, 12px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
	transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.otr-support-card:hover,
.otr-support-card:focus-within {
	border-color: rgba(96, 165, 250, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}
.otr-support-card__accent {
	width: 42px;
	height: 5px;
	margin-bottom: 18px;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	box-shadow: 0 0 22px rgba(37, 99, 235, 0.24);
}
.otr-support-card--amber .otr-support-card__accent,
.otr-support-card--orange .otr-support-card__accent {
	background: var(--wp--preset--color--amber);
	box-shadow: 0 0 22px rgba(245, 158, 11, 0.22);
}
.otr-support-card--mint .otr-support-card__accent {
	background: #34d399;
	box-shadow: 0 0 22px rgba(52, 211, 153, 0.18);
}
.otr-support-card h3 {
	margin: 0;
	color: var(--wp--preset--color--text-primary);
	font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem);
	line-height: 1.25;
}
.otr-support-card p {
	margin: 0.7rem 0 1.35rem;
	color: var(--wp--preset--color--text-muted);
	font-size: clamp(0.95rem, 0.9rem + 0.16vw, 1rem);
	line-height: 1.6;
}
.otr-support-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	width: fit-content;
	max-width: 100%;
	margin-top: auto;
	padding: 0.5rem 0.9rem;
	color: var(--wp--preset--color--amber);
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.34);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
}
.otr-support-card--blue .otr-support-card__link,
.otr-support-card--mint .otr-support-card__link {
	color: var(--wp--preset--color--brand-foreground);
	background: rgba(37, 99, 235, 0.16);
	border-color: rgba(96, 165, 250, 0.38);
	box-shadow: none;
}
.otr-support-card__link:hover,
.otr-support-card__link:focus-visible {
	background: rgba(245, 158, 11, 0.17);
	transform: translateY(-1px);
	text-decoration: none;
}
.otr-support-card--blue .otr-support-card__link:hover,
.otr-support-card--blue .otr-support-card__link:focus-visible,
.otr-support-card--mint .otr-support-card__link:hover,
.otr-support-card--mint .otr-support-card__link:focus-visible {
	background: rgba(37, 99, 235, 0.24);
}
.otr-support-faq-list {
	display: grid;
	gap: 12px;
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-support-faq-item {
	min-width: 0;
	background: rgba(17, 24, 39, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--otr-radius-lg, 12px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}
.otr-support-faq-item summary {
	cursor: pointer;
	padding: 1rem 1.15rem;
	color: var(--wp--preset--color--text-primary);
	font-weight: 700;
	line-height: 1.35;
}
.otr-support-faq-item p {
	margin: 0;
	padding: 0 1.15rem 1.15rem;
	color: var(--wp--preset--color--text-muted);
	line-height: 1.65;
}
.otr-support-faq-item a {
	color: var(--wp--preset--color--amber);
	font-weight: 700;
	text-underline-offset: 0.18em;
}
.otr-support-expectation-list {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(0.85rem, 1.4vw, 1rem);
	width: min(100%, 56rem);
	margin: var(--wp--preset--spacing--50, 24px) 0 0;
	margin-inline: auto;
	padding: 0;
}
.otr-support-expectation-list li {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 5.75rem;
	padding: 1.1rem 1.15rem 1.1rem 3.35rem;
	color: var(--wp--preset--color--text-primary);
	background:
		linear-gradient(145deg, rgba(17, 24, 39, 0.86), rgba(15, 23, 42, 0.72)),
		rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--otr-radius-md, 10px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
	line-height: 1.55;
}
.otr-support-expectation-list li::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--wp--preset--color--amber);
	transform: translateY(-50%);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 72% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.otr-support-expectations {
	padding-bottom: var(--wp--preset--spacing--30, 16px) !important;
}
.otr-support-final {
	position: relative;
	z-index: 1;
	width: min(100%, 56rem);
	margin-inline: auto;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.75rem) !important;
	background:
		linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(245, 158, 11, 0.08)),
		linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(11, 18, 32, 0.9));
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--otr-radius-xl, 18px);
	box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}
.otr-support-final::before {
	content: none;
}
.otr-support-final > h2 {
	margin-top: 0;
}
.otr-support-final > p {
	max-width: 38rem;
	margin-inline: auto;
	line-height: 1.65;
}
.otr-support-final .wp-block-buttons {
	margin-top: 1.25rem;
}

@media (max-width: 900px) {
	.otr-contact-layout { grid-template-columns: minmax(0, 1fr); }
	.otr-contact-layout > * {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
	.otr-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.otr-contact-card {
		padding: var(--wp--preset--spacing--50, 24px);
	}
}
@media (min-width: 700px) {
	.otr-support-topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.otr-support-expectation-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* eBooks grid ([otr/ebooks] wrapping EDD [downloads]) */
.otr-ebooks-grid .edd_downloads_list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: clamp(1rem, 2vw, var(--wp--preset--spacing--50, 1.5rem));
}
.otr-ebooks-grid .edd_download {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}
/* Premium card chrome for each eBook (matches the lesson/resource cards) */
.otr-ebooks-grid .edd_download_inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	overflow: hidden;
	transition: border-color 200ms ease, transform 200ms ease;
}
.otr-ebooks-grid .edd_download_inner:hover {
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}
.otr-ebooks-grid .edd_download_image {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--wp--preset--color--ui-dark);
}
.otr-ebooks-grid .edd_download_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.otr-ebooks-grid .edd_download_title {
	margin: 0;
	padding: var(--wp--preset--spacing--50, 24px) var(--wp--preset--spacing--50, 24px) var(--wp--preset--spacing--30, 8px);
	font-size: 18px;
	line-height: 1.3;
}
.otr-ebooks-grid .edd_download_title a {
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
}
.otr-ebooks-grid .edd_download_title a:hover {
	color: var(--wp--preset--color--link);
}
.otr-ebooks-grid .edd_download_excerpt {
	padding: 0 var(--wp--preset--spacing--50, 24px);
	color: var(--wp--preset--color--text-muted);
	font-size: 14px;
	line-height: 1.5;
	flex: 1 1 auto;
}
.otr-ebooks-grid .edd_download_excerpt p { margin: 0; }
.otr-ebooks-grid .edd_download_buy_button {
	padding: var(--wp--preset--spacing--40, 16px) var(--wp--preset--spacing--50, 24px) var(--wp--preset--spacing--50, 24px);
}
.otr-ebooks-grid .edd_price {
	display: block;
	margin-bottom: 10px;
	font-size: 20px;
	font-weight: 700;
	color: var(--wp--preset--color--text-primary);
}
.otr-ebooks-grid .otr-ebook-sample {
	margin: 0;
	padding: 0 var(--wp--preset--spacing--50, 24px) var(--wp--preset--spacing--30, 8px);
}
.otr-ebooks-grid .otr-ebook-sample a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--link);
	text-decoration: none;
}
.otr-ebooks-grid .otr-ebook-sample a:hover { text-decoration: underline; }
.otr-ebooks-empty {
	color: var(--wp--preset--color--text-muted);
}
/* eBooks buy buttons use the amber accent (per brand spec), distinct from the
 * blue checkout/purchase buttons elsewhere. Scoped to the books grid only. */
.otr-ebooks-grid .edd-submit,
.otr-ebooks-grid .edd_purchase_submit_wrapper input[type="submit"],
.otr-ebooks-grid .button.edd-add-to-cart {
	background-color: var(--wp--preset--color--amber);
	color: #ffffff;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.otr-ebooks-grid .edd-submit:hover,
.otr-ebooks-grid .edd_purchase_submit_wrapper input[type="submit"]:hover,
.otr-ebooks-grid .button.edd-add-to-cart:hover {
	background-color: var(--wp--preset--color--amber-hover);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

/* EDD product / book detail columns */
.otr-download-columns {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: clamp(1rem, 2vw, var(--wp--preset--spacing--70, 32px));
}
.otr-download-columns > .wp-block-column {
	flex-basis: unset !important;
	width: auto !important;
	min-width: 0;
}

/* Single lesson featured image — fluid, not fixed px width */
.single-lesson .wp-block-post-featured-image {
	max-width: min(100%, 37.5rem);
}

/* Single post author bio — wrap on narrow screens */
.otr-author-bio {
	flex-wrap: wrap !important;
}
.otr-author-bio .wp-block-avatar {
	flex: 0 0 auto;
}

/* =================================================================
 * Founder story (otr/founder pattern)
 * ================================================================= */
.otr-founder__columns {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: clamp(1rem, 2vw, var(--wp--preset--spacing--70, 32px));
}
.otr-founder__columns > .wp-block-column {
	flex-basis: unset !important;
	width: auto !important;
	min-width: 0;
}
.otr-founder__media {
	position: relative;
	margin: 0;
	max-width: min(100%, 30rem);
}
.otr-founder__photo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--otr-radius-lg, 12px);
	border: 1px solid var(--wp--preset--color--border-subtle);
	object-fit: cover;
}
.otr-founder__badge {
	position: absolute;
	left: var(--wp--preset--spacing--40, 16px);
	bottom: var(--wp--preset--spacing--40, 16px);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--wp--preset--color--ui-panel);
	color: var(--wp--preset--color--text-primary);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
}
.otr-founder__badge svg {
	color: var(--wp--preset--color--amber);
	flex: 0 0 auto;
}

/* =================================================================
 * Shared page hero — open centered intro used across inner landing pages.
 * ================================================================= */
.otr-page-hero {
	text-align: center;
}
.otr-page-hero__kicker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	padding: 0.25rem 0.75rem;
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid rgba(245, 158, 11, 0.24);
	border-radius: 999px;
	line-height: 1.25;
	text-wrap: balance;
}
.otr-page-hero h1 {
	max-width: 47.5rem;
	margin-top: 0.75rem;
	margin-inline: auto;
	line-height: 1.08;
	text-wrap: balance;
}
.otr-page-hero p:not(.otr-page-hero__kicker) {
	max-width: 44rem;
	margin-top: 0.875rem;
	margin-inline: auto;
	color: var(--wp--preset--color--text-muted);
	line-height: 1.65;
	text-wrap: pretty;
}
.otr-page-hero .wp-block-buttons {
	gap: 0.75rem;
	justify-content: center;
	margin-top: clamp(1.25rem, 2vw, 1.75rem);
}
.otr-page-hero .wp-block-button__link {
	white-space: normal;
}
.otr-subscriptions-page > #plans {
	padding-top: var(--wp--preset--spacing--40) !important;
}

/* =================================================================
 * About page founder profile (otr/about pattern)
 * ================================================================= */
.otr-about-hero {
	text-align: center;
}
.otr-about-hero__kicker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin-inline: auto;
	padding: 0.25rem 0.75rem;
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid rgba(245, 158, 11, 0.24);
	border-radius: 999px;
	line-height: 1.25;
}
.otr-about-hero h1 {
	margin-top: 0.75rem;
}
.otr-about-hero p:last-child {
	margin-top: 0.875rem;
}
.otr-about-value-grid {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: clamp(0.875rem, 1.8vw, 1.25rem);
}
.otr-about-value-grid > .wp-block-column,
.otr-about-stat-row > .wp-block-column {
	flex-basis: unset !important;
	width: auto !important;
	min-width: 0;
}
.otr-about-value-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 100%;
	height: 100%;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.otr-about-value-card h3,
.otr-about-value-card p {
	margin-top: 0;
}
.otr-about-stats {
	margin-top: 0;
}
.otr-about-stat-row {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: clamp(0.75rem, 1.6vw, 1rem);
	padding: clamp(1rem, 2.2vw, 1.35rem);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.otr-about-stat {
	min-width: 0;
}
.otr-about-stat p {
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.35;
}
.otr-about-stat p:first-child {
	margin-bottom: 0.2rem;
}
.otr-about-profile {
	background: transparent !important;
}
.otr-about-profile__columns {
	display: grid !important;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	gap: clamp(1.25rem, 2.6vw, var(--wp--preset--spacing--60, 32px));
	width: min(100%, 64rem);
	max-width: calc(100vw - 2rem);
	margin-inline: auto;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.75rem);
	background:
		linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(245, 158, 11, 0.08)),
		linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(11, 18, 32, 0.9));
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--otr-radius-xl, 18px);
	box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
	box-sizing: border-box;
}
.otr-about-profile__columns > .wp-block-column {
	position: relative;
	z-index: 1;
	flex-basis: unset !important;
	width: auto !important;
	min-width: 0;
}
.otr-about-profile__columns > .wp-block-column:last-child {
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	max-width: min(100%, 32rem);
	margin-inline: 0 auto;
}
.otr-about-profile__columns > .wp-block-column:last-child > * {
	margin-top: 0;
	margin-bottom: 0;
}
.otr-about-profile__columns > .wp-block-column:last-child > h2 {
	line-height: 1.1;
}
.otr-about-profile__columns > .wp-block-column:last-child > p:last-child {
	max-width: 31rem;
	font-size: clamp(1rem, 0.96rem + 0.14vw, 1.03125rem) !important;
	line-height: 1.65;
	text-align: justify;
	text-align-last: left;
	hyphens: auto;
	overflow-wrap: break-word;
}
.otr-about-profile__media {
	position: relative;
	margin: 0;
	max-width: min(100%, 27.5rem);
	padding: 0;
	background: none;
	border: 0;
	border-radius: calc(var(--otr-radius-xl, 18px) - 4px);
	box-shadow: none;
}
.otr-about-profile__photo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: calc(var(--otr-radius-xl, 18px) - 4px);
	object-fit: contain;
}
.otr-about-profile__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0;
	margin-bottom: 0;
	max-width: 100%;
}
.otr-about-profile__chips span {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0.28rem 0.62rem;
	color: var(--wp--preset--color--text-primary);
	background: rgba(10, 10, 10, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.25;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.otr-about-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: clamp(0.875rem, 1.8vw, 1.25rem);
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-about-card,
.otr-about-panel,
.otr-about-credential-card {
	min-width: 0;
	padding: clamp(1.125rem, 2.2vw, 1.5rem);
	background: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.otr-about-card {
	border-top: 2px solid rgba(245, 158, 11, 0.72);
}
.otr-about-card h3,
.otr-about-panel h2,
.otr-about-credential-card h3 {
	margin: 0;
	color: var(--wp--preset--color--text-primary);
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.otr-about-card h3,
.otr-about-credential-card h3 {
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
}
.otr-about-panel h2 {
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}
.otr-about-card p {
	margin: 0.625rem 0 0;
	color: var(--wp--preset--color--text-muted);
	line-height: 1.6;
}
.otr-about-split,
.otr-about-credential-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: clamp(0.875rem, 1.8vw, 1.25rem);
	align-items: stretch;
}
.otr-about-panel,
.otr-about-credential-card {
	height: 100%;
}
.otr-about-checklist,
.otr-about-credential-card ul {
	display: grid;
	gap: 0.65rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}
.otr-about-checklist li,
.otr-about-credential-card li {
	position: relative;
	min-width: 0;
	padding-left: 1.55rem;
	color: var(--wp--preset--color--text-muted);
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.otr-about-checklist li::before,
.otr-about-credential-card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--amber);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
.otr-about-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1rem;
}
.otr-about-tags span {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0.3rem 0.7rem;
	color: var(--wp--preset--color--brand-foreground);
	background: rgba(37, 99, 235, 0.18);
	border: 1px solid rgba(96, 165, 250, 0.32);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
}
.otr-about-cta__card {
	max-width: min(100%, 64rem);
	margin-inline: auto;
	padding: clamp(1.25rem, 3vw, 2rem);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%),
		var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}
.otr-about-cta__card h2 {
	max-width: 52rem;
	margin-inline: auto;
	font-size: clamp(1.625rem, 1.4rem + 0.75vw, 2rem);
	line-height: 1.15;
	text-wrap: balance;
}
.otr-about-cta__card p {
	max-width: 44rem;
	margin-inline: auto;
}
.otr-about-cta__card .wp-block-buttons {
	gap: 0.75rem;
}
@media (min-width: 640px) {
	.otr-about-value-grid,
	.otr-about-stat-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1080px) {
	.otr-about-value-grid,
	.otr-about-stat-row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 760px) {
	.otr-page-hero {
		padding-top: var(--wp--preset--spacing--70) !important;
		padding-bottom: var(--wp--preset--spacing--40) !important;
	}
	.otr-page-hero .wp-block-buttons {
		width: 100%;
	}
	.otr-page-hero .wp-block-button,
	.otr-page-hero .wp-block-button__link {
		width: 100%;
	}
	.otr-about-hero {
		padding-top: var(--wp--preset--spacing--70) !important;
	}
	.otr-about-value-card,
	.otr-about-stat-row,
	.otr-about-card,
	.otr-about-panel,
	.otr-about-credential-card,
	.otr-about-cta__card {
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	}
}
@media (max-width: 900px) {
	.otr-about-profile__columns {
		grid-template-columns: 1fr;
	}
	.otr-about-profile__media {
		margin-inline: auto;
	}
}

/* =================================================================
 * Testimonials (otr/testimonial pattern)
 * ================================================================= */
.otr-testimonials {
	position: relative;
}
.otr-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-top: var(--wp--preset--spacing--60, 32px);
}
.otr-testimonials__card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40, 16px);
	min-width: 0;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%),
		var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}
.otr-testimonials__header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}
.otr-testimonials__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--wp--preset--color--brand) 0%, #60a5fa 100%);
	color: var(--wp--preset--color--brand-foreground);
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}
.otr-testimonials__person {
	min-width: 0;
}
.otr-testimonials__person h3 {
	margin: 0;
	color: var(--wp--preset--color--text-primary);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.otr-testimonials__person p {
	margin: 0.125rem 0 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.875rem;
	line-height: 1.35;
}
.otr-testimonials__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: rgba(245, 158, 11, 0.14);
	color: var(--wp--preset--color--amber);
	font-size: 0.875rem;
	line-height: 1;
}
.otr-testimonials__review {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
	line-height: 1.7;
	overflow-wrap: anywhere;
}

/* =================================================================
 * Discussion / comments (otr/discussion pattern)
 * ================================================================= */
.otr-discussion__list {
	display: grid;
	gap: var(--wp--preset--spacing--40, 16px);
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-discussion__item {
	display: flex;
	gap: var(--wp--preset--spacing--40, 16px);
	padding: var(--wp--preset--spacing--50, 24px);
	background: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
}
.otr-discussion__avatar {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--wp--preset--color--brand-foreground);
	background: var(--wp--preset--color--brand);
}
.otr-discussion__body {
	flex: 1 1 auto;
	min-width: 0;
}
.otr-discussion__name {
	margin: 0;
	font-weight: 600;
}
.otr-discussion__meta {
	margin: 0 0 6px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-muted);
}
@media (max-width: 600px) {
	.otr-founder__badge {
		position: static;
		margin-top: var(--wp--preset--spacing--40, 16px);
	}
}

/* =================================================================
 * Free resources page (otr/free-resources-page pattern)
 * ================================================================= */
.otr-pill--sm {
	min-height: 24px;
	min-width: 0;
	padding: 2px 10px;
	font-size: 12px;
	border-color: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--amber);
}

.otr-resources__audio {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: var(--wp--preset--spacing--40, 16px);
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-resource-audio {
	padding: var(--wp--preset--spacing--50, 24px);
	background: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	transition: border-color 200ms ease, transform 200ms ease;
}
.otr-resource-audio:hover {
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}
.otr-resource-audio__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.otr-resource-audio__title { font-weight: 600; }
.otr-resource-audio__desc {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--wp--preset--color--text-muted);
}
.otr-resource-audio__player { width: 100%; }

.otr-resources__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--50, 24px);
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-resource-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--wp--preset--spacing--50, 24px);
	background: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	transition: border-color 200ms ease, transform 200ms ease;
}
.otr-resource-card:hover {
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}
.otr-resource-card__badges {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.otr-resource-card__type {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wp--preset--color--text-muted);
}
.otr-resource-card__title { margin: 0; font-size: 18px; }
.otr-resource-card__desc {
	margin: 0;
	font-size: 14px;
	color: var(--wp--preset--color--text-muted);
	flex: 1 1 auto;
}
.otr-resource-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
}
.otr-resource-card__free {
	font-size: 12px;
	font-weight: 700;
	color: var(--wp--preset--color--amber);
}
.otr-resource-card__link {
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--link);
}
.otr-resource-card__link:hover { text-decoration: underline; }
@media (max-width: 1023px) {
	.otr-resources__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.otr-resources__grid { grid-template-columns: 1fr; }
}

/* Press feedback for all core buttons site-wide (Start Learning, Get Started,
 * etc.) — pairs with theme.json's hover/focus background swap. Buttons get a
 * tactile press, not the card lift used on .otr-*-card hover. */
.wp-element-button {
	transition: background-color 150ms ease, transform 150ms ease;
}
.wp-element-button:active {
	transform: scale(0.98);
}
/* Core emits .has-<preset>-background-color with !important (so a manual
 * editor color choice can't be silently overridden), which also blocks our
 * theme.json :hover background-darken on any button with an explicit preset
 * color (Start Learning, Start Teaching, View plans, Read my full story,
 * etc.). Re-assert the hover/focus color per preset, also !important, scoped
 * to interaction states only so resting colors are untouched.
 * Also add the shadow+lift ("jitter") treatment used on the custom pill
 * components (.otr-nav__cta etc.) so every amber/blue core button matches,
 * and force white text on amber buttons — core's has-background-dark-color
 * text class (also !important) otherwise wins and renders dark text. */
.has-brand-background-color.wp-element-button,
.has-amber-background-color.wp-element-button {
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.has-amber-background-color.wp-element-button {
	color: #ffffff !important;
}
.has-brand-background-color.wp-element-button:hover,
.has-brand-background-color.wp-element-button:focus-visible {
	background-color: var(--wp--preset--color--brand-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}
.has-amber-background-color.wp-element-button:hover,
.has-amber-background-color.wp-element-button:focus-visible {
	background-color: var(--wp--preset--color--amber-hover) !important;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

/* Outline buttons sit on dark hero gradients across the theme. Core marks the
 * cover `is-light`, which would paint outline buttons black-on-dark (invisible).
 * Force a light outline + light text inside covers so the secondary CTA reads. */
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--text-primary);
	border-color: rgba(255, 255, 255, 0.5);
}
/* Unscoped so outline buttons highlight on hover regardless of container
 * (covers and plain groups alike — e.g. "View all articles" on the blog grid). */
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--text-primary);
	background-color: rgba(255, 255, 255, 0.08);
}

/* =================================================================
 * Icon-card feature grid — used by the dedicated tutor/manual pages
 * (tutor-resources, tutor-materials, business-support, grammar-manuals).
 * Icon-based by design: per the "mix" decision these cards convey their
 * meaning with an icon rather than a placeholder image.
 * ================================================================= */
.otr-icon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: clamp(1rem, 2vw, var(--wp--preset--spacing--50, 1.5rem));
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-icon-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: var(--wp--preset--spacing--60, 32px);
	background: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	transition: border-color 200ms ease, transform 200ms ease;
}
.otr-icon-card:hover {
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}
.otr-icon-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--otr-radius-md, 10px);
	background: rgba(37, 99, 235, 0.12);
	color: var(--wp--preset--color--brand);
}
.otr-icon-card__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: var(--wp--preset--color--text-primary);
}
.otr-icon-card__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-muted);
}

/* Check-list — "what's inside" rows with a ticked marker. */
.otr-check-list {
	list-style: none;
	margin: var(--wp--preset--spacing--30, 8px) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: clamp(0.75rem, 2vw, 2rem);
	max-width: min(100%, 56.25rem);
}
.otr-check-list li {
	position: relative;
	padding-left: 32px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--text-primary);
}
.otr-check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: var(--wp--preset--color--amber);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 70% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Included-benefits panel — shared lower section for tutor/manual pages. */
.otr-included-benefits-band {
	background:
		radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 30rem),
		linear-gradient(180deg, rgba(8, 13, 24, 0), rgba(8, 13, 24, 0.36));
}
.otr-included-benefits {
	box-sizing: border-box;
	width: min(100%, 72rem);
	margin-inline: auto;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background:
		linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(11, 18, 32, 0.96)),
		var(--wp--preset--color--ui-panel);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--otr-radius-xl, 18px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.otr-included-benefits__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}
.otr-included-benefits__accent {
	width: 12px;
	height: 44px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--wp--preset--color--amber), rgba(245, 158, 11, 0.34));
	box-shadow: 0 0 24px rgba(245, 158, 11, 0.2);
	flex: 0 0 auto;
}
.otr-included-benefits__title {
	margin: 0;
	color: var(--wp--preset--color--text-primary);
	font-size: clamp(1.5rem, 1.18rem + 1vw, 2rem);
	line-height: 1.15;
}
.otr-included-benefits__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 14px;
}
.otr-included-benefits__list li {
	box-sizing: border-box;
	position: relative;
	min-height: 100%;
	padding: 16px 16px 16px 52px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--otr-radius-md, 10px);
	color: var(--wp--preset--color--text-primary);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
	line-height: 1.5;
}
.otr-included-benefits__list li::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 18px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--wp--preset--color--amber);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 72% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 72% no-repeat;
}

.otr-included-benefits.otr-contact-info-panel {
	padding: clamp(1.125rem, 1.8vw, 1.5rem);
	gap: 12px;
}

/* =================================================================
 * Modal-verb module cards — /lessons-modals/ (patterns/lessons-grid.php).
 * Icon + level pill + use-tag + description + single CTA. No placeholder
 * images (icon-based per the "mix" decision).
 * ================================================================= */
.otr-module-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: clamp(1rem, 2vw, var(--wp--preset--spacing--50, 1.5rem));
	margin-top: var(--wp--preset--spacing--50, 24px);
}
.otr-module-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: var(--wp--preset--spacing--60, 32px);
	background: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
	transition: border-color 200ms ease, transform 200ms ease;
}
.otr-module-card:hover {
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}
.otr-module-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}
.otr-module-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--otr-radius-md, 10px);
	background: rgba(37, 99, 235, 0.12);
	color: var(--wp--preset--color--brand);
}
.otr-module-card__title { margin: 0; font-size: 20px; }
.otr-module-card__use {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wp--preset--color--amber);
}
.otr-module-card__desc {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-muted);
	flex: 1 1 auto;
}
.otr-module-card__link {
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--link);
}
.otr-module-card__link:hover { text-decoration: underline; }
.otr-module-download-cta {
	position: relative;
	z-index: 1;
	width: min(100%, 56rem);
	margin-top: 0;
	margin-inline: auto;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.75rem) !important;
	background:
		linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(245, 158, 11, 0.08)),
		linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(11, 18, 32, 0.9)) !important;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--otr-radius-xl, 18px);
	box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}
.otr-module-download-cta > h2 {
	margin-top: 0;
	color: var(--wp--preset--color--text-primary);
	text-wrap: balance;
}
.otr-module-download-cta > p {
	max-width: 38rem;
	margin-inline: auto;
	line-height: 1.65;
}
.otr-module-download-cta .wp-block-buttons {
	margin-top: 1.25rem !important;
}

/* Shared premium action cards, matching the Support final CTA treatment. */
.otr-premium-action-card {
	position: relative;
	z-index: 1;
	width: min(100%, 56rem);
	max-width: calc(100vw - 2rem);
	margin-inline: auto;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.75rem) !important;
	background:
		linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(245, 158, 11, 0.08)),
		linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(11, 18, 32, 0.9)) !important;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--otr-radius-xl, 18px);
	box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}
.otr-premium-action-card > h2 {
	max-width: 48rem;
	margin-top: 0;
	margin-inline: auto;
	color: var(--wp--preset--color--text-primary);
	line-height: 1.15;
	text-align: center;
	text-wrap: balance;
}
.otr-premium-action-card > p {
	max-width: 38rem;
	margin-inline: auto;
	line-height: 1.65;
	text-align: center;
}
.otr-premium-action-card .wp-block-buttons {
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.25rem !important;
}
.otr-grammar-cta {
	margin-top: var(--wp--preset--spacing--50, 24px);
	margin-bottom: var(--wp--preset--spacing--80, 48px);
}
.otr-listen-now-card {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--70, 40px);
}
.otr-listen-now-card .otr-resources__audio {
	margin-top: clamp(1.25rem, 2.4vw, 1.75rem);
}
.otr-listen-now-card .otr-resource-audio {
	background:
		linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(10, 16, 28, 0.82)),
		rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* =================================================================
 * Premium polish: single-post reading experience + comment form
 * ================================================================= */
.otr-back-link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
	font-weight: 600;
}
.otr-back-link a:hover { color: var(--wp--preset--color--link); }

/* Article body: comfortable measure, generous rhythm */
.otr-prose {
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	line-height: 1.8;
}
.otr-prose > p { margin-block: 0 1.4em; color: var(--wp--preset--color--text-primary); }
.otr-prose > h2 { margin-block: 1.8em 0.6em; font-size: 26px; }
.otr-prose > h3 { margin-block: 1.6em 0.5em; }
.otr-prose > ul,
.otr-prose > ol { margin-block: 0 1.4em; padding-left: 1.2em; line-height: 1.8; }
.otr-prose > blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--wp--preset--color--amber);
	color: var(--wp--preset--color--text-muted);
	font-size: 20px;
}

/* Comment form: match the dark card system instead of raw white inputs */
.wp-block-comments {
	max-width: min(100%, 47.5rem);
	margin-inline: auto;
}
.wp-block-comments .comment-respond,
.comment-respond {
	padding: var(--wp--preset--spacing--60, 32px);
	background: var(--wp--preset--color--ui-panel);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--otr-radius-lg, 12px);
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	background: var(--wp--preset--color--background-dark);
	color: var(--wp--preset--color--text-primary);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 8px;
	font: inherit;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand);
}
.comment-respond label { font-size: 14px; color: var(--wp--preset--color--text-muted); }
.comment-respond .comment-form-comment,
.comment-respond .comment-form-author,
.comment-respond .comment-form-email,
.comment-respond .comment-form-url { margin-bottom: 16px; }
.comment-respond .submit,
.comment-respond input[type="submit"] {
	min-height: 44px;
	padding: 12px 24px;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-foreground);
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}
.comment-respond .submit:hover,
.comment-respond input[type="submit"]:hover {
	background: var(--wp--preset--color--brand-dark);
}
.wp-block-comment-template { list-style: none; padding: 0; }
.wp-block-comment-template li { margin-bottom: 20px; }
