/**
 * Warrior Legacy Manager — front-end styles.
 *
 * Design language mirrors the Warrior Legacy Project site:
 * deep navy surfaces, muted gold accents, warm cream backgrounds,
 * high-contrast serif display headings over a clean sans body.
 */

:root {
	--wlm-navy: #0e2340;
	--wlm-navy-deep: #081b3d;
	--wlm-gold: #c8a24a;
	--wlm-gold-dark: #a9863a;
	--wlm-gold-soft: #efe3c4;
	--wlm-cream: #f8f6f2;
	--wlm-cream-warm: #fbf4dd;
	--wlm-ink: #1f2a3a;
	--wlm-muted: #6b7280;
	--wlm-line: rgba(14, 35, 64, 0.12);
	--wlm-radius: 0;
	--wlm-radius-sm: 0;
	--wlm-shadow: 0 24px 60px -28px rgba(8, 27, 61, 0.45);
	--wlm-shadow-sm: 0 12px 30px -18px rgba(8, 27, 61, 0.4);
	--wlm-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--wlm-font-sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--wlm-maxw: 1160px;
}

/* Canonical boxed layout — used by the single template and available to any
   block via the .wlm-container utility class. Per-instance overrides still
   win through the --wlm-cw custom property (see WLM_Shortcodes::width_style). */
.wlm-container {
	width: 100%;
	max-width: var(--wlm-cw, 1320px);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(16px, 4vw, 32px);
	padding-right: clamp(16px, 4vw, 32px);
	box-sizing: border-box;
}

/* Scope everything to plugin output to avoid theme collisions. */
.wlm-featured,
.wlm-home-featured,
.wlm-archive,
.wlm-single,
.wlm-notice {
	font-family: var(--wlm-font-sans);
	color: var(--wlm-ink);
	box-sizing: border-box;
	line-height: 1.65;
}

.wlm-featured *,
.wlm-home-featured *,
.wlm-archive *,
.wlm-single *,
.wlm-notice * {
	box-sizing: border-box;
}

/* ---------- Shared bits ---------- */
.wlm-eyebrow {
	display: inline-block;
	font-family: var(--wlm-font-sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wlm-gold);
	margin-bottom: 1rem;
}

.wlm-eyebrow--light {
	color: var(--wlm-gold-soft);
}

.wlm-section-heading {
	font-family: var(--wlm-font-serif);
	font-weight: 600;
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	color: var(--wlm-navy);
	margin: 0 0 1.4rem;
	line-height: 1.15;
}

.wlm-btn {
	display: inline-block;
	font-family: var(--wlm-font-sans);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	padding: 0.85em 1.9em;
	border-radius: var(--wlm-radius-sm);
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.wlm-btn--gold {
	background: var(--wlm-gold) !important;
	color: var(--wlm-navy-deep) !important;
}

.wlm-btn--gold:hover,
.wlm-btn--gold:focus {
	background: var(--wlm-gold-dark) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: var(--wlm-shadow-sm);
}

.wlm-btn--navy {
	background: var(--wlm-navy) !important;
	color: #fff !important;
}

.wlm-btn--navy:hover,
.wlm-btn--navy:focus {
	background: var(--wlm-navy-deep) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: var(--wlm-shadow-sm);
}

.wlm-link {
	font-weight: 600;
	color: var(--wlm-gold-dark) !important;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.18s ease;
}

.wlm-link:hover,
.wlm-link:focus {
	color: var(--wlm-gold-dark) !important;
	border-bottom-color: var(--wlm-gold-dark);
}

.wlm-notice {
	background: var(--wlm-cream-warm);
	border: 1px solid var(--wlm-gold-soft);
	border-radius: var(--wlm-radius-sm);
	padding: 1.1rem 1.4rem;
	color: var(--wlm-navy);
	text-align: center;
}

.wlm-prose p {
	margin: 0 0 1.1rem;
}

/* ---------- Featured showcase ---------- */
.wlm-featured {
	width: 100%;
}

.wlm-featured__inner {
	max-width: var(--wlm-cw, 100%);
	margin-left: auto;
	margin-right: auto;
	background: var(--wlm-navy);
	border-radius: var(--wlm-radius);
	overflow: hidden;
	box-shadow: var(--wlm-shadow);
}

.wlm-featured__top {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
}

.wlm-featured__content {
	padding: clamp(1.75rem, 4vw, 3.5rem);
	color: #eef1f6;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wlm-featured__name {
	font-family: var(--wlm-font-serif);
	font-weight: 600;
	font-size: clamp(2rem, 4.4vw, 3.1rem);
	line-height: 1.05;
	color: #fff;
	margin: 0 0 0.6rem;
}

.wlm-featured__role {
	font-weight: 700;
	color: #fff;
	margin: 0 0 1.4rem;
	font-size: 1.02rem;
}

.wlm-featured__text {
	color: rgba(238, 241, 246, 0.82);
	margin-bottom: 1.4rem;
}

.wlm-featured__text p {
	margin: 0 0 1rem;
}

.wlm-featured__quote {
	font-family: var(--wlm-font-serif);
	font-style: italic;
	font-size: 1.12rem;
	color: var(--wlm-gold-soft);
	border: 0;
	margin: 0 0 1.8rem;
	padding: 0;
	line-height: 1.5;
}

.wlm-featured__cta {
	align-self: flex-start;
}

.wlm-featured__media {
	position: relative;
	min-height: 360px;
	background: var(--wlm-navy-deep);
}

.wlm-featured__media .wlm-featured__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wlm-featured__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, #16305a, var(--wlm-navy-deep));
}

