/*
 * Sections and block styles for ordinary pages (B166, 0.27.0).
 *
 * Fasit: mockup-seksjoner-sidemaler-2026-09-29 (wp-tema-arkitektur). Every
 * colour, radius and font comes from ui-core's tokens under `.ut-ui`, so the
 * sections follow the node's brand (B162) and the theme adds no colour
 * values of its own. Block styles are registered in includes/class-sections.php;
 * the class names below (`is-style-ut-th-*`) are stored in page content and
 * are therefore public. Loaded after frame.css, on the front end and in the
 * editor canvas.
 */

/* ------------------------------------------------------------------ */
/* Section bands: a full-width group, content at 76rem or 48rem.       */
/* ------------------------------------------------------------------ */

.wp-block-group.ut-th-section {
	margin-block: 0;
	padding-block: 3.5rem;
}

.wp-block-group.ut-th-section.ut-th-section--tight {
	padding-block-start: 1rem;
}

/* A section's own text rhythm; the prose rules in frame.css are for articles. */
.ut-th-section :is(p, ul, ol, .wp-block-buttons) {
	margin-block: 0 1rem;
}

.ut-th-section :is(p, ul, ol, .wp-block-buttons):last-child {
	margin-block-end: 0;
}

.ut-th-section h2.wp-block-heading {
	margin-block: 0 0.625rem;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.ut-th-section h3.wp-block-heading {
	margin-block: 0 0.375rem;
	line-height: 1.25;
}

.ut-th-section .ut-th-lead,
.ut-th-page-lead {
	max-width: 58ch;
	color: var(--ut-content-muted);
}

.ut-th-section p.ut-th-lead {
	margin-block-end: 1.75rem;
}

.ut-th-section-inner > :first-child,
.ut-th-section > :first-child {
	margin-block-start: 0;
}

.ut-th-section .wp-block-columns {
	margin-block: 0;
	column-gap: 2.5rem;
	row-gap: 1.5rem;
}

/* The lead paragraph right under the template's page title. */
.wp-block-group.ut-th-page-intro {
	margin-block-end: 0;
}

.ut-th-page-intro p.ut-th-page-lead {
	margin: 0;
}

/* «Read more» link with an arrow (Lucide arrow-right, drawn with currentColor). */
.ut-th-more a {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-weight: 600;
	text-decoration: none;
}

.ut-th-more a:hover {
	text-decoration: underline;
}

.ut-th-more a::after {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ut-th-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ut-brand);
}

/* ------------------------------------------------------------------ */
/* Group styles: Soft surface, Dark surface                            */
/* ------------------------------------------------------------------ */

.wp-block-group.is-style-ut-th-soft {
	background: var(--ut-brand-surface);
	color: var(--ut-content);
}

.wp-block-group.is-style-ut-th-dark {
	background: var(--ut-brand-strong);
	color: var(--ut-on-brand);
}

.wp-block-group.is-style-ut-th-dark p {
	color: color-mix(in srgb, var(--ut-on-brand) 88%, transparent);
}

.wp-block-group.is-style-ut-th-dark a:not(.wp-block-button__link) {
	color: var(--ut-on-brand);
}

/* The same styles on a group that is not a full-width band. */
.wp-block-group:is(.is-style-ut-th-soft, .is-style-ut-th-dark):not(.alignfull) {
	padding: 1.5rem;
	border-radius: var(--ut-radius-container);
}

.wp-block-group:is(.is-style-ut-th-soft, .is-style-ut-th-dark).alignfull:not(.ut-th-section) {
	padding-block: 3.5rem;
}

/* ------------------------------------------------------------------ */
/* Group styles: Card, Highlighted card                                */
/* ------------------------------------------------------------------ */

.wp-block-group:is(.is-style-ut-th-card, .is-style-ut-th-card-highlight) {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	background: var(--ut-surface);
	color: var(--ut-content);
	border: 1px solid var(--ut-border);
	border-radius: var(--ut-radius-container);
}

.wp-block-group:is(.is-style-ut-th-card, .is-style-ut-th-card-highlight) > * {
	margin-block: 0;
}

