/*
Theme Name: Wadi Al Mali
Theme URI: https://waminstitute.net
Author: Wadi Al Mali
Description: A fast, hand-built theme for Wadi Al Mali — industrial safety training in Riyadh. No page builder, no bloat. Includes styled templates for the Attendee Verification system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wadi-al-mali
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================================
   1. DESIGN TOKENS
   ========================================================================= */

:root {
	/* Brand — purple carried over from the original identity */
	--wam-purple-900: #2A0146;
	--wam-purple-800: #3D0265;
	--wam-purple-700: #4A027A;
	--wam-purple: #55038C;
	--wam-purple-500: #6D0FAF;
	--wam-purple-400: #8A3ECB;
	--wam-purple-200: #D3B8EA;
	--wam-purple-100: #EDE1F7;
	--wam-purple-050: #F7F2FC;

	/* Safety amber — signals the industrial-safety sector without shouting */
	--wam-amber: #F0A202;
	--wam-amber-600: #C98202;
	--wam-amber-100: #FDF0D2;

	/* Neutrals */
	--wam-ink: #16091F;
	--wam-body: #4A4453;
	--wam-muted: #756E80;
	--wam-line: #E6E1EC;
	--wam-surface: #FFFFFF;
	--wam-surface-2: #FAF8FC;
	--wam-surface-3: #F3EFF8;

	/* Status */
	--wam-green: #12805C;
	--wam-green-bg: #E6F5EF;
	--wam-red: #C22C3F;
	--wam-red-bg: #FCEBED;

	/* Typography */
	--wam-font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
	--wam-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Fluid type scale */
	--wam-fs-hero: clamp(3rem, 1.6rem + 6.4vw, 6.5rem);
	--wam-fs-h1: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);
	--wam-fs-h2: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
	--wam-fs-h3: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
	--wam-fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
	--wam-fs-body: 1rem;
	--wam-fs-sm: 0.9375rem;
	--wam-fs-xs: 0.8125rem;

	/* Spacing */
	--wam-section: clamp(4rem, 2.5rem + 6vw, 7.5rem);
	--wam-gutter: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
	--wam-max: 1200px;
	--wam-max-wide: 1400px;
	--wam-max-text: 68ch;

	/* Radii + shadow */
	--wam-r-sm: 8px;
	--wam-r: 14px;
	--wam-r-lg: 22px;
	--wam-r-pill: 999px;
	--wam-shadow-sm: 0 1px 2px rgba(22, 9, 31, .06), 0 2px 8px rgba(22, 9, 31, .04);
	--wam-shadow: 0 4px 12px rgba(22, 9, 31, .07), 0 12px 32px rgba(22, 9, 31, .06);
	--wam-shadow-lg: 0 8px 24px rgba(42, 1, 70, .1), 0 24px 60px rgba(42, 1, 70, .12);
	--wam-shadow-purple: 0 10px 30px rgba(85, 3, 140, .22);

	--wam-ease: cubic-bezier(.22, .68, .32, 1);
	--wam-header-h: 84px;
}

/* =========================================================================
   2. RESET + BASE
   ========================================================================= */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wam-header-h) + 20px);
}

body {
	margin: 0;
	font-family: var(--wam-font-body);
	font-size: var(--wam-fs-body);
	line-height: 1.7;
	color: var(--wam-body);
	background: var(--wam-surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--wam-ink);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Display face for the big statements only — it is a condensed all-caps face
   and becomes hard to read at body sizes. */
.wam-display,
.wam-hero__title,
.wam-section__title,
.wam-stat__value,
.wam-logo__text {
	font-family: var(--wam-font-display);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 0.94;
	text-transform: uppercase;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--wam-purple);
	text-decoration-color: color-mix(in srgb, var(--wam-purple) 35%, transparent);
	text-underline-offset: 3px;
	transition: color .18s var(--wam-ease), text-decoration-color .18s var(--wam-ease);
}
a:hover { color: var(--wam-purple-500); text-decoration-color: currentColor; }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
li { margin-bottom: .4rem; }
strong, b { color: var(--wam-ink); font-weight: 650; }
small { font-size: var(--wam-fs-xs); }
hr { border: 0; height: 1px; background: var(--wam-line); margin: 2.5rem 0; }

blockquote {
	margin: 2rem 0;
	padding: 1.25rem 0 1.25rem 1.5rem;
	border-left: 3px solid var(--wam-purple);
	background: var(--wam-purple-050);
	border-radius: 0 var(--wam-r-sm) var(--wam-r-sm) 0;
	font-size: var(--wam-fs-lead);
	color: var(--wam-ink);
}

code, pre, kbd {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
	font-size: .9em;
}
code { background: var(--wam-surface-3); padding: .15em .4em; border-radius: 4px; color: var(--wam-purple-700); }
pre { background: var(--wam-ink); color: #E8E2EF; padding: 1.25rem; border-radius: var(--wam-r); overflow-x: auto; }
pre code { background: none; color: inherit; padding: 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: var(--wam-fs-sm); }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--wam-line); }
th { background: var(--wam-surface-3); color: var(--wam-ink); font-weight: 650; }

:focus-visible {
	outline: 3px solid var(--wam-amber);
	outline-offset: 2px;
	border-radius: 3px;
}

