/*
Theme Name: Northwest SHARE
Theme URI: https://nwshare.org/
Description: Block theme for Northwest SHARE. Presentation only; content and facts live in the Northwest SHARE Core plugin.
Version: 0.2.0
Requires at least: 7.0
Requires PHP: 8.1
Author: Northwest SHARE
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nwshare
*/

/* ---------- Utilities ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.nwshare-eyebrow {
	margin: 0 0 0.5rem;
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-text);
}

.has-deep-background-color .nwshare-eyebrow,
.has-primary-background-color .nwshare-eyebrow,
.nwshare-spotlight .nwshare-eyebrow {
	color: var(--wp--preset--color--accent-soft);
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	transition:
		transform 0.15s ease,
		background-color 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.wp-block-button.is-style-marigold .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--deep);
}

.wp-block-button.is-style-marigold .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-soft);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 2px solid currentColor;
}

.has-deep-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.has-primary-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--cream);
}

/* Donate in the main menu */
.wp-block-navigation .nwshare-nav-donate > .wp-block-navigation-item__content {
	padding: 0.55rem 1.1rem;
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--deep);
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0.5rem;
}

/* ---------- Cards ---------- */
.is-style-card,
.nwshare-card {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border-radius: var(--wp--custom--radius--l);
	overflow: hidden;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.is-style-card:hover,
.nwshare-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--wp--custom--shadow--lift);
}

/* An image styled as a card fills the card edge to edge, like the video cards beside it. */
.wp-block-image.is-style-card {
	padding: 0;
}

.wp-block-image.is-style-card > a {
	display: block;
}

.wp-block-image.is-style-card img {
	display: block;
	width: 100%;
	height: auto;
}

.is-style-card.has-border-color,
.nwshare-card--outline {
	border: 1px solid var(--wp--preset--color--line);
}

/* ---------- Announcement bar ---------- */
.nwshare-announcement {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.6rem 1rem;
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--cream);
	font-size: 1rem;
}

.nwshare-announcement a {
	color: var(--wp--preset--color--cream);
	font-weight: 600;
}

.nwshare-announcement__title {
	font-weight: 700;
	color: var(--wp--preset--color--accent);
}

.nwshare-live-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	animation: nwshare-pulse 1.8s ease-out infinite;
}

/* ---------- Verification badges (never shown on production) ---------- */
.nwshare-tbc {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 2px 8px;
	border: 1px dashed var(--wp--preset--color--accent-text);
	border-radius: 4px;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--accent-text);
	font: 600 0.75rem/1.5 var(--wp--preset--font-family--body);
	letter-spacing: 0.02em;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
	vertical-align: middle;
}

.nwshare-review-note {
	/* Staging only. Fixed in a corner so it never shifts the page layout. */
	position: fixed;
	left: 0.75rem;
	bottom: 0.75rem;
	z-index: 60;
	max-width: min(26rem, calc(100vw - 1.5rem));
	margin: 0;
	box-shadow: 0 8px 24px rgba(11, 37, 64, 0.18);
	font-size: 0.8125rem !important;
	padding: 0.75rem 1rem;
	border: 1px dashed var(--wp--preset--color--accent-text);
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--accent-text);
	font-size: 0.9375rem;
}

/* ---------- Hero ---------- */
.nwshare-hero {
	position: relative;
	overflow: hidden;
}

.nwshare-hero__motif {
	position: absolute;
	right: -80px;
	top: -60px;
	width: 520px;
	height: 520px;
	opacity: 0.16;
	pointer-events: none;
}

.nwshare-rotate {
	color: var(--wp--preset--color--primary);
	transition: opacity 0.25s ease;
}

.nwshare-rotate.is-swapping {
	opacity: 0;
}

/* ---------- Countdown ---------- */
.nwshare-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	max-width: 26rem;
}

.nwshare-countdown__cell {
	padding: 0.6rem 0.25rem;
	border-radius: 12px;
	background: rgba(255, 246, 234, 0.1);
	text-align: center;
}

