/*
Theme Name: SGPCA
Theme URI: https://stgeorgeplace.org/
Author: OWDT
Author URI: https://owdt.com
Description: Custom lightweight theme for the St. George Place Civic Association. Structured content (Events, Meetings, Board, Security Alerts, Yard of the Month, Resources), a single Security settings source of truth, topic-routed forms, Add to Calendar, redirects, schema, and GA4 event hooks. Built to WCAG 2.2 AA.
Version: 1.6.5
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sgpca
*/

/* ---------- Fonts (self-hosted, limited weights) ---------- */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('assets/fonts/newsreader.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 500; font-display: swap; src: url('assets/fonts/newsreader-italic.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('assets/fonts/instrument-sans.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('assets/fonts/cinzel.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
	--paper: #F7F3EB;
	--paper-field: #FBF9F4;
	--sand: #EEE8DC;
	--sand-hover: #EFE7D8;
	--sage: #E1E6D9;
	--ink: #24261F;
	--ink-2: #4A4C44;
	--muted: #5B5D54;
	--line: #DCD4C4;
	--line-2: #CFC6B4;
	--field: #8F8A7C;
	--green: #2E4A3B;
	--green-dk: #233A2E;
	--green-hover: #1F3529;
	--green-line: #56715E;
	--green-line-2: #3F5A4A;
	--green-soft: #9FB19A;
	--on-dark: #F7F3EB;
	--on-dark-2: #DDE6D8;
	--on-dark-3: #D3DDCF;
	--on-dark-4: #C9D6C3;
	--rust: #A4553A;
	--rust-dk: #8E4630;
	--peach: #F2C9B6;
	--mask: #2A2C25;
	--serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--display: 'Cinzel', Georgia, serif;
	--accent: #2E4A3B;
	--btn: #2E4A3B;
	--btn-hover: #1F3529;
	--light-btn: #F7F3EB;
	--light-btn-text: #233A2E;
	--light-btn-hover: #FFFFFF;
	--btn-text: #F7F3EB;
	--rule: #24261F;
	--ghost-border: #9FB19A;
	--chip-on-bg: #24261F;
	--chip-on-text: #F7F3EB;
	--signup-bg: #2B4537;
	--signup-border: #6F8A76;
	--footer-muted: #B9C7B4;
	--seal: #24261F;
	--seal-footer: #F7F3EB;
	--involve-hover: rgba(247, 243, 235, .55);
	--urgent-bg: #F6DED3;
	--img-filter: none;
	color-scheme: light;
	--wrap: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--ease: 220ms ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); transition: background-color 500ms ease, color 500ms ease; font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 4px; transition: color var(--ease); }