::selection { background: var(--wam-purple-200); color: var(--wam-purple-900); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.wam-skip-link {
	position: absolute;
	top: -100px; left: 12px;
	z-index: 1000;
	background: var(--wam-purple);
	color: #fff;
	padding: .75rem 1.25rem;
	border-radius: 0 0 var(--wam-r-sm) var(--wam-r-sm);
	text-decoration: none;
	font-weight: 600;
	transition: top .2s var(--wam-ease);
}
.wam-skip-link:focus { top: 0; color: #fff; }

/* =========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================= */

.wam-container {
	width: 100%;
	max-width: var(--wam-max);
	margin-inline: auto;
	padding-inline: var(--wam-gutter);
}
.wam-container--wide { max-width: var(--wam-max-wide); }
.wam-container--narrow { max-width: 820px; }

.wam-section { padding-block: var(--wam-section); position: relative; }
.wam-section--tight { padding-block: calc(var(--wam-section) * .62); }
.wam-section--alt { background: var(--wam-surface-2); }
.wam-section--ink { background: var(--wam-ink); color: #C9C2D2; }
.wam-section--ink h2, .wam-section--ink h3 { color: #fff; }

.wam-section__head {
	max-width: 720px;
	margin-bottom: clamp(2.5rem, 1.5rem + 2.5vw, 4rem);
}
.wam-section__head--center { margin-inline: auto; text-align: center; }

.wam-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-size: var(--wam-fs-xs);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wam-purple);
	margin-bottom: 1rem;
}
.wam-eyebrow::before {
	content: "";
	width: 28px; height: 2px;
	background: var(--wam-amber);
	border-radius: 2px;
}
.wam-section__head--center .wam-eyebrow::before { display: none; }
.wam-section--ink .wam-eyebrow { color: var(--wam-purple-200); }

.wam-section__title { font-size: var(--wam-fs-h2); margin-bottom: 1rem; }
.wam-section__lead {
	font-size: var(--wam-fs-lead);
	color: var(--wam-muted);
	max-width: var(--wam-max-text);
	margin: 0;
}
.wam-section--ink .wam-section__lead { color: #A79FB4; }
.wam-section__head--center .wam-section__lead { margin-inline: auto; }

.wam-grid { display: grid; gap: clamp(1.25rem, .8rem + 1.6vw, 2rem); }
/* --2 is an explicit two-up so paired content (and the 4 course cards) reads as
   a deliberate 2x2 rather than collapsing to 3 + 1 orphan. */
.wam-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 860px) { .wam-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.wam-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.wam-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* =========================================================================
   4. BUTTONS
   ========================================================================= */

.wam-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .95rem 1.9rem;
	border: 1.5px solid transparent;
	border-radius: var(--wam-r-pill);
	font-family: var(--wam-font-body);
	font-size: var(--wam-fs-sm);
	font-weight: 650;
	letter-spacing: .01em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .2s var(--wam-ease), box-shadow .2s var(--wam-ease),
	            background-color .2s var(--wam-ease), color .2s var(--wam-ease),
	            border-color .2s var(--wam-ease);
}
.wam-btn:hover { transform: translateY(-2px); }
.wam-btn:active { transform: translateY(0); }
.wam-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.wam-btn--primary {
	background: var(--wam-purple);
	color: #fff;
	box-shadow: var(--wam-shadow-purple);
}
.wam-btn--primary:hover {
	background: var(--wam-purple-500);
	color: #fff;
	box-shadow: 0 14px 38px rgba(85, 3, 140, .3);
}

.wam-btn--amber {
	background: var(--wam-amber);
	color: var(--wam-ink);
	box-shadow: 0 10px 30px rgba(240, 162, 2, .3);
}
.wam-btn--amber:hover { background: #FFB01A; color: var(--wam-ink); }

.wam-btn--ghost {
	background: transparent;
	color: var(--wam-purple);
	border-color: var(--wam-purple-200);
}
.wam-btn--ghost:hover {
	background: var(--wam-purple-050);
	border-color: var(--wam-purple);
	color: var(--wam-purple);
}

.wam-btn--light {
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border-color: rgba(255, 255, 255, .3);
	backdrop-filter: blur(8px);
}
.wam-btn--light:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .55); }

.wam-btn--lg { padding: 1.15rem 2.4rem; font-size: 1rem; }
.wam-btn--block { width: 100%; }

/* =========================================================================
   5. HEADER + NAVIGATION
   ========================================================================= */

.wam-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--wam-ease), box-shadow .25s var(--wam-ease), background-color .25s var(--wam-ease);
}
.wam-header.is-stuck {
	border-bottom-color: var(--wam-line);
	box-shadow: 0 4px 20px rgba(22, 9, 31, .06);
	background: rgba(255, 255, 255, .94);
}

.wam-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--wam-header-h);
}

.wam-logo {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	text-decoration: none;
	flex-shrink: 0;
}
.wam-logo img { max-height: 54px; width: auto; }
.wam-logo__text {
	font-size: 1.75rem;
	color: var(--wam-purple);
	line-height: 1;
}
.wam-logo__tag {
	display: block;
	font-family: var(--wam-font-body);
	font-size: .625rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--wam-muted);
	margin-top: .25rem;
}

