/* Interface pública do Digest, alinhada com a identidade do sítio diocesano. */

.lf-digest {
	--lf-dark: #07596b;
	--lf-dark-deep: #064755;
	--lf-blue: #08a7de;
	--lf-blue-soft: #eaf8fd;
	--lf-mint: #f1fbf4;
	--lf-ink: #20292d;
	--lf-muted: #627178;
	--lf-line: #d8e5e9;
	max-width: 980px;
	margin: 32px auto;
	overflow: hidden;
	color: var(--lf-ink);
	background: #fff;
	border: 1px solid #dbe8eb;
	border-radius: 18px;
	box-shadow: 0 16px 42px rgba(6, 71, 85, 0.12);
	font-family: inherit;
}

.lf-digest *,
.lf-digest *::before,
.lf-digest *::after {
	box-sizing: border-box;
}

.lf-digest [hidden] {
	display: none !important;
}

.lf-digest-hero {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 38px 44px;
	color: #fff;
	background: var(--lf-dark);
}

.lf-digest-hero-icon {
	display: grid;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	place-items: center;
	color: var(--lf-dark);
	background: #fff;
	border-radius: 50%;
}

.lf-digest-hero-icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.lf-digest .lf-digest-kicker {
	margin: 0 0 5px;
	color: #aee9fa;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.lf-digest-hero h2 {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(27px, 4vw, 40px);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.lf-digest-hero > div > p:last-child {
	max-width: 690px;
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 16px;
	line-height: 1.55;
}

.lf-digest-body {
	padding: 38px 44px 44px;
	background: #fff;
}

.lf-digest-notice {
	margin: 0 0 28px;
	padding: 14px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
}

.lf-digest-notice--success {
	color: #185d35;
	background: #edf9f1;
	border-color: #bfe6cb;
}

.lf-digest-notice--error {
	color: #842b36;
	background: #fff1f2;
	border-color: #f1c7cc;
}

.lf-digest-empty {
	margin: 0;
	padding: 26px;
	text-align: center;
	background: var(--lf-blue-soft);
	border-radius: 10px;
}

.lf-digest-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.lf-digest-section {
	min-width: 0;
	margin: 0;
	padding: 0 0 34px;
	border: 0;
}

.lf-digest-section + .lf-digest-section {
	padding-top: 34px;
	border-top: 1px solid var(--lf-line);
}

.lf-digest-section-heading {
	display: flex;
	width: 100%;
	gap: 14px;
	align-items: flex-start;
	margin: 0 0 22px;
	padding: 0;
	color: var(--lf-ink);
}

.lf-digest-section-heading h3,
.lf-digest-section-heading strong {
	display: block;
	margin: 0;
	color: var(--lf-ink);
	font-size: 20px;
	font-weight: 750;
	line-height: 1.25;
}