a:hover { color: var(--rust); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .alert-bar :focus-visible { outline-color: var(--peach); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--green); color: var(--on-dark); padding: 12px 18px; font-weight: 600; border-radius: 2px; }
.skip-link:focus { top: 12px; color: var(--on-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-wide { max-width: 1480px; margin: 0 auto; padding-left: clamp(16px, 3.5vw, 56px); padding-right: clamp(16px, 3.5vw, 56px); }
.section { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.section-md { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.section-sm { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.bg-sand { background: var(--sand); }
.bg-sage { background: var(--sage); }
.bg-green { background: var(--green-dk); color: var(--on-dark); }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.eyebrow--rust { color: var(--rust); }
.eyebrow--light { color: var(--on-dark-4); }
.kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--rust); }
.display-1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
.display-2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.015em; }
.display-3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 720px; }
.body-copy { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.small-muted { font-size: 14px; color: var(--muted); }
.page-head { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-head h1 { margin-bottom: 20px; max-width: 900px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------- Icons (mask images, recolored via background) ---------- */
.icon { display: inline-block; flex-shrink: 0; width: var(--s, 44px); height: var(--s, 44px); background: var(--mask); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.icon--left { -webkit-mask-position: left center; mask-position: left center; }
.icon--light { background: #EDE6D6; }
.icon--rust { background: var(--rust-dk); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 22px; font-size: 15px; font-weight: 600; line-height: 1.2; border-radius: 2px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.btn--sm { min-height: 44px; padding: 11px 18px; font-size: 14.5px; }
.btn--primary { background: var(--btn); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-hover); color: var(--btn-text); transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(31, 53, 41, .55); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: var(--light-btn); color: var(--light-btn-text); }
.btn--light:hover { background: var(--light-btn-hover); color: var(--light-btn-text); transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .45); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: var(--ghost-border); }
.btn--ghost-light:hover { background: var(--light-btn); color: var(--light-btn-text); border-color: var(--light-btn); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: var(--accent); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.text-link:hover { color: var(--rust); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none !important; } }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 16px; font-size: 14px; font-weight: 500; border: 1px solid var(--rule); border-radius: 40px; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.chip:hover { background: var(--sage); border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="page"], .chip.is-active { background: var(--chip-on-bg); color: var(--chip-on-text); border-color: var(--chip-on-bg); }

/* ---------- Seal ---------- */
.seal text { font-family: var(--display); }
.seal .seal-mono { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400; }

/* ---------- Alert bar ---------- */
.alert-bar { background: var(--green); color: var(--on-dark); font-size: 14px; }
.alert-bar__inner { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.alert-bar__label { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: var(--peach); }
.alert-bar__text { flex: 1; min-width: 240px; }
.alert-bar a { color: var(--on-dark); font-weight: 600; text-underline-offset: 3px; display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; }
.alert-bar a:hover { color: var(--peach); }
.alert-bar--urgent { background: #8E4630; }
.alert-bar--urgent .alert-bar__label { color: #FFE3D6; }
/* Phones: routine updates are hidden to keep the header compact; urgent alerts still show. */
@media (max-width: 639px) { .alert-bar:not(.alert-bar--urgent) { display: none; } }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__bar { height: 104px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--rust); }
.brand .seal { width: 88px; height: 88px; flex-shrink: 0; }
.brand__words { display: flex; flex-direction: column; gap: 6px; }
.brand__name { font-family: var(--display); font-size: 23px; line-height: 1; letter-spacing: .1em; white-space: nowrap; }
.brand__sub { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
.site-header__spacer { flex: 1; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.3vw, 22px); align-items: center; }
.primary-nav a { display: block; padding: 10px 0; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid transparent; white-space: nowrap; line-height: 1.2; }
.primary-nav a:hover { color: var(--rust); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_parent > a, .primary-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.header-security { min-height: 44px; padding: 11px 16px; font-size: 14px; white-space: nowrap; }
.menu-toggle { display: none; flex-shrink: 0; background: none; border: 1px solid var(--rule); min-width: 44px; height: 44px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); border-radius: 2px; padding: 0 12px; }
.menu-toggle:hover { color: var(--rust); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); padding: 8px clamp(20px, 4vw, 40px) 24px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li a { display: block; border-bottom: 1px solid var(--line); padding: 16px 0; font-family: var(--serif); font-size: 24px; color: var(--ink); text-decoration: none; transition: padding var(--ease), color var(--ease); }
.mobile-nav li a:hover { color: var(--rust); padding-left: 8px; }
.mobile-nav__security { margin: 12px 0 8px; min-height: 52px; width: 100%; justify-content: space-between; font-size: 16px; padding: 0 18px; }
@media (max-width: 1399px) { .primary-nav { display: none; } .menu-toggle { display: inline-flex; align-items: center; } }
@media (max-width: 1023px) { .site-header__bar { height: 88px; } .brand .seal { width: 72px; height: 72px; } .brand__name { font-size: 19px; } }
@media (max-width: 639px) {
	.site-header__bar { height: 72px; gap: 10px; } .brand { gap: 10px; } .brand .seal { width: 54px; height: 54px; }
	.brand__name { font-size: 14.5px; letter-spacing: .04em; } .brand__sub { font-size: 8px; } .brand__words { gap: 4px; }
	.header-security { display: none; }
}
@media (max-width: 379px) { .brand__name { font-size: 13px; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(80vh, 760px); display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; width: 100%; padding-bottom: clamp(28px, 5vw, 56px); padding-top: 40px; }
.hero__card { background: var(--paper); max-width: 680px; padding: clamp(28px, 4vw, 48px); }
.hero__card .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 em { color: var(--accent); }
.hero p { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-bottom: 28px; }
/* Phones: full-screen photo with the headline and buttons laid over it. */
@media (max-width: 639px) {
	.hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); max-height: 860px; align-items: flex-end; overflow: hidden; }
	.hero__media { position: absolute; inset: 0; }
	.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
		background: linear-gradient(0deg, rgba(8, 12, 10, .9) 0%, rgba(8, 12, 10, .8) 35%, rgba(8, 12, 10, .62) 55%, rgba(8, 12, 10, .3) 70%, rgba(8, 12, 10, 0) 88%); }
	/* Soft blur that fades out toward the top, under the text. */
	.hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
		-webkit-mask-image: linear-gradient(0deg, #000 0%, #000 45%, transparent 75%); mask-image: linear-gradient(0deg, #000 0%, #000 45%, transparent 75%); }
	.hero__media::after { z-index: 2; }
	.hero { background: #0B100D; }
	/* Lift the photo so the people sit above the text; the freed bottom blends into the dark fade. */
	.hero__media img { position: absolute; left: 0; top: -24%; object-position: 55% 50%; animation: sgpca-hero-zoom 9s ease-out both;
		-webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
	.hero__inner, .hero__inner.wrap { position: relative; z-index: 3; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); }
	.hero__card { background: transparent !important; box-shadow: none !important; border: 0; padding: 0; max-width: none; color: #fff; }
	.hero__card .eyebrow { color: rgba(255, 255, 255, .85); margin-bottom: 12px; }
	.hero h1 { color: #fff; font-size: clamp(36px, 11vw, 50px); margin-bottom: 14px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
	.hero h1 em { color: var(--hero-em, #F2D3A0); }
	.hero p { color: rgba(255, 255, 255, .92); font-size: 15.5px; line-height: 1.55; margin-bottom: 22px; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
	.hero .btn-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
	.hero .btn { width: 100%; min-height: 52px; }
	.hero .btn--primary { background: #F7F3EB; color: #233A2E; border-color: #F7F3EB; }
	.hero .btn--primary:hover { background: #fff; color: #233A2E; }
	.hero .btn--outline { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
	.hero .btn--outline:hover { background: #fff; color: #233A2E; border-color: #fff; }
	:root[data-theme="dark"] .hero .btn--primary { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
	:root[data-theme="dark"] .hero h1 em { color: var(--btn); }
}
@media (max-width: 639px) and (max-height: 700px) { .hero p { display: none; } }
@keyframes sgpca-hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none !important; } }

/* ---------- Quick actions ---------- */
.quick { padding-top: clamp(40px, 5vw, 64px); }
.quick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top-color: var(--ink); }
.quick__item { background: var(--paper); padding: 32px clamp(24px, 2.6vw, 36px) 36px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: background var(--ease), box-shadow var(--ease); }
.quick__item:hover { background: var(--sand-hover); box-shadow: inset 0 -3px 0 var(--rust); color: var(--ink); }
.quick__label { display: flex; align-items: center; gap: 10px; }
.quick__title { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.quick__desc { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Grids ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 5vw, 80px); }
.split--380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 72px); }
.split--end { align-items: end; }
.split--center { align-items: center; }
.split--start { align-items: start; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 32px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 40px; }
.pillar { border-top: 1px solid var(--rule); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.pillar h3 { font-weight: 500; font-size: 22px; }
.pillar p { font-size: 15px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.tile { background: var(--paper); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 28px; }
.tile p { font-size: 15px; color: var(--ink-2); }
.tile .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--fill { position: absolute; inset: 0; }
.frame--news { height: 220px; }
.frame--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sage), var(--sand)); }
.frame--placeholder .icon { --s: 72px; opacity: .45; }

/* ---------- Events ---------- */
.meeting-card { background: var(--green); color: var(--on-dark); padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.meeting-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 600; border: 1px solid #6F8A76; padding: 5px 10px; border-radius: 20px; color: var(--on-dark-2); }
.pill--status { border-color: var(--peach); color: var(--peach); text-transform: uppercase; letter-spacing: .08em; }
.pill--status-light { border-color: var(--rust); color: var(--rust); text-transform: uppercase; letter-spacing: .08em; }
.meeting-card__main { display: flex; gap: 24px; align-items: flex-start; }
.datebox { text-align: center; border-right: 1px solid var(--green-line); padding-right: 24px; }
.datebox__mon { font-size: 13px; letter-spacing: .14em; font-weight: 600; color: var(--peach); }
.datebox__day { font-family: var(--serif); font-size: 64px; line-height: 1; }
.meeting-card h3 { font-size: 32px; line-height: 1.1; margin-bottom: 10px; }
.meeting-card__meta { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--on-dark-2); }
.meeting-card__desc { font-size: 15px; color: var(--on-dark-2); border-top: 1px solid var(--green-line); padding-top: 20px; }
.meeting-card .btn-row { margin-top: auto; }
.meeting-card a:not(.btn) { color: var(--on-dark); }

.event-mini { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.event-mini__mon, .event-row__mon { font-size: 12px; letter-spacing: .14em; font-weight: 600; color: var(--rust); }
.event-mini__day { font-family: var(--serif); font-size: 40px; line-height: 1; }
.event-cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.event-mini h3 { font-weight: 500; font-size: 22px; margin-bottom: 6px; }
.event-mini h3 a, .event-row h3 a, .news-card h3 a, .update-row h3 a { color: inherit; text-decoration: none; }
.event-mini h3 a:hover, .event-row h3 a:hover, .news-card h3 a:hover, .update-row h3 a:hover { color: var(--rust); text-decoration: underline; }
.event-meta { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 16px; }

.featured-meeting { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); background: var(--green); color: var(--on-dark); }
.featured-meeting__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 20px; }
.featured-meeting h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.featured-meeting .frame { min-height: 320px; }
.dl-dark { margin: 4px 0 0; display: flex; flex-direction: column; }
.dl-dark > div { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid #4E6A58; }
.dl-dark > div:last-child { border-bottom: 1px solid #4E6A58; }
.dl-dark dt { color: var(--green-soft); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.dl-dark dd { margin: 0; font-size: 16.5px; line-height: 1.5; }
.featured-meeting a:not(.btn) { color: var(--on-dark); }

.event-list { border-top: 1px solid var(--rule); }
.event-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.event-row[hidden] { display: none; }
.event-row__day { font-family: var(--serif); font-size: 44px; line-height: 1; }
.event-row__dow { font-size: 12.5px; color: var(--muted); }
.event-row .event-cat { color: var(--accent); }
.event-row h3 { font-size: 25px; margin-bottom: 6px; }
.event-row .event-meta { font-size: 15px; gap: 4px 18px; }
.event-row__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.is-cancelled h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
@media (max-width: 639px) { .event-row { grid-template-columns: 64px minmax(0, 1fr); } .event-row__actions { grid-column: 2; justify-content: flex-start; } }

/* ---------- Security ---------- */
.snapshot { display: grid; gap: 1px; background: var(--green-line-2); border: 1px solid var(--green-line-2); }
.snapshot > div { background: var(--green-dk); padding: 24px 26px; }
.snapshot__provider { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.snapshot__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--green-soft); margin-bottom: 6px; }
.snapshot__name { font-family: var(--serif); font-size: 24px; }
.snapshot__since { font-size: 13.5px; color: var(--on-dark-4); align-self: end; }
.snapshot__911 { display: flex; gap: 18px; align-items: center; }
.snapshot__911 strong { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--peach); line-height: 1; }
.snapshot__911 span { font-size: 15px; color: var(--on-dark-3); }
.snapshot a { color: var(--on-dark); font-family: var(--serif); font-size: 21px; text-decoration-color: #6F8A76; text-underline-offset: 5px; }
.snapshot a:hover { color: var(--peach); }
.bg-green p.body-copy { color: var(--on-dark-3); }

.sec-hero { background: var(--green-dk); color: var(--on-dark); }
.sec-hero__grid { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.sec-hero p.lede { color: var(--on-dark-3); max-width: 520px; }
.provider-box { border: 1px solid var(--green-line); padding: 28px; }
.provider-box__name { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin: 14px 0 10px; }
.provider-box p { font-size: 15px; color: var(--on-dark-3); margin-bottom: 18px; }
.provider-box small { font-size: 13px; color: var(--green-soft); }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.help-card { border: 1px solid var(--rule); padding: clamp(28px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.help-card--emergency { border: 2px solid var(--rust); }
.help-card__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.help-card h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
.help-card p { font-size: 15.5px; color: var(--ink-2); max-width: 440px; }
.help-card__action { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.call-911 { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; text-decoration: none; color: var(--rust); }
.call-911 strong { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; }
.call-911 span { font-size: 14px; font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid var(--rust); padding-bottom: 2px; }
.call-911:hover { color: var(--rust-dk); }
.phone-link { font-family: var(--serif); font-size: 26px; color: var(--ink); text-decoration: none; }
.vacation { background: var(--sage); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.vacation__body { padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.vacation h2 { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.05; }
.vacation p { font-size: 16.5px; color: var(--ink-2); max-width: 440px; }
.vacation .frame { min-height: clamp(280px, 32vw, 420px); }
.faq { border-bottom: 1px solid var(--line-2); grid-column: 1 / -1; }
.faq details { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-family: var(--serif); font-size: 22px; min-height: 44px; transition: color var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rust); }
.faq summary::after { content: '+'; color: var(--rust); font-size: 24px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { margin: -4px 0 24px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 620px; }
.update-row { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line-2); }
.update-row__date { font-size: 14px; color: var(--muted); font-weight: 500; }
.update-row h3 { font-size: 24px; margin-bottom: 8px; }
.update-row p { font-size: 15px; color: var(--ink-2); max-width: 680px; }
@media (max-width: 639px) { .update-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; gap: 14px; }
.news-card[hidden] { display: none; }
.news-meta { display: flex; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; flex-wrap: wrap; }
.news-meta .cat { color: var(--rust); }
.news-meta .date { color: var(--muted); }
.news-card h3 { font-size: 25px; line-height: 1.2; }
.news-card p { font-size: 15px; color: var(--ink-2); }
.news-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.news-featured .frame { height: clamp(280px, 34vw, 440px); }
.news-featured h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; margin: 16px 0; }
.news-featured p { font-size: 16.5px; color: var(--ink-2); margin-bottom: 12px; }
.pagination { margin-top: 56px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Home: newcomer + involve ---------- */
.newcomer { position: relative; min-height: 420px; display: flex; align-items: flex-end; }
.newcomer__card { position: relative; background: var(--paper); margin: 0 24px 24px; padding: 28px; max-width: 420px; }
.newcomer__card h3 { font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
.involve { background: var(--sage); padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; }
.involve h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; margin-bottom: 16px; }
.involve > p { color: var(--ink-2); margin-bottom: 28px; }
.involve ul { list-style: none; margin: auto 0 0; padding: 0; }
.involve li a { display: flex; justify-content: space-between; border-top: 1px solid var(--green-soft); padding: 16px 0; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; transition: padding var(--ease), background var(--ease), color var(--ease); }
.involve li:last-child a { border-bottom: 1px solid var(--green-soft); }
.involve li a:hover { padding-left: 12px; color: var(--accent); background: var(--involve-hover); }

/* ---------- About ---------- */
.orgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.org { background: var(--paper); padding: 28px; color: var(--ink); text-decoration: none; display: block; }
a.org:hover { background: var(--sand-hover); color: var(--ink); }
.org--this { background: var(--green); color: var(--on-dark); }
.org__top { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.org--this .org__top { color: var(--on-dark-4); }
.org h3 { font-size: 26px; margin-bottom: 10px; }
.org p { font-size: 15px; color: var(--ink-2); }
.org--this p { color: var(--on-dark-2); }
.bounds { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.bounds dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--rust); padding: 14px 24px 14px 0; border-top: 1px solid var(--line-2); }
.bounds dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line-2); }
.bounds dt:last-of-type, .bounds dd:last-of-type { border-bottom: 1px solid var(--line-2); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.timeline li { border-top: 2px solid var(--rule); padding-top: 20px; }
.timeline li.is-key { border-top-color: var(--rust); }
.timeline strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.timeline li.is-key strong { color: var(--rust); }
.timeline p { font-size: 15px; color: var(--ink-2); }
.officers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 40px; }
@media (min-width: 1024px) { .officers { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); column-gap: 28px; row-gap: 44px; } }
@media (max-width: 639px) { .officers { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 28px; } .officers .officer__name { font-size: 19px; } }
.officer { display: flex; flex-direction: column; gap: 14px; }
.officer .frame { aspect-ratio: 419 / 524; }
.officer__name { font-family: var(--serif); font-size: 24px; }
.officer__meta { container-type: inline-size; }
/* Title note sits under the role, one line, shrinking with the card. */
.officer__meta .officer__name { line-height: 1.15; margin-bottom: 8px; }
.officer__role { line-height: 1.4; }
.officer__note { font-family: var(--sans); font-size: min(13px, 6cqi); line-height: 1.4; white-space: nowrap; color: var(--muted); margin-top: 3px; }
.board-note { font-family: var(--sans); font-size: 14.5px; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.roster li .board-note { display: block; margin-top: 2px; }
.monogram { font-family: var(--serif); font-size: 64px; color: var(--accent); opacity: .5; }
.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px clamp(32px, 5vw, 64px); }
.roster__group { min-width: 0; }
.roster__group--wide { grid-column: 1 / -1; }
.roster__head { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--rust); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.roster ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: 32px; }
.roster li { padding: 18px 0; border-bottom: 1px solid var(--line-2); font-family: var(--serif); font-size: 22px; }

/* ---------- Governance ---------- */
.doc-card { border-top: 3px solid var(--accent); background: var(--sand); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.doc-card h2 { font-size: 34px; }
.doc-card p { font-size: 15px; color: var(--ink-2); }
.doc-card dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.doc-card dt { color: var(--muted); }
.doc-card dd { margin: 0; }
.doc-card .btn-row { margin-top: auto; padding-top: 8px; gap: 10px; }
.note-bar { margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.note-bar p { color: var(--ink-2); max-width: 640px; }

/* ---------- Resources ---------- */
.callout { font-size: 16px; color: var(--ink-2); max-width: 680px; padding-left: 16px; border-left: 2px solid var(--rust); }
.res-groups { display: flex; flex-direction: column; gap: 48px; }
.res-group h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.res-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--rule); }
.res-item { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); transition: background var(--ease), padding var(--ease); }
.res-item:hover { background: var(--sand-hover); padding-left: 16px; color: var(--ink); }
.res-item__name { display: flex; justify-content: space-between; gap: 12px; font-family: var(--serif); font-size: 24px; }
.res-item__name span:last-child { color: var(--rust); font-size: 18px; flex-shrink: 0; }
.res-item__desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.res-item__role { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); margin-top: -4px; }
.field input, .field textarea, .field select { min-height: 50px; padding: 12px 14px; border: 1px solid var(--field); background: var(--paper-field); border-radius: 2px; font-weight: 400; font-size: 16px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--rust); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border: 2px solid var(--rust-dk); }
.field-error { color: var(--rust-dk); font-weight: 600; font-size: 14px; display: flex; gap: 6px; }
.field-error::before { content: '!'; display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--rust-dk); color: var(--paper); font-size: 12px; align-items: center; justify-content: center; flex-shrink: 0; }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field-set legend { font-size: 14px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; font-size: 14.5px; border: 1px solid var(--field); background: var(--paper-field); border-radius: 2px; transition: background var(--ease), color var(--ease); }
.choice input:checked + span { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.choice input:checked + span::before { content: '\2713'; margin-right: 8px; }
.choice input:focus-visible + span { outline: 3px solid var(--rust); outline-offset: 2px; }
.choice--pill span { border-radius: 40px; border-color: var(--accent); background: transparent; color: var(--accent); padding: 10px 16px; min-height: 44px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { border-top: 3px solid var(--accent); background: var(--sand); padding: 36px; }
.form-notice h2, .form-notice h3 { font-size: 30px; margin-bottom: 10px; }
.form-notice--error { border-top-color: var(--rust-dk); }
.bg-sand .form-notice { background: var(--paper); }
.bg-sand .field input, .bg-sand .field textarea { background: var(--paper); }
.emergency-note { border: 2px solid var(--rust); padding: 20px 22px; display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.emergency-note strong { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--rust); line-height: 1; }
.emergency-note span { font-size: 14.5px; }
.routed { font-size: 13.5px; color: var(--muted); }

/* ---------- Prose (Gutenberg content) ---------- */
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); color: var(--ink); margin-top: 1.6em; line-height: 1.15; }
.prose h3 { font-size: 24px; color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--rust); font-family: var(--serif); font-size: 22px; color: var(--ink); }
.prose img { height: auto; }
.prose .wp-block-button__link { background: var(--btn); color: var(--btn-text); border-radius: 2px; padding: 13px 22px; font-weight: 600; text-decoration: none; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line-2); padding: 10px 8px; text-align: left; }
.entry-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.entry-hero { max-width: 1000px; margin: 0 auto clamp(40px, 5vw, 64px); }
.entry-hero .frame { aspect-ratio: 16 / 9; }
.stale-note { background: var(--sage); padding: 16px 20px; font-size: 15px; margin-bottom: 28px; max-width: 760px; }
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 719px) { .detail-grid > .detail-box { order: -1; } }
.detail-box { background: var(--sand); padding: 28px; }
.detail-box dl { margin: 0 0 20px; display: grid; gap: 14px; }
.detail-box dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--rust); }
.detail-box dd { margin: 4px 0 0; font-size: 16px; }
.updated-stamp { font-size: 13.5px; color: var(--muted); margin-top: 16px; }

/* ---------- Yard of the Month ---------- */
.yard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.yard-card figure { margin: 0; }
.yard-card .frame { aspect-ratio: 4 / 3; }
.yard-card figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dk); color: var(--on-dark-2); }
.site-footer__top { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: end; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand .seal { width: 132px; height: 132px; flex-shrink: 0; }
.footer-brand__name { font-family: var(--display); font-size: 24px; letter-spacing: .08em; color: var(--on-dark); line-height: 1.2; }
.footer-brand__tag { font-size: 14.5px; margin-top: 4px; }
.signup label { font-size: 14.5px; color: var(--on-dark); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.signup__row { display: flex; flex-wrap: wrap; border: 1px solid var(--signup-border); border-radius: 2px; overflow: hidden; }
.signup input[type=email] { flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 16px; border: 0; background: var(--signup-bg); color: var(--on-dark); }
.signup input::placeholder { color: var(--footer-muted); }
.signup input:focus-visible { outline: 3px solid var(--peach); outline-offset: -3px; }
.signup button { flex: 0 0 auto; height: 52px; border-radius: 0; }
.footer-nav { padding: 32px 0; border-top: 1px solid var(--green-line-2); border-bottom: 1px solid var(--green-line-2); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.footer-nav a { color: var(--on-dark); font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--peach); }
.site-footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 12px 40px; flex-wrap: wrap; padding: 28px 0 clamp(40px, 5vw, 56px); font-size: 13.5px; color: var(--footer-muted); }
.site-footer__legal a { color: var(--on-dark-2); }
.site-footer__legal a:hover { color: var(--peach); }
.site-footer__legal .links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.site-footer__legal .links a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Reveal (progressive; JS adds .rv only when motion is allowed) ---------- */
.js-reveal .rv { opacity: 0; transform: translateY(32px); transition: opacity 1200ms cubic-bezier(.2, .65, .25, 1), transform 1400ms cubic-bezier(.16, .7, .2, 1); will-change: opacity, transform; }
.js-reveal .rv.is-in { opacity: 1; transform: none; }

/* ---------- 404 / search ---------- */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.search-form input[type=search] { flex: 1 1 240px; min-height: 50px; padding: 0 14px; border: 1px solid var(--field); background: var(--paper-field); border-radius: 2px; }

/* ---------- Print ---------- */
@media print { .alert-bar, .site-header, .site-footer, .btn, .chips { display: none !important; } body { background: #fff; } }

/* ---------- Add to Calendar menu ---------- */
.atc { position: relative; display: inline-block; }
.atc > summary { list-style: none; }
.atc > summary::-webkit-details-marker { display: none; }
.atc > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.atc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.atc__menu { position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); min-width: 230px; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }
.atc__menu a { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.atc__menu a:hover, .atc__menu a:focus-visible { background: var(--sage); color: var(--ink); }
.event-row__actions .atc__menu { left: auto; right: 0; }

/* ---------- Misc ---------- */
.signup .field-error { color: var(--peach); margin-top: 10px; }
.signup .field-error::before { background: var(--peach); color: var(--green-dk); }
.is-style-sgpca-callout { background: var(--sage); padding: 20px 24px; border-left: 3px solid var(--accent); }
.prose .eyebrow { font-family: var(--sans); }
.form-notice ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.form-notice:focus { outline: 3px solid var(--rust); outline-offset: 3px; }
main:focus { outline: none; }
.on-dark a.text-link { color: var(--on-dark); }
.field__label { display: block; }
.form-notice--error h3 { font-size: 24px; }

/* =========================================================================
   Night view (dark theme). Toggle in the header; choice is remembered per
   browser, otherwise the visitor's OS setting is followed.
   ========================================================================= */
:root[data-theme="dark"] {
	/* Night palette from the approved night design (navy + gold). */
	color-scheme: dark;
	--paper: #0E131A;
	--paper-field: #161D26;
	--sand: #161D26;
	--sand-hover: #1E2833;
	--sage: #161D26;
	--ink: #ECE4D2;
	--ink-2: #B4B8BB;
	--muted: #9FA5AB;
	--line: #2A3340;
	--line-2: #2A3340;
	--field: #5C6673;
	--rule: #5C6673;
	--green: #121A24;
	--green-dk: #080B10;
	--green-line: #3A4656;
	--green-line-2: #1E2833;
	--green-soft: #8C97A3;
	--on-dark: #ECE4D2;
	--on-dark-2: #C9CDD1;
	--on-dark-3: #C9CDD1;
	--on-dark-4: #C9CDD1;
	--accent: #E2B266;
	--btn: #E2B266;
	--btn-hover: #F0C781;
	--btn-text: #0E131A;
	--light-btn: #E2B266;
	--light-btn-hover: #F0C781;
	--light-btn-text: #0E131A;
	--ghost-border: #3A4656;
	--chip-on-bg: #E2B266;
	--chip-on-text: #0E131A;
	--rust: #E4906E;
	--rust-dk: #E4906E;
	--peach: #F0C781;
	--mask: #D8CBB0;
	--signup-bg: #080B10;
	--signup-border: #3A4656;
	--footer-muted: #9FA5AB;
	--seal: #E2B266;
	--seal-footer: #E2B266;
	--involve-hover: rgba(236, 228, 210, .04);
	--urgent-bg: #2A1F1C;
	--img-filter: brightness(.85) saturate(.9);
}
/* Night twins: each image can have a night version (Media → Night version). */
.img-night { display: none !important; }
:root[data-theme="dark"] .img-day { display: none !important; }
:root[data-theme="dark"] .img-night { display: block !important; }
/* Images without a night version are gently dimmed at night (portraits excepted). */
:root[data-theme="dark"] .frame:not(.officer .frame) img:not(.img-day):not(.img-night),
:root[data-theme="dark"] .hero__media img:not(.img-day):not(.img-night) { filter: var(--img-filter); }
:root[data-theme="dark"] .site-header { background: rgba(14, 19, 26, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
:root[data-theme="dark"] .hero__card { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .quick__item:hover { box-shadow: inset 0 -3px 0 var(--rust); }
:root[data-theme="dark"] .snapshot a { text-decoration-color: #3A4656; }
:root[data-theme="dark"] .atc__menu { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .frame--placeholder { background: linear-gradient(135deg, #161D26, #121A24); }
:root[data-theme="dark"] .monogram { opacity: .7; }
:root[data-theme="dark"] .pill--status-light { border-color: var(--rust); }
:root[data-theme="dark"] .field-error::before { color: #0E131A; }
:root[data-theme="dark"] ::selection { background: #E2B266; color: #0E131A; }
:root[data-theme="dark"] .btn--primary:hover, :root[data-theme="dark"] .btn--light:hover, :root[data-theme="dark"] .btn--ghost-light:hover { box-shadow: 0 10px 22px -8px rgba(226, 178, 102, .35); }
:root[data-theme="dark"] .theme-toggle:hover { background: var(--sand-hover); border-color: var(--rule); }

/* Toggle button */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; min-width: 44px; padding: 0 14px; flex-shrink: 0; border: 1px solid #CFC6B4; border-radius: 2px; background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.theme-toggle:hover { background: var(--sand-hover); border-color: var(--ink); color: var(--ink); }
:root[data-theme="dark"] .theme-toggle { border-color: var(--line-2); }
.theme-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.theme-toggle .for-dark, :root[data-theme="dark"] .theme-toggle .for-light { display: none; }
:root[data-theme="dark"] .theme-toggle .for-dark { display: inline-flex; align-items: center; gap: 9px; }
.theme-toggle .for-light { display: inline-flex; align-items: center; gap: 9px; }
@media (max-width: 639px) { .theme-toggle { padding: 0; } .theme-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Dusk/dawn glow when switching (skipped for reduced motion). */
.theme-glow { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; mix-blend-mode: soft-light; transition: opacity 600ms ease-in-out; }
@media (prefers-reduced-motion: reduce) { body { transition: none; } .theme-glow { display: none; } }

/* Footer refinements */
.site-footer { display: flow-root; }
.signup label .icon { --s: 30px; }
.site-footer__legal p { margin: 0; }
.site-footer__legal p a { display: inline; min-height: 0; }
@media (max-width: 639px) {
	.footer-brand { gap: 16px; }
	.footer-brand .seal { width: 88px; height: 88px; }
	.footer-brand__name { font-size: 19px; }
	.signup button { flex: 1 1 100%; }
	.site-footer__legal { flex-direction: column; align-items: flex-start; }
}

/* Seal colors (gold in Night view, per the night design). */
.brand .seal { color: var(--seal); transition: color 500ms ease; }
.footer-brand .seal { color: var(--seal-footer); }

/* ---------- Page transitions (as in the design): content fades up in on arrival
   and fades out before navigating away. Header/footer stay put. ---------- */
@keyframes sgpca-page-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
	#main { animation: sgpca-page-in 1000ms cubic-bezier(.4, 0, .2, 1) both; }
	#main.is-leaving { animation: sgpca-page-out 750ms cubic-bezier(.4, 0, .2, 1) forwards; }
	@keyframes sgpca-page-out { from { opacity: 1; transform: none; filter: none; } to { opacity: 0; transform: translateY(-16px); filter: blur(2px); } }
}

/* ---------- Event extras: portrait flyer + highlight cards ---------- */
.event-flyer { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.event-flyer img { display: block; width: 100%; height: auto; box-shadow: 0 24px 48px -28px rgba(20, 30, 25, .5); transition: transform var(--ease); }
.event-flyer a:hover img { transform: translateY(-3px); }
.event-flyer figcaption { margin-top: 12px; font-size: 14.5px; }
.prose .event-highlights { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .event-highlights li { margin: 0; padding: 18px 18px 18px 20px; background: var(--sand); border-left: 3px solid var(--accent); font-size: 15.5px; line-height: 1.45; }
.prose .event-highlights li strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 639px) { .prose .event-highlights { grid-template-columns: 1fr; } }
.prose .event-rsvp { background: var(--green); color: var(--on-dark); padding: 24px 26px; margin-top: 32px; }
.prose .event-rsvp p { color: var(--on-dark); margin: 0; }
.prose .event-rsvp a { color: var(--on-dark); font-weight: 600; }
.prose .event-rsvp strong { color: var(--on-dark); }
:root[data-theme="dark"] .prose .event-rsvp { background: var(--sand); border: 1px solid var(--line); }
