/* ====================================================================
   Practice page redesign (logged-out) — Slate & Coral palette.
   Layered on top of extensions/index_new/styles.css (tokens, container,
   nav, footer, btn) — ported from /design_handoff_practice/practice.css.

   Cohesive with the For Churches + new-homepage redesigns: same Newsreader
   serif, slate accents, coral CTA, generous whitespace. Focuses the eye on
   the verse + the "Start memorizing" button; modes / sign-up nudge / more
   verses dial way down.
   ==================================================================== */

.mv-root.pr-page { background: var(--bg); color: var(--text-1); min-height: 100%; }

/* Pastor banner styling now lives in the shared partial (extensions/pastor_banner/). */

/* ---- Nav: logged-out variant — quieter than the homepage's signed-in side ---- */
.mv-root .pr-nav-right { display: flex; align-items: center; gap: var(--sp-4); }
.mv-root .pr-nav-signin {
	font-size: 14px; font-weight: 500;
	color: var(--text-2);
	padding: 8px 4px;
	background: transparent; border: 0; cursor: pointer;
	text-decoration: none;
}
.mv-root .pr-nav-signin:hover { color: var(--text-1); }
.mv-root .pr-nav-signup {
	font-size: 13px; font-weight: 600;
	color: var(--brand-fg);
	background: var(--brand);
	padding: 9px 18px; border-radius: var(--radius-pill);
	border: 0; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	text-decoration: none;
}
.mv-root .pr-nav-signup:hover { filter: brightness(1.05); }

/* ---- Breadcrumb (subtle, above hero) ---- */
.mv-root .pr-bc {
	padding-top: var(--sp-10);
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: 13px;
	color: var(--text-3);
	flex-wrap: wrap;
}
.mv-root .pr-bc-link { color: var(--text-3); text-decoration: none; cursor: pointer; }
.mv-root .pr-bc-link:hover { color: var(--text-1); }
.mv-root .pr-bc-chev { color: var(--text-muted); opacity: .55; flex-shrink: 0; }
.mv-root .pr-bc-current { color: var(--text-1); font-weight: 500; }

/* ---- HERO: verse + CTA ---- */
.mv-root .pr-hero {
	padding-top: var(--sp-12);
	padding-bottom: var(--sp-16);
	text-align: center;
	max-width: 1080px;
	margin: 0 auto;
}
.mv-root .pr-hero-meta {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-4);
	margin-bottom: var(--sp-8);
}
.mv-root .pr-hero-ref-pill {
	display: inline-flex; align-items: center;
	gap: 8px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 6px 14px 6px 8px;
	font-size: 13px;
	color: var(--text-1);
	font-weight: 500;
	text-decoration: none;
}
.mv-root .pr-hero-ref-pill .ref-dot {
	width: 24px; height: 24px;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand);
	display: inline-flex; align-items: center; justify-content: center;
}
.mv-root .pr-hero-trans {
	font-size: 11px; font-weight: 700;
	letter-spacing: .1em;
	color: var(--text-3);
	display: inline-flex; align-items: center;
	gap: 4px;
	cursor: pointer;
	background: transparent; border: 0;
	text-transform: uppercase;
}
.mv-root .pr-hero-trans:hover { color: var(--text-1); }

/* THE VERSE — the dominant element */
.mv-root .pr-verse {
	font-family: var(--font-serif);
	font-size: 56px;
	line-height: 1.28;
	font-weight: 500;
	color: var(--text-1);
	letter-spacing: -0.018em;
	text-wrap: balance;
	margin: 0 auto;
	max-width: 980px;
	padding: 0 var(--sp-4);
}
.mv-root .pr-verse-num {
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: 500;
	color: var(--text-muted);
	vertical-align: top;
	position: relative;
	top: 0.85em;
	margin-right: 10px;
	letter-spacing: 0;
}
.mv-root .pr-verse em {
	font-style: italic;
	font-weight: 500;
	color: var(--brand);
}

/* CTA stack */
.mv-root .pr-cta-row {
	margin-top: var(--sp-12);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-4);
}
.mv-root .pr-cta {
	font-size: 17px; font-weight: 600;
	padding: 18px 36px;
	border-radius: var(--radius-pill);
	background: var(--brand);
	color: var(--brand-fg);
	border: 0; cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	box-shadow: 0 14px 32px -14px var(--brand), 0 2px 0 rgba(0,0,0,0.04);
	transition: transform .12s, filter .12s, box-shadow .12s;
	text-decoration: none;
	font-family: var(--font-sans);
}
.mv-root .pr-cta:hover {
	transform: translateY(-1px);
	filter: brightness(1.04);
	box-shadow: 0 18px 40px -16px var(--brand), 0 2px 0 rgba(0,0,0,0.04);
}
.mv-root .pr-cta-icon {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: rgba(255,255,255,0.22);
	display: inline-flex; align-items: center; justify-content: center;
}
.mv-root .pr-cta-sub {
	font-size: 13px;
	color: var(--text-3);
}
.mv-root .pr-cta-sub strong { color: var(--text-2); font-weight: 500; }

