/**
 * The header, off the block theme.
 *
 * WHY THERE IS A BLOCK OF VARIABLES AT THE TOP
 *
 * This stylesheet came from a block theme, where WordPress generates these
 * `--wp--preset--*` custom properties from theme.json. On a site running any
 * other theme they are simply undefined, and twenty of the declarations below
 * reference them with no fallback — so the header would render with no colour,
 * no typeface and collapsed spacing, which looks like the plugin is broken
 * rather than like it needs a setting.
 *
 * They are defined here with the same values theme.json gives them, scoped to
 * the header's own elements so nothing leaks into the rest of the page. When
 * this site moves to the block theme, the theme defines them first and these
 * become a harmless duplicate.
 */

.cong-utility.cong-utility,
.cong-header,
.cong-menu {
	--wp--preset--color--base: #ffffff;
	--wp--preset--color--ink: #04436a;
	--wp--preset--color--leaf: #687e00;
	--wp--preset--color--lime: #a7ba25;
	--wp--preset--color--sky-mid: #aed4e3;
	--wp--preset--color--surface: #f4f7f9;
	--wp--preset--font-family--body: Lato, ui-sans-serif, system-ui, sans-serif;
	--wp--preset--font-family--display: Lato, ui-sans-serif, system-ui, sans-serif;
	--wp--preset--font-size--sm: 0.9375rem;
	--wp--preset--font-size--lg: 1.25rem;
	--wp--preset--font-size--xl: 1.625rem;
	--wp--preset--spacing--30: 1.25rem;

	/* The block theme sets these on body; nothing else here will. */
	font-family: var(--wp--preset--font-family--body);
	box-sizing: border-box;
}

.cong-utility.cong-utility *,
.cong-header *,
.cong-menu * {
	box-sizing: border-box;
}

/*
 * The Give button is a `wp-element-button` on the block theme, which supplies
 * its own look. Here it is ours.
 */
.cong-nav__give.cong-nav__give {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: var(--wp--preset--color--leaf);
	padding: 0.5em 1.4em;
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.cong-nav__give.cong-nav__give:hover,
.cong-nav__give.cong-nav__give:focus-visible {
	background: var(--wp--preset--color--ink);
	color: #fff;
}

/*
 * The strip above the header. On the block theme this is a template part made
 * of blocks; a plugin has to draw it.
 */
.cong-utility.cong-utility {
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-size: 0.85rem;
}

.cong-utility__inner.cong-utility__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.3em 1.5em;
	margin: 0 auto;
	max-inline-size: 1240px;
	padding: 0.45rem 1.25rem;
}

.cong-utility.cong-utility p {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 1.25em;
}

.cong-utility.cong-utility a {
	color: inherit;
	text-decoration: none;
}

.cong-utility.cong-utility a:hover,
.cong-utility.cong-utility a:focus-visible {
	text-decoration: underline;
}

/* The old header may leave margin behind on the body; this sits flush. */
.cong-header.cong-header {
	position: relative;
	z-index: 100;
}


/*
 * The header's own layout.
 *
 * This did not need to exist on the block theme: the logo, the links and the
 * buttons were separate blocks in a template part, and the row they sat in
 * was block layout rather than CSS. A plugin draws the markup itself, so the
 * row has to be described here — without it the logo renders at its natural
 * 373px and everything else wraps underneath it.
 */
.cong-header.cong-header {
	background: var(--wp--preset--color--base);
}

.cong-header__inner.cong-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin: 0 auto;
	max-inline-size: 1240px;
	padding: 0.75rem 1.25rem;
}

.cong-logo.cong-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
}

.cong-logo.cong-logo img,
.cong-logo.cong-logo .custom-logo,
.cong-logo.cong-logo .custom-logo-link img {
	display: block;
	inline-size: auto;
	block-size: auto;
	max-inline-size: 158px;
	max-block-size: 46px;
}

