/* -----------------------------------------------------------------------------
 * Canonical global components.
 * There is ONE header, ONE footer, ONE drawer and ONE bottom navigation.
 * The homepage differs only by the .uz-header--home modifier.
 * -------------------------------------------------------------------------- */

/* ============================ Buttons ==================================== */
.uz-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--uz-space-xs);
	min-height: var(--uz-touch-target);
	padding: 0.625rem 1.5rem;
	border-radius: var(--uz-radius-pill);
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-sm);
	font-weight: 700;
	letter-spacing: var(--uz-tracking-caps);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--uz-duration) var(--uz-ease),
	            border-color var(--uz-duration) var(--uz-ease),
	            color var(--uz-duration) var(--uz-ease),
	            box-shadow var(--uz-duration) var(--uz-ease);
}

.uz-button--primary {
	background: var(--uz-electric-cyan);
	border: 1px solid var(--uz-electric-cyan);
	color: var(--uz-void-black);
}
.uz-button--primary:hover {
	color: var(--uz-void-black);
	box-shadow: 0 0 18px rgba(67, 216, 255, 0.35);
}

.uz-button--outline {
	background: transparent;
	border: 1px solid var(--uz-border-strong);
	color: var(--uz-electric-cyan);
}
.uz-button--outline:hover {
	background: rgba(67, 216, 255, 0.10);
	color: var(--uz-electric-cyan);
	border-color: var(--uz-electric-cyan);
}

.uz-button[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.uz-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--uz-touch-target);
	height: var(--uz-touch-target);
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: var(--uz-radius-pill);
	color: var(--uz-muted-text);
	cursor: pointer;
	transition: color var(--uz-duration) var(--uz-ease), background-color var(--uz-duration) var(--uz-ease);
}
.uz-icon-button:hover { color: var(--uz-electric-cyan); background: rgba(67, 216, 255, 0.08); }
.uz-icon { width: 1.5rem; height: 1.5rem; display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ============================ Header ===================================== */
.uz-header {
	position: sticky;
	top: 0;
	z-index: var(--uz-z-header);
	width: 100%;
	background: var(--uz-surface-translucent);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--uz-border);
}

.uz-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--uz-space-lg);
	width: 100%;
	max-width: var(--uz-content-max);
	margin-inline: auto;
	min-height: var(--uz-header-height);
	padding: var(--uz-space-sm) var(--uz-gutter);
}

.uz-header__brand {
	font-family: var(--uz-font-display);
	font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
	font-weight: 700;
	font-stretch: 88%;
	letter-spacing: var(--uz-tracking-tight);
	color: var(--uz-warm-white);
	text-decoration: none;
	white-space: nowrap;
	min-width: 0;
}
.uz-header__brand:hover { color: var(--uz-electric-cyan); }

.uz-header__actions { display: flex; align-items: center; gap: var(--uz-space-xs); min-width: 0; }

/*
 * Below the desktop breakpoint the Start Here call to action lives in the
 * drawer and the bottom navigation. Keeping it in the header as well pushed the
 * header row past the viewport and forced horizontal overflow at 360-390px.
 */
.uz-header__cta { display: none; }
@media (min-width: 900px) {
	.uz-header__cta { display: inline-flex; }
}

/* --- Primary navigation (desktop) --- */
.uz-primary-nav { display: none; }
@media (min-width: 900px) {
	.uz-primary-nav { display: block; margin-inline: auto; }
	.uz-header__menu-toggle { display: none; }
}

.uz-primary-nav__list {
	display: flex;
	align-items: center;
	gap: var(--uz-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.uz-primary-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--uz-touch-target);
	padding-inline: var(--uz-space-2xs);
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-sm);
	font-weight: 600;
	letter-spacing: var(--uz-tracking-caps);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--uz-muted-text);
	border-bottom: 2px solid transparent;
	transition: color var(--uz-duration) var(--uz-ease), border-color var(--uz-duration) var(--uz-ease);
}
.uz-primary-nav__link:hover { color: var(--uz-warm-white); }

/* Current destination is marked by colour AND an underline — never colour alone. */
.uz-primary-nav__link[aria-current] {
	color: var(--uz-electric-cyan);
	border-bottom-color: var(--uz-electric-cyan);
}

