/* ==========================================================================
   Westwood Neighborhood Association - main stylesheet
   --------------------------------------------------------------------------
   Version 0.3.0. The look: a warm cream ground, the association's official
   green (#006E51) as the one accent, Caprasimo display headings over Figtree,
   and generously rounded shapes (28px containers, pill buttons and rows).

   Readership skews older, so three things are non-negotiable:
     - 18px base type, 1.65 line height
     - full-strength ink for anything that matters
     - 44px minimum tap targets

   Colors and fonts are declared in theme.json too so the block editor shows
   the same palette. Change both or they drift apart.
   ========================================================================== */

:root {
	/* Brand */
	--ww-green: #006E51;          /* official association green - do not change */
	--ww-deep:  #00503B;
	--ww-green-100: #E9F3EF;
	--ww-green-200: #CCE5DC;

	/* Warm ground */
	--ww-bg:      #F5EAD8;
	--ww-surface: #EBDDC5;
	--ww-paper:   #FFFDF7;

	/* Sage second voice */
	--ww-sage-200: #E1EECC;
	--ww-sage-900: #272E1B;

	/* Ink */
	--ww-ink:   #201E1D;
	--ww-body:  #474238;
	--ww-muted: #645C50;
	--ww-rule:  rgba(32, 30, 29, 0.16);

	--ww-font-display: "Caprasimo", Georgia, "Times New Roman", serif;
	--ww-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

	--ww-step--1: 1rem;
	--ww-step-0:  1.125rem;
	--ww-step-1:  clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--ww-step-2:  clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
	--ww-step-3:  clamp(2.25rem, 1.6rem + 2.6vw, 3.4rem);

	--ww-gap: 1.375rem;
	--ww-section: clamp(2.5rem, 5vw, 4rem);
	--ww-measure: 42rem;
	--ww-wide: 72.5rem;

	--ww-radius: 28px;
	--ww-radius-sm: 18px;
	--ww-pill: 999px;
	--ww-tap: 2.75rem;

	--ww-shadow-sm: 0 1px 2px rgba(46, 43, 37, 0.14);
	--ww-shadow-md: 0 3px 10px rgba(46, 43, 37, 0.16);
}

/* --------------------------------------------------------------------------
   Fonts. Loaded from Google in functions.php. To self-host instead, drop the
   woff2 files into assets/fonts/, uncomment these rules, and remove the
   wp_enqueue_style( 'westwood-fonts' ) call.
   --------------------------------------------------------------------------
@font-face { font-family: "Caprasimo"; src: url("../fonts/caprasimo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
*/

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ww-bg);
	color: var(--ww-ink);
	font-family: var(--ww-font-body);
	font-size: var(--ww-step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--ww-font-display);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

a { color: var(--ww-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--ww-green); }

:focus-visible { outline: 3px solid var(--ww-green); outline-offset: 3px; }
::selection { background: var(--ww-green-200); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.ww-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ww-green);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--ww-radius-sm) 0;
	z-index: 100;
}
.ww-skip:focus { left: 0; }

/* Photographs sit back into the warm page rather than on top of it. */
.ww-washed img,
img.ww-washed {
	filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.ww-header {
	background: var(--ww-deep);
	position: sticky;
	top: 0;
	z-index: 20;
	box-shadow: 0 2px 14px rgba(0, 60, 44, 0.25);
}

.ww-header__inner {
	max-width: var(--ww-wide);
	margin-inline: auto;
	padding: 0.875rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.75rem;
	flex-wrap: wrap;
}

.ww-brand { display: flex; align-items: center; }

.ww-brand__lockup {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	text-decoration: none;
	color: #fff;
}
.ww-brand__lockup:hover { color: #fff; }

.ww-brand__mark { height: 2.875rem; width: auto; }

.ww-brand__words { display: flex; flex-direction: column; line-height: 1; }

.ww-brand__name {
	font-family: var(--ww-font-display);
	font-size: 1.625rem;
	letter-spacing: 0.02em;
}

.ww-brand__est {
	font-size: 0.6875rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #B7D5CA;
	margin-top: 0.3125rem;
}

.ww-brand .custom-logo { max-height: 4.5rem; width: auto; }

.ww-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	align-items: center;
}

.ww-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: var(--ww-tap);
	padding: 0 1rem;
	border-radius: var(--ww-pill);
	color: #C9DED7;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
}

