/*
Theme Name:   QubitOwl
Description:  Child theme of Hello Elementor for qubitowl.com. Loads the qo-design tokens and self-hosted fonts; layout is built in Elementor.
Template:     hello-elementor
Version:      0.7.0
Requires at least: 6.9
Requires PHP: 7.4
Author:       QubitOwl
Text Domain:  qo-child
*/

/*
 * Base styles only. Colors, fonts and shapes come from assets/css/tokens.css
 * (synced from qo-design; see docs/wp-token-handoff.md). Elementor's Global
 * Colors and Fonts set the same values for anything built in Elementor.
 */

:root {
	--qo-button-font-weight: 500; /* Customize → Buttons prints an override when it isn't Medium. */
}

body {
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 500; /* Brand rule: headings are never 700. */
	letter-spacing: -0.01em;
}

/*
 * Heading color (Customize → Color theme → Headings: Accent): H1 and H2 in the
 * page content take the band's accent, which is contrast-checked per scheme and
 * theme (see "Accent and muted text" below; on colored bands it equals the text
 * color). #content keeps the header and the footer's H2 column headings as they
 * are; :where() drops the ID's weight, so a color set on a widget in the editor
 * still wins.
 */
.qo-headings-accent :where(#content) :is(h1, h2) {
	color: var(--qo-accent-text);
}

/* Cards and images are square with no shadow; controls get the 6px radius. */
button,
input,
select,
textarea,
.elementor-button {
	border-radius: var(--radius-control);
}

/*
 * Keyboard focus is always visible (WCAG 2.4.7): a 2px ring in the scheme's
 * text color, which contrasts with every scheme in both themes (3:1 needed).
 * The element list matches Hello's reset (its black ring + white halo would
 * otherwise win on buttons, inputs and links); currentColor is the fallback
 * outside any scheme.
 */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
	outline: 2px solid var(--color-scheme-text, currentColor);
	outline-offset: 2px;
	box-shadow: none;
}

/* Hello's skip link: hidden until focused, then shown above the header. */
.skip-link.screen-reader-text:focus {
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--color-neutral-darkest);
	color: var(--color-white);
	border-radius: var(--radius-control);
}

/*
 * Accent and muted text per scheme. Default: the scheme's own text color, which
 * passes wherever the scheme itself does. A distinct accent/muted color is used
 * only where it clears 4.5:1, per an in-browser contrast matrix of every scheme in
 * both themes (2026-10-06): accent paradiso-light 7.7 (s1) / 6.2 (s5) dark,
 * paradiso-dark 6.0 (s1) / 5.7 (s3) / 5.4 (s5) light; muted neutral-lighter
 * 5.0-14.2 (dark s1, s2, s3, s5; s2 both themes), neutral-dark 5.5-7.8 (light
 * s1, s3, s5, s6). Dark scheme-4 and light scheme-7 (#70AD9F) use dark text
 * since qo-design c97bcf7 (7.7:1), so their accent and muted are that text color.
 */
.scheme-1,
.scheme-2,
.scheme-3,
.scheme-4,
.scheme-5,
.scheme-6,
.scheme-7 {
	--qo-accent-text: var(--color-scheme-text);
	--qo-muted-text: var(--color-scheme-text);
}

.scheme-1,
.scheme-5 {
	--qo-accent-text: var(--color-paradiso-light);
	--qo-muted-text: var(--color-neutral-lighter);
}

.scheme-2,
.scheme-3 {
	--qo-muted-text: var(--color-neutral-lighter);
}

.theme-light.scheme-1,
.theme-light .scheme-1,
.theme-light .scheme-3,
.theme-light .scheme-5 {
	--qo-accent-text: var(--color-paradiso-dark);
	--qo-muted-text: var(--color-neutral-dark);
}

.theme-light .scheme-6 {
	--qo-muted-text: var(--color-neutral-dark);
}

/* Links in running text are underlined: on colored bands they share the text color. */
.elementor-widget-text-editor a,
.qo-scroll-story__text a,
.qo-scroll-story__intro a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/*
 * Tables in text (Text Editor widget), e.g. the privacy policy's CCPA table
 * (content/privacy-policy-ccpa-table.html, pasted unchanged from the old site, so
 * its Squarespace class names stay). Replaces Hello's reset borders and stripes;
 * colors follow the scheme. On phones the table fits the width instead of
 * scrolling: a scrolling box with nothing focusable in it fails axe.
 */
.elementor-widget-text-editor table {
	/* Header row and letter chips: a 10% tint of the band's text color. The scheme's
	   foreground surface is paradiso on #296E5F bands, where white text is only 4.2:1. */
	--qo-table-tint: color-mix(in srgb, var(--color-scheme-text) 10%, transparent);
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--color-scheme-text);
}

.elementor-widget-text-editor table th,
.elementor-widget-text-editor table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--color-scheme-border);
	background: transparent;
	text-align: left;
	vertical-align: top;
}

.elementor-widget-text-editor table tbody > tr:nth-child(odd) > td,
.elementor-widget-text-editor table tbody > tr:nth-child(odd) > th {
	background: transparent;
}

.elementor-widget-text-editor table tbody tr:last-child > * {
	border-bottom: 0;
}

.elementor-widget-text-editor table thead th {
	background: var(--qo-table-tint);
	color: var(--color-scheme-text);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.elementor-widget-text-editor .sq-table-wrap {
	margin: 1.5em 0;
	border: 1px solid var(--color-scheme-border);
	border-radius: var(--radius-card);
	overflow-x: auto;
}

.elementor-widget-text-editor .sq-table tbody td:first-child {
	width: 34%;
	font-weight: 500;
}

.elementor-widget-text-editor .sq-table tbody td:nth-child(2) {
	width: 52%;
	color: var(--qo-muted-text);
}

.elementor-widget-text-editor .sq-table tbody td:last-child,
.elementor-widget-text-editor .sq-table thead th:last-child {
	width: 14%;
	text-align: center;
}

.elementor-widget-text-editor .cat-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-right: 8px;
	border-radius: var(--radius-tag);
	background: color-mix(in srgb, var(--color-scheme-text) 10%, transparent);
	color: var(--color-scheme-text);
	font-size: 0.7rem;
	font-weight: 700;
	vertical-align: middle;
}

.elementor-widget-text-editor .legal-ref {
	display: block;
	margin-top: 2px;
	color: var(--qo-muted-text);
	font-size: 0.75rem;
	font-weight: 400;
}

/* "Yes" is filled with the text color, "No" is an outline: the word carries the meaning. */
.elementor-widget-text-editor .badge {
	display: inline-block;
	white-space: nowrap;
	padding: 2px 10px;
	border: 1px solid var(--color-scheme-text);
	border-radius: var(--radius-tag);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.elementor-widget-text-editor .badge.yes {
	background: var(--color-scheme-text);
	color: var(--color-scheme-background);
}

.elementor-widget-text-editor .badge.no {
	border-color: var(--color-scheme-border);
	background: transparent;
	color: var(--qo-muted-text);
}

@media (max-width: 767px) {
	/* Long words hyphenate (the page is lang="en-US") instead of widening the table. */
	.elementor-widget-text-editor table th,
	.elementor-widget-text-editor table td {
		padding: 8px;
		hyphens: auto;
		overflow-wrap: break-word;
	}

	.elementor-widget-text-editor table thead th {
		font-size: 0.65rem;
		letter-spacing: 0.02em;
		hyphens: none;
	}

	.elementor-widget-text-editor .sq-table tbody td:first-child,
	.elementor-widget-text-editor .sq-table tbody td:nth-child(2) {
		width: auto;
	}

	.elementor-widget-text-editor .cat-label {
		margin-right: 4px;
	}

	/* Code in a cell (cookie names like _ga_<container-id>) can't hyphenate; let it wrap
	   anywhere so the table still fits (it pushed the cookies table to 387px at 375). */
	.elementor-widget-text-editor table code {
		overflow-wrap: anywhere;
	}

	.elementor-widget-text-editor .badge {
		padding: 2px 6px;
	}
}

/* The smallest phones (320px): tighter cells so the table still fits without scrolling. */
@media (max-width: 359px) {
	.elementor-widget-text-editor table th,
	.elementor-widget-text-editor table td {
		padding: 8px 5px;
	}

	.elementor-widget-text-editor .badge {
		padding: 2px 4px;
	}
}

/*
 * Product screenshots (CONTINUUM UI): add the CSS class qo-product-shot to an Image
 * widget (Advanced → CSS Classes). Images stay square with no shadow (qo-design
 * layout-shape-motion.md); a 1px scheme border separates the dark product UI from
 * dark sections, where its edge otherwise disappears. The image fills its column,
 * so export at 2x the displayed width (editing guide §6). A radius, border or
 * shadow set in the widget's Style tab outranks this rule: leave those empty.
 */
.qo-product-shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--color-scheme-border);
	border-radius: var(--radius-card);
	box-shadow: none;
}

