/*
 * Hampton Mission Partnership theme: the styles theme.json can't express.
 * Loaded on the website and in the editor. Colours, fonts and spacing come from theme.json
 * (as --wp--preset--… variables), so change them there, not here.
 */

:root {
	--hmp-header-h: 60px;
	--hmp-top: var(--wp-admin--admin-bar--height, 0px);
	--hmp-ease: cubic-bezier(.2, .7, .2, 1);
	--hmp-dim: #6f6b98;
}

html { scroll-padding-top: calc(var(--hmp-header-h) + var(--hmp-top) + 12px); }

body {
	overflow-x: clip; /* clip, not hidden, so "Stay in view" (sticky) still works */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Full-width bands sit flush against each other: no gap between sections, header or footer. */
.wp-site-blocks > * + *,
.wp-site-blocks > main > .entry-content > .alignfull + .alignfull,
.entry-content > .alignfull + .alignfull { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }
.hmp-flush > .alignfull:first-child { margin-block-start: 0; }
.hmp-flush > .alignfull:last-child { margin-block-end: 0; }
/* A page made of bands (a restyled page) runs its bands right up to the title and the footer. */
.wp-block-post-content.hmp-flush:has(> .alignfull:first-child) { padding-top: 0 !important; }
.wp-block-post-content.hmp-flush:has(> .alignfull:last-child) { padding-bottom: 0 !important; }

/* ---------- Header: a slim frosted bar that stays at the top ---------- */

.hmp-site-header {
	position: sticky;
	top: var(--hmp-top);
	z-index: 100;
	background: rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(29, 27, 44, .08);
	transition: background-color .3s ease, box-shadow .3s ease;
}
.hmp-site-header.is-scrolled { box-shadow: 0 1px 24px rgba(12, 10, 32, .06); }
.hmp-site-header > .wp-block-group { min-height: var(--hmp-header-h); }
.hmp-site-header .wp-block-site-logo img { height: 40px; width: auto; }
.hmp-site-header .wp-block-site-title { white-space: nowrap; }
.hmp-site-header .wp-block-navigation-item__content { padding-block: 6px; }
.hmp-site-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--magenta); }
.hmp-site-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 16px;
	padding: 8px !important;
	box-shadow: 0 18px 50px rgba(12, 10, 32, .14);
	min-width: 220px !important;
}
.hmp-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 10px; padding: 8px 12px !important; }
.hmp-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--mist); }
.hmp-site-header .wp-block-button__link { padding: 7px 16px; font-size: 14px; }
.hmp-site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
	font-size: 22px;
	font-weight: 600;
}
.hmp-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0 0 0 12px !important; font-size: 17px; font-weight: 500; }
/* The menu has eight items: below 1280px the site name gives way to them (the logo carries the name too). */
.hmp-site-header .wp-block-navigation { flex-wrap: nowrap; }
.hmp-site-header .wp-block-navigation__container { flex-wrap: nowrap; }
.hmp-site-header .wp-block-navigation-item { white-space: nowrap; }
.hmp-site-header .wp-block-site-logo, .hmp-site-header .hmp-header-cta, .hmp-site-header .wp-block-button__link { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1379px) and (min-width: 601px) {
	.hmp-site-header .wp-block-site-title { display: none; }
	.hmp-site-header .wp-block-navigation { --wp--style--block-gap: 16px; gap: 16px; }
}
@media (max-width: 1023px) and (min-width: 601px) {
	.hmp-site-header .hmp-header-cta { display: none; }
	.hmp-site-header .wp-block-navigation { font-size: 14px; gap: 12px; }
}

/* GTranslate's floating language picker: tucked under the header instead of over it. */
#gt_float_wrapper { top: calc(var(--hmp-top) + var(--hmp-header-h) + 12px) !important; right: 12px !important; z-index: 90 !important; }

@media (max-width: 600px) {
	.hmp-site-header .wp-block-site-title { font-size: 15px; }
	.hmp-site-header .hmp-header-cta { display: none; }
}

/* ---------- Bands (the coloured sections) ---------- */

