/**
 * Seven Pixels — site chrome: headers, footers and the section rhythm.
 *
 * Styles the classes the generated templates carry (bin/advlib/chrome.py,
 * sections.py) and the chrome widgets (src/Elementor/Widgets/: Church_Info,
 * Social_Links, Term_List, Copyright, Visit_Button). Loaded on every
 * front-end request by Elementor\Widgets\Chrome: the header and the footer
 * are on every page.
 *
 * Colour: nothing here names a colour of its own. Surfaces and inks are the
 * design tokens (`--adv-surface-2`, `--adv-ink-muted`, `--adv-line`,
 * `--adv-on-primary`, `--adv-focus`); the footer's dark band defines its
 * own ink from the kit's `adv_on_band` and tints of it, so every palette and
 * the dark mode get the same contrast. Fills come from the Elementor kit
 * (`--e-global-color-*`) through each template's `__globals__`.
 *
 * Specificity: Elementor prints a widget's own rules as
 * `.elementor-N .elementor-element.elementor-element-ID …` (four to five
 * classes). Where a rule here has to win one of those, the block class is
 * repeated (`.adv-header-nav.adv-header-nav`) instead of using !important.
 *
 * Names: `adv-header-*` and `adv-footer-*` / `adv-footer__{grid,col,bar,
 * band,heading,about}` only. advent-lite's own header and footer use
 * `adv-header__*` and `adv-footer__{inner,top,cols,legal,brand,giant}`;
 * the two sets do not overlap.
 */

/* ------------------------------------------------------------ shared bits */

.adv-screen-reader-text {
	block-size: 1px;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	inline-size: 1px;
	overflow: hidden;
	position: absolute !important;
	white-space: nowrap;
}

.adv-chrome-icon {
	aspect-ratio: 1;
	block-size: 1.25em;
	flex: 0 0 auto;
	inline-size: 1.25em;
}

/* A white logo for a dark band when the site has no light variant. */
.adv-logo--light img.adv-logo-filter {
	filter: brightness(0) invert(1);
}

