/*
Theme Name: Leiria Liberal
Theme URI: https://leirialiberal.pt
Author: Núcleo Territorial de Leiria da Iniciativa Liberal
Description: Tema de blocos (FSE) do Núcleo Territorial de Leiria da Iniciativa Liberal. Cores, tipografia e espaçamentos definidos em theme.json.
Version: 0.1.0
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: leirialiberal
*/

/*
 * Fonte de recurso com métricas próximas da Poppins (reduz o salto de layout enquanto a Poppins carrega).
 * O theme.json não suporta src: local(), por isso fica aqui.
 */
@font-face {
	font-family: "Poppins Fallback";
	src: local("Arial");
	size-adjust: 112.16%;
	ascent-override: 93.62%;
	descent-override: 31.21%;
	line-gap-override: 8.92%;
}

/*
 * Só o que o theme.json não consegue exprimir. Cores via variáveis --wp--preset--color--*.
 */

/* Foco sempre visível (WCAG 2.4.7). Anel duplo: visível sobre fundos claros e escuros. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--custom--cor--foco-claro);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--wp--custom--cor--foco-escuro);
}

/* Em zonas escuras (header, rodapé) inverte-se o anel. */
:where(.ll-header__barra, .ll-rodape) :where(a, button, input, summary, [tabindex]):focus-visible {
	outline-color: var(--wp--custom--cor--foco-escuro);
	box-shadow: 0 0 0 5px var(--wp--custom--cor--foco-claro);
}

/* Header sticky não pode tapar o elemento focado nem o destino de âncoras (WCAG 2.4.11). */
html {
	scroll-padding-top: var(--ll-altura-header, 5rem);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.screen-reader-text:not(:focus):not(:focus-within) {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* Página de anexo: link de regresso à página-mãe. */
.ll-anexo-voltar {
	margin-block: var(--wp--preset--spacing--30);
}

/* Tipo de órgão (Block Bindings): não deixar parágrafo vazio quando o campo não está preenchido. */
.ll-freguesia-tipo:empty {
	display: none;
}

/* ------------------------------------------------------------------
 * Cores por função — todas as cores vêm de --wp--custom--cor--* (theme.json → settings.custom.cor).
 * ------------------------------------------------------------------ */

/* Logótipo */
.ll-logo {
	display: inline-flex;
	flex: none;
	line-height: 0;
}

.ll-logo img {
	height: 44px;
	width: auto;
}

@media (min-width: 782px) {
	.ll-logo img {
		height: 56px;
	}
}

/* Header */
.ll-header__barra {
	background-color: var(--wp--custom--cor--header-fundo);
	color: var(--wp--custom--cor--header-texto);
}

.ll-header__barra a:where(:not(.wp-element-button)) {
	color: inherit;
}

.ll-header__barra .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--custom--cor--header-fundo);
	color: var(--wp--custom--cor--header-texto);
}

.ll-header__barra .wp-block-navigation-item__content {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

/* CTA "Envolve-te" (seletor reforçado para ganhar às regras do overlay do core) */
.ll-header__barra .wp-block-navigation .ll-nav-cta > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	background-color: var(--wp--custom--cor--cta-fundo);
	color: var(--wp--custom--cor--cta-texto);
	font-weight: 700;
	padding-inline: 1.1em;
	border-radius: 999px;
	text-decoration: none;
}

.ll-header__barra .wp-block-navigation .ll-nav-cta > .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	background-color: var(--wp--custom--cor--cta-fundo-hover);
}

/* Rodapé */
.ll-rodape {
	background-color: var(--wp--custom--cor--rodape-fundo);
	color: var(--wp--custom--cor--rodape-texto);
}

.ll-rodape a {
	color: inherit;
}

.ll-rodape .ll-redes .wp-social-link {
	color: var(--wp--custom--cor--rodape-texto);
}

.ll-rodape .ll-redes .wp-social-link a {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Submenus do header (desktop): painel claro com texto navy. */
.ll-header__barra .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--custom--cor--fundo);
	color: var(--wp--custom--cor--texto);
	border: 1px solid var(--wp--custom--cor--borda);
	border-radius: 6px;
	padding-block: 0.25rem;
}