/* Destinations whose page is not created until a later phase. */
.uz-nav-pending {
	color: var(--uz-muted-text);
	opacity: 0.5;
	cursor: not-allowed;
}

/*
 * A pending destination never wears the filled primary treatment: muted text on
 * a solid cyan fill is unreadable, and a solid button implies an action that is
 * not available yet. Pending always renders as a quiet outline.
 */
.uz-button.uz-nav-pending {
	background: transparent;
	border: 1px dashed var(--uz-border-strong);
	color: var(--uz-muted-text);
	opacity: 0.7;
	box-shadow: none;
}

/* --- Homepage modifier: thin outlined, translucent, glowing pill ---------- */
.uz-header--home {
	position: sticky;
	top: var(--uz-space-lg);
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom: 0;
	padding-inline: var(--uz-gutter);
}
.uz-header--home .uz-header__inner {
	max-width: 1280px;
	border: 1px solid var(--uz-border);
	border-radius: var(--uz-radius-pill);
	background: var(--uz-surface-translucent-home);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	box-shadow: var(--uz-glow-cyan);
	padding-inline: clamp(1rem, 0.4rem + 1.6vw, 2rem);
}

/* ============================ Mobile drawer ============================== */
/*
 * The [hidden] attribute is authoritative for whether the drawer exists in the
 * layout, and only opacity is transitioned. Gating visibility on a transition
 * makes the dialog's contents unfocusable until the transition completes, which
 * strands keyboard focus outside the dialog whenever transitions are delayed or
 * throttled. Toggling [hidden] synchronously avoids that entirely.
 */
.uz-drawer {
	position: fixed;
	inset: 0;
	z-index: var(--uz-z-drawer);
	display: flex;
	flex-direction: column;
	background: var(--uz-void-black);
	opacity: 0;
	transition: opacity var(--uz-duration) var(--uz-ease);
}
.uz-drawer[hidden] { display: none; }
.uz-drawer[data-open="true"] { opacity: 1; }

.uz-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--uz-space-md);
	min-height: var(--uz-header-height);
	padding: var(--uz-space-sm) var(--uz-gutter);
	border-bottom: 1px solid var(--uz-border);
}

.uz-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: var(--uz-space-xl) var(--uz-gutter) var(--uz-space-3xl);
}

.uz-drawer__list { margin: 0; padding: 0; list-style: none; }
.uz-drawer__list li + li { border-top: 1px solid var(--uz-border); }

.uz-drawer__link {
	display: flex;
	align-items: center;
	min-height: 3.5rem;
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-xl);
	font-weight: 600;
	text-decoration: none;
	color: var(--uz-warm-white);
}
.uz-drawer__link[aria-current] { color: var(--uz-electric-cyan); }
.uz-drawer__cta { margin-top: var(--uz-space-xl); }

@media (min-width: 900px) {
	.uz-drawer { display: none; }
}

/* ============================ Bottom navigation ========================== */
.uz-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--uz-z-bottom-nav);
	display: flex;
	justify-content: space-around;
	align-items: stretch;
	height: var(--uz-bottom-nav-height);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: rgba(3, 7, 13, 0.92);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-top: 1px solid var(--uz-border);
}
@media (min-width: 768px) {
	.uz-bottom-nav { display: none; }
}

.uz-bottom-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	flex: 1 1 0;
	min-width: 64px;
	min-height: var(--uz-touch-target);
	text-decoration: none;
	color: var(--uz-muted-text);
	transition: color var(--uz-duration-fast) var(--uz-ease);
}
.uz-bottom-nav__item:hover { color: var(--uz-electric-cyan); }
.uz-bottom-nav__item[aria-current] { color: var(--uz-electric-cyan); }
.uz-bottom-nav__item[aria-current] .uz-bottom-nav__label { font-weight: 700; }
.uz-bottom-nav__label {
	font-family: var(--uz-font-heading);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
}

/* ============================ Footer ===================================== */
.uz-footer {
	flex-shrink: 0;
	background: var(--uz-midnight);
	border-top: 1px solid var(--uz-border);
}