.hmp-band { position: relative; }
.is-style-section-glow, .is-style-section-advent { overflow: hidden; }
.is-style-section-dark .is-style-lead,
.is-style-section-glow .is-style-lead,
.is-style-section-advent .is-style-lead { color: var(--wp--preset--color--muted-light); }
.is-style-section-dark .is-style-eyebrow,
.is-style-section-glow .is-style-eyebrow { color: var(--wp--preset--color--magenta-light); }
.is-style-section-advent .is-style-eyebrow { color: var(--wp--preset--color--gold); }
.is-style-section-dark :where(.wp-element-button:focus-visible, a:focus-visible),
.is-style-section-glow :where(.wp-element-button:focus-visible, a:focus-visible),
.is-style-section-advent :where(.wp-element-button:focus-visible, a:focus-visible) { outline-color: var(--wp--preset--color--magenta-light); }

/* Cards: white tiles with big rounded corners, on grey or dark bands */
.is-style-section-card { height: 100%; }
/* On a white band a card needs an edge to read as a card. */
.is-style-section-card { box-shadow: 0 0 0 1px var(--wp--preset--color--line), 0 18px 50px rgba(12, 10, 32, .06); }
:is(.is-style-section-mist, .is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .is-style-section-card { box-shadow: none; }
.wp-block-column > .is-style-section-card:only-child { height: 100%; }
.is-style-section-card > .wp-block-image:first-child img { border-radius: 18px; }
.is-style-section-card .wp-block-image.hmp-card-photo { margin: -30px -30px 6px; }
.is-style-section-card .wp-block-image.hmp-card-photo img { border-radius: var(--wp--custom--radius--card) var(--wp--custom--radius--card) 0 0; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
a.hmp-card-link, .hmp-card-link a { font-weight: 600; text-decoration: none; }
.hmp-card-link a::after { content: " \203A"; }
.is-style-section-card:has(.hmp-card-link a) { transition: transform .35s var(--hmp-ease), box-shadow .35s var(--hmp-ease); }
.is-style-section-card:has(.hmp-card-link a):hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(12, 10, 32, .12); }

/* ---------- Type styles ---------- */

.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--wp--preset--color--magenta);
}
.is-style-lead {
	font-size: var(--wp--preset--font-size--intro) !important;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
	max-width: 36em;
}
.has-text-align-center.is-style-lead { margin-inline: auto; }
.is-style-gradient { color: var(--wp--preset--color--magenta-light); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.is-style-gradient,
	.hmp-grad {
		background: var(--wp--preset--gradient--headline);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent !important;
		-webkit-box-decoration-break: clone;
		box-decoration-break: clone;
	}
	:where(.is-style-section-mist, .is-style-section-card, body) > * .hmp-grad.hmp-grad-deep,
	.hmp-grad-deep { background-image: linear-gradient(95deg, #2e2980 10%, #b03a8c 80%); }
}
.hmp-hero-title { font-size: var(--wp--preset--font-size--huge) !important; letter-spacing: -.035em !important; line-height: 1 !important; }
.wp-block-column > .hmp-hero-title { font-size: var(--wp--preset--font-size--xx-large) !important; letter-spacing: -.03em !important; line-height: 1.05 !important; }

/* A restyled page's picture hero (a Cover at the top of the page) */
.wp-block-cover.hmp-hero { min-height: min(86vh, 820px); }
.wp-block-cover:not(.is-light) .is-style-lead { color: rgba(255, 255, 255, .86); }
/* Boxes on the picture become frosted glass, so white text and logos still read. */
.wp-block-cover.hmp-hero .is-style-section-card {
	background: rgba(255, 255, 255, .1) !important;
	-webkit-backdrop-filter: blur(22px) saturate(1.4);
	backdrop-filter: blur(22px) saturate(1.4);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 80px rgba(0, 0, 0, .3);
}
.wp-block-cover.hmp-hero .is-style-section-card a:where(:not(.wp-element-button)) { color: #fff; }
.wp-block-cover.hmp-hero .is-style-section-card a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--magenta-light); }
.wp-block-cover.hmp-hero .is-style-section-card .wp-block-separator { color: rgba(255, 255, 255, .25); border-color: rgba(255, 255, 255, .25); }
.wp-block-cover.hmp-hero .wp-block-social-links .wp-social-link { color: #fff; }
.wp-block-cover.hmp-hero .wp-block-embed iframe,
.wp-block-cover.hmp-hero iframe { border-radius: var(--wp--custom--radius--card); }

/* Scripture */
.hmp-verse { font-family: var(--wp--preset--font-family--serif); }
.wp-block-quote.is-style-plain, .wp-block-quote.hmp-verse { quotes: "\201C" "\201D"; }
.wp-block-quote cite, .wp-block-pullquote cite { display: block; margin-top: 16px; font-size: 16px; letter-spacing: .01em; }

/* Lists */
.wp-block-list.is-style-ticks { list-style: none; padding-left: 0; display: grid; gap: 10px; }
.wp-block-list.is-style-ticks li { position: relative; padding-left: 32px; }
.wp-block-list.is-style-ticks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--wp--preset--color--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.wp-block-list.is-style-facts { list-style: none; padding-left: 0; display: grid; gap: 0; border-top: 1px solid var(--wp--preset--color--line); }
.wp-block-list.is-style-facts li { padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-list.is-style-facts li strong { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--wp--preset--color--muted); font-weight: 600; margin-bottom: 2px; }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .wp-block-list.is-style-facts,
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .wp-block-list.is-style-facts li { border-color: rgba(255, 255, 255, .14); }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .wp-block-list.is-style-facts li strong { color: var(--wp--preset--color--muted-light); }

/* ---------- Key details: the strip at the top of each page (When / Where / Who / Contact) ---------- */

.hmp-details { gap: 1px !important; background: var(--wp--preset--color--line); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--card); overflow: hidden; }
.hmp-details > .wp-block-column { background: var(--wp--preset--color--paper); padding: 24px 26px; margin: 0 !important; }
.hmp-details > .wp-block-column > * + * { margin-block-start: 6px; }
.hmp-details .hmp-detail-label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--wp--preset--color--magenta); }
.hmp-details .hmp-detail-value { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.hmp-details .hmp-detail-note { font-size: 15px; color: var(--wp--preset--color--muted); }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .hmp-details { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .14); }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .hmp-details > .wp-block-column { background: rgba(12, 10, 32, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .hmp-details .hmp-detail-label { color: var(--wp--preset--color--magenta-light); }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .hmp-details .hmp-detail-note { color: var(--wp--preset--color--muted-light); }
@media (max-width: 781px) { .hmp-details { flex-wrap: wrap !important; } .hmp-details > .wp-block-column { flex-basis: 100% !important; } }

/* ---------- HMP Events: "Service cards" style for the events list block ---------- */

.is-style-service-cards .hmp-widget-list__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.is-style-service-cards .hmp-widget-list__item {
	display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center;
	padding: 16px 20px 16px 16px; margin: 0; border: 0;
	background: var(--wp--preset--color--paper); border-radius: 20px;
	box-shadow: 0 1px 0 rgba(12, 10, 32, .04), 0 8px 24px rgba(12, 10, 32, .06);
	transition: transform .35s var(--hmp-ease), box-shadow .35s var(--hmp-ease);
}
.is-style-service-cards .hmp-widget-list__item:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(12, 10, 32, .12); }
.is-style-service-cards .hmp-widget-list__item:has(.hmp-widget-list__image) { grid-template-columns: 64px minmax(0, 1fr) 72px; }
.is-style-service-cards .hmp-date-tag {
	width: 64px; height: 64px; border-radius: 16px; margin: 0;
	display: grid; place-content: center; text-align: center; gap: 0;
	background: var(--wp--preset--color--mist); color: var(--wp--preset--color--ink); border: 0;
}
.is-style-service-cards .hmp-widget-list__item:first-child .hmp-date-tag { background: var(--wp--preset--color--indigo); color: #fff; }
.is-style-service-cards .hmp-date-tag__weekday { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--magenta); line-height: 1.2; }
.is-style-service-cards .hmp-widget-list__item:first-child .hmp-date-tag__weekday { color: var(--wp--preset--color--magenta-light); }
.is-style-service-cards .hmp-date-tag__day { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.is-style-service-cards .hmp-widget-list__body { display: grid; gap: 2px; }
.is-style-service-cards .hmp-widget-list__name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--wp--preset--color--ink); text-decoration: none; }
.is-style-service-cards .hmp-widget-list__name::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.is-style-service-cards .hmp-widget-list__item { position: relative; }
.is-style-service-cards .hmp-widget-list__schedule,
.is-style-service-cards .hmp-widget-list__venue,
.is-style-service-cards .hmp-led-by { font-size: 15px; color: var(--wp--preset--color--muted); }
.is-style-service-cards .hmp-led-by { color: var(--wp--preset--color--ink); font-weight: 500; }
.is-style-service-cards .hmp-widget-list__image img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.is-style-service-cards .hmp-widget-list__all { margin-top: 18px; }
.is-style-service-cards .hmp-widget-list__all a { font-weight: 600; text-decoration: none; }
.is-style-service-cards .hmp-widget-list__title { font-size: var(--wp--preset--font-size--large); margin-bottom: 16px; }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .is-style-service-cards .hmp-widget-list__item { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .is-style-service-cards .hmp-widget-list__name,
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .is-style-service-cards .hmp-led-by { color: #fff; }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .is-style-service-cards .hmp-widget-list__schedule,
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .is-style-service-cards .hmp-widget-list__venue { color: var(--wp--preset--color--muted-light); }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent) .is-style-service-cards .hmp-date-tag { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Question and answer (Details block) ---------- */

.wp-block-details.is-style-faq { border-bottom: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.wp-block-details.is-style-faq:first-child { border-top: 1px solid var(--wp--preset--color--line); }
.wp-block-details.is-style-faq summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
	padding: 22px 2px; font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq summary::after {
	content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
	font-size: 22px; font-weight: 400; line-height: 1; color: var(--wp--preset--color--magenta); background: var(--wp--preset--color--mist);
	transition: transform .3s ease;
}
.wp-block-details.is-style-faq[open] summary::after { transform: rotate(45deg); }
.wp-block-details.is-style-faq > :not(summary) { padding: 0 46px 22px 2px; color: var(--wp--preset--color--muted); margin: 0; }

/* ---------- App store badges (Buttons block, "App store badges" style) ---------- */

.wp-block-buttons.is-style-store .wp-block-button__link {
	background: #000; color: #fff; border: 1px solid #8b88a6; border-radius: 12px;
	padding: 10px 20px 10px 16px; min-width: 178px; font-size: 19px; font-weight: 600;
	display: inline-flex; align-items: center; gap: 10px; transition: transform .2s ease, border-color .2s ease;
}
.wp-block-buttons.is-style-store .wp-block-button__link:hover { transform: translateY(-2px); border-color: #fff; background: #000; }
.wp-block-buttons.is-style-store .wp-block-button__link::before { content: ""; width: 24px; height: 24px; flex: none; background: currentColor; -webkit-mask: var(--hmp-store-icon) center / contain no-repeat; mask: var(--hmp-store-icon) center / contain no-repeat; }
.wp-block-buttons.is-style-store .wp-block-button:first-child { --hmp-store-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9s-2-.9-3.4-.9c-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.8 1.2 1.8 2.6 3.1 2.6 1.3-.1 1.7-.8 3.3-.8s2 .8 3.4.8 2.2-1.3 3-2.5c1-1.4 1.4-2.8 1.4-2.9 0 0-2.6-1-2.5-4.1zM13.9 4.9c.7-.8 1.2-2 1-3.1-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.9-1 3 1.1.1 2.2-.6 2.9-1.4z'/%3E%3C/svg%3E"); }
.wp-block-buttons.is-style-store .wp-block-button:nth-child(2) { --hmp-store-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 1.8l10.2 10.2L3.6 22.2c-.4-.2-.6-.6-.6-1.1V2.9c0-.5.2-.9.6-1.1zm11.3 11.3l2.6 2.6-11.7 6.7 9.1-9.3zm0-2.2L5.8 1.6l11.7 6.7-2.6 2.6zm5.4.1c.6.4.6 1.6 0 2l-2.4 1.4-2.9-2.9 2.9-2.9 2.4 1.4z'/%3E%3C/svg%3E"); }

/* ---------- Images ---------- */

.wp-block-image.is-style-device img { border-radius: 0; box-shadow: none; }
.wp-block-image.is-style-tall img { border-radius: var(--wp--custom--radius--card); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.wp-block-image.hmp-icon img { border-radius: 22.5%; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.wp-block-cover { border-radius: 0; }
.wp-block-cover.hmp-rounded { border-radius: var(--wp--custom--radius--card); overflow: hidden; }
.wp-block-embed.hmp-video .wp-block-embed__wrapper { border-radius: var(--wp--custom--radius--card); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }

/* ---------- Scrolling line of greetings (Group block, "Scrolling line" style) ---------- */

.wp-block-group.is-style-marquee {
	overflow: hidden; white-space: nowrap; flex-wrap: nowrap !important;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wp-block-group.is-style-marquee > * { flex: none; margin: 0 !important; padding-inline-end: .6em; }
.wp-block-group.is-style-marquee.is-running > * { animation: hmp-marquee 60s linear infinite; }
.wp-block-group.is-style-marquee.is-running:hover > * { animation-play-state: paused; }
@keyframes hmp-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Big numbers ---------- */

.hmp-stat { font-size: clamp(44px, 7vw, 84px) !important; font-weight: 700; letter-spacing: -.04em; line-height: 1 !important; }

/* ---------- Posts ---------- */

.wp-block-post-template.is-layout-grid > li { margin: 0; }
.hmp-post-card { height: 100%; }
.hmp-post-card .wp-block-post-featured-image { margin: -30px -30px 6px; }
.hmp-post-card .wp-block-post-featured-image img { border-radius: var(--wp--custom--radius--card) var(--wp--custom--radius--card) 0 0; aspect-ratio: 16 / 10; object-fit: cover; }
.hmp-post-card .wp-block-post-title a { color: inherit; }
.hmp-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hmp-post-card { position: relative; transition: transform .35s var(--hmp-ease), box-shadow .35s var(--hmp-ease); }
.hmp-post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(12, 10, 32, .12); }
.wp-block-post-content > .alignfull:first-child { margin-block-start: 0; }

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

.hmp-site-footer a { text-decoration: none; }
.hmp-site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hmp-site-footer .wp-block-social-links .wp-social-link { background: rgba(255, 255, 255, .1) !important; color: #fff !important; }
.hmp-site-footer .wp-block-social-links .wp-social-link:hover { background: var(--wp--preset--color--magenta) !important; }
.hmp-site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
.hmp-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; }

/* The site's own "Footer" synced pattern, shown by the theme at the bottom of every page */
.hmp-synced-footer { color: var(--wp--preset--color--muted); line-height: 1.6; border-top: 1px solid var(--wp--preset--color--line); }
.hmp-synced-footer a { color: inherit; }
.hmp-synced-footer a:hover { color: var(--wp--preset--color--ink); }
.hmp-synced-footer p { margin-block: 0 .5em; }
.hmp-synced-footer .wp-block-social-links .wp-social-link { background: none !important; color: var(--wp--preset--color--muted) !important; }
.hmp-synced-footer .wp-block-social-links .wp-social-link:hover { background: none !important; color: var(--wp--preset--color--indigo) !important; }
.hmp-synced-footer .wp-block-columns { margin-block: 0; }
.hmp-synced-footer .wp-block-columns + .wp-block-columns { margin-block-start: var(--wp--preset--spacing--40); padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--line); }
.hmp-synced-footer .wp-block-columns + .wp-block-columns + .wp-block-columns { margin-block-start: var(--wp--preset--spacing--30); padding-top: 0; border-top: 0; }
.hmp-synced-footer .wp-block-image { margin-block: 0; }
.hmp-synced-footer .wp-block-image img { border-radius: 0; box-shadow: none; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.hmp-synced-footer .wp-block-image a:hover img { filter: none; opacity: 1; }
@media (max-width: 781px) {
	.hmp-synced-footer .has-text-align-right { text-align: left; }
}

/* ---------- Scroll effects (see assets/js/motion.js and docs/scroll-effects.md) ----------
 * Things are only hidden once the script has marked them (.is-pre), and only if they start
 * below the first screen, so nothing is ever hidden without the script or above the fold.
 */

.hmp-fx-rise.is-pre, .hmp-fx-stagger > .is-pre { opacity: 0; transform: translateY(32px); }
.hmp-fx-scale.is-pre { opacity: 0; transform: scale(.92); }
.hmp-fx-fade.is-pre { opacity: 0; }
.is-pre.is-in {
	opacity: 1; transform: none;
	transition: opacity .6s ease var(--hmp-dl, 0s), transform .8s var(--hmp-ease) var(--hmp-dl, 0s);
}
.hmp-js .hmp-fx-words .hmp-w { opacity: .22; transition: opacity .35s ease; }
.hmp-js .hmp-fx-words .hmp-w.lit { opacity: 1; }
.hmp-fx-drift { will-change: transform; }
.hmp-fx-grow { transform: scale(calc(.9 + .1 * var(--hmp-p, 1))); transform-origin: 50% 0; will-change: transform; }
.hmp-fx-sticky, .wp-block-column.hmp-fx-sticky {
	position: sticky;
	top: calc(var(--hmp-top) + var(--hmp-header-h) + 4vh);
	align-self: flex-start;
}
@media (max-width: 781px) { .hmp-fx-sticky, .wp-block-column.hmp-fx-sticky { position: static; } }

/* "Stay in view" story: tall steps beside a sticky picture */
.hmp-steps > .wp-block-group { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.hmp-steps > .wp-block-group:first-child { min-height: 50vh; justify-content: flex-start; }
.hmp-js .hmp-steps > .wp-block-group:not(.is-on) :is(h2, h3) { color: #8a879e; transition: color .4s ease; }
@media (max-width: 781px) { .hmp-steps > .wp-block-group, .hmp-steps > .wp-block-group:first-child { min-height: 0; margin-bottom: 40px; } .hmp-js .hmp-steps > .wp-block-group:not(.is-on) :is(h2, h3) { color: inherit; } }

/* A picture per step: several images in the sticky column cross-fade as the steps scroll. */
.hmp-fx-sticky:has(> .wp-block-image + .wp-block-image) { display: grid; }
.hmp-fx-sticky:has(> .wp-block-image + .wp-block-image) > .wp-block-image { grid-area: 1 / 1; margin: 0; transition: opacity .7s ease, transform .9s var(--hmp-ease); }
.hmp-js .hmp-fx-sticky:has(> .wp-block-image + .wp-block-image) > .wp-block-image:not(.is-on) { opacity: 0; transform: scale(.96); }

/* Video */
.wp-block-video.hmp-video video { border-radius: var(--wp--custom--radius--card); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); width: 100%; }
:is(.is-style-section-dark, .is-style-section-glow, .is-style-section-advent, .wp-block-cover) :is(.wp-block-video.hmp-video video, .wp-block-embed.hmp-video .wp-block-embed__wrapper) { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }

/* CoBlocks "Posts" lists kept from the old pages */
.wp-block-coblocks-posts__item a:not(.wp-block-coblocks-posts__more-link) { display: block; margin-block: 2px 6px; color: var(--wp--preset--color--ink); font-weight: 600; font-size: var(--wp--preset--font-size--medium); line-height: 1.3; text-decoration: none; }
.wp-block-coblocks-posts__item a:not(.wp-block-coblocks-posts__more-link):hover { color: var(--wp--preset--color--indigo); }
.wp-block-coblocks-posts__date { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--x-small); letter-spacing: .02em; }
.wp-block-coblocks-posts__excerpt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.wp-block-coblocks-posts__item + .wp-block-coblocks-posts__item { margin-top: 0; }
.wp-block-coblocks-posts .wp-block-coblocks-posts__inner { row-gap: var(--wp--preset--spacing--40); }
.wp-block-list.hmp-chapters { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.wp-block-list.hmp-chapters strong { color: var(--wp--preset--color--magenta-light); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* In the editor, show where an effect is set instead of hiding anything. */
.editor-styles-wrapper [class*="hmp-fx-"] { outline: 1px dashed rgba(176, 58, 140, .35); outline-offset: 4px; }
.editor-styles-wrapper .hmp-fx-sticky { position: static; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.is-pre { opacity: 1 !important; transform: none !important; }
	.hmp-fx-drift, .hmp-fx-grow { transform: none !important; }
	.hmp-js .hmp-fx-words .hmp-w { opacity: 1; }
	.wp-block-group.is-style-marquee > * { animation: none !important; }
	.wp-block-group.is-style-marquee { white-space: normal; -webkit-mask-image: none; mask-image: none; flex-wrap: wrap !important; }
}