.ww-nav__list a:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.ww-nav__list .current-menu-item > a,
.ww-nav__list .current_page_item > a,
.ww-nav__list .current-menu-parent > a {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.ww-navtoggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--ww-tap);
	padding: 0 1.125rem;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--ww-pill);
	color: #fff;
	font: inherit;
	font-size: var(--ww-step--1);
	font-weight: 600;
	cursor: pointer;
}
.ww-navtoggle:hover { background: rgba(255, 255, 255, 0.14); }

.ww-navtoggle__bars,
.ww-navtoggle__bars::before,
.ww-navtoggle__bars::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	position: relative;
}
.ww-navtoggle__bars::before,
.ww-navtoggle__bars::after { content: ""; position: absolute; }
.ww-navtoggle__bars::before { top: -6px; }
.ww-navtoggle__bars::after  { top: 6px; }

@media (max-width: 52rem) {
	.ww-navtoggle { display: inline-flex; }
	.ww-nav { flex-basis: 100%; display: none; }
	.ww-nav.is-open { display: block; }
	.ww-nav__list {
		flex-direction: column;
		gap: 0.125rem;
		padding-top: 0.5rem;
	}
	.ww-nav__list a { width: 100%; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.ww-main { display: block; }

.ww-page {
	max-width: var(--ww-wide);
	margin-inline: auto;
	padding: var(--ww-section) 1.5rem;
}

.ww-page--narrow { max-width: 52rem; }

.ww-pagehead { margin-bottom: 2rem; }

.ww-pagehead__title {
	font-size: var(--ww-step-3);
	margin: 0;
	color: var(--ww-deep);
}

.ww-pagehead__intro,
.ww-page__intro {
	max-width: var(--ww-measure);
	margin: 1rem 0 0;
	color: var(--ww-body);
	font-size: 1.1875rem;
}

.ww-eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ww-deep);
	margin: 0 0 0.875rem;
}

.ww-hero { margin: 0 0 var(--ww-gap); }
.ww-hero img { border-radius: var(--ww-radius); box-shadow: var(--ww-shadow-md); }