.wp-block-group:is(.is-style-ut-th-card, .is-style-ut-th-card-highlight) > * + * {
	margin-block-start: 0.5rem;
}

.wp-block-group:is(.is-style-ut-th-card, .is-style-ut-th-card-highlight) > .ut-th-icon + * {
	margin-block-start: 1rem;
}

.wp-block-group:is(.is-style-ut-th-card, .is-style-ut-th-card-highlight) p {
	color: var(--ut-content-muted);
}

/* The link or buttons at the end sit at the bottom, so cards in a row line up. */
.wp-block-group:is(.is-style-ut-th-card, .is-style-ut-th-card-highlight) > :is(.ut-th-more, .wp-block-buttons):last-child {
	margin-block-start: auto;
	padding-block-start: 0.875rem;
}

.wp-block-group:is(.is-style-ut-th-card, .is-style-ut-th-card-highlight) > p.ut-th-eyebrow {
	color: var(--ut-brand);
}

.wp-block-group:is(.is-style-ut-th-card, .is-style-ut-th-card-highlight) > p.ut-th-price {
	margin-block: 0.25rem 0.5rem;
	color: var(--ut-content-muted);
	font-size: 0.9375rem;
}

.ut-th-price strong {
	margin-inline-end: 0.25rem;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ut-content);
}

.wp-block-group.is-style-ut-th-card-highlight {
	background: var(--ut-brand-strong);
	border-color: var(--ut-brand-strong);
	color: var(--ut-on-brand);
}

.wp-block-group.is-style-ut-th-card-highlight p {
	color: color-mix(in srgb, var(--ut-on-brand) 88%, transparent);
}

.wp-block-group.is-style-ut-th-card-highlight > p.ut-th-eyebrow {
	color: color-mix(in srgb, var(--ut-on-brand) 75%, var(--ut-brand));
}

.wp-block-group.is-style-ut-th-card-highlight a:not(.wp-block-button__link),
.wp-block-group.is-style-ut-th-card-highlight .ut-th-price strong {
	color: var(--ut-on-brand);
}

/* ------------------------------------------------------------------ */
/* Group style: Fact box                                               */
/* ------------------------------------------------------------------ */

.wp-block-group.is-style-ut-th-facts {
	padding: 1.5rem;
	background: var(--ut-brand-surface);
	color: var(--ut-content);
	border-radius: var(--ut-radius-container);
	font-size: 0.9375rem;
}

.wp-block-group.is-style-ut-th-facts > * {
	margin-block: 0;
}

.wp-block-group.is-style-ut-th-facts > * + * {
	margin-block-start: 0.75rem;
}

.wp-block-group.is-style-ut-th-facts > h3.wp-block-heading {
	font-size: 1rem;
	line-height: 1.3;
}