/* Painel ajusta-se ao texto (o core fixa min-width: 200px com seletores de hover mais específicos). */
@media (min-width: 600px) {
	.ll-header__barra .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		white-space: nowrap;
	}
}

.ll-header__barra .wp-block-navigation__submenu-container a:where(:not(.wp-element-button)) {
	color: var(--wp--custom--cor--texto);
}

.ll-header__barra .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1rem;
	width: 100%;
}

.ll-header__barra .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background-color: var(--wp--custom--cor--destaque-fundo);
}

/* Menu mobile aberto: submenus sem painel, texto claro sobre navy. */
.ll-header__barra .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background-color: transparent;
	border: 0;
	color: var(--wp--custom--cor--header-texto);
}

.ll-header__barra .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a:where(:not(.wp-element-button)) {
	color: var(--wp--custom--cor--header-texto);
}

.ll-header__barra .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background-color: transparent;
	text-decoration: underline;
}

/* Botão de abrir submenu com alvo mínimo de 24×24 (WCAG 2.5.8). */
.ll-header__barra .wp-block-navigation__submenu-icon {
	min-width: 24px;
	min-height: 24px;
}

/* ------------------------------------------------------------------
 * Freguesias: resultados, eleitos, trabalho autárquico
 * ------------------------------------------------------------------ */
.ll-resultados__tabela {
	overflow-x: auto;
}

.ll-resultados table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.ll-resultados caption {
	text-align: start;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--cor--texto-secundario);
	padding-block-end: 0.5rem;
}

.ll-resultados th,
.ll-resultados td {
	padding: 0.6rem 0.75rem;
	border-block-end: 1px solid var(--wp--custom--cor--borda);
	text-align: start;
}

.ll-resultados thead th {
	background-color: var(--wp--custom--cor--superficie);
	font-weight: 500;
}

.ll-resultados .ll-num {
	text-align: end;
	white-space: nowrap;
}

.ll-resultados__nota {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--cor--texto-secundario);
}

.ll-eleitos__lista,
.ll-trabalho__lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.ll-eleitos__lista {
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.ll-eleitos__pessoa {
	display: grid;
	gap: 0.25rem;
	padding: var(--wp--preset--spacing--30);
	background-color: var(--wp--custom--cor--destaque-fundo);
	border-radius: 6px;
}

.ll-eleitos__cargo,
.ll-trabalho__item time {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--cor--texto-secundario);
}

.ll-trabalho__titulo {
	font-size: var(--wp--preset--font-size--medium);
	margin: 0;
}

.ll-programa {
	margin-block-start: var(--wp--preset--spacing--60);
	padding-block-start: var(--wp--preset--spacing--40);
	border-block-start: 4px solid var(--wp--custom--cor--decoracao);
}

/* Menu mobile: tudo alinhado à esquerda; itens de topo a negrito, subitens indentados. */
.ll-header__barra .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}

.ll-header__barra .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-weight: 700;
}

.ll-header__barra .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
	padding-inline-start: var(--wp--preset--spacing--30);
	padding-block: 0;
	gap: 0;
}

/* O layout "justificado à direita" do desktop propaga-se ao overlay (align-items: flex-end); repor. */
.ll-header__barra .wp-block-navigation.items-justified-right .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) {
	align-items: flex-start;
}

.ll-header__barra .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}

/* ------------------------------------------------------------------
 * Fase 4 — layout global e componentes
 * ------------------------------------------------------------------ */

:root {
	--ll-altura-header: 3.75rem;
	--ll-altura-barra-cta: 4.25rem;
	--ll-raio: 8px;
}

@media (min-width: 782px) {
	:root {
		--ll-altura-header: 5.5rem;
	}
}

[hidden] {
	display: none !important;
}

/* Header sticky e compacto. scroll-padding-top (acima) evita que tape o foco/âncoras (WCAG 2.4.11). */
.ll-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

body.admin-bar .ll-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

@media (max-width: 600px) {
	body.admin-bar .ll-header {
		top: 0;
	}
}

/* Botões */
.wp-block-button.is-style-ll-cta .wp-block-button__link {
	background-color: var(--wp--custom--cor--cta-fundo);
	color: var(--wp--custom--cor--cta-texto);
	border-radius: 999px;
	min-height: 44px;
}