.ww-empty { color: var(--ww-muted); font-style: italic; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ww-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--ww-tap);
	padding: 0.875rem 1.625rem;
	border: 1px solid transparent;
	border-radius: var(--ww-pill);
	font-family: var(--ww-font-display);
	font-size: 1.0625rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.ww-btn--primary { background: var(--ww-green); color: #fff; }
.ww-btn--primary:hover { background: var(--ww-deep); color: #fff; }

.ww-btn--secondary { background: transparent; border-color: var(--ww-rule); color: var(--ww-ink); }
.ww-btn--secondary:hover { background: rgba(0, 110, 81, 0.08); color: var(--ww-ink); }

.ww-btn--light { background: var(--ww-paper); color: var(--ww-deep); box-shadow: var(--ww-shadow-sm); }
.ww-btn--light:hover { background: #fff; color: var(--ww-deep); }

.ww-btn--onDark { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.ww-btn--onDark:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.ww-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   Forms (comment forms, search, plugin contact forms)
   -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	min-height: 3rem;
	padding: 0.625rem 1.25rem;
	font: inherit;
	color: var(--ww-ink);
	background: var(--ww-paper);
	border: 1px solid var(--ww-rule);
	border-radius: var(--ww-pill);
}

textarea { border-radius: 1.375rem; min-height: 9rem; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: rgba(32, 30, 29, 0.4); }
input:focus-visible, textarea:focus-visible { border-color: var(--ww-green); outline-offset: 0; }

label { font-weight: 600; }

input[type="submit"],
button[type="submit"] {
	width: auto;
	min-height: var(--ww-tap);
	padding: 0.875rem 1.625rem;
	border: 0;
	border-radius: var(--ww-pill);
	background: var(--ww-green);
	color: #fff;
	font-family: var(--ww-font-display);
	font-size: 1.0625rem;
	cursor: pointer;
}
input[type="submit"]:hover,
button[type="submit"]:hover { background: var(--ww-deep); }

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	align-items: center;
	max-width: 36rem;
}
.search-form label { flex: 1 1 14rem; }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.ww-group { margin-bottom: var(--ww-section); }

.ww-group__title {
	font-size: var(--ww-step-2);
	margin: 0 0 1.375rem;
	color: var(--ww-deep);
}

.ww-group__intro {
	max-width: var(--ww-measure);
	margin: -0.5rem 0 1.25rem;
	color: var(--ww-body);
}

.ww-sectionhead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-bottom: 1.375rem;
}
.ww-sectionhead .ww-group__title { margin: 0; }
.ww-sectionhead a { font-weight: 600; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.ww-prose { max-width: var(--ww-measure); font-size: 1.1875rem; color: var(--ww-body); }
.ww-prose > * + * { margin-top: 1.1em; }

.ww-prose h2, .ww-prose h3 {
	color: var(--ww-deep);
	margin-top: 1.9em;
	line-height: 1.15;
}
.ww-prose h2 { font-size: var(--ww-step-2); }
.ww-prose h3 { font-size: var(--ww-step-1); }

.ww-prose ul, .ww-prose ol { padding-left: 1.3em; }
.ww-prose li + li { margin-top: 0.4em; }

.ww-prose img { border-radius: var(--ww-radius); }

.ww-prose blockquote {
	margin-inline: 0;
	padding: 1.125rem 1.625rem;
	background: var(--ww-surface);
	border-left: 4px solid var(--ww-green);
	border-radius: 0 var(--ww-radius-sm) var(--ww-radius-sm) 0;
	color: var(--ww-ink);
}

.ww-note {
	display: block;
	background: var(--ww-sage-200);
	color: var(--ww-sage-900);
	padding: 1.125rem 1.5rem;
	border-radius: var(--ww-radius-sm);
	margin: 1.5rem 0 0;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.ww-hero-block { background: var(--ww-bg); }

.ww-hero-block__inner {
	max-width: var(--ww-wide);
	margin-inline: auto;
	padding: var(--ww-section) 1.5rem 1.75rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 3rem;
	align-items: center;
}

.ww-hero-block__title {
	font-size: var(--ww-step-3);
	line-height: 1.04;
	margin: 0 0 1.25rem;
	color: var(--ww-deep);
}

.ww-hero-block__intro { max-width: 34em; font-size: 1.25rem; color: var(--ww-body); }
.ww-hero-block__intro > * + * { margin-top: 0.9em; }

.ww-hero-block__media { position: relative; }

.ww-hero-block__media::before {
	content: "";
	position: absolute;
	left: -2rem;
	bottom: -1.75rem;
	width: 9.25rem;
	height: 9.25rem;
	border-radius: 50%;
	background: var(--ww-sage-200);
}

.ww-hero-block__media img {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ww-radius);
	box-shadow: var(--ww-shadow-md);
}

/* --------------------------------------------------------------------------
   Next meeting band and date chips
   -------------------------------------------------------------------------- */

.ww-meeting {
	background: var(--ww-sage-200);
	border-radius: var(--ww-radius);
	padding: 1.875rem 2.125rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.875rem;
}

.ww-meeting__body { flex: 1 1 20rem; }

.ww-meeting__kicker {
	margin: 0 0 0.375rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ww-sage-900);
}

.ww-meeting__title { margin: 0 0 0.5rem; font-size: var(--ww-step-2); color: var(--ww-deep); }
.ww-meeting__meta { margin: 0; color: var(--ww-body); }

.ww-datechip {
	flex: 0 0 6.75rem;
	width: 6.75rem;
	height: 6.75rem;
	border-radius: 50%;
	background: var(--ww-deep);
	color: #fff;
	display: grid;
	place-items: center;
	text-align: center;
	line-height: 1.1;
}

.ww-datechip--sage { background: var(--ww-sage-200); color: var(--ww-sage-900); }

.ww-datechip--sm { flex-basis: 5.25rem; width: 5.25rem; height: 5.25rem; }

.ww-datechip__mon {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.85;
}

.ww-datechip__day {
	display: block;
	font-family: var(--ww-font-display);
	font-size: 2.375rem;
	margin-top: 0.125rem;
}
.ww-datechip--sm .ww-datechip__day { font-size: 1.875rem; }

/* Event rows */
.ww-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; }