.adv-logo--light .adv-site-logo__text {
	color: var(--e-global-color-adv_on_band, var(--adv-on-primary, #fff));
}

/* ================================================================ Header */

.adv-header {
	--adv-nav-px: 14px;
	--adv-header-ring: var(--adv-focus, currentColor);
}

.adv-header.adv-header--line,
.adv-header .adv-header--line {
	border-block-end: 1px solid var(--adv-line, rgba(0, 0, 0, 0.1));
}

.adv-header :is(a, button, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--adv-header-ring);
	outline-offset: 2px;
}

/* The logo is sized by its Max Width control; keep it sharp and steady. */
.adv-header .adv-header-logo img {
	block-size: auto;
	display: block;
	max-inline-size: 100%;
	transition: max-block-size 0.2s ease;
}

/* ---- Primary nav: one line, medium weight, a 2 px mark under the words. */

.adv-header .adv-header-nav.adv-header-nav.adv-header-nav .elementor-nav-menu--main .elementor-item {
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.005em;
	line-height: 1.25;
	white-space: nowrap;
}

/* Elementor's underline pointer spans the whole item, padding included, so
   neighbouring marks touch and read as one bar under the menu. Inset it to
   the text. */
.adv-header .adv-header-nav.adv-header-nav.adv-header-nav .elementor-nav-menu--main .elementor-item::after {
	block-size: 2px;
	border-radius: 2px;
	inline-size: auto;
	inset-block-end: 4px;
	inset-inline: var(--adv-nav-px);
}

.adv-header .adv-header-nav .elementor-nav-menu--main .elementor-item::before {
	content: none;
}

.adv-header .adv-header-nav .elementor-nav-menu--main .sub-arrow {
	font-size: 0.7em;
	opacity: 0.75;
	padding-inline-start: 0.4em;
}

.adv-header .adv-header-nav .elementor-nav-menu--dropdown .elementor-item,
.adv-header .adv-header-nav .elementor-nav-menu--main .elementor-nav-menu--dropdown a {
	font-size: 0.9375rem;
	min-block-size: 2.75rem;
}

.adv-header .adv-header-nav .elementor-menu-toggle {
	block-size: 2.75rem;
	border-radius: 0.5rem;
	inline-size: 2.75rem;
	padding: 0;
}

/* Without Elementor Pro the menu is the plugin's adv-nav-menu (its mark is
   already inset to the text) and the search is a field, not a toggle. */
.adv-header .adv-header-nav .adv-nav__list--horizontal > .adv-nav__item > .adv-nav__link {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
}

.adv-header .adv-header-nav .adv-nav__list--horizontal {
	flex-wrap: nowrap;
}

.adv-header .adv-header-search .adv-search {
	--adv-search-height: 2.5rem;
	--adv-search-radius: 999px;
	inline-size: 11rem;
	overflow: hidden;
}

.adv-header .adv-header-search .adv-search__input {
	font-size: 0.875rem;
}

.adv-header .adv-header-search .adv-search__button {
	min-inline-size: 2.5rem;
	padding: 0;
}

/* ---- Actions: search, login and the visit pill, on the nav's baseline. */

.adv-header .adv-header-actions {
	align-items: center;
}

.adv-header .adv-header-actions > .adv-header-cta {
	margin-inline-start: 0.5rem;
}

/* A widget that printed nothing (no visit page, no social profile) leaves
   no box and no gap. */
.adv-header :is(.elementor-widget-adv-visit-button, .elementor-widget-adv-social-links):not(:has(a, .adv-widget-notice)) {
	display: none;
}

.adv-header .adv-header-search .elementor-search-form__toggle {
	--e-search-form-toggle-size: 2.5rem;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.adv-header .adv-header-search .elementor-search-form__toggle:hover,
.adv-header .adv-header-search .elementor-search-form__toggle:focus-visible {
	background-color: color-mix(in srgb, currentColor 12%, transparent);
}

.adv-header .adv-header-search.adv-header-search .elementor-search-form__toggle :is(i, svg) {
	block-size: 1.125rem;
	font-size: 1.125rem;
	inline-size: 1.125rem;
}

.adv-header .adv-header-search.adv-header-search .elementor-search-form__toggle i::before {
	font-size: 1.125rem;
}

.adv-header .adv-header-login .elementor-icon-list-item > a {
	align-items: center;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	gap: 0.45rem;
	min-block-size: 2.5rem;
	padding-inline: 0.625rem;
	transition: background-color 0.2s ease;
}

.adv-header .adv-header-login .elementor-icon-list-item > a:hover {
	background-color: color-mix(in srgb, currentColor 12%, transparent);
}

.adv-header .adv-header-login .elementor-icon-list-icon {
	padding: 0;
}

.adv-header .adv-header-login .elementor-icon-list-text {
	padding: 0;
	white-space: nowrap;
}

/* Under 1600 px the label would crowd the menu: keep the icon, keep the
   name for assistive tech. */
@media (max-width: 1599px) {
	.adv-header .adv-header-login .elementor-icon-list-text {
		block-size: 1px;
		clip-path: inset(50%);
		inline-size: 1px;
		overflow: hidden;
		position: absolute;
	}

	.adv-header .adv-header-login .elementor-icon-list-item > a {
		inline-size: 2.5rem;
		justify-content: center;
		padding-inline: 0;
	}
}

/* A long menu (six items or more) starts tightening earlier, at 1439 px:
   without the session link and a step smaller, it keeps one line beside
   the search and the pill. */
@media (max-width: 1439px) {
	.adv-header:has(:is(.elementor-nav-menu--main > .elementor-nav-menu, .adv-nav__list--horizontal) > li:nth-child(6)) {
		--adv-nav-px: 10px;
	}

	.adv-header:has(:is(.elementor-nav-menu--main > .elementor-nav-menu, .adv-nav__list--horizontal) > li:nth-child(6)) .adv-header-actions > .adv-header-login {
		display: none;
	}

	.adv-header:has(.elementor-nav-menu--main > .elementor-nav-menu > li:nth-child(6)) .adv-header-nav.adv-header-nav.adv-header-nav .elementor-nav-menu--main .elementor-item {
		font-size: 0.875rem;
		padding-inline: var(--adv-nav-px);
	}
}

/* 1100–1279 px: the label goes first, then the nav tightens a step. Should
   a long menu still not fit, it wraps to a second line (right-aligned)
   rather than run under the actions. */
@media (max-width: 1279px) {
	.adv-header .adv-header-actions > .adv-header-login {
		display: none;
	}

	.adv-header {
		--adv-nav-px: 10px;
	}

	.adv-header .adv-header-nav.adv-header-nav.adv-header-nav .elementor-nav-menu--main .elementor-item {
		font-size: 0.875rem;
		padding-inline: var(--adv-nav-px);
	}

	.adv-header .adv-header-nav.adv-header-nav .elementor-nav-menu--main > .elementor-nav-menu {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.adv-header .adv-header-nav .adv-nav__list--horizontal {
		flex-wrap: wrap;
	}

	/* Six items or more: the search waits too and the menu tightens another
	   step, so it holds one line down to 1100 px. */
	.adv-header:has(:is(.elementor-nav-menu--main > .elementor-nav-menu, .adv-nav__list--horizontal) > li:nth-child(6)) {
		--adv-nav-px: 8px;
	}

	.adv-header:has(:is(.elementor-nav-menu--main > .elementor-nav-menu, .adv-nav__list--horizontal) > li:nth-child(6)) .adv-header-actions > .adv-header-search {
		display: none;
	}

	.adv-header:has(.elementor-nav-menu--main > .elementor-nav-menu > li:nth-child(6)) .adv-header-nav.adv-header-nav.adv-header-nav .elementor-nav-menu--main .elementor-item {
		font-size: 0.8125rem;
	}

	.adv-header .adv-header-nav .adv-nav__list--horizontal > .adv-nav__item > .adv-nav__link {
		font-size: 0.875rem;
	}

	.adv-header .adv-header-nav.adv-header-nav.elementor-nav-menu__align-center .elementor-nav-menu--main > .elementor-nav-menu {
		justify-content: center;
	}
}

/* The search field (no Pro) is wider than a toggle: it waits for 1440 px. */
@media (max-width: 1439px) {
	.adv-header .adv-header-actions > .adv-header-search:has(.adv-search) {
		display: none;
	}
}

@media (max-width: 1179px) {
	.adv-header .adv-header-actions > .adv-header-search {
		display: none;
	}
}

/* 1000–1099 px with a long menu (six items or more): the menu keeps its one
   line and the actions wait for a wider screen. */
@media (min-width: 1000px) and (max-width: 1099px) {
	.adv-header:has(:is(.elementor-nav-menu--main > .elementor-nav-menu, .adv-nav__list--horizontal) > li:nth-child(6)) .adv-header-actions.adv-header-actions {
		display: none;
	}
}

/* 768–999 px: beside the sabbath column there is room for the logo and the
   menu, nothing else. */
@media (min-width: 768px) and (max-width: 999px) {
	.adv-header .adv-header-actions.adv-header-actions {
		display: none;
	}
}

@media (max-width: 1024px) {
	.adv-header {
		--adv-nav-px: 8px;
	}

	.adv-header .adv-header-nav.adv-header-nav.adv-header-nav .elementor-nav-menu--main .elementor-item {
		font-size: 0.8125rem;
	}
}

/* Phones: logo | pill | menu button. The pill sits beside the button (or
   beside the sabbath column, whose own button opens the drawer there). */
@media (max-width: 767px) {
	/* Elementor makes child containers 100 % wide on a phone. */
	.adv-header .adv-header-actions.adv-header-actions {
		--width: auto;
		flex: 0 0 auto;
		inline-size: auto;
		margin-inline-start: auto;
		max-inline-size: none;
		order: 2;
	}

	.adv-header .adv-header-actions > :not(.adv-header-cta) {
		display: none;
	}

	.adv-header .adv-header-actions > .adv-header-cta {
		margin-inline-start: 0;
	}

	.adv-header .adv-header-main > .adv-header-nav.adv-header-nav,
	.adv-header.adv-header-main > .adv-header-nav.adv-header-nav {
		flex: 0 0 auto;
		inline-size: auto;
		order: 3;
	}
}

@media (max-width: 359px) {
	.adv-header .adv-header-actions.adv-header-actions {
		display: none;
	}
}

/* ---- Centred header: two side zones of equal width keep the logo centred. */

.adv-header .adv-header-top > .adv-header-side {
	flex: 1 1 0;
	inline-size: auto;
	min-inline-size: 0;
}

@media (max-width: 999px) {
	.adv-header .adv-header-top > .adv-header-side--start {
		display: none;
	}

	.adv-header .adv-header-top {
		justify-content: space-between;
	}
}

@media (min-width: 768px) and (max-width: 999px) {
	.adv-header .adv-header-top {
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.adv-header .adv-header-top > .adv-header-side--end {
		flex: 0 0 auto;
	}

	.adv-header .adv-header-main--centred > .adv-header-nav.adv-header-nav {
		flex: 0 0 auto;
		inline-size: auto;
	}
}

/* ---- Slim bar above the main row. */

.adv-header .adv-header-topbar {
	font-size: 0.8125rem;
	min-block-size: 2.5rem;
}

.adv-header .adv-header-topbar .adv-social-links {
	--adv-sl-size: 2.25rem;
	gap: 0.125rem;
}

/* ---- Sticky (Elementor's sticky effects class): a tighter bar. */

.adv-header.adv-header--sticky {
	transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.adv-header.adv-header--sticky.elementor-sticky--effects {
	box-shadow: 0 2px 14px var(--adv-shadow, rgba(0, 0, 0, 0.12));
	padding-block: 6px;
}

.adv-header.adv-header--sticky.elementor-sticky--effects .adv-header-logo img,
.adv-header.adv-smart--scrolled .adv-header-logo img {
	max-block-size: 2.5rem;
	inline-size: auto;
}

/* ---- The visit pill (adv-visit-button), in a header or anywhere else. */

.adv-visit-btn {
	--adv-vb-fill: var(--adv-vb-bg, var(--e-global-color-primary, currentColor));
	align-items: center;
	background-color: var(--adv-vb-fill);
	border-radius: 999px;
	box-sizing: border-box;
	color: var(--adv-vb-ink, var(--adv-on-primary, var(--e-global-color-adv_on_primary, #fff)));
	display: inline-flex;
	font-size: 1rem;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-block-size: 2.75rem;
	padding: 0.5rem 1.5rem;
	text-decoration: none;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.adv-visit--sm .adv-visit-btn {
	font-size: 0.875rem;
	min-block-size: 2.5rem;
	padding: 0.375rem 1.125rem;
}

.adv-visit-btn:hover,
.adv-visit-btn:focus-visible {
	background-color: var(--adv-vb-bg-hover, var(--adv-vb-fill));
	color: var(--adv-vb-ink, var(--adv-on-primary, var(--e-global-color-adv_on_primary, #fff)));
	text-decoration: none;
}

/* The header ring falls back to currentColor (the pill's light ink, invisible
   on a white bar): ring the pill in its own fill. Three classes beat the
   header's (0,2,1) `:focus-visible` rule. */
.adv-header .adv-visit-btn:focus-visible,
.adv-visit .adv-visit-btn:focus-visible {
	outline: 2px solid var(--adv-vb-fill);
	outline-offset: 3px;
}

/* Without a hover fill of its own, the pill darkens a step. */
.adv-visit-btn:is(:hover, :focus-visible) {
	filter: brightness(0.9);
}

@media (pointer: coarse) {
	.adv-visit--sm .adv-visit-btn {
		min-block-size: 2.75rem;
	}
}

@media (max-width: 767px) {
	.adv-header .adv-visit--sm .adv-visit-btn {
		font-size: 0.8125rem;
		padding-inline: 0.875rem;
	}
}

/* ================================================================ Footer */

/* Scoped to the Elementor footer (`:where(.elementor-element)`, no added
   specificity): advent-lite's own footer is also `.adv-footer` (#site-footer,
   --adv-lite-footer-*) and must never take these rules or tokens. */

.adv-footer:where(.elementor-element) {
	/* The footer is a dark band (the kit's `adv_band` or ALPS darker), dark
	   in both modes: its ink is the band's, not --adv-on-primary (the page
	   surface in dark mode). */
	--adv-footer-ink: var(--e-global-color-adv_on_band, var(--adv-on-primary, #fff));
	--adv-footer-soft: color-mix(in srgb, var(--adv-footer-ink) 80%, transparent);
	--adv-footer-line: color-mix(in srgb, var(--adv-footer-ink) 18%, transparent);
	color: var(--adv-footer-ink);
	container-type: inline-size;
}

.adv-footer:where(.elementor-element) :is(a, button, summary, [tabindex]):focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--adv-footer-ink);
	outline-offset: 3px;
}

.adv-footer:where(.elementor-element) :is(ul, ol) {
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-footer:where(.elementor-element) li {
	margin: 0;
	padding: 0;
}

.adv-footer:where(.elementor-element) li::before {
	content: none;
}

/* ---- The grid: 1 → 2 → 4 tracks, by the footer's own width. */

.adv-footer:where(.elementor-element) .adv-footer__grid {
	--display: grid;
	align-items: start;
	display: grid;
	gap: 2.5rem 2rem;
	grid-template-columns: minmax(0, 1fr);
}

.adv-footer:where(.elementor-element) .adv-footer__grid > .adv-footer__col {
	--width: auto;
	inline-size: auto;
	max-inline-size: none;
	min-inline-size: 0;
}

@container (min-width: 36rem) {
	.adv-footer:where(.elementor-element) .adv-footer__grid {
		gap: 3rem 2.5rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (min-width: 64rem) {
	.adv-footer:where(.elementor-element) .adv-footer__grid {
		column-gap: clamp(2rem, 4cqi, 4rem);
		grid-template-columns: minmax(0, 3fr) minmax(0, 3.4fr) minmax(0, 3.6fr) minmax(0, 2fr);
	}
}

/* ---- Column parts. */

.adv-footer:where(.elementor-element) .adv-footer-logo img {
	block-size: auto;
	display: block;
	max-inline-size: 100%;
}

.adv-footer:where(.elementor-element) .adv-footer__heading .elementor-heading-title {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.5;
	margin: 0;
	text-transform: none;
}

/* The heading row has the height of the logo's first line of text, so the
   three link columns start on one line and the brand column beside them. */
.adv-footer:where(.elementor-element) .adv-footer__col > .adv-footer__heading {
	margin-block-end: 0.125rem;
}

.adv-footer:where(.elementor-element) .adv-footer__about :is(p, .elementor-widget-container) {
	margin: 0;
}

.adv-footer:where(.elementor-element) .adv-footer__about p {
	color: var(--adv-footer-soft);
	font-size: 0.9375rem;
	line-height: 1.6;
	max-inline-size: 36ch;
	text-wrap: pretty;
}

/* Footer menus (Elementor Pro's Nav Menu or the plugin's adv-nav-menu). */
.adv-footer:where(.elementor-element) .adv-footer-nav.adv-footer-nav.adv-footer-nav :is(.elementor-item, .menu-item > a) {
	color: var(--adv-footer-soft);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.4;
	min-block-size: 2.25rem;
	text-decoration: none;
	transition: color 0.15s ease;
}

.adv-footer:where(.elementor-element) .adv-footer-nav.adv-footer-nav.adv-footer-nav :is(.elementor-item, .menu-item > a):is(:hover, :focus-visible, .elementor-item-active) {
	color: var(--adv-footer-ink);
}

.adv-footer:where(.elementor-element) .adv-footer-nav :is(.elementor-item, .menu-item > a):hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.adv-footer:where(.elementor-element) .adv-footer-nav .elementor-item::before,
.adv-footer:where(.elementor-element) .adv-footer-nav .elementor-item::after {
	content: none;
}

/* ---- Compact footer: one band. */

.adv-footer:where(.elementor-element) .adv-footer__band {
	row-gap: 1.25rem;
}

/* Stacked (a phone): the menu starts on the logo's left edge. */
@container (max-width: 40rem) {
	.adv-footer:where(.elementor-element) .adv-footer__band .adv-footer-nav.adv-footer-nav .elementor-nav-menu {
		justify-content: flex-start;
		margin-inline-start: -12px;
	}

	.adv-footer:where(.elementor-element) .adv-footer__band .adv-footer-nav {
		inline-size: 100%;
	}
}

/* ---- Credits bar. */

.adv-footer:where(.elementor-element) .adv-footer__bar {
	border-block-start: 1px solid var(--adv-footer-line);
}

/* ============================================================== Widgets */

/* ---- adv-church-info */

.adv-church-info {
	color: var(--adv-ci-ink, inherit);
	display: grid;
	font-size: 0.9375rem;
	gap: 0.875rem;
	line-height: 1.5;
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-church-info :is(ul, li) {
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-church-info li::before {
	content: none;
}

.adv-church-info__row {
	align-items: start;
	column-gap: 0.75rem;
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
}

.adv-church-info .adv-chrome-icon {
	block-size: 1.25rem;
	color: var(--adv-ci-icon, currentColor);
	inline-size: 1.25rem;
	margin-block-start: 0.125rem;
	opacity: 0.8;
}

.adv-church-info__text {
	min-inline-size: 0;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.adv-church-info a {
	color: inherit;
	text-decoration: none;
}

/* `color` here too: the theme's `a:hover` weighs the same as `.adv-church-info a`
   and, loaded later, turned footer links dark on the dark band. */
.adv-church-info a:hover {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* The meeting every office row shares («Atención en oficina»), said once
   above the days instead of on each line (R4-2). */
.adv-church-info__hours-title {
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin: 0 0 0.375rem;
	text-transform: uppercase;
}

.adv-church-info__day + .adv-church-info__day {
	margin-block-start: 0.625rem;
}

.adv-church-info__day-name {
	display: block;
	font-weight: 600;
}

/* Times in one column, names in the other: a time never breaks in two. */
.adv-church-info ul.adv-church-info__services {
	column-gap: 0.75rem;
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
}

.adv-church-info__services > li {
	display: contents;
}

.adv-church-info__time {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.adv-church-info__service {
	text-wrap: balance;
}

.adv-footer:where(.elementor-element) .adv-church-info {
	color: var(--adv-ci-ink, var(--adv-footer-soft));
}

.adv-footer:where(.elementor-element) .adv-church-info__hours-title,
.adv-footer:where(.elementor-element) .adv-church-info__day-name {
	color: var(--adv-footer-ink);
}

/* In line: a contact bar. */
.adv-ci--linea .adv-church-info {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8125rem;
	gap: 0.125rem 1.5rem;
}

.adv-ci--linea .adv-church-info__row {
	align-items: center;
	column-gap: 0.4rem;
	display: inline-flex;
	min-block-size: 2rem;
}

.adv-ci--linea .adv-church-info .adv-chrome-icon {
	block-size: 1rem;
	inline-size: 1rem;
	margin: 0;
}

.adv-ci--linea .adv-church-info__text {
	text-wrap: nowrap;
}

@media (max-width: 1024px) {
	.adv-ci--linea .adv-church-info__row--address {
		display: none;
	}
}

/* ---- adv-social-links */

.adv-social-links {
	--adv-sl-size: 2.75rem;
	color: var(--adv-sl-ink, currentColor);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-social-links > li {
	flex: 0 0 auto;
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-social-links > li::before {
	content: none;
}

.adv-social-links__link {
	aspect-ratio: 1;
	block-size: var(--adv-sl-size);
	border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
	border-radius: 50%;
	color: inherit;
	display: grid;
	inline-size: var(--adv-sl-size);
	place-items: center;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.adv-social-links__link .adv-chrome-icon {
	block-size: 1.25rem;
	inline-size: 1.25rem;
}

.adv-social-links__link:hover,
.adv-social-links__link:focus-visible {
	background-color: color-mix(in srgb, currentColor 14%, transparent);
	border-color: currentColor;
	color: var(--adv-sl-accent, inherit);
}

.adv-social--relleno .adv-social-links__link {
	background-color: color-mix(in srgb, currentColor 14%, transparent);
	border-color: transparent;
}

.adv-social--relleno .adv-social-links__link:hover {
	background-color: color-mix(in srgb, currentColor 26%, transparent);
}

.adv-social--simple .adv-social-links {
	gap: 0;
}

.adv-social--simple .adv-social-links__link {
	border-color: transparent;
}

/* ---- adv-term-list */

.adv-term-list {
	--adv-tl-cols: 2;
	color: var(--adv-tl-ink, inherit);
	font-size: 0.9375rem;
	line-height: 1.4;
}

/* Multi-column, so the list reads down each column (A–M, then N–Z). */
.adv-term-list ul.adv-term-list__items {
	column-gap: 1.5rem;
	/* At most N columns, each wide enough for a name: a narrow box gets one. */
	columns: var(--adv-tl-cols) 8.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-term-list__item {
	break-inside: avoid;
	list-style: none;
	margin: 0;
	min-inline-size: 0;
	padding: 0;
}

.adv-term-list__item::before {
	content: none;
}

.adv-term-list__item > a {
	align-items: center;
	color: inherit;
	display: flex;
	min-block-size: 2.25rem;
	overflow-wrap: anywhere;
	padding-block: 0.25rem;
	text-decoration: none;
	transition: color 0.15s ease;
}

.adv-term-list__item > a:hover,
.adv-term-list__all:hover {
	color: var(--adv-tl-hover, inherit);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.adv-term-list__all {
	align-items: center;
	color: inherit;
	display: inline-flex;
	font-weight: 600;
	gap: 0.4rem;
	margin-block-start: 0.5rem;
	min-block-size: 2.75rem;
	text-decoration: none;
}

.adv-term-list__all .adv-chrome-icon {
	block-size: 1rem;
	inline-size: 1rem;
	transition: transform 0.2s ease;
}

.adv-term-list__all:hover .adv-chrome-icon {
	transform: translateX(3px);
}

.adv-footer:where(.elementor-element) .adv-term-list {
	color: var(--adv-tl-ink, var(--adv-footer-soft));
}

.adv-footer:where(.elementor-element) .adv-term-list :is(.adv-term-list__item > a, .adv-term-list__all):hover {
	color: var(--adv-tl-hover, var(--adv-footer-ink));
}

.adv-footer:where(.elementor-element) .adv-term-list__all {
	color: var(--adv-footer-ink);
}

/* Large: a section's own list (ministries), ruled rows. */
.adv-term-list--large .adv-term-list {
	font-size: 1.0625rem;
}

.adv-term-list--large .adv-term-list ul.adv-term-list__items {
	column-gap: 2.5rem;
}

.adv-term-list--large .adv-term-list__item > a {
	border-block-end: 1px solid var(--adv-line, color-mix(in srgb, currentColor 16%, transparent));
	font-weight: 500;
	min-block-size: 3.25rem;
	padding-block: 0.75rem;
}

.adv-term-list--large .adv-term-list__item > a:hover {
	color: var(--adv-tl-hover, var(--e-global-color-primary, inherit));
	text-decoration: none;
}

/* ---- adv-copyright */

.adv-copyright {
	align-items: center;
	color: var(--adv-cr-ink, inherit);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8125rem;
	gap: 0.25rem 2rem;
	justify-content: var(--adv-cr-justify, space-between);
	line-height: 1.5;
}

.adv-copyright .adv-copyright__text {
	margin: 0;
	text-wrap: balance;
}

.adv-copyright__line {
	white-space: nowrap;
}

.adv-copyright__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-copyright__nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-copyright__nav li::before {
	content: none;
}

.adv-copyright__nav a {
	align-items: center;
	color: var(--adv-cr-link, inherit);
	display: inline-flex;
	min-block-size: 2.25rem;
	text-decoration: none;
}

.adv-copyright__nav a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.adv-footer:where(.elementor-element) .adv-copyright {
	color: var(--adv-cr-ink, var(--adv-footer-soft));
}

.adv-footer:where(.elementor-element) .adv-copyright__nav a:hover {
	color: var(--adv-cr-link, var(--adv-footer-ink));
}

@media (pointer: coarse) {
	.adv-term-list__item > a,
	.adv-copyright__nav a,
	.adv-footer:where(.elementor-element) .adv-footer-nav.adv-footer-nav.adv-footer-nav :is(.elementor-item, .menu-item > a) {
		min-block-size: 2.75rem;
	}
}

/* ============================================== Size-container widgets */

/* A size container has no intrinsic width. In a flex container that may
   wrap (every Elementor container does below 768 px) an item is measured
   before it is stretched: at 0 px wide, so its text stacks letter by letter
   and the page comes out several times too tall. A definite width on the
   widget's own box makes the browser measure it at its real width. */
/* (Repeated in each widget's own stylesheet; here so it also holds while
   those load late.) */
.elementor-widget:is(.elementor-widget-adv-event-card, .elementor-widget-adv-events-library, .elementor-widget-adv-event-hero, .elementor-widget-adv-event-sections, .elementor-widget-adv-calendar, .elementor-widget-adv-downloads-library, .elementor-widget-adv-download-page) {
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
}

/* ============================================================== Sections */

/* One left edge on wide screens: a page section's content is capped to the
   page grid and centred; its background still spans the band. */
.adv-section--page > :is(.e-con, .elementor-widget) {
	margin-inline: auto;
}

/* An auto margin turns off a flex item's stretch: say the width again. */
.adv-section--page > .elementor-widget {
	inline-size: 100%;
}

.adv-section--page > :is(.e-con, .elementor-widget) {
	max-inline-size: min(100%, var(--adv-section-max, var(--alps-grid-max, 77.5rem)));
}

/* ---- The section header: eyebrow + headline | link. */

.adv-section-head {
	margin-block-end: clamp(0.25rem, 1vw, 0.75rem);
}

.adv-section-head .adv-section-head__text {
	flex: 1 1 18rem;
	inline-size: auto;
	min-inline-size: 0;
}

:is(.adv-section-head, .adv-panel) .adv-kicker .elementor-heading-title {
	align-items: center;
	display: flex;
	font-size: 0.75rem;
	font-weight: 600;
	gap: 0.75rem;
	letter-spacing: 0.14em;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

:is(.adv-section-head, .adv-panel) .adv-kicker .elementor-heading-title::before {
	background: currentColor;
	block-size: 2px;
	content: "";
	flex: 0 0 auto;
	inline-size: 1.75rem;
}

.adv-section-head .adv-section-title .elementor-heading-title {
	font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.625rem);
	letter-spacing: -0.015em;
	line-height: 1.12;
	margin: 0;
	text-wrap: balance;
}

.adv-section-head .adv-section-lead :is(p, .elementor-widget-container) {
	margin: 0;
}

.adv-section-head .adv-section-lead p {
	font-size: 1.0625rem;
	line-height: 1.55;
	max-inline-size: 60ch;
	text-wrap: pretty;
}

.adv-section-subtitle .elementor-heading-title {
	font-size: 1.5rem;
	line-height: 1.3;
	margin: 0;
}

/* «Ver todos →»: a button widget, as a text link with a 44 px target. */
.adv-section-link.adv-section-link .elementor-button {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	display: inline-flex;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	min-block-size: 2.75rem;
	padding: 0;
	text-decoration: none;
}

.adv-section-link .elementor-button-content-wrapper {
	align-items: center;
	gap: 0.5rem;
}

.adv-section-link .elementor-button-icon {
	margin: 0;
	transition: transform 0.2s ease;
}

.adv-section-link .elementor-button-icon :is(svg, i) {
	block-size: 0.875em;
	font-size: 0.875em;
	inline-size: 0.875em;
}

.adv-section-link .elementor-button:is(:hover, :focus-visible) .elementor-button-text {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.adv-section-link .elementor-button:is(:hover, :focus-visible) .elementor-button-icon {
	transform: translateX(4px);
}

.adv-section-link .elementor-button:focus-visible {
	outline: 2px solid var(--adv-focus, currentColor);
	outline-offset: 4px;
}

/* ---- A quiet side panel. */

.adv-panel {
	background: var(--adv-surface-2, color-mix(in srgb, currentColor 6%, transparent));
	border-radius: 1rem;
}

.adv-panel .adv-next-service .elementor-heading-title {
	font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
	line-height: 1.35;
	margin: 0;
	text-wrap: balance;
}

/* ---- Card rows (Loop Grid / adv-posts): equal heights, optional snap. */

.adv-card-row :is(.elementor-loop-container, .adv-posts--template) {
	align-items: stretch;
}

.adv-card-row :is(.e-loop-item, .adv-post-card--template) {
	display: flex;
	flex-direction: column;
	min-inline-size: 0;
}

.adv-card-row :is(.e-loop-item, .adv-post-card--template) > :is(.e-con, .elementor) {
	flex: 1 1 auto;
}

.adv-card-row :is(.e-loop-item, .adv-post-card--template) > .elementor > .e-con {
	block-size: 100%;
}

/* Phones: one row that scrolls sideways with snap. A grid, not a flex row:
   its columns are definite, so a card that is a size container (the event
   card) is measured at its real width. */
@media (max-width: 767px) {
	.adv-card-row--snap.adv-card-row--snap :is(.elementor-loop-container, .adv-posts--template) {
		display: grid;
		gap: 1rem;
		grid-auto-columns: min(84%, 21rem);
		grid-auto-flow: column;
		grid-template-columns: none;
		margin-inline: -16px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding: 0.25rem 16px 0.75rem;
		scroll-padding-inline: 16px;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
	}

	.adv-card-row--snap :is(.e-loop-item, .adv-post-card--template) {
		scroll-snap-align: start;
	}

	/* Inside a scroller, a size container's height is measured before its
	   width is known (it came out three times too tall): in the row, the
	   event card is a plain box. Its type scale is clamped either way. */
	.adv-card-row--snap :is(.adv-evcard-wrap, .adv-evcard) {
		container-type: normal;
	}

	/* Elementor's own first child (its style element) takes no column. */
	.adv-card-row--snap :is(.elementor-loop-container, .adv-posts--template) > :not(.e-loop-item, .adv-post-card--template) {
		display: none;
	}
}

/* ================================================================= Cards */

/* One card for the whole kit: the loop templates of bin/advlib/cards.py
   (`adv-card`: sermón, noticia, líder, aviso), the plugin's post grid
   (`adv-posts`, cards layout, under `adv-cards`) and the downloads grid
   (`adv-downloads`). The event card (assets/events/library.css) and the
   resource card (assets/downloads/library.css) follow the same scale.

   Scale — eyebrow 12.5 px caps 600 muted · title 20–22 px 700 ink, two
   lines · secondary 15 px 400 muted · text 15 px 400 muted, three lines ·
   meta 13.5 px 500 muted. Ink, never the kit's primary: primary is for the
   link under the cursor. Selectors repeat the block class because the
   themes (ALPS above all) set weight and colour on headings and links. */

:is(.adv-card, .adv-cards .adv-post-card, .adv-downloads--cards .adv-download) {
	--adv-card-ink: var(--adv-ink, var(--e-global-color-text, CanvasText));
	--adv-card-muted: var(--adv-ink-muted, color-mix(in srgb, var(--adv-card-ink) 72%, transparent));
	--adv-card-line: var(--adv-line, color-mix(in srgb, var(--adv-card-ink) 16%, transparent));
	--adv-card-accent: var(--e-global-color-primary, var(--adv-card-ink));
	background: var(--adv-surface-raised, transparent);
	border: 1px solid var(--adv-card-line);
	border-radius: 1rem;
	color: var(--adv-card-ink);
	min-inline-size: 0;
	overflow: hidden;
	position: relative;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:is(.adv-card, .adv-cards .adv-post-card, .adv-downloads--cards .adv-download):is(:hover, :focus-within) {
	border-color: color-mix(in srgb, var(--adv-card-accent) 45%, var(--adv-card-line));
	box-shadow: 0 10px 28px var(--adv-shadow, rgba(0, 0, 0, 0.12));
}

/* ---- Equal heights: the loop cell hands its height down to the frame. */

:is(.e-loop-item, .adv-post-card--template):has(> .adv-card, > .elementor > .adv-card) {
	display: flex;
	flex-direction: column;
}

.adv-post-card--template > .elementor:has(> .adv-card) {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.e-con.adv-card.adv-card {
	--padding-block-end: 0px;
	--padding-block-start: 0px;
	--padding-inline-end: 0px;
	--padding-inline-start: 0px;
	flex: 1 1 auto;
	padding: 0;
}

.adv-card > .adv-card__body {
	flex: 1 1 auto;
}

/* ---- Media: one frame for every card of a kind. */

.adv-card .adv-card__media :is(a, .elementor-widget-container) {
	display: block;
}

.adv-card .adv-card__media.adv-card__media img,
.adv-cards .adv-post-card__media img,
.adv-downloads--cards .adv-download__media img {
	aspect-ratio: 16 / 9;
	block-size: auto;
	border-radius: 0;
	display: block;
	inline-size: 100%;
	max-inline-size: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.adv-card--lider .adv-card__media.adv-card__media img {
	aspect-ratio: 1;
	object-position: 50% 20%;
}

.adv-cards .adv-post-card__media {
	aspect-ratio: 16 / 9;
	background: color-mix(in srgb, var(--adv-card-accent) 10%, transparent);
	flex: 0 0 auto;
}

@media (hover: hover) {
	:is(.adv-card, .adv-cards .adv-post-card):hover :is(.adv-card__media, .adv-post-card__media) img {
		transform: scale(1.04);
	}
}

/* ---- Text lines (loop templates: Heading / Post Title widgets). */

.adv-card.adv-card :is(.adv-card__eyebrow, .adv-card__title, .adv-card__sub, .adv-card__text, .adv-card__meta) .elementor-heading-title {
	margin: 0;
	padding: 0;
	text-indent: 0;
}

.adv-card.adv-card .adv-card__eyebrow.adv-card__eyebrow .elementor-heading-title,
.adv-cards.adv-cards .adv-post-card .adv-post-card__meta {
	color: var(--adv-card-muted);
	font-size: 0.78125rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.adv-card.adv-card .adv-card__title.adv-card__title .elementor-heading-title,
.adv-cards.adv-cards .adv-post-card .adv-post-card__title,
.adv-downloads--cards.adv-downloads--cards .adv-download .adv-download__title {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--adv-card-ink);
	display: -webkit-box;
	font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
	font-weight: 700;
	letter-spacing: -0.005em;
	line-clamp: 2;
	line-height: 1.25;
	overflow: hidden;
	text-transform: none;
	text-wrap: balance;
}

.adv-card.adv-card .adv-card__title.adv-card__title .elementor-heading-title a,
.adv-cards.adv-cards .adv-post-card .adv-post-card__title a,
.adv-downloads--cards.adv-downloads--cards .adv-download .adv-download__title a {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
}

.adv-card.adv-card .adv-card__title.adv-card__title .elementor-heading-title a:is(:hover, :focus-visible),
.adv-cards.adv-cards .adv-post-card .adv-post-card__title a:is(:hover, :focus-visible) {
	color: var(--adv-card-accent);
}

/* The whole card is the title link's target. */
.adv-card .adv-card__title .elementor-heading-title a::after,
.adv-cards .adv-post-card__title a::after {
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.adv-card .adv-card__title .elementor-heading-title a:focus-visible,
.adv-cards .adv-post-card__title a:focus-visible {
	outline: none;
}

.adv-card .adv-card__title .elementor-heading-title a:focus-visible::after,
.adv-cards .adv-post-card__title a:focus-visible::after {
	border-radius: 1rem;
	outline: 2px solid var(--adv-focus, var(--adv-card-accent));
	outline-offset: -2px;
}

.adv-card.adv-card .adv-card__sub.adv-card__sub .elementor-heading-title {
	color: var(--adv-card-muted);
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.45;
	text-transform: none;
}

.adv-card.adv-card .adv-card__text.adv-card__text .elementor-heading-title,
.adv-cards.adv-cards .adv-post-card .adv-post-card__excerpt {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--adv-card-muted);
	display: -webkit-box;
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: 0;
	line-clamp: 3;
	line-height: 1.5;
	overflow: hidden;
	text-transform: none;
}

.adv-card.adv-card .adv-card__meta.adv-card__meta .elementor-heading-title {
	color: var(--adv-card-muted);
	font-size: 0.84375rem;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.4;
	text-transform: none;
}

/* An empty line (a field nobody filled) takes no gap. */
.adv-card .elementor-widget-heading:not(:has(.elementor-heading-title:not(:empty))) {
	display: none;
}

/* The last line of a card sits on its bottom edge; so does its action. */
.adv-card .adv-card__body > .adv-card__meta:last-child,
.adv-card .adv-card__body > .adv-card__action {
	margin-block-start: auto;
	padding-block-start: 0.375rem;
}

.adv-card .adv-card__action {
	position: relative;
	z-index: 2;
}

/* A widget that printed nothing (a notice without a button). */
.adv-card .adv-card__action:not(:has(.elementor-button-text:not(:empty))) {
	display: none;
}

/* A person: the role under the name, as its secondary line. */
.adv-card--lider.adv-card .adv-card__eyebrow.adv-card__eyebrow .elementor-heading-title {
	letter-spacing: 0.06em;
}

/* ---- Compact: image beside the text (a short list next to a large card). */

.adv-card-row--compact .e-con.adv-card.adv-card {
	--flex-direction: row;
	align-items: stretch;
	flex-direction: row;
}

.adv-card-row--compact .adv-card > .adv-card__media {
	flex: 0 0 clamp(6rem, 32%, 9rem);
	inline-size: auto;
}

.adv-card-row--compact .adv-card .adv-card__media :is(.elementor-widget-container, a) {
	block-size: 100%;
}

.adv-card-row--compact .adv-card .adv-card__media.adv-card__media img {
	aspect-ratio: 1;
	block-size: 100%;
}

.adv-card-row--compact .adv-card > .adv-card__body {
	--padding-block-end: 14px;
	--padding-block-start: 14px;
	--padding-inline-end: 16px;
	--padding-inline-start: 16px;
	gap: 4px;
	min-inline-size: 0;
	padding: 14px 16px;
}

.adv-card-row--compact .adv-card.adv-card .adv-card__title.adv-card__title .elementor-heading-title {
	font-size: 1.0625rem;
}

/* ---- adv-posts, cards layout, under `adv-cards`. */

.adv-cards .adv-posts {
	align-items: stretch;
}

.adv-cards .adv-post-card {
	block-size: 100%;
}

.adv-cards .adv-post-card__body {
	gap: 0.5rem;
	padding: 1.125rem;
}

/* The date and category read first, above the title. */
.adv-cards .adv-post-card .adv-post-card__meta {
	gap: 0.125rem 0.75rem;
	order: -1;
}

.adv-cards .adv-post-card__meta :is(a, li) {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
}

.adv-cards .adv-post-card__action {
	margin-block-start: auto;
	padding-block-start: 0.25rem;
	position: relative;
	z-index: 2;
}

.adv-cards.adv-cards .adv-post-card .adv-post-card__button {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--adv-card-accent);
	display: inline-flex;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
	gap: 0.4rem;
	min-block-size: 2.75rem;
	padding: 0;
}

.adv-cards .adv-post-card__button::after {
	content: "\2192";
	transition: transform 0.2s ease;
}

.adv-cards .adv-post-card__button:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.adv-cards .adv-post-card__button:is(:hover, :focus-visible)::after {
	transform: translateX(3px);
}

/* ---- adv-downloads, cards layout. */

.adv-downloads--cards {
	align-items: stretch;
}

.adv-downloads--cards .adv-download {
	block-size: 100%;
	border-radius: 1rem;
	gap: 0.625rem;
	padding: 1.125rem;
}

.adv-downloads--cards .adv-download__media {
	margin: -1.125rem -1.125rem 0.25rem;
}

.adv-downloads--cards .adv-download__meta {
	color: var(--adv-card-muted);
	flex-wrap: nowrap;
	font-size: 0.84375rem;
	opacity: 1;
	overflow: hidden;
	white-space: nowrap;
}

.adv-downloads--cards .adv-download__meta > * {
	flex: 0 1 auto;
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.adv-downloads--cards .adv-download__action {
	margin-block-start: auto;
	position: relative;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.adv-header *,
	.adv-footer:where(.elementor-element) *,
	.adv-section-link *,
	.adv-visit-btn,
	.adv-term-list * {
		transition: none !important;
	}
}
