/* ==========================================================================
   TTI Learner Handbook — public download page (/learner-handbook/)
   Loaded only on is_page('learner-handbook') via mu-plugins/tti-learner-handbook-page.php.
   Pairs with tti-course-materials.css (shared .tti-materials-btn pill + brand tokens).
   droipbase renders a near-black body, so type is tuned light for AA contrast.
   ========================================================================== */

.tti-handbook {
	--ttim-maroon:      rgba(112, 0, 0, 1);
	--ttim-maroon-deep: rgba(80, 0, 0, 1);
	--ttim-yellow:      rgba(255, 226, 81, 1);
	--ttim-ring:        0 0 0 3px rgba(255, 226, 81, 0.65);
	box-sizing: border-box;
	/* Full-bleed, full-height section so the card centers in the viewport and
	   the footer sits below the fold instead of crowding a short page. */
	width: 100%;
	min-height: 100vh;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(40px, 8vh, 104px) clamp(16px, 5vw, 32px);
	background: linear-gradient(180deg, #797c82 0%, #6c6f75 55%, #62656b 100%);
	font-family: "Epilogue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #ececef;
	line-height: 1.65;
}

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

/* ----- Panel surface (the centered card) ----- */
.tti-handbook__panel {
	width: 100%;
	max-width: 760px;
	background: linear-gradient(160deg, #3a0a10 0%, #2a0008 55%, #1d0006 100%);
	border: 1px solid rgba(255, 226, 81, 0.22);
	border-radius: 22px;
	padding: clamp(28px, 5vw, 56px);
	box-shadow: 0 34px 80px -28px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* ----- Intro ----- */
.tti-handbook__intro { position: relative; }

.tti-handbook__title {
	margin: 0 0 14px;
	font-size: clamp(1.9rem, 5vw, 2.85rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.12;
	color: #ffffff;
}

.tti-handbook__title::after {
	content: "";
	display: block;
	width: 64px;
	height: 5px;
	margin-top: 16px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ttim-yellow), rgba(255, 165, 0, 1));
}

.tti-handbook__lead {
	margin: 0 0 26px;
	font-size: clamp(1.02rem, 2.4vw, 1.18rem);
	color: #e3e3e8;
	max-width: 62ch;
}

.tti-handbook__cta { margin: 0 0 12px; text-align: center; }

/* Hero-sized variant of the shared pill button */
.tti-handbook .tti-materials-btn.tti-handbook__btn {
	min-height: 54px;
	padding: 14px 28px;
	font-size: 1.04rem;
	font-weight: 700;
}

.tti-handbook__note {
	margin: 0;
	font-size: 0.85rem;
	color: #b7b7c0;
}

/* ----- About ----- */
.tti-handbook__about {
	margin-top: clamp(28px, 5vw, 44px);
	padding-top: clamp(24px, 4vw, 36px);
	border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.tti-handbook__subtitle {
	margin: 0 0 16px;
	font-size: clamp(1.2rem, 3vw, 1.5rem);
	font-weight: 700;
	color: #ffffff;
}

.tti-handbook__list {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.tti-handbook__list li {
	position: relative;
	padding-left: 32px;
	font-size: 1rem;
	color: #e3e3e8;
}

.tti-handbook__list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.55em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ttim-yellow);
	box-shadow: 0 0 0 3px rgba(255, 226, 81, 0.18);
}

.tti-handbook__closing {
	margin: 0;
	font-size: 0.98rem;
	color: #c9c9d2;
}

/* ----- Links inside body (none currently, but keep accessible) ----- */
.tti-handbook a:not(.tti-materials-btn) {
	color: var(--ttim-yellow);
	text-underline-offset: 3px;
}
.tti-handbook a:not(.tti-materials-btn):focus-visible {
	outline: none;
	box-shadow: var(--ttim-ring);
	border-radius: 4px;
}

@media (max-width: 480px) {
	.tti-handbook .tti-materials-btn.tti-handbook__btn { width: 100%; justify-content: center; }
}
