/* ============================================================
   XYTEX Donor Screening Process — donor-screening.css
   Mirrors the subscription-terms "feel" (subscription-payment.css):
   teal gradient hero → trust bar → gray page bg → stacked white
   rounded cards, teal accents, 800-weight uppercase buttons.
   Self-contained: carries its own token block so it renders even
   when the subscription stylesheet is not enqueued.
   Palette: LIGHT TEAL #63D0DF · DARK TEAL #00ACC8 · SLATE #55565A ·
   CHARCOAL #262729 · ICE GRAY #DBD9D6 · SMOKE #D2D0CD · NAVY #003B71
   ============================================================ */

.xytex-ds {
	--xytex-white:       #ffffff;
	--xytex-navy:        #003B71;
	--xytex-gold:        #FFB547;
	--xytex-teal:        #63D0DF;
	--xytex-teal-dark:   #00ACC8;
	--xytex-teal-hover:  color-mix(in srgb, #00ACC8 72%, #003B71 28%);
	--xytex-teal-light:  color-mix(in srgb, #63D0DF 28%, #ffffff);
	--xytex-teal-xlight: color-mix(in srgb, #63D0DF 14%, #ffffff);
	--xytex-slate:       #55565A;
	--xytex-slate-dark:  #262729;
	--xytex-gray-border: #DBD9D6;
	--xytex-gray-bg:     color-mix(in srgb, #D2D0CD 28%, #ffffff);
	--xytex-text:        #737374;
	--xytex-text-muted:  #737374;
	--xytex-radius:      8px;
	--xytex-radius-lg:   14px;
	--xytex-shadow:      0 2px 16px rgba(99, 208, 223, 0.12);
	--xytex-shadow-lg:   0 8px 40px rgba(99, 208, 223, 0.2);
	--xytex-transition:  all 0.22s cubic-bezier(0.4,0,0.2,1);
}

.xytex-ds,
.xytex-ds * {
	box-sizing: border-box;
}

/* ============================================================
   HERO  (teal gradient variant, matching subscription terms)
   ============================================================ */
.xytex-ds-hero {
	background: linear-gradient(135deg, var(--xytex-teal-dark) 0%, var(--xytex-teal) 100%);
	padding: 52px 0 46px;
	position: relative;
	overflow: hidden;
}

.xytex-ds-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 72% 50%, rgba(255,255,255,0.18) 0%, transparent 62%);
	pointer-events: none;
}

.xytex-ds-hero::after {
	content: '';
	position: absolute;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.24);
	top: -120px;
	left: -80px;
	pointer-events: none;
}

.xytex-ds-hero__inner {
	text-align: center;
	position: relative;
	z-index: 1;
}

.xytex-ds-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,0.18);
	color: #ffffff;
	border: 1px solid rgba(255,255,255,0.38);
	border-radius: 30px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 5px 18px;
	margin-bottom: 18px;
}

.xytex-ds-hero__title {
	font-size: clamp(28px, 4.5vw, 44px);
	font-weight: 800;
	color: var(--xytex-white);
	margin: 0 0 14px;
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.xytex-ds-hero__subtitle {
	font-size: 16px;
	color: rgba(255,255,255,0.85);
	margin: 0 auto;
	max-width: 720px;
	line-height: 1.65;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.xytex-ds-trust-bar {
	background: var(--xytex-white);
	border-bottom: 1px solid var(--xytex-gray-border);
	padding: 18px 0;
}

.xytex-ds-trust-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
}

.xytex-ds-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 28px;
	font-size: 13.5px;
	color: var(--xytex-text-muted);
}

.xytex-ds-trust-item svg {
	color: var(--xytex-teal);
	flex-shrink: 0;
}

.xytex-ds-trust-item strong {
	color: var(--xytex-text);
}

.xytex-ds-trust-divider {
	width: 1px;
	height: 28px;
	background: var(--xytex-gray-border);
	flex-shrink: 0;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.xytex-ds-page {
	background: var(--xytex-gray-bg);
	padding: 52px 0 72px;
}

/* ── Tab nav ─────────────────────────────────────────────── */
.xytex-ds-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 32px;
}

.xytex-ds-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--xytex-white);
	border: 1px solid var(--xytex-gray-border);
	border-radius: 30px;
	padding: 10px 22px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--xytex-slate);
	text-decoration: none;
	cursor: pointer;
	transition: var(--xytex-transition);
	font-family: inherit;
}

.xytex-ds-tab:hover {
	background: var(--xytex-teal);
	border-color: var(--xytex-teal);
	color: var(--xytex-white);
}

.xytex-ds-tab.is-active {
	background: var(--xytex-teal-dark);
	border-color: var(--xytex-teal-dark);
	color: var(--xytex-white);
}