.nwshare-countdown__num {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.75rem;
	line-height: 1.1;
}

.nwshare-countdown__label {
	font-size: 0.8125rem;
}

/* ---------- Event spotlight ---------- */
.nwshare-spotlight {
	display: flex;
	flex-wrap: wrap;
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--cream);
}

.nwshare-spotlight__media {
	flex: 3 1 520px;
	min-width: 0;
	background: #140c1f;
}

.nwshare-spotlight__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.nwshare-spotlight__body {
	flex: 2 1 340px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.nwshare-spotlight__body h3 {
	color: var(--wp--preset--color--cream);
	font-size: 1.875rem;
	margin: 0;
}

.nwshare-spotlight__body p {
	margin: 0;
}

.nwshare-spotlight__actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ---------- Generic link buttons rendered by plugin blocks ---------- */
.nwshare-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0 1.25rem;
	border-radius: var(--wp--custom--radius--s);
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease;
}

.nwshare-btn:hover {
	transform: translateY(-2px);
}

.nwshare-btn--marigold {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--deep);
}

.nwshare-btn--light {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--deep);
}

.nwshare-btn--outline-light {
	border: 2px solid var(--wp--preset--color--cream);
	color: var(--wp--preset--color--cream);
}

.nwshare-btn--outline {
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.nwshare-btn--primary {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* ---------- Next meal card ---------- */
.nwshare-next-meal {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
	min-height: 420px;
	padding: 1.75rem;
	border-radius: var(--wp--custom--radius--l);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--cream);
	animation: nwshare-float 5s ease-in-out infinite;
}

.nwshare-next-meal__label {
	margin: 0 0 0.375rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-soft);
}

.nwshare-next-meal__when {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 2rem;
	line-height: 1.1;
}

.nwshare-next-meal a {
	color: var(--wp--preset--color--cream);
	font-weight: 700;
}

/* ---------- Schedule table ---------- */
.nwshare-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--l);
	background: var(--wp--preset--color--white);
}

.nwshare-table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
}

.nwshare-table th,
.nwshare-table td {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: top;
}

.nwshare-table th {
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--ink-soft);
	font-size: 0.875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nwshare-table tr.is-closed td {
	color: var(--wp--preset--color--ink-soft);
	text-decoration: line-through;
}

/* ---------- Grids of cards rendered by plugin blocks ---------- */
.nwshare-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.nwshare-tile {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 240px;
	padding: 1.75rem;
	border-radius: var(--wp--custom--radius--l);
	text-decoration: none;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.nwshare-tile:hover {
	transform: translateY(-6px);
	box-shadow: var(--wp--custom--shadow--lift);
}

.nwshare-tile h3 {
	margin: 0;
	color: inherit;
	font-size: 1.5rem;
}

.nwshare-tile p {
	margin: 0;
	opacity: 0.92;
}

.nwshare-tile__more {
	margin-top: auto;
	font-weight: 700;
}

.nwshare-tile__icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nwshare-tile--1 {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}
.nwshare-tile--1 .nwshare-tile__icon {
	background: var(--wp--preset--color--primary-2);
	color: var(--wp--preset--color--cream);
}
.nwshare-tile--2 {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--deep);
}
.nwshare-tile--2 .nwshare-tile__icon {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
}
.nwshare-tile--3 {
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--cream);
}
.nwshare-tile--3 .nwshare-tile__icon {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--accent);
}
.nwshare-tile--0 {
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--deep);
}
.nwshare-tile--0 .nwshare-tile__icon {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--accent-text);
}

.nwshare-event-card,
.nwshare-location {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--l);
	background: var(--wp--preset--color--white);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.nwshare-event-card:hover,
.nwshare-location:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--custom--shadow--lift);
}

.nwshare-event-card h3,
.nwshare-location h3 {
	margin: 0;
	font-size: 1.375rem;
}

.nwshare-event-card p,
.nwshare-location p {
	margin: 0;
	color: var(--wp--preset--color--ink-soft);
}

.nwshare-meta {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-text);
}