/*
 * Long-form text (Text Editor widget): headings typed inside the text get no Global
 * Font of their own, so map them to the kit's Global Fonts (Site Settings → Global
 * Fonts; IDs are staging's kit, like scripts/build-elementor-templates.mjs):
 * h2 = H5, h3 = H6, h4 = Eyebrow. Changing those fonts in Elementor changes these
 * headings too; the fallbacks apply only if a font is deleted. Paragraph and list
 * spacing applies only to long text (a block with headings, lists or a table), so
 * one-paragraph blocks on marketing pages keep Hello's spacing; the widget's
 * Paragraph Spacing control still overrides.
 */
.elementor-widget-text-editor h2 {
	margin: 2em 0 0.5em;
	font-family: var(--e-global-typography-e9a9862-font-family, "Inter Tight"), sans-serif;
	font-size: var(--e-global-typography-e9a9862-font-size, 1.5rem);
	font-weight: var(--e-global-typography-e9a9862-font-weight, 500);
	line-height: var(--e-global-typography-e9a9862-line-height, 1.4);
}

.elementor-widget-text-editor h3 {
	margin: 1.5em 0 0.4em;
	font-family: var(--e-global-typography-5a5e6e6-font-family, "Inter Tight"), sans-serif;
	font-size: var(--e-global-typography-5a5e6e6-font-size, 1.25rem);
	font-weight: var(--e-global-typography-5a5e6e6-font-weight, 500);
	line-height: var(--e-global-typography-5a5e6e6-line-height, 1.4);
}

.elementor-widget-text-editor h4 {
	margin: 1.25em 0 0.25em;
	font-family: var(--e-global-typography-21abcaa-font-family, "Inter"), sans-serif;
	font-size: var(--e-global-typography-21abcaa-font-size, 1.125rem);
	font-weight: var(--e-global-typography-21abcaa-font-weight, 600);
	line-height: var(--e-global-typography-21abcaa-line-height, 1.5);
}

.elementor-widget-text-editor:has(h2, h3, h4, ul, ol, table) :is(p, ul, ol) {
	margin: 0 0 1em;
}

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
	padding-inline-start: 1.5em;
}

.elementor-widget-text-editor li + li {
	margin-top: 0.35em;
}

/* No extra space at the edges of long text. */
.elementor-widget-text-editor :is(h2, h3, h4):first-child {
	margin-top: 0;
}

.elementor-widget-text-editor:has(h2, h3, h4, ul, ol, table) :is(p, ul, ol, .sq-table-wrap):last-child {
	margin-bottom: 0;
}

/*
 * Text styles (the Visual editor's Formats menu, functions.php): scheme colors,
 * so they work in light and dark on every band. The editor has no free text
 * color. Review mark flags draft wording and is removed before launch; the
 * bridge styles the hand-picked blue (#0000ff) marks made before the Formats
 * menu existed the same way, until they're removed.
 */
.elementor-widget-text-editor mark,
.elementor-widget-text-editor span[style*="color: #0000ff" i] {
	padding: 0 0.15em;
	border-bottom: 2px solid var(--qo-accent-text);
	/* 12%: on white-text bands the accent is white, and a stronger tint drops the
	   text below 4.5:1 (22% measured 3.75:1 on #296E5F). The underline carries the signal. */
	background: color-mix(in srgb, var(--qo-accent-text) 12%, transparent);
	color: var(--color-scheme-text) !important;
}

.elementor-widget-text-editor .qo-accent {
	color: var(--qo-accent-text);
}

.elementor-widget-text-editor .qo-muted {
	color: var(--qo-muted-text);
}

/*
 * Links and buttons. Replaces Hello's reset colors (#c36 pink fails WCAG AA
 * on the dark page). White on paradiso (#348A77) is only 4.2:1, so the
 * primary button uses paradiso-dark (6.0:1) in both themes.
 */
a {
	color: var(--qo-accent-text);
}

a:hover,
a:active {
	color: var(--color-scheme-text);
}

/*
 * Generic buttons (menu toggles, Elementor tab titles…): neutral, in the
 * scheme's colors. Replaces Hello's reset, which makes every button pink
 * (#c36), including on hover and focus.
 */
button,
[type="button"] {
	border: 1px solid var(--color-scheme-border);
	background-color: transparent;
	color: var(--color-scheme-text);
}

button:hover,
button:focus,
[type="button"]:hover,
[type="button"]:focus {
	background-color: transparent;
	color: var(--qo-accent-text);
}

/*
 * Primary buttons: form submits, .qo-button links and Elementor's Button widget.
 * Fluent Forms' submit is named too: its two classes outrank Elementor's kit
 * button styles and Fluent Forms' own base CSS.
 */
[type="submit"],
.fluentform .ff-btn-submit,
.qo-button,
.elementor .elementor-widget-button .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	border: 1px solid var(--color-paradiso-dark);
	border-radius: var(--radius-control); /* 6px; also covers link buttons like .qo-button */
	background-color: var(--color-paradiso-dark);
	color: var(--color-white);
	font-family: var(--font-body);
	font-weight: var(--qo-button-font-weight);
	text-decoration: none;
	cursor: pointer;
}

[type="submit"]:hover,
[type="submit"]:focus,
.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus,
.qo-button:hover,
.qo-button:focus,
.elementor .elementor-widget-button .elementor-button:hover,
.elementor .elementor-widget-button .elementor-button:focus {
	border-color: var(--color-paradiso-darker);
	background-color: var(--color-paradiso-darker);
	color: var(--color-white);
}

/*
 * Elementor Button variants: add the class in the widget's
 * Advanced → CSS Classes. Default (no class) is the primary button above.
 * The secondary outline also styles header actions set to "Secondary button"
 * (.qo-button.qo-button--secondary, Customize → Header).
 * Selectors carry .elementor-widget-button so they beat Elementor's kit
 * defaults (e.g. its accent green) whatever the "Disable Default Colors"
 * setting; colors set on an individual widget in Elementor still win.
 */
.qo-button.qo-button--secondary,
.elementor .elementor-widget-button.qo-button--secondary .elementor-button {
	border-color: var(--color-scheme-border);
	background-color: transparent;
	color: var(--color-scheme-text);
}

.qo-button.qo-button--secondary:hover,
.qo-button.qo-button--secondary:focus,
.elementor .elementor-widget-button.qo-button--secondary .elementor-button:hover,
.elementor .elementor-widget-button.qo-button--secondary .elementor-button:focus {
	border-color: var(--color-scheme-text);
	background-color: transparent;
	color: var(--color-scheme-text);
}

.elementor .elementor-widget-button.qo-button--link .elementor-button {
	padding: 0;
	border: 0;
	background-color: transparent;
	color: var(--qo-accent-text);
}

.elementor .elementor-widget-button.qo-button--link .elementor-button:hover,
.elementor .elementor-widget-button.qo-button--link .elementor-button:focus {
	border: 0;
	background-color: transparent;
	color: var(--color-scheme-text);
}

.elementor .elementor-widget-button.qo-button--link .elementor-button-text::after {
	content: " \203A"; /* › */
}

/*
 * Primary buttons on bands where their green (#296E5F) blends in: scheme-2
 * (#2D6068, both themes), dark scheme-3 (#00463B), and both sides of schemes
 * 4 and 7: #70AD9F (dark 4, light 7; edge 2.3:1) and #296E5F (dark 7, light 4;
 * the same color as the button). They switch to an outline in the band's text
 * color and invert on hover/focus (text-colored fill, band-colored text: 7.0:1
 * on scheme-2, 10.8:1 on dark scheme-3, 7.7:1 on #70AD9F, 6.0:1 on #296E5F).
 */