.ww-event__link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
	background: var(--ww-paper);
	border-radius: var(--ww-radius);
	padding: 1.25rem 1.625rem;
	text-decoration: none;
	color: var(--ww-ink);
	box-shadow: var(--ww-shadow-sm);
}
.ww-event__link:hover { background: var(--ww-green-100); color: var(--ww-ink); }

.ww-event__body { flex: 1 1 20rem; }
.ww-event__title { display: block; font-family: var(--ww-font-display); font-size: var(--ww-step-1); color: var(--ww-deep); line-height: 1.15; }
.ww-event__meta { display: block; margin-top: 0.375rem; color: var(--ww-body); font-size: 1.0625rem; }

.ww-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.4375rem 1rem;
	border-radius: var(--ww-pill);
	background: var(--ww-green-100);
	color: var(--ww-deep);
	font-size: 0.875rem;
	font-weight: 700;
}
.ww-tag--sage { background: var(--ww-sage-200); color: var(--ww-sage-900); }

/* --------------------------------------------------------------------------
   Cards (news)
   -------------------------------------------------------------------------- */

.ww-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: 1.5rem;
}

.ww-card {
	background: var(--ww-paper);
	border-radius: var(--ww-radius);
	overflow: hidden;
	box-shadow: var(--ww-shadow-sm);
	display: flex;
	flex-direction: column;
}

.ww-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}

.ww-card__body { padding: 1.5rem; }

.ww-card__meta {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ww-muted);
}

.ww-card__title { font-size: var(--ww-step-1); margin: 0 0 0.5rem; line-height: 1.15; }
.ww-card__title a { text-decoration: none; color: var(--ww-deep); }
.ww-card__title a:hover { text-decoration: underline; }

.ww-card__excerpt { margin: 0; color: var(--ww-body); font-size: 1.0625rem; }

/* Welcome band */
.ww-band {
	position: relative;
	overflow: hidden;
	background: var(--ww-deep);
	color: #fff;
	border-radius: var(--ww-radius);
	padding: 3rem 2.75rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 2.5rem;
	align-items: center;
}

.ww-band__watermark {
	position: absolute;
	right: -2.5rem;
	bottom: -3.75rem;
	width: 20rem;
	opacity: 0.1;
	filter: brightness(0) invert(1);
	pointer-events: none;
}

