/* Reusable components: labels, buttons, links, cards, video facade, reveal. */

/* Small uppercase label above a heading, with a leaf bullet */
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	color: var(--leaf);
	font-size: var(--t5);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.kicker::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 0 100% 0 100%;
	background: currentColor;
}

.intro {
	max-width: 52ch;
	color: var(--slate);
	font-size: clamp(1.12rem, 1.35vw, 1.3rem);
	line-height: 1.6;
}

/* ---------- Buttons: rounded, filled, calm ---------- */
.btn,
.button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 26px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--sans);
	font-size: 0.97rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn .arw { transition: transform 0.3s var(--ease); }
.btn:hover .arw { transform: translateX(5px); }

.btn-primary,
.button { background: var(--forest); color: #fff; }
.btn-primary:hover,
.button:hover { background: var(--leaf); }

.btn-outline { border-color: var(--rule-mid); background: transparent; color: var(--forest); }
.btn-outline:hover { border-color: var(--forest); background: var(--card); }

.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--sprout); }

/* Giving only */
.btn-give { background: var(--give); color: #fff; }
.btn-give:hover { background: var(--give-deep); }

/* ---------- Underlined text link with an arrow ---------- */
.link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 3px;
	background: linear-gradient(var(--moss), var(--moss)) 0 100% / 100% 2px no-repeat;
	color: var(--forest);
	font-weight: 600;
	text-decoration: none;
	transition: background-size 0.3s;
}

.link:hover { background-size: 0 2px; background-position: 100% 100%; }
.link .arw { transition: transform 0.3s; }
.link:hover .arw { transform: translateX(4px); }

/* Round arrow used on cards and list rows */
.go-arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1.5px solid var(--rule-mid);
	border-radius: 50%;
	color: var(--forest);
	transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s;
}

/* ---------- Reveal on scroll (assets/js/main.js) ---------- */
.js .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Post cards (archives) ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: var(--space-5);
	margin-bottom: var(--sp);
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--card);
	border-radius: var(--r);
}

.card__image img {
	width: 100%;
	aspect-ratio: 10 / 7;
	object-fit: cover;
}

.card__body { padding: clamp(24px, 2.6vw, 36px); }
.card__title { font-size: 1.4rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--leaf); }
.card__meta { color: var(--slate); font-size: var(--text-sm); }

/* ---------- Click-to-load video ---------- */
.video-facade {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	cursor: pointer;
}

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

.video-facade__play {
	position: absolute;
	inset: 50% auto auto 50%;
	width: 4.5rem;
	height: 3.25rem;
	transform: translate(-50%, -50%);
	background: rgb(0 0 0 / 0.75);
	border: 0;
	border-radius: 0.75rem;
	cursor: pointer;
}

.video-facade__play::before {
	content: "";
	position: absolute;
	inset: 50% auto auto 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 0.7rem 0 0.7rem 1.2rem;
	border-color: transparent transparent transparent #fff;
}

/* ---------- Search box (searchform.php) ---------- */
.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 560px;
	padding: 6px 6px 6px 20px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 0 var(--rule);
}

.search-form:focus-within { box-shadow: 0 0 0 3px var(--coral); }

.search-form__icon { flex: none; color: var(--slate); }

.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 12px 4px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
}

.search-form input[type="search"]:focus-visible { outline: none; }

/* ---------- Pill links: news topics ---------- */
.topics ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 clamp(28px, 3vw, 44px);
	padding: 0;
	list-style: none;
}

.topics a {
	display: inline-block;
	padding: 9px 16px;
	border: 1.5px solid var(--rule-mid);
	border-radius: 999px;
	color: var(--forest);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}

.topics a:hover { border-color: var(--forest); background: var(--card); }
.topics a[aria-current="page"] { border-color: var(--forest); background: var(--forest); color: #fff; }

/* ---------- Page numbers ---------- */
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: clamp(40px, 4vw, 64px);
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 16px;
	border: 1.5px solid var(--rule-mid);
	border-radius: 999px;
	color: var(--forest);
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}

.pagination a.page-numbers:hover { border-color: var(--forest); background: var(--card); }
.pagination .page-numbers.current { border-color: var(--forest); background: var(--forest); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

.search-results {
	padding: 0;
	list-style: none;
}

.search-results li {
	padding-block: var(--space-4);
	border-bottom: 1px solid var(--rule);
}