.wp-block-button.is-style-ll-cta .wp-block-button__link:hover,
.wp-block-button.is-style-ll-cta .wp-block-button__link:focus-visible {
	background-color: var(--wp--custom--cor--cta-fundo-hover);
	color: var(--wp--custom--cor--cta-texto);
}

.wp-block-button.is-style-ll-contorno .wp-block-button__link {
	background-color: transparent;
	color: inherit;
	border: 2px solid currentColor;
	border-radius: 999px;
	min-height: 44px;
}

/* Hero: conteúdo alinhado com as secções (72rem) e nunca colado à margem. */
.ll-hero {
	color: var(--wp--custom--cor--header-texto);
	padding-inline: max(var(--wp--preset--spacing--30), calc((100% - 72rem) / 2));
}

.ll-hero h1 {
	color: inherit;
	margin: 0;
}

/* Secções da homepage */
.ll-seccao--superficie {
	background-color: var(--wp--custom--cor--superficie);
}

.ll-seccao--destaque {
	background-color: var(--wp--custom--cor--destaque-fundo);
}

/* Cartões (problemas de Leiria e últimas publicações) */
.ll-cartoes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.ll-cartao {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	background-color: var(--wp--custom--cor--fundo);
	border: 1px solid var(--wp--custom--cor--borda);
	border-radius: var(--ll-raio);
	overflow: hidden;
	height: 100%;
}

.ll-cartao__imagem,
.ll-cartao .wp-block-post-featured-image {
	margin: 0;
}

.ll-cartao__imagem img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Barra decorativa azul no topo dos cartões sem imagem. */
.ll-cartao:not(:has(img))::before {
	content: "";
	display: block;
	height: 6px;
	background-color: var(--wp--custom--cor--decoracao);
}

.ll-cartao__corpo {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: var(--wp--preset--spacing--30);
}

.ll-cartao__titulo {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

.ll-cartao .wp-block-post-title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
}

/* Cartão inteiro clicável, mantendo um único link (sem links duplicados para leitores de ecrã). */
.ll-cartao__link::after,
.ll-cartao .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ll-cartao:hover {
	border-color: var(--wp--custom--cor--contorno-campo);
}

.ll-cartao:has(:focus-visible) {
	outline: 3px solid var(--wp--custom--cor--foco-claro);
	outline-offset: 2px;
}

.ll-cartao__link:focus-visible,
.ll-cartao .wp-block-post-title a:focus-visible {
	outline: none;
	box-shadow: none;
}

.ll-cartao__resumo {
	margin: 0;
	color: var(--wp--custom--cor--texto-secundario);
}

.ll-etiqueta a {
	position: relative;
	z-index: 1;
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background-color: var(--wp--custom--cor--destaque-fundo);
	color: var(--wp--custom--cor--texto);
	text-decoration: none;
	font-weight: 500;
}

.ll-cartao__data {
	color: var(--wp--custom--cor--texto-secundario);
}

/* Lista de freguesias */
.ll-freguesias__pesquisa {
	display: grid;
	gap: 0.35rem;
	max-width: 32rem;
	margin-block-end: var(--wp--preset--spacing--30);
}

.ll-freguesias__pesquisa label {
	font-weight: 500;
}

.ll-freguesias__pesquisa input,
.ll-newsletter input[type="email"] {
	font: inherit;
	min-height: 48px;
	padding: 0.5rem 0.9rem;
	border: 2px solid var(--wp--custom--cor--contorno-campo);
	border-radius: var(--ll-raio);
	background-color: var(--wp--custom--cor--fundo);
	color: var(--wp--custom--cor--texto);
	width: 100%;
}

.ll-freguesias__estado {
	margin: 0;
	min-height: 1.5em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--cor--texto-secundario);
}

.ll-freguesias__lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--20);
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.ll-freguesias__link {
	display: grid;
	gap: 0.15rem;
	min-height: 44px;
	padding: 0.75rem 1rem;
	background-color: var(--wp--custom--cor--fundo);
	border: 1px solid var(--wp--custom--cor--borda);
	border-inline-start: 4px solid var(--wp--custom--cor--decoracao);
	border-radius: var(--ll-raio);
	text-decoration: none;
}