/* Featured highlight row (Service / Leadership / Community) — below the profile */
.wlm-featured__hl-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 4vw, 3.5rem);
	border-top: 1px solid rgba(200, 162, 74, 0.22);
}

.wlm-featured__hl {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
}

.wlm-featured__hl-icon {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 0;
	border: 1.5px solid var(--wlm-gold);
	color: var(--wlm-gold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	line-height: 1;
}

.wlm-featured__hl-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.wlm-featured__hl-title {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wlm-gold);
	margin-bottom: 0.25rem;
}

.wlm-featured__hl-desc {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: rgba(238, 241, 246, 0.78);
}

/* ---------- Compact home widget ---------- */
.wlm-home-featured {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 1.5rem;
	align-items: center;
	background: var(--wlm-navy);
	border-radius: var(--wlm-radius);
	overflow: hidden;
	box-shadow: var(--wlm-shadow-sm);
	width: 100%;
}

.wlm-home-featured__media {
	display: block;
	height: 100%;
	min-height: 220px;
	position: relative;
}

.wlm-home-featured__media .wlm-home-featured__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wlm-home-featured__body {
	padding: 1.5rem 1.5rem 1.5rem 0;
	color: #fff;
}

.wlm-home-featured__name {
	font-family: var(--wlm-font-serif);
	font-size: 1.6rem;
	margin: 0 0 0.35rem;
	line-height: 1.1;
}

.wlm-home-featured__name a {
	color: #fff;
	text-decoration: none;
}

.wlm-home-featured__role {
	color: rgba(238, 241, 246, 0.78);
	font-size: 0.92rem;
	margin: 0 0 1rem;
}

.wlm-home-featured .wlm-link {
	color: var(--wlm-gold-soft);
}

/* ---------- Archive ----------
 * The archive lives inside an Elementor-editable page, so the page builder's
 * container owns the width: a boxed container keeps it boxed, a Full Width
 * container lets it fill. The shortcode's width="" attribute still overrides
 * via --wlm-cw when used standalone.
 */
.wlm-archive {
	width: 100%;
	max-width: var(--wlm-cw, 100%);
	margin: 0 auto;
}

.wlm-archive__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	background: #fff;
	border: 1px solid var(--wlm-line);
	border-radius: var(--wlm-radius);
	padding: 1rem 1.2rem;
	margin-bottom: 2rem;
	box-shadow: var(--wlm-shadow-sm);
}

.wlm-archive__search {
	flex: 1 1 240px;
}

.wlm-archive__filters input[type="search"],
.wlm-archive__filters select {
	width: 100%;
	padding: 0.7em 0.9em;
	border: 1px solid var(--wlm-line);
	border-radius: var(--wlm-radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--wlm-ink);
	background: #fff;
}

.wlm-archive__filters select {
	flex: 0 1 190px;
}

.wlm-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