/* ---------- Tabs ---------- */
.nwshare-tabs__list {
	display: inline-flex;
	gap: 6px;
	padding: 6px;
	border-radius: 999px;
	background: var(--wp--preset--color--mist);
	margin-bottom: 1.5rem;
}

.nwshare-tabs__tab {
	min-height: 44px;
	padding: 0 1.125rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--deep);
	font: 700 1rem var(--wp--preset--font-family--body);
	cursor: pointer;
}

.nwshare-tabs__tab[aria-selected='true'] {
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--cream);
}

/* ---------- YouTube facade ---------- */
.nwshare-video {
	display: block;
	position: relative;
	border-radius: var(--wp--custom--radius--l);
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
}

.nwshare-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.nwshare-video__frame img,
.nwshare-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.nwshare-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45));
	cursor: pointer;
}

.nwshare-video__badge {
	position: absolute;
	left: 12px;
	bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
}

.nwshare-video__caption {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0.875rem 1rem;
}

.nwshare-video__caption span:last-child {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--ink-soft);
}

/* ---------- Documents list ---------- */
.nwshare-docs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.75rem;
}

.nwshare-docs a {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.875rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--s);
	text-decoration: none;
	font-weight: 600;
}

/* ---------- Motion ---------- */
@keyframes nwshare-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes nwshare-swap {
	0% {
		opacity: 0;
		transform: translateY(40%);
	}
	12%,
	88% {
		opacity: 1;
		transform: none;
	}
	100% {
		opacity: 0;
		transform: translateY(-40%);
	}
}
@keyframes nwshare-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}
@keyframes nwshare-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(246, 168, 33, 0.55);
	}
	100% {
		box-shadow: 0 0 0 12px rgba(246, 168, 33, 0);
	}
}

.nwshare-rise {
	animation: nwshare-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.nwshare-rise-1 {
	animation-delay: 0.08s;
}
.nwshare-rise-2 {
	animation-delay: 0.16s;
}
.nwshare-rise-3 {
	animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Page title band */
.nwshare-band {
	background: var(--wp--preset--color--cream);
	border-bottom: 1px solid var(--wp--preset--color--cream-line);
}
.nwshare-band h1 {
	margin: 0;
}
[role='tabpanel'][hidden] {
	display: none;
}
.nwshare-when-upcoming-edit {
	outline: 1px dashed var(--wp--preset--color--line);
	padding: 0.5rem;
}
.nwshare-org-info {
	margin: 0 0 0.35rem;
}

/* Footer */
.nwshare-footer a {
	color: var(--wp--preset--color--accent-soft);
}
.nwshare-footer a:hover,
.nwshare-footer a:focus-visible {
	color: var(--wp--preset--color--white);
}
.nwshare-footer .wp-block-navigation {
	gap: 0.4rem 1.25rem;
}
.nwshare-footer .nwshare-org-info a {
	color: var(--wp--preset--color--accent-soft);
}
.nwshare-footer .nwshare-tbc {
	margin-left: 0.4rem;
}
.nwshare-hero::before {
	content: '';
	position: absolute;
	right: -120px;
	top: -120px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background:
		radial-gradient(
			circle,
			transparent 38%,
			var(--wp--preset--color--accent-soft) 39%,
			var(--wp--preset--color--accent-soft) 41%,
			transparent 42%
		),
		radial-gradient(circle, transparent 58%, var(--wp--preset--color--mint) 59%, var(--wp--preset--color--mint) 62%, transparent 63%),
		repeating-conic-gradient(var(--wp--preset--color--accent-soft) 0 6deg, transparent 6deg 30deg);
	opacity: 0.35;
	pointer-events: none;
}
.nwshare-hero > * {
	position: relative;
}

/* Schedule table stacks on small screens */
@media (max-width: 640px) {
	.nwshare-table {
		min-width: 0;
	}
	.nwshare-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.nwshare-table tr,
	.nwshare-table td {
		display: block;
	}
	.nwshare-table tr {
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}
	.nwshare-table td {
		padding: 0.2rem 1rem;
		border: 0;
	}
}
.nwshare-event-poster {
	width: 100%;
	height: auto;
	margin-top: 1rem;
	border-radius: var(--wp--custom--radius--m);
}
.is-style-card .nwshare-next-meal__label {
	color: var(--wp--preset--color--accent-text);
}
.nwshare-event-details dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.5rem 1rem;
	margin: 1.25rem 0;
}
.nwshare-event-details dt {
	font-weight: 700;
}
.nwshare-event-details dd {
	margin: 0;
}
.nwshare-footer a.nwshare-btn,
.nwshare-footer a.nwshare-btn:hover {
	color: var(--wp--preset--color--deep);
}

/* ======================================================================
   Inner-page design system
   ====================================================================== */

/* Page hero: full-width photo with a deep gradient so white text stays readable */
.nwshare-page-hero {
	padding-top: clamp(4rem, 10vw, 7.5rem);
	padding-bottom: clamp(3rem, 8vw, 6rem);
	color: var(--wp--preset--color--white);
}
.nwshare-page-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(11, 37, 64, 0.94) 0%, rgba(11, 37, 64, 0.78) 45%, rgba(11, 37, 64, 0.35) 100%) !important;
	opacity: 1 !important;
}
.nwshare-page-hero h1 {
	color: var(--wp--preset--color--white);
	font-size: clamp(2.5rem, 6vw, 4.25rem);
	line-height: 1.02;
	max-width: 16ch;
	margin: 0.25rem 0 1rem;
}
.nwshare-page-hero .nwshare-hero-lead {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	max-width: 38rem;
	color: var(--wp--preset--color--cream);
}
.nwshare-page-hero .nwshare-eyebrow {
	color: var(--wp--preset--color--accent-soft);
}
.nwshare-page-hero .wp-block-buttons {
	margin-top: 1.75rem;
}
.nwshare-page-hero .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