.wam-nav { display: flex; align-items: center; gap: .35rem; }
.wam-nav ul {
	display: flex;
	align-items: center;
	gap: .2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.wam-nav li { margin: 0; position: relative; }
/* Scoped to list links so it cannot out-specify the CTA button that also
   lives inside the nav on mobile. */
.wam-nav ul a {
	display: block;
	padding: .6rem .95rem;
	border-radius: var(--wam-r-pill);
	font-size: var(--wam-fs-sm);
	font-weight: 550;
	color: var(--wam-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .18s var(--wam-ease), color .18s var(--wam-ease);
}
.wam-nav ul a:hover { background: var(--wam-purple-050); color: var(--wam-purple); }
.wam-nav .current-menu-item > a,
.wam-nav .current_page_item > a,
.wam-nav .current-menu-ancestor > a {
	background: var(--wam-purple-100);
	color: var(--wam-purple-700);
	font-weight: 650;
}

/* Dropdowns */
.wam-nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 220px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: .5rem;
	background: #fff;
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r);
	box-shadow: var(--wam-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .2s var(--wam-ease), transform .2s var(--wam-ease), visibility .2s;
}
.wam-nav li:hover > .sub-menu,
.wam-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.wam-nav .sub-menu a { border-radius: var(--wam-r-sm); }

.wam-header__actions { display: flex; align-items: center; gap: .75rem; }

.wam-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	padding: 0;
	background: var(--wam-purple);
	border: 0;
	border-radius: var(--wam-r-sm);
	cursor: pointer;
}
.wam-nav-toggle__box { position: relative; width: 20px; height: 14px; }
.wam-nav-toggle__box span {
	position: absolute;
	left: 0;
	width: 100%; height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform .3s var(--wam-ease), opacity .2s var(--wam-ease), top .3s var(--wam-ease);
}
.wam-nav-toggle__box span:nth-child(1) { top: 0; }
.wam-nav-toggle__box span:nth-child(2) { top: 6px; }
.wam-nav-toggle__box span:nth-child(3) { top: 12px; }
.wam-nav-toggle[aria-expanded="true"] .wam-nav-toggle__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.wam-nav-toggle[aria-expanded="true"] .wam-nav-toggle__box span:nth-child(2) { opacity: 0; }
.wam-nav-toggle[aria-expanded="true"] .wam-nav-toggle__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 991px) {
	.wam-nav-toggle { display: inline-flex; }
	.wam-header__actions .wam-btn { display: none; }

	/* backdrop-filter on an ancestor makes position:fixed resolve against that
	   ancestor instead of the viewport, which collapsed the drawer to zero
	   height. Drop the glass effect here; a solid bar reads better behind an
	   open menu anyway. */
	.wam-header {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: #fff;
	}
	.wam-header.is-stuck { background: #fff; }

	.wam-nav {
		position: fixed;
		inset: var(--wam-header-h) 0 0 0;
		display: block;
		padding: 1.5rem var(--wam-gutter) 3rem;
		background: #fff;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateX(100%);
		transition: transform .32s var(--wam-ease), opacity .32s var(--wam-ease), visibility .32s;
	}
	.wam-nav.is-open { opacity: 1; visibility: visible; transform: translateX(0); }

	.wam-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
	.wam-nav ul a {
		padding: .95rem 1rem;
		border-radius: var(--wam-r-sm);
		font-size: 1.05rem;
		border-bottom: 1px solid var(--wam-line);
	}

	/* The pale desktop pill washes out on a phone screen. Use a solid brand
	   fill with white text so the current page is unmistakable. */
	.wam-nav .current-menu-item > a,
	.wam-nav .current_page_item > a,
	.wam-nav .current-menu-ancestor > a {
		background: var(--wam-purple);
		color: #fff;
		border-bottom-color: transparent;
		box-shadow: 0 6px 18px rgba(85, 3, 140, .25);
	}
	.wam-nav .current-menu-item > a:hover,
	.wam-nav .current_page_item > a:hover,
	.wam-nav .current-menu-ancestor > a:hover {
		background: var(--wam-purple-500);
		color: #fff;
	}
	.wam-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 1rem;
		min-width: 0;
	}
	/* Menu footer: visually detached from the link list so it reads as an
	   action rather than a sixth destination. */
	.wam-nav__cta {
		display: block;
		margin-top: 1.75rem;
		padding: 1.35rem 1.25rem 1.5rem;
		background: linear-gradient(160deg, var(--wam-purple-050), var(--wam-purple-100));
		border: 1px solid var(--wam-purple-100);
		border-radius: var(--wam-r-lg);
		text-align: center;
	}
	.wam-nav__cta-label {
		margin: 0 0 .9rem;
		font-size: var(--wam-fs-xs);
		font-weight: 700;
		letter-spacing: .1em;
		text-transform: uppercase;
		color: var(--wam-purple-700);
	}
	.wam-nav__cta .wam-btn { width: 100%; }
	.wam-nav__call {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: .5rem;
		margin-top: 1rem;
		font-size: var(--wam-fs-sm);
		font-weight: 650;
		color: var(--wam-purple-700);
		text-decoration: none;
	}
	.wam-nav__call svg { width: 16px; height: 16px; opacity: .75; }
	.wam-nav__call:hover { color: var(--wam-purple); text-decoration: underline; }
}
@media (min-width: 992px) {
	.wam-nav__cta { display: none; }
}

/* =========================================================================
   6. HERO
   ========================================================================= */

.wam-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 15% 0%, rgba(138, 62, 203, .55), transparent 62%),
		radial-gradient(ellipse 70% 70% at 95% 25%, rgba(240, 162, 2, .22), transparent 60%),
		linear-gradient(160deg, var(--wam-purple-900) 0%, var(--wam-purple-700) 48%, #1D0233 100%);
	color: #fff;
	padding-block: clamp(4.5rem, 3rem + 8vw, 8.5rem);
}
.wam-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 68px 68px;
	mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 78%);
	pointer-events: none;
}
.wam-hero > * { position: relative; z-index: 1; }

.wam-hero__inner {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
	align-items: center;
}
@media (max-width: 900px) {
	.wam-hero__inner { grid-template-columns: 1fr; }
}

.wam-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .45rem 1rem .45rem .5rem;
	margin-bottom: 1.75rem;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--wam-r-pill);
	font-size: var(--wam-fs-xs);
	font-weight: 600;
	letter-spacing: .04em;
	color: #EFE7F7;
	backdrop-filter: blur(8px);
}
.wam-hero__badge b {
	display: inline-flex;
	align-items: center;
	padding: .25rem .6rem;
	background: var(--wam-amber);
	color: var(--wam-purple-900);
	border-radius: var(--wam-r-pill);
	font-size: .6875rem;
	font-weight: 750;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wam-hero__title {
	font-size: var(--wam-fs-hero);
	color: #fff;
	margin-bottom: 1.5rem;
	text-wrap: balance;
}
.wam-hero__title em {
	font-style: normal;
	color: var(--wam-amber);
	position: relative;
}

.wam-hero__lead {
	font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
	line-height: 1.65;
	color: #D9CFE6;
	max-width: 56ch;
	margin-bottom: 2.25rem;
}

.wam-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .9rem;
	margin-bottom: 3rem;
}

