/*
 * Lynbro Direction — the few things theme.json cannot express.
 *
 * Every rule sits inside :where() (zero specificity), so a site owner's Styles choices, block settings and
 * plugin CSS always win. Colours, type and radius come only from theme.json presets/custom properties,
 * so a style variation (and dark mode) changes everything at once. Class prefix: lbd-.
 */

/* ---------- Base ---------- */
:where(html) {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wp--custom--header-height) + 1rem);
	-webkit-text-size-adjust: 100%;
}
/* Short pages: the canvas below the footer is the site's base colour, and the footer sits at the bottom. */
:where(html) {
	background-color: var(--wp--preset--color--base);
}
:where(.wp-site-blocks) {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
:where(.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:has(> main), .wp-site-blocks > main.wp-block-group) {
	flex: 1 0 auto;
}
:where(body) {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
:where(h1, h2, h3) {
	text-wrap: balance;
}
:where(p, li) {
	text-wrap: pretty;
}
:where(.wp-site-blocks) :where(p, ul, ol) {
	max-width: var(--wp--custom--measure);
}
:where(.has-text-align-center) {
	margin-inline: auto;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus--width, 2px) solid var(--wp--custom--color--focus, var(--wp--preset--color--accent));
	outline-offset: var(--wp--custom--focus--offset, 3px);
	/* No border-radius here: it squared every pill or rounded button and field
	   while focused (the cookie banner's focused Reject looked unlike Accept).
	   Browsers draw the outline along the element's own corners. */
}
:where(::selection) {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--contrast);
}
:where(strong, b) {
	font-weight: 600;
}
/* Code (0.5.0, also where Lynbro Blocks is not active): no ligatures (JetBrains Mono drew != and -> as ≠ and →);
 * code blocks keep their lines and scroll inside themselves, so the page never scrolls sideways. */
:where(code, kbd, samp) {
	font-variant-ligatures: none;
	font-feature-settings: "calt" 0, "liga" 0;
}
:where(pre, pre.wp-block-code) {
	white-space: pre;
	overflow-x: auto;
	overflow-wrap: normal;
	word-break: normal;
	max-width: 100%;
	font-variant-ligatures: none;
}
:where(pre) :where(code) {
	overflow-wrap: normal;
	word-break: normal;
	white-space: inherit;
}
/* Inline code in running text breaks anywhere on phones (a long path or command overflowed at 375 px); code blocks
 * (pre) keep their lines and scroll. */
:where(p, li, td, th, figcaption, dd, dt, summary) :where(code, kbd, samp) {
	overflow-wrap: anywhere;
}
:where(code, kbd, samp) {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.9em;
}
:where(mark) {
	background: color-mix(in srgb, var(--wp--preset--color--gold) 55%, transparent);
	color: inherit;
	padding: 0 0.15em;
	border-radius: 2px;
}
:where(hr.wp-block-separator) {
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	:where(html) { scroll-behavior: auto; }
	:where(*, *::before, *::after) { transition: none !important; animation: none !important; }
}

/* ---------- Form controls: every plugin's form looks like the site ---------- */
:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="hidden"], [type="range"], [type="color"]), select, textarea) {
	font: inherit;
	font-size: max(1rem, 16px);
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 55%, var(--wp--preset--color--border));
	border-radius: var(--wp--custom--radius--sm);
	padding: 0.7rem 0.85rem;
	line-height: 1.4;
	max-width: 100%;
	box-sizing: border-box;
}
:where(input, select, textarea):where(:hover) {
	border-color: var(--wp--preset--color--muted);
}
:where(input, select, textarea):focus-visible {
	border-color: var(--wp--preset--color--accent);
	outline-offset: 1px;
}
:where(input[type="checkbox"], input[type="radio"]) {
	accent-color: var(--wp--preset--color--accent);
	width: 1.1rem;
	height: 1.1rem;
}
:where(button, input[type="submit"], input[type="button"]):not(.wp-element-button, .components-button) {
	font: inherit;
}
/* Lynbro Forms (0.6.3+) takes its colours from the accent, border (line alias) and danger presets itself (§9). */
/* The send button is the page's one main action: always filled, also on variations whose buttons are outlines
   (logistik, ejendom …). theme.json's element button style (.wp-element-button) would otherwise win over the
   :where rule below, and the dark outline variant was a weak CTA (C1, 19.11). */