.ll-freguesias__link:hover .ll-freguesias__nome {
	text-decoration: underline;
}

.ll-freguesias__nome {
	font-weight: 500;
}

.ll-freguesias__tipo {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--cor--texto-secundario);
}

/* Newsletter */
.ll-newsletter {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.ll-newsletter__campo {
	display: grid;
	gap: 0.35rem;
}

.ll-newsletter__campo label {
	font-weight: 500;
}

.ll-newsletter__consentimento {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.6rem;
	align-items: start;
	font-size: var(--wp--preset--font-size--small);
}

.ll-newsletter__consentimento input {
	width: 24px;
	height: 24px;
	margin: 0.1rem 0 0;
	accent-color: var(--wp--custom--cor--contorno-campo);
}

.ll-newsletter__erro {
	margin: 0;
	font-weight: 500;
	color: var(--wp--custom--cor--texto);
	border-inline-start: 4px solid var(--wp--custom--cor--marca-detalhe);
	padding-inline-start: 0.6rem;
}

.ll-newsletter__armadilha {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ll-newsletter button {
	justify-self: start;
	min-height: 48px;
	cursor: pointer;
}

.ll-aviso {
	padding: var(--wp--preset--spacing--30);
	border-radius: var(--ll-raio);
	background-color: var(--wp--custom--cor--destaque-fundo);
	border-inline-start: 4px solid var(--wp--custom--cor--contorno-campo);
	margin-block-end: var(--wp--preset--spacing--40);
}

.ll-aviso p {
	margin: 0;
}

/* Resumo executivo (TL;DR) */
.wp-block-group.is-style-ll-resumo {
	background-color: var(--wp--custom--cor--destaque-fundo);
	border-inline-start: 6px solid var(--wp--custom--cor--contorno-campo);
	border-radius: var(--ll-raio);
	padding: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--large);
}

.wp-block-group.is-style-ll-resumo > :first-child {
	margin-block-start: 0;
}

/* Acordeão: <details>/<summary> nativos (core/details) */
.wp-block-details {
	border: 1px solid var(--wp--custom--cor--borda);
	border-radius: var(--ll-raio);
	padding: 0 var(--wp--preset--spacing--30);
}

.wp-block-details + .wp-block-details {
	margin-block-start: var(--wp--preset--spacing--20);
}

.wp-block-details > summary {
	cursor: pointer;
	min-height: 48px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	list-style: none;
}

.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details > summary::before {
	content: "+";
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background-color: var(--wp--custom--cor--contorno-campo);
	color: var(--wp--custom--cor--fundo);
	font-weight: 700;
	line-height: 1;
}

.wp-block-details[open] > summary::before {
	content: "−";
}

.wp-block-details[open] {
	padding-block-end: var(--wp--preset--spacing--30);
}

/* Lista com ícones (visto desenhado com máscara: a cor vem da variável). */
.wp-block-list.is-style-ll-icones {
	list-style: none;
	padding-inline-start: 0;
	display: grid;
	gap: 0.75rem;
}

.wp-block-list.is-style-ll-icones > li {
	position: relative;
	padding-inline-start: 2.25rem;
}

.wp-block-list.is-style-ll-icones > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.1em;
	width: 1.5rem;
	height: 1.5rem;
	background-color: var(--wp--custom--cor--contorno-campo);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16.5 9'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16.5 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Citação de destaque com partilha */
.wp-block-pullquote.is-style-ll-partilha,
.wp-block-quote.is-style-ll-partilha {
	border-block: 4px solid var(--wp--custom--cor--decoracao);
	padding-block: var(--wp--preset--spacing--40);
	text-align: start;
}

.wp-block-pullquote.is-style-ll-partilha blockquote p {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1.3;
}

.ll-partilha {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-block-start: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
}

.ll-partilha__rotulo {
	margin: 0;
	font-weight: 500;
}

.ll-partilha__lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ll-partilha__lista a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.9rem;
	border: 1px solid var(--wp--custom--cor--contorno-campo);
	border-radius: 999px;
	text-decoration: none;
}