/* A fact is «Label<br><strong>Value</strong>»: small muted label, value below. */
.wp-block-group.is-style-ut-th-facts p {
	color: var(--ut-content-muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.wp-block-group.is-style-ut-th-facts p strong {
	display: block;
	color: var(--ut-content);
	font-size: 0.9375rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.wp-block-group.is-style-ut-th-facts .wp-block-list {
	margin: 0;
	padding-inline-start: 1.25rem;
}

.wp-block-group.is-style-ut-th-facts .wp-block-list > li + li {
	margin-block-start: 0.375rem;
}

.wp-block-column > .wp-block-group.is-style-ut-th-facts + .wp-block-group.is-style-ut-th-facts {
	margin-block-start: 1rem;
}

/* ------------------------------------------------------------------ */
/* Button styles: Filled, Outline, Light                               */
/* ------------------------------------------------------------------ */

.wp-block-button:is(.is-style-ut-th-fill, .is-style-ut-th-outline, .is-style-ut-th-light) > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8125rem 1.375rem;
	border: 2px solid transparent;
	border-radius: var(--ut-radius-card);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--ut-motion-fast, 0.15s) ease, border-color var(--ut-motion-fast, 0.15s) ease;
}

.wp-block-button.is-style-ut-th-fill > .wp-block-button__link {
	background: var(--ut-brand);
	color: var(--ut-on-brand);
}

.wp-block-button.is-style-ut-th-fill > .wp-block-button__link:hover {
	background: var(--ut-brand-strong);
}

.wp-block-button.is-style-ut-th-outline > .wp-block-button__link {
	background: transparent;
	border-color: var(--ut-brand);
	color: var(--ut-brand-strong);
}

.wp-block-button.is-style-ut-th-outline > .wp-block-button__link:hover {
	background: var(--ut-brand-surface);
}

.wp-block-button.is-style-ut-th-light > .wp-block-button__link {
	background: var(--ut-surface);
	color: var(--ut-brand-strong);
}

.wp-block-button.is-style-ut-th-light > .wp-block-button__link:hover {
	background: var(--ut-brand-surface);
}

.wp-block-button:is(.is-style-ut-th-fill, .is-style-ut-th-outline, .is-style-ut-th-light) > .wp-block-button__link:focus-visible {
	outline: 2px solid var(--ut-focus-ring);
	outline-offset: 2px;
}

/* On a dark surface, the hero image and the highlighted card: light outline,
   and «Filled» turns light so it stays visible against the brand colour. */
:is(.is-style-ut-th-dark, .is-style-ut-th-card-highlight, .ut-th-hero) .wp-block-button.is-style-ut-th-outline > .wp-block-button__link {
	border-color: color-mix(in srgb, var(--ut-on-brand) 85%, transparent);
	color: var(--ut-on-brand);
}

:is(.is-style-ut-th-dark, .is-style-ut-th-card-highlight, .ut-th-hero) .wp-block-button.is-style-ut-th-outline > .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--ut-on-brand) 12%, transparent);
}

:is(.is-style-ut-th-dark, .is-style-ut-th-card-highlight) .wp-block-button.is-style-ut-th-fill > .wp-block-button__link {
	background: var(--ut-on-brand);
	color: var(--ut-brand-strong);
}

:is(.is-style-ut-th-dark, .is-style-ut-th-card-highlight, .ut-th-hero) .wp-block-button > .wp-block-button__link:focus-visible {
	outline-color: var(--ut-on-brand);
}

.ut-th-section .wp-block-buttons {
	gap: 0.75rem;
}

/* ------------------------------------------------------------------ */
/* List style: Checklist                                               */
/* ------------------------------------------------------------------ */

.wp-block-list.is-style-ut-th-checklist {
	list-style: none;
	margin-block: 0 1.375rem;
	padding-inline-start: 0;
}

.wp-block-list.is-style-ut-th-checklist > li {
	position: relative;
	margin: 0;
	padding-inline-start: 2rem;
	color: var(--ut-content);
}

.wp-block-list.is-style-ut-th-checklist > li + li {
	margin-block-start: 0.625rem;
}

.wp-block-list.is-style-ut-th-checklist > li::before,
.wp-block-list.is-style-ut-th-checklist > li::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.125em;
	width: 1.375rem;
	height: 1.375rem;
}

.wp-block-list.is-style-ut-th-checklist > li::before {
	border-radius: 50%;
	background: var(--ut-brand-surface);
}

.wp-block-list.is-style-ut-th-checklist > li::after {
	background: var(--ut-brand-strong);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l4 4 7-8'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l4 4 7-8'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

/* ------------------------------------------------------------------ */
/* Details style: Question                                             */
/* ------------------------------------------------------------------ */

.wp-block-details.is-style-ut-th-question {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--ut-border);
}

:not(.wp-block-details.is-style-ut-th-question) + .wp-block-details.is-style-ut-th-question {
	margin-block-start: 1.125rem;
	border-top: 1px solid var(--ut-border);
}

.wp-block-details.is-style-ut-th-question + .wp-block-details.is-style-ut-th-question {
	margin-block-start: 0;
}

.wp-block-details.is-style-ut-th-question > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 0.125rem;
	list-style: none;
	cursor: pointer;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
}

.wp-block-details.is-style-ut-th-question > summary::-webkit-details-marker {
	display: none;
}