.lynbro-form .lynbro-form-submit.wp-element-button {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
	border-color: var(--wp--preset--color--accent);
}
.lynbro-form .lynbro-form-submit.wp-element-button:hover,
.lynbro-form .lynbro-form-submit.wp-element-button:focus-visible {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
:where(.lynbro-form) :where(button[type="submit"], .lynbro-submit) {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--button--radius);
	padding: 0.85rem 1.4rem;
	font-weight: 550;
	cursor: pointer;
}
:where(.lynbro-form) :where(button[type="submit"], .lynbro-submit):hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
:where(.lbd-admin-note) {
	border: 1px dashed var(--wp--preset--color--warning);
	color: var(--wp--preset--color--warning);
	padding: 0.75rem 1rem;
	border-radius: var(--wp--custom--radius--sm);
	font-size: var(--wp--preset--font-size--sm);
}

/* ---------- Header ---------- */
:where(.lbd-header) {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
:where(body.admin-bar .lbd-header) {
	top: var(--wp-admin--admin-bar--height, 0px);
}
/* backdrop-filter makes the header the containing block of position: fixed children, so the open menu overlay was
 * clipped to the header's 69 px (0.4.1). While the overlay is open the header drops the filter. */
.lbd-header:has(.wp-block-navigation__responsive-container.is-menu-open),
html.has-modal-open .lbd-header {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	background: var(--wp--preset--color--base);
}
@media (max-width: 600px) {
	:where(body.admin-bar .lbd-header) { top: 0; }
}
:where(.lbd-header__row) {
	min-height: var(--wp--custom--header-height);
	gap: 1rem;
}
:where(.lbd-header__end) {
	gap: clamp(0.5rem, 2vw, 1.5rem);
}
:where(.lbd-brand) {
	gap: 0.6rem;
	min-width: 0;
}
:where(.lbd-brand)::before {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var(--wp--custom--radius--sm);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 62% no-repeat,
		var(--wp--preset--color--accent);
}
:where(.lbd-brand:has(.wp-block-site-logo img))::before {
	display: none;
}
:where(.lbd-brand .wp-block-site-title) {
	line-height: 1.15;
}
@media (max-width: 480px) {
	.lbd-brand > .wp-block-site-title { font-size: 0.98rem; }
}
@media (max-width: 420px) {
	:where(.lbd-brand)::before { display: none; }
}
/* The header row is the theme's own structure: plain class selectors so core's layout CSS cannot squeeze it.
 * 0.4.1: the site title never shrinks below its longest word (it was squeezed to 1–2 letters at 768 px when the
 * menu was long; it may wrap between words), and the right-hand side may shrink instead: the menu items wrap inside
 * the navigation on desktop, and below 1100 px the menu is the overlay (core switches only below 600 px, too late
 * for six Danish or Ukrainian labels next to the language switcher). */
.lbd-header__row > .lbd-brand {
	flex: 0 1 auto;
	min-width: 0;
}
/* 0.5.0: the title wraps only at spaces (never mid-word: "Betalingsløsni|nger" at 375 px), up to two lines, and a
 * single word that still does not fit is clipped with an ellipsis instead of split. The right-hand side takes the
 * rest of the row (flex-basis 0) but never less than its own min-content (burger + switcher, or the widest menu
 * item + switcher + button), so the title keeps its width first and the menu wraps inside. */
.lbd-brand > .wp-block-site-title {
	min-width: 0;
	overflow-wrap: normal;
	word-break: normal;
	-webkit-hyphens: manual;
	hyphens: manual;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.lbd-brand > .wp-block-site-title > a {
	overflow-wrap: normal;
	word-break: normal;
}
.lbd-header__row > .lbd-header__end {
	flex: 1 1 0;
}
.lbd-header__end > .wp-block-navigation {
	flex: 0 1 auto;
	min-width: 0;
}
.lbd-header__end > .wp-block-navigation .wp-block-navigation__container {
	flex-wrap: wrap;
	justify-content: flex-end;
	row-gap: 0.25rem;
}
.lbd-header__end > :not(.wp-block-navigation) {
	flex: none;
}
@media (max-width: 1099.98px) {
	.lbd-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.lbd-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}
@media (max-width: 781px) {
	.lbd-header .wp-block-buttons.lbd-header__cta { display: none; }
}
@media (max-width: 420px) {
	.lbd-header__end { gap: 0.35rem; }
	.lbd-header__row { gap: 0.6rem; }
	.lbd-brand > .wp-block-site-title { font-size: 0.92rem; letter-spacing: -0.015em; }
	:where(.wp-block-lynbro-translate-switcher) .lynbro-lang a { padding: 0.3rem 0.3rem; min-width: 1.6rem; }
	:where(.lbd-header .wp-block-navigation__responsive-container-open) { padding: 0.3rem; }
}
:where(.lbd-header .wp-block-navigation__responsive-container-open) {
	padding: 0.4rem;
}
:where(.lbd-header .wp-block-navigation__responsive-container.is-menu-open) {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	padding: var(--wp--preset--spacing--50);
}
:where(.lbd-header .wp-block-navigation__responsive-container.is-menu-open) :where(.wp-block-navigation-item) {
	font-size: var(--wp--preset--font-size--lg);
}
:where(.lbd-header .wp-block-navigation__responsive-container.is-menu-open) :where(.wp-block-navigation-item__content) {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

/* Language switcher (lynbro-translate block): a compact segmented control that never hides on phones. */
:where(.lbd-header .wp-block-lynbro-translate-switcher) {
	flex: none;
}
:where(.wp-block-lynbro-translate-switcher) .lynbro-langs--inline {
	gap: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
	padding: 2px;
	flex-wrap: nowrap;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 550;
	letter-spacing: 0.04em;
}
:where(.wp-block-lynbro-translate-switcher) .lynbro-lang a {
	display: block;
	padding: 0.3rem 0.55rem;
	min-width: 2rem;
	text-align: center;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}
:where(.wp-block-lynbro-translate-switcher) .lynbro-lang a:hover {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
:where(.wp-block-lynbro-translate-switcher) .lynbro-lang.is-current a {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ---------- Footer ---------- */
:where(.lbd-footer) {
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--sm);
}
:where(.lbd-footer) :where(h2) {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}
:where(.lbd-footer) a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--contrast);
}
:where(.lbd-footer__bottom) {
	color: var(--wp--preset--color--muted);
	gap: 0.5rem 1.5rem;
}
:where(.lbd-footer__bottom) :where(p) { margin: 0; }
:where(.lbd-footer [data-lynbro-cc-open]) {
	background: none;
	border: 0;
	padding: 0;
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

/* ---------- Hero ---------- */
:where(.lbd-hero) {
	position: relative;
	isolation: isolate;
}
:where(.lbd-hero)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--custom--backdrop);
	opacity: 0.9;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
	pointer-events: none;
}
:where(.lbd-hero h1) {
	max-width: 16ch;
}
:where(.lbd-hero .has-text-align-center) {
	margin-inline: auto;
}
:where(.lbd-trust) {
	gap: 0.4rem 1.25rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}
:where(.lbd-trust) :where(p) { margin: 0; }
:where(.lbd-trust) :where(p)::before {
	content: "✓";
	color: var(--wp--preset--color--success);
	font-weight: 700;
	margin-right: 0.4em;
}

/* ---------- Paragraph styles ---------- */
:where(.is-style-eyebrow) {
	font-family: var(--wp--custom--font--accent, inherit);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent);
}
:where(.is-style-lead) {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}
:where(.is-style-meta) {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}
:where(.is-style-badge) {
	display: inline-block;
	/* Badge style per variation (custom.badge: marker | outline | ink). */
	background: var(--wp--custom--badge--background, var(--wp--preset--color--gold));
	color: var(--wp--custom--badge--color, var(--wp--preset--color--gold-contrast));
	border: var(--wp--custom--badge--border, 0 solid transparent);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.25rem 0.6rem;
	border-radius: var(--wp--custom--radius--pill);
	width: fit-content;
}
:where(.is-style-status-pass, .is-style-status-warn, .is-style-status-fail) {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	width: fit-content;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.2rem 0.55rem;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--radius--pill);
	white-space: nowrap;
}
:where(.is-style-status-pass, .is-style-status-warn, .is-style-status-fail)::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: currentColor;
}
:where(.is-style-status-pass) { color: var(--wp--preset--color--success); }
:where(.is-style-status-warn) { color: var(--wp--preset--color--warning); }
:where(.is-style-status-fail) { color: var(--wp--preset--color--danger); }