.uz-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--uz-space-2xl);
	padding-block: var(--uz-space-3xl);
}
@media (min-width: 768px) {
	.uz-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.uz-footer__brand {
	font-family: var(--uz-font-display);
	font-size: var(--uz-text-xl);
	font-weight: 700;
	font-stretch: 88%;
	color: var(--uz-warm-white);
}
.uz-footer__tagline { color: var(--uz-muted-text); max-width: 34ch; }

.uz-footer__heading {
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-xs);
	font-weight: 700;
	letter-spacing: var(--uz-tracking-caps);
	text-transform: uppercase;
	color: var(--uz-warm-white);
	margin-bottom: var(--uz-space-md);
}

.uz-footer__list { margin: 0; padding: 0; list-style: none; }
.uz-footer__list li + li { margin-top: var(--uz-space-2xs); }
/*
 * inline-flex plus min-height carries these past the 24px floor in WCAG 2.2
 * SC 2.5.8. As bare inline links they measured 17-20px tall.
 */
.uz-footer__link {
	display: inline-flex;
	align-items: center;
	min-height: 1.75rem;
	color: var(--uz-muted-text);
	text-decoration: none;
	transition: color var(--uz-duration) var(--uz-ease);
}
.uz-footer__link:hover { color: var(--uz-warm-white); text-decoration: underline; }

.uz-footer__bar a { display: inline-flex; align-items: center; min-height: 1.75rem; }

.uz-footer__bar {
	display: flex;
	flex-direction: column;
	gap: var(--uz-space-md);
	align-items: flex-start;
	justify-content: space-between;
	padding-block: var(--uz-space-xl);
	border-top: 1px solid var(--uz-border);
	color: var(--uz-muted-text);
	font-size: var(--uz-text-sm);
}
@media (min-width: 768px) {
	.uz-footer__bar { flex-direction: row; align-items: center; }
}
.uz-footer__signature { font-family: var(--uz-font-heading); color: var(--uz-warm-white); }
.uz-footer__signature span { display: block; color: var(--uz-muted-text); font-size: var(--uz-text-xs); }

/* ============================ Search ===================================== */
.uz-search-panel {
	border-top: 1px solid var(--uz-border);
	background: rgba(7, 21, 37, 0.92);
	padding-block: var(--uz-space-md);
}
.uz-header--home .uz-search-panel {
	max-width: 1280px;
	margin: var(--uz-space-xs) auto 0;
	border: 1px solid var(--uz-border);
	border-radius: var(--uz-radius-lg);
}

.uz-search-form { display: flex; flex-wrap: wrap; gap: var(--uz-space-xs); align-items: stretch; }
.uz-search-form__submit { flex: 0 0 auto; }
.uz-search-form__field {
	flex: 1 1 12rem;
	min-width: 0;
	min-height: var(--uz-touch-target);
	padding: 0 var(--uz-space-md);
	background: var(--uz-void-black);
	/* A field's outline is the only thing that identifies it: 1.4.11 applies. */
	border: 1px solid var(--uz-border-control);
	border-radius: var(--uz-radius-pill);
	color: var(--uz-warm-white);
	font: inherit;
}
.uz-search-form__field::placeholder { color: var(--uz-muted-text); }
.uz-search-form__field:focus { border-color: var(--uz-electric-cyan); }

.uz-drawer__search { margin-top: var(--uz-space-xl); }

/* ======================= Section furniture =============================== */
/*
 * Shared by the homepage and every editorial template. Moved here in Phase 3
 * when Discover, the archives and search began using the same rhythm.
 */
.uz-section-head { max-width: 46rem; margin-inline: auto; text-align: center; margin-bottom: var(--uz-space-3xl); }

.uz-eyebrow {
	margin-bottom: var(--uz-space-sm);
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-xs);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--uz-muted-text);
}

.uz-section-title {
	font-size: calc(var(--uz-text-3xl) * 1.26);
	line-height: 1.05;
	letter-spacing: 0.035em;
	margin-bottom: var(--uz-space-md);
}

.uz-section-lede { color: var(--uz-muted-text); font-size: var(--uz-text-lg); margin-bottom: 0; }


/* ============================ Editorial card ============================= */
/*
 * ONE card component. The homepage, Discover, every archive, search results and
 * the related rail all render template-parts/card/article.php and differ only
 * by variant class. There is no second card implementation in this theme.
 */