.wlm-card-warrior {
	background: #fff;
	border-radius: var(--wlm-radius);
	overflow: hidden;
	box-shadow: var(--wlm-shadow-sm);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wlm-card-warrior:hover {
	transform: translateY(-4px);
	box-shadow: var(--wlm-shadow);
}

.wlm-card-warrior__media {
	display: block;
	aspect-ratio: 6 / 7;
	background: var(--wlm-navy-deep);
	position: relative;
	overflow: hidden;
}

.wlm-card-warrior__media .wlm-card-warrior__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.wlm-card-warrior:hover .wlm-card-warrior__img {
	transform: scale(1.04);
}

.wlm-card-warrior__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, var(--wlm-navy), var(--wlm-navy-deep));
}

.wlm-card-warrior__body {
	padding: 1.4rem 1.5rem 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wlm-card-warrior__role {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wlm-gold-dark);
}

.wlm-card-warrior__name {
	font-family: var(--wlm-font-serif);
	font-size: 1.45rem;
	line-height: 1.15;
	margin: 0;
}

.wlm-card-warrior__name a {
	color: var(--wlm-navy);
	text-decoration: none;
}

.wlm-card-warrior__date {
	color: var(--wlm-muted);
	font-size: 0.88rem;
}

.wlm-card-warrior__cta {
	margin-top: 0.6rem;
}

.wlm-archive__empty {
	text-align: center;
	color: var(--wlm-muted);
	padding: 3rem 1rem;
	font-size: 1.05rem;
}

/* Pagination */
.wlm-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.wlm-pagination .wlm-page,
.wlm-pagination a.page-numbers,
.wlm-pagination span.page-numbers {
	min-width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--wlm-radius-sm);
	border: 1px solid var(--wlm-line);
	background: #fff;
	color: var(--wlm-navy);
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.wlm-pagination .wlm-page:hover {
	background: var(--wlm-cream-warm);
}

.wlm-pagination .wlm-page.is-current,
.wlm-pagination span.page-numbers.current {
	background: var(--wlm-navy);
	color: #fff;
	border-color: var(--wlm-navy);
}

.wlm-archive.is-loading .wlm-archive__results {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ---------- Single ---------- */
.wlm-single {
	color: var(--wlm-ink);
}

/*
 * The hero is pulled up under the (transparent) site header, matching the
 * -90px offset used by every other hero section on the site. Override via
 * the --wlm-hero-pull custom property if the theme's header height changes.
 */
.wlm-single__hero {
	position: relative;
	/* Full-bleed even if the theme constrains the content area. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: var(--wlm-single-hero-h, 700px);
	margin-top: var(--wlm-hero-pull, -90px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--wlm-navy-deep);
}

.wlm-single__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Anchor to the top so faces are never cropped out of portrait images. */
	object-position: center top;
	z-index: 0;
}

/* Overlay is a pure CSS gradient layer — never baked into the image.
   Default is bottom -> top; .wlm-single__hero--overlay-lr switches to left -> right.
   A top scrim keeps the menu readable over bright images. */
.wlm-single__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(to bottom, rgba(8, 27, 61, 0.55) 0%, rgba(8, 27, 61, 0) 22%),
		linear-gradient(to top, rgba(8, 27, 61, 0.96) 0%, rgba(8, 27, 61, 0.55) 45%, rgba(8, 27, 61, 0.12) 100%);
}

.wlm-single__hero--overlay-lr::before {
	background:
		linear-gradient(to bottom, rgba(8, 27, 61, 0.55) 0%, rgba(8, 27, 61, 0) 22%),
		linear-gradient(to right, rgba(8, 27, 61, 0.92) 0%, rgba(8, 27, 61, 0.55) 55%, rgba(8, 27, 61, 0.22) 100%);
}

/*
 * Soft backdrop for portrait / low-resolution hero images: instead of an
 * awkwardly zoomed face, the image becomes a cinematic blurred backdrop
 * with a heavier navy wash so the text carries the composition.
 */
.wlm-single__hero--soft .wlm-single__hero-img {
	object-position: center 30%;
	filter: blur(16px) brightness(0.75) saturate(1.05);
	transform: scale(1.12);
}

.wlm-single__hero--soft::before {
	background:
		linear-gradient(to bottom, rgba(8, 27, 61, 0.6) 0%, rgba(8, 27, 61, 0.2) 25%),
		linear-gradient(to top, rgba(8, 27, 61, 0.96) 0%, rgba(8, 27, 61, 0.62) 50%, rgba(8, 27, 61, 0.32) 100%);
}

.wlm-single__hero-overlay {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	/* Top padding accounts for the hero sliding 90px under the header. */
	padding: calc(clamp(6rem, 12vw, 9rem) + 90px) 1.5rem clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}