@media (max-width: 48rem) {
	.cong-logo.cong-logo img,
	.cong-logo.cong-logo .custom-logo,
	.cong-logo.cong-logo .custom-logo-link img {
		max-inline-size: 150px;
		max-block-size: 46px;
	}
}

/*
 * Header navigation and the full-screen menu.
 */

.cong-nav.cong-nav {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.75rem);
}

.cong-nav__primary.cong-nav__primary {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 1.8vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cong-nav__primary.cong-nav__primary a {
	display: inline-block;
	padding-block: 0.4rem;
	border-bottom: 2px solid transparent;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.cong-nav__primary.cong-nav__primary a:hover,
.cong-nav__primary.cong-nav__primary a[aria-current="page"] {
	border-bottom-color: var(--wp--preset--color--lime);
}

.cong-nav__give.cong-nav__give {
	background: var(--wp--preset--color--leaf);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--sm);
	white-space: nowrap;
}

.cong-nav__give.cong-nav__give:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

/* ---------- The toggle ---------------------------------------------------- */

.cong-nav__toggle.cong-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.5rem 0.25rem;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	cursor: pointer;
}

.cong-nav__bars.cong-nav__bars {
	display: grid;
	gap: 4px;
	width: 22px;
}

.cong-nav__bars.cong-nav__bars span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

@media (max-width: 62rem) {
	.cong-nav__primary {
		display: none;
	}
}

@media (max-width: 30rem) {
	.cong-nav__toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}

/* ---------- The panel ----------------------------------------------------- */

html.cong-menu-open {
	overflow: hidden;
}

.cong-menu.cong-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	overflow-y: auto;
	/* Center the columns on a tall screen; fall back to top-aligned when the
	   menu is taller than the viewport, so nothing scrolls out of reach. */
	display: grid;
	align-content: safe center;
	background: linear-gradient(155deg, #04436a 0%, #0a5c8c 100%);
	color: #fff;

	/* Fading alone is not enough to get the panel out of the way: a
	   transparent element still receives clicks, and this one covers the
	   whole viewport at z-index 200. Without these it silently swallows every
	   click on the site and sends people to whichever menu link happened to
	   be under the cursor. */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 220ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 220ms;
}

.cong-menu.cong-menu.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 220ms cubic-bezier(0.2, 0, 0, 1), visibility 0s;
}

/*
 * `display: grid` above outranks the browser's own `[hidden] { display: none }`
 * — a class selector beats a plain attribute one — so the hidden attribute
 * has to be restated here or it does nothing at all.
 */
.cong-menu.cong-menu[hidden] {
	display: none;
}

.cong-menu__inner.cong-menu__inner {
	position: relative;
	max-width: 76rem;
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem) 4rem;
}

.cong-menu__close.cong-menu__close {
	position: absolute;
	top: clamp(1.25rem, 3vw, 2rem);
	right: clamp(1.25rem, 5vw, 3rem);
	width: 3rem;
	height: 3rem;
	border: 0;
	background: none;
	color: #fff;
	font-size: 2.25rem;
	line-height: 1;
	cursor: pointer;
}

.cong-menu__close.cong-menu__close:hover {
	color: var(--wp--preset--color--lime);
}

.cong-menu__columns.cong-menu__columns {
	columns: 3;
	column-gap: clamp(1.5rem, 4vw, 3.5rem);
}

@media (max-width: 62rem) {
	.cong-menu__columns {
		columns: 2;
	}
}

@media (max-width: 40rem) {
	.cong-menu__columns {
		columns: 1;
	}
}