.ww-band__title { margin: 0 0 0.875rem; font-size: var(--ww-step-2); color: #fff; }
.ww-band__text { margin: 0; font-size: 1.1875rem; color: #D8E6E1; max-width: 34em; }
.ww-band__actions { position: relative; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --------------------------------------------------------------------------
   Committees
   -------------------------------------------------------------------------- */

.ww-committee {
	background: var(--ww-surface);
	border: 0;
	border-radius: var(--ww-radius);
	padding: 1.625rem 1.875rem;
	margin-bottom: 1rem;
}

.ww-committee__name { font-size: var(--ww-step-1); margin: 0 0 0.5rem; color: var(--ww-deep); }
.ww-committee__desc { max-width: 44em; }

.ww-committee__meeting {
	display: inline-flex;
	margin: 0.5rem 0 0;
	padding: 0.375rem 0.875rem;
	border-radius: var(--ww-pill);
	background: var(--ww-paper);
	color: var(--ww-deep);
	font-weight: 700;
	font-size: 0.875rem;
}

.ww-committee__members {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	font-size: 1.0625rem;
	color: var(--ww-body);
}

.ww-committee__member-role { color: var(--ww-muted); }

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */

.ww-people {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: 1.375rem;
}

.ww-person {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	background: var(--ww-paper);
	border-radius: var(--ww-radius);
	padding: 1.625rem;
	box-shadow: var(--ww-shadow-sm);
}

.ww-person__portrait {
	flex: 0 0 4.875rem;
	width: 4.875rem;
	height: 4.875rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ww-sage-200);
	display: grid;
	place-items: center;
}

.ww-person__portrait img { width: 100%; height: 100%; object-fit: cover; }

.ww-person__initial { font-family: var(--ww-font-display); font-size: 1.875rem; color: var(--ww-deep); }

.ww-person__name { font-size: var(--ww-step-1); margin: 0; line-height: 1.15; color: var(--ww-deep); }
.ww-person__role { margin: 0.3125rem 0 0; font-weight: 700; color: var(--ww-deep); }
.ww-person__streets, .ww-person__term { color: var(--ww-muted); font-size: 1rem; }
.ww-person__streets { margin: 0.5rem 0 0; }
.ww-person__bio { margin-top: 0.5rem; font-size: 1.0625rem; color: var(--ww-body); }
.ww-person__bio p { margin: 0; }
.ww-person__meta { margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.15rem; }

/* --------------------------------------------------------------------------
   Documents
   -------------------------------------------------------------------------- */

.ww-docs {
	list-style: none;
	margin: 0;
	padding: 0.625rem 0.75rem;
	background: var(--ww-paper);
	border-radius: var(--ww-radius);
	box-shadow: var(--ww-shadow-sm);
}

.ww-doc { border: 0; }

.ww-doc__link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.375rem 1.5rem;
	min-height: 3.5rem;
	padding: 0.875rem 1.25rem;
	border-radius: var(--ww-pill);
	text-decoration: none;
	color: var(--ww-ink);
}

.ww-doc__link:hover { background: var(--ww-green-100); color: var(--ww-deep); }

.ww-doc__title { font-weight: 600; flex: 1 1 18rem; }

.ww-doc__meta {
	display: flex;
	align-items: center;
	gap: 1.125rem;
	color: var(--ww-muted);
	font-size: 0.9375rem;
	white-space: nowrap;
}

.ww-doc__icon { flex: 0 0 auto; color: var(--ww-muted); }
.ww-doc__link:hover .ww-doc__icon { color: var(--ww-deep); }

.ww-doc__link--broken { color: var(--ww-muted); cursor: default; }
.ww-doc__link--broken:hover { background: none; color: var(--ww-muted); }

.ww-doc__note {
	margin: 0 0 0.5rem;
	padding: 0 1.25rem;
	color: var(--ww-muted);
	font-size: 1rem;
	max-width: var(--ww-measure);
}

.ww-email { word-break: break-word; }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.ww-pagination { margin-top: var(--ww-section); }

.ww-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--ww-tap);
	min-height: var(--ww-tap);
	padding: 0 1rem;
	background: var(--ww-surface);
	border-radius: var(--ww-pill);
	text-decoration: none;
	font-weight: 600;
	color: var(--ww-ink);
	margin-right: 0.375rem;
}

