/* ==========================================================================
   PrepSora — Exam Hub
   Shared layout for exam pillar pages (NCLEX-RN now; NMC/OET later).
   Loaded only on hub pages (conditional enqueue in functions.php).
   Depends on tokens + shared components in prepsora-design-system.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO + "at a glance" facts panel
   -------------------------------------------------------------------------- */
.ps-hub-hero {
	background: linear-gradient(180deg, var(--ps-white) 0%, var(--ps-offwhite) 100%);
	padding-block: var(--ps-space-9) var(--ps-space-8);
}
.ps-hub-hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: var(--ps-space-7);
	align-items: center;
}
.ps-hub-hero h1 { margin-bottom: var(--ps-space-4); }
.ps-hub-hero__sub { font-size: var(--ps-text-lg); color: var(--ps-text); max-width: 54ch; margin-bottom: var(--ps-space-5); }

.ps-hub-facts {
	background: var(--ps-surface);
	border: 1px solid var(--ps-border);
	border-radius: var(--ps-radius-lg);
	box-shadow: var(--ps-shadow-lg);
	padding: var(--ps-space-6);
	max-width: 420px;
	margin-inline: auto;
}
.ps-hub-facts__title { font-size: var(--ps-text-xl); margin: 0 0 var(--ps-space-4); }
.ps-hub-facts__list { margin: 0; }
.ps-hub-fact {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--ps-space-4);
	padding: var(--ps-space-3) 0;
	border-bottom: 1px solid var(--ps-slate-100);
}
.ps-hub-fact:last-child { border-bottom: 0; }
.ps-hub-fact dt { color: var(--ps-text-muted); font-size: var(--ps-text-sm); margin: 0; }
.ps-hub-fact dd { margin: 0; font-weight: 600; color: var(--ps-navy-900); text-align: right; }
.ps-hub-facts__note { font-size: var(--ps-text-xs); color: var(--ps-text-muted); margin: var(--ps-space-4) 0 0; }

/* --------------------------------------------------------------------------
   PROSE
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   DOMAINS (Client Needs)
   -------------------------------------------------------------------------- */
.ps-hub-domains { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ps-space-5); }
.ps-hub-domain h3 { font-size: var(--ps-text-lg); margin: 0 0 var(--ps-space-2); }
.ps-hub-domain p { font-size: var(--ps-text-sm); color: var(--ps-text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   IEN JOURNEY
   -------------------------------------------------------------------------- */
.ps-hub-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ps-space-6); }
.ps-hub-step__num { font-family: var(--ps-font-display); font-weight: 800; font-size: var(--ps-text-2xl); color: var(--ps-teal-500); line-height: 1; }
.ps-hub-step h3 { font-size: var(--ps-text-lg); margin: var(--ps-space-3) 0 var(--ps-space-2); }
.ps-hub-step p { font-size: var(--ps-text-sm); color: var(--ps-text-muted); margin: 0; }
.ps-hub-note { font-size: var(--ps-text-sm); color: var(--ps-text-muted); margin: var(--ps-space-6) 0 0; max-width: 80ch; }

/* --------------------------------------------------------------------------
   WHERE NURSES LOSE MARKS (dark section)
   -------------------------------------------------------------------------- */
.ps-hub-help { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ps-space-6); }
.ps-hub-help__item h3 { color: #fff; font-size: var(--ps-text-lg); margin: 0 0 var(--ps-space-2); }
.ps-hub-help__item p { color: var(--ps-text-on-dark-muted); font-size: var(--ps-text-sm); margin: 0; }

/* --------------------------------------------------------------------------
   BUNDLE CHECKLIST
   -------------------------------------------------------------------------- */
.ps-hub-checklist {
	list-style: none;
	margin: 0 0 var(--ps-space-6);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--ps-space-3) var(--ps-space-6);
	max-width: 900px;
}
.ps-hub-checklist li {
	position: relative;
	padding-left: var(--ps-space-6);
	color: var(--ps-text);
}
.ps-hub-checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	width: 1.4rem;
	height: 1.4rem;
	color: var(--ps-green-600);
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
	.ps-hub-hero__inner { grid-template-columns: 1fr; gap: var(--ps-space-6); }
	.ps-hub-journey { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.ps-hub-hero h1 { font-size: var(--ps-text-4xl); }
	.ps-hub-domains,
	.ps-hub-journey,
	.ps-hub-help,
	.ps-hub-checklist { grid-template-columns: 1fr; }
}