.xytex-ds-tab:focus-visible {
	outline: 2px solid var(--xytex-teal);
	outline-offset: 2px;
}

.xytex-ds-tab svg { flex-shrink: 0; }

/* ── Tab panels ──────────────────────────────────────────── */
.xytex-ds-panel[hidden] { display: none; }

/* ============================================================
   SECTION CARD
   ============================================================ */
.xytex-ds-card {
	background: var(--xytex-white);
	border: 1px solid var(--xytex-gray-border);
	border-radius: var(--xytex-radius-lg);
	padding: 40px 44px;
	margin-bottom: 32px;
	scroll-margin-top: 90px;
}

.xytex-ds-card__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 8px;
}

.xytex-ds-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--xytex-teal-xlight);
	color: var(--xytex-teal);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.xytex-ds-card__eyebrow {
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--xytex-teal-dark);
	margin: 0 !important;
	padding: 25px 0 0 0;
}

.xytex-ds-card__title {
	font-size: clamp(19px, 2.6vw, 24px);
	font-weight: 800;
	line-height: 1.1;
	color: var(--xytex-text);
	margin: 0;
	letter-spacing: -0.01em;
}

.xytex-ds-card__intro {
	font-size: 14.5px;
	color: var(--xytex-text-muted);
	line-height: 1.7;
	margin: 18px 0 0;
}

.xytex-ds-card__intro strong { color: var(--xytex-text); }

.xytex-ds-card__intro + .xytex-ds-card__intro { margin-top: 12px; }

/* ============================================================
   FEATURE GRID  (Evaluation — the 3 FDA steps)
   ============================================================ */
.xytex-ds-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 28px;
}

.xytex-ds-feature {
	text-align: center;
	padding: 24px 18px;
	border: 1px solid var(--xytex-gray-border);
	border-radius: var(--xytex-radius);
	background: color-mix(in srgb, var(--xytex-gray-bg) 45%, var(--xytex-white));
}

.xytex-ds-feature__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--xytex-teal-xlight);
	color: var(--xytex-teal);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}

.xytex-ds-feature h4 {
	font-size: 14px;
	font-weight: 700;
	color: var(--xytex-text);
	margin: 0 0 8px;
}

.xytex-ds-feature p {
	font-size: 13px;
	color: var(--xytex-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* ============================================================
   NUMBERED STEP LIST  (Screening — the 5 steps)
   ============================================================ */
.xytex-ds .xytex-ds-steps {
	list-style: none;
	counter-reset: ds-steps;
	padding: 0;
	margin: 28px 0 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.xytex-ds .xytex-ds-steps > li {
	counter-increment: ds-steps;
	position: relative;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 20px 22px;
	border: 1px solid var(--xytex-gray-border);
	border-radius: var(--xytex-radius);
	background: color-mix(in srgb, var(--xytex-gray-bg) 45%, var(--xytex-white));
	transition: var(--xytex-transition);
}

.xytex-ds .xytex-ds-steps > li:hover {
	border-color: var(--xytex-teal);
	transform: translateY(-2px);
}

/* Reset the theme's global `ol li:before` (absolute counter) so the
   circle sits inline as a flex item instead of overlapping the text. */
.xytex-ds .xytex-ds-steps > li::before {
	content: counter(ds-steps);
	position: static;
	float: none;
	top: auto;
	left: auto;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--xytex-teal) 0%, var(--xytex-teal-dark) 100%);
	color: var(--xytex-white);
	font-size: 16px;
	font-weight: 800;
	font-family: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
}

.xytex-ds-step__body { padding-top: 1px; }

.xytex-ds-step__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--xytex-text);
	margin: 0 0 5px;
}

.xytex-ds-step__desc {
	font-size: 13.5px;
	color: var(--xytex-text-muted);
	line-height: 1.65;
	margin: 0;
}

/* ============================================================
   CHECK LIST  (Lab Testing / Genetic Testing)
   ============================================================ */
.xytex-ds .xytex-ds-checklist {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 28px;
}

.xytex-ds .xytex-ds-checklist--single { grid-template-columns: 1fr; }

/* `.xytex-ds` prefix outranks the theme's `.page-child ul li` rules
   (padding/left) that otherwise shift these bullets. */
.xytex-ds .xytex-ds-checklist > li {
	position: relative;
	padding: 0 0 0 30px;
	margin: 0;
	font-size: 13.5px;
	color: var(--xytex-text);
	line-height: 1.55;
}

.xytex-ds .xytex-ds-checklist > li::before {
	content: "";
	position: absolute;
	float: none;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--xytex-teal-xlight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300ACC8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
}

.xytex-ds .xytex-ds-checklist > li strong { color: var(--xytex-text); font-weight: 700; }