.ww-pagination .page-numbers:hover { background: var(--ww-green-200); }
.ww-pagination .current { background: var(--ww-green); color: #fff; }

.ww-pagination ul.page-numbers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.ww-pagination ul.page-numbers li { display: inline-block; }
.ww-pagination ul.page-numbers .page-numbers { margin-right: 0; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.ww-404 { text-align: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.ww-404 img { width: 10.625rem; margin: 0 auto 1.75rem; opacity: 0.5; }
.ww-404 .ww-pagehead__title { margin-bottom: 1rem; }
.ww-404 p { margin: 0 auto 1.875rem; max-width: 32em; font-size: 1.25rem; color: var(--ww-body); }
.ww-404 .ww-actions { justify-content: center; }
.ww-404 .search-form { margin-inline: auto; justify-content: center; }

/* --------------------------------------------------------------------------
   Footer - deliberately shallow
   -------------------------------------------------------------------------- */

.ww-footer { background: var(--ww-deep); color: #D8E6E1; margin-top: var(--ww-section); }

.ww-footer a { color: #E4EFEB; }
.ww-footer a:hover { color: #fff; }

.ww-footer__inner {
	max-width: var(--ww-wide);
	margin-inline: auto;
	padding: 2.125rem 1.5rem 1.125rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 0.875rem 2.25rem;
}

.ww-footer__brand { display: flex; align-items: center; gap: 0.875rem; }
.ww-footer__brand img { height: 2.875rem; filter: brightness(0) invert(1); }
.ww-footer__name { font-family: var(--ww-font-display); font-size: 1.625rem; margin: 0; color: #fff; }
.ww-footer__tagline { margin: 0.625rem 0 0; max-width: 26em; font-size: 1rem; color: #B7D5CA; }

.ww-footer__heading {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 0.25rem;
	color: #8FB8AB;
}

.ww-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	column-gap: 1.375rem;
}

.ww-footer__list a,
.ww-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	text-decoration: none;
	font-size: 1.0625rem;
}
.ww-footer__list a:hover,
.ww-footer__links a:hover { text-decoration: underline; }

.ww-footer__links { display: flex; flex-direction: column; }

.ww-footer__legal {
	max-width: var(--ww-wide);
	margin-inline: auto;
	padding: 0.875rem 1.5rem 1.375rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.875rem;
	color: #8FB8AB;
}
.ww-footer__legal p { margin: 0; }

/* --------------------------------------------------------------------------
   Block editor alignment helpers
   -------------------------------------------------------------------------- */

.ww-prose .alignwide { max-width: var(--ww-wide); }
.ww-prose .alignfull { max-width: none; }
.ww-prose .aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 0.9375rem; color: var(--ww-muted); margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   Page head with an inline action (Events "Subscribe", etc.)
   -------------------------------------------------------------------------- */

.ww-page-head-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}
.ww-page-head-row .ww-pagehead { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Events index
   -------------------------------------------------------------------------- */

.ww-events-month {
	font-size: 1.625rem;
	color: var(--ww-muted);
	margin: 0 0 1rem;
}
.ww-events-month:not(:first-child) { margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   Generic sand panel — Events closer, Join's donation/Facebook cards
   -------------------------------------------------------------------------- */

.ww-panel { background: var(--ww-surface); border-radius: var(--ww-radius); padding: 1.75rem 2rem; }
.ww-panel__title { font-size: var(--ww-step-1); margin: 0 0 0.5rem; color: var(--ww-deep); }
.ww-panel p:last-child { margin-bottom: 0; }
.ww-panel .ww-btn { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.ww-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 2.5rem;
	align-items: start;
}

.ww-infocards { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.ww-infocard { background: var(--ww-surface); border-radius: var(--ww-radius); padding: 1.375rem 1.625rem; }
.ww-infocard__label {
	font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--ww-muted); margin: 0 0 0.5rem;
}
.ww-infocard p { margin: 0 0 0.375rem; }
.ww-infocard p:last-child { margin-bottom: 0; }
.ww-infocard a { font-weight: 600; }

.ww-formcard { background: var(--ww-paper); border-radius: var(--ww-radius); padding: 2rem; box-shadow: var(--ww-shadow-md); }
.ww-formcard__title { margin: 0 0 1.25rem; font-size: var(--ww-step-1); color: var(--ww-deep); }

.ww-form__row { margin-bottom: 1.125rem; }
.ww-form__row label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9375rem; color: var(--ww-ink); }

.ww-form__row input[type="text"],
.ww-form__row input[type="email"],
.ww-form__row input[type="password"] {
	width: 100%;
	min-height: var(--ww-tap);
	padding: 0 1.125rem;
	border: 1px solid var(--ww-rule);
	border-radius: var(--ww-pill);
	background: var(--ww-bg);
	font: inherit;
	font-size: 1rem;
	color: var(--ww-ink);
}

.ww-form__row textarea {
	width: 100%;
	min-height: 8rem;
	padding: 0.875rem 1.125rem;
	border: 1px solid var(--ww-rule);
	border-radius: var(--ww-radius-sm);
	background: var(--ww-bg);
	font: inherit;
	font-size: 1rem;
	color: var(--ww-ink);
	resize: vertical;
}

.ww-form__row input:focus,
.ww-form__row textarea:focus { outline: 3px solid var(--ww-green); outline-offset: 1px; }

.ww-form__submit { width: 100%; }

.ww-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ww-form__notice { border-radius: var(--ww-radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-weight: 600; }
.ww-form__notice--success { background: var(--ww-green-100); color: var(--ww-deep); }
.ww-form__notice--error { background: #F7E3DD; color: #7A2E17; }

/* --------------------------------------------------------------------------
   Join
   -------------------------------------------------------------------------- */

.ww-steps {
	list-style: none;
	margin: 0 0 var(--ww-section);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1.375rem;
}

.ww-step { background: var(--ww-paper); border-radius: var(--ww-radius); padding: 1.75rem; box-shadow: var(--ww-shadow-sm); }
.ww-step__num {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--ww-green);
	color: #fff;
	font-family: var(--ww-font-display);
	font-size: 1.375rem;
	margin-bottom: 1.125rem;
}
.ww-step__title { margin: 0 0 0.5rem; font-size: var(--ww-step-1); color: var(--ww-deep); }
.ww-step__text { margin: 0; color: var(--ww-body); }

.ww-band--sage { background: var(--ww-sage-200); color: var(--ww-sage-900); }
.ww-band--sage .ww-band__title { color: var(--ww-sage-900); }
.ww-band--sage .ww-band__text { color: var(--ww-sage-900); opacity: 0.85; }
.ww-band--sage .ww-band__watermark { filter: none; opacity: 0.14; }

.ww-twocards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.375rem; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.ww-about-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 3.5rem;
	align-items: center;
	margin-bottom: var(--ww-section);
}

.ww-about-hero__media { position: relative; }
.ww-about-hero__media::before {
	content: "";
	position: absolute;
	top: -1.25rem;
	right: -1.25rem;
	width: 8.125rem;
	height: 8.125rem;
	border-radius: 50%;
	background: var(--ww-sage-200);
	z-index: 0;
}
.ww-about-hero__media img { position: relative; z-index: 1; border-radius: var(--ww-radius); box-shadow: var(--ww-shadow-md); width: 100%; }

.ww-history-columns { column-count: 2; column-gap: 2.25rem; }
.ww-history-columns > * { break-inside: avoid; }
@media (max-width: 40rem) { .ww-history-columns { column-count: 1; } }

.ww-timeline { margin: 0; padding: 0; list-style: none; }
.ww-timeline li { display: flex; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--ww-rule); }
.ww-timeline li:first-child { border-top: 0; padding-top: 0; }
.ww-timeline__year { flex: 0 0 7rem; font-family: var(--ww-font-display); font-size: 1.875rem; color: var(--ww-green); }
.ww-timeline__text { flex: 1 1 auto; color: var(--ww-body); padding-top: 0.375rem; }

.ww-photostrip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 1.375rem;
	margin-top: var(--ww-section);
}
.ww-photostrip figure { margin: 0; }
.ww-photostrip img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--ww-radius);
	filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}
.ww-photostrip figcaption { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ww-muted); }

/* --------------------------------------------------------------------------
   News index — full-width rows, not the card grid (that's for the homepage
   teaser and the generic index.php fallback).
   -------------------------------------------------------------------------- */

.ww-newsrows { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: var(--ww-section); }

.ww-newsrow {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	background: var(--ww-paper);
	border-radius: var(--ww-radius);
	overflow: hidden;
	box-shadow: var(--ww-shadow-sm);
}

.ww-newsrow__media { min-height: 12.5rem; }
.ww-newsrow__media img {
	width: 100%;
	height: 100%;
	min-height: 12.5rem;
	object-fit: cover;
	filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}

.ww-newsrow__body { padding: 1.75rem 2rem; align-self: center; }

.ww-newsrow__meta {
	margin: 0 0 0.625rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ww-muted);
}