/* ---------- Group styles ---------- */
:where(.is-style-card, .is-style-method, .is-style-pick, .is-style-result) {
	background: var(--wp--preset--color--surface);
	border: var(--wp--custom--border--width, 1px) solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--50);
}
:where(.is-style-card) {
	box-shadow: var(--wp--preset--shadow--sm);
}
:where(.is-style-card, .is-style-method, .is-style-pick, .is-style-result, .is-style-tinted, .is-style-callout) > :where(:first-child) {
	margin-top: 0;
}
:where(.is-style-tinted) {
	background: var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--60);
}
:where(.is-style-callout) {
	background: var(--wp--preset--color--surface);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: 0 var(--wp--custom--radius--sm) var(--wp--custom--radius--sm) 0;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
:where(.is-style-method) {
	border-style: dashed;
	border-color: color-mix(in srgb, var(--wp--preset--color--muted) 45%, var(--wp--preset--color--border));
}
.is-style-method :is(h2, h3) {
	font-size: var(--wp--preset--font-size--lg);
}
:where(.lbd-checked) {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
	gap: 0.4em;
	letter-spacing: 0.02em;
}
:where(.lbd-checked) :where(p, .wp-block-post-date) {
	margin: 0;
	font-size: inherit;
	color: inherit;
}
:where(.is-style-pick) {
	border: 2px solid var(--wp--preset--color--accent);
	box-shadow: var(--wp--preset--shadow--md);
	position: relative;
}
:where(.is-style-result) {
	padding: 0;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--md);
}
:where(.is-style-result) > :where(*) {
	margin: 0;
	padding: 0.9rem var(--wp--preset--spacing--50);
}
:where(.is-style-result) > :where(* + *) {
	border-top: 1px solid var(--wp--preset--color--border);
}
:where(.lbd-result-head) {
	background: var(--wp--preset--color--surface-2);
	gap: 0.5rem 1rem;
}
:where(.lbd-result-head) :where(p, h3) { margin: 0; }
:where(.lbd-result-row) {
	gap: 0.35rem 1rem;
}
:where(.lbd-result-row) :where(p) { margin: 0; }
:where(.lbd-result-row) :where(p:not([class*="is-style-status"])) {
	flex: 1 1 14rem;
}
:where(.lbd-score) {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--2-xl);
	font-weight: 650;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