.uz-card { height: 100%; }
.uz-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--uz-bg-card);
	border: 1px solid var(--uz-border);
	border-radius: var(--uz-radius-lg);
	color: inherit;
	text-decoration: none;
	transition: transform var(--uz-duration) var(--uz-ease),
	            border-color var(--uz-duration) var(--uz-ease),
	            box-shadow var(--uz-duration) var(--uz-ease);
}
.uz-card__link:hover {
	transform: translateY(-3px);
	border-color: rgba(67, 216, 255, 0.45);
	box-shadow: var(--uz-glow-cyan-strong);
	color: inherit;
}

/* --- Card media ---------------------------------------------------------- */
.uz-card__media { display: block; min-width: 0; }

.uz-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--uz-space-xs);
	padding: var(--uz-space-lg);
	min-width: 0;
}
.uz-card__title { margin: 0; font-size: var(--uz-text-lg); line-height: 1.25; }
.uz-card__excerpt { color: var(--uz-muted-text); font-size: var(--uz-text-sm); line-height: 1.6; }

.uz-card__meta {
	display: flex;
	align-items: center;
	gap: var(--uz-space-xs);
	margin-top: auto;
	padding-top: var(--uz-space-sm);
	color: var(--uz-muted-text);
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.uz-card__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }

.uz-card__flag {
	align-self: flex-start;
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-xs);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--uz-electric-cyan);
}

/* --- Card variants ------------------------------------------------------- */

/*
 * Feature: one large stacked card — artwork above, copy below.
 *
 * An earlier version put the image beside the copy. That arrangement cannot
 * work once images are contained rather than cropped: the copy column and the
 * artwork are different heights, and whichever is shorter leaves a dead band
 * inside the card. Stacking removes the problem for every image shape at once,
 * including the portrait posters, and gives the artwork the full card width at
 * its own proportions.
 */
.uz-card--feature .uz-card__media .uz-media {
	aspect-ratio: var(--uz-media-ratio, 16 / 10);
	/* A very wide banner must not collapse to a letterbox strip. */
	max-height: 34rem;
}
.uz-card--feature .uz-card__body { padding: var(--uz-space-xl); gap: var(--uz-space-sm); }

@media (min-width: 720px) {
	.uz-card--feature .uz-card__body { padding: var(--uz-space-2xl); }
	.uz-card--feature .uz-card__title { font-size: var(--uz-text-2xl); }
	.uz-card--feature .uz-card__excerpt { font-size: var(--uz-text-base); }
}

/* Compact: related rail and secondary columns. */
.uz-card--compact .uz-card__body { padding: var(--uz-space-md); }
.uz-card--compact .uz-card__title { font-size: var(--uz-text-base); }

/* List: a horizontal row with a small square thumbnail, used by search. */
.uz-card--list .uz-card__link { flex-direction: row; align-items: stretch; }
.uz-card--list .uz-card__media { flex: 0 0 6.5rem; }
.uz-card--list .uz-card__media .uz-media { height: 100%; aspect-ratio: 1 / 1; }
.uz-card--list .uz-card__body { flex: 1 1 auto; padding: var(--uz-space-md) var(--uz-space-lg); }
@media (min-width: 640px) {
	.uz-card--list .uz-card__media { flex: 0 0 10rem; }
}

/* ======================= Featured-image presentation ===================== *
 * See inc/media.php for why this exists. In short: most featured images have
 * the article title painted into the artwork, and they arrive in every shape
 * from 2:3 portrait to 1.91:1 banner. Cropping them slices words in half, so
 * nothing is cropped unless the crop is provably negligible.
 * ------------------------------------------------------------------------- */
.uz-media {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: var(--uz-midnight);
	isolation: isolate;
}

.uz-media__image {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	/* The default across the whole system: never clip a baked-in word. */
	object-fit: contain;
	object-position: center;
}

/*
 * The blurred backdrop is the SAME image URL as the foreground, so the browser
 * satisfies both paints from one download. Scaled past the frame so the blur
 * never reveals a soft edge, and dimmed so it reads as atmosphere rather than
 * as a second picture competing with the real one.
 */
.uz-media__backdrop {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.25);
	filter: blur(28px) saturate(0.8) brightness(0.42);
	pointer-events: none;
}

