/*
Theme Name: Plumbline Child Starter
Theme URI: https://www.tomatillodesign.com/
Description: A clean launch point for custom Plumbline builds — inherited structure, focused overrides, and Rivet integration.
Author: Chris Liu-Beers @ Tomatillo Design
Author URI: https://www.tomatillodesign.com/
Template: plumbline
Version: 1.0.28
Requires at least: 6.9
Requires PHP: 8.2
Text Domain: plumbline-child-starter
Domain Path: /languages
Update URI: false

License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/*
 * Token overrides.
 *
 * Brand colors are managed via Plumbline Settings > Colors in the admin.
 * To hard-lock tokens to code (overriding admin settings), uncomment below.
 *
 * Available token categories:
 *
 *   Colors — primary, secondary, neutrals, surfaces, text, semantic
 *   Typography — font-heading, font-body, font-mono, weights, leading, tracking
 *   Spacing — space-1 through space-10, section-padding-*, section-gap
 *   Layout — width-content, width-prose, width-wide, gutter
 *   Borders — radius-sm/md/lg/full, border-thin/medium
 *   Shadows — shadow-sm/md/lg
 *   Transitions — duration-fast/normal/slow, easing-default/in/out, spring
 *
 * Example:
 *
 * :root {
 *     --pl-color-primary: #7C3AED;
 *     --pl-color-primary-dark: #5B21B6;
 *     --pl-font-heading: 'Playfair Display', serif;
 *     --pl-radius-md: 0.75rem;
 * }
 */

:root {
	--pl-color-primary: #358551;
	--pl-color-primary-dark: #2a6840;
	--pl-color-secondary: #9fd1b0;
	--pl-font-heading: 'Overpass', sans-serif;
	--pl-font-body: 'Overpass', sans-serif;

	/* Secondary buttons — same soft gray as the site footer (surface-alt). */
	--pl-color-button-secondary-bg: var(--pl-color-surface-alt);
	--pl-color-button-secondary-bg-hover: var(--pl-color-neutral-100);

	/* One reading column — shared spine for interior heroes + body copy. */
	--chmf-column-width: var(--pl-width-content, 50rem);
	--chmf-reading-measure: 65ch;
}

/* CHMF header — green bar, white dove + church name, white nav and search. */
.pl-site-header {
	background: var(--pl-color-primary);
	border-bottom: 0;
}

.pl-site-header__branding {
	gap: var(--pl-space-3, 0.75rem);
	line-height: 1.2;
	flex-shrink: 1;
	min-width: 0;
	align-items: center;
}

.pl-site-header__branding .custom-logo-link {
	flex-shrink: 0;
}

.pl-site-header__branding .pl-site-header__title {
	color: #fbfcfa;
	display: inline-block;
	line-height: 1.2;
	max-width: 12.75rem;
	white-space: normal;
}

.pl-site-header__branding .pl-site-header__title:hover {
	color: #fbfcfa;
	opacity: 0.9;
}

.pl-site-header .pl-nav-menu > li > a,
.pl-site-header .pl-nav-menu > li > .pl-nav-menu__parent,
.pl-site-header .pl-nav-menu > li > .pl-nav-search,
.pl-site-header .pl-nav-menu > li.pl-menu-search-item > .pl-nav-search {
	color: #fbfcfa;
}

.pl-site-header .pl-nav-menu > li > a:hover,
.pl-site-header .pl-nav-menu > li > .pl-nav-menu__parent:hover,
.pl-site-header .pl-nav-menu > li > .pl-nav-search:hover,
.pl-site-header .pl-nav-menu > li.pl-menu-search-item > .pl-nav-search:hover,
.pl-site-header .pl-nav-menu > li.menu-item-has-children:hover > a,
.pl-site-header .pl-nav-menu > li.menu-item-has-children:hover > .pl-nav-menu__parent,
.pl-site-header .pl-nav-menu > li.menu-item-has-children:focus-within > a,
.pl-site-header .pl-nav-menu > li.menu-item-has-children:focus-within > .pl-nav-menu__parent,
.pl-site-header .pl-nav-menu > li.current-menu-item > a,
.pl-site-header .pl-nav-menu > li.current-menu-item > .pl-nav-menu__parent,
.pl-site-header .pl-nav-menu > li.current-menu-ancestor > a,
.pl-site-header .pl-nav-menu > li.current-menu-ancestor > .pl-nav-menu__parent {
	color: #fbfcfa;
	background-color: var(--pl-color-primary-dark);
}