.scheme-2 .qo-button:not(.qo-button--secondary),
.scheme-2 [type="submit"],
.scheme-2 .fluentform .ff-btn-submit,
.scheme-2 .elementor-widget-button:not(.qo-button--secondary):not(.qo-button--link) .elementor-button,
body:not(.theme-light) .scheme-3 .qo-button:not(.qo-button--secondary),
body:not(.theme-light) .scheme-3 [type="submit"],
body:not(.theme-light) .scheme-3 .fluentform .ff-btn-submit,
body:not(.theme-light) .scheme-3 .elementor-widget-button:not(.qo-button--secondary):not(.qo-button--link) .elementor-button,
:is(.scheme-4, .scheme-7) .qo-button:not(.qo-button--secondary),
:is(.scheme-4, .scheme-7) [type="submit"],
:is(.scheme-4, .scheme-7) .fluentform .ff-btn-submit,
:is(.scheme-4, .scheme-7) .elementor-widget-button:not(.qo-button--secondary):not(.qo-button--link) .elementor-button {
	border-color: var(--color-scheme-text);
	background-color: transparent;
	color: var(--color-scheme-text);
}

.scheme-2 .qo-button:not(.qo-button--secondary):hover,
.scheme-2 .qo-button:not(.qo-button--secondary):focus,
.scheme-2 [type="submit"]:hover,
.scheme-2 [type="submit"]:focus,
.scheme-2 .fluentform .ff-btn-submit:hover,
.scheme-2 .fluentform .ff-btn-submit:focus,
.scheme-2 .elementor-widget-button:not(.qo-button--secondary):not(.qo-button--link) .elementor-button:hover,
.scheme-2 .elementor-widget-button:not(.qo-button--secondary):not(.qo-button--link) .elementor-button:focus,
body:not(.theme-light) .scheme-3 .qo-button:not(.qo-button--secondary):hover,
body:not(.theme-light) .scheme-3 .qo-button:not(.qo-button--secondary):focus,
body:not(.theme-light) .scheme-3 [type="submit"]:hover,
body:not(.theme-light) .scheme-3 [type="submit"]:focus,
body:not(.theme-light) .scheme-3 .fluentform .ff-btn-submit:hover,
body:not(.theme-light) .scheme-3 .fluentform .ff-btn-submit:focus,
body:not(.theme-light) .scheme-3 .elementor-widget-button:not(.qo-button--secondary):not(.qo-button--link) .elementor-button:hover,
body:not(.theme-light) .scheme-3 .elementor-widget-button:not(.qo-button--secondary):not(.qo-button--link) .elementor-button:focus,
:is(.scheme-4, .scheme-7) .qo-button:not(.qo-button--secondary):hover,
:is(.scheme-4, .scheme-7) .qo-button:not(.qo-button--secondary):focus,
:is(.scheme-4, .scheme-7) [type="submit"]:hover,
:is(.scheme-4, .scheme-7) [type="submit"]:focus,
:is(.scheme-4, .scheme-7) .fluentform .ff-btn-submit:hover,
:is(.scheme-4, .scheme-7) .fluentform .ff-btn-submit:focus,
:is(.scheme-4, .scheme-7) .elementor-widget-button:not(.qo-button--secondary):not(.qo-button--link) .elementor-button:hover,
:is(.scheme-4, .scheme-7) .elementor-widget-button:not(.qo-button--secondary):not(.qo-button--link) .elementor-button:focus {
	border-color: var(--color-scheme-text);
	background-color: var(--color-scheme-text);
	color: var(--color-scheme-background);
}

/*
 * Nested Tabs and Nested Accordion ship fixed colors that ignore schemes: gray
 * #f1f2f3 tabs, an active tab in the kit accent with white text (#00EBC7 on
 * staging: about 1.6:1), and #1f2124 accordion titles (unreadable on dark bands).
 * Point their variables at the scheme instead: inactive tabs are an outline in the
 * band's text color, the active tab is filled with it (contrast equals the band's
 * body text), accordion titles use the text color. Colors set on a widget in the
 * editor are more specific and still win.
 */
.elementor .elementor-widget-n-tabs {
	--n-tabs-title-color: var(--color-scheme-text);
	--n-tabs-title-color-hover: var(--color-scheme-text);
	--n-tabs-title-color-active: var(--color-scheme-background);
	--n-tabs-title-background-color: transparent;
	--n-tabs-title-background-color-hover: transparent;
	--n-tabs-title-background-color-active: var(--color-scheme-text);
	--n-tabs-icon-color: var(--color-scheme-text);
	--n-tabs-icon-color-hover: var(--color-scheme-text);
	--n-tabs-icon-color-active: var(--color-scheme-background);
	--n-tabs-border-color: var(--color-scheme-border);
	--n-tabs-title-border-radius: var(--radius-control);
}

.elementor .elementor-widget-n-tabs .e-n-tab-title {
	border: 1px solid var(--color-scheme-text);
}

.elementor .elementor-widget-n-tabs .e-n-tab-title[aria-selected="false"]:hover .e-n-tab-title-text {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.elementor .elementor-widget-n-accordion {
	--n-accordion-title-normal-color: var(--color-scheme-text);
	--n-accordion-title-hover-color: var(--color-scheme-text);
	--n-accordion-title-active-color: var(--color-scheme-text);
	--n-accordion-border-color: var(--color-scheme-border);
	/* Elementor's 10px title padding and touching items look cramped in a 112px section. */
	--n-accordion-padding: 16px 20px;
	--n-accordion-item-title-space-between: 8px;
}

/*
 * Section rhythm (docs/phase-2-build-guide.md §1, "Spacing"). An Elementor container
 * has one gap for all its children, so an eyebrow sits as far from its heading as the
 * heading from the text, and buttons as close to the text as two paragraphs. These
 * rules correct the spacing around them whatever gap the container has: --row-gap is
 * the parent container's gap, inherited by its widgets. Pages built before the rules
 * (and templates inserted as copies) pick them up too.
 */

/* An eyebrow (a heading widget with a <p> tag) sits 8px above the heading it labels. */
/* (:has() can't nest, so "the next heading" isn't checked for being an eyebrow too.) */
.elementor .elementor-widget-heading:has(p.elementor-heading-title):has(+ .elementor-widget-heading) {
	margin-block-end: calc(8px - var(--row-gap, 0px));
}

/* A row of buttons (a container that starts with a Button widget) sits 32px below what's above it. */
.elementor .e-con > .elementor-element:has(+ .e-con > .elementor-widget-button:first-child) {
	margin-block-end: calc(32px - var(--row-gap, 0px));
}

/*
 * Two sections with the same scheme in a row read as one band, with 224px of empty
 * space between them (112px bottom + 112px top). Drop the second one's top padding.
 * Better still, alternate schemes (guide §1 "Scheme rhythm").
 */
.elementor .e-con.e-parent.scheme-1 + .e-con.e-parent.scheme-1,
.elementor .e-con.e-parent.scheme-2 + .e-con.e-parent.scheme-2,
.elementor .e-con.e-parent.scheme-3 + .e-con.e-parent.scheme-3,
.elementor .e-con.e-parent.scheme-4 + .e-con.e-parent.scheme-4,
.elementor .e-con.e-parent.scheme-5 + .e-con.e-parent.scheme-5,
.elementor .e-con.e-parent.scheme-6 + .e-con.e-parent.scheme-6,
.elementor .e-con.e-parent.scheme-7 + .e-con.e-parent.scheme-7 {
	--padding-top: 0px;
}

/*
 * Elementor's inline SVG icons (Icon List checks, Icon Box…) have no fill of their
 * own once "Disable Default Colors" is on, so they fall back to SVG black and vanish
 * on dark bands. Default them to the text color; icon colors set in the editor are
 * more specific and still win.
 */
.elementor .e-font-icon-svg {
	fill: currentColor;
}

/* ---- Header ---- */

.qo-header {
	border-bottom: 1px solid var(--color-scheme-border);
}

/*
 * Content is at most 80rem (1280px) wide with a 5% gutter outside it, the same
 * as an Elementor boxed container (Width 1280px, padding 5% left/right) and
 * Relume's .container, so header, page sections and footer line up.
 */
.qo-header .header-inner,
.qo-footer .footer-inner {
	width: 100%;
	max-width: calc(80rem + 10%);
	margin-inline: auto;
	padding-inline: 5%;
}

.qo-header .header-inner {
	align-items: center;
	gap: 1rem 2rem;
}

.qo-logo {
	display: block;
}

.qo-logo img {
	display: block;
	width: auto;
	height: 40px; /* Customize → Header → Logo size: standard */
}

.qo-header .qo-logo--small img {
	height: 32px;
}

.qo-header .qo-logo--large img {
	height: 48px;
}

.qo-header .site-navigation {
	flex: 1;
	justify-content: center;
}

.qo-header .site-navigation ul.menu > li > a {
	color: var(--color-scheme-text);
	font-weight: 500;
}

.qo-header .site-navigation ul.menu > li > a:hover,
.qo-header .site-navigation ul.menu > li.current-menu-item > a {
	color: var(--qo-accent-text);
}

/*
 * Desktop dropdown: a thin chevron after the parent label (replaces Hello's
 * grey "▾"), and a plain list on the header's own background: no border, no
 * dividers, same weight and color as the top level. It floats over the page,
 * so it may cast a soft shadow (brand.md).
 */
.qo-header .site-navigation ul.menu > li.menu-item-has-children {
	padding-inline-end: 0;
}

.qo-header .site-navigation ul.menu > li.menu-item-has-children > a {
	padding-inline-end: calc(15px + 0.85rem);
}

.qo-header .site-navigation ul.menu > li.menu-item-has-children::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	inset-inline-end: 15px;
	width: 0.45rem;
	height: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	color: var(--color-scheme-text);
	font-size: 1rem;
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.qo-header .site-navigation ul.menu > li.menu-item-has-children:hover::after,
.qo-header .site-navigation ul.menu > li.menu-item-has-children:focus-within::after {
	transform: translateY(-20%) rotate(225deg);
}

.qo-header .site-navigation ul.menu > li.menu-item-has-children.qo-dismissed::after {
	transform: translateY(-70%) rotate(45deg);
}

.qo-header .site-navigation ul.menu li ul {
	min-width: 12rem;
	padding-block: 0.5rem;
	border: 0;
	background: var(--color-scheme-background);
	box-shadow: 0 12px 24px var(--color-neutral-darkest-15);
}

.qo-header .site-navigation ul.menu li ul li {
	border-block-end: 0;
}

/* Line the items up under the parent label. Hello right-aligns the last two items' panels to keep them on screen; the nav is centered, so a 12rem panel can't overflow here. */
.qo-header .site-navigation ul.menu > li > ul {
	inset-inline-start: 0;
	inset-inline-end: auto;
}

.qo-header .site-navigation ul.menu li ul a {
	color: var(--color-scheme-text);
	font-weight: 500;
}

.qo-header .site-navigation ul.menu li ul a:hover,
.qo-header .site-navigation ul.menu li ul a:focus {
	color: var(--qo-accent-text);
}

@media (prefers-reduced-motion: reduce) {
	.qo-header .site-navigation ul.menu > li.menu-item-has-children::after {
		transition: none;
	}
}

.qo-header .site-navigation ul.menu li.qo-dismissed > ul {
	display: none !important;
}

.qo-header-actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.qo-header-link {
	color: var(--color-scheme-text);
	font-weight: 500;
}

/* Mobile menu (Hello's toggle + dropdown), restyled to follow the scheme. */
.qo-header .site-navigation-toggle-holder .site-navigation-toggle {
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem;
	border: 1px solid var(--color-scheme-border);
	background-color: transparent;
	color: var(--color-scheme-text);
	border-radius: var(--radius-control);
}

.qo-header .site-navigation-dropdown ul.menu,
.qo-header .site-navigation-dropdown ul.menu li a,
.qo-dropdown-actions {
	background: var(--color-scheme-foreground);
	color: var(--color-scheme-text);
}

.qo-header .site-navigation-dropdown ul.menu li a {
	box-shadow: inset 0 -1px 0 var(--color-scheme-border);
}

.qo-header .site-navigation-dropdown ul.menu li.current-menu-item > a {
	background: var(--color-paradiso-dark);
	color: var(--color-white);
}

.qo-header .site-navigation-dropdown ul.menu li.menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
}

