/*
Theme Name: Council 8600
Description: Prototype block theme for Knights of Columbus Council 8600, based on redesign option B. Official Knights of Columbus artwork is used unmodified (see assets/images/BRAND-ASSETS.md).
Author: Sebastian Undurraga
Version: 2026.12.01
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kofc8600
*/

:root {
	--navy: #112866;
	--navy-deep: #0b1c49;
	--navy-ink: #0d1f50;
	--navy-tint: #eaf0f8;
	--sky: #d7e4f1;
	--canvas: #f7f7f7;
	--gold: #f7b718;
	--gold-tint: #fdf6e3;
	--gold-ink: #614800;
	--red: #cb0e0e;
	--ink: #16181d;
	--ink-soft: #444b57;
	--muted: #5a6373;
	--rule: #d3dae3;
	--rule-soft: #e6ebf1;
	--radius: 12px;
	--shadow: 0.5rem 0.5rem 2.25rem rgba(0, 0, 0, 0.1);
}

/* Text-size control: the header buttons set --ts on <html>. Every size is in rem, so everything scales. */
html { font-size: calc(100% * var(--ts, 1)); -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
/* WordPress adds the "Skip to content" link itself; this makes it a gold button when it gets focus. */
html .skip-link.screen-reader-text:focus {
	clip-path: none; position: fixed; z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; margin: 0;
	padding: 12px 18px; border-radius: 8px; background: var(--gold); color: var(--navy-ink);
	font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none;
	outline: 3px solid var(--navy-ink); outline-offset: 2px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--gold);
	border-radius: 4px;
}

