/*
Theme Name: Wilderness Dispatch
Template: twentytwentyfive
Description: A Twenty Twenty-Five child theme for a wilderness nonprofit publishing weekly news. Earthy palette, Literata headlines, magazine-style front page, and reusable action / newsletter / events patterns.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wilderness-dispatch
*/

/* ---------- Kicker (category label above titles) ---------- */
.wd-kicker,
.wd-kicker a {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--rust);
}
.wd-kicker a:hover { text-decoration: underline; }
.wd-kicker--light,
.wd-kicker--light a { color: var(--wp--preset--color--accent-1); }

/* ---------- Section headers: heavy rule above ---------- */
.wd-section-head {
	border-top: 2px solid var(--wp--preset--color--contrast);
	padding-top: 1.1rem;
}
.wd-label {
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--manrope) !important;
}

/* ---------- Header + utility bar ---------- */
.wd-utility a { color: inherit; text-decoration: none; }
.wd-utility a:hover { text-decoration: underline; }
.wd-header { border-bottom: 1px solid var(--wp--preset--color--accent-6); }

/* Topic pills (Categories block with class wd-pills) */
.wd-topics { border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.wd-pills.wp-block-categories,
.wd-pills ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}
.wd-pills li { margin: 0; }
.wd-pills a {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}
.wd-pills a:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--contrast);
}

/* ---------- Images ---------- */
.wp-block-post-featured-image img,
.wp-block-image img { border-radius: 6px; }
.wd-photo-box {
	border-radius: 6px;
	background-size: cover;
	background-position: center;
}

/* ---------- "This Week" numbered list ---------- */
.wd-this-week .wp-block-post-template { counter-reset: wd-week; }
.wd-this-week .wp-block-post-template > li {
	counter-increment: wd-week;
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	column-gap: 0.75rem;
	padding: 1.1rem 0;
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}
.wd-this-week .wp-block-post-template > li::before {
	content: counter(wd-week);
	font-family: var(--wp--preset--font-family--literata);
	font-size: 1.9rem;
	line-height: 1;
	color: var(--wp--preset--color--rust);
}

/* ---------- Byline row ---------- */
.wd-byline { color: var(--wp--preset--color--accent-4); }
.wd-byline > * + *::before {
	content: "·";
	margin-right: 0.6em;
}

/* ---------- Event date badge ---------- */
.wd-event { border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.wd-date-badge {
	min-width: 4rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 6px;
	text-align: center;
	line-height: 1.1;
}
.wd-date-badge p { margin: 0; }

/* ---------- Article details ---------- */
.single .has-drop-cap:not(:focus)::first-letter {
	font-family: var(--wp--preset--font-family--literata);
	font-weight: 600;
	color: var(--wp--preset--color--accent-3);
}
.wd-author-box { border-top: 1px solid var(--wp--preset--color--accent-6); }
.wd-tags a {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 999px;
	font-size: 0.875rem;
	text-decoration: none;
	margin: 0 0.25rem 0.4rem 0;
}

/* ---------- Dark sections (action band, footer) ---------- */
.wd-dark a:not(.wp-element-button) { color: inherit; }
.wd-footer-rule.wp-block-separator {
	border-color: color-mix(in srgb, var(--wp--preset--color--base) 20%, transparent);
	opacity: 1;
}