/* ---------- Lists ---------- */
:where(.is-style-checklist, .is-style-crosslist, .is-style-plain) {
	list-style: none;
	padding-left: 0;
}
:where(.is-style-checklist, .is-style-crosslist) > :where(li) {
	position: relative;
	padding-left: 1.8em;
	margin-bottom: 0.5em;
}
:where(.is-style-checklist, .is-style-crosslist) > :where(li)::before {
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 1.25em;
	height: 1.25em;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1;
}
:where(.is-style-checklist) > :where(li)::before {
	content: "✓";
	color: var(--wp--preset--color--success);
	background: color-mix(in srgb, var(--wp--preset--color--success) 14%, transparent);
}
:where(.is-style-crosslist) > :where(li)::before {
	content: "×";
	color: var(--wp--preset--color--danger);
	background: color-mix(in srgb, var(--wp--preset--color--danger) 12%, transparent);
}
:where(.is-style-steps) {
	list-style: none;
	padding-left: 0;
	counter-reset: lbd-step;
	display: grid;
	gap: var(--wp--preset--spacing--50);
}
:where(.is-style-steps) > :where(li) {
	counter-increment: lbd-step;
	position: relative;
	padding-left: 3.25rem;
	min-height: 2.4rem;
}
:where(.is-style-steps) > :where(li)::before {
	content: counter(lbd-step);
	position: absolute;
	left: 0;
	top: -0.1rem;
	width: 2.25rem;
	height: 2.25rem;
	display: grid;
	place-items: center;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 650;
}
:where(.is-style-steps) > :where(li) :where(strong:first-child) {
	display: block;
	font-size: var(--wp--preset--font-size--lg);
	margin-bottom: 0.2rem;
}