/* The plus in a tinted circle, turning into a cross when the answer is open. */
.wp-block-details.is-style-ut-th-question > summary::after {
	content: "";
	flex: none;
	width: 1.875rem;
	height: 1.875rem;
	border-radius: 50%;
	background:
		linear-gradient(var(--ut-brand-strong), var(--ut-brand-strong)) center / 0.75rem 2px no-repeat,
		linear-gradient(var(--ut-brand-strong), var(--ut-brand-strong)) center / 2px 0.75rem no-repeat,
		var(--ut-brand-surface);
	transition: transform var(--ut-motion-fast, 0.2s) ease;
}

.wp-block-details.is-style-ut-th-question[open] > summary::after {
	transform: rotate(45deg);
}

.wp-block-details.is-style-ut-th-question > summary:focus-visible {
	outline: 2px solid var(--ut-focus-ring);
	outline-offset: 2px;
}

.wp-block-details.is-style-ut-th-question > :not(summary) {
	max-width: 62ch;
	margin-block: 0 1.125rem;
	color: var(--ut-content-muted);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-details.is-style-ut-th-question > summary::after,
	.wp-block-button > .wp-block-button__link {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Icon block                                                          */
/* ------------------------------------------------------------------ */

.wp-block-unitedtech-theme-icon.ut-th-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.875rem;
	height: 2.875rem;
	border-radius: 0.75rem;
	background: var(--ut-brand-surface);
	color: var(--ut-brand-strong);
}

.wp-block-unitedtech-theme-icon.ut-th-icon svg {
	width: 1.375rem;
	height: 1.375rem;
}

.is-style-ut-th-card-highlight .wp-block-unitedtech-theme-icon.ut-th-icon,
.is-style-ut-th-dark .wp-block-unitedtech-theme-icon.ut-th-icon {
	background: color-mix(in srgb, var(--ut-on-brand) 14%, transparent);
	color: var(--ut-on-brand);
}

/* ------------------------------------------------------------------ */
/* Card rows (grid layout): four → two → one, three → two → one        */
/* ------------------------------------------------------------------ */

.wp-block-group.ut-th-grid {
	gap: 1.125rem;
}

.wp-block-group.ut-th-grid.ut-th-grid--lead {
	grid-template-columns: 1.25fr 1fr 1fr;
}

@media (max-width: 980px) {
	.wp-block-group.ut-th-grid:has(> :nth-child(4)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.wp-block-group.ut-th-grid.ut-th-grid--lead {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	.wp-block-group.ut-th-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Doubled class: must beat the four-card rule above, whose :has() adds specificity. */
@media (max-width: 560px) {
	.wp-block-group.ut-th-grid.ut-th-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* Hero (Cover)                                                        */
/* ------------------------------------------------------------------ */

.wp-block-cover.ut-th-hero {
	margin-block: 0;
	padding: 0 var(--wp--style--root--padding-right, 1rem) 0 var(--wp--style--root--padding-left, 1rem);
	color: var(--ut-on-brand);
}

/* Core gives a positioned cover's inner container `width: auto` (with doubled
   classes); the hero keeps the full width so its text can sit in the wide column. */
.wp-block-cover.ut-th-hero.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
	width: 100%;
	padding-block: 3rem 3.5rem;
}

/* The text sits at the wide width, like the sections below it. */
.wp-block-cover.ut-th-hero .ut-th-hero-content {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 76rem);
	margin-inline: auto;
}

.ut-th-hero h1.wp-block-heading {
	max-width: 16ch;
	margin: 0 0 0.875rem;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: inherit;
}

.ut-th-hero p.ut-th-hero-text {
	max-width: 48ch;
	margin: 0 0 1.625rem;
	color: color-mix(in srgb, var(--ut-on-brand) 92%, transparent);
}

.ut-th-hero .wp-block-buttons {
	gap: 0.75rem;
	margin: 0;
}

@media (max-width: 560px) {
	.wp-block-cover.ut-th-hero {
		min-height: 480px !important; /* the block stores 520px inline */
	}

	.wp-block-cover.ut-th-hero .wp-block-cover__inner-container {
		padding-block-end: 2.25rem;
	}
}

/* ------------------------------------------------------------------ */
/* News strip                                                          */
/* ------------------------------------------------------------------ */

.wp-block-group.ut-th-section.ut-th-strip {
	padding-block: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--ut-brand) 18%, transparent);
}

.wp-block-group.ut-th-strip-row {
	gap: 0.625rem 1.125rem;
	padding-block: 1rem;
}

.ut-th-section .ut-th-strip-row > p {
	margin: 0;
}

.ut-th-strip-row > .ut-th-strip-text {
	flex: 1 1 20rem;
}

.ut-th-tag {
	padding: 0.25rem 0.5625rem;
	border-radius: 0.25rem;
	background: var(--ut-brand);
	color: var(--ut-on-brand);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Latest news (Query Loop)                                            */
/* ------------------------------------------------------------------ */

.wp-block-group.ut-th-head-row {
	align-items: baseline;
	gap: 0.75rem;
	margin-block-end: 1.125rem;
}

.ut-th-section .ut-th-head-row > * {
	margin: 0;
}

.ut-th-news .wp-block-post-template {
	gap: 1.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 760px) {
	.ut-th-news .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.ut-th-news .wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wp-block-group.ut-th-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--ut-surface);
	border: 1px solid var(--ut-border);
	border-radius: var(--ut-radius-container);
}

.ut-th-post-card > * {
	margin: 0;
}

.ut-th-post-card .wp-block-post-featured-image {
	margin: 0;
}

.ut-th-post-card .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.wp-block-group.ut-th-post-card-body {
	margin: 0;
	padding: 1rem 1.25rem 1.375rem;
}

.ut-th-post-card-body > * {
	margin: 0;
}

.ut-th-post-card .wp-block-post-date {
	color: var(--ut-content-subtle);
	font-size: 0.875rem;
}

.ut-th-section .ut-th-post-card h3.wp-block-post-title {
	margin: 0.25rem 0 0;
	font-size: 1.125rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ut-th-post-card .wp-block-post-title a {
	color: var(--ut-content);
	text-decoration: none;
}

.ut-th-post-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Text with image (Media & Text)                                      */
/* ------------------------------------------------------------------ */

.wp-block-media-text.ut-th-media-text {
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	column-gap: 3rem;
	align-items: center;
}

.wp-block-media-text.ut-th-media-text:not(.has-media-on-the-right) {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.ut-th-media-text .wp-block-media-text__content {
	padding: 0;
}

.ut-th-media-text .wp-block-media-text__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ut-radius-container);
}

@media (max-width: 800px) {
	.wp-block-media-text.ut-th-media-text.is-stacked-on-mobile {
		grid-template-columns: 100%;
		row-gap: 1.5rem;
	}

	.wp-block-media-text.ut-th-media-text.is-stacked-on-mobile .wp-block-media-text__media {
		grid-column: 1;
		grid-row: 2;
	}

	.wp-block-media-text.ut-th-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		grid-column: 1;
		grid-row: 1;
	}
}