.wlm-single__hero-overlay .wlm-eyebrow {
	position: relative;
	padding: 0 3.4rem;
}

/* Gold rule lines flanking the "Warrior of the Week" eyebrow. */
.wlm-single__hero-overlay .wlm-eyebrow::before,
.wlm-single__hero-overlay .wlm-eyebrow::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 2.5rem;
	height: 1px;
	background: var(--wlm-gold);
	opacity: 0.75;
}

.wlm-single__hero-overlay .wlm-eyebrow::before {
	left: 0;
}

.wlm-single__hero-overlay .wlm-eyebrow::after {
	right: 0;
}

.wlm-single__title {
	font-family: var(--wlm-font-serif);
	font-weight: 600;
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	color: #fff;
	margin: 0 0 0.6rem;
	line-height: 1.05;
	text-shadow: 0 2px 24px rgba(8, 27, 61, 0.55);
}

.wlm-single__role {
	color: var(--wlm-gold-soft);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 1.4rem;
	font-size: 0.98rem;
}

.wlm-single__hero-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem 0.75rem;
	margin-bottom: 1.4rem;
}

/* Meta rendered as glassy pill chips for a premium look. */
.wlm-single__hero-meta .wlm-single__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 1.1em;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: rgba(255, 255, 255, 0.95);
	font-size: 0.88rem;
	line-height: 1.4;
}

.wlm-single__hero-meta strong {
	color: var(--wlm-gold-soft);
	font-weight: 700;
}

@media (max-width: 1024px) {
	.wlm-single__hero {
		min-height: var(--wlm-single-hero-h-tablet, 550px);
	}

	.wlm-single__hero-overlay {
		padding-top: calc(clamp(5rem, 10vw, 7rem) + 90px);
	}
}

@media (max-width: 600px) {
	.wlm-single__hero {
		min-height: var(--wlm-single-hero-h-mobile, 450px);
	}

	.wlm-single__hero-img {
		object-position: center top;
	}

	.wlm-single__hero-overlay {
		padding-left: 1.1rem;
		padding-right: 1.1rem;
		padding-bottom: 2rem;
	}

	.wlm-single__hero-overlay .wlm-eyebrow {
		padding: 0 2.4rem;
	}

	.wlm-single__hero-overlay .wlm-eyebrow::before,
	.wlm-single__hero-overlay .wlm-eyebrow::after {
		width: 1.6rem;
	}

	.wlm-single__hero-meta {
		gap: 0.45rem 0.5rem;
	}

	.wlm-single__hero-meta .wlm-single__meta-item {
		font-size: 0.8rem;
		padding: 0.45em 0.9em;
	}
}

.wlm-single__meta-item strong {
	color: var(--wlm-gold-soft);
	font-weight: 700;
}

.wlm-single__socials {
	display: inline-flex;
	gap: 0.5rem;
}

.wlm-single__social {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wlm-single__social:hover {
	background: var(--wlm-gold);
	border-color: var(--wlm-gold);
	color: var(--wlm-navy-deep);
}

.wlm-single__body {
	padding-top: clamp(2rem, 5vw, 3.5rem);
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Prose-heavy sections (quote/story/mission) keep a comfortable reading
   column even though the outer .wlm-single__body is boxed at the site's
   1320px container width; grid sections (gallery/highlights) use the full
   container width. */
.wlm-single__section--narrow,
.wlm-single__quote {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.wlm-single__quote {
	font-family: var(--wlm-font-serif);
	font-style: italic;
	font-size: clamp(1.35rem, 3vw, 1.9rem);
	line-height: 1.45;
	color: var(--wlm-navy);
	text-align: center;
	border: 0;
	margin: 0 auto 3rem;
	padding: 2.4rem 1.25rem 0;
	position: relative;
}

/* Decorative oversized quotation mark. */
.wlm-single__quote::before {
	content: "\201C";
	position: absolute;
	top: -0.35rem;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--wlm-font-serif);
	font-style: normal;
	font-size: 4.5rem;
	line-height: 1;
	color: var(--wlm-gold);
	opacity: 0.85;
}

.wlm-single__quote::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	background: var(--wlm-gold);
	border-radius: 0;
	margin: 1.4rem auto 0;
}

.wlm-single__section {
	margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.wlm-single__section .wlm-section-heading {
	position: relative;
	padding-bottom: 0.6rem;
}

.wlm-single__section .wlm-section-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 3px;
	background: var(--wlm-gold);
	border-radius: 0;
}

.wlm-prose {
	font-size: 1.05rem;
	color: #33404f;
}

/* Gallery */
.wlm-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.9rem;
}