.pl-site-header .pl-nav-menu > li.current-menu-item > a:hover,
.pl-site-header .pl-nav-menu > li.current-menu-item > .pl-nav-menu__parent:hover,
.pl-site-header .pl-nav-menu > li.current-menu-ancestor > a:hover,
.pl-site-header .pl-nav-menu > li.current-menu-ancestor > .pl-nav-menu__parent:hover {
	background-color: var(--pl-color-primary-dark);
}

.pl-site-header .pl-nav-search__icon svg {
	fill: currentColor;
}

.pl-site-header .pl-menu-toggle {
	color: #fbfcfa;
	background: transparent;
	border-color: transparent;
}

.pl-site-header .pl-menu-toggle:hover,
.pl-site-header .pl-menu-toggle:focus-visible {
	background: transparent;
	border-color: transparent;
}

/* Desktop nav — more L-R breathing room between top-level items. */
@media (min-width: 48.0625rem) {
	.pl-site-header .pl-nav-menu {
		gap: var(--pl-space-3, 0.75rem);
	}

	.pl-site-header .pl-nav-menu > li > a,
	.pl-site-header .pl-nav-menu > li > .pl-nav-menu__parent,
	.pl-site-header .pl-nav-menu > li > .pl-nav-search,
	.pl-site-header .pl-nav-menu > li.pl-menu-search-item > .pl-nav-search {
		padding-inline: var(--pl-space-3, 0.75rem);
	}

	.pl-site-header .pl-nav-menu > li.pl-menu-search-item {
		margin-inline-start: var(--pl-space-2, 0.5rem);
	}
}

@media (min-width: 75.0625rem) {
	.pl-site-header .pl-nav-menu {
		gap: var(--pl-space-4, 1rem);
	}

	.pl-site-header .pl-nav-menu > li > a,
	.pl-site-header .pl-nav-menu > li > .pl-nav-menu__parent,
	.pl-site-header .pl-nav-menu > li > .pl-nav-search,
	.pl-site-header .pl-nav-menu > li.pl-menu-search-item > .pl-nav-search {
		padding-inline: var(--pl-space-4, 1rem);
	}

	.pl-site-header__branding .pl-site-header__title {
		font-size: 1.375rem;
		/* Wider than mid-desktop so the larger type still wraps to two lines. */
		max-width: 16rem;
	}
}

/* Tablet + small laptop: keep nav labels on one line. */
@media (min-width: 48.0625rem) and (max-width: 75rem) {
	.pl-site-header__inner {
		gap: var(--pl-space-3, 0.75rem);
	}

	.pl-site-header__branding .pl-site-header__title {
		font-size: 1.25rem;
	}

	.pl-site-header__end {
		gap: var(--pl-space-2, 0.5rem);
		flex-shrink: 0;
	}

	.pl-site-header .pl-nav-menu > li > a,
	.pl-site-header .pl-nav-menu > li > .pl-nav-menu__parent,
	.pl-site-header .pl-nav-menu > li > .pl-nav-search {
		white-space: nowrap;
		padding-inline: var(--pl-space-3, 0.75rem);
		font-size: 0.9375rem;
	}
}

@media (min-width: 48.0625rem) and (max-width: 62rem) {
	.pl-site-header__branding .pl-site-header__title {
		font-size: 1.125rem;
		max-width: 11.5rem;
	}
}

@media (max-width: 48rem) {
	.pl-site-header__branding .pl-site-header__title {
		font-size: 1rem;
		max-width: 10.5rem;
	}
}

/*
 * Primary nav — parent toggles (About, Community Life) match sibling link chrome.
 */
.pl-site-header .pl-nav-menu > li > .pl-nav-menu__parent {
	text-decoration: none;
	font-size: var(--pl-text-nav);
	font-weight: var(--pl-weight-medium);
	font-family: inherit;
	background: transparent;
	border: none;
	border-radius: var(--pl-radius-md);
	padding: var(--pl-space-2) var(--pl-space-3);
	cursor: pointer;
	transition:
		color var(--pl-duration-fast) var(--pl-easing-default),
		background-color var(--pl-duration-fast) var(--pl-easing-default);
	display: inline-flex;
	align-items: center;
	gap: var(--pl-space-2);
	line-height: 1.25;
}