/* ---------- FAQ (details) ---------- */
:where(.wp-block-details.is-style-faq) > :where(summary) {
	cursor: pointer;
	list-style: none;
	font-weight: 550;
	font-size: var(--wp--preset--font-size--lg);
	padding-right: 2.25rem;
	position: relative;
	line-height: 1.35;
	/* A one-line question is still a 44 px target (WCAG 2.2 target-size on a
	   short Ukrainian question, moms.bc.test 375 px). */
	min-height: 44px;
	display: flex;
	align-items: center;
}
:where(.wp-block-details.is-style-faq) > :where(summary)::-webkit-details-marker { display: none; }
:where(.wp-block-details.is-style-faq) > :where(summary)::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	margin-top: -0.8em;
	line-height: 1.6;
	font-size: 1.5rem;
	font-weight: 300;
	color: var(--wp--preset--color--accent);
	transition: transform 0.2s ease;
}
:where(.wp-block-details.is-style-faq[open]) > :where(summary)::after {
	transform: rotate(45deg);
}
:where(.wp-block-details.is-style-faq) > :where(:not(summary)) {
	color: var(--wp--preset--color--muted);
	margin-top: 0.6rem;
}

/* ---------- Comparison table ----------
 * Cell borders use real class specificity: core's table block styles (wp-block-styles) draw a 1px grid on
 * every cell that a :where() rule cannot undo. */
:where(.wp-block-table.is-style-comparison) {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
}
:where(.wp-block-table.is-style-comparison) :where(table) {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}
/* A minimum width (and so a sideways scroll on phones) only for three or more columns: a two-column
   "what | price" table fits a 375 px screen and was cut off at the right (C2, stripe./abonnement., 19.11). */
:where(.wp-block-table.is-style-comparison) :where(table:has(tr > :nth-child(3))) {
	min-width: 36rem;
}
.wp-block-table.is-style-comparison :is(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.75rem 0.9rem;
	text-align: left;
	vertical-align: top;
}
.wp-block-table.is-style-comparison thead {
	border: 0;
}
:where(.wp-block-table.is-style-comparison) :where(thead th) {
	font-weight: 650;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--sm);
	vertical-align: bottom;
}
:where(.wp-block-table.is-style-comparison) :where(tbody th, tbody td:first-child) {
	font-weight: 550;
	position: sticky;
	left: 0;
	background: var(--wp--preset--color--surface);
	z-index: 1;
}
.wp-block-table.is-style-comparison tbody tr:last-child > :is(th, td) {
	border-bottom: 0;
}
:where(.wp-block-table.is-style-comparison) :where(mark) {
	display: block;
	width: fit-content;
	margin-bottom: 0.35rem;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold-contrast);
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.15rem 0.45rem;
	border-radius: var(--wp--custom--radius--pill);
}
/* The column whose header carries a <mark> ("our pick") is tinted all the way down. */
:where(.wp-block-table.is-style-comparison table:has(thead th:nth-child(2) mark)) :where(td:nth-child(2)),
:where(.wp-block-table.is-style-comparison table:has(thead th:nth-child(3) mark)) :where(td:nth-child(3)),
:where(.wp-block-table.is-style-comparison table:has(thead th:nth-child(4) mark)) :where(td:nth-child(4)),
:where(.wp-block-table.is-style-comparison table:has(thead th:nth-child(5) mark)) :where(td:nth-child(5)) {
	background: color-mix(in srgb, var(--wp--preset--color--surface-2) 70%, var(--wp--preset--color--surface));
}
:where(.wp-block-table.is-style-comparison) :where(figcaption) {
	text-align: left;
	padding: 0.75rem 0.9rem;
	margin: 0;
	border-top: 1px solid var(--wp--preset--color--border);
}