.wlm-gallery__item {
	display: block;
	border-radius: var(--wlm-radius-sm);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	box-shadow: var(--wlm-shadow-sm);
}

.wlm-gallery__item .wlm-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.wlm-gallery__item:hover .wlm-gallery__img {
	transform: scale(1.06);
}

/* Highlight cards */
.wlm-highlight-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.wlm-highlight-card {
	background: var(--wlm-cream);
	border: 1px solid var(--wlm-line);
	border-radius: var(--wlm-radius);
	padding: 1.75rem 1.5rem;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wlm-highlight-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wlm-shadow-sm);
	border-color: rgba(200, 162, 74, 0.45);
}

.wlm-highlight-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 0;
	background: var(--wlm-navy);
	color: var(--wlm-gold);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.wlm-highlight-card__icon .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.wlm-highlight-card__title {
	font-family: var(--wlm-font-serif);
	font-size: 1.25rem;
	color: var(--wlm-navy);
	margin: 0 0 0.5rem;
}

.wlm-highlight-card__desc {
	margin: 0;
	color: #4a5666;
	font-size: 0.96rem;
}

/* Prev / next */
.wlm-single__nav {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 1.25rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid var(--wlm-line);
	padding-top: 2rem;
}

.wlm-single__nav-link {
	text-decoration: none;
	color: var(--wlm-navy);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	max-width: 45%;
}

.wlm-single__nav-link--next {
	text-align: right;
	margin-left: auto;
}

.wlm-single__nav-dir {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wlm-gold-dark);
}

.wlm-single__nav-name {
	font-family: var(--wlm-font-serif);
	font-size: 1.15rem;
}

/* CTA */
.wlm-single__cta {
	position: relative;
	background: linear-gradient(160deg, var(--wlm-navy), var(--wlm-navy-deep));
	color: #fff;
	text-align: center;
	padding: clamp(3rem, 7vw, 4.5rem) 1.25rem;
	margin-top: 3rem;
	overflow: hidden;
}

/* Thin gold accent along the CTA's top edge. */
.wlm-single__cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(to right, transparent, var(--wlm-gold), transparent);
}

.wlm-single__cta-title {
	font-family: var(--wlm-font-serif);
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	color: #fff;
	margin: 0 0 0.75rem;
}

.wlm-single__cta-text {
	max-width: 560px;
	margin: 0 auto 1.75rem;
	color: rgba(238, 241, 246, 0.8);
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
	.wlm-featured__hl-row {
		grid-template-columns: 1fr;
		gap: 1.1rem;
	}
}

@media (max-width: 900px) {
	.wlm-featured__top {
		grid-template-columns: 1fr;
	}

	.wlm-featured__media {
		order: -1;
		min-height: 300px;
	}

	.wlm-grid,
	.wlm-highlight-cards,
	.wlm-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.wlm-grid,
	.wlm-highlight-cards {
		grid-template-columns: 1fr;
	}

	.wlm-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.wlm-home-featured {
		grid-template-columns: 1fr;
	}

	.wlm-home-featured__media {
		min-height: 200px;
	}

	.wlm-home-featured__body {
		padding: 0 1.5rem 1.5rem;
	}

	.wlm-archive__filters select,
	.wlm-archive__search {
		flex: 1 1 100%;
	}

	.wlm-single__nav {
		flex-direction: column;
	}

	.wlm-single__nav-link,
	.wlm-single__nav-link--next {
		max-width: 100%;
		text-align: left;
	}
}

/* ---------- Single-warrior page ----------
 * The Elementor Full Width/Canvas template lets the page escape any narrow
 * theme column. The hero, meta bar and CTA span full width (giving a
 * transparent site header a dark backdrop), while the story column re-centers
 * itself for comfortable reading.
 */