.pl-site-header .pl-nav-menu > .menu-item-has-children > .pl-nav-menu__parent::after {
	content: '';
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-0.1rem);
	margin-left: calc(var(--pl-space-1) - 2px);
}

.pl-mobile-menu__trigger-row > .pl-nav-menu__parent {
	display: flex;
	align-items: center;
	flex: 1;
	min-height: 2.75rem;
	box-sizing: border-box;
	padding: 0.625rem 0.75rem;
	margin: 0;
	border: none;
	border-radius: var(--pl-radius-md);
	text-decoration: none;
	font-size: var(--pl-text-base);
	font-weight: var(--pl-weight-medium);
	font-family: inherit;
	line-height: 1.25;
	color: var(--pl-color-neutral-900);
	background: transparent;
	cursor: default;
	text-align: left;
}

.pl-mobile-menu > li.current-menu-ancestor > .pl-mobile-menu__trigger-row > .pl-nav-menu__parent {
	background: var(--pl-color-neutral-100);
	color: var(--pl-color-neutral-900);
}

/* Interior page heroes — full-bleed photo; text column shares the body reading spine. */

.chmf-hero-bg.pl-hero--media-background.pl-hero--width-wide,
.chmf-hero-bg.pl-hero--media-background.pl-hero--width-full {
	--hero-width: min(100%, var(--chmf-column-width));
}

.chmf-hero-bg.pl-hero--media-background .pl-hero__content {
	max-width: var(--chmf-reading-measure);
}

.chmf-hero-bg.pl-hero--media-background .pl-hero__content > :is(h1, h2, p:first-of-type),
.pl-hero--media-background .pl-hero__content > p.is-style-pl-lead:first-of-type {
	max-width: var(--chmf-reading-measure);
}

.chmf-hero-bg.pl-hero--media-background.pl-hero--height-standard .pl-hero__inner {
	min-height: clamp(13rem, 24vh, 18rem);
	padding-block: var(--pl-space-7, 1.75rem);
}

/* Hero subtext — large lead on home hero + all page heroes. */
.chmf-home-hero__content > p,
.pl-hero__content > p:first-of-type {
	margin: 0;
	font-family: var(--pl-font-heading, inherit);
	font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.625rem);
	line-height: 1.35;
}

.chmf-home-hero__content > p {
	max-width: var(--pl-width-prose, 42rem);
	margin-inline: auto;
}

.chmf-hero-bg.pl-hero--media-background .pl-hero__content > p:first-of-type,
.pl-hero--media-background .pl-hero__content > p.is-style-pl-lead:first-of-type {
	font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.625rem);
	line-height: 1.35;
}

.chmf-hero-bg.pl-hero--media-background.pl-hero--overlay-dark::after {
	background: linear-gradient(
		to right,
		rgb(0 0 0 / 0.78) 0%,
		rgb(0 0 0 / 0.55) 42%,
		rgb(0 0 0 / 0.2) 100%
	);
}

.chmf-hero-bg.pl-hero--media-background .pl-hero__background img {
	object-position: var(--chmf-hero-focus-x, 50%) var(--chmf-hero-focus-y, 50%);
}

/* Per-page photo crop — tweak x/y to shift what stays in frame. */
.chmf-hero-people.pl-hero--media-background {
	--chmf-hero-focus-x: 50%;
	--chmf-hero-focus-y: 50%;
}

.chmf-hero-connections.pl-hero--media-background {
	--chmf-hero-focus-x: 50%;
	--chmf-hero-focus-y: 50%;
}

.chmf-hero-contact.pl-hero--media-background {
	--chmf-hero-focus-x: 50%;
	--chmf-hero-focus-y: 50%;
}

.chmf-hero-children-youth.pl-hero--media-background {
	--chmf-hero-focus-x: 50%;
	--chmf-hero-focus-y: 35%;
}

/*
 * FAQ — the reader at the lectern sits high in the frame, so a centred crop
 * cut her head off once the hero got short and wide (worse on large monitors,
 * where min-height clamps to ~18rem against a much wider viewport). 40% keeps
 * the head and some headroom in frame at every size tested.
 */
.chmf-hero-faq.pl-hero--media-background {
	--chmf-hero-focus-x: 50%;
	--chmf-hero-focus-y: 40%;
}