.wam-hero__proof {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, .14);
}
.wam-hero__proof-item strong {
	display: block;
	font-family: var(--wam-font-display);
	font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
	font-weight: 400;
	line-height: 1;
	color: #fff;
	margin-bottom: .35rem;
}
.wam-hero__proof-item span {
	font-size: var(--wam-fs-xs);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #B5A8C4;
}

/* Hero verification card */
.wam-hero__card {
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--wam-r-lg);
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 24px 70px rgba(10, 0, 20, .45);
}
.wam-hero__card h2 {
	font-size: 1.35rem;
	color: #fff;
	margin-bottom: .5rem;
	letter-spacing: -0.01em;
}
.wam-hero__card p {
	font-size: var(--wam-fs-sm);
	color: #C3B7D1;
	margin-bottom: 1.5rem;
}
.wam-hero__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	margin-bottom: 1.25rem;
	background: linear-gradient(135deg, var(--wam-amber), #FFC845);
	border-radius: var(--wam-r);
	color: var(--wam-purple-900);
}
.wam-hero__card-icon svg { width: 26px; height: 26px; }

/* =========================================================================
   7. CARDS
   ========================================================================= */

.wam-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
	background: var(--wam-surface);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r-lg);
	transition: transform .28s var(--wam-ease), box-shadow .28s var(--wam-ease), border-color .28s var(--wam-ease);
}
.wam-card:hover {
	transform: translateY(-5px);
	border-color: var(--wam-purple-200);
	box-shadow: var(--wam-shadow-lg);
}

.wam-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	margin-bottom: 1.4rem;
	background: var(--wam-purple-050);
	border: 1px solid var(--wam-purple-100);
	border-radius: var(--wam-r);
	color: var(--wam-purple);
	transition: background-color .28s var(--wam-ease), color .28s var(--wam-ease), transform .28s var(--wam-ease);
}
.wam-card__icon svg { width: 26px; height: 26px; }
.wam-card:hover .wam-card__icon {
	background: var(--wam-purple);
	border-color: var(--wam-purple);
	color: #fff;
	transform: scale(1.06) rotate(-4deg);
}

.wam-card__title { font-size: var(--wam-fs-h3); margin-bottom: .65rem; }
.wam-card__text { font-size: var(--wam-fs-sm); color: var(--wam-muted); margin: 0; }

/* Course cards */
.wam-course {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wam-surface);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r-lg);
	transition: transform .3s var(--wam-ease), box-shadow .3s var(--wam-ease), border-color .3s var(--wam-ease);
}
.wam-course:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: var(--wam-shadow-lg);
}
.wam-course__top {
	position: relative;
	padding: 1.75rem 1.75rem 1.5rem;
	background: linear-gradient(140deg, var(--wam-purple-800), var(--wam-purple-500));
	color: #fff;
	overflow: hidden;
}
.wam-course__top::after {
	content: "";
	position: absolute;
	right: -40px; top: -40px;
	width: 160px; height: 160px;
	background: radial-gradient(circle, rgba(240, 162, 2, .35), transparent 68%);
	border-radius: 50%;
	pointer-events: none;
}
.wam-course__code {
	display: inline-block;
	padding: .3rem .7rem;
	margin-bottom: 1rem;
	background: rgba(255, 255, 255, .16);
	border-radius: var(--wam-r-pill);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	position: relative;
	z-index: 1;
}
.wam-course__title {
	position: relative;
	z-index: 1;
	font-family: var(--wam-font-display);
	font-size: 1.9rem;
	font-weight: 400;
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
	margin: 0;
}
.wam-course__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.75rem 1.75rem; }
.wam-course__desc { font-size: var(--wam-fs-sm); color: var(--wam-muted); margin-bottom: 1.25rem; }
.wam-course__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px dashed var(--wam-line);
}
.wam-course__tag {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .35rem .7rem;
	background: var(--wam-surface-3);
	border-radius: var(--wam-r-pill);
	font-size: var(--wam-fs-xs);
	font-weight: 600;
	color: var(--wam-purple-700);
}
.wam-course__tag svg { width: 14px; height: 14px; }

/* Stat tiles */
.wam-stat {
	padding: clamp(1.5rem, 1.1rem + 1vw, 2rem);
	background: var(--wam-surface);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r-lg);
	text-align: center;
	transition: border-color .28s var(--wam-ease), box-shadow .28s var(--wam-ease), transform .28s var(--wam-ease);
}
.wam-stat:hover { transform: translateY(-4px); border-color: var(--wam-purple-200); box-shadow: var(--wam-shadow); }
.wam-stat__value {
	display: block;
	font-size: clamp(2.5rem, 2rem + 2.2vw, 3.5rem);
	color: var(--wam-purple);
	margin-bottom: .35rem;
}
.wam-stat__value sup { font-size: .5em; color: var(--wam-amber); top: -.5em; }
.wam-stat__label {
	font-size: var(--wam-fs-xs);
	font-weight: 650;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wam-muted);
}

/* Feature list with checkmarks */
.wam-checklist { list-style: none; margin: 0; padding: 0; }
.wam-checklist li {
	position: relative;
	padding-left: 2.25rem;
	margin-bottom: 1rem;
	font-size: var(--wam-fs-sm);
}
.wam-checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: .1em;
	width: 22px; height: 22px;
	background: var(--wam-green-bg);
	border-radius: 50%;
}
.wam-checklist li::after {
	content: "";
	position: absolute;
	left: 7px; top: .45em;
	width: 5px; height: 9px;
	border: solid var(--wam-green);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.wam-checklist strong { display: block; color: var(--wam-ink); margin-bottom: .15rem; }

/* Numbered process steps */
.wam-steps { counter-reset: wam-step; display: grid; gap: 1.5rem; }
.wam-steps--2col { grid-template-columns: 1fr; }
@media (min-width: 860px) {
	.wam-steps--2col { grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, .8rem + 1.6vw, 2rem); }
}
.wam-step {
	position: relative;
	display: flex;
	gap: 1.25rem;
	padding: 1.5rem;
	background: var(--wam-surface);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r);
	transition: border-color .25s var(--wam-ease), box-shadow .25s var(--wam-ease);
}
.wam-step:hover { border-color: var(--wam-purple-200); box-shadow: var(--wam-shadow-sm); }
.wam-step::before {
	counter-increment: wam-step;
	content: counter(wam-step, decimal-leading-zero);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	background: var(--wam-purple-050);
	border: 1px solid var(--wam-purple-100);
	border-radius: var(--wam-r-sm);
	font-family: var(--wam-font-display);
	font-size: 1.35rem;
	color: var(--wam-purple);
}
.wam-step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.wam-step p { font-size: var(--wam-fs-sm); color: var(--wam-muted); margin: 0; }