/*
 * fill — the image's own aspect ratio already matches the frame within
 * UZ_MEDIA_FILL_TOLERANCE, so cover trims about 2% off two edges. No backdrop
 * is rendered. This is the variant a dedicated title-free 16:10 thumbnail will
 * take, with no change to any template.
 */
.uz-media--fill .uz-media__image { object-fit: cover; }

/* portrait — a taller frame so a 2:3 poster is not squeezed into a wide strip. */
.uz-media--portrait { aspect-ratio: 4 / 5; }

/* Presentation for a post with no featured image. */
.uz-media--none {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--uz-media-accent) 26%, transparent) 0%, transparent 62%),
		linear-gradient(var(--uz-media-angle, 0deg), var(--uz-deep-surface) 0%, var(--uz-void-black) 100%);
}
.uz-media__glyph {
	position: absolute;
	width: 46%;
	aspect-ratio: 1;
	border: 1px solid color-mix(in srgb, var(--uz-media-accent) 45%, transparent);
	border-radius: 50%;
	box-shadow: 0 0 40px -12px var(--uz-media-accent);
}
.uz-media__label {
	position: relative;
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-xs);
	font-weight: 700;
	letter-spacing: var(--uz-tracking-caps);
	text-transform: uppercase;
	color: var(--uz-muted-text);
}

/* ============================= Card grids ================================ */
.uz-cardgrid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--uz-gutter);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) { .uz-cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .uz-cardgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Always three across on wide screens, never two-plus-orphan. */
@media (min-width: 640px) { .uz-cardgrid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ================================ Chips ================================== */
.uz-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--uz-space-xs);
	min-height: 2.25rem;
	padding: 0.35rem 0.9rem;
	background: var(--uz-bg-card);
	border: 1px solid var(--uz-border);
	border-radius: var(--uz-radius-pill);
	color: var(--uz-muted-text);
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--uz-duration) var(--uz-ease),
	            border-color var(--uz-duration) var(--uz-ease),
	            background-color var(--uz-duration) var(--uz-ease);
}
.uz-chip:hover { color: var(--uz-warm-white); border-color: var(--uz-border-strong); }

/* Current topic is marked by fill AND text weight, never colour alone. */
.uz-chip--current {
	background: rgba(67, 216, 255, 0.12);
	border-color: var(--uz-electric-cyan);
	color: var(--uz-electric-cyan);
	font-weight: 700;
}
.uz-chip--sm { min-height: 1.9rem; padding: 0.2rem 0.7rem; font-size: var(--uz-text-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.uz-chip__count { color: var(--uz-muted-text); font-size: var(--uz-text-xs); opacity: 0.75; }

.uz-topics__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--uz-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ========================= Pathway card component ======================== */
/*
 * Rendered by the homepage "Choose Your Path" section and by the
 * "Explore other pathways" rail on every pathway page. One component, one set
 * of rules; the accent is switched by a modifier class fed from the shared
 * configuration in inc/pathways.php.
 */

.uz-pathways__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--uz-gutter);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) { .uz-pathways__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .uz-pathways__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.uz-pathway {
	--uz-pathway-accent: var(--uz-electric-cyan);
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 24rem;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(11, 27, 42, 0.55) 0%, var(--uz-midnight) 70%);
	border: 1px solid var(--uz-border);
	border-radius: var(--uz-radius-lg);
	color: inherit;
	text-decoration: none;
	transition: transform var(--uz-duration) var(--uz-ease),
	            border-color var(--uz-duration) var(--uz-ease),
	            box-shadow var(--uz-duration) var(--uz-ease);
}

/*
 * Two accent tokens per pathway. --uz-pathway-accent paints fills, strokes,
 * glows and the motif; --uz-pathway-accent-text paints small accent TEXT and
 * is lifted for violet so it clears WCAG 2.2 AA on the card surface.
 */
.uz-pathway--cyan   { --uz-pathway-accent: var(--uz-electric-cyan); --uz-pathway-accent-text: var(--uz-electric-cyan); }
.uz-pathway--violet { --uz-pathway-accent: var(--uz-subtle-violet); --uz-pathway-accent-text: var(--uz-subtle-violet-text); }
.uz-pathway--amber  { --uz-pathway-accent: var(--uz-human-amber);   --uz-pathway-accent-text: var(--uz-human-amber); }
.uz-pathway--blue   { --uz-pathway-accent: var(--uz-orbit-blue);    --uz-pathway-accent-text: var(--uz-orbit-blue); }