/* ---- Practice mode switcher ---- */
.mv-root .pr-modes {
	margin-top: var(--sp-16);
	padding-top: var(--sp-12);
	border-top: 1px solid var(--border);
	text-align: center;
}
.mv-root .pr-modes-label {
	font-size: 12px;
	color: var(--text-3);
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: var(--sp-5);
}
.mv-root .pr-modes-row {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-2);
	background: var(--surface-2);
	padding: 6px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border);
}
.mv-root .pr-mode {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-2);
	background: transparent;
	border: 0;
	padding: 9px 16px;
	border-radius: var(--radius-pill);
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	font-family: var(--font-sans);
}
.mv-root .pr-mode:hover { color: var(--text-1); }
.mv-root .pr-mode.active {
	background: var(--surface);
	color: var(--text-1);
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
}
.mv-root.theme-dark .pr-mode.active {
	background: var(--surface-elev);
	box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
}
.mv-root .pr-mode.locked {
	color: var(--text-3);
	opacity: .85;
}
.mv-root .pr-mode-lock {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--text-muted);
}

/* ---- Sign up nudge ---- */
.mv-root .pr-signup {
	margin-top: var(--sp-10);
	text-align: center;
	font-size: 14px;
	color: var(--text-3);
}
.mv-root .pr-signup-link {
	color: var(--brand);
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
}
.mv-root .pr-signup-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- More verses ---- */
.mv-root .pr-more {
	padding-top: var(--sp-20);
	padding-bottom: var(--sp-16);
}
.mv-root .pr-more-head {
	text-align: center;
	margin-bottom: var(--sp-10);
}
.mv-root .pr-more-eye {
	font-size: 11px;
	color: var(--text-3);
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: var(--sp-2);
}
.mv-root .pr-more-head h2 {
	font-family: var(--font-serif);
	font-size: 36px;
	font-weight: 600;
	letter-spacing: -0.018em;
	line-height: 1.08;
	margin: 0;
}
.mv-root .pr-more-head h2 em {
	font-style: italic;
	font-weight: 500;
	color: var(--brand);
}

.mv-root .pr-verse-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-4);
	max-width: 1100px;
	margin: 0 auto;
}
.mv-root .pr-verse-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: var(--sp-6);
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
	cursor: pointer;
	transition: transform .12s, border-color .12s, box-shadow .12s;
	text-decoration: none;
	color: inherit;
}
.mv-root .pr-verse-card:hover {
	transform: translateY(-2px);
	border-color: var(--border-strong);
	box-shadow: 0 12px 28px -16px rgba(11,20,38,0.18);
}
.mv-root .pr-verse-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
}
.mv-root .pr-verse-card-ref {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 600;
	color: var(--text-1);
}
.mv-root .pr-verse-card-trans {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--text-3);
}
.mv-root .pr-verse-card-text {
	font-family: var(--font-serif);
	font-size: 16px;
	font-weight: 500;
	color: var(--text-2);
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}
.mv-root .pr-verse-card-go {
	font-size: 13px;
	font-weight: 600;
	color: var(--brand);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	transition: gap .12s;
}
.mv-root .pr-verse-card:hover .pr-verse-card-go { gap: 10px; }

/* ---- NIV copyright ---- */
.mv-root .pr-niv {
	padding: var(--sp-6) 0 var(--sp-10);
	font-size: 11px;
	color: var(--text-muted);
	text-align: center;
	line-height: 1.6;
	max-width: 920px;
	margin: 0 auto;
}

/* ---- Dark theme tweaks ---- */
.mv-root.theme-dark .pr-cta {
	box-shadow: 0 14px 32px -14px rgba(240,139,110,0.55);
}

/* ---- Bridge: hide the legacy practice surface bleed-through ----
   When the existing js_practice_core.js shows the tile container by
   stripping .display-none, the tiles render directly under the hero —
   exactly where the original styling expects them. */
.mv-root .pr-hero .js-practice-container {
	margin-top: var(--sp-8);
}

/* ---- Progress overlay (modal) ----
   The legacy practice page anchored the post-completion overlay inside
   the verse card with position:absolute. The redesign has no card to
   anchor to, so we promote it to a viewport-centered modal: fixed inset,
   dim backdrop, flex-center the result card.

   The existing js_progress_overlay.js shows the overlay by removing the
   `display-none` class AND clearing inline `display` — so we trigger
   `display:flex` via `:not(.display-none)` instead of a separate
   "visible" class. */
.mv-root .pr-progress-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11, 20, 38, 0.55);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 24px;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.mv-root .pr-progress-overlay:not(.display-none) {
	display: flex;
}
.mv-root .pr-progress-card {
	max-width: 520px;
	width: 100%;
	box-shadow: 0 24px 64px -16px rgba(0,0,0,0.35);
}
@media (max-width: 640px) {
	.mv-root .pr-progress-overlay { padding: 16px; }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.mv-root .pr-verse { font-size: 38px; }
	.mv-root .pr-verse-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.mv-root .pr-verse { font-size: 30px; }
	.mv-root .pr-hero { padding-top: var(--sp-8); padding-bottom: var(--sp-12); }
	.mv-root .pr-cta { padding: 14px 28px; font-size: 16px; }
	.mv-root .pr-more-head h2 { font-size: 28px; }
	.mv-root .pr-hero-meta { gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }
}