/* ------------------------------------------------------------------ */
/* Contact card and form                                               */
/* ------------------------------------------------------------------ */

.wp-block-group.ut-th-contact-row {
	gap: 0.875rem;
	padding-block: 0.875rem;
	border-top: 1px solid var(--ut-border);
}

.wp-block-group.is-style-ut-th-card > .wp-block-group.ut-th-contact-row {
	margin-block-start: 0;
}

.wp-block-group.is-style-ut-th-card > h3 + .wp-block-group.ut-th-contact-row {
	margin-block-start: 0.5rem;
	padding-block-start: 0.25rem;
	border-top: 0;
}

.ut-th-contact-row .wp-block-unitedtech-theme-icon.ut-th-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.625rem;
}

.ut-th-contact-row .wp-block-unitedtech-theme-icon.ut-th-icon svg {
	width: 1.1875rem;
	height: 1.1875rem;
}

.wp-block-group.ut-th-contact-text {
	min-width: 0;
}

.ut-th-section .ut-th-contact-text > p,
.ut-th-contact-text > p {
	margin: 0;
}

.wp-block-group.is-style-ut-th-card p.ut-th-contact-label {
	color: var(--ut-content-muted);
	font-size: 0.8125rem;
}

.wp-block-group.is-style-ut-th-card p.ut-th-contact-value {
	color: var(--ut-content);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.wp-block-group.is-style-ut-th-card p.ut-th-form-help {
	margin-block-start: 1rem;
	font-size: 0.8125rem;
}

/* A value bound to the site organisation (Public Views) that has nothing to
   show renders as an empty paragraph; its row is hidden on the page, but kept
   in the editor so the row can still be found and removed. */
body:not(.editor-styles-wrapper) .wp-block-group.ut-th-contact-row:has(p.ut-th-contact-value:empty) {
	display: none;
}

/* A line after a plugin's block (e.g. under the organisation chips): the plugin's root
   has no outer margin, so the theme's own paragraph keeps the distance. */
.ut-th-section p.ut-th-after {
	margin-block-start: 1.125rem;
}

/* Where a plugin's block belongs but the plugin is not active (form, UT data). */
.ut-th-form-missing,
.ut-th-block-missing {
	padding: 1rem;
	border: 1px dashed var(--ut-border-strong);
	border-radius: var(--ut-radius-card);
}

/* Fluent Forms inside the theme's form card: fields, lists and button like the
   rest of the page. Forms elsewhere keep their own look. A colour chosen in
   the form's own settings is printed inline by Fluent Forms and still wins. */
.ut-th-form-card .fluentform .ff-el-group {
	margin-block-end: 1rem;
}

.ut-th-form-card .fluentform .ff-el-input--label label {
	color: var(--ut-content);
	font-size: 0.9375rem;
	font-weight: 600;
}

.ut-th-form-card .fluentform .ff-el-is-required.asterisk-right label::after {
	color: var(--ut-danger);
}

.ut-th-form-card .fluentform .ff-el-form-control {
	min-height: 2.75rem;
	padding: 0.6875rem 0.75rem;
	background: var(--ut-surface);
	color: var(--ut-content);
	border: 1px solid var(--ut-border-control);
	border-radius: var(--ut-radius-control);
	box-shadow: none;
	font: inherit;
	font-size: 1rem;
}

.ut-th-form-card .fluentform textarea.ff-el-form-control {
	min-height: 8rem;
	resize: vertical;
}

.ut-th-form-card .fluentform .ff-el-form-control:focus {
	border-color: var(--ut-focus-ring);
	outline: 2px solid var(--ut-focus-ring);
	outline-offset: 0;
}

.ut-th-form-card .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	padding: 0.8125rem 1.375rem;
	background: var(--ut-brand);
	color: var(--ut-on-brand);
	border: 2px solid transparent;
	border-radius: var(--ut-radius-card);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
}