/* ---------- Buttons ---------- */
/* Block styles must beat theme.json's element button colours (0,1,0); owner colour choices still win (!important presets). */
.wp-block-button.is-style-quiet > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border-color: color-mix(in srgb, var(--wp--preset--color--muted) 50%, var(--wp--preset--color--border));
}
.wp-block-button.is-style-quiet > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--contrast);
	background: transparent;
	color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--accent);
}

/* ---------- Lead band ---------- */
:where(.lbd-lead) {
	background: var(--wp--preset--color--surface-2);
}
:where(.lbd-lead__form) {
	background: var(--wp--preset--color--surface);
	border: var(--wp--custom--border--width, 1px) solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--60);
	box-shadow: var(--wp--preset--shadow--md);
}
:where(.lbd-lead__form) > :where(:first-child) { margin-top: 0; }
:where(.lbd-lead__form) :where(.lynbro-form-wrap) { margin-bottom: 0; }

/* ---------- Cards grid, page header, guide layout ---------- */
:where(.lbd-cards) {
	gap: var(--wp--preset--spacing--50);
}
:where(.lbd-cards) :where(.is-style-card) :where(h3) {
	font-size: var(--wp--preset--font-size--lg);
}
/* Card headings are a size down from h3 (real class specificity: theme.json's h3 element style would otherwise win
 * with xl). Long Danish compounds then fit a quarter-width card; for longer ones write a soft hyphen (&shy;) in the
 * text. No automatic hyphenation: the browsers' Danish dictionaries split compounds in the wrong places
 * ("Sikker-hedshe-adere", "Hjem-mesi-desik-kerhed", checked in Chromium 2026-11). */
.is-style-card :is(h3, h4) {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.25;
}
/* A card grid with a fixed column count (core grid "columnCount" without a minimum width) would keep four columns on a
 * phone; below the tablet breakpoint it reflows to as many 16rem columns as fit. */
@media (max-width: 781px) {
	.wp-block-group.lbd-cards.is-layout-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	}
}
:where(.lbd-icon) {
	width: 2.5rem;
	height: 2.5rem;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	border-radius: var(--wp--custom--radius--sm);
	/* Icon style per variation (custom.icon: duotone | line | solid). */
	background: var(--wp--custom--icon--background, var(--wp--preset--color--surface-2));
	color: var(--wp--custom--icon--color, var(--wp--preset--color--accent));
	border: var(--wp--custom--icon--border, 0 solid transparent);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: 0.95rem;
	margin: 0;
}

/* ---------- 404, search, no results (0.5.0) ---------- */
/* The status pages carry the variation's hero motif (lbd-hero backdrop) and a large code in the display face. */
:where(.lbd-status__code) {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(4rem, 14vw, 8rem);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--accent);
}
:where(.lbd-status) :where(.wp-block-search) {
	max-width: 32rem;
}
:where(.lbd-no-results) > :where(*) { margin-top: 0; }

/* ---------- Integration cards ---------- */
/* Each card is a column, so the link sits at the bottom of every card in a row. How it connects is a word in a pill;
 * the colour only repeats the word (pass / accent / check / muted colours, all AA on the card surface). No upper case:
 * "n8n" is a name. */
:where(.lbd-integration) {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
:where(.lbd-integration) > :where(*) { margin: 0; }
:where(.lbd-integration__head) { gap: 0.85rem; }
:where(.lbd-integration__head) :where(h3, p) { margin: 0; }
:where(.lbd-integration__link) {
	margin-top: auto;
	font-weight: 550;
}
:where(.lbd-kind) {
	display: inline-block;
	width: fit-content;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.15rem 0.6rem;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--radius--pill);
	white-space: nowrap;
}
:where(.lbd-kind-native) { color: var(--wp--preset--color--success); }
:where(.lbd-kind-api) { color: var(--wp--preset--color--accent); }
:where(.lbd-kind-n8n) { color: var(--wp--preset--color--warning); }
:where(.lbd-kind-custom) { color: var(--wp--preset--color--muted); border-style: dashed; }
:where(.lbd-page-header) {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
:where(.lbd-page-header .lynbro-breadcrumb, .lbd-page-header nav[aria-label]) {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}
:where(.lbd-post-card) {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--50);
}
:where(.lbd-post-card .wp-block-post-title) a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
:where(.lbd-post-card .wp-block-post-title) a:hover {
	text-decoration: underline;
}
:where(.lbd-guide) {
	gap: var(--wp--preset--spacing--70);
}
@media (min-width: 960px) {
	:where(.lbd-guide__aside) {
		position: sticky;
		top: calc(var(--wp--custom--header-height) + 1.5rem);
		align-self: flex-start;
	}
}