.qo-header .site-navigation-dropdown ul.menu li.menu-item-has-children > a {
	flex: 1;
}

.qo-header .site-navigation-dropdown ul.menu li.menu-item-has-children > ul {
	flex-basis: 100%;
}

.qo-submenu-toggle {
	width: 60px;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--color-scheme-border);
	border-radius: 0;
	background: var(--color-scheme-foreground);
	color: var(--color-scheme-text);
	box-shadow: inset 0 -1px 0 var(--color-scheme-border);
}

.qo-header .qo-submenu-toggle:hover,
.qo-header .qo-submenu-toggle:focus {
	background: var(--color-scheme-foreground);
	color: var(--qo-accent-text);
}

.qo-submenu-toggle span::before {
	content: "+";
	font-size: 1.5rem;
	line-height: 1;
}

.qo-submenu-toggle[aria-expanded="true"] span::before {
	content: "\2212"; /* minus sign */
}

.qo-dropdown-actions {
	position: relative;
	top: 100%;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem;
}

/* Hello hides both the desktop menu (max-width: 992px) and the toggle (min-width: 992px) at exactly 992px. */
@media (max-width: 992px) {
	.site-header.qo-header.menu-dropdown-tablet:not(.menu-layout-dropdown) .site-navigation-toggle-holder {
		display: flex !important;
	}

	.qo-header .qo-header-actions {
		display: none;
	}

	/*
	 * Hello anchors the panel with bottom: 0 and hangs an absolutely positioned
	 * menu list below it. The list is in normal flow here (so the actions follow
	 * it), so anchor the panel to the bottom of the header instead; otherwise it
	 * grows upward, off the top of the page.
	 */
	.qo-header .site-navigation-dropdown {
		top: 100%;
		bottom: auto;
		margin-block-start: 0;
		overflow-y: auto; /* Hello caps the open panel at 100vh. */
	}

	.qo-header .site-navigation-dropdown ul.menu {
		position: relative;
	}
}

@media (max-width: 767px) {
	/* At most 32px on phones, whatever the chosen size (max-height wins over the size classes). */
	.qo-logo img {
		max-height: 32px;
	}
}

/* ---- Footer ---- */

.qo-footer {
	padding-block: 4rem 2rem;
}

.qo-footer .footer-inner.qo-footer__grid {
	display: grid;
	grid-template-columns: 2fr repeat(3, 1fr);
	gap: 2.5rem;
}

.qo-footer .qo-logo img {
	height: 32px;
}

.qo-footer__tagline {
	margin: 1rem 0 0;
	/* Two balanced lines, not one long line across the brand column (about 440px wide). */
	max-width: 20rem;
	text-wrap: balance;
}

.qo-footer__newsletter {
	margin-top: 2rem;
	max-width: 28rem;
}

.qo-footer__heading {
	margin: 0 0 1rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.5;
}

.qo-footer ul.menu,
.qo-social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.qo-footer ul.menu li + li,
.qo-social li + li {
	margin-top: 0.75rem;
}

.qo-footer a {
	color: var(--qo-muted-text);
}

.qo-footer a:hover {
	color: var(--color-scheme-text);
}

.qo-social a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* No side padding, so the divider lines up with the columns above: 90% matches their 5% gutters. */
.qo-footer__legal {
	width: 90%;
	max-width: 80rem;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-scheme-border);
	font-size: 0.875rem;
}

.qo-footer__legal p,
.qo-footer__legal ul.menu {
	margin: 0;
}

.qo-footer__legal ul.menu {
	display: flex;
	gap: 1.5rem;
}

.qo-footer__legal ul.menu li + li {
	margin-top: 0;
}