.ut-th-form-card .fluentform .ff-btn-submit:not(.ff_btn_no_style):hover {
	background: var(--ut-brand-strong);
}

.ut-th-form-card .fluentform .ff-btn-submit:focus-visible {
	outline: 2px solid var(--ut-focus-ring);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Call to action, questions, privacy                                  */
/* ------------------------------------------------------------------ */

.wp-block-group.ut-th-cta-row {
	gap: 1.5rem;
}

.ut-th-cta-text > * {
	margin: 0;
}

.ut-th-section .ut-th-cta-text > p {
	max-width: 52ch;
	margin: 0.375rem 0 0;
}

.ut-th-section .ut-th-cta-row > .wp-block-buttons {
	margin: 0;
}

.ut-th-faq > h2.wp-block-heading {
	margin-block-end: 0;
}

.wp-block-group.ut-th-updated {
	gap: 0.375rem;
	color: var(--ut-content-subtle);
	font-size: 0.875rem;
}

.ut-th-updated > * {
	margin: 0;
}

.ut-th-prose > h2.wp-block-heading:first-child {
	margin-block-start: 0;
}

.ut-th-section .ut-th-prose > h2.wp-block-heading {
	margin-block: 1.8em 0.5em;
	font-size: 1.3rem;
	line-height: 1.25;
}

.ut-th-section .ut-th-prose > h2.wp-block-heading:first-child {
	margin-block-start: 0;
}

.ut-th-section .ut-th-prose > ul {
	padding-inline-start: 1.2em;
	list-style: disc;
}