/* ============================================================
   SUBHEAD inside a card
   ============================================================ */
.xytex-ds-subhead {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--xytex-slate-dark);
	margin: 32px 0 4px;
}

.xytex-ds-subhead:first-of-type { margin-top: 28px; }

/* ============================================================
   CALLOUT  (CMV note, disclaimers, client requirement)
   ============================================================ */
.xytex-ds-callout {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 18px;
	border-radius: var(--xytex-radius);
	margin-top: 22px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--xytex-text);
}

.xytex-ds-callout svg { flex-shrink: 0; margin-top: 1px; }

.xytex-ds-callout strong { color: var(--xytex-text); font-weight: 700; }

.xytex-ds-callout--info {
	background: var(--xytex-teal-xlight);
	border: 1px solid rgba(99,208,223,0.35);
}
.xytex-ds-callout--info svg { color: var(--xytex-teal-dark); }

.xytex-ds-callout--note {
	background: color-mix(in srgb, var(--xytex-gray-bg) 60%, var(--xytex-white));
	border: 1px solid var(--xytex-gray-border);
}
.xytex-ds-callout--note svg { color: var(--xytex-slate); }

.xytex-ds-callout--warning {
	background: color-mix(in srgb, var(--xytex-gold) 16%, var(--xytex-white));
	border: 1px solid var(--xytex-gold);
}
.xytex-ds-callout--warning svg { color: var(--xytex-slate-dark); }

/* ============================================================
   RESOURCES ROW
   ============================================================ */
.xytex-ds-resources {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 24px;
}

.xytex-ds-resource {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--xytex-gray-border);
	border-radius: var(--xytex-radius);
	background: var(--xytex-white);
	text-decoration: none;
	transition: var(--xytex-transition);
}

.xytex-ds-resource:hover {
	border-color: var(--xytex-teal);
	transform: translateY(-2px);
	text-decoration: none;
}

.xytex-ds-resource__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--xytex-teal-xlight);
	color: var(--xytex-teal-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.xytex-ds-resource__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--xytex-teal-dark); margin: 0 0 2px; }
.xytex-ds-resource__title { font-size: 14px; font-weight: 700; color: var(--xytex-text); margin: 0; }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.xytex-ds-cta {
	background: linear-gradient(135deg, var(--xytex-slate-dark) 0%, var(--xytex-slate) 100%);
	border-radius: var(--xytex-radius-lg);
	padding: 44px 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.xytex-ds-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 72% 50%, rgba(99,208,223,0.22) 0%, transparent 62%);
	pointer-events: none;
}

.xytex-ds-cta__inner { position: relative; z-index: 1; }

.xytex-ds-cta h2 {
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 800;
	color: var(--xytex-white);
	margin: 0 0 10px;
}

.xytex-ds-cta p {
	font-size: 15px;
	color: rgba(255,255,255,0.75);
	max-width: 540px;
	margin: 0 auto 26px;
	line-height: 1.6;
}

.xytex-ds-cta__actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* ============================================================
   BUTTONS  (identical treatment to subscription .xytex-btn)
   ============================================================ */
.xytex-ds-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 34px;
	border-radius: var(--xytex-radius);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
	transition: var(--xytex-transition);
	border: 2px solid transparent;
}

.xytex-ds-btn--primary {
	background: var(--xytex-teal-dark);
	color: var(--xytex-white);
	border-color: var(--xytex-teal-dark);
}

.xytex-ds-btn--primary:hover {
	background: var(--xytex-teal-hover);
	border-color: var(--xytex-teal-hover);
	color: var(--xytex-white);
	transform: translateY(-1px);
	text-decoration: none;
}

.xytex-ds-btn--ghost {
	background: transparent;
	color: rgba(255,255,255,0.92);
	border-color: rgba(255,255,255,0.5);
}

.xytex-ds-btn--ghost:hover {
	background: rgba(255,255,255,0.12);
	color: var(--xytex-white);
	border-color: var(--xytex-white);
	text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
	.xytex-ds-feature-grid { grid-template-columns: 1fr; }
	.xytex-ds-resources    { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	.xytex-ds-hero { padding: 40px 0 34px; }
	.xytex-ds-card { padding: 28px 22px; }

	.xytex-ds-trust-bar__inner { flex-direction: column; gap: 4px; }
	.xytex-ds-trust-divider { width: 40px; height: 1px; }

	.xytex-ds-checklist { grid-template-columns: 1fr; }

	.xytex-ds-card__head { flex-direction: column; align-items: flex-start; gap: 12px; }

	.xytex-ds-cta__actions { flex-direction: column; }
	.xytex-ds-btn { width: 100%; justify-content: center; }
}