/* Hero without a photo: festive gradient */
.nwshare-page-hero.is-gradient {
	background:
		radial-gradient(circle at 85% 20%, rgba(246, 168, 33, 0.45), transparent 40%),
		radial-gradient(circle at 70% 90%, rgba(19, 112, 143, 0.6), transparent 45%), var(--wp--preset--color--deep);
}
.nwshare-page-hero.is-holi {
	background:
		radial-gradient(circle at 80% 25%, rgba(232, 137, 26, 0.75), transparent 35%),
		radial-gradient(circle at 92% 75%, rgba(214, 238, 245, 0.55), transparent 30%),
		radial-gradient(circle at 60% 95%, rgba(163, 52, 26, 0.7), transparent 35%), var(--wp--preset--color--deep);
}

/* Quick facts strip that overlaps the hero */
.nwshare-facts {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * clamp(2rem, 5vw, 3.25rem)) !important;
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--l);
	box-shadow: 0 18px 50px rgba(11, 37, 64, 0.14);
	padding: clamp(1.25rem, 3vw, 2rem);
	gap: 1.25rem 2rem;
}
.nwshare-facts .nwshare-fact__label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-text);
}
.nwshare-facts .nwshare-fact__value {
	margin: 0.15rem 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--deep);
	line-height: 1.25;
}

/* Sections */
.nwshare-section {
	padding-top: clamp(3rem, 7vw, 5.5rem) !important;
	padding-bottom: clamp(3rem, 7vw, 5.5rem) !important;
}
.nwshare-section-head {
	max-width: 44rem;
	margin-bottom: 2rem !important;
}
.nwshare-section-head h2 {
	margin-top: 0.25rem;
}

/* Split: photo + text */
.nwshare-split {
	gap: clamp(1.5rem, 4vw, 4rem) !important;
}
.nwshare-photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--xl);
	box-shadow: 0 24px 60px rgba(11, 37, 64, 0.18);
}
.nwshare-photo.is-wide img {
	aspect-ratio: 16 / 9;
}
.nwshare-photo.is-natural img {
	aspect-ratio: auto;
	object-fit: contain;
	background: var(--wp--preset--color--mist);
}
.nwshare-photo figcaption {
	font-size: 0.875rem;
	color: var(--wp--preset--color--ink-soft);
}