.lf-digest-section-heading p,
.lf-digest-section-heading small {
	display: block;
	margin: 4px 0 0;
	color: var(--lf-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.lf-digest-step {
	display: grid;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	place-items: center;
	color: #fff;
	background: var(--lf-blue);
	border-radius: 50%;
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
}

.lf-digest-label {
	display: block;
	margin: 0 0 7px;
	font-size: 14px;
	font-weight: 700;
}

.lf-digest-email,
.lf-digest-search {
	display: block;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 11px 14px;
	color: var(--lf-ink);
	background: #fff;
	border: 1px solid #b8cbd1;
	border-radius: 7px;
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lf-digest-email:focus,
.lf-digest-search:focus {
	outline: 0;
	border-color: var(--lf-blue);
	box-shadow: 0 0 0 3px rgba(8, 167, 222, 0.17);
}

.lf-digest-choice-group + .lf-digest-choice-group {
	margin-top: 26px;
}

.lf-digest-choice-group h4 {
	margin: 0 0 12px;
	color: var(--lf-dark-deep);
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.055em;
	line-height: 1.3;
	text-transform: uppercase;
}

.lf-digest-choice-grid,
.lf-digest-parish-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.lf-digest-choice,
.lf-digest-frequency-choice {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.lf-digest-choice input,
.lf-digest-frequency-choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.lf-digest-choice-card {
	display: flex;
	min-height: 48px;
	gap: 10px;
	align-items: center;
	padding: 11px 13px;
	color: #354348;
	background: #fff;
	border: 1px solid var(--lf-line);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lf-digest-check {
	position: relative;
	flex: 0 0 19px;
	width: 19px;
	height: 19px;
	background: #fff;
	border: 1.5px solid #9bb0b7;
	border-radius: 4px;
}

.lf-digest-choice input:checked + .lf-digest-choice-card {
	color: var(--lf-dark-deep);
	background: var(--lf-blue-soft);
	border-color: var(--lf-blue);
	box-shadow: inset 0 0 0 1px var(--lf-blue);
}

.lf-digest-choice input:checked + .lf-digest-choice-card .lf-digest-check {
	background: var(--lf-blue);
	border-color: var(--lf-blue);
}

.lf-digest-choice input:checked + .lf-digest-choice-card .lf-digest-check::after {
	position: absolute;
	top: 2px;
	left: 5px;
	width: 6px;
	height: 10px;
	content: '';
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.lf-digest-choice input:focus-visible + .lf-digest-choice-card,
.lf-digest-frequency-choice input:focus-visible + span {
	outline: 3px solid rgba(8, 167, 222, 0.25);
	outline-offset: 2px;
}

.lf-digest-parishes {
	margin-top: 28px;
	overflow: hidden;
	background: var(--lf-mint);
	border: 1px solid #d5eadc;
	border-radius: 10px;
}

.lf-digest-parishes summary {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 17px 52px 17px 18px;
	cursor: pointer;
	list-style: none;
}

.lf-digest-parishes summary::-webkit-details-marker {
	display: none;
}

.lf-digest-parishes summary::after {
	position: absolute;
	top: 50%;
	right: 20px;
	color: var(--lf-dark);
	content: '+';
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-50%);
}

.lf-digest-parishes[open] summary::after {
	content: '−';
}

.lf-digest-parishes summary span {
	color: var(--lf-dark-deep);
	font-size: 16px;
	font-weight: 750;
}

.lf-digest-parishes summary small {
	margin-top: 2px;
	color: var(--lf-muted);
	font-size: 13px;
}

.lf-digest-parishes-body {
	padding: 0 18px 18px;
}

.lf-digest-search {
	min-height: 46px;
	margin-bottom: 13px;
	background: #fff;
	font-size: 14px;
}

.lf-digest-parish-grid {
	max-height: 250px;
	padding: 2px;
	overflow-y: auto;
}

.lf-digest-no-results {
	margin: 4px 0 12px;
	color: var(--lf-muted);
	font-size: 14px;
}

.lf-digest-frequency-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.lf-digest-frequency-choice > span {
	display: flex;
	min-height: 96px;
	flex-direction: column;
	justify-content: center;
	padding: 15px;
	background: #fff;
	border: 1px solid var(--lf-line);
	border-radius: 9px;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.lf-digest-frequency-choice > span strong {
	color: var(--lf-ink);
	font-size: 14px;
	line-height: 1.3;
}

.lf-digest-frequency-choice > span small {
	margin-top: 6px;
	color: var(--lf-muted);
	font-size: 12px;
	line-height: 1.3;
}

.lf-digest-frequency-choice input:checked + span {
	background: var(--lf-dark);
	border-color: var(--lf-dark);
	transform: translateY(-2px);
}

.lf-digest-frequency-choice input:checked + span strong {
	color: #fff;
}

.lf-digest-frequency-choice input:checked + span small {
	color: #bfeaf6;
}

.lf-digest-selection-summary {
	display: flex;
	gap: 8px 18px;
	align-items: baseline;
	margin: 0 0 18px;
	padding: 14px 16px;
	color: var(--lf-dark-deep);
	background: var(--lf-blue-soft);
	border-left: 4px solid var(--lf-blue);
	border-radius: 0 7px 7px 0;
	font-size: 13px;
	line-height: 1.45;
}

.lf-digest-selection-summary strong {
	flex: 0 0 auto;
}

.lf-digest-consent {
	max-width: 760px;
	margin: 0 0 20px;
	color: var(--lf-muted);
	font-size: 12px;
	line-height: 1.55;
}

.lf-digest-submit {
	display: inline-flex;
	min-height: 48px;
	gap: 18px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 12px 22px;
	color: #fff;
	background: var(--lf-blue);
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
	transition: background 0.15s ease, transform 0.15s ease;
}

.lf-digest-submit:hover {
	color: #fff;
	background: #078fc0;
	transform: translateY(-1px);
}

.lf-digest-submit:focus-visible {
	outline: 3px solid rgba(8, 167, 222, 0.28);
	outline-offset: 3px;
}

.lf-digest-submit[disabled] {
	opacity: 0.62;
	cursor: default;
	transform: none;
}

.lf-digest-submit span {
	font-size: 20px;
	font-weight: 400;
	line-height: 0;
}

@media (max-width: 760px) {
	.lf-digest {
		margin: 18px auto;
		border-radius: 12px;
	}

	.lf-digest-hero {
		padding: 30px 24px;
	}

	.lf-digest-body {
		padding: 30px 24px 34px;
	}

	.lf-digest-choice-grid,
	.lf-digest-parish-grid,
	.lf-digest-frequency-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.lf-digest-hero {
		gap: 14px;
		padding: 25px 18px;
	}

	.lf-digest-hero-icon {
		flex-basis: 43px;
		width: 43px;
		height: 43px;
	}

	.lf-digest-hero-icon svg {
		width: 23px;
		height: 23px;
	}

	.lf-digest-body {
		padding: 26px 18px 30px;
	}

	.lf-digest-section {
		padding-bottom: 28px;
	}

	.lf-digest-section + .lf-digest-section {
		padding-top: 28px;
	}

	.lf-digest-choice-grid,
	.lf-digest-parish-grid {
		grid-template-columns: 1fr;
	}

	.lf-digest-frequency-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lf-digest-selection-summary {
		flex-direction: column;
	}

	.lf-digest-submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lf-digest *,
	.lf-digest *::before,
	.lf-digest *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