.chmf-hero-bg.pl-hero--media-background {
	--hero-min-height: auto;
}

/* People page — horizontal staff cards, content-width grid, clean meta row. */
.chmf-people-staff {
	--card-grid-width: var(--pl-width-content);
	--staff-card-inset: var(--pl-space-5, 1.5rem);
}

.chmf-people-staff.pl-card-grid--layout-list .pl-staff-card {
	flex-direction: row;
	align-items: stretch;
	height: auto;
	gap: var(--staff-card-inset);
}

.chmf-people-staff.pl-card-grid--layout-list .pl-staff-card + .pl-staff-card {
	margin-block-start: var(--pl-space-6, 2rem);
}

.chmf-people-staff.pl-card-grid--layout-list .pl-staff-card {
	overflow: hidden;
}

.chmf-people-staff.pl-card-grid--img-portrait.pl-card-grid--layout-list .pl-staff-card__photo {
	position: relative;
	flex-shrink: 0;
	width: clamp(12rem, 24%, 17rem);
	aspect-ratio: auto;
	align-self: stretch;
	min-height: 12rem;
}

.chmf-people-staff .pl-staff-card__photo {
	overflow: hidden;
}

.chmf-people-staff .pl-staff-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
}

.chmf-people-staff .pl-staff-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	justify-content: flex-start;
	gap: 0;
	min-height: 0;
	padding: var(--staff-card-inset);
}

/* Photo supplies the left inset via card gap — avoid doubling it on the body. */
.chmf-people-staff.pl-card-grid--layout-list .pl-staff-card:has(.pl-staff-card__photo) .pl-staff-card__body {
	padding-inline-start: 0;
}

.chmf-people-staff.pl-card-grid--layout-list .pl-staff-card:not(:has(.pl-staff-card__photo)) .pl-staff-card__body {
	align-self: flex-start;
}

.chmf-people-staff .pl-staff-card__name {
	margin: 0 0 0.35rem;
	font-size: calc(var(--pl-text-lg) * 1.25);
}

.chmf-people-staff .pl-staff-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	margin: 0 0 0.75rem;
	font-size: var(--pl-text-sm, 0.875rem);
	line-height: 1.4;
}