body.wlm-single-page .wlm-single,
body.wlm-single-page .entry-content > .wlm-single,
body.wlm-single-page .elementor-widget-container > .wlm-single {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

body.wlm-single-page {
	overflow-x: hidden;
}

/* ---------- Nominate CTA strip ---------- */
.wlm-nominate {
	width: 100%;
}

.wlm-nominate__inner {
	max-width: var(--wlm-cw, 100%);
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 1.75rem;
	align-items: center;
	background: #fff;
	border: 1px solid var(--wlm-line);
	border-radius: var(--wlm-radius);
	padding: 1.75rem 2rem;
	box-shadow: var(--wlm-shadow-sm);
}

.wlm-nominate__badge {
	width: 62px;
	height: 62px;
	border-radius: 0;
	border: 2px solid var(--wlm-gold);
	color: var(--wlm-gold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wlm-nominate__badge .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.wlm-nominate__title {
	font-family: var(--wlm-font-serif);
	font-size: 1.4rem;
	color: var(--wlm-navy);
	margin: 0 0 0.35rem;
	line-height: 1.2;
}

.wlm-nominate__text {
	margin: 0;
	color: #4a5666;
	font-size: 0.96rem;
	max-width: 640px;
	line-height: 1.55;
}

.wlm-nominate__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
}

.wlm-nominate__note {
	font-size: 0.8rem;
	color: var(--wlm-muted);
}

/* ---------- Past Warriors carousel ---------- */
.wlm-carousel {
	--wlm-cpv: 3;
	position: relative;
	width: 100%;
	max-width: var(--wlm-cw, 100%);
	margin: 0 auto;
	box-sizing: border-box;
}

.wlm-carousel * {
	box-sizing: border-box;
}

.wlm-carousel__viewport {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	/* Guarantees no horizontal page overflow regardless of drag/transform. */
	overflow: hidden;
	padding: 0 0.25rem;
}

.wlm-carousel__track {
	display: flex;
	flex: 1;
	min-width: 0;
	will-change: transform;
	touch-action: pan-y;
	cursor: grab;
	outline-offset: 6px;
}

.wlm-carousel__track:active {
	cursor: grabbing;
}

.wlm-carousel__slide {
	flex: 0 0 calc( 100% / var(--wlm-cpv) );
	max-width: calc( 100% / var(--wlm-cpv) );
	padding: 0.5rem 0.75rem 1.25rem;
	box-sizing: border-box;
}

.wlm-carousel__slide .wlm-card-warrior {
	height: 100%;
	transition: transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.35s ease;
}

.wlm-carousel__slide .wlm-card-warrior:hover {
	transform: translateY(-6px);
	box-shadow: var(--wlm-shadow);
}

.wlm-carousel__slide .wlm-card-warrior__media {
	aspect-ratio: 6 / 7;
}

.wlm-carousel__nav {
	flex-shrink: 0;
	z-index: 2;
	width: 46px;
	height: 46px;
	border-radius: 0;
	border: 1px solid var(--wlm-line);
	background: #fff !important;
	color: var(--wlm-navy) !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--wlm-shadow-sm);
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.wlm-carousel__nav:hover,
.wlm-carousel__nav:focus-visible {
	background: var(--wlm-navy) !important;
	color: #fff !important;
}

.wlm-carousel__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

/* Hardened against theme button styles (padding, min-width, backgrounds). */
.wlm-carousel__dots .wlm-carousel__dot {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	width: 9px !important;
	height: 9px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0;
	border: 1px solid var(--wlm-gold-dark) !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
}

.wlm-carousel__dots .wlm-carousel__dot.is-active {
	background: var(--wlm-gold-dark) !important;
	width: 22px !important;
	border-radius: 0;
}

.wlm-carousel__footer {
	text-align: center;
	margin-top: 1.25rem;
	margin-bottom: 1rem;
}

@media (max-width: 780px) {
	.wlm-nominate__inner {
		grid-template-columns: 1fr;
		text-align: center;
		justify-items: center;
	}

	.wlm-nominate__text {
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.wlm-carousel__viewport {
		gap: 0.35rem;
	}

	.wlm-carousel__nav {
		width: 38px;
		height: 38px;
	}

	.wlm-carousel__slide {
		padding: 0.5rem 0.35rem 1.1rem;
	}
}

/* ---------- Nomination form ---------- */
.wlm-nominate-form {
	width: 100%;
	max-width: var(--wlm-cw, 100%);
	margin: 0 auto;
	font-family: var(--wlm-font-sans);
	color: var(--wlm-ink);
}

.wlm-nominate-form__title {
	font-family: var(--wlm-font-serif);
	font-size: clamp(1.6rem, 3.4vw, 2.2rem);
	color: var(--wlm-navy);
	margin: 0 0 0.5rem;
}

.wlm-nominate-form__intro {
	color: #4a5666;
	margin: 0 0 1.5rem;
}

.wlm-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

.wlm-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.wlm-form-field--full {
	grid-column: 1 / -1;
}

.wlm-form-field__label {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wlm-navy);
}

.wlm-req {
	color: var(--wlm-gold-dark);
}

.wlm-nominate-form input[type="text"],
.wlm-nominate-form input[type="email"],
.wlm-nominate-form textarea {
	width: 100%;
	padding: 0.7em 0.85em;
	border: 1px solid var(--wlm-line);
	border-radius: var(--wlm-radius-sm);
	font-family: inherit;
	font-size: 1rem;
	color: var(--wlm-ink);
	background: #fff;
}

.wlm-nominate-form input:focus,
.wlm-nominate-form textarea:focus {
	outline: none;
	border-color: var(--wlm-gold);
	box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.18);
}

.wlm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wlm-formnotice {
	border-radius: var(--wlm-radius-sm);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-weight: 500;
}

.wlm-formnotice--success {
	background: rgba(29, 158, 117, 0.12);
	color: #0f6e56;
	border: 1px solid rgba(29, 158, 117, 0.3);
}

.wlm-formnotice--error {
	background: rgba(192, 57, 43, 0.1);
	color: #a32d2d;
	border: 1px solid rgba(192, 57, 43, 0.28);
}

@media (max-width: 600px) {
	.wlm-form-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Hero banner ----------
 * Always full-bleed: breaks out of any boxed parent container. When the
 * parent is already full width the negative margins resolve to zero.
 */
.wlm-hero {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: var(--wlm-hero-h, 460px);
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--wlm-navy-deep);
	background-size: cover;
	background-position: center;
	text-align: center;
	overflow: hidden;
}

.wlm-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(8, 27, 61, 0.66), rgba(8, 27, 61, 0.82));
}