a.uz-pathway:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--uz-pathway-accent) 55%, transparent);
	box-shadow: 0 0 44px color-mix(in srgb, var(--uz-pathway-accent) 16%, transparent);
}

.uz-pathway__visual {
	position: relative;
	display: block;
	height: 13.5rem;
	color: var(--uz-pathway-accent);
	background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--uz-pathway-accent) 20%, transparent), rgba(3, 7, 13, 0) 70%);
}
.uz-pathway__visual::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 55%;
	background: linear-gradient(180deg, rgba(7, 21, 37, 0) 0%, var(--uz-midnight) 92%);
}
.uz-pathway__motif { width: 100%; height: 100%; display: block; }

.uz-pathway__body { display: flex; flex-direction: column; gap: var(--uz-space-xs); padding: 0 var(--uz-space-lg) var(--uz-space-xl); margin-top: auto; }

.uz-pathway__number {
	font-family: var(--uz-font-heading);
	font-size: var(--uz-text-xs);
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--uz-pathway-accent-text, var(--uz-pathway-accent));
}
.uz-pathway__name { margin: 0; font-size: var(--uz-text-xl); }
.uz-pathway__summary { color: var(--uz-muted-text); font-size: var(--uz-text-sm); line-height: 1.55; }

/* ======================= The 5000 Practice component ===================== */
/*
 * Notice / Choose / Become. Rendered on the homepage and on all four pathway
 * pages from uz_practice_steps(), so both the markup and these rules are
 * shared rather than duplicated.
 */
.uz-practice { border-top: 1px solid var(--uz-border); }

.uz-practice__steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--uz-space-2xl) var(--uz-gutter);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: uz-step;
}
@media (min-width: 860px) { .uz-practice__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.uz-step {
	--uz-step-accent: var(--uz-electric-cyan);
	position: relative;
	padding: var(--uz-space-2xl) var(--uz-space-lg) var(--uz-space-lg);
	background: var(--uz-midnight);
	border: 1px solid var(--uz-border);
	border-radius: var(--uz-radius-lg);
	text-align: center;
}
.uz-step--cyan   { --uz-step-accent: var(--uz-electric-cyan); --uz-step-accent-text: var(--uz-electric-cyan); }
.uz-step--violet { --uz-step-accent: var(--uz-subtle-violet); --uz-step-accent-text: var(--uz-subtle-violet-text); }
.uz-step--amber  { --uz-step-accent: var(--uz-human-amber);   --uz-step-accent-text: var(--uz-human-amber); }

.uz-step__number {
	position: absolute;
	top: 0;
	left: 50%;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	transform: translate(-50%, -50%);
	background: var(--uz-void-black);
	border: 1px solid var(--uz-step-accent);
	border-radius: 50%;
	color: var(--uz-step-accent-text, var(--uz-step-accent));
	font-family: var(--uz-font-heading);
	font-weight: 700;
	font-size: var(--uz-text-sm);
}

.uz-step__orbit {
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	margin: var(--uz-space-sm) auto var(--uz-space-lg);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--uz-step-accent) 55%, transparent) 0 12%, rgba(3, 7, 13, 0) 13%);
	box-shadow:
		inset 0 0 0 1px color-mix(in srgb, var(--uz-step-accent) 34%, transparent),
		0 0 30px color-mix(in srgb, var(--uz-step-accent) 18%, transparent);
}
.uz-step__orbit::after {
	content: "";
	display: block;
	width: 68%;
	height: 68%;
	margin: 16%;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--uz-step-accent) 45%, transparent);
}

.uz-step__name { margin: 0 0 var(--uz-space-xs); font-size: var(--uz-text-lg); letter-spacing: 0.06em; text-transform: uppercase; }
.uz-step__body { margin: 0; color: var(--uz-muted-text); font-size: var(--uz-text-sm); line-height: 1.6; }

.uz-practice__closer { margin: var(--uz-space-3xl) 0 0; text-align: center; color: var(--uz-muted-text); font-size: var(--uz-text-lg); }
.uz-practice__accent { color: var(--uz-electric-cyan); }
