/**
 * hkgiver-core — main stylesheet.
 * Modular, BEM-ish, mobile-first. No builder code.
 *
 * @package hkgiver-core
 */

/* -------------------------------------------------------------------------
 * Design tokens
 * ---------------------------------------------------------------------- */
:root {
	/* ==================== HKGiver Premium Design Tokens (v1.9.0) ==================== */
	/* Primary structural neutral — deep "midnight" navy (authority) */
	--color-ink: #101623;
	--color-ink-2: #232c3d;
	/* Action accent — ember (coral-crimson) — CTAs ONLY */
	--color-ember: #e11d48;
	--color-ember-hover: #be1e3f;
	--color-ember-active: #9f1732;
	/* Trust/identity accent */
	--color-brand-teal: #0f766e;
	--color-brand-teal-hover: #0b5e58;
	--color-gold: #f5a623;
	--color-gold-hover: #e09412;
	/* Canvas & surfaces — premium air */
	--color-canvas: #f6f6f4;
	--color-surface: #ffffff;
	--color-sand: #f1eee8;
	--color-border: #e8e6e1;
	--color-muted: #5b6672;
	--color-danger: #bf2b3a;
	--color-success: #1e7b4c;
	--color-header-bg: #101623;   /* midnight header */
	--color-header-text: #eef2f6;
	/* ==== Aliases for backward compatibility ==== */
	--color-primary: var(--color-brand-teal);
	--color-primary-hover: var(--color-brand-teal-hover);
	--color-heart: var(--color-ember);
	--color-heart-hover: var(--color-ember-hover);
	--color-heart-active: var(--color-ember-active);
	--color-accent: var(--color-gold);
	--color-accent-hover: var(--color-gold-hover);
	--color-text: #1b2437;
	--color-text-muted: var(--color-muted);
	--color-card: var(--color-surface);
	--color-bg: var(--color-surface);
	/* Geometry & elevation */
	--radius-sm: 6px;
	--radius-md: 12px;            /* buttons/inputs — softly-squarish premium */
	--radius-lg: 20px;            /* cards — gallery-like */
	--radius-pill: 999px;
	--border-thin: 1px;
	--border-focus: 3px;
	--shadow-sm: 0 1px 2px rgba(16, 22, 35, 0.05);
	--shadow-md: 0 8px 24px rgba(16, 22, 35, 0.08);
	--shadow-lg: 0 20px 48px rgba(16, 22, 35, 0.13);
	--ring-primary: 0 0 0 3px rgba(15, 118, 110, 0.3);
	--ring-primary-strong: 0 0 0 3px rgba(15, 118, 110, 0.5);
	--ring-danger: 0 0 0 3px rgba(191, 43, 58, 0.2);
	--container: 1280px;
	--font-heading: "Fraunces", "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
	--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
	--space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
}

/* Base reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem; /* 17px — accessibility floor */
	color: var(--color-text);
	background: var(--color-canvas); /* premium warm off-white */
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	color: var(--color-primary-hover);
}

/* -------------------------------------------------------------------------
 * Accessibility base — focus visibility + reduced motion (WCAG)
 * ---------------------------------------------------------------------- */
:focus-visible {
	outline: 3px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--color-primary);
	outline-offset: 2px;
}

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

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}

/* Accessibility */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
	width: auto;
	height: auto;
	clip-path: none;
	background: var(--color-bg);
	padding: 12px 16px;
	z-index: 9999;
	border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */
.button {
	display: inline-block;
	min-height: 48px; /* ≥44px WCAG tap target; 48 preferred */
	padding: 13px 26px;
	border-radius: var(--radius-md);
	font-weight: 600;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}

.button--primary {
	background: var(--color-primary);
	color: #fff;
}

.button--primary:hover {
	background: var(--color-primary-hover);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
	color: #fff;
}

.button--primary:active {
	transform: translateY(0);
	background: var(--color-primary-hover);
	box-shadow: var(--shadow-sm);
}

.button--accent {
	background: var(--color-heart); /* action = coral */
	color: #fff;
}

.button--accent:hover {
	background: var(--color-heart-hover);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
	color: #fff;
}

.button--accent:active {
	background: var(--color-heart-active);
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

.button--ghost {
	background: transparent;
	border-color: var(--color-border);
	color: var(--color-text);
}

.button--ghost:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
	background: rgba(15, 118, 110, 0.05);
}