/* Photo gallery */
.wp-block-gallery.nwshare-gallery {
	gap: 0.75rem !important;
}
.wp-block-gallery.nwshare-gallery .wp-block-image img {
	border-radius: var(--wp--custom--radius--m);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.wp-block-gallery.nwshare-gallery .wp-block-image {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--m);
}
.wp-block-gallery.nwshare-gallery .wp-block-image:hover img {
	transform: scale(1.04);
}

/* Photo cards: image on top, text below */
.nwshare-photo-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--l);
	overflow: hidden;
	padding: 0 !important;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}
.nwshare-photo-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--wp--custom--shadow--lift);
}
.nwshare-photo-card .wp-block-image {
	margin: 0;
}
.nwshare-photo-card .wp-block-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
.nwshare-photo-card > :not(.wp-block-image) {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
.nwshare-photo-card > :last-child {
	padding-bottom: 1.5rem;
}
.nwshare-photo-card h3 {
	margin-top: 1.25rem;
}

/* Icon feature cards */
.nwshare-feature {
	border-radius: var(--wp--custom--radius--l);
	padding: clamp(1.25rem, 3vw, 1.75rem) !important;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
}
.nwshare-feature .nwshare-feature__icon {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin: 0 0 1rem;
	border-radius: 0.875rem;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--deep);
	font-size: 1.5rem;
	line-height: 1;
}
.nwshare-feature:nth-child(4n + 2) .nwshare-feature__icon {
	background: var(--wp--preset--color--mint);
}
.nwshare-feature:nth-child(4n + 3) .nwshare-feature__icon {
	background: var(--wp--preset--color--cream-line);
}

/* Timeline */
.nwshare-timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 1.75rem;
	border-left: 3px solid var(--wp--preset--color--accent);
}
.nwshare-timeline li {
	position: relative;
	margin: 0 0 1.75rem;
}
.nwshare-timeline li::before {
	content: '';
	position: absolute;
	left: calc(-1.75rem - 9px);
	top: 0.35rem;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	border: 3px solid var(--wp--preset--color--primary);
}
.nwshare-timeline strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	color: var(--wp--preset--color--primary);
}

/* Call-to-action band */
.nwshare-cta {
	border-radius: var(--wp--custom--radius--xl);
	padding: clamp(2rem, 5vw, 3.5rem) !important;
	background: radial-gradient(circle at 90% 10%, rgba(246, 168, 33, 0.35), transparent 40%), var(--wp--preset--color--deep);
	color: var(--wp--preset--color--white);
}
.nwshare-cta h2 {
	color: var(--wp--preset--color--white);
	margin-top: 0;
}
.nwshare-cta p {
	color: var(--wp--preset--color--cream);
}
.nwshare-cta a:not(.wp-block-button__link):not(.nwshare-btn) {
	color: var(--wp--preset--color--accent-soft);
}
.nwshare-cta .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

/* Person cards (leadership) */
.nwshare-person .nwshare-avatar {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin: 0 0 1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 700;
}

/* Staging review: flag photos whose usage rights are not yet confirmed */
.nwshare-review .nwshare-rights-pending {
	position: relative;
}
.nwshare-review figure.nwshare-rights-pending::after,
.nwshare-review .wp-block-cover.nwshare-rights-pending::after {
	content: 'photo rights · confirm';
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 3;
	padding: 0.15rem 0.5rem;
	border: 1px dashed var(--wp--preset--color--accent-text);
	border-radius: 0.375rem;
	background: #fff7e6;
	color: var(--wp--preset--color--accent-text);
	font-size: 0.6875rem;
	font-weight: 700;
	pointer-events: none;
}
.nwshare-review .wp-block-gallery.nwshare-rights-pending::after {
	top: -1.75rem;
	right: 0;
}