@media (max-width: 991px) {
	.qo-footer .footer-inner.qo-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.qo-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 575px) {
	.qo-footer .footer-inner.qo-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Consent banner (Complianz) ---- */

/*
 * Complianz reads its colors and sizes from --cmplz_* variables, which its
 * generated banner CSS sets on :root from Complianz → Consent Banner → Colors.
 * Redefining them on body (always .scheme-1, plus .theme-light) puts the banner,
 * the "Manage consent" tab and the Cookie settings page in the scheme's colors
 * in both themes, so leave Complianz's own colors at their defaults. The banner
 * is a floating surface: foreground color, 1px border, square, and shadcn's
 * shadow-lg (qo-design layout-shape-motion.md: floating surfaces carry it).
 * Accept is the primary button (white on paradiso-dark, 6.0:1); the other
 * buttons are outlines. Switches use the scheme's accent and muted text (both
 * 4.5:1 or better on every scheme), with a background-colored knob.
 * Complianz's banner CSS loads after this file, so the overrides below carry
 * body or an ID to outrank its selectors.
 */
body {
	--cmplz_banner_background_color: var(--color-scheme-foreground);
	--cmplz_banner_border_color: var(--color-scheme-border);
	--cmplz_banner_border_width: 1px;
	--cmplz_banner_border_radius: var(--radius-card);
	--cmplz_text_color: var(--color-scheme-text);
	--cmplz_hyperlink_color: var(--qo-accent-text);
	--cmplz_title_font_size: 1rem;
	--cmplz_text_font_size: 0.875rem;
	--cmplz_text_line_height: 1.5;
	--cmplz_link_font_size: 0.875rem;
	--cmplz_category_body_font_size: 0.875rem;
	--cmplz_category_header_title_font_size: 0.875rem;
	--cmplz_category_header_active_font_size: 0.875rem;
	--cmplz_category_header_always_active_color: var(--qo-accent-text);
	--cmplz_button_font_size: 0.9375rem;
	--cmplz_button_border_radius: var(--radius-control);
	--cmplz_button_accept_background_color: var(--color-paradiso-dark);
	--cmplz_button_accept_border_color: var(--color-paradiso-dark);
	--cmplz_button_accept_text_color: var(--color-white);
	--cmplz_button_deny_background_color: transparent;
	--cmplz_button_deny_border_color: var(--color-scheme-border);
	--cmplz_button_deny_text_color: var(--color-scheme-text);
	--cmplz_button_settings_background_color: transparent;
	--cmplz_button_settings_border_color: var(--color-scheme-border);
	--cmplz_button_settings_text_color: var(--color-scheme-text);
	--cmplz_slider_active_color: var(--qo-accent-text);
	--cmplz_slider_inactive_color: var(--qo-muted-text);
	--cmplz_slider_bullet_color: var(--color-scheme-background);
}

body .cmplz-cookiebanner,
body .cmplz-cookiebanner.cmplz-show,
body .cmplz-cookiebanner.cmplz-show:hover,
body #cmplz-manage-consent .cmplz-manage-consent {
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Elementor's Site Settings → Buttons font (the heading font) reaches every <button>; the theme's buttons use the body font. */
body :is(.cmplz-cookiebanner, #cmplz-manage-consent, #cmplz-manage-consent-container) button {
	font-family: var(--font-body);
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:focus {
	border-color: var(--color-paradiso-darker);
	background-color: var(--color-paradiso-darker);
	color: var(--color-white);
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn:not(.cmplz-accept):hover,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn:not(.cmplz-accept):focus {
	border-color: var(--color-scheme-text);
	background-color: transparent;
	color: var(--color-scheme-text);
}

/* Category panels: Complianz's light-gray tint, replaced by the page surface. */
body .cmplz-cookiebanner .cmplz-categories .cmplz-category,
body #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category,
body :is(#cmplz-document, #cmplz-cookies-overview) .cmplz-dropdown,
body :is(#cmplz-document, #cmplz-cookies-overview) .cmplz-dropdown summary {
	background-color: var(--color-scheme-background);
	color: var(--color-scheme-text);
}

body .cmplz-cookiebanner .cmplz-categories .cmplz-category,
body #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category {
	border: 1px solid var(--color-scheme-border);
}

body #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header {
	background-color: transparent;
}

/*
 * Chevrons and the external-link icon: Complianz draws them dark (an unfilled
 * SVG, a black SVG background on the cookie list, and a dark PNG after links
 * that open in a new tab), which disappears on dark schemes. All take the text
 * color instead; the images become masks.
 */
body :is(.cmplz-cookiebanner, #cmplz-manage-consent-container) .cmplz-icon svg {
	fill: currentColor;
}

body :is(#cmplz-document, #cmplz-cookies-overview) .cmplz-dropdown summary div::after {
	background: currentColor;
	-webkit-mask: url("/wp-content/plugins/complianz-gdpr/assets/images/chevron-down.svg") no-repeat center / contain;
	mask: url("/wp-content/plugins/complianz-gdpr/assets/images/chevron-down.svg") no-repeat center / contain;
}

/* Complianz's own 10×10 icon (document.min.css), used as the mask. */
body #cmplz-document a[target="_blank"]::after {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	background-color: currentColor;
	-webkit-mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==") no-repeat center / contain;
	mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==") no-repeat center / contain;
}

/* The Cookie settings page uses native checkboxes. */
body #cmplz-manage-consent-container input.cmplz-consent-checkbox {
	accent-color: var(--qo-accent-text);
}

/* Cookie settings page: Complianz draws a black box around focused links; the theme's ring replaces it. */
body #cmplz-document a:focus {
	border: 0;
	padding: 0;
}

/* Switches: the theme's focus ring instead of Complianz's blue glow. */
:is(.cmplz-cookiebanner, #cmplz-manage-consent-container) .cmplz-banner-checkbox input.cmplz-consent-checkbox:focus + .cmplz-label::before {
	box-shadow: none;
}

:is(.cmplz-cookiebanner, #cmplz-manage-consent-container) .cmplz-banner-checkbox input.cmplz-consent-checkbox:focus-visible + .cmplz-label::before {
	outline: 2px solid var(--color-scheme-text);
	outline-offset: 2px;
}

/* Blocked embeds (YouTube before consent): the notice is a primary button, not a black overlay. */
body :is(.cmplz-blocked-content-container, .cmplz-wp-video) .cmplz-blocked-content-notice {
	border: 1px solid var(--color-paradiso-dark);
	border-radius: var(--radius-control);
	background-color: var(--color-paradiso-dark);
	color: var(--color-white);
	font-family: var(--font-body);
	font-weight: var(--qo-button-font-weight);
}

body :is(.cmplz-blocked-content-container, .cmplz-wp-video) .cmplz-blocked-content-notice:hover,
body :is(.cmplz-blocked-content-container, .cmplz-wp-video) .cmplz-blocked-content-notice:focus {
	border-color: var(--color-paradiso-darker);
	background-color: var(--color-paradiso-darker);
	color: var(--color-white);
}

/* ---- Cookie policy document (Complianz) ---- */

/*
 * The Cookie settings page is Complianz's document, rendered by a Shortcode
 * widget, so the long-form rules above (scoped to the Text Editor) don't reach
 * it, and Complianz's document CSS sets fixed sizes and colors by ID: 14px text,
 * an 800px column, H2 and H3 both 22px, and a cookie table of white cells on a
 * #dadada grid (its header row white on white in the dark theme). Restyle it as
 * long-form text, like the privacy policy: Body long-form text, H2/H3/H4 on the
 * H5/H6/Eyebrow Global Fonts, the page's 720px column (Pattern 22) instead of
 * Complianz's width, and scheme colors for the service dropdowns and the table.
 * Selectors carry body to outrank Complianz's #cmplz-document ones. Keep
 * Complianz → Settings → "Use document CSS" on: its dropdown layout needs it.
 */
body #cmplz-document {
	max-width: none;
	color: var(--color-scheme-text);
	font-family: var(--e-global-typography-4a7ee25-font-family, "Inter"), sans-serif;
	font-size: var(--e-global-typography-4a7ee25-font-size, 1.125rem);
	line-height: var(--e-global-typography-4a7ee25-line-height, 1.7);
}

body #cmplz-document :is(p, li, td) {
	margin: 0 0 1em;
	font-size: inherit;
	line-height: inherit;
}

body #cmplz-document h2 {
	margin: 2em 0 0.5em;
	padding: 0;
	border: 0;
	font-family: var(--e-global-typography-e9a9862-font-family, "Inter Tight"), sans-serif;
	font-size: var(--e-global-typography-e9a9862-font-size, 1.5rem);
	font-weight: var(--e-global-typography-e9a9862-font-weight, 500);
	line-height: var(--e-global-typography-e9a9862-line-height, 1.4);
}

body #cmplz-document h3 {
	margin: 1.5em 0 0.4em;
	padding: 0;
	border: 0;
	font-family: var(--e-global-typography-5a5e6e6-font-family, "Inter Tight"), sans-serif;
	font-size: var(--e-global-typography-5a5e6e6-font-size, 1.25rem);
	font-weight: var(--e-global-typography-5a5e6e6-font-weight, 500);
	line-height: var(--e-global-typography-5a5e6e6-line-height, 1.4);
}

body #cmplz-document h4 {
	margin: 1.25em 0 0.25em;
	font-family: var(--e-global-typography-21abcaa-font-family, "Inter"), sans-serif;
	font-size: var(--e-global-typography-21abcaa-font-size, 1.125rem);
	font-weight: var(--e-global-typography-21abcaa-font-weight, 600);
	line-height: var(--e-global-typography-21abcaa-line-height, 1.5);
}