.button--ghost:active {
	background: rgba(15, 118, 110, 0.12);
}

.button:disabled,
.button[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.button {
		transform: none !important;
	}
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.site-header {
	background: var(--color-header-bg);
	border-bottom: 3px solid var(--color-accent);
	position: sticky;
	top: 0;
	z-index: 100;
	color: var(--color-header-text);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 76px;
	padding-block: 10px;
	flex-wrap: wrap;
}

.site-header__brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

/* Brand wordmark (logo) */
.site-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.site-brand__mark {
	flex: 0 0 auto;
}

.site-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.site-brand__name {
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	color: #fff;
}

.site-brand__tag {
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-accent);
	font-weight: 600;
}

.site-header__nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.nav-menu {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	color: var(--color-header-text);
	font-weight: 500;
	opacity: 0.92;
}

.nav-menu a:hover {
	color: var(--color-accent);
	opacity: 1;
}

.nav-menu--org {
	margin-left: 8px;
	padding-left: 16px;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-menu--org .nav-menu__item a {
	font-weight: 600;
	color: var(--color-accent);
}

.site-header__user {
	display: flex;
	gap: 12px;
	align-items: center;
}

.site-header__user--mobile {
	display: none;
}

.site-header__toggle {
	display: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: transparent;
	border-radius: var(--radius-sm);
	width: 42px;
	height: 40px;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

.site-header__toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

/* Ghost / primary buttons on the dark header */
.site-header .button--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
}

.site-header .button--ghost:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* Authenticated user menu (avatar + dropdown) */
.user-menu {
	position: relative;
}

.user-menu__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 0;
	color: var(--color-header-text);
	cursor: pointer;
	padding: 6px 8px;
	border-radius: var(--radius-md);
}

.user-menu__toggle:hover {
	background: rgba(255, 255, 255, 0.08);
}

.user-menu__avatar {
	border-radius: 50%;
	width: 36px;
	height: 36px;
	object-fit: cover;
	border: 2px solid var(--color-accent);
}

.user-menu__name {
	font-weight: 600;
	font-size: 0.9rem;
}

.user-menu__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 190px;
	background: #fff;
	color: var(--color-text);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	padding: 6px;
	display: none;
	z-index: 200;
}

.user-menu__dropdown.is-open {
	display: block;
}

.user-menu__item {
	display: block;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-weight: 500;
	text-decoration: none;
}

.user-menu__item:hover {
	background: var(--color-surface);
	color: var(--color-primary);
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.site-footer {
	background: var(--color-header-bg);
	border-top: 3px solid var(--color-accent);
	margin-top: 64px;
	color: var(--color-header-text);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-block: 56px 32px;
}

.site-footer__logo {
	font-weight: 700;
	margin: 0 0 8px;
	color: #fff;
}

.site-footer__tagline {
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
}

.site-footer__linkheading {
	color: var(--color-accent);
	font-weight: 600;
	font-size: 0.95rem;
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__links li + li {
	margin-top: 8px;
}

.site-footer__links a {
	color: rgba(255, 255, 255, 0.82);
}

.site-footer__links a:hover {
	color: var(--color-accent);
}

.site-footer__legal a {
	display: block;
	margin-bottom: 8px;
	color: rgba(255, 255, 255, 0.7);
}

.site-footer__legal a:hover {
	color: var(--color-accent);
}

.site-footer__credit {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-block: 16px 24px;
	text-align: center;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
}

.site-footer__credit p {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */
.hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(225, 29, 72, 0.18) 0%, transparent 60%),
		linear-gradient(180deg, var(--color-header-bg) 0%, #141b2b 55%, var(--color-header-bg) 100%);
	color: #fff;
	padding-block: 104px 88px;
	text-align: left;
	position: relative;
}

.hero__inner {
	max-width: 800px;
}

.hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--color-accent);
	margin: 0 0 16px;
}

.hero__title {
	font-family: var(--font-heading);
	font-size: clamp(2.6rem, 6.2vw, 4.1rem);
	line-height: 1.03;
	margin: 0 0 20px;
	font-weight: 650;
	font-optical-sizing: auto;
	letter-spacing: -0.025em;
	color: #fff;
}

.hero__lede {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 14px;
	max-width: 60ch;
}