.nwshare-holi-swatch {
	aspect-ratio: 16 / 10;
	display: grid;
	place-items: end start;
	padding: 1rem 1.5rem !important;
	background:
		radial-gradient(circle at 25% 30%, #f6a821 0 18%, transparent 19%), radial-gradient(circle at 70% 40%, #13708f 0 16%, transparent 17%),
		radial-gradient(circle at 45% 75%, #a3341a 0 15%, transparent 16%), radial-gradient(circle at 85% 80%, #ffd27d 0 12%, transparent 13%),
		var(--wp--preset--color--deep);
}
.nwshare-holi-swatch .nwshare-eyebrow {
	color: var(--wp--preset--color--white);
	margin: 0;
}
.nwshare-page-hero.has-white-color a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--accent-soft);
}

/* Navigation: Find a Meal (prominent) and the current page */
.wp-block-navigation .nwshare-nav-meal > .wp-block-navigation-item__content {
	padding: 0.5rem 1rem;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--s);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-decoration: none;
}
.wp-block-navigation .nwshare-nav-meal > .wp-block-navigation-item__content:hover,
.wp-block-navigation .nwshare-nav-meal > .wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}
.wp-block-navigation .nwshare-nav-donate > .wp-block-navigation-item__content {
	font-weight: 700;
}
.wp-block-navigation .wp-block-navigation-item__content[aria-current='page']:not(.nwshare-nav-meal *):not(.nwshare-nav-donate *) {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--wp--preset--color--accent);
	text-underline-offset: 0.4em;
}
.wp-block-navigation .nwshare-nav-meal > .wp-block-navigation-item__content[aria-current='page'],
.wp-block-navigation .nwshare-nav-donate > .wp-block-navigation-item__content[aria-current='page'] {
	box-shadow: 0 0 0 3px var(--wp--preset--color--accent-soft);
}

.nwshare-404-search {
	max-width: 32rem;
	margin-top: 1.5rem;
}
.nwshare-404-search .wp-block-search__label {
	color: var(--wp--preset--color--cream);
}
.nwshare-404-search .wp-block-search__input {
	border-radius: var(--wp--custom--radius--s);
	border: 0;
	padding: 0.75rem 1rem;
}
.nwshare-404-search .wp-block-search__button {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--deep);
	border-radius: var(--wp--custom--radius--s);
	font-weight: 700;
	border: 0;
}
.nwshare-form iframe {
	border-radius: var(--wp--custom--radius--l);
	background: var(--wp--preset--color--white);
}
.nwshare-feature h2 {
	font-size: var(--wp--preset--font-size--large);
}