.wlm-hero--plain .wlm-hero__overlay {
	background: linear-gradient(160deg, var(--wlm-navy), var(--wlm-navy-deep));
}

.wlm-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 880px;
	padding: clamp(6rem, 12vw, 9rem) 1.5rem clamp(2.5rem, 6vw, 4rem);
	color: #fff;
	font-family: var(--wlm-font-sans);
}

.wlm-hero__title {
	font-family: var(--wlm-font-serif);
	font-weight: 600;
	font-size: clamp(2.4rem, 6vw, 4rem);
	color: #fff;
	line-height: 1.05;
	margin: 0 0 1rem;
}

.wlm-hero__crumbs {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 1rem;
}

.wlm-hero__crumbs a {
	color: #fff !important;
	text-decoration: none;
}

.wlm-hero__crumbs a:hover {
	color: var(--wlm-gold-soft) !important;
}

.wlm-hero__tagline {
	color: var(--wlm-gold);
	font-weight: 500;
	font-size: 1.05rem;
	margin: 0 0 1rem;
}

.wlm-hero__text {
	color: rgba(238, 241, 246, 0.85);
	font-size: 1rem;
	line-height: 1.65;
	max-width: 680px;
	margin: 0 auto;
}

/* ---------- Accessibility: visible focus states ---------- */
.wlm-btn:focus-visible,
.wlm-link:focus-visible,
.wlm-carousel__nav:focus-visible,
.wlm-carousel__dot:focus-visible,
.wlm-carousel__track:focus-visible,
.wlm-pagination .wlm-page:focus-visible,
.wlm-card-warrior__name a:focus-visible,
.wlm-card-warrior__media:focus-visible,
.wlm-single__social:focus-visible,
.wlm-nominate-form input:focus-visible,
.wlm-nominate-form textarea:focus-visible,
.wlm-archive__filters input:focus-visible,
.wlm-archive__filters select:focus-visible {
	outline: 3px solid var(--wlm-gold);
	outline-offset: 2px;
}

/* ---------- Nomination form: file upload field ---------- */
.wlm-form-field input[type="file"] {
	width: 100%;
	padding: 0.6em 0.7em;
	border: 1px dashed var(--wlm-line);
	border-radius: var(--wlm-radius-sm);
	font-family: inherit;
	font-size: 0.92rem;
	background: var(--wlm-cream);
}

.wlm-form-field__hint {
	font-size: 0.8rem;
	color: var(--wlm-muted);
	font-weight: 400;
}