.ww-newsrow__title { margin: 0 0 0.625rem; font-size: var(--ww-step-1); line-height: 1.15; }
.ww-newsrow__title a { color: var(--ww-deep); text-decoration: none; }
.ww-newsrow__title a:hover { text-decoration: underline; }

.ww-newsrow__excerpt { margin: 0 0 0.875rem; color: var(--ww-body); font-size: 1.0625rem; }

.ww-newsrow__more { font-weight: 600; text-decoration: none; }
.ww-newsrow__more:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Resident login / registration
   -------------------------------------------------------------------------- */

.ww-account-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	gap: 2.5rem;
	align-items: start;
}

.ww-account-status {
	background: var(--ww-surface);
	border-radius: var(--ww-radius);
	padding: 2rem;
	max-width: 34rem;
}
.ww-account-status h2 { margin: 0 0 0.75rem; font-size: var(--ww-step-1); color: var(--ww-deep); }
.ww-account-status p { margin: 0 0 1rem; color: var(--ww-body); }
.ww-account-status p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Gate block — shown on Documents/Events in place of the real content
   -------------------------------------------------------------------------- */

.ww-gate {
	background: var(--ww-surface);
	border-radius: var(--ww-radius);
	padding: 2.25rem 2.5rem;
	max-width: 34rem;
}
.ww-gate h2 { margin: 0 0 0.75rem; font-size: var(--ww-step-1); color: var(--ww-deep); }
.ww-gate p { margin: 0 0 1.25rem; color: var(--ww-body); }
.ww-gate p:last-child { margin-bottom: 0; }
.ww-gate .ww-actions { margin-top: 0.25rem; }

/* Core's wp_login_form() output — restyled to match rather than replaced,
   since rebuilding login itself natively would mean re-implementing
   WordPress's own auth cookie / redirect handling for no real benefit. */
#loginform { margin: 0; }
#loginform p { margin: 0 0 1.125rem; }
#loginform label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9375rem; color: var(--ww-ink); }
#loginform input.input {
	width: 100%;
	min-height: var(--ww-tap);
	padding: 0 1.125rem;
	border: 1px solid var(--ww-rule);
	border-radius: var(--ww-pill);
	background: var(--ww-bg);
	font: inherit;
	font-size: 1rem;
	color: var(--ww-ink);
	box-sizing: border-box;
}
#loginform input.input:focus { outline: 3px solid var(--ww-green); outline-offset: 1px; }
#loginform .login-remember label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
#loginform .login-submit { margin-bottom: 0; }
#loginform #wp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--ww-tap);
	padding: 0.875rem 1.625rem;
	border: 0;
	border-radius: var(--ww-pill);
	background: var(--ww-green);
	color: #fff;
	font-family: var(--ww-font-display);
	font-size: 1.0625rem;
	cursor: pointer;
}
#loginform #wp-submit:hover { background: var(--ww-deep); }