/* =========================================================================
   8. CTA BANNER
   ========================================================================= */

.wam-cta {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
	background: linear-gradient(135deg, var(--wam-purple-800), var(--wam-purple-500) 70%, var(--wam-purple-400));
	border-radius: var(--wam-r-lg);
	color: #fff;
	text-align: center;
}
.wam-cta::before {
	content: "";
	position: absolute;
	top: -60%; right: -10%;
	width: 460px; height: 460px;
	background: radial-gradient(circle, rgba(240, 162, 2, .3), transparent 65%);
	border-radius: 50%;
	pointer-events: none;
}
.wam-cta > * { position: relative; z-index: 1; }
.wam-cta h2 {
	font-family: var(--wam-font-display);
	font-weight: 400;
	font-size: var(--wam-fs-h2);
	text-transform: uppercase;
	color: #fff;
	margin-bottom: .85rem;
	line-height: .95;
}
.wam-cta p {
	font-size: var(--wam-fs-lead);
	color: #DDD3E8;
	max-width: 60ch;
	margin: 0 auto 2rem;
}
.wam-cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* =========================================================================
   9. FOOTER
   ========================================================================= */

.wam-footer {
	background: var(--wam-ink);
	color: #A79FB4;
	padding-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
	font-size: var(--wam-fs-sm);
}
.wam-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
	padding-bottom: 3rem;
}
@media (max-width: 900px) { .wam-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .wam-footer__grid { grid-template-columns: 1fr; } }

.wam-footer__brand img { max-height: 62px; width: auto; margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: .95; }
.wam-footer__brand p { color: #918AA0; max-width: 38ch; }

.wam-footer h3 {
	font-size: var(--wam-fs-xs);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1.25rem;
}
.wam-footer ul { list-style: none; margin: 0; padding: 0; }
.wam-footer li { margin-bottom: .7rem; }
.wam-footer a { color: #A79FB4; text-decoration: none; transition: color .18s var(--wam-ease); }
.wam-footer a:hover { color: #fff; }

.wam-footer__contact li {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}
.wam-footer__contact svg {
	width: 18px; height: 18px;
	flex-shrink: 0;
	margin-top: .15rem;
	color: var(--wam-purple-400);
}

.wam-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, .09);
	font-size: var(--wam-fs-xs);
	color: #7C7489;
}
.wam-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.wam-footer__bottom li { margin: 0; }

/* =========================================================================
   10. PAGE HEADER (interior pages)
   ========================================================================= */

.wam-pagehead {
	position: relative;
	overflow: hidden;
	padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
	background:
		radial-gradient(ellipse 60% 100% at 12% 0%, rgba(138, 62, 203, .5), transparent 62%),
		linear-gradient(150deg, var(--wam-purple-900), var(--wam-purple-700));
	color: #fff;
	text-align: center;
}
.wam-pagehead::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 62px 62px;
	mask-image: radial-gradient(ellipse 60% 100% at 50% 30%, #000, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 30%, #000, transparent 75%);
	pointer-events: none;
}
.wam-pagehead > * { position: relative; z-index: 1; }
.wam-pagehead__title {
	font-family: var(--wam-font-display);
	font-weight: 400;
	font-size: var(--wam-fs-h1);
	text-transform: uppercase;
	color: #fff;
	line-height: .95;
	margin-bottom: 1rem;
	text-wrap: balance;
}
.wam-pagehead__lead {
	font-size: var(--wam-fs-lead);
	color: #CFC3DD;
	max-width: 62ch;
	margin: 0 auto;
}

.wam-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin-bottom: 1.25rem;
	font-size: var(--wam-fs-xs);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #B5A8C4;
}
.wam-breadcrumb a { color: var(--wam-purple-200); text-decoration: none; }
.wam-breadcrumb a:hover { color: #fff; }
.wam-breadcrumb span[aria-hidden] { opacity: .5; }

/* =========================================================================
   11. CONTENT / EDITOR STYLES
   ========================================================================= */

.wam-prose { max-width: var(--wam-max-text); font-size: 1.05rem; }
.wam-prose > *:first-child { margin-top: 0; }
.wam-prose h2 { font-size: var(--wam-fs-h3); margin-top: 2.5rem; }
.wam-prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.wam-prose img, .wam-prose figure { border-radius: var(--wam-r); margin-block: 2rem; }
.wam-prose figcaption { font-size: var(--wam-fs-xs); color: var(--wam-muted); text-align: center; margin-top: .6rem; }
.wam-prose ul li::marker { color: var(--wam-purple); }

.alignleft { float: left; margin: .5rem 2rem 1.5rem 0; }
.alignright { float: right; margin: .5rem 0 1.5rem 2rem; }
.aligncenter { margin-inline: auto; }
.alignwide { max-width: min(100%, 1100px); margin-inline: auto; }
.alignfull { max-width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }

/* Post cards */
.wam-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wam-surface);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r-lg);
	transition: transform .28s var(--wam-ease), box-shadow .28s var(--wam-ease), border-color .28s var(--wam-ease);
}
.wam-post-card:hover { transform: translateY(-5px); border-color: var(--wam-purple-200); box-shadow: var(--wam-shadow-lg); }
.wam-post-card__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--wam-surface-3); }
.wam-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--wam-ease); }
.wam-post-card:hover .wam-post-card__thumb img { transform: scale(1.05); }
.wam-post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.wam-post-card__meta { font-size: var(--wam-fs-xs); color: var(--wam-muted); margin-bottom: .6rem; letter-spacing: .04em; text-transform: uppercase; }
.wam-post-card__title { font-size: 1.2rem; margin-bottom: .6rem; line-height: 1.3; }
.wam-post-card__title a { color: var(--wam-ink); text-decoration: none; }
.wam-post-card__title a:hover { color: var(--wam-purple); }
.wam-post-card__excerpt { font-size: var(--wam-fs-sm); color: var(--wam-muted); margin-bottom: 1.25rem; }
.wam-post-card__more { margin-top: auto; font-size: var(--wam-fs-sm); font-weight: 650; color: var(--wam-purple); text-decoration: none; }