body #cmplz-document :is(ul, ol) {
	margin: 0 0 1em;
	padding-inline-start: 1.5em;
}

body #cmplz-document li + li {
	margin-top: 0.35em;
}

/* Service dropdowns: a 10% tint of the band's text color (as the theme's table headers), 1px scheme border. */
body #cmplz-document .cmplz-dropdown {
	--qo-doc-tint: color-mix(in srgb, var(--color-scheme-text) 10%, var(--color-scheme-background));
	margin: 0 0 0.75rem;
	border: 1px solid var(--color-scheme-border);
	background-color: transparent;
	color: var(--color-scheme-text);
}

body #cmplz-document .cmplz-dropdown summary {
	margin: 0;
	padding: 0.75rem 1rem;
	background-color: var(--qo-doc-tint);
	color: var(--color-scheme-text);
}

/* The service name in the summary is a list label, not a section heading. */
body #cmplz-document .cmplz-dropdown summary h3 {
	margin: 0;
	font-size: 1.125rem;
}

body #cmplz-document .cmplz-dropdown summary p {
	margin: 0;
	font-size: 0.875rem;
}

body #cmplz-document .cmplz-dropdown :is(.cmplz-service-description, .cmplz-sharing-data, .cookies-per-purpose) {
	margin: 1rem;
}

body #cmplz-document .cmplz-dropdown :is(.cmplz-service-description, .cmplz-sharing-data) p {
	font-size: 1rem;
}

/* Cookie table: the 1px gaps of the grid draw the lines in the scheme's border color. */
body #cmplz-document .cmplz-dropdown .cookies-per-purpose {
	border: 1px solid var(--color-scheme-border);
	background-color: var(--color-scheme-border);
}

body #cmplz-document .cmplz-dropdown .cookies-per-purpose div {
	padding: 0.75rem 1rem;
	background-color: var(--color-scheme-background);
	color: var(--color-scheme-text);
	font-size: 0.9rem;
}

body #cmplz-document .cmplz-dropdown .cookies-per-purpose :is(.purpose, .name-header, .retention-header, .function-header) {
	background-color: var(--qo-doc-tint);
}

body #cmplz-document .cmplz-dropdown .cookies-per-purpose :is(h4, h5) {
	margin: 0;
	color: var(--color-scheme-text);
}

body #cmplz-document .cmplz-dropdown .cookies-per-purpose h5 {
	font-size: 0.75rem;
	font-weight: 600;
}

/* ---- Forms (Fluent Forms) ---- */

/*
 * Every Fluent Form takes the scheme of the band it sits in, in both themes;
 * leave Fluent Forms' own colors and styler at their defaults. functions.php
 * turns off its default stylesheet and per-form submit colors (the submit is a
 * primary button, under "Links and buttons"). Its base stylesheet still colors
 * a few parts through --fluentform-* variables, redefined here on the wrapper
 * so they resolve against the band, not the body. Inspected against Fluent
 * Forms 6.2.15. That CSS can load before this file (in the head when a form is
 * in the page content) or after it (enqueued late, e.g. by the footer
 * newsletter), so the rules below carry body to outrank its selectors.
 *
 * Field borders use the muted text color, not --color-scheme-border: inputs
 * need 3:1 against the band (WCAG 1.4.11), and the 15-20% border tint is about
 * 1.6:1; muted text is 4.5:1 or better on every scheme. Errors are in the text
 * color with a heavier border, not red: the message says what's wrong, and
 * --status-critical isn't contrast-checked on the colored bands.
 */
.fluentform {
	--fluentform-primary: var(--color-paradiso-dark);
	--fluentform-secondary: var(--qo-muted-text);
	--fluentform-danger: var(--color-scheme-text);
	--fluentform-border-color: var(--qo-muted-text);
	--fluentform-border-radius: var(--radius-control);
}

body .fluentform .ff-el-input--label label,
body .fluentform .ff-el-form-check-label {
	color: var(--color-scheme-text);
}

body .fluentform .ff-el-input--label label {
	font-weight: 500;
}

/* Label above its field: 0.5rem (shadcn's form item gap-2; Fluent Forms has 5px). Left/right label layouts keep their own spacing. */
body .fluentform .ff-el-input--label {
	margin-bottom: 0.5rem;
}

body .fluentform .ff-el-form-control {
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--qo-muted-text);
	border-radius: var(--radius-control);
	background-color: var(--color-scheme-background); /* not transparent: select menus take it */
	color: var(--color-scheme-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 0.15s ease-in-out;
}

body .fluentform .ff-el-form-control:focus {
	border-color: var(--color-scheme-text);
	background-color: var(--color-scheme-background);
	color: var(--color-scheme-text);
}

body .fluentform .ff-el-form-control::placeholder {
	color: var(--qo-muted-text);
	opacity: 1;
}

body .fluentform .ff-el-form-control:disabled,
body .fluentform .ff-el-form-control[readonly]:not(.flatpickr-input) {
	background-color: var(--color-scheme-background);
	border-style: dashed;
}

body .fluentform .ff-el-form-check-input {
	accent-color: var(--qo-accent-text);
}

/*
 * Checkbox and radio options (not the Button type layout below): Fluent Forms
 * sets their labels to line-height 1, so a label that wraps (an opt-in
 * sentence) runs its lines together, and the box sits on the baseline apart
 * from the text. Put box and text side by side, the box centered on the first
 * line of text, with body line height.
 */
body .fluentform .ff-el-group:not(.ff_list_buttons) .ff-el-form-check-label {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.625rem;
	line-height: 1.5;
}

body .fluentform .ff-el-group:not(.ff_list_buttons) .ff-el-form-check-label > .ff-el-form-check-input {
	flex: none;
	width: 1rem;
	height: 1rem;
	margin: 0.25rem 0 0; /* (1.5em line - 1rem box) / 2 at 16px text */
	top: 0; /* Fluent Forms nudges the box up 2px for its inline layout */
}

/*
 * Radio and checkbox fields with the Button type layout: each option is its
 * own button like Submit, not Fluent Forms' joined blue-and-white bar.
 * Unselected options are outlines (muted border, 3:1; text color), the
 * selected one is the primary button, switching to the inverted outline style
 * on the bands where the green fill blends in (as for Submit, under "Links and
 * buttons"). Selection is read from the input (:checked), not Fluent Forms'
 * script class. Selectors carry .ff-el-input--content to outrank Fluent
 * Forms' (0,5,2) rules in either load order.
 */
body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content > :not(.ff-el-form-check) {
	flex-basis: 100%; /* the error message goes under the buttons, */
	margin-top: -0.25rem; /* 4px below them, as under a field (the row gap is 8px) */
}

body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check {
	margin: 0;
}

body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check .ff-el-form-check-label > span {
	padding: 0.625rem 1.25rem;
	border: 1px solid var(--qo-muted-text);
	border-radius: var(--radius-control);
	background-color: transparent;
	box-shadow: none;
	color: var(--color-scheme-text);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: var(--qo-button-font-weight);
	line-height: 1.5;
}

body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check .ff-el-form-check-label > span:hover {
	border-color: var(--color-scheme-text);
	color: var(--color-scheme-text);
}

body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span,
body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span:hover {
	border-color: var(--color-paradiso-dark);
	background-color: var(--color-paradiso-dark);
	color: var(--color-white);
}

body .scheme-2 .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span,
body .scheme-2 .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span:hover,
body:not(.theme-light) .scheme-3 .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span,
body:not(.theme-light) .scheme-3 .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span:hover,
body :is(.scheme-4, .scheme-7) .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span,
body :is(.scheme-4, .scheme-7) .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span:hover {
	border-color: var(--color-scheme-text);
	background-color: var(--color-scheme-text);
	color: var(--color-scheme-background);
}

/*
 * Unanswered required choice: the options take the invalid-field border, 2px
 * in the text color. A real 2px border with 1px less padding keeps the size
 * (Fluent Forms forces box-shadow: none on the first option, so no inset).
 */
body .fluentform .ff-el-group.ff_list_buttons.ff-el-is-error .ff-el-input--content .ff-el-form-check .ff-el-form-check-label > span {
	padding: calc(0.625rem - 1px) calc(1.25rem - 1px);
	border: 2px solid var(--color-scheme-text);
}