/* ───────── Header: utility bar, brand bar with a soft glow behind the emblem, section tabs ───────── */
.proto-note {
	margin: 0; padding: 10px 16px; background: var(--navy-ink); color: #dfe6f3;
	font-size: 0.8rem; text-align: center; line-height: 1.4;
}
.proto-note a { color: #fff; }

.brandbar {
	color: #fff;
	background:
		radial-gradient(ellipse 320px 150px at calc(max(0px, 50% - 560px) + 101px) 50%, rgba(35, 105, 171, 0.85), rgba(35, 105, 171, 0)),
		var(--navy);
}
.brandbar-inner {
	max-width: 1120px; margin: 0 auto; padding: 18px 16px;
	display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px 28px; color: #fff; text-decoration: none; flex-wrap: wrap; }
.brand img { width: 170px; height: auto; display: block; }
.brand-title b { display: block; font-size: 1.25rem; line-height: 1.2; }
.brand-title span { display: block; font-size: 0.9rem; color: #c9d6ea; }
.textsize { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.textsize .lbl { font-size: 0.8rem; color: #c9d6ea; margin-right: 4px; }
.textsize button {
	min-width: 44px; min-height: 44px; border-radius: 8px; cursor: pointer;
	border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); color: #fff;
	font-family: inherit; font-weight: 700; line-height: 1;
}
.textsize button:nth-of-type(1) { font-size: 13px; }
.textsize button:nth-of-type(2) { font-size: 16px; }
.textsize button:nth-of-type(3) { font-size: 19px; }
.textsize button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }

/* ───────── Section navigation: tabs under the header on desktop, a bottom tab bar on phones ───────── */
nav.tabbar { background: var(--navy); color: #fff; margin: 0; justify-content: center; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.tabbar .wp-block-navigation__container { gap: 0; justify-content: center; }
.tabbar .wp-block-navigation-item__content {
	display: flex; align-items: center; gap: 9px; padding: 0 24px; min-height: 58px;
	color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; position: relative;
}
.tabbar .wp-block-navigation-item__content::before {
	content: ""; width: 21px; height: 21px; flex: none; background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.tabbar .tab-home { --icon: url(assets/icons/home.svg); }
.tabbar .tab-events { --icon: url(assets/icons/calendar.svg); }
.tabbar .tab-involved { --icon: url(assets/icons/people.svg); }
.tabbar .tab-give { --icon: url(assets/icons/heart.svg); }
.tabbar .tab-more { --icon: url(assets/icons/more.svg); }
.tabbar .tab-members { --icon: url(assets/icons/lock.svg); }
.tabbar .wp-block-navigation-item__content:hover { color: #a0c2e0; }
.tabbar :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content { color: var(--gold); background: var(--navy-ink); }
.tabbar :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 4px; border-radius: 3px 3px 0 0; background: var(--gold);
}

/* Narrower screens: tighter tabs, and a second row rather than a sideways scroll if they still do not fit. */
@media (min-width: 782px) and (max-width: 1100px) {
	.tabbar .wp-block-navigation__container { flex-wrap: wrap !important; }
	.tabbar .wp-block-navigation-item__content { padding: 0 14px; gap: 7px; font-size: 1rem; min-height: 52px; }
}

@media (max-width: 781px) {
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
	nav.tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy-ink); border-top: 0;
		padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -2px 8px rgba(11, 28, 73, .25);
	}
	.tabbar .wp-block-navigation__container { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
	.tabbar .wp-block-navigation-item { justify-content: center; }
	.tabbar .wp-block-navigation-item__content {
		flex-direction: column; gap: 3px; padding: 8px 0 10px; min-height: 64px; width: 100%;
		justify-content: center; font-size: min(0.75rem, 3.2vw); text-align: center;
	}
	.tabbar .wp-block-navigation-item__content::before { width: 24px; height: 24px; }
	.tabbar :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content { background: var(--navy); }
	.tabbar :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content::after { top: 0; bottom: auto; left: 25%; right: 25%; border-radius: 0 0 3px 3px; }
	.textsize .lbl { display: none; }
}

/* ───────── Search box: in the brand bar, and larger on the search and "Page not found" pages ───────── */
.site-search { display: flex; min-width: 0; margin: 0; }
.site-search input {
	flex: 1; min-width: 0; min-height: 44px; margin: 0; padding: 0 12px 0 40px; box-sizing: border-box;
	border: 1px solid transparent; border-radius: 8px 0 0 8px; -webkit-appearance: none; appearance: none;
	background: #fff url(assets/icons/search.svg) 12px center / 20px no-repeat; color: var(--ink);
	font: inherit; font-size: max(16px, 1rem);
}
.site-search input::placeholder { color: var(--muted); opacity: 1; }
.site-search button {
	flex: none; min-height: 44px; margin: 0; padding: 0 18px; border: 0; border-radius: 0 8px 8px 0; cursor: pointer;
	background: var(--sky); color: var(--navy-ink); font: inherit; font-size: max(16px, 1rem); font-weight: 700;
}
.site-search button:hover { background: #fff; }
.brandbar .site-search { flex: 0 1 20rem; margin-left: auto; }
.brandbar .site-search input { padding-left: 14px; background-image: none; }
.brandbar .site-search button { width: 52px; padding: 0; display: grid; place-items: center; }
.brandbar .site-search button::before {
	content: ""; width: 22px; height: 22px; background: currentColor;
	-webkit-mask: url(assets/icons/search.svg) center / contain no-repeat; mask: url(assets/icons/search.svg) center / contain no-repeat;
}
.brandbar .site-search + .textsize { margin-left: 0; }
/* Join: a gold button on every page, as on kofc.org. */
.join-btn {
	display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 0 20px;
	border-radius: 8px; background: var(--gold); color: var(--navy-ink); font-weight: 800; text-decoration: none;
}
.join-btn:hover { background: #fff; }
.join-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Wide screens: one row, and only the search box narrows when the text is made larger. */
@media (min-width: 1024px) {
	.brandbar-inner { flex-wrap: nowrap; }
	.brand, .textsize { flex-shrink: 0; }
}
/* Tablets and phones: the box and the Join button share a row under the Council name. */
@media (max-width: 1023px) {
	.brandbar .site-search { order: 3; flex: 1 1 calc(100% - 7rem); margin-left: 0; } /* too wide for the name row; leaves room for Join */
	.brandbar .site-search + .textsize { margin-left: auto; }
	.join-btn { order: 4; padding: 0 16px; }
	.brandbar-inner:not(:has(.site-search)) .join-btn { display: none; } /* search and "Page not found": no search row to share */
}
/* Phones: two rows. The logo and Council name with Join on the right, then search beside the text-size buttons. */
@media (max-width: 781px) {
	.brandbar { background: radial-gradient(ellipse 200px 90px at 60px 30px, rgba(35, 105, 171, 0.85), rgba(35, 105, 171, 0)), var(--navy); }
	.brandbar-inner { row-gap: 0; column-gap: 8px; padding: 8px 14px 10px; }
	.brandbar-inner::after { content: ""; order: 3; flex-basis: 100%; } /* line break after the name row (no row gap, so no extra space) */
	.brand { order: 1; flex: 1 1 0; min-width: 0; flex-wrap: nowrap; gap: 8px; }
	.brand img { width: 92px; flex: none; }
	.brand-title { flex-basis: auto; min-width: 0; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.3); }
	.brand-title b { display: block; margin: 0; font-size: 0.95rem; line-height: 1.2; }
	.brand-title span { display: block; font-size: 0.8rem; line-height: 1.2; }
	.join-btn { order: 2; padding: 0 14px; }
	.brandbar .site-search { order: 4; flex: 1 1 0; margin-top: 10px; }
	.textsize { order: 5; position: static; margin-top: 10px; }
	/* Search and "Page not found" have no header search: Join stays up top, the text size goes right. */
	.brandbar-inner:not(:has(.site-search)) .join-btn { display: inline-flex; }
	.brandbar-inner:not(:has(.site-search)) .textsize { margin-left: auto; }
}
/* Small phones at a larger text size: the name gets a row of its own, so it never breaks word by word.
   Measured in rem, so the text-size buttons move the switch point too. */
.brandbar { container-type: inline-size; }
@container (max-width: 18rem) {
	.brandbar-inner { position: relative; }
	.brandbar-inner::after { display: none; }
	.brand { flex: 1 1 100%; flex-wrap: wrap; row-gap: 10px; }
	.brand-title { flex-basis: 100%; padding-left: 0; border-left: 0; }
	.textsize { position: absolute; top: 8px; right: 14px; margin-top: 0; }
	.join-btn { order: 5; margin-top: 10px; }
	.brandbar-inner:not(:has(.site-search)) .join-btn { margin-left: auto; }
}
.site-search.is-page { margin-top: 1.1rem; }
.site-search.is-page input { flex: 0 1 28rem; min-height: 52px; border-color: var(--muted); border-right: 0; font-size: 1.125rem; }
.site-search.is-page button { min-height: 52px; padding: 0 22px; background: var(--navy); color: #fff; font-size: 1.125rem; }
.site-search.is-page button:hover { background: var(--navy-deep); }

/* ───────── Main content ───────── */
.site-main { padding-top: 2rem; padding-bottom: 4rem; }
.site-main.is-flush { padding-top: 0; }
/* The home page without its banner: a little room between the header and the tiles. */
.home .site-main.is-flush:not(:has(.brand-welcome)) { padding-top: 0.5rem; }
@media (max-width: 781px) { .home .site-main.is-flush:not(:has(.brand-welcome)) { padding-top: 0; } }
.wp-site-blocks > .site-main { margin-block-start: 0; }
.wp-block-post-content > p, .wp-block-column > p { max-width: 72ch; }
.sub { color: var(--muted); font-size: 1.06rem; margin-top: 0.25rem; }
.fine { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.wp-block-columns { gap: 2.75rem; }
@media (max-width: 781px) { .wp-block-columns { gap: 0.5rem; } }

/* Inner pages: a slim light blue band with the breadcrumb trail and the page title. On phones the trail is one "‹ Parent" link. */
.page-band { background: var(--sky); padding-top: 0.6rem; padding-bottom: 1.1rem; }
.page-band > * { margin-top: 0; }
.page-band h1 { margin-top: 0.15rem !important; margin-bottom: 0; font-size: clamp(1.85rem, 1.3rem + 1.2vw, 2.25rem); text-wrap: balance; }
.page-band .wp-block-post-date { color: var(--ink-soft); margin-top: 0.4rem !important; }
/* A band title that is not the page's main heading (an email's own page: its subject is in the email). */
.page-band .band-title { margin-top: 0.15rem !important; margin-bottom: 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; line-height: 1.15; color: var(--navy); font-size: clamp(1.85rem, 1.3rem + 1.2vw, 2.25rem); }
.page-band .band-title a { color: inherit; text-decoration: none; }
.page-band .band-title a:hover { text-decoration: underline; }
.site-main > .page-band + * { margin-top: 1.75rem; }
.wp-block-breadcrumbs { font-size: 0.9rem; color: var(--ink-soft); }
.wp-block-breadcrumbs a { color: var(--navy); text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
@media (max-width: 781px) {
	.page-band { padding-bottom: 0.9rem; }
	.site-main > .page-band + * { margin-top: 1.25rem; }
	.page-band .wp-block-breadcrumbs li:not(:nth-last-child(2)) { display: none; }
	.page-band .wp-block-breadcrumbs li:nth-last-child(2)::after { display: none; }
	.page-band .wp-block-breadcrumbs li:nth-last-child(2) a::before { content: "\2039\00a0"; }
}

/* Section headings: every H2 is navy serif with a short gold rule beneath, as on kofc.org. */
h2.wp-block-heading { margin-top: 2rem; margin-bottom: 1rem; }
@media (max-width: 781px) { h2.wp-block-heading { margin-top: 1.75rem; } }
h2.wp-block-heading::after { content: ""; display: block; width: 9.125rem; max-width: 60%; height: 2px; margin-top: 0.5rem; background: var(--gold); }
.wp-block-column > h2.wp-block-heading:first-child { margin-top: 0.5rem; }

/* ───────── Home: a short, centred welcome banner, then quick tasks ───────── */
.brand-welcome {
	color: #fff; text-align: center; padding-top: 1.75rem; padding-bottom: 1.9rem;
	background:
		radial-gradient(ellipse 45% 65% at 22% 38%, rgba(35, 105, 171, 0.55), rgba(35, 105, 171, 0)),
		linear-gradient(129deg, #071a4d 38.83%, #0277d9 107.53%);
}
.brand-welcome + * { margin-top: 1.75rem; }
.brand-text > * { margin: 0 !important; }
.brand-welcome .principles { color: var(--gold); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-wrap: balance; }
.brand-welcome h1 {
	color: #fff; font-size: clamp(2rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.1; margin-top: 0.6rem !important; text-wrap: balance;
}
/* The link to the programs is a compact outline button: gold border, white text, gold arrow. */
.brand-welcome .hero-link { margin-top: 1rem !important; }
.brand-welcome .hero-link a {
	display: inline-block; box-sizing: border-box; min-height: 44px; padding: 0.7rem 1.1rem;
	border: 2px solid var(--gold); border-radius: 8px; color: #fff; font-size: 0.95rem; font-weight: 700; line-height: 1.2; text-decoration: none;
	text-wrap: balance; /* the largest text on a 320px phone wraps it to two even lines, the arrow after the last word */
}
.brand-welcome .hero-link a::after { content: "\00a0\2192"; color: var(--gold); }
.brand-welcome .hero-link a:hover { background: rgba(247, 183, 24, 0.15); }
.brand-welcome :focus-visible { outline-color: #fff; }
@media (max-width: 781px) {
	.brand-welcome { padding-top: 1.1rem; padding-bottom: 1.1rem; }
	.brand-welcome + * { margin-top: 1.25rem; }
	.brand-welcome .principles { font-size: 0.7rem; letter-spacing: 0.08em; } /* one line on most phones */
	.brand-welcome h1 { font-size: 1.75rem; margin-top: 0.5rem !important; }
	.brand-welcome .hero-link { margin-top: 0.75rem !important; }
}

/* Recent photos at the foot of the home page: a tall one on the left, two stacked on the right.
   The photos come from the Photos page ([council_recent_photos], inc/recent-photos.php). */
.recent-photos { margin-top: 2.5rem; }
.recent-photos .more-link { margin-top: 0.75rem; }
.mosaic { display: grid !important; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 2fr; gap: 1rem; height: clamp(300px, 29vw, 420px); }
.mosaic > * { margin: 0 !important; }
.mosaic .wp-block-image { height: 100%; min-height: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.mosaic .wp-block-image:first-child { grid-row: 1 / span 2; }
.mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Until the Photos page has three photos: two side by side, or one on its own. */
.mosaic-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.mosaic-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mosaic-2 .wp-block-image:first-child, .mosaic-1 .wp-block-image:first-child { grid-row: auto; }
@media (max-width: 781px) { .mosaic { height: 240px; gap: 0.6rem; } }

/*
 * Spotlight: a seasonal card with a picture strip on top. The theme draws the picture (art-*
 * classes), so the page itself holds only words and links, and editors never handle the image.
 */
.spotlight { margin-top: 2rem; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.spotlight::before { content: ""; display: block; aspect-ratio: 5 / 1; background: var(--navy) center bottom / cover no-repeat; }
.spotlight.art-trees::before { background-image: url(assets/images/christmas-trees.svg); }
.spotlight-body { padding: 1.4rem 1.75rem 1.75rem; }
.spotlight-body > * { margin-top: 0; }
.spotlight .eyebrow { margin: 0; color: var(--gold-ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.spotlight h2.wp-block-heading { margin: 0.35rem 0 0.75rem; }
.spotlight .sub { margin: 0 0 1.25rem; }
.spotlight h3 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.spotlight-cols { gap: 1.5rem 2.5rem; margin-bottom: 0; }
.spotlight .hours { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.spotlight .hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink-soft); font-size: 1rem; }
.spotlight .hours li:first-child { border-top: 1px solid var(--rule-soft); }
.spotlight .hours strong { color: var(--ink); }
.spotlight .shift-col { padding: 1.1rem 1.25rem 1.25rem; border-radius: 8px; background: var(--gold-tint); border-top: 4px solid var(--gold); }
.spotlight .shift-col p { color: var(--ink-soft); font-size: 1rem; }
.spotlight .shift-col a:not(.wp-element-button) { color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.spotlight a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 781px) {
	.spotlight { margin-top: 1.5rem; }
	.spotlight-body { padding: 1.1rem 1rem 1.25rem; }
	.spotlight .shift-col { padding: 1rem; }
	.spotlight .hours li { font-size: 0.95rem; padding: 0.4rem 0; }
}

/*
 * Quick tasks: each tile shows its icon beside the label. Where a tile is too narrow for that
 * (phones under 336px, tablets around 800px, or a larger text size), the icon sits above the
 * label instead, so a word like "Volunteer" never breaks. The widths are in rem, so a larger
 * text size counts as a narrower tile.
 */
.tiles { container: tiles / inline-size; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tiles > * { margin: 0 !important; }
@media (max-width: 781px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tiles.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@container tiles (min-width: 28rem) {
	.tiles-2 > .tile { flex-direction: row; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; }
}
.tile {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	box-sizing: border-box; padding: 14px; border-radius: var(--radius);
	background: #fff; box-shadow: var(--shadow); color: var(--navy);
	font-weight: 700; font-size: 1.06rem; line-height: 1.25;
}
.tile::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--icon) center / 24px no-repeat, var(--sky); }
@container tiles (min-width: 56rem) {
	.tile { flex-direction: row; align-items: center; gap: 14px; min-height: 84px; padding: 16px 18px; }
	.tile::before { width: 52px; height: 52px; background-size: 26px, auto; }
}
.tile a { color: inherit; text-decoration: none; }
:where(body:not(.editor-styles-wrapper)) .tile a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tile:hover { box-shadow: 0 0 0 2px var(--navy), var(--shadow); }
.tile:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--gold); }
.tile a:focus-visible { outline: none; box-shadow: none; }
.tile.is-gold { background: var(--gold); color: var(--navy-ink); }
.tile.is-gold::before { background-color: rgba(255, 255, 255, 0.6); }
@media (max-width: 781px) {
	.tile { padding: 12px; font-size: 1rem; }
	.tile::before { width: 40px; height: 40px; background-size: 22px, auto; }
	@container tiles (min-width: 21rem) {
		.tile { flex-direction: row; align-items: center; min-height: 68px; padding: 12px 10px; }
	}
}

/* Icons are navy line drawings. They sit in light blue squares, or act as masks in the tab bar. */
.icon-calendar { --icon: url(assets/icons/calendar.svg); }
.icon-card { --icon: url(assets/icons/card.svg); }
.icon-hands { --icon: url(assets/icons/hands.svg); }
.icon-cross { --icon: url(assets/icons/cross.svg); }
.icon-mail { --icon: url(assets/icons/mail.svg); }
.icon-pin { --icon: url(assets/icons/pin.svg); }
.icon-phone { --icon: url(assets/icons/phone.svg); }
.icon-heart { --icon: url(assets/icons/heart.svg); }
.icon-lock { --icon: url(assets/icons/lock.svg); }
.icon-home { --icon: url(assets/icons/home.svg); }
.icon-people { --icon: url(assets/icons/people.svg); }
.icon-star { --icon: url(assets/icons/star.svg); }
.icon-award { --icon: url(assets/icons/award.svg); }
.icon-camera { --icon: url(assets/icons/camera.svg); }
.icon-link { --icon: url(assets/icons/link.svg); }
.icon-page { --icon: url(assets/icons/page.svg); }

/* ───────── Events (rows are printed by the Council 8600 Events plugin) ───────── */
.ev-list { margin: 0; display: grid; gap: 2px; border-radius: var(--radius); box-shadow: var(--shadow); }
.ev { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; color: var(--ink); text-decoration: none; }
.ev:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.ev:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.ev:only-child { border-radius: var(--radius); }
a.ev:hover { background: #f1f5fa; }
a.ev::after {
	content: ""; width: 18px; height: 18px; flex: none; align-self: center; background: var(--muted);
	-webkit-mask: url(assets/icons/chevron.svg) center / contain no-repeat; mask: url(assets/icons/chevron.svg) center / contain no-repeat;
}
.datechip {
	flex: none; width: 56px; border-radius: 11px; overflow: hidden; text-align: center;
	border: 1px solid var(--rule); border-top: 4px solid var(--red); background: #fff;
}
.datechip .m { display: block; background: var(--navy); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; padding: 3px 0; text-transform: uppercase; }
.datechip .d { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy-deep); padding: 3px 0 5px; line-height: 1.1; }
.ev-b { flex: 1; min-width: 0; }
.ev-b b { display: block; font-weight: 700; line-height: 1.3; }
.ev-b .meta { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.need {
	display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 20px;
	background: var(--gold-tint); border: 1px solid #ecdcae; color: var(--gold-ink); font-size: 0.8rem; font-weight: 800;
}
.calendar-embed { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.calendar-embed iframe { display: block; width: 100%; height: 600px; border: 0; }
.calendar-embed iframe[data-src]:not([src]) { display: none; } /* No JavaScript: the <noscript> copy shows instead. */
.ev-empty { color: var(--muted); }

/* ───────── The Council calendar: list and month ([council_calendar]) ───────── */
.cat-council { --c: #112866; } .cat-faith { --c: #3f6fc4; } .cat-family { --c: #2f855a; }
.cat-community { --c: #c2641b; } .cat-life { --c: #b83232; } .cat-holiday, .cat-other { --c: #8a93a3; }
.cal-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-filters { display: flex; gap: 8px; overflow-x: auto; padding: 3px; margin: -3px; scrollbar-width: none; }
.chip {
	flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--rule); background: #fff;
	color: var(--navy-deep); font: inherit; font-size: 0.9rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.chip[class*="cat-"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-need { border-color: var(--gold); background: var(--gold-tint); color: var(--gold-ink); }
.chip-need .n { background: var(--gold); color: var(--navy-ink); border-radius: 999px; padding: 0 7px; font-size: 0.8rem; }
.cal-switch { display: inline-flex; border: 2px solid var(--navy); border-radius: 8px; overflow: hidden; flex: none; }
.cal-switch[hidden] { display: none; }
.cal-switch button { min-height: 40px; padding: 0 16px; border: 0; background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.cal-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.chip:focus-visible, .cal-switch button:focus-visible, .mnav button:focus-visible, .mday:focus-visible, .cal-show-more:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); }
.cal[data-view="list"] .cal-months, .cal[data-view="month"] .cal-list { display: none; }
h2.cal-group { font-size: 1.35rem; margin: 1.75rem 0 0.75rem; }
h2.cal-group::after { display: none; }
h2.cal-group span { font-family: var(--wp--preset--font-family--system, system-ui), sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.cal-list > .ev-group:first-child h2.cal-group { margin-top: 0.5rem; }
.cal:not(.is-expanded):not(.is-filtered) .ev-group.is-later, .cal.is-filtered .cal-more { display: none; }
.cal-more { text-align: center; margin: 1.25rem 0 0; }
.cal-show-more { min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.cal-source, .cal-empty { margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; }

/* One event: the row opens to its notes, place and links; the open shifts of its sign-up show below. */
.ev-list:has(> .ev-entry) { overflow: hidden; }
.ev-entry { background: #fff; }
.ev-entry[hidden] { display: none; }
.ev-entry summary { cursor: pointer; list-style: none; }
.ev-entry summary::-webkit-details-marker { display: none; }
.ev-entry summary::after {
	content: ""; width: 18px; height: 18px; flex: none; align-self: center; background: var(--muted); transition: transform .15s;
	-webkit-mask: url(assets/icons/chevron.svg) center / contain no-repeat; mask: url(assets/icons/chevron.svg) center / contain no-repeat;
}
.ev-entry details[open] summary::after { transform: rotate(90deg); }
.ev-entry summary:hover { background: #f1f5fa; }
.ev-entry summary:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.ev-entry .ev { border-radius: 0 !important; }
.ev .cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-soft); }
.ev .cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.datechip.is-same { visibility: hidden; }
.datechip.is-quiet { border-top-color: var(--rule); }
.datechip.is-quiet .m { background: #8a93a3; }
.is-holiday .ev { padding-top: 8px; padding-bottom: 8px; align-items: center; background: #f7f8fa; color: var(--muted); }
.is-holiday .datechip { transform: scale(0.85); }
.ev-more { padding: 0 16px 14px 86px; display: grid; gap: 8px; max-width: 46rem; }
.ev-more p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.ev-more .ev-when { font-weight: 700; color: var(--ink); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ev-actions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.ev-shifts { background: var(--gold-tint); padding: 10px 16px 14px 86px; }
.sh-title { margin: 0 0 6px; font-weight: 800; color: var(--gold-ink); font-size: 0.92rem; }
.ev-shifts ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; max-width: 34rem; }
.ev-shifts li { display: flex; gap: 10px; align-items: baseline; font-size: 0.9rem; color: var(--ink); background: #fff; border-radius: 6px; padding: 6px 10px; }
.ev-shifts li b { min-width: 5.5rem; color: var(--navy-deep); }
.ev-shifts .what { flex: 1; color: var(--ink-soft); }
.ev-shifts .left { font-weight: 800; color: var(--gold-ink); white-space: nowrap; margin-left: auto; }
.ev-shifts .left.is-full { color: var(--muted); }
.sh-btn { display: inline-block; box-sizing: border-box; min-height: 44px; padding: 11px 18px; line-height: 1.25; border-radius: 8px; background: var(--gold); color: var(--navy-ink); font-weight: 800; text-decoration: none; }
.sh-btn::after { content: "\00a0\2192"; }
.sh-btn:hover { background: #ffca3a; }
@media (max-width: 600px) {
	.ev-more, .ev-shifts { padding-left: 16px; }
	.ev-shifts li { flex-wrap: wrap; gap: 2px 10px; }
	.ev-shifts li b { min-width: 4.6rem; }
	.ev-shifts .what { order: 3; flex-basis: 100%; } /* A shift's description gets its own line under the time. */
	.ev-shifts .what:empty { display: none; }
}

/* Month view: a grid per month. On phones each event is a dot and a tap lists the day's events below. */
.mnav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: -2.6rem; position: relative; z-index: 1; }
.mnav button { width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--rule); background: #fff; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.mnav button:disabled { opacity: 0.35; cursor: default; }
h2.cal-month-title { margin: 0 0 1rem; font-size: 1.5rem; min-height: 44px; display: flex; align-items: center; }
h2.cal-month-title::after { display: none; }
.cal-month[hidden] { display: none; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: var(--rule-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mhead { display: contents; }
.mhead span { background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 700; text-align: center; padding: 8px 0; letter-spacing: 0.05em; }
.mday { background: #fff; min-height: 7.5rem; padding: 6px 6px 8px; min-width: 0; }
.mday[data-has] { cursor: pointer; }
.mday[data-has]:hover { background: #f6f8fb; }
.mday .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; color: var(--navy-deep); font-size: 0.9rem; }
.mday.is-today .num { background: var(--navy); color: #fff; }
.mday.is-other, .mday.is-past { background: #fafbfc; }
.mday.is-other .num, .mday.is-past .num { color: #a6adb9; }
.mday.is-selected { box-shadow: inset 0 0 0 3px var(--navy); }
.mday ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 3px; }
.mday li { font-size: 0.74rem; line-height: 1.25; padding: 2px 5px; border-left: 3px solid var(--c); background: #f4f6f9; border-radius: 3px; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mday li .t { font-weight: 700; color: var(--ink-soft); }
.mday li.has-need { background: var(--gold-tint); box-shadow: inset 0 0 0 1px var(--gold); }
.mday li.more { border: 0; background: none; color: var(--navy); font-weight: 700; }
.mday li.is-dim { opacity: 0.25; }
.mlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); }
.mlegend span { display: inline-flex; align-items: center; gap: 6px; }
.mlegend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.mlegend .leg-need i { background: var(--gold-tint); box-shadow: inset 0 0 0 2px var(--gold); border-radius: 3px; }
@media (max-width: 781px) {
	.mgrid { gap: 4px; background: none; box-shadow: none; overflow: visible; }
	.mhead span { background: none; color: var(--muted); padding: 4px 0; }
	.mday { min-height: 0; aspect-ratio: 1 / 1.1; border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
	.mday.has-need { background: var(--gold-tint); box-shadow: inset 0 0 0 2px var(--gold); }
	.mday.is-today .num { background: none; color: var(--navy-deep); box-shadow: inset 0 0 0 2px var(--navy); }
	.mday.is-selected { background: var(--navy); box-shadow: none; }
	.mday.is-selected .num { color: #fff; }
	.mday ul { display: flex; gap: 3px; margin: 0; }
	.mday li { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--c); font-size: 0; box-shadow: none; }
	.mday li.has-need { background: var(--c); box-shadow: none; }
	.mday li:nth-child(n+5), .mday li.more { display: none; }
	.mday.is-selected li { box-shadow: 0 0 0 1.5px #fff; }
}

/* ───────── Cards, buttons, rows ───────── */
.is-style-card, .is-style-card-gold, .is-style-card-blue {
	border-radius: var(--radius); padding: 24px !important; background: #fff; box-shadow: var(--shadow);
}
.is-style-card-gold { background: var(--gold-tint); border-top: 4px solid var(--gold); }
.is-style-card-blue { border-left: 4px solid var(--navy); } /* "Information card": white, with a navy edge. */
:is(.is-style-card, .is-style-card-gold, .is-style-card-blue) > :first-child { margin-top: 0; }
:is(.is-style-card, .is-style-card-gold, .is-style-card-blue) > :last-child { margin-bottom: 0; }
:is(.is-style-card, .is-style-card-gold, .is-style-card-blue) h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
:is(.is-style-card, .is-style-card-gold, .is-style-card-blue) p { color: var(--ink-soft); }

/* box-sizing: WordPress loads its own button CSS only on pages with a button block; plugin-made buttons need it too. */
.wp-block-button__link { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.wp-block-button.is-style-gold .wp-block-button__link { background: var(--gold); color: var(--navy-ink); }
.wp-block-button.is-style-gold .wp-block-button__link:hover { background: #ffca3a; }
.wp-block-button.is-style-outline .wp-block-button__link { background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: calc(0.9rem - 2px) calc(1.4rem - 2px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--navy-tint); }
/*
 * "SignUpGenius badge" button style: SignUpGenius's own logo in a white box, for a link to the Council's sign-ups.
 * Visitors see only the logo; screen readers read the button's words, and the editor shows them beside the logo.
 */
.wp-block-button.is-style-signupgenius .wp-block-button__link {
	min-height: 3.25rem; padding: 0.5rem 1rem 0.5rem 10.75rem; border: 2px solid #231f20; border-radius: 8px;
	background: #fff url(assets/images/signupgenius.svg) 1rem center / 9rem auto no-repeat; color: #231f20;
}
.wp-block-button.is-style-signupgenius .wp-block-button__link:hover { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
:where(body:not(.editor-styles-wrapper)) .wp-block-button.is-style-signupgenius .wp-block-button__link { width: 13rem; padding: 0; background-position: center; font-size: 0; }
@media (max-width: 600px) { .wp-block-buttons > .wp-block-button { width: 100%; } .wp-block-button__link, :where(body:not(.editor-styles-wrapper)) .wp-block-button.is-style-signupgenius .wp-block-button__link { width: 100%; } }

/* Grouped link list: white rows 2px apart, rounded only at the outer corners, optional icon square. */
.rows { display: grid; gap: 2px; border-radius: var(--radius); box-shadow: var(--shadow); }
.rows > * { margin: 0 !important; }
.row { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 16px; min-height: 64px; background: #fff; }
.rows > .row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.rows > .row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.rows > .row:only-child { border-radius: var(--radius); }
.row[class*="icon-"]::before { content: ""; width: 60px; height: 60px; flex: none; border-radius: 8px; background: var(--icon) center / 28px no-repeat, var(--sky); }
.row strong { display: block; color: var(--ink); }
.row a { color: inherit; text-decoration: none; flex: 1; }
.row-text { flex: 1; }
.row a strong { color: var(--navy-deep); }
.row .row-sub, .row a span { display: block; font-size: 0.9rem; color: var(--muted); }
:where(body:not(.editor-styles-wrapper)) .row a::after { content: ""; position: absolute; inset: 0; }
.row:has(a)::after {
	content: ""; width: 18px; height: 18px; flex: none; background: var(--muted);
	-webkit-mask: url(assets/icons/chevron.svg) center / contain no-repeat; mask: url(assets/icons/chevron.svg) center / contain no-repeat;
}
.row:has(a):hover { background: #f1f5fa; }
.row:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); z-index: 1; }
.row a:focus-visible { outline: none; box-shadow: none; }
@media (max-width: 600px) { .row[class*="icon-"]::before { width: 48px; height: 48px; background-size: 24px, auto; } .row { gap: 12px; padding: 10px 12px; } }

/*
 * A program's activities as one list: name, one line, and when (in navy). An activity with more to say
 * is a Details block that opens with "+". On laptops the list runs in two columns.
 */
.row .facts, .row a span.facts { display: block; margin-top: 2px; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
details.row { display: block; padding: 0; }
details.row::after { content: none; }
details.row:hover { background: #fff; }
details.row > summary { display: block; position: relative; box-sizing: border-box; min-height: 64px; padding: 12px 48px 12px 16px; list-style: none; cursor: pointer; }
details.row > summary::-webkit-details-marker { display: none; }
details.row > summary { color: var(--ink); font-weight: 400; font-size: inherit; }
details.row > summary::before { content: none; }
details.row > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 700 1.5rem/1 Arial, sans-serif; color: var(--navy); }
details.row[open] > summary::after { content: "\2013"; }
details.row > summary:hover { background: #f1f5fa; }
details.row > summary:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
details.row > :not(summary) { margin: 0 16px; font-size: 0.95rem; color: var(--ink-soft); }
details.row > :not(summary) + :not(summary) { margin-top: 8px; }
/* The space under the last line is padding, not a margin: in the two-column list a margin falls outside the card. */
details.row[open] { padding-bottom: 14px; }
details.row > ul, details.row > ol { padding-left: 1.2em; }
details.row > ul li + li, details.row > ol li + li { margin-top: 4px; }
/* Links in the text and lists behind a "+" look like links; the rows' own link style is for whole-row links. */
details.row > :not(summary):not(.more-link) a { color: var(--navy); text-decoration: underline; }
details.row .more-link { margin-top: 4px !important; }
details.row .more-link a { display: inline-block; min-height: 0; padding: 9px 0; color: var(--navy); }
:where(body:not(.editor-styles-wrapper)) details.row a::after { content: none; }
details.row .more-link a::after { content: " \2192"; position: static; }
@media (min-width: 782px) {
	.activity-list { display: block; columns: 2; column-gap: 2.5rem; box-shadow: none; }
	.activity-list > .row { break-inside: avoid; border-radius: 0 !important; box-shadow: var(--shadow); margin-bottom: 2px !important; }
}
@media (max-width: 600px) { details.row > summary { padding: 10px 40px 10px 12px; } details.row > summary::after { right: 12px; } details.row > :not(summary) { margin: 0 12px; } }

.callstrip {
	position: relative; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 16px;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--navy-deep);
}
.callstrip::before { content: ""; width: 60px; height: 60px; flex: none; border-radius: 8px; background: var(--icon) center / 28px no-repeat, var(--sky); }
.callstrip + .callstrip { margin-top: 12px; }
.callstrip a { color: inherit; text-decoration: none; }
.callstrip strong { display: block; }
.callstrip a span, .callstrip .row-sub { display: block; font-size: 0.9rem; color: var(--muted); }
:where(body:not(.editor-styles-wrapper)) .callstrip a::after { content: ""; position: absolute; inset: 0; }
.callstrip:hover { box-shadow: 0 0 0 2px var(--navy), var(--shadow); }
.callstrip:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); }
.callstrip a:focus-visible { outline: none; box-shadow: none; }
@media (max-width: 600px) { .callstrip::before { width: 48px; height: 48px; background-size: 24px, auto; } .callstrip { gap: 12px; padding: 10px 12px; } }

/* Stats card: numbers side by side with thin dividers. */
.stats {
	display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 22px 0;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats > * { margin: 0 !important; }
.stat { padding: 4px 12px; border-left: 1px solid var(--rule); text-align: center; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.35; }
.stat:first-child { border-left: 0; }
.stat strong { display: block; margin-bottom: 4px; font-family: var(--wp--preset--font-family--display); font-size: 2.1rem; color: var(--navy); line-height: 1.15; }
@media (max-width: 600px) { .stat strong { font-size: 1.45rem; } .stat { padding: 4px 6px; } }

ol.is-style-steps { list-style: none; counter-reset: s; padding: 0; margin-left: 0; max-width: 640px; }
ol.is-style-steps li { counter-increment: s; position: relative; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
ol.is-style-steps li:last-child { border-bottom: 0; }
ol.is-style-steps li::before {
	content: counter(s); position: absolute; left: 0; top: 11px; width: 32px; height: 32px; border-radius: 50%;
	background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}
ol.is-style-steps li strong { display: block; color: var(--ink); }

/* ───────── Joining: the join card, How to join, Learn about the Knights ───────── */
.join-card h3 { font-size: 1.45rem !important; line-height: 1.25; color: var(--navy-deep); }
.code-row { flex-wrap: wrap; }
.code-row code {
	font: 700 1rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.03em;
	color: var(--navy-deep); background: var(--navy-tint); padding: 6px 10px; border-radius: 6px; overflow-wrap: anywhere;
}
.copy-btn {
	min-height: 44px; min-width: 76px; padding: 0 16px; border: 2px solid var(--navy); border-radius: 999px;
	background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer;
}
.copy-btn:hover { background: var(--navy-tint); }
.copy-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); }
@media (max-width: 600px) { .code-row .row-text { flex-basis: 100%; } }
.banner-lead {
	text-align: center; font-size: 1.3rem; line-height: 1.45; font-weight: 700; color: var(--navy-deep);
	background: var(--navy-tint); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
@media (max-width: 600px) { .banner-lead { font-size: 1.1rem; padding: 1rem; } }
.founder-photo img { width: 100%; max-width: 320px; height: auto; border-radius: var(--radius); }
.faq { display: grid; gap: 2px; border-radius: var(--radius); box-shadow: var(--shadow); }
.faq > * { margin: 0 !important; }
.faq .wp-block-details { background: #fff; padding: 4px 16px; }
.faq > :first-child { border-radius: var(--radius) var(--radius) 0 0; }
.faq > :last-child { border-radius: 0 0 var(--radius) var(--radius); }
.faq .wp-block-details summary { font-size: 1.06rem; color: var(--navy-deep); padding: 8px 0; }
.faq .wp-block-details > :not(summary) { margin: 0 0 0.75rem; font-size: 1rem; max-width: 70ch; }
.support-lead { font-weight: 700; font-size: 1.1rem; color: var(--navy-deep); }
.support-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.support-grid > * { margin: 0 !important; }
@media (max-width: 600px) { .support-grid { grid-template-columns: 1fr; } }
.support-list ul { margin: 0.25rem 0 0.5rem; padding-left: 1.2rem; color: var(--ink-soft); }
.support-close { text-align: center; font-weight: 700; color: var(--navy-deep); }

/* ───────── Programs: overview and program pages ───────── */
/* min(100%, …): with the largest text on a 320px phone, 15rem is wider than the screen. */
.program-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 18px; align-items: start; }
.program-grid > * { margin: 0 !important; }
.is-style-card.program { padding: 20px !important; border-top: 4px solid var(--gold); }
.is-style-card.program > * { margin: 0 !important; }
.is-style-card.program > * + * { margin-top: 0.5rem !important; }
.is-style-card.program h3 { font-size: 1.1rem; }
.is-style-card.program p { font-size: 0.95rem; }
.is-style-card.program .facts { color: var(--navy); font-weight: 700; font-size: 0.875rem; }
.is-style-card.program .wp-block-details { border-top: 1px solid var(--rule-soft); padding-top: 0.25rem; }
.wp-block-details summary {
	cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px;
	color: var(--navy); font-weight: 700; font-size: 0.95rem; list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::before {
	content: ""; width: 14px; height: 14px; flex: none; background: currentColor; transition: transform .15s;
	-webkit-mask: url(assets/icons/chevron.svg) center / contain no-repeat; mask: url(assets/icons/chevron.svg) center / contain no-repeat;
}
.wp-block-details[open] summary::before { transform: rotate(90deg); }
.wp-block-details > :not(summary) { margin: 0.25rem 0 0.5rem; color: var(--ink-soft); }
.more-link a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.more-link a::after { content: " →"; white-space: pre; }
.more-link a:hover { text-decoration: underline; }

/* ───────── Recognition and photos ───────── */
.kotm { border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 24px !important; background: #fff; box-shadow: var(--shadow); }
.kotm .wp-block-image img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.kotm-month { color: var(--muted); font-weight: 700; margin-bottom: 0; }
.kotm h3 { margin-top: 0.2rem; }
.wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: var(--radius); overflow: hidden; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { font-size: 0.85rem; }

.map-placeholder {
	height: 220px; border-radius: var(--radius); display: grid; place-items: center;
	background: linear-gradient(135deg, #dbe5f1, #b9cbe2); color: var(--navy-deep); font-weight: 700;
}
.pay-placeholder {
	border: 2px dashed var(--navy); border-radius: var(--radius); padding: 24px; background: #fff; color: var(--navy-deep);
}
.pay-placeholder strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }

/* ───────── Forms (demonstration only in the prototype) ───────── */
.council-form { display: grid; gap: 18px; max-width: 640px; }
.council-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.council-form legend, .council-form .field > label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--navy-deep); }
.council-form .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 12px; }
.council-form .pair label { display: block; margin-bottom: 4px; font-size: 0.9rem; color: var(--muted); }
.council-form input:not([type="checkbox"]):not([type="radio"]), .council-form select, .council-form textarea {
	display: block; width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--muted); border-radius: 8px;
	background: #fff; color: var(--ink); font: inherit; font-size: max(16px, 1rem); box-sizing: border-box;
}
.council-form textarea { min-height: 170px; resize: vertical; }
.council-form .check { display: flex; gap: 10px; align-items: flex-start; }
.council-form .check input { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.council-form button {
	min-height: 52px; padding: 12px 22px; border: 0; border-radius: 8px; background: var(--navy); color: #fff;
	font: inherit; font-weight: 700; cursor: pointer; justify-self: start;
}
.council-form [role="status"]:empty { display: none; }
.council-form [role="status"] { padding: 10px 12px; border-radius: 8px; background: var(--gold-tint); color: var(--gold-ink); font-weight: 700; }

/* ───────── Search results: one white list, pages with a page icon, events with their date chip ───────── */
.search-count { margin: 0 0 1rem; color: var(--ink-soft); }
.search-count strong { color: var(--ink); }
.results { list-style: none; margin: 0; padding: 0; max-width: 52rem; display: grid; gap: 2px; border-radius: var(--radius); box-shadow: var(--shadow); }
.result { position: relative; display: flex; gap: 16px; align-items: flex-start; margin: 0; padding: 16px; background: #fff; }
.result:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.result:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.result:only-child { border-radius: var(--radius); }
.result:hover { background: #f1f5fa; }
.result::after {
	content: ""; width: 18px; height: 18px; flex: none; align-self: center; background: var(--muted);
	-webkit-mask: url(assets/icons/chevron.svg) center / contain no-repeat; mask: url(assets/icons/chevron.svg) center / contain no-repeat;
}
.result-icon { --icon: url(assets/icons/page.svg); flex: none; width: 56px; height: 56px; border-radius: 8px; background: var(--icon) center / 26px no-repeat, var(--sky); }
.result-b { flex: 1; min-width: 0; }
.result-b > * { margin: 0; }
.result-b > * + * { margin-top: 3px; }
.result-b > .result-snippet { margin-top: 6px; }
.result-kicker { font-size: 0.85rem; color: var(--muted); }
.result-title { font-family: inherit; font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: var(--navy-deep); }
.result-title a { color: inherit; text-decoration: none; }
.result:hover .result-title a { text-decoration: underline; text-underline-offset: 3px; }
:where(body:not(.editor-styles-wrapper)) .result-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.result:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); z-index: 1; }
.result-title a:focus-visible { outline: none; box-shadow: none; }
.result-meta { font-size: 0.9rem; color: var(--ink-soft); }
.result-snippet { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.result mark { background: rgba(247, 183, 24, 0.35); color: inherit; padding: 0 1px; border-radius: 2px; }
@media (max-width: 600px) {
	.result { gap: 12px; padding: 12px; }
	.result-icon { width: 48px; height: 48px; background-size: 24px, auto; }
}
.search-results .rows { max-width: 36rem; }

.pagination { margin-top: 1.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; box-sizing: border-box;
	border-radius: 8px; background: #fff; box-shadow: var(--shadow); color: var(--navy); font-weight: 700; text-decoration: none;
}
.pagination a.page-numbers:hover { background: var(--navy-tint); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; }
.pagination .page-numbers.dots { background: none; box-shadow: none; }

/* ───────── Members' area: sign in, ask for access, members-only pages (printed by the Council 8600 Members plugin) ───────── */
.members-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 24px; align-items: start; }
.members-card { padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.members-card > :first-child { margin-top: 0; }
h2.members-card-title { margin: 0 0 1rem; font-size: 1.4rem; }
.members-card .council-form { gap: 14px; }
.members-card .council-form button { justify-self: stretch; }
.council-form .hint { margin: -2px 0 6px; font-size: 0.9rem; color: var(--muted); }
.council-form fieldset .hint { margin: 0 0 6px; }
.council-form .field-error { margin: 6px 0 0; color: var(--red); font-weight: 700; font-size: 0.95rem; }
.council-form [aria-invalid="true"] { border-color: var(--red) !important; border-width: 2px !important; }
.form-errors { margin: 0 0 14px; padding: 12px 16px; border-radius: 8px; border-left: 5px solid var(--red); background: #fdecec; color: var(--ink); }
.form-errors p, .form-errors ul { margin: 0; }
.form-errors ul { margin-top: 4px; padding-left: 1.2rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signin-providers { display: grid; gap: 10px; }
.signin-providers .provider {
	min-height: 52px; padding: 10px 16px; border-radius: 8px; border: 2px solid var(--rule); background: #fff; cursor: pointer;
	color: var(--ink); font: inherit; font-weight: 700;
}
.signin-providers a.provider { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.signin-providers .provider:hover { border-color: var(--navy); background: var(--navy-tint); }
.provider-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.members-notice ol.members-steps { margin: 8px 0 0; padding-left: 1.3rem; }
.members-notice ol.members-steps li { margin: 4px 0; }
.members-card ol.members-steps { margin: 0; }
.provider-status:empty { display: none; }
.provider-status { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--gold-tint); color: var(--gold-ink); font-weight: 700; font-size: 0.95rem; }
.members-card .or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 0.9rem; }
.members-card .or::before, .members-card .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.members-notice { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius); background: var(--sky); color: var(--ink); max-width: 52rem; }
.members-notice p { margin: 0; }
.members-notice p + p { margin-top: 6px; }
.members-notice.is-done { background: var(--gold-tint); border-left: 5px solid var(--gold); }
.members-pages { max-width: 40rem; }
/* Members' documents (Members plugin, documents.php) */
.docs-list { max-width: 40rem; margin-bottom: 8px; }
.docs-add { margin: 0 0 8px; font-size: 0.95rem; }
.doc-viewer { max-width: 52rem; }
.doc-back { margin: 0 0 6px; }
.doc-viewer .doc-title { margin-top: 0; }
.doc-meta { margin: 4px 0 14px; color: var(--muted); }
/* Download and "Open in a new tab" side by side. WordPress lays out only button blocks this way, not the plugin's buttons. */
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.doc-actions > .wp-block-button { margin: 0; }
@media (max-width: 600px) { /* Sharing the line on a phone; each takes a whole line only when the two don't fit (the largest text). */
	.doc-actions > .wp-block-button { width: auto; flex: 1 1 auto; }
	.doc-actions .wp-block-button .wp-block-button__link { padding-left: 0.5rem; padding-right: 0.5rem; }
}
.doc-pages { display: grid; gap: 14px; margin-top: 18px; }
.doc-page { width: 100%; background: #fff; border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; }
.doc-page canvas { display: block; width: 100%; height: auto; }
.doc-loading { color: var(--muted); }
.doc-failed { display: none; }
.doc-viewer.is-failed .doc-failed { display: block; }
.doc-viewer.is-failed .doc-pages { display: none; }
/* ───────── Members' documents: the list beside the document (documents.php, assets/doc-viewer.js) ─────────
 * Laptops (900 px and wider): the list on the left, kept in view while the document scrolls and scrolling on
 * its own when long; the open document on the right. Phones and narrow windows: the list, or one document
 * (.is-reading), as before. A long kind: its ten newest ("Latest"), then its years, closed. Every tap target
 * is at least 48 px high. */
.docs-split { margin-top: 1.25rem; }
.docs-split [hidden] { display: none !important; } /* The rules below give some of these a display; hidden still wins (an empty Newer and Older box, a kind set aside while finding). */
.docs-split .doc-viewer { max-width: none; min-width: 0; }
.docs-pane { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 0 8px; }
.docs-find { padding: 0 16px 8px; margin: 0; }
.docs-find label { display: block; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.docs-find-row { display: flex; gap: 8px; }
.docs-find input { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; font: inherit; font-size: 1rem; border: 2px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); }
.docs-find input:focus-visible { border-color: var(--navy); }
.docs-find button { flex: none; min-height: 48px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.docs-find.is-live button { display: none; } /* Finds as he types; the button is for browsers without JavaScript. */
.docs-found { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); }
.docs-found:empty { display: none; }
.docs-kind { border-top: 1px solid var(--rule-soft); padding-top: 4px; margin-top: 8px; }
.docs-pane > .docs-kind:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.docs-pane h2.docs-kind-title { margin: 10px 16px 4px; font-family: inherit; font-size: 0.8rem; font-weight: 800; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.docs-pane h3.docs-sub { margin: 12px 16px 2px; font-size: 0.9rem; font-weight: 700; color: var(--navy-deep); }
.docs-items { list-style: none; margin: 0; padding: 0; }
.docs-items > li { margin: 0; }
.docs-pane .doc-link { display: flex; align-items: center; min-height: 48px; box-sizing: border-box; padding: 8px 16px 8px 20px; border-left: 5px solid transparent; color: var(--navy-deep); font-size: 1rem; line-height: 1.3; text-decoration: none; }
.docs-pane .doc-link:hover { background: #f1f5fa; text-decoration: underline; text-underline-offset: 3px; }
.docs-pane .doc-link[aria-current="page"] { background: var(--navy-tint); border-left-color: var(--navy); font-weight: 800; }
.docs-pane .doc-link:focus-visible, .docs-year-toggle:focus-visible, .docs-pane .docs-more:focus-visible { outline: none; border-radius: 0; box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 6px var(--gold); }
.docs-years { margin-top: 2px; }
.docs-year-toggle {
	display: flex; align-items: center; width: 100%; min-height: 48px; box-sizing: border-box; margin: 0; padding: 0 16px; border: 0; background: none;
	color: var(--navy); font: inherit; font-size: 1rem; font-weight: 800; line-height: 1.3; text-align: left; text-decoration: none; cursor: pointer;
}
.docs-year-toggle::before { content: ""; flex: none; width: 10px; height: 10px; margin: 0 12px 0 2px; border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(-45deg); transition: transform 0.15s; }
.docs-year[data-open] > .docs-year-toggle::before { transform: rotate(45deg); }
.docs-year-toggle:hover { background: #f1f5fa; }
.docs-year-toggle[aria-busy="true"] { cursor: progress; }
.docs-year-name { flex: 1; }
.docs-count { padding: 2px 10px; border-radius: 20px; background: var(--canvas); color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.docs-year:not([data-open]) > .docs-items, .docs-year:not([data-open]) > .docs-more { display: none; }
.docs-year .doc-link { padding-left: 42px; }
.docs-pane .docs-more {
	display: flex; align-items: center; width: 100%; min-height: 48px; box-sizing: border-box; margin: 0; padding: 0 16px 0 42px; border: 0; background: none;
	color: var(--navy); font: inherit; font-size: 0.95rem; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.docs-results > .docs-more { padding-left: 20px; }
.docs-pane .docs-more:hover { background: #f1f5fa; }
.docs-clear { margin: 4px 16px 8px; }
.docs-clear a, .docs-clear button { display: inline-flex; align-items: center; min-height: 48px; padding: 0; border: 0; background: none; color: var(--navy); font: inherit; font-size: 0.95rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.docs-main .doc-title:focus { outline: none; }
.doc-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.doc-steps a { display: block; min-height: 48px; box-sizing: border-box; padding: 10px 14px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); color: var(--navy-deep); text-decoration: none; line-height: 1.3; }
.doc-steps a span { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.doc-steps a:hover strong { text-decoration: underline; }
.doc-steps .older { grid-column: 2; text-align: right; }
@media (min-width: 900px) {
	.docs-split { display: grid; grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr); gap: 32px; align-items: start; }
	.docs-split > .docs-main { margin-top: 0; }
	.docs-pane {
		position: sticky; top: calc(16px + var(--wp-admin--admin-bar--height, 0px));
		max-height: calc(100vh - 32px - var(--wp-admin--admin-bar--height, 0px)); overflow-y: auto; overscroll-behavior: contain;
	}
	.docs-main .doc-back { display: none; }
	/* Without JavaScript, the newest document is beside the list: marked like the one chosen. */
	.docs-split:not(.is-reading) .doc-link.is-shown { background: var(--navy-tint); border-left-color: var(--navy); font-weight: 800; }
}
@media not all and (min-width: 900px) { /* Exactly the other side of the line above, at 899.5 px too; doc-viewer.js asks the same question. */
	.docs-split.is-reading .docs-pane, .docs-split:not(.is-reading) .docs-main { display: none; }
}
@media (forced-colors: active) {
	.docs-pane { border: 2px solid CanvasText; }
	.docs-pane .doc-link[aria-current="page"] { border-left-color: Highlight; }
	.docs-year-toggle::before { border-color: CanvasText; }
}
/* ───────── End of the list beside the document ───────── */
.members-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 20px;
	/* Lined up with the title, which sits in the centred content column. */
	margin: 0.4rem 0 0 max(0px, calc((100% - var(--wp--style--global--content-size, 1120px)) / 2)) !important;
	background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em;
}
/* Usually it sits at the far end of the breadcrumbs' line; on the Members page the welcome and Sign out sit there. */
.band-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.band-top > * { margin: 0 !important; }
.band-top .members-who { font-size: 0.9rem; color: var(--ink-soft); }
.band-top .members-who a { color: var(--navy); text-underline-offset: 3px; white-space: nowrap; display: inline-block; padding: 6px 0; }
@media (max-width: 600px) { .band-top .who-hello { display: none; } } /* "Brother Corey. Edit · Sign out" fits beside the way back. */
/* A brother's own name: two boxes at the top of the members' area. */
.members-name { max-width: 40rem; margin-bottom: 1.5rem; }
.members-name .name-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.members-name .council-form button { justify-self: start; }
.members-badge::before {
	content: ""; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: url(assets/icons/lock.svg) center / contain no-repeat; mask: url(assets/icons/lock.svg) center / contain no-repeat;
}
/* The Members page: the latest Council email as a card, the other pages beside it on a laptop. */
.members-home { display: grid; gap: 24px; align-items: start; margin-bottom: 1.5rem; }
.members-home > * { margin: 0; max-width: none; }
@media (min-width: 900px) { .members-home { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.members-latest .email-kicker { color: var(--gold-ink); }
.email-preview { margin: 0 0 1.1rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
@media (max-width: 781px) { .email-preview { -webkit-line-clamp: 2; line-clamp: 2; } }
.members-latest .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
/* The whole email where there are two columns; its first lines and a button to it on a phone. */
.members-latest .email-whole, .members-latest .email-before { display: none; }
.members-latest .email-whole { margin-bottom: 1.25rem; }
@media (min-width: 900px) {
	.members-latest .email-whole, .members-latest .email-before { display: block; }
	.members-latest .email-preview, .members-latest .email-read { display: none; }
}
@media (max-width: 600px) { /* Both buttons on one line, sharing it. */
	.members-latest .wp-block-buttons > .wp-block-button { width: auto; flex: 1 1 0; }
	.members-latest .wp-block-button__link { padding-left: 0.5rem; padding-right: 0.5rem; white-space: nowrap; }
}
/* Program contacts (members only): the four programs, two across on a laptop. */
.contacts-grid { display: grid; gap: 8px 40px; align-items: start; }
.contacts-grid > * { margin: 0 !important; } /* Faith and Family headings line up. */
@media (min-width: 900px) { .contacts-grid { grid-template-columns: 1fr 1fr; } }
.contacts-program > h2 { margin-top: 1rem; }
.contacts-director { margin: 0.3rem 0 0.8rem; color: var(--ink-soft); }
.contacts-program .row { min-height: 0; padding-top: 10px; padding-bottom: 10px; }
/* Beside the card: the other pages, then the help row as its own card. */
.members-side { display: grid; gap: 18px; align-content: start; }
.members-side > * { margin: 0 !important; max-width: none; }
/* Help with getting the emails: one row that opens. */
.members-help { margin-top: 1.5rem; }
.members-help details.row > ol.is-style-steps { margin-top: 0; max-width: 40rem; }
/*
 * A Sir Knight's Members page: "Jump to" links (a small table of contents, not tabs), then a
 * "Council 8600" section and an "Assembly 3596" section, each led by a heading with a line
 * saying who it is for. Brothers of the Council only see none of this.
 */
.unit-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin: 0 0 1.75rem; }
.unit-jump-label { color: var(--ink-soft); font-size: 0.95rem; margin-right: 0.25rem; }
.unit-jump a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.1rem; box-sizing: border-box;
	border: 2px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; }
.unit-jump a::after { content: ""; width: 1rem; height: 1rem; background: currentColor; transform: rotate(90deg);
	-webkit-mask: url(assets/icons/chevron.svg) center / contain no-repeat; mask: url(assets/icons/chevron.svg) center / contain no-repeat; }
.unit-jump a:hover { background: var(--navy-tint); }
.unit-jump a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); }
@media (max-width: 600px) {
	.unit-jump-label { flex-basis: 100%; }
	.unit-jump a { flex: 1 1 0; justify-content: center; padding: 0.35rem 0.5rem; border-radius: var(--radius); text-align: center; line-height: 1.2; }
	.unit-jump a::after { display: none; } /* Room for the whole name on a phone; the arrow is only a hint. */
}
.unit-section { scroll-margin-top: 1rem; }
.unit-section + .unit-section { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.unit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin: 0 0 1.1rem; padding-left: 0.9rem; border-left: 6px solid var(--gold); }
.is-assembly .unit-head { border-left-color: var(--navy); }
h2.unit-title { margin: 0; font-size: 1.7rem; line-height: 1.15; color: var(--navy); }
.unit-sub { margin: 0; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.unit-empty { color: var(--muted); }
.members-latest h3.email-title { margin: 0.2rem 0 0.25rem; font-family: var(--wp--preset--font-family--display); font-size: 1.45rem; font-weight: 700; } /* Looks like the h2 it is on a Council-only page. */
.members-latest.is-assembly { border-top-color: var(--navy); }
.members-latest.is-assembly .email-kicker { color: var(--navy); }
.unit-section .docs-add { margin-top: 0.75rem; }
/* The request form's one question: whether he is a Sir Knight. */
.members-ask { margin: 0 0 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.members-ask .choices { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.members-ask .check { align-items: center; min-height: 44px; font-weight: 600; }

/* ───────── Council emails: the latest in full, earlier ones by month, one email on its own page (Council 8600 Members plugin) ───────── */
.email-latest { max-width: 44rem; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.email-latest > :first-child { margin-top: 0; }
.email-latest > :last-child { margin-bottom: 0; }
.email-kicker { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
h2.email-title { margin: 0.2rem 0 0.25rem; font-size: 1.45rem; }
h1.email-title { margin: 0 0 0.3rem; font-size: 1.6rem; line-height: 1.2; text-wrap: balance; }
.email-title a { color: inherit; text-decoration: none; }
.email-title a:hover { text-decoration: underline; }
.email-meta { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.email-body { max-width: 44rem; overflow-wrap: anywhere; }
.email-body img, .email-body video, .email-body iframe { max-width: 100%; height: auto; }
.email-body table { max-width: 100%; }
.email-latest .email-body { padding-top: 1rem; border-top: 1px solid var(--rule-soft); }
.email-reply { margin-top: 1.25rem; }
.email-month { margin: 1.6rem 0 0.6rem; color: var(--navy); font-size: 1.05rem; }
.email-list { max-width: 44rem; }
.email-empty { color: var(--muted); }
.email-nav { max-width: 44rem; margin-top: 2rem; }
.email-nav .rows { margin-bottom: 1rem; }
.email-nav .email-kicker { margin-bottom: 0.5rem; }
.email-nav .row a span { margin-bottom: 2px; }
/* On a laptop, the reading column keeps its width and the other emails use the space beside it. */
@media (min-width: 1000px) {
	.emails-layout, .email-layout { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: 40px; align-items: start; }
	.emails-layout > *, .email-layout > * { margin-top: 0; max-width: none; }
	.emails-earlier > h2:first-child { margin-top: 0; }
	.emails-earlier .email-list { max-width: none; }
	.email-layout .email-nav { position: sticky; top: 1.5rem; }
}

/* ───────── Footer ───────── */
.site-footer { background: var(--navy-deep); color: #c9d6ea; border-top: 5px solid var(--gold); margin-top: 0; }
.site-footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; font-size: 0.95rem; }
.site-footer b { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer a { color: #fff; display: block; padding: 4px 0; text-underline-offset: 3px; }
.site-footer p { margin: 0; }
.site-footer a + b { margin-top: 22px; }
.site-footer-legal { max-width: 1120px; margin: 0 auto !important; padding: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.85rem; }
.site-footer .site-footer-legal a { display: inline; margin-left: 10px; }
@media (max-width: 781px) {
	.site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; padding: 28px 16px; font-size: 0.9rem; }
	.site-footer b { font-size: 1rem; margin-bottom: 6px; }
	.site-footer a + b { margin-top: 16px; }
}

/* ───────── Program buttons: four icon buttons on the More page and in the phone menu ───────── */
/* Four across where the longest name fits, otherwise two by two (in rem, so it follows the text size). */
.app-grid { display: flex !important; flex-wrap: wrap; gap: 6px; container-type: inline-size; }
.app-grid > * { margin: 0 !important; flex: 1 1 calc(50% - 6px); } /* grows to fill; the slack stops rounding from wrapping early */
.app a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	height: 100%; box-sizing: border-box; padding: 14px 2px 12px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
	color: var(--navy-deep); font-size: 0.9rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
}
.app a::before { content: ""; width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--icon) center / 24px no-repeat, var(--sky); }
.app a:hover { background: #f1f5fa; }
@container (min-width: 22rem) {
	.app-grid > * { flex-basis: calc(25% - 6px); }
	.app a { font-size: 0.8rem; }
}
@media (min-width: 782px) { .app-grid { gap: 12px; } }
@container (min-width: 40rem) {
	.app-grid > * { flex-basis: calc(25% - 12px); }
	.app a { gap: 10px; padding: 22px 8px 18px; font-size: 1rem; }
	.app a::before { width: 60px; height: 60px; background-size: 28px, auto; }
}
.app-grid + .rows { margin-top: 12px; }

/* ───────── Phone "More" menu: a sheet that slides up from the More tab (inc/more-menu.php, theme.js) ───────── */
.sheet {
	position: fixed; inset: auto 0 0; width: auto; max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
	margin: 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; overflow: hidden;
	background: var(--canvas); color: var(--ink); box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 0.32s cubic-bezier(0.32, 0.72, 0, 1); }
.sheet::backdrop { background: rgba(8, 18, 45, 0.55); animation: sheet-fade 0.32s ease; transition: opacity 0.22s; }
.sheet.is-dragging { transition: none; }
.sheet.is-closing { transform: translateY(100%) !important; transition: transform 0.22s ease-in; }
.sheet.is-closing::backdrop { opacity: 0; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-fade { from { opacity: 0; } }
html:has(.sheet[open]) { overflow: hidden; }
/* The handle sits on a short fade, so the list scrolls away under it cleanly. */
.sheet::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 22px; z-index: 1; background: linear-gradient(var(--canvas) 60%, rgba(247, 247, 247, 0)); pointer-events: none; }
.sheet-grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #c3cbd6; z-index: 2; }
.sheet-close {
	position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center;
	padding: 0; border: 0; border-radius: 50%; background: var(--rule-soft); color: var(--navy); cursor: pointer;
	box-shadow: 0 1px 4px rgba(11, 28, 73, 0.15);
}
.sheet-close:hover { background: var(--sky); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.sheet-body > *, .sheet .wp-block-column > * { margin-top: 0; margin-bottom: 0; }
.sheet .wp-block-columns { display: block; margin: 0; }
.sheet .wp-block-column { margin: 0 !important; }
.sheet .sub { display: none; }
.sheet h2.wp-block-heading {
	margin: 20px 4px 8px !important; font-family: inherit; font-size: 0.8rem; line-height: 1.3; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--muted);
}
.sheet h2.wp-block-heading::after { display: none; }
.sheet .sheet-body > h2.wp-block-heading:first-of-type { margin-top: 2px !important; padding-right: 48px; min-height: 30px; }
/* Menu rows: one line each, a small icon, thin dividers. The page keeps the longer two-line rows. */
.sheet .rows { gap: 0; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.sheet .row { box-sizing: border-box; min-height: 52px; padding: 6px 14px; gap: 12px; font-size: 1rem; line-height: 1.3; border-radius: 0 !important; border-top: 1px solid var(--rule-soft); }
.sheet .rows > .row:first-child { border-top: 0; }
.sheet .row[class*="icon-"]::before { width: 32px; height: 32px; border-radius: 8px; background-size: 18px, auto; }
.sheet .row a span { display: none; }
.sheet .row a strong { font-weight: 600; color: var(--ink); }
.sheet .app a { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.sheet .app-grid + .rows { margin-top: 8px; }

@media (forced-colors: active) {
	.tile, .row, .callstrip, .ev, .result, .datechip, .stats, .kotm, .is-style-card, .is-style-card-gold, .is-style-card-blue, .email-latest, .app a, .sheet { border: 2px solid CanvasText; }
	.tile::before, .callstrip::before, .row[class*="icon-"]::before, .result-icon, .app a::before {
		background: CanvasText; -webkit-mask: var(--icon) center / 28px no-repeat; mask: var(--icon) center / 28px no-repeat;
	}
	.tabbar .wp-block-navigation-item__content::before, a.ev::after, .row:has(a)::after, .result::after, .brandbar .site-search button::before { background: CanvasText; }
	.brand-welcome { background: Canvas; }
	.brand-welcome, .brand-welcome h1 { color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/*
 * ───────── Fourth Degree Assembly 3596: its pages in the Assembly's red (inc/assembly-look.php) ─────────
 * The red, white and blue of the Fourth Degree emblem are the flag's colours. --asm is the flag's
 * red ("Old Glory Red"), dark enough for text and buttons: white on it 6.6:1, it on the page's
 * gray 6.2:1. --asm-bright is the emblem's own red (the cross, as on kofc.org's artwork), for
 * rules and markers only, never text: 3.6:1 on the page gray, 4.1:1 on the tab bar. --asm-deep is
 * for buttons (white on it 9:1), darker than the reds that mean "error" on this site.
 * Both looks: the Council's gold accents turn red, and the band gets a label.
 * Look B ("own", the default, body.assembly-look-own): the title band, buttons and links turn red too.
 * Look A ("accent"): only the accents.
 */
:root { --asm: #b22234; --asm-deep: #8e1b2b; --asm-bright: #ef3d3a; --asm-tint: #fbeeee; }
.band-tags { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; }
.band-tags > .members-badge { margin: 0 !important; }
.unit-badge {
	display: inline-block; padding: 3px 10px; border-radius: 20px; white-space: nowrap;
	background: var(--asm); color: #fff; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1.6;
}
.assembly-section .band-tags > .members-badge { background: var(--asm); } /* "Sir Knights only", in the Assembly's red. */
/* So the line never wraps and the band keeps its height, whatever the width and text size (the band's width in rem,
   so the text-size buttons move the points too): "Assembly 3596" without "Fourth Degree" where the line is short,
   and on a private page, whose breadcrumbs are longer, only "Sir Knights only" until there is room for both. */
.assembly-section .page-band { container-type: inline-size; }
@container (max-width: 40rem) { .unit-badge-degree { display: none; } }
@container (max-width: 62rem) { .band-tags > .unit-badge:has(+ .members-badge) { display: none; } }
.assembly-section h2.wp-block-heading::after { background: var(--asm-bright); }
.assembly-section .tabbar :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content { color: #fff; }
.assembly-section .tabbar :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content::after { background: var(--asm-bright); }
.assembly-section .is-style-card-gold { background: #fff; border-top-color: var(--asm-bright); } /* A pink card would read as a warning. */
.assembly-section .wp-block-button.is-style-gold .wp-block-button__link { background: var(--asm); color: #fff; }
.assembly-section .wp-block-button.is-style-gold .wp-block-button__link:hover { background: var(--asm-deep); }
/* The Assembly's part of the Members page, whatever the look. */
.unit-section.is-assembly .unit-head { border-left-color: var(--asm-bright); }
.members-latest.is-assembly { border-top-color: var(--asm-bright); }
.members-latest.is-assembly .email-kicker { color: var(--asm); }
/* Look B: the section's own colour. */
.assembly-look-own .page-band { background: var(--asm); }
.assembly-look-own .page-band h1 { color: #fff; }
.assembly-look-own .page-band .wp-block-breadcrumbs { color: #fff; }
.assembly-look-own .page-band .wp-block-breadcrumbs a { color: #fff; }
.assembly-look-own .page-band :focus-visible { outline-color: #fff; }
.assembly-look-own .page-band :is(.unit-badge, .band-tags > .members-badge) { background: #fff; color: var(--asm); }
.assembly-look-own .wp-block-post-content :is(p:not([class]), .is-style-steps li) > a { color: var(--asm); } /* Links in running text; lists of rows and documents keep theirs. */
/* Buttons in the darker red: a bright red button reads as a warning, as an error does. */
.assembly-look-own .wp-block-button:not(.is-style-outline):not(.is-style-signupgenius) .wp-block-button__link { background: var(--asm-deep); color: #fff; }
.assembly-look-own .wp-block-button:not(.is-style-outline):not(.is-style-signupgenius) .wp-block-button__link:hover { background: #6b1420; }
.assembly-look-own .wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--asm-deep); color: var(--asm-deep); }
.assembly-look-own .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--asm-tint); }
.assembly-look-own ol.is-style-steps li::before { background: var(--asm); }
.assembly-look-own :is(.row[class*="icon-"], .callstrip)::before { background-color: var(--asm-tint); }
.assembly-look-own .docs-pane .doc-link[aria-current="page"] { background: var(--asm-tint); border-left-color: var(--asm); }
/* Without JavaScript, the newest document beside the list is marked in the Assembly's red too. */
@media (min-width: 900px) { .assembly-look-own .docs-split:not(.is-reading) .doc-link.is-shown { background: var(--asm-tint); border-left-color: var(--asm); } }
/* Printed: the red band keeps its colour, or its white title would vanish on paper printed without backgrounds. */
@media print { .assembly-look-own .page-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* Windows high contrast: the label keeps its outline. */
@media (forced-colors: active) { .unit-badge { border: 1px solid CanvasText; } }