/* Pagination */
.wam-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3.5rem; flex-wrap: wrap; }
.wam-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px; height: 44px;
	padding: 0 .85rem;
	background: var(--wam-surface);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r-sm);
	color: var(--wam-ink);
	font-size: var(--wam-fs-sm);
	font-weight: 600;
	text-decoration: none;
	transition: all .18s var(--wam-ease);
}
.wam-pagination .page-numbers:hover { border-color: var(--wam-purple); color: var(--wam-purple); }
.wam-pagination .page-numbers.current { background: var(--wam-purple); border-color: var(--wam-purple); color: #fff; }

/* =========================================================================
   12. CONTACT
   ========================================================================= */

.wam-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: clamp(2rem, 1.2rem + 3vw, 4rem);
	align-items: start;
}
@media (max-width: 900px) { .wam-contact-grid { grid-template-columns: 1fr; } }

.wam-contact-item {
	display: flex;
	gap: 1.1rem;
	padding: 1.4rem;
	background: var(--wam-surface);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r);
	margin-bottom: 1rem;
	transition: border-color .25s var(--wam-ease), box-shadow .25s var(--wam-ease), transform .25s var(--wam-ease);
}
.wam-contact-item:hover { transform: translateX(4px); border-color: var(--wam-purple-200); box-shadow: var(--wam-shadow-sm); }
.wam-contact-item__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	background: var(--wam-purple-050);
	border-radius: var(--wam-r-sm);
	color: var(--wam-purple);
}
.wam-contact-item__icon svg { width: 21px; height: 21px; }
.wam-contact-item h3 { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wam-muted); margin-bottom: .3rem; font-weight: 700; }
.wam-contact-item p { margin: 0; color: var(--wam-ink); font-weight: 550; }
.wam-contact-item a { color: var(--wam-ink); text-decoration: none; }
.wam-contact-item a:hover { color: var(--wam-purple); }

/* Forms */
.wam-form {
	padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
	background: var(--wam-surface);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r-lg);
	box-shadow: var(--wam-shadow);
}
.wam-form__row { margin-bottom: 1.25rem; }
.wam-form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .wam-form__row--split { grid-template-columns: 1fr; } }

.wam-form label,
.wam-label {
	display: block;
	margin-bottom: .45rem;
	font-size: var(--wam-fs-xs);
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--wam-ink);
}
.wam-form label .req { color: var(--wam-red); }

.wam-input,
.wam-form input[type="text"],
.wam-form input[type="email"],
.wam-form input[type="tel"],
.wam-form input[type="url"],
.wam-form input[type="search"],
.wam-form select,
.wam-form textarea {
	width: 100%;
	padding: .85rem 1.05rem;
	font-family: inherit;
	font-size: var(--wam-fs-body);
	color: var(--wam-ink);
	background: var(--wam-surface-2);
	border: 1.5px solid var(--wam-line);
	border-radius: var(--wam-r-sm);
	transition: border-color .18s var(--wam-ease), box-shadow .18s var(--wam-ease), background-color .18s var(--wam-ease);
	appearance: none;
}
.wam-input:focus,
.wam-form input:focus,
.wam-form select:focus,
.wam-form textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--wam-purple);
	box-shadow: 0 0 0 4px var(--wam-purple-100);
}
.wam-form textarea { min-height: 150px; resize: vertical; }
.wam-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23756E80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.05rem center;
	padding-right: 2.75rem;
}
.wam-form__hint { display: block; margin-top: .4rem; font-size: var(--wam-fs-xs); color: var(--wam-muted); }

.wam-notice {
	display: flex;
	gap: .75rem;
	padding: 1rem 1.25rem;
	border-radius: var(--wam-r-sm);
	font-size: var(--wam-fs-sm);
	margin-bottom: 1.5rem;
}
.wam-notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; }
.wam-notice--success { background: var(--wam-green-bg); color: var(--wam-green); border: 1px solid color-mix(in srgb, var(--wam-green) 25%, transparent); }
.wam-notice--error { background: var(--wam-red-bg); color: var(--wam-red); border: 1px solid color-mix(in srgb, var(--wam-red) 25%, transparent); }

/* =========================================================================
   13. ATTENDEE VERIFICATION (styles the event-attendee-management plugin)
   ========================================================================= */

.wam-verify-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
	align-items: start;
}
@media (max-width: 940px) { .wam-verify-layout { grid-template-columns: 1fr; } }