.hero__lede--zh {
	font-size: 1.02rem;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 26px;
}

.hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hero .button {
	font-weight: 600;
}

.hero .button--accent {
	background: var(--color-heart);
	border-color: var(--color-heart);
	color: #fff;
}

.hero .button--accent:hover {
	background: var(--color-heart-hover);
}

.hero .button--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
}

.hero .button--ghost:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* -------------------------------------------------------------------------
 * Sections
 * ---------------------------------------------------------------------- */
.home-section {
	padding-block: 56px;
}

.home-section__title {
	font-family: var(--font-heading);
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 0 0 28px;
}

.home-section__more {
	margin: 24px 0 0;
	text-align: center;
}

.home-section__more a {
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Event grid + card
 * ---------------------------------------------------------------------- */
.event-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.event-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--color-card);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.event-card:hover {
	box-shadow: var(--shadow-lg);
	border-color: var(--color-primary);
	transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
	.event-card:hover {
		transform: none;
	}
}

.event-card__media {
	aspect-ratio: 16 / 10;
	display: block;
	background: var(--color-surface);
}

.event-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.event-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.event-card__title {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	margin: 0;
	font-weight: 600;
	line-height: 1.25;
}

.event-card__title a {
	color: var(--color-text);
}

.event-card__title a:hover {
	color: var(--color-primary);
}