/* Inline meta: role · email · pronouns — fixed-width separator track so the dot centers evenly. */
.chmf-people-staff .pl-staff-card__meta > * + *::before {
	content: '·';
	display: inline-block;
	width: 1.5rem;
	margin: 0;
	padding: 0;
	text-align: center;
	color: var(--pl-color-neutral-400, #a8a29e);
	font-weight: 400;
	pointer-events: none;
}

.chmf-people-staff .pl-staff-card__meta .pl-staff-card__title {
	margin: 0;
	color: var(--pl-color-text-secondary, #57534e);
	font-weight: var(--pl-weight-medium, 500);
}

.chmf-people-staff .pl-staff-card__meta .pl-staff-card__pronouns {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: var(--pl-color-neutral-500, #78716c);
	font-style: normal;
	font-weight: var(--pl-weight-normal, 400);
}

.chmf-people-staff .pl-staff-card__meta .pl-staff-card__contact {
	display: contents;
	margin: 0;
}

.chmf-people-staff .pl-staff-card__meta .pl-staff-card__email {
	white-space: nowrap;
	text-decoration: none;
}

.chmf-people-staff .pl-staff-card__meta .pl-staff-card__email:hover {
	text-decoration: underline;
}

.chmf-people-staff .pl-staff-card__body .pl-staff-card__bio {
	flex: 0 0 auto;
	align-self: flex-start;
	margin-block: 0;
	font-size: var(--pl-text-sm, 0.875rem);
	line-height: 1.55;
	color: var(--pl-color-text-primary, #292524);
}

.chmf-people-staff .pl-staff-card__bio p {
	margin: 0;
}

.chmf-people-staff .pl-staff-card__bio p:empty {
	display: none;
}

.chmf-people-staff .pl-staff-card__bio p + p {
	margin-block-start: 0.75rem;
}

.chmf-people-staff .pl-staff-card {
	transition: none;
}

.chmf-people-staff .pl-staff-card:hover {
	transform: none;
	box-shadow: var(--pl-shadow-md);
}

@media (max-width: 48rem) {
	.chmf-people-staff.pl-card-grid--layout-list .pl-staff-card {
		flex-direction: column;
	}

	.chmf-people-staff.pl-card-grid--layout-list .pl-staff-card:has(.pl-staff-card__photo) .pl-staff-card__body {
		padding-inline-start: var(--staff-card-inset);
	}

	.chmf-people-staff.pl-card-grid--layout-list .pl-staff-card__photo {
		width: 100%;
		max-width: 10rem;
	}
}

/*
 * People page — editorial body rhythm and tighter Pastors → staff handoff.
 */
.page-people .pl-entry__content .pl-section__inner > :is(p, ul, ol) {
	margin-block-end: 1rem;
	line-height: 1.7;
}

.page-people .pl-entry__content .pl-section__inner > :is(h2, h3).wp-block-heading + :is(p, ul, ol) {
	margin-block-start: 0.5rem;
}

.page-people .pl-entry__content > .wp-block-plumbline-section:has(+ .wp-block-plumbline-card-grid.chmf-people-staff) {
	padding-block-end: var(--pl-space-4, 1rem);
}

.page-people .pl-entry__content > .wp-block-plumbline-section:has(+ .wp-block-plumbline-card-grid.chmf-people-staff) .pl-section__inner > :is(h2, h3):last-child {
	margin-block-end: 0;
}

.page-people .pl-entry__content > .wp-block-plumbline-card-grid.chmf-people-staff {
	padding-block-start: var(--pl-space-3, 0.75rem);
}

/* CHMF editorial interior — one reading column in page content sections. */
.home .pl-entry__content > .pl-section:first-of-type .pl-section__inner > p.is-style-pl-lead:first-child {
	margin-block: 0 2rem;
	max-width: var(--chmf-reading-measure);
}

.pl-entry__content .pl-section__inner > :is(h2, h3).wp-block-heading,
.chmf-faq .pl-faq-item__question-text {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--pl-color-text-primary, #1d221e);
	max-width: var(--chmf-reading-measure);
}

.pl-entry__content .pl-section__inner > :is(h2, h3).wp-block-heading {
	margin-block: 0 0.5rem;
}

.pl-entry__content .pl-section__inner > :is(h2, h3).wp-block-heading:not(:first-child) {
	margin-block-start: 2.25rem;
	padding-block-start: 2.25rem;
	border-block-start: 1px solid var(--pl-color-neutral-200, #e6eae7);
}

/*
 * Connections — one Plumbline section per partner group; muted bands alternate for rhythm.
 * Group h2s are always first-child, so editorial divider lines never apply here.
 */
.page-connections .pl-entry__content > .wp-block-plumbline-section .pl-section__inner > :is(h2, h3).wp-block-heading {
	margin-block: 0 1.25rem;
	padding: 0;
	border: 0;
}

.page-connections .pl-entry__content > .wp-block-plumbline-section .pl-section__inner > .wp-block-heading + .chmf-connection {
	padding-block-start: 0;
}

/*
 * FAQ — intro line + accordion share one rhythm; avoid stacked section padding.
 */
.page-faq .pl-entry__content > .wp-block-plumbline-section:has(+ .wp-block-plumbline-faq) {
	padding-block: var(--pl-section-padding-compact, clamp(2rem, 4vw, 3rem)) 0;
}

.page-faq .pl-entry__content > .wp-block-plumbline-section:has(+ .wp-block-plumbline-faq) .pl-section__inner > p:only-child {
	margin-block: 0;
	max-width: var(--chmf-reading-measure);
}

.page-faq .pl-entry__content > .wp-block-plumbline-section + .wp-block-plumbline-faq.chmf-faq {
	padding-block-start: var(--pl-space-4, 1rem);
}

.pl-entry__content .pl-section__inner > :is(h2, h3).wp-block-heading + :is(p, ul, ol, .wp-block-buttons) {
	margin-block-start: 0;
}

/*
 * Body prose shares the section column rather than carrying its own cap.
 *
 * `--chmf-reading-measure` is 65ch, and `ch` scales with each element's own
 * font-size — so the same token resolved to ~709px on 17px body copy but
 * ~918px on the 22px lead and ~1018px on headings. Only the body cap was
 * narrow enough to bind, so prose stopped ~97px short of the headings above
 * it (~235px at full column width): a ragged right edge, not a reading column.
 * The column itself (--chmf-column-width, 62rem) is the intended single spine.
 */
.pl-entry__content .pl-section__inner > :is(p, ul, ol) {
	margin-block-end: 0.75rem;
	color: var(--pl-color-text-primary, #1d221e);
	line-height: 1.65;
}

/*
 * Plumbline ships an inline `.is-style-pl-lead { max-width: 40ch }` (~565px at
 * the 22px lead size). The 65ch rule above used to mask it purely by
 * specificity; with that cap gone the 40ch would surface and pull lead
 * paragraphs in to well under the body copy beneath them. In page content the
 * lead is an opening paragraph, not a pull-quote, so it shares the column.
 * Hero leads are untouched — they are scoped to .pl-hero__content.
 */
.pl-entry__content .pl-section__inner > p.is-style-pl-lead {
	max-width: none;
}

.pl-entry__content .pl-section__inner > p:first-child {
	margin-block-end: 1.75rem;
}

/* Calm inline text links in editorial sections — not button blocks. */
.pl-entry__content .pl-section__inner > p a:not(.wp-element-button) {
	color: var(--pl-color-primary, #358551);
	font-weight: 600;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	text-decoration-color: rgb(53 133 81 / 0.35);
	transition:
		text-decoration-color 0.2s ease,
		color 0.2s ease;
}

.pl-entry__content .pl-section__inner > p a:not(.wp-element-button):hover {
	color: var(--pl-color-primary-dark, #2a6840);
	text-decoration-color: currentColor;
}

.pl-entry__content .pl-section__inner > .wp-block-buttons {
	margin-block: 0.75rem 0;
}

/*
 * Home photo gallery — tight handoff with intro + CHMF Notes bands.
 */
.home .pl-entry__content > .wp-block-plumbline-section:has(+ .chmf-home-gallery) {
	padding-block-end: var(--pl-space-4, 1rem);
}

.home .pl-entry__content > .chmf-home-gallery + .wp-block-plumbline-section:has(.chmf-notes-feed) {
	padding-block-start: 30px;
}

/*
 * Home CHMF Notes teaser — two small cards on the muted band.
 * Cards stay white; section provides the contrast. Grid is narrow and centered.
 */
.home .pl-section:has(.chmf-notes-feed) .chmf-notes-feed__header,
.home .pl-section:has(.chmf-notes-feed) .chmf-notes-feed__grid,
.home .pl-section:has(.chmf-notes-feed) .chmf-notes-feed__footer {
	max-width: 36rem;
	margin-inline: auto;
}

.home .pl-section:has(.chmf-notes-feed) .chmf-notes-feed__header {
	text-align: center;
	margin-bottom: 1.25rem;
}

.home .pl-section:has(.chmf-notes-feed) .chmf-notes-feed__grid {
	gap: 1rem;
}

.home .pl-section:has(.chmf-notes-feed) .chmf-note-card {
	box-shadow: 0 1px 4px rgb(29 41 57 / 0.07);
}

.home .pl-section:has(.chmf-notes-feed) .chmf-note-card--no-image .chmf-note-card__body {
	padding: 1rem 1.125rem 1.125rem;
}

.home .pl-section:has(.chmf-notes-feed) .chmf-note-card__title {
	font-size: 1rem;
}

.home .pl-section:has(.chmf-notes-feed) .chmf-note-card__excerpt {
	font-size: 0.8125rem;
	line-height: 1.5;
}

.chmf-faq .pl-faq__controls {
	display: none;
}

.chmf-faq .pl-faq__items {
	gap: 0;
}

.chmf-faq .pl-faq-item {
	border: 0;
	border-radius: 0;
	background: transparent;
}

.chmf-faq .pl-faq-item + .pl-faq-item {
	margin-block-start: 2.25rem;
	padding-block-start: 2.25rem;
	border-block-start: 1px solid var(--pl-color-neutral-200, #e6eae7);
}

.chmf-faq .pl-faq-item__question {
	padding: 0;
	margin-block-end: 0.5rem;
	cursor: default;
	pointer-events: none;
}

.chmf-faq .pl-faq-item[open] .pl-faq-item__question {
	border-bottom: 0;
	margin-block-end: 0.5rem;
}

.chmf-faq .pl-faq-item__icon {
	display: none;
}

.chmf-faq .pl-faq-item__answer,
.chmf-faq .pl-faq-item__answer-inner {
	display: block;
	grid-template-rows: none;
	overflow: visible;
	padding: 0;
	color: var(--pl-color-text-primary, #1d221e);
	line-height: 1.6;
	max-width: var(--chmf-reading-measure);
}

.chmf-faq .pl-faq-item__answer-inner {
	overflow: visible;
}

/* Site footer — align vertical inset with pl-wide-width horizontal gutter. */
.pl-site-footer {
	padding-block-end: var(--pl-gutter, 1.5rem);
	padding-block-start: calc(var(--pl-gutter, 1.5rem) * 2);
}

.pl-footer-areas {
	padding-block: 0;
	gap: var(--pl-gutter, 1.5rem);
}

.pl-site-footer__inner {
	padding-block-start: var(--pl-gutter, 1.5rem);
	gap: var(--pl-space-4, 1rem);
}

/*
 * Home — footer reads as a distinct gray band under the surface-alt content
 * stack (#FAFAF9), which otherwise runs unbroken to the page bottom.
 *
 * Mixed from neutral-300 deliberately: this palette's neutral-100 (#ECF0ED)
 * and neutral-200 (#DFE1DD) carry a green cast, so tinting with those would
 * reintroduce the mint the primary wash gave. neutral-300 (#CFCFCB) is the
 * first genuinely neutral step. Raise the mix percentage to darken.
 */
.home .pl-site-footer {
	--chmf-home-footer-bg: color-mix(in srgb, var(--pl-color-neutral-300, #cfcfcb) 35%, var(--pl-color-surface-page, #fff));
	background-color: var(--chmf-home-footer-bg);
	border-top-color: color-mix(in srgb, var(--pl-color-neutral-300, #cfcfcb) 55%, var(--pl-color-surface-page, #fff));
}

.pl-footer-areas .pl-footer-area:first-child > p:first-of-type {
	font-style: italic;
}

.pl-footer-areas .pl-footer-area:nth-child(3) p {
	line-height: 1.55;
}

.pl-footer-area .chmf-footer-events.wp-block-list {
	margin: 0;
	padding-inline-start: 1.1rem;
}

.pl-footer-area .chmf-footer-events.wp-block-list > li {
	margin-block-end: 0.5rem;
	padding-inline-start: 0.15rem;
	line-height: 1.5;
}

.pl-footer-area .chmf-footer-events.wp-block-list > li:last-child {
	margin-block-end: 0;
}

.pl-footer-area .chmf-footer-events.wp-block-list > li::marker {
	color: var(--pl-color-neutral-500, #78716c);
	font-size: 0.7em;
}

/* Footer credit line — even middot spacing. */
.pl-site-footer__copyright .chmf-footer-credit__sep {
	margin-inline: 0.65rem;
	opacity: 0.45;
}

/*
 * Footer link contrast — unlayered so it beats global wp-element link color.
 * Body secondary (7.3:1) + underline; hover uses primary-dark (6.4:1).
 */
.pl-footer-area :where(a:is(:link, :visited)) {
	color: var(--pl-color-text-secondary, #57534e);
}

.pl-footer-area :where(a:is(:hover, :focus-visible)) {
	color: var(--pl-color-primary-dark, #2a6840);
}

/* Google Calendar — legacy raw embed wrapper (prefer chmf/calendar block). */
.chmf-calendar-embed iframe,
.chmf-calendar__iframe {
	display: block;
	width: 100%;
	min-height: 600px;
	border: 0;
	border-radius: var(--pl-radius-md, 0.75rem);
}

/*
 * Nav menus — undo Plumbline's global prose list indent.
 *
 * `base.css` sets `li { padding-inline-start: 0.15em }` for editorial lists,
 * but it is unscoped, so every nav and dropdown item also picks up 2.55px of
 * left-only inset (0.15em at the 17px nav size). The result: dropdown items
 * sat 22.55px from the panel's left edge but 20px from the right — visibly
 * lopsided. Menus are navigation, not prose; they take their spacing from the
 * link padding alone. Covers the mobile menu too, which is cloned to <body>
 * and so falls outside .pl-site-header.
 *
 * Upstream candidate: scope that base.css rule to prose containers.
 */
.pl-site-header .pl-nav-menu li,
.pl-mobile-menu li {
	padding-inline-start: 0;
	padding-inline-end: 0;
}