.wam-verify-aside {
	position: sticky;
	top: calc(var(--wam-header-h) + 24px);
	padding: 1.75rem;
	background: var(--wam-purple-050);
	border: 1px solid var(--wam-purple-100);
	border-radius: var(--wam-r-lg);
}
@media (max-width: 940px) { .wam-verify-aside { position: static; } }
.wam-verify-aside h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.wam-verify-aside ol { padding-left: 1.15rem; margin: 0 0 1.5rem; font-size: var(--wam-fs-sm); color: var(--wam-body); }
.wam-verify-aside li::marker { color: var(--wam-purple); font-weight: 700; }
.wam-verify-courses { display: flex; flex-wrap: wrap; gap: .45rem; }
.wam-verify-courses button,
.wam-verify-courses .wam-chip {
	padding: .4rem .8rem;
	background: #fff;
	border: 1px solid var(--wam-purple-100);
	border-radius: var(--wam-r-pill);
	font-family: inherit;
	font-size: var(--wam-fs-xs);
	font-weight: 600;
	color: var(--wam-purple-700);
	cursor: pointer;
	transition: all .18s var(--wam-ease);
}
.wam-verify-courses button:hover { background: var(--wam-purple); border-color: var(--wam-purple); color: #fff; }

/* --- Plugin markup overrides (.eams-*) --- */
.eams-verification-container {
	padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
	background: var(--wam-surface);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-r-lg);
	box-shadow: var(--wam-shadow);
	max-width: none;
	margin: 0;
}
.eams-verification-container > h2 {
	font-family: var(--wam-font-display);
	font-weight: 400;
	font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.4rem);
	text-transform: uppercase;
	line-height: 1;
	margin-bottom: .6rem;
	color: var(--wam-ink);
}
.eams-verification-container > p { color: var(--wam-muted); font-size: var(--wam-fs-sm); margin-bottom: 1.75rem; }

.eams-form-row { margin-bottom: 1.25rem; }
.eams-form-row label {
	display: block;
	margin-bottom: .45rem;
	font-size: var(--wam-fs-xs);
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--wam-ink);
}
.eams-input,
#eams-attendee-id,
#eams-course {
	width: 100%;
	padding: .9rem 1.05rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--wam-ink);
	background: var(--wam-surface-2);
	border: 1.5px solid var(--wam-line);
	border-radius: var(--wam-r-sm);
	transition: border-color .18s var(--wam-ease), box-shadow .18s var(--wam-ease), background-color .18s var(--wam-ease);
}
.eams-input:focus, #eams-attendee-id:focus, #eams-course:focus {
	outline: none;
	background: #fff;
	border-color: var(--wam-purple);
	box-shadow: 0 0 0 4px var(--wam-purple-100);
}
.eams-form-caption { display: block; margin-top: .4rem; font-size: var(--wam-fs-xs); color: var(--wam-muted); }

.eams-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	width: 100%;
	padding: 1.05rem 2rem;
	background: var(--wam-purple);
	color: #fff;
	border: 0;
	border-radius: var(--wam-r-pill);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--wam-shadow-purple);
	transition: transform .2s var(--wam-ease), background-color .2s var(--wam-ease), box-shadow .2s var(--wam-ease);
}
.eams-button:hover { background: var(--wam-purple-500); transform: translateY(-2px); box-shadow: 0 14px 38px rgba(85, 3, 140, .3); }
.eams-button:active { transform: translateY(0); }

/* Result states */
.eams-verification-result {
	display: flex;
	gap: 1.25rem;
	padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
	border-radius: var(--wam-r);
	margin-bottom: 1.5rem;
	animation: wam-pop .45s var(--wam-ease) both;
}
.eams-verification-success { background: var(--wam-green-bg); border: 1px solid color-mix(in srgb, var(--wam-green) 28%, transparent); }
.eams-verification-error { background: var(--wam-red-bg); border: 1px solid color-mix(in srgb, var(--wam-red) 28%, transparent); }

.eams-result-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	font-size: 26px;
}
.eams-verification-success .eams-result-icon { background: var(--wam-green); color: #fff; }
.eams-verification-error .eams-result-icon { background: var(--wam-red); color: #fff; }
.eams-result-icon .dashicons { width: 28px; height: 28px; font-size: 28px; line-height: 1; }
/* Fallback glyph when dashicons are not loaded on the front end */
.eams-result-icon .dashicons::before { font-family: dashicons, sans-serif; }
.eams-verification-success .eams-result-icon .dashicons-yes-alt:not([class*="dashicons-before"])::after,
.eams-verification-error .eams-result-icon .dashicons-no::after { content: ""; }

.eams-result-details h3 { font-size: 1.3rem; margin-bottom: .85rem; }
.eams-verification-success .eams-result-details h3 { color: var(--wam-green); }
.eams-verification-error .eams-result-details h3 { color: var(--wam-red); }
.eams-result-details > p { color: var(--wam-body); font-size: var(--wam-fs-sm); }

.eams-attendee-info { display: grid; gap: .1rem; }
.eams-attendee-info p {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: .7rem 0;
	border-bottom: 1px dashed color-mix(in srgb, var(--wam-green) 22%, transparent);
	font-size: var(--wam-fs-sm);
	color: var(--wam-ink);
}
.eams-attendee-info p:last-child { border-bottom: 0; }
.eams-attendee-info strong {
	min-width: 130px;
	color: var(--wam-muted);
	font-weight: 600;
	font-size: var(--wam-fs-xs);
	letter-spacing: .06em;
	text-transform: uppercase;
	align-self: center;
}
/* On narrow screens stack label above value, both flush left, instead of
   letting the plugin's flex row wrap into a ragged centre. */
@media (max-width: 620px) {
	.eams-verification-result { flex-direction: column; }
	.eams-attendee-info p { display: block; text-align: left; }
	.eams-attendee-info strong { display: block; min-width: 0; margin-bottom: .15rem; }
}

.eams-expired-notice {
	display: block !important;
	margin-top: 1rem !important;
	padding: .85rem 1.1rem !important;
	background: var(--wam-red-bg) !important;
	border: 1px solid color-mix(in srgb, var(--wam-red) 30%, transparent) !important;
	border-bottom: 1px solid color-mix(in srgb, var(--wam-red) 30%, transparent) !important;
	border-radius: var(--wam-r-sm);
	color: var(--wam-red) !important;
	font-weight: 650;
}

/* Rate-limit notice */
.wam-throttle {
	display: flex;
	gap: 1.1rem;
	padding: 1.5rem;
	background: var(--wam-amber-100);
	border: 1px solid color-mix(in srgb, var(--wam-amber) 40%, transparent);
	border-radius: var(--wam-r);
}
.wam-throttle__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	background: var(--wam-amber);
	border-radius: 50%;
	color: var(--wam-purple-900);
}
.wam-throttle__icon svg { width: 22px; height: 22px; }
.wam-throttle h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--wam-amber-600); }
.wam-throttle p { font-size: var(--wam-fs-sm); color: var(--wam-body); margin-bottom: .75rem; }
.wam-throttle p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
	.wam-throttle { flex-direction: column; gap: .85rem; padding: 1.25rem; }
}