/* Barra de ações no mobile (fundo do ecrã, zona do polegar) */
.ll-barra-cta {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 40;
	background-color: var(--wp--custom--cor--header-fundo);
	color: var(--wp--custom--cor--header-texto);
	padding: 0.6rem var(--wp--preset--spacing--30) calc(0.6rem + env(safe-area-inset-bottom));
	box-shadow: 0 -2px 12px rgb(0 0 0 / 0.15);
}

.ll-barra-cta .wp-block-buttons {
	width: 100%;
	max-width: 32rem;
	gap: 0.6rem;
}

.ll-barra-cta .wp-block-button {
	flex: 1 1 0;
}

.ll-barra-cta .wp-block-button__link {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 0.75rem;
	white-space: nowrap;
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 781px) {
	body {
		padding-bottom: calc(var(--ll-altura-barra-cta) + env(safe-area-inset-bottom));
	}

	/* A barra fixa em baixo não pode tapar o elemento focado (WCAG 2.4.11). */
	html {
		scroll-padding-bottom: calc(var(--ll-altura-barra-cta) + env(safe-area-inset-bottom) + 1rem);
	}
}

@media (min-width: 782px) {
	/* Seletor reforçado: o layout flex do core (.is-layout-flex) também define display. */
	.wp-block-group.ll-barra-cta {
		display: none;
	}
}

/* ------------------------------------------------------------------
 * Fase 5 — compatibilidade com o conteúdo migrado e formulário de contacto
 * ------------------------------------------------------------------ */

/* Classes de cor do tema antigo (Astra) presentes no conteúdo: 0 = cor primária, 5 = branco. */
.has-ast-global-color-0-color {
	color: var(--wp--custom--cor--link) !important;
}

.has-ast-global-color-0-background-color {
	background-color: var(--wp--custom--cor--botao-fundo) !important;
}

.has-ast-global-color-5-color {
	color: var(--wp--custom--cor--botao-texto) !important;
}

/* Formulários próprios (contacto) */
.ll-form {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	max-width: 40rem;
}

.ll-form__nota {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--cor--texto-secundario);
}

.ll-form__campo {
	display: grid;
	gap: 0.35rem;
}

.ll-form__campo label {
	font-weight: 500;
}

.ll-form__campo input,
.ll-form__campo textarea {
	font: inherit;
	min-height: 48px;
	padding: 0.5rem 0.9rem;
	border: 2px solid var(--wp--custom--cor--contorno-campo);
	border-radius: var(--ll-raio);
	background-color: var(--wp--custom--cor--fundo);
	color: var(--wp--custom--cor--texto);
	width: 100%;
}

.ll-form__consentimento {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.6rem;
	align-items: start;
	font-size: var(--wp--preset--font-size--small);
}

.ll-form__consentimento input {
	width: 24px;
	height: 24px;
	margin: 0.1rem 0 0;
	accent-color: var(--wp--custom--cor--contorno-campo);
}

.ll-form button {
	justify-self: start;
	min-height: 48px;
	cursor: pointer;
}

.ll-form__armadilha {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ll-aviso--erro {
	border-inline-start-color: var(--wp--custom--cor--marca-detalhe);
	background-color: var(--wp--custom--cor--superficie);
}

/* Conteúdos incorporados de terceiros: cartão antes do clique (inc/privacidade.php) */
.ll-embed__fachada {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 0.5rem;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--custom--cor--borda);
	border-radius: var(--ll-raio);
	background-color: var(--wp--custom--cor--superficie);
	text-align: center;
}

.ll-embed--video .ll-embed__fachada,
.ll-embed--video .ll-embed__carregado {
	aspect-ratio: 16 / 9;
}

.ll-embed__icone {
	color: var(--wp--custom--cor--contorno-campo);
}

.ll-embed__titulo {
	margin: 0;
	font-weight: 500;
}

.ll-embed__aviso {
	margin: 0;
	max-width: 36rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--cor--texto-secundario);
}

.ll-embed__acoes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
	margin: 0.25rem 0 0;
}

.ll-embed__carregar {
	min-height: 44px;
	cursor: pointer;
}

.ll-embed__carregado iframe {
	width: 100%;
	border: 0;
}

/* Vídeos ocupam a caixa 16:9; outros conteúdos (ex.: assistente) mantêm a altura do iframe original. */
.ll-embed--video .ll-embed__carregado iframe {
	height: 100%;
}