.event-card__date {
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.event-card__skills {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0;
}

.event-card__skill {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 0.8rem;
	font-weight: 600;
}

.event-card__slots {
	color: var(--color-text-muted);
	margin: 0;
}

.event-card__status {
	align-self: flex-start;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 0.8rem;
	font-weight: 600;
}

.event-card__status--open {
	background: #dcfce7;
	color: #166534;
}

.event-card__status--full {
	background: #fee2e2;
	color: #991b1b;
}

.event-card__actions {
	margin-top: auto;
	padding-top: 8px;
}

.event-card__actions .button {
	width: 100%;
}

/* Directory "Load More" pagination */
.event-archive__loadmore {
	margin: 32px 0 0;
	text-align: center;
}

.event-archive__loadmore .button {
	min-width: 220px;
}

/* Capacity progress bar (honest availability indicator) */
.event-card__capacity {
	margin-top: 2px;
}

.event-card__capacity-track {
	height: 5px;
	border-radius: 999px;
	background: var(--color-border);
	overflow: hidden;
}

.event-card__capacity-fill {
	height: 100%;
	border-radius: 999px;
	background: var(--color-success);
	transition: width 0.25s ease;
}

.event-card__capacity-fill.is-mod {
	background: var(--color-accent);
}

.event-card__capacity-fill.is-full {
	background: var(--color-danger);
}

.event-card__capacity--note {
	font-size: 0.8rem;
	color: var(--color-text-muted);
	display: block;
}

/* -------------------------------------------------------------------------
 * Filter bar (Location · Cause · Commitment)
 * ---------------------------------------------------------------------- */
.archive-filter {
	padding-block: 0 28px;
}

.filters {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: 24px;
}

.filters__row {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
	gap: 14px;
	align-items: end;
}

.filters__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.filters__label {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.filters__action .button {
	width: 100%;
	min-width: 120px;
	height: 48px;
}

@media (max-width: 1023px) {
	.filters__row {
		grid-template-columns: 1fr 1fr;
	}
	.filters__field--keyword {
		grid-column: 1 / -1;
	}
	.filters__action .button {
		width: 100%;
	}
}

@media (max-width: 560px) {
	.filters__row {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
 * Single event
 * ---------------------------------------------------------------------- */
.single-event {
	max-width: 860px;
	padding-block: 40px;
}

.single-event__title {
	font-size: 2.25rem;
	line-height: 1.15;
	margin: 0 0 12px;
}

.single-event__meta {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 0;
	margin: 0 0 24px;
	color: var(--color-text-muted);
}

.single-event__media {
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 24px;
}

.single-event__subtitle {
	font-size: 1.35rem;
	margin: 0 0 12px;
}

.single-event__skill-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
}

.single-event__skill {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	padding: 6px 12px;
}

.single-event__signup {
	margin-top: 32px;
	padding: 28px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}

.signup__slots {
	margin: 0 0 16px;
	font-weight: 600;
}

.signup__joined {
	color: #166534;
	background: #dcfce7;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
}

.signup__full {
	color: #991b1b;
	background: #fee2e2;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
}

.signup__status[hidden] {
	display: none;
}

.signup__status {
	margin: 12px 0 0;
	font-weight: 600;
}

.signup__status.is-error {
	color: #b91c1c;
}

.signup__status.is-success {
	color: #166534;
}

/* -------------------------------------------------------------------------
 * How it works
 * ---------------------------------------------------------------------- */
.how-it-works__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.how-it-works__card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px;
}

.how-it-works__card ol {
	margin: 0;
	padding-left: 20px;
}

/* -------------------------------------------------------------------------
 * Pagination
 * ---------------------------------------------------------------------- */
.pagination {
	margin-top: 40px;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}

.page-numbers.current {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 1023px) {
	.event-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* -------------------------------------------------------------------------
 * Organization profile (single-organizations.php)
 * ---------------------------------------------------------------------- */
.single-org {
	max-width: 960px;
	padding-block: 40px;
}

.single-org__identity {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.single-org__logo {
	width: 72px;
	height: 72px;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-surface);
	flex: 0 0 auto;
}

.single-org__logo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-org__title {
	font-size: 2rem;
	line-height: 1.15;
	margin: 0;
}

.single-org__badge {
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 600;
}

.single-org__badge--verified {
	background: #dcfce7;
	color: #166534;
}

.single-org__badge--pending {
	background: #fef3c7;
	color: #92400e;
}

.single-org__meta {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 0;
	margin: 12px 0 16px;
	color: var(--color-text-muted);
}

.single-org__summary {
	font-size: 1.1rem;
	color: var(--color-text-muted);
}

.single-org__content {
	margin-top: 24px;
}

.single-org__activity {
	margin-top: 40px;
}

.single-org__subtitle {
	font-size: 1.5rem;
	margin: 0 0 20px;
}

.single-org__empty {
	color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
 * Create event form (page-create-event.php)
 * ---------------------------------------------------------------------- */
.create-event {
	padding-block: 48px;
}

.create-event__title {
	font-size: 2rem;
	margin: 0 0 8px;
}

.create-event__lede {
	color: var(--color-text-muted);
	margin: 0 0 28px;
}

.create-event__form {
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-field {
	border: 0;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-field legend {
	font-weight: 600;
	margin-bottom: 6px;
}

.form-field label {
	font-weight: 600;
	font-size: 0.95rem;
}

.form-field .inline {
	font-weight: 400;
	margin-right: 16px;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="datetime-local"],
.form-field textarea,
.filters__field select,
.filters__field input {
	min-height: 48px; /* ≥44 tap target */
	padding: 12px 16px;
	border: var(--border-thin) solid var(--color-border);
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: 1rem;
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.form-field textarea {
	min-height: 120px;
	resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.filters__field select:hover,
.filters__field input:hover {
	border-color: var(--color-primary);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.filters__field select:focus,
.filters__field input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: var(--ring-primary);
}

.form-field input:disabled,
.form-field select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}

.form-field input[aria-invalid="true"],
.filters__field select[aria-invalid="true"] {
	border-color: var(--color-danger);
	box-shadow: var(--ring-danger);
}

.form-field__hint {
	color: var(--color-text-muted);
	margin: 0;
}

.form-field__error {
	color: var(--color-danger);
	font-size: 0.875rem;
	margin: 6px 0 0;
}

.skill-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
}

.skill-checkbox {
	font-weight: 400 !important;
}

.form-submit {
	margin: 8px 0 0;
}

/* -------------------------------------------------------------------------
 * Organization management (My Events + org nav)
 * ---------------------------------------------------------------------- */
.nav-menu--org {
	margin-left: 12px;
	padding-left: 12px;
	border-left: 1px solid var(--color-border);
}

.nav-menu--org .nav-menu__item a {
	font-weight: 600;
}

.my-events {
	padding-block: 48px;
}

.my-events__title {
	font-size: 2rem;
	margin: 0 0 8px;
}

.my-events__lede {
	color: var(--color-text-muted);
	margin: 0 0 24px;
}

.my-events__header {
	margin-bottom: 28px;
}

.my-events__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.my-events__item {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px 18px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
}

.my-events__link {
	font-weight: 600;
	flex: 1 1 220px;
	text-decoration: none;
}

.my-events__type {
	font-size: 0.85rem;
	color: var(--color-text-muted);
	text-transform: capitalize;
}

.my-events__meta {
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

.my-events__actions .button {
	text-decoration: none;
}

.button--small {
	padding: 6px 12px;
	font-size: 0.85rem;
}

.my-events__empty {
	color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
 * Volunteer opportunities dashboard (my-opportunities)
 * ---------------------------------------------------------------------- */
.my-opps {
	padding-block: 48px;
}

.my-opps__title {
	font-size: 2rem;
	margin: 0 0 8px;
}

.my-opps__lede {
	color: var(--color-text-muted);
	margin: 0 0 8px;
}

.my-opps__hint {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	margin: 0 0 28px;
}

.my-opps__subtitle {
	font-size: 1.4rem;
	margin: 32px 0 18px;
}

.my-opps__joined {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.my-opps__joined-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
}

.my-opps__joined-link {
	font-weight: 600;
	text-decoration: none;
}

.my-opps__joined-meta {
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.my-opps__empty {
	color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
 * Organizations archive (archive-organizations.php)
 * ---------------------------------------------------------------------- */
.orgs {
	padding-block: 48px;
}

.orgs__title {
	font-size: 2rem;
	margin: 0 0 8px;
}

.orgs__lede {
	color: var(--color-text-muted);
	margin: 0 0 28px;
}

.org-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.org-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	overflow: hidden;
	transition: box-shadow 0.15s ease;
}

.org-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.org-card__link {
	display: block;
	padding: 18px;
	text-decoration: none;
	color: inherit;
}

.org-card__logo {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 12px;
	background: var(--color-surface);
}

.org-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.org-card__title {
	margin: 0 0 4px;
	font-size: 1.15rem;
}

.org-card__badge {
	display: inline-block;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	background: #dcfce7;
	color: #166534;
	margin-bottom: 8px;
}

.org-card__desc {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.orgs__empty {
	color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
 * About Us page (page-about.php)
 * ---------------------------------------------------------------------- */
.about-hero {
	background: linear-gradient(180deg, var(--color-header-bg) 0%, var(--color-primary) 100%);
	color: #fff;
	padding-block: 96px 72px;
}

.about-hero__eyebrow {
	color: var(--color-accent);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.about-hero__title {
	font-family: var(--font-heading);
	font-size: clamp(2.4rem, 5.5vw, 3.6rem);
	margin: 0 0 16px;
	font-weight: 650;
	font-optical-sizing: auto;
	letter-spacing: -0.025em;
	color: #fff;
}

.about-hero__lede {
	max-width: 60ch;
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
}

.about-body {
	padding-block: 64px;
}

.about-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: start;
}

.about-block {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: var(--shadow-sm);
}

.about-block__title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 14px;
}

.about-block p {
	color: var(--color-text);
	line-height: 1.7;
}

.about-impact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.about-impact li {
	color: var(--color-text);
	line-height: 1.6;
}

.about-impact strong {
	color: var(--color-primary);
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 767px) {
	.event-grid,
	.how-it-works__grid,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-header__inner {
		flex-wrap: wrap;
		min-height: 0;
		padding-block: 14px;
		gap: 0;
	}

	/* Show the hamburger, push brand left + toggle right */
	.site-header__toggle {
		display: flex;
		margin-left: auto;
	}

	.site-header__nav {
		display: none;
		order: 4;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding-top: 14px;
		margin-top: 12px;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		flex-wrap: nowrap;
	}

	.site-header__nav.is-open {
		display: flex;
	}

	.nav-menu {
		flex-direction: column;
		gap: 4px;
	}

	.nav-menu li {
		padding-block: 6px;
	}

	.nav-menu--org {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}

	/* Move login/register into the mobile panel; hide the desktop cluster */
	.site-header__user {
		display: none;
	}

	.site-header__user--mobile {
		display: flex;
		flex-direction: column;
		gap: 10px;
		align-items: stretch;
		margin-top: 8px;
	}

	.site-header__user--mobile .button {
		text-align: center;
	}

	.hero {
		padding-block: 64px 48px;
		text-align: center;
	}

	.hero__inner {
		margin-inline: auto;
	}

	.hero__actions {
		justify-content: center;
	}

	.hero__actions .button {
		width: 100%;
	}

	.site-footer__inner {
		padding-block: 40px 20px;
	}
}