/* Appeal panel (dark) */
.nwshare-cta h3 {
	color: var(--wp--preset--color--white);
}
.nwshare-cta .nwshare-fact__label {
	margin: 0;
	color: var(--wp--preset--color--accent-soft);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.nwshare-cta .nwshare-appeal-goal {
	margin: 0.15rem 0 1rem;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 800;
	line-height: 1;
}

/* ======================================================================
   Consistent cards: Next free meal, hero cards and feature cards share one look
   (white card, eyebrow label, display headline, detail, link pinned to the bottom).
   ====================================================================== */
.nwshare-next-meal {
	min-height: 0;
	justify-content: flex-start;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	animation: none;
}
.nwshare-next-meal__label,
.is-style-card .nwshare-next-meal__label {
	color: var(--wp--preset--color--accent-text);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
}
.nwshare-next-meal__when {
	color: var(--wp--preset--color--deep);
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}
.nwshare-next-meal > svg {
	width: 120px !important;
	margin-top: 0.5rem;
}
.nwshare-next-meal > a {
	color: var(--wp--preset--color--primary);
	margin-top: auto;
}
/* Hero cards: equal height, link at the bottom, no hover lift */
.nwshare-hero .is-style-card,
.nwshare-hero .nwshare-next-meal {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.75rem;
	border-radius: var(--wp--custom--radius--l);
	box-shadow: 0 10px 30px rgba(11, 37, 64, 0.08);
}
.nwshare-hero .is-style-card > :last-child {
	margin-top: auto;
}
.nwshare-hero .is-style-card:hover {
	transform: none;
	box-shadow: 0 10px 30px rgba(11, 37, 64, 0.08);
}
.nwshare-hero .is-style-card .nwshare-next-meal__when {
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}
.nwshare-hero .nwshare-countdown {
	margin: 0.25rem 0 0.75rem;
}

/* Impact numbers (home) */
.nwshare-stat {
	padding-top: 1rem;
	border-top: 2px solid rgba(246, 168, 33, 0.45);
}
.nwshare-stat__value {
	margin: 0;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.05;
	white-space: nowrap;
}
.nwshare-stat__label {
	margin: 0.5rem 0 0;
	color: var(--wp--preset--color--cream);
}
.nwshare-hero .nwshare-next-meal,
.nwshare-hero .is-style-card {
	box-sizing: border-box;
}

/* Hero cards: same top line, and a photo fills the space above the link like the truck illustration. */
.nwshare-hero .is-style-card,
.nwshare-hero .nwshare-next-meal {
	margin: 0;
}
.nwshare-hero .nwshare-card-photo {
	margin: 0.75rem 0 1.25rem;
	flex: 1 1 9rem;
	min-height: 9rem;
	max-height: 14rem;
	border-radius: var(--wp--custom--radius--m);
	overflow: hidden;
}
.nwshare-hero .nwshare-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hero: the truck illustration fills its card like the photos in the other two cards. */
.nwshare-hero .nwshare-next-meal > svg {
	/* Explicit size and ratio: Safari sizes an SVG's height from the full column width otherwise. */
	width: min(100%, 14rem) !important;
	height: auto !important;
	aspect-ratio: 202 / 94;
	flex: 0 0 auto;
	align-self: flex-start;
	margin: 0.75rem 0 1.25rem;
}

/* Gallery captions sit under the image (readable over white documents, never covering them on phones). */
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption) {
	flex-direction: column;
	justify-content: flex-start;
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.wp-element-caption {
	position: static;
	max-height: none;
	overflow: visible;
	margin: 0;
	background: var(--wp--preset--color--deep);
	color: #fff;
	text-shadow: none;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.4;
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.wp-element-caption::before {
	display: none;
}

/* Home next-meal card: a small truck drives forward under the text (decorative). */
.nwshare-road {
	position: relative;
	height: 3.25rem;
	margin: 0.25rem 0 0.25rem;
	overflow: hidden;
	border-bottom: 2px dashed var(--wp--preset--color--line);
}
.nwshare-road__lane {
	position: absolute;
	inset: auto 0 2px 0;
	animation: nwshare-drive 9s linear infinite;
}
.nwshare-road__truck {
	display: block;
	width: 4.5rem;
	height: auto;
}
.nwshare-road__wheel {
	transform-box: fill-box;
	transform-origin: center;
	animation: nwshare-wheel 0.7s linear infinite;
}
@keyframes nwshare-drive {
	from {
		transform: translateX(-5rem);
	}
	to {
		transform: translateX(100%);
	}
}
@keyframes nwshare-wheel {
	to {
		transform: rotate(360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	.nwshare-road__lane,
	.nwshare-road__wheel {
		animation: none;
	}
	.nwshare-road__lane {
		transform: translateX(0.5rem);
	}
}

/* Five program tiles: three across, then two wider ones, so none sits alone in a row. */
@media (min-width: 1100px) {
	.nwshare-grid--5 {
		grid-template-columns: repeat(6, 1fr);
	}
	.nwshare-grid--5 > * {
		grid-column: span 2;
	}
	.nwshare-grid--5 > :nth-child(n + 4) {
		grid-column: span 3;
	}
}

.nwshare-next-meal__directions {
	margin: 0.25rem 0 0;
	font-weight: 600;
}
.nwshare-next-meal__directions a {
	color: var(--wp--preset--color--primary);
}
.nwshare-next-meal__directions a::before {
	content: '';
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-right: 0.35em;
	vertical-align: -0.1em;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E")
		center / contain no-repeat;
}