/* The input is hidden, so its keyboard focus ring goes on the button. */
body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:focus-visible + span {
	outline: 2px solid var(--color-scheme-text);
	outline-offset: 2px;
}

/* Phones: the buttons wrap as on desktop. Fluent Forms' phone rule forces its border and radius with !important, so these must too. */
@media (max-width: 768px) {
	body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check .ff-el-form-check-label > span {
		border: 1px solid var(--qo-muted-text) !important;
		border-radius: var(--radius-control) !important;
	}

	body .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span {
		border-color: var(--color-paradiso-dark) !important;
	}

	body .fluentform .ff-el-group.ff_list_buttons.ff-el-is-error .ff-el-input--content .ff-el-form-check .ff-el-form-check-label > span {
		border: 2px solid var(--color-scheme-text) !important;
	}

	body .scheme-2 .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span,
	body:not(.theme-light) .scheme-3 .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span,
	body :is(.scheme-4, .scheme-7) .fluentform .ff-el-group.ff_list_buttons .ff-el-input--content .ff-el-form-check input:checked + span {
		border-color: var(--color-scheme-text) !important;
	}
}

body .fluentform .ff-el-help-message {
	color: var(--qo-muted-text);
	font-size: 0.875rem;
	font-style: normal;
}

/* Invalid fields: a 2px border in the text color (the inset shadow adds the second pixel without shifting the layout). */
body .fluentform .ff-el-is-error .ff-el-form-control,
body .fluentform .ff-el-form-control[aria-invalid="true"] {
	border-color: var(--color-scheme-text);
	box-shadow: inset 0 0 0 1px var(--color-scheme-text);
}

body .fluentform .text-danger,
body .fluentform .ff-el-is-error .text-danger,
body .fluentform .ff-el-is-error .ff-el-form-check-label {
	color: var(--color-scheme-text);
	font-size: 0.875rem;
	font-weight: 500;
}

/*
 * Confirmation after submit: plain text on the band, where the form was. No
 * border, panel or shadow (Brett, 2026-11-06: the outlined box read as a
 * stray white frame on the dark bands).
 */
body .fluentform .ff-message-success {
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	box-shadow: none;
	color: var(--color-scheme-text);
}

body .fluentform .ff-el-section-break hr {
	background-color: var(--color-scheme-border);
}

/*
 * Fluent Forms' preview page: the form takes the page scheme from <html>
 * (functions.php) but sits on Fluent Forms' white card, so it paints the page
 * background itself: white in light, a dark inset panel in dark.
 */
body.ff-form-preview-body .ff_form_preview .fluentform {
	padding: 1.5rem;
	background-color: var(--color-scheme-background);
	color: var(--color-scheme-text);
}

/* ---- Booking calendar (Fluent Booking field in a Fluent Form) ---- */

/*
 * The FluentBooking field takes the scheme of the band it sits in, in both
 * themes, like the rest of the form. Fluent Booking colors everything through
 * --fcal_* variables that its script writes on :root at load time; setting them
 * on the field's wrapper wins for everything inside it. Leave Fluent Booking's
 * global Theme, Primary Color and Color Schema at their defaults: they're fixed
 * colors. Inspected against Fluent Booking 2.6.0 (Svelte markup: .fcal_*,
 * .calendar, .day, .svelte-select). A few of its rules hard-code colors or use
 * !important; the overrides below carry body and match them.
 */
.fluentform_calendar_app {
	--fcal_primary_color: var(--color-paradiso-dark); /* selected day, hover, "View next month": white text 6.0:1 */
	--fcal_primaryColor: var(--color-paradiso-dark);
	--fcal_whiteColor: var(--color-white); /* text on the primary color */
	--fcal_dark: var(--color-scheme-text);
	--fcal_gray: var(--qo-muted-text);
	--fcal_cal_bg: var(--color-scheme-background);
	--fcal_body_bg: var(--color-scheme-background);
	--fcal_input_bg: var(--color-scheme-background);
	--fcal_input_disable_bg: color-mix(in srgb, var(--color-scheme-text) 10%, transparent);
	--fcal_slot_border: var(--qo-muted-text); /* controls need 3:1 (WCAG 1.4.11), as form fields */
	--fcal_enable_day_bg: color-mix(in srgb, var(--color-scheme-text) 10%, transparent);
	--fcal_date_disabled_bg: transparent;
	--fcal_date_disabled_color: var(--qo-muted-text);
	--fcal_thBG: color-mix(in srgb, var(--color-scheme-text) 10%, transparent);
	--fcal_scroll_bar_bg: var(--qo-muted-text);
	--fcal_skeleton_bg: linear-gradient(90deg, color-mix(in srgb, var(--color-scheme-text) 8%, transparent) 25%, color-mix(in srgb, var(--color-scheme-text) 14%, transparent) 37%, color-mix(in srgb, var(--color-scheme-text) 8%, transparent) 63%);
	--fcal_date_radius: var(--radius-control);
	font-family: var(--font-body);
}

/* Bands where the primary green blends in (as the primary button, "Links and buttons"): the text color fills instead. */
.scheme-2 .fluentform_calendar_app,
body:not(.theme-light) .scheme-3 .fluentform_calendar_app,
:is(.scheme-4, .scheme-7) .fluentform_calendar_app {
	--fcal_primary_color: var(--color-scheme-text);
	--fcal_primaryColor: var(--color-scheme-text);
	--fcal_whiteColor: var(--color-scheme-background);
}

/* Elementor's kit button font (the heading font) reaches every <button>; the calendar uses the body font. */
body .fluentform_calendar_app button,
body .fluentform_calendar_app input {
	font-family: var(--font-body);
}

/* The panel: outlined, with room inside. Fluent Booking removes the border with !important. */
body .fluentform_calendar_app.fcal_not_showing_host .fcal_calendar_inner {
	border: 1px solid var(--color-scheme-border) !important;
	border-radius: var(--radius-card);
	background-color: transparent;
}

/*
 * Full width: Fluent Booking sizes the calendar for a host panel beside it
 * (calc(100% - 240px) once a day is picked) even when the field hides the host,
 * and lets the month shrink to its content. The day picker must not shrink:
 * on phones the summary panel sits beside it in the same row, and the row
 * slides by a negative margin.
 */
body .fluentform_calendar_app.fcal_not_showing_host .fcal_calendar_inner .fcal_date_wrapper {
	flex: 1 1 auto;
	width: 100%;
}

body .fluentform_calendar_app.fcal_not_showing_host .fcal_calendar_inner .fcal_day_picker_wrap {
	flex: 0 0 auto;
	width: 100%;
}

body .fluentform_calendar_app.fcal_not_showing_host .fcal_calendar_inner .calendar-container {
	flex: 1 1 auto;
	width: 100%;
	padding: 1.25rem 1.5rem 1.5rem;
}

/* Phones: Fluent Booking zeroes the side padding; the month keeps 1rem from the border. */
body .fluentform_calendar_app .fcal_calendar_inner.fcal_on_xs.fcal_form_calendar .fcal_date_wrapper .fcal_day_picker_wrap .fcal_calendar_slot_wrap .calendar-container {
	padding-right: 1rem;
	padding-left: 1rem;
}

body .fluentform_calendar_app .calendar-header .calendar-month-year h4 {
	font-weight: 500;
}

body .fluentform_calendar_app .calendar-header .calendar_nav {
	gap: 0.25rem;
}

body .fluentform_calendar_app .calendar-header .calendar_nav button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0.5rem;
	border-radius: var(--radius-control);
	color: var(--color-scheme-text);
}

body .fluentform_calendar_app .calendar-header .calendar_nav button:hover {
	background-color: color-mix(in srgb, var(--color-scheme-text) 10%, transparent);
	color: var(--color-scheme-text);
}

/*
 * The day grid spans the field: Fluent Booking caps its seven columns at 3rem
 * and makes each day a square as wide as its column. Here the columns share the
 * width and each day is a 2.75rem square (a 44px target) in its cell; on the
 * narrowest phones it narrows to the column and keeps its height.
 */
body .fluentform_calendar_app .calendar {
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.25rem;
}

body .fluentform_calendar_app .fcal_date_wrapper .calendar .day {
	height: 2.75rem;
	padding-top: 0 !important;
}

body .fluentform_calendar_app .fcal_date_wrapper .calendar .day > span {
	width: min(100%, 2.75rem);
	height: 2.75rem;
	margin: auto;
}