.cong-menu__group.cong-menu__group {
	break-inside: avoid;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.cong-menu__title.cong-menu__title {
	margin: 0 0 0.6rem;
	color: var(--wp--preset--color--lime);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 700;
	letter-spacing: -0.015em;
}

.cong-menu__title.cong-menu__title a {
	color: inherit;
	text-decoration: none;
}

.cong-menu__title.cong-menu__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.cong-menu__links.cong-menu__links {
	display: grid;
	gap: 0.3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cong-menu__links.cong-menu__links a {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.2rem 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: var(--wp--preset--font-size--lg);
	text-decoration: none;
}

.cong-menu__links.cong-menu__links a:hover,
.cong-menu__links.cong-menu__links a:focus-visible,
.cong-menu__links.cong-menu__links a[aria-current="page"] {
	color: #fff;
}

.cong-menu__links.cong-menu__links a:hover .cong-menu__arrow {
	transform: translateX(3px);
}

.cong-menu__arrow.cong-menu__arrow {
	flex: 0 0 auto;
	color: var(--wp--preset--color--sky-mid);
	transition: transform var(--wp--custom--transition--base);
}

.cong-menu__links.cong-menu__links small {
	display: block;
	color: var(--wp--preset--color--sky-mid);
	font-size: var(--wp--preset--font-size--sm);
}

@media (prefers-reduced-motion: reduce) {
	.cong-menu,
	.cong-menu__arrow {
		transition: none;
	}
}

/* The panel is moved to <body> at runtime (see site.js), so it must carry its
   own typography rather than inheriting the header's. */
.cong-menu.cong-menu {
	font-family: var(--wp--preset--font-family--body);
}

.cong-menu.cong-menu:focus {
	outline: none;
}

/* ------------------------------------------------------------------ *
 * Header search
 *
 * Open, it takes over the nav row rather than squeezing in beside it. A field
 * narrow enough to fit between "Events" and "Give" is a field too narrow to
 * read what you typed, and the first version did exactly that.
 * ------------------------------------------------------------------ */
.cong-nav__search-toggle.cong-nav__search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--wp--preset--color--ink, #04436a);
	cursor: pointer;
}

.cong-nav__search-toggle.cong-nav__search-toggle:hover,
.cong-nav__search-toggle.cong-nav__search-toggle:focus-visible {
	background: var(--wp--preset--color--surface, #f3f8fb);
}

.cong-nav__search-toggle.cong-nav__search-toggle[aria-expanded="true"] {
	background: var(--wp--preset--color--surface, #f3f8fb);
}

/*
 * Laid over the links rather than inserted among them, so opening search does
 * not reflow the whole header — and so the field can be as wide as it needs.
 */
.cong-nav__search.cong-nav__search {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-inline: var(--wp--preset--spacing--30, 1rem);
	background: var(--wp--preset--color--base, #fff);
}

.cong-nav__search.cong-nav__search[hidden] {
	display: none;
}

.cong-nav__search.cong-nav__search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.7rem 1rem;
	border: 1px solid var(--wp--preset--color--sky-mid, #d8e3ea);
	border-radius: 999px;
	background: var(--wp--preset--color--surface, #f3f8fb);
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink, #04436a);
	-webkit-appearance: none;
	appearance: none;
}

.cong-nav__search.cong-nav__search input[type="search"]:focus {
	outline: 2px solid var(--wp--preset--color--ink, #04436a);
	outline-offset: 1px;
	background: var(--wp--preset--color--base, #fff);
}

.cong-nav__search.cong-nav__search button[type="submit"] {
	flex: 0 0 auto;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--ink, #04436a);
	color: var(--wp--preset--color--base, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.cong-nav__search.cong-nav__search button[type="submit"]:hover {
	background: var(--wp--preset--color--leaf, #7a8b1e);
}

/* The nav is the positioning context the overlay hangs on. */
.cong-nav.cong-nav {
	position: relative;
}

/* ------------------------------------------------------------------ *
 * Header search on a phone
 *
 * Open, the field was sitting in the gap left between the logo and the menu
 * button — about a hundred pixels, showing four characters of what you typed.
 * The overlay spans the nav, and the nav is only part of the header row.
 *
 * So on a narrow screen it breaks out of its container entirely and takes the
 * full width of the viewport. `100vw` with a negative half-margin is the
 * old trick for this and it works regardless of how deeply the nav happens to
 * be nested, which matters because this is a block theme and that nesting is
 * not ours to rely on.
 * ------------------------------------------------------------------ */
@media (max-width: 880px) {
	/*
	 * Fixed to the viewport, not absolute inside the nav.
	 *
	 * The first attempt broke out of the nav with the `100vw` and negative
	 * half-margin trick, which centres on the element's own midpoint — and the
	 * nav sits to the right of the logo, so the field came out hanging off the
	 * left edge. Pinning to the viewport removes the guesswork; the script
	 * measures where the header ends and puts it there.
	 */
	.cong-nav__search {
		position: fixed;
		inset-inline: 0;
		inset-block-start: var(--cong-header-bottom, 7rem);
		transform: none;
		z-index: 60;
		padding: 0.75rem var(--wp--preset--spacing--30, 1rem);
		box-shadow: 0 6px 12px rgb(4 67 106 / 0.14);
		border-top: 1px solid var(--wp--preset--color--sky-mid, #d8e3ea);
	}

	.cong-nav__search input[type="search"] {
		/* The field is the point. The button can be small. */
		flex: 1 1 auto;
		font-size: 16px; /* Anything smaller makes iOS zoom the whole page. */
	}

	.cong-nav__search button[type="submit"] {
		padding: 0.7rem 1rem;
	}
}

/* -------------------------------------------------------------------------
 * Holding the line against the host site.
 *
 * hello-elementor's reset styles every <button> and <a>, and Elementor's
 * global kit adds `.elementor-kit-6 a` plus a site-wide border radius and
 * image rules. Those win over a plain component class, so the header has to
 * state its own case explicitly — hover included, which is the one everybody
 * forgets until a magenta box appears under the cursor.
 * ---------------------------------------------------------------------- */

.cong-header.cong-header .cong-nav__toggle,
.cong-header.cong-header .cong-nav__search-toggle,
.cong-header.cong-header .cong-nav__toggle:hover,
.cong-header.cong-header .cong-nav__search-toggle:hover,
.cong-header.cong-header .cong-nav__toggle:focus,
.cong-header.cong-header .cong-nav__search-toggle:focus,
.cong-header.cong-header .cong-nav__toggle:focus-visible,
.cong-header.cong-header .cong-nav__search-toggle:focus-visible {
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	box-shadow: none;
	text-decoration: none;
}

.cong-header.cong-header .cong-nav__toggle:hover,
.cong-header.cong-header .cong-nav__search-toggle:hover,
.cong-header.cong-header .cong-nav__toggle:focus-visible,
.cong-header.cong-header .cong-nav__search-toggle:focus-visible {
	background: var(--wp--preset--color--surface);
}

.cong-header.cong-header .cong-nav__give,
.cong-header.cong-header .cong-nav__give:hover,
.cong-header.cong-header .cong-nav__give:focus,
.cong-header.cong-header .cong-nav__give:focus-visible {
	border: 0;
	color: #fff;
	text-decoration: none;
}

.cong-header.cong-header .cong-nav__give:hover,
.cong-header.cong-header .cong-nav__give:focus-visible {
	background: var(--wp--preset--color--ink);
}

.cong-menu.cong-menu .cong-menu__close,
.cong-menu.cong-menu .cong-menu__close:hover,
.cong-menu.cong-menu .cong-menu__close:focus,
.cong-menu.cong-menu .cong-menu__close:focus-visible {
	border: 0;
	background: transparent;
	color: #fff;
	box-shadow: none;
}

/*
 * The logo, un-rounded and un-cropped.
 *
 * The site sets a 32px border radius and its own max dimensions on images
 * globally, which rounded the corners off the wordmark and clipped the "H"
 * from CHURCH.
 */
.cong-header.cong-header .cong-logo,
.cong-header.cong-header .cong-logo img,
.cong-header.cong-header .custom-logo-link,
.cong-header.cong-header .custom-logo-link img {
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
	object-fit: contain;
}

.cong-header.cong-header .cong-logo img,
.cong-header.cong-header .custom-logo-link img {
	inline-size: auto;
	block-size: auto;
	max-inline-size: 158px;
	max-block-size: 46px;
}

/* -------------------------------------------------------------------------
 * Small screens.
 * ---------------------------------------------------------------------- */

@media (max-width: 60rem) {
	.cong-header__inner.cong-header__inner {
		gap: 0.4rem 0.75rem;
		padding: 0.6rem 1rem;
	}

	.cong-nav__primary.cong-nav__primary {
		gap: 0 1rem;
	}
}

@media (max-width: 48rem) {
	.cong-header.cong-header .cong-logo img,
	.cong-header.cong-header .custom-logo-link img {
		max-inline-size: 150px;
		max-block-size: 44px;
	}

	/* On a phone the four links are in the overlay anyway. */
	.cong-nav__primary.cong-nav__primary {
		display: none;
	}

	/*
	 * One column, not three squeezed into 320px — "Blessed Treasures Gift
	 * Shop" was breaking across four lines and running off the edge.
	 */
	.cong-menu__columns.cong-menu__columns {
		display: block;
		columns: auto;
	}

	.cong-menu__group.cong-menu__group {
		margin-block-end: 1.5rem;
		break-inside: auto;
	}

	.cong-menu__inner.cong-menu__inner {
		padding: 4.5rem 1.25rem 2rem;
	}
}

/*
 * The address off the strip on a phone.
 *
 * Raising every component rule's specificity meant `.cong-utility p` now
 * outranks the plain `.cong-utility__where { display: none }` that used to
 * hide it, so the strip grew to three lines on a 390px screen.
 */
@media (max-width: 30rem) {

	.cong-utility.cong-utility .cong-utility__inner {
		justify-content: center;
		padding-block: 0.35rem;
	}
}

/*
 * "Menu" stays a word, at every width.
 *
 * The theme hid the label on small screens and left three lines as the only
 * target. An icon alone is a guess, and it is a smaller thing to hit — which
 * matters most for the people most likely to be using a phone they are not
 * confident with. The word roughly doubles the tappable area and says what it
 * does, and the row has room for it.
 *
 * 44px is the minimum comfortable touch target in both Apple's and the WCAG
 * guidance, so it is set as a floor rather than left to the line height.
 */
.cong-nav.cong-nav .cong-nav__toggle-label {
	/*
	 * The theme does not hide this with `display: none` — it applies the
	 * screen-reader-only pattern, so the word is still in the accessibility
	 * tree while occupying a 1px box nobody can press. Every part of that has
	 * to be undone, not just the display.
	 */
	position: static;
	display: inline;
	inline-size: auto;
	block-size: auto;
	margin: 0;
	padding: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: nowrap;
}

.cong-nav.cong-nav .cong-nav__toggle,
.cong-nav.cong-nav .cong-nav__search-toggle {
	min-block-size: 44px;
	min-inline-size: 44px;
	gap: 0.5em;
	padding-inline: 0.6rem;
}

/*
 * One row on a phone.
 *
 * The logo and the controls together are a few pixels wider than a 393px
 * screen, so they wrapped — and because the row is centre-justified, the
 * result was a centred logo above a centred huddle of buttons, which looks
 * like a mistake and costs a whole row of height before any content shows.
 *
 * Nothing is dropped to make it fit. The logo gives up a little width, the
 * Give button a little padding, and the gaps tighten; the Menu target stays
 * at 44px because that is the floor, not a preference.
 */
@media (max-width: 48rem) {
	.cong-header__inner.cong-header__inner {
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: 0.35rem;
		padding-inline: 0.85rem;
	}

	.cong-logo.cong-logo {
		min-inline-size: 0;
	}

	.cong-header.cong-header .cong-logo img,
	.cong-header.cong-header .custom-logo-link img {
		max-inline-size: 132px;
		max-block-size: 38px;
	}

	.cong-nav.cong-nav {
		flex: 0 0 auto;
		gap: 0.15rem;
	}

	.cong-nav.cong-nav .cong-nav__give {
		padding-inline: 0.95em;
		font-size: 0.9375rem;
	}

	.cong-nav.cong-nav .cong-nav__search-toggle {
		min-inline-size: 40px;
		padding-inline: 0.35rem;
	}

	.cong-nav.cong-nav .cong-nav__toggle {
		padding-inline: 0.35rem;
	}
}

/*
 * The address belongs on a phone too.
 *
 * It is the thing somebody standing outside in a car park actually wants, and
 * a phone is where they are. It wraps onto its own line, which costs one line
 * of a strip that is otherwise doing nothing.
 */
.cong-utility.cong-utility .cong-utility__where {
	display: flex;
}

.cong-utility.cong-utility .cong-utility__inner {
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
}

@media (min-width: 48.0625rem) {
	.cong-utility.cong-utility .cong-utility__inner {
		justify-content: space-between;
		text-align: start;
	}
}

/*
 * The very small end. At 320px the row above still overflowed by a few
 * pixels; the logo gives up the difference rather than anything being cut.
 */
@media (max-width: 23.5rem) {
	.cong-header.cong-header .cong-logo img,
	.cong-header.cong-header .custom-logo-link img {
		max-inline-size: 108px;
		max-block-size: 32px;
	}

	.cong-nav.cong-nav .cong-nav__give {
		padding-inline: 0.7em;
	}
}

/*
 * The search panel needs something to be positioned against.
 *
 * It is absolutely positioned and expects the nav to be its containing block.
 * The block theme positioned that for it; here nothing did, so the panel
 * resolved against the page and opened below the hero image — a search box
 * that appears somewhere off-screen is a search box nobody finds.
 */
.cong-nav.cong-nav {
	position: relative;
}

/*
 * The strip, two lines instead of three on a phone.
 *
 * The phone number goes. The address is the line that earns its place — it is
 * what somebody in a car park wants, and it is a link to a map. A number is
 * one tap away on the contact page, and keeping both pushed Realm and
 * Subscribe onto a third line.
 */
@media (max-width: 48rem) {
	.cong-utility.cong-utility .cong-utility__where a[href^="tel:"] {
		display: none;
	}

	.cong-utility.cong-utility {
		font-size: 0.8rem;
	}

	.cong-utility.cong-utility .cong-utility__inner {
		gap: 0.1em 1em;
		padding-block: 0.4rem;
	}
}

/*
 * The search panel once it has been lifted to the body.
 *
 * On a phone the script moves the form out to <body>, because a transformed
 * ancestor breaks `position: fixed`. Lifted, it is no longer inside the nav,
 * so the absolute positioning above resolves against the page and the panel
 * opened somewhere down in the hero. As a child of body it has to be pinned
 * to the viewport instead; the script sets `top` to wherever the header ends.
 */
body > .cong-nav__search.cong-nav__search {
	position: fixed;
	inset-inline: 0;
	transform: none;
	z-index: 1000;
	padding-block: 0.75rem;
	box-shadow: 0 10px 24px rgb(0 0 0 / 0.14);
}

/*
 * The search panel, anchored to the header rather than to whatever happens
 * to be positioned.
 *
 * It was `top: 50%` of its containing block, which assumed the block theme's
 * markup. Anchoring it to the bottom edge of the header instead makes it
 * land in the same place on any site, whether or not the script has lifted
 * it, and whatever else is positioned in between.
 */
.cong-header.cong-header {
	position: relative;
}

.cong-header.cong-header .cong-nav__search {
	inset-block-start: 100%;
	inset-inline: 0;
	transform: none;
	padding-block: 0.75rem;
	box-shadow: 0 10px 24px rgb(0 0 0 / 0.14);
}

/*
 * The lifted panel sits at the top of the screen.
 *
 * Once the script moves it to <body> it is outside the header, so an anchor
 * that depends on the header cannot reach it — and the 50% it falls back to
 * put the box four hundred pixels down, in the middle of the hero. At the top
 * of the viewport it is unambiguous and is where a phone search belongs.
 */
body > .cong-nav__search.cong-nav__search {
	inset-block-start: 0;
}