/* ---------- Pagination, search ---------- */
:where(.wp-block-query-pagination) {
	gap: 1rem;
	font-size: var(--wp--preset--font-size--sm);
}
:where(.wp-block-search__input) {
	border-radius: var(--wp--custom--radius--sm);
}
:where(.wp-block-search__button) {
	border-radius: var(--wp--custom--button--radius);
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	:where(.lbd-hero h1) { max-width: none; }
	:where(.is-style-tinted) { padding: var(--wp--preset--spacing--50); }
	:where(.lbd-lead__form) { padding: var(--wp--preset--spacing--50); }
}

/* ---------- Old token names (0.1.x), aliases for one release ----------
 * 0.2.0 moved to the suite theme-token contract (plugins_wp docs/lynbro-ux-standard.md). Content or plugin CSS that
 * still uses the old names keeps working until 0.3.0. Spacing 20–60 changed meaning and cannot be aliased:
 * old 20→40, 30→50, 40→60, 50→70, 60→80. */
:root {
	--wp--preset--color--line: var(--wp--preset--color--border);
	--wp--preset--color--on-accent: var(--wp--preset--color--accent-contrast);
	--wp--preset--color--accent-soft: var(--wp--preset--color--surface-2);
	--wp--preset--color--highlight: var(--wp--preset--color--gold);
	--wp--preset--color--on-highlight: var(--wp--preset--color--gold-contrast);
	--wp--preset--font-family--heading: var(--wp--preset--font-family--display);
	--wp--preset--font-size--x-small: var(--wp--preset--font-size--xs);
	--wp--preset--font-size--small: var(--wp--preset--font-size--sm);
	--wp--preset--font-size--medium: var(--wp--preset--font-size--md);
	--wp--preset--font-size--large: var(--wp--preset--font-size--lg);
	--wp--preset--font-size--x-large: var(--wp--preset--font-size--xl);
	--wp--preset--font-size--xx-large: var(--wp--preset--font-size--2-xl);
	--wp--preset--font-size--huge: var(--wp--preset--font-size--3-xl);
	--wp--preset--spacing--10: var(--wp--preset--spacing--20);
	--wp--preset--shadow--card: var(--wp--preset--shadow--sm);
	--wp--preset--shadow--lift: var(--wp--preset--shadow--md);
	--wp--custom--radius--small: var(--wp--custom--radius--sm);
	--wp--custom--radius--medium: var(--wp--custom--radius--md);
	--wp--custom--radius--large: var(--wp--custom--radius--lg);
}
:where(.has-line-color) { color: var(--wp--preset--color--border); }
:where(.has-line-background-color) { background-color: var(--wp--preset--color--border); }
:where(.has-on-accent-color) { color: var(--wp--preset--color--accent-contrast); }
:where(.has-on-accent-background-color) { background-color: var(--wp--preset--color--accent-contrast); }
:where(.has-accent-soft-color) { color: var(--wp--preset--color--surface-2); }
:where(.has-accent-soft-background-color) { background-color: var(--wp--preset--color--surface-2); }
:where(.has-highlight-color) { color: var(--wp--preset--color--gold); }
:where(.has-highlight-background-color) { background-color: var(--wp--preset--color--gold); }
:where(.has-x-small-font-size) { font-size: var(--wp--preset--font-size--xs); }
:where(.has-small-font-size) { font-size: var(--wp--preset--font-size--sm); }
:where(.has-medium-font-size) { font-size: var(--wp--preset--font-size--md); }
:where(.has-large-font-size) { font-size: var(--wp--preset--font-size--lg); }
:where(.has-x-large-font-size) { font-size: var(--wp--preset--font-size--xl); }
:where(.has-xx-large-font-size) { font-size: var(--wp--preset--font-size--2-xl); }
:where(.has-huge-font-size) { font-size: var(--wp--preset--font-size--3-xl); }