body .fluentform_calendar_app .fcal_date_wrapper .calendar .day-name {
	color: var(--qo-muted-text);
	font-size: 0.75rem;
}

/* Fluent Booking writes white text on the selected and hovered day. */
body .fluentform_calendar_app .fcal_date_wrapper .calendar .day.day-enabled:hover span,
body .fluentform_calendar_app .fcal_date_wrapper .calendar .day.day_is_selected.day-enabled span {
	color: var(--fcal_whiteColor);
}

body .fluentform_calendar_app .fcal_date_wrapper .calendar .day.day-enabled.day_is_selected span::before {
	background: var(--fcal_whiteColor);
}

/* Today (never bookable, 24-hour notice): its number stays the day's color; the dot is the accent. */
body .fluentform_calendar_app .fcal_date_wrapper .calendar .day .is-today {
	color: inherit;
}

body .fluentform_calendar_app .fcal_date_wrapper .calendar .day .is-today::before {
	background: var(--qo-accent-text);
}

body .fluentform_calendar_app .fcal_timezone_select {
	margin-top: 1.25rem;
}

body .fluentform_calendar_app .fcal_timezone_select label {
	margin-bottom: 0.5rem;
	color: var(--color-scheme-text);
	font-weight: 500;
}

body .fluentform_calendar_app .svelte-select {
	width: 100%;
	max-width: 20rem;
	border-radius: var(--radius-control) !important;
	color: var(--color-scheme-text);
}

body .fluentform_calendar_app .svelte-select .svelte-select-list {
	border-radius: var(--radius-control);
}

/* "No availability in …": a card centered over the grid; its button is a primary button. */
body .fluentform_calendar_app .fcal_no_availability {
	left: 50%;
	transform: translateX(-50%);
	border-color: var(--color-scheme-border);
	border-radius: var(--radius-card);
}

body .fluentform_calendar_app .fcal_no_availability h3 {
	margin: 0;
	color: var(--color-scheme-text);
	font-family: var(--font-body);
}

body .fluentform_calendar_app .fcal_no_availability button {
	height: auto;
	padding: 0.625rem 1.25rem;
	border-radius: var(--radius-control);
	font-weight: var(--qo-button-font-weight);
}

body .fluentform_calendar_app .fcal_no_availability button:hover,
body .fluentform_calendar_app .fcal_no_availability button:focus {
	background-color: var(--color-paradiso-darker);
	color: var(--color-white);
}

body :is(.scheme-2, .scheme-4, .scheme-7) .fluentform_calendar_app .fcal_no_availability button:hover,
body:not(.theme-light) .scheme-3 .fluentform_calendar_app .fcal_no_availability button:hover {
	background-color: var(--fcal_primary_color);
	color: var(--fcal_whiteColor);
}

/* Time slots: outlined like form fields; the time takes the accent on hover (the primary green is too dark as text on dark bands). */
body .fluentform_calendar_app .fcal_slot_picker .fcal_slot_picker_header {
	padding: 1.25rem 0 1rem;
}

body .fluentform_calendar_app .fcal_slot_picker .fcal_spot_lists .fcal_spot {
	border-radius: var(--radius-control);
}

body .fluentform_calendar_app .fcal_slot_picker .fcal_spot_lists .fcal_spot + .fcal_spot {
	margin-top: 0.75rem;
}

body .fluentform_calendar_app .fcal_slot_picker .fcal_spot_lists .fcal_spot .fcal_spot_name {
	color: var(--color-scheme-text);
	font-size: 1rem;
	font-weight: 500;
}

body .fluentform_calendar_app .fcal_slot_picker .fcal_spot_lists .fcal_spot:hover {
	border-color: var(--qo-accent-text);
}

body .fluentform_calendar_app .fcal_slot_picker .fcal_spot_lists .fcal_spot:hover .fcal_spot_name,
body .fluentform_calendar_app .fcal_slot_picker .fcal_spot_lists .fcal_spot:hover .fcal_spot_name .fcal_spot_time {
	color: var(--qo-accent-text);
}

body .fluentform_calendar_app .fcal_slot_picker .fcal_slot_picker_header .fcal_back .fcal_svg {
	border-color: var(--qo-muted-text);
	color: var(--color-scheme-text);
}

body .fluentform_calendar_app .fcal_slot_picker .fcal_slot_picker_header .fcal_back svg path:nth-child(2) {
	fill: currentColor;
}

/* The 12h/24h switch: the chosen format is filled with a 10% tint of the text color. */
body .fluentform_calendar_app .fcal_slot_picker .fcal_slot_picker_header .fcal_slot_picker_header_action {
	border-color: var(--color-scheme-border);
	border-radius: var(--radius-control);
}

body .fluentform_calendar_app .fcal_slot_picker .fcal_slot_picker_header .fcal_slot_picker_header_action .format-hour button {
	border-radius: calc(var(--radius-control) - 2px);
	color: var(--color-scheme-text);
}

body .fluentform_calendar_app .fcal_slot_picker .fcal_slot_picker_header .fcal_slot_picker_header_action .format-hour button.active {
	background: color-mix(in srgb, var(--color-scheme-text) 10%, transparent);
	color: var(--color-scheme-text);
}

/* "Confirm Time" beside the chosen slot: Fluent Booking writes white text on it. */
body .fluentform_calendar_app .fcal_slot_picker .fcal_spot_lists .fcal_spot .fcal_spot_confirm {
	border-radius: calc(var(--radius-control) - 2px);
	color: var(--fcal_whiteColor);
}

/*
 * Summary step: no scrollbar, so the panel height can settle. Fluent Booking
 * sizes the panel in JS (summary height + 135px, plus any overflow) and re-runs
 * that from a ResizeObserver on the summary. Where scrollbars take space
 * (Windows), the 15px scrollbar that appears while the height settles narrows
 * the summary, which re-triggers the observer, which clears the height, and the
 * panel jitters a few pixels every frame (Brave and Chrome on Windows,
 * 2026-11-06). The script still measures the overflow (scrollHeight works with
 * overflow hidden) and grows the panel to fit, so nothing is clipped. Verified
 * in Chrome with real scrollbars at 1440, 1512@1.5x and 390@3x: one stable
 * height, zero overflow. Inspected against Fluent Booking 2.6.0
 * (assets/public/js/fluentform.js).
 */
body .fluentform_calendar_app .fcal_calendar_inner.fcal_spot_selected .fcal_date_event_details.is_active {
	overflow-y: hidden;
}

/* Summary after a time is chosen: its table is hard-coded light gray; it takes the band's tint and border instead. */
body .fluentform_calendar_app .fcal_date_wrapper .fcal_date_event_details .fcal_date_event_details_header h3 {
	color: var(--color-scheme-text);
	font-size: 1.125rem;
	font-weight: 500;
}

body .fluentform_calendar_app .fcal_date_wrapper .fcal_date_event_details .fcal_date_event_details_header {
	border-bottom-color: var(--color-scheme-border);
}

body .fluentform_calendar_app .fcal_date_wrapper .fcal_date_event_details .fcal_date_event_details_header .fcal_back button.fcal_svg {
	border-color: var(--qo-muted-text);
}

body .fluentform_calendar_app .fcal_date_wrapper .fcal_date_event_details .fcal_form_booking_details table {
	border-color: var(--color-scheme-border);
	border-radius: var(--radius-control);
}

body .fluentform_calendar_app .fcal_date_wrapper .fcal_date_event_details .fcal_form_booking_details table tr th {
	border-bottom-color: var(--color-scheme-border);
	background: color-mix(in srgb, var(--color-scheme-text) 10%, transparent);
	color: var(--color-scheme-text);
}

body .fluentform_calendar_app .fcal_date_wrapper .fcal_date_event_details .fcal_form_booking_details table tr td {
	border-bottom-color: var(--color-scheme-border);
	background: transparent;
	color: var(--color-scheme-text);
}

/* Phones: the summary keeps 1rem from the panel border too. */
body .fluentform_calendar_app .fcal_calendar_inner.fcal_on_xs.fcal_form_calendar .fcal_date_event_details.is_active {
	padding-right: 1rem;
	padding-left: 1rem;
}

/*
 * Maintenance Mode template (elementor/templates/pages/maintenance.json): the lockup sits in an
 * HTML widget so the import leaves the theme's synced file alone. Same size and spacing as the
 * wp-content/maintenance.php drop-in.
 */
.qo-maintenance-lockup {
	display: block;
	width: auto;
	height: 48px;
	margin-bottom: 40px;
}