/* Footnote appended after a verified credential */
.wam-verify-note {
	display: flex;
	gap: 1.1rem;
	padding: 1.35rem 1.5rem;
	margin-bottom: 1.5rem;
	background: var(--wam-purple-050);
	border: 1px solid var(--wam-purple-100);
	border-left: 3px solid var(--wam-purple);
	border-radius: var(--wam-r);
}
.wam-verify-note__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	background: #fff;
	border: 1px solid var(--wam-purple-100);
	border-radius: 50%;
	color: var(--wam-purple);
}
.wam-verify-note__icon svg { width: 19px; height: 19px; }
.wam-verify-note__body { flex: 1; min-width: 0; }
.wam-verify-note h4 {
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wam-purple-700);
	margin: 0 0 .45rem;
}
.wam-verify-note p {
	font-size: var(--wam-fs-sm);
	color: var(--wam-body);
	margin: 0 0 1rem;
}
/* The button gets its own row; the direct contacts sit together on the next.
   Keeping them on separate rows by design avoids the ragged wrap you get from
   letting three items of very different widths flex-wrap. */
.wam-verify-note__actions { margin: 0; }
.wam-verify-note__actions .wam-btn { padding: .7rem 1.35rem; font-size: var(--wam-fs-xs); }

.wam-verify-note__direct-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .3rem .7rem;
	margin: 1rem 0 0 !important;
	padding-top: .9rem;
	border-top: 1px solid var(--wam-purple-100);
	font-size: var(--wam-fs-sm);
}
.wam-verify-note__direct-label {
	font-size: var(--wam-fs-xs);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wam-muted);
	margin-right: .15rem;
}
.wam-verify-note__direct {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-weight: 600;
	color: var(--wam-purple-700);
	text-decoration: none;
	white-space: nowrap;
}
.wam-verify-note__direct svg { width: 15px; height: 15px; opacity: .7; flex-shrink: 0; }
.wam-verify-note__direct:hover { color: var(--wam-purple); text-decoration: underline; }
.wam-verify-note__sep { color: var(--wam-purple-200); }

@media (max-width: 620px) {
	.wam-verify-note { flex-direction: column; gap: .85rem; padding: 1.25rem; }
	.wam-verify-note__actions .wam-btn { width: 100%; }
	/* Stack the contacts cleanly rather than letting them wrap mid-row. */
	.wam-verify-note__direct-row { flex-direction: column; align-items: flex-start; gap: .6rem; }
	.wam-verify-note__direct-label { margin-bottom: .1rem; }
	.wam-verify-note__sep { display: none; }
}

.eams-back-link { margin: 0; }
.eams-back-link a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: var(--wam-fs-sm);
	font-weight: 650;
	color: var(--wam-purple);
	text-decoration: none;
}
.eams-back-link a:hover { gap: .75rem; }

@keyframes wam-pop {
	from { opacity: 0; transform: translateY(12px) scale(.985); }
	to { opacity: 1; transform: none; }
}

/* =========================================================================
   14. SCROLL REVEAL + MOTION
   ========================================================================= */

/* Progressive enhancement: content is visible by default and only starts
   hidden once JS has confirmed it can reveal it again. Without this, a failed
   or blocked script would leave every section blank. */
.wam-js .wam-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s var(--wam-ease), transform .7s var(--wam-ease);
}
.wam-js .wam-reveal.is-visible { opacity: 1; transform: none; }
.wam-reveal[data-delay="1"] { transition-delay: .08s; }
.wam-reveal[data-delay="2"] { transition-delay: .16s; }
.wam-reveal[data-delay="3"] { transition-delay: .24s; }
.wam-reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.wam-js .wam-reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   15. UTILITIES + ADMIN BAR
   ========================================================================= */

/* Long unbreakable strings (emails, URLs, course codes) must never push a
   container wider than the viewport on small screens. */
.wam-contact-item p,
.wam-contact-item a,
.wam-footer__contact li,
.wam-footer__contact a,
.eams-attendee-info p,
.wam-verify-note__direct,
.wam-prose p,
.wam-post-card__title,
.wam-course__title,
.wam-hero__title,
.wam-pagehead__title,
.wam-section__title {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Nowrap is fine while there is room; below that, let it wrap rather than
   overflow the card. */
@media (max-width: 420px) {
	.wam-verify-note__direct { white-space: normal; }
}

.wam-text-center { text-align: center; }
.wam-mt-0 { margin-top: 0; }
.wam-mb-0 { margin-bottom: 0; }
.wam-mb-lg { margin-bottom: 2.5rem; }
.wam-flow > * + * { margin-top: 1.15rem; }

.admin-bar .wam-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wam-header { top: 46px; } }
.admin-bar { --wam-header-h: 84px; }
@media (max-width: 991px) {
	.admin-bar .wam-nav { inset: calc(var(--wam-header-h) + 32px) 0 0 0; }
}
@media (max-width: 782px) {
	.admin-bar .wam-nav { inset: calc(var(--wam-header-h) + 46px) 0 0 0; }
}

body.wam-nav-open { overflow: hidden; }

/* Print */
@media print {
	.wam-header, .wam-footer, .wam-cta, .wam-nav-toggle, .eams-back-link { display: none !important; }
	body { color: #000; }
	.eams-verification-container { border: 1px solid #999; box-shadow: none; }
}
