/* PracticeTestsHub Examination System — Frontend styles (Phase 1)
   Palette: Primary #2563EB · Secondary #0F172A · Background #F8FAFC
   Success #16A34A · Warning #F59E0B · Error #DC2626
   All classes use the pth- prefix. Mobile-first. */

.pth-exam-card,
.pth-search,
.pth-notice {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0F172A;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 20px;
	margin: 16px 0;
	box-sizing: border-box;
}

.pth-exam-title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.3;
	color: #0F172A;
}

.pth-exam-meta {
	margin: 0 0 12px;
}

.pth-badge {
	display: inline-block;
	background: #2563EB;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	margin-right: 6px;
}

.pth-badge-light {
	background: #E2E8F0;
	color: #0F172A;
}

.pth-exam-desc {
	font-size: 0.95rem;
	line-height: 1.6;
}

.pth-tests-heading {
	margin: 18px 0 8px;
	font-size: 1.05rem;
}

.pth-test-list,
.pth-exam-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pth-test-item,
.pth-exam-list-item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 8px;
}

.pth-test-name,
.pth-exam-list-title {
	font-weight: 600;
}

a.pth-exam-list-title {
	color: #1D4ED8;
	text-decoration: none;
}

a.pth-exam-list-title:hover {
	text-decoration: underline;
}

.pth-test-meta {
	font-size: 0.85rem;
	color: #475569;
}

.pth-note {
	font-size: 0.85rem;
	color: #64748B;
	margin: 10px 0 0;
}

.pth-notice {
	font-size: 0.95rem;
	line-height: 1.6;
}

.pth-notice-phase2 {
	border-left: 4px solid #F59E0B;
	background: #FFFBEB;
}

.pth-search-form {
	margin: 0;
}

.pth-search-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.pth-search-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pth-search-input {
	flex: 1 1 220px;
	padding: 10px 12px;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
}

.pth-btn {
	display: inline-block;
	border: 0;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.pth-btn-primary {
	background: #2563EB;
	color: #fff;
}

.pth-btn-primary:hover {
	background: #1D4ED8;
}

.pth-btn-success {
	background: #16A34A;
	color: #fff;
}

.pth-btn-danger {
	background: #DC2626;
	color: #fff;
}

@media (min-width: 640px) {
	.pth-exam-card,
	.pth-search {
		padding: 28px;
	}

	.pth-exam-title {
		font-size: 1.8rem;
	}
}

/* ==========================================================================
   Phase 2 — Test player: instructions, exam screen, palette, result
   ========================================================================== */

.pth-test-app {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0F172A;
	margin: 16px 0;
	box-sizing: border-box;
}

.pth-screen-instructions {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 20px;
}

.pth-test-title {
	margin: 0 0 4px;
	font-size: 1.5rem;
	line-height: 1.3;
}

.pth-test-exam {
	margin: 0 0 14px;
	color: #475569;
	font-weight: 600;
}

.pth-test-facts {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.pth-test-facts li {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pth-fact-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748B;
}

.pth-fact-value {
	font-weight: 700;
	font-size: 1rem;
}

.pth-test-instructions {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 16px;
	font-size: 0.95rem;
	line-height: 1.6;
}

.pth-test-instructions h3 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.pth-error {
	background: #FEF2F2;
	border: 1px solid #DC2626;
	color: #991B1B;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.9rem;
}

.pth-btn-large {
	padding: 12px 26px;
	font-size: 1.05rem;
}

.pth-btn-outline {
	background: #fff;
	color: #0F172A;
	border: 1px solid #CBD5E1;
}

.pth-btn-outline:hover {
	background: #F1F5F9;
}

.pth-btn-warning {
	background: #F59E0B;
	color: #0F172A;
}

.pth-btn-warning:hover {
	background: #D97706;
	color: #fff;
}

.pth-btn-success:hover {
	background: #15803D;
}

.pth-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* --- exam screen --- */

.pth-screen-exam {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 16px;
}

.pth-exam-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	border-bottom: 1px solid #E2E8F0;
	padding-bottom: 10px;
	margin-bottom: 12px;
}

.pth-exam-running-title {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
}

.pth-exam-running-exam {
	display: block;
	font-size: 0.85rem;
	color: #64748B;
}

.pth-timer {
	font-size: 1.25rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	background: #0F172A;
	color: #fff;
	border-radius: 8px;
	padding: 6px 14px;
}

.pth-timer-warning {
	background: #F59E0B;
	color: #0F172A;
}

.pth-timer-danger {
	background: #DC2626;
	color: #fff;
}

.pth-banner {
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.92rem;
	margin-bottom: 12px;
	border: 1px solid #CBD5E1;
	background: #fff;
}

.pth-banner-warning {
	background: #FFFBEB;
	border-color: #F59E0B;
	color: #92400E;
}

.pth-banner-danger {
	background: #FEF2F2;
	border-color: #DC2626;
	color: #991B1B;
}

.pth-exam-body {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.pth-question-area {
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 16px;
}

.pth-question-head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.pth-question-count {
	font-weight: 700;
}

.pth-question-marks {
	margin-left: auto;
	font-size: 0.85rem;
	color: #475569;
	font-weight: 600;
}

.pth-question-text {
	font-size: 1.05rem;
	line-height: 1.65;
	margin-bottom: 14px;
	white-space: pre-wrap;
}

.pth-question-image img {
	max-width: 100%;
	height: auto;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	margin-bottom: 14px;
}

.pth-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.pth-option {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	padding: 12px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1.45;
	min-height: 48px;
	box-sizing: border-box;
}

.pth-option:hover {
	border-color: #2563EB;
	background: #EFF6FF;
}

.pth-option input {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	accent-color: #2563EB;
}

.pth-option-key {
	font-weight: 700;
	color: #2563EB;
}

.pth-blank-input {
	width: 100%;
	padding: 12px;
	font-size: 1rem;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	box-sizing: border-box;
}

.pth-exam-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-top: 1px solid #E2E8F0;
	padding-top: 14px;
}

.pth-exam-actions .pth-btn {
	flex: 1 1 auto;
	min-height: 48px;
}

/* --- palette --- */

.pth-palette {
	position: relative;
	z-index: 100;
	flex: 0 0 260px;
	width: 260px;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 14px;
	box-sizing: border-box;
}

.pth-palette-heading {
	margin: 0 0 10px;
	font-size: 0.95rem;
}

.pth-palette-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	margin-bottom: 12px;
}

.pth-pal-btn {
	position: relative;
	border: 1px solid #CBD5E1;
	background: #fff;
	color: #0F172A;
	border-radius: 6px;
	min-height: 40px;
	font-weight: 600;
	cursor: pointer;
	font-size: 0.9rem;
}

.pth-pal-not-visited {
	background: #fff;
	border-color: #CBD5E1;
	color: #0F172A;
}

.pth-pal-not-answered {
	background: #DC2626;
	border-color: #DC2626;
	color: #fff;
}

.pth-pal-answered {
	background: #16A34A;
	border-color: #16A34A;
	color: #fff;
}

.pth-pal-marked {
	background: #7C3AED;
	border-color: #7C3AED;
	color: #fff;
}

.pth-pal-answered-marked {
	background: #7C3AED;
	border-color: #7C3AED;
	color: #fff;
}

.pth-pal-answered-marked::after {
	content: "";
	position: absolute;
	right: 3px;
	bottom: 3px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #16A34A;
	border: 2px solid #fff;
}

.pth-pal-current {
	outline: 2px solid #2563EB;
	outline-offset: 1px;
}

.pth-palette-legend {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 0.8rem;
	color: #475569;
	margin-bottom: 12px;
}

.pth-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pth-dot {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	flex: 0 0 auto;
	border: 1px solid #CBD5E1;
	background: #fff;
	position: relative;
}

.pth-dot-answered {
	background: #16A34A;
	border-color: #16A34A;
}

.pth-dot-not-answered {
	background: #DC2626;
	border-color: #DC2626;
}

.pth-dot-marked {
	background: #7C3AED;
	border-color: #7C3AED;
}

.pth-dot-answered-marked {
	background: #7C3AED;
	border-color: #7C3AED;
}

.pth-dot-answered-marked::after {
	content: "";
	position: absolute;
	right: 1px;
	bottom: 1px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #16A34A;
}

.pth-submit-btn {
	width: 100%;
	min-height: 48px;
}

/* v2.7.1 — the bottom-bar Submit twin is mobile-only; the
   palette Submit above stays the desktop/tablet one. */
.pth-submit-btn-mobile {
	display: none;
}

.pth-palette-toggle {
	display: none;
	margin-bottom: 12px;
	min-height: 44px;
}

/* --- submit modal --- */

/*
 * Stacking scale, lowest to highest: exam content (normal flow) <
 * question palette (z-index: 100, see .pth-palette) < submit modal
 * overlay (z-index: 10000). The "Submitting…" indicator lives inside
 * the modal box, i.e. on the top layer. The palette is an in-flow
 * panel at every viewport — it has no backdrop element — and its
 * toggle button is only rendered below 768px, so nothing palette-
 * related can intercept clicks on desktop.
 */

.pth-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 16px;
	box-sizing: border-box;
}

/*
 * The overlay is shown/hidden via the `hidden` property, but the
 * display:flex above (an author rule) would otherwise beat the UA
 * stylesheet's [hidden] rule and leave this fixed, dimmed layer
 * covering — and click-blocking — the whole exam even while "hidden".
 * A hidden overlay must neither render nor intercept clicks; it may
 * only exist visually while the modal is actually open.
 */
.pth-modal-overlay[hidden] {
	display: none !important;
	pointer-events: none;
}

/* Same guard for every other element toggled via `hidden` in the app
   (screens, banners, error boxes), now and in the future. */
.pth-test-app [hidden] {
	display: none !important;
}

.pth-modal-error {
	margin: 0 0 12px;
}

.pth-modal {
	background: #fff;
	border-radius: 12px;
	padding: 22px;
	max-width: 420px;
	width: 100%;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.pth-modal-title {
	margin: 0 0 12px;
	font-size: 1.2rem;
}

.pth-modal-counts {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.pth-modal-counts li {
	display: flex;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px solid #E2E8F0;
	font-size: 0.95rem;
}

.pth-modal-note {
	font-size: 0.88rem;
	color: #475569;
	line-height: 1.55;
}

.pth-modal-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pth-modal-actions .pth-btn {
	flex: 1 1 auto;
	min-height: 46px;
}

/* --- result --- */

.pth-screen-result {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 20px;
}

.pth-result-title {
	margin: 0 0 12px;
	font-size: 1.4rem;
}

.pth-result-pass,
.pth-result-fail {
	font-weight: 800;
	font-size: 1.1rem;
	padding: 10px 14px;
	border-radius: 8px;
}

.pth-result-pass {
	background: #F0FDF4;
	color: #16A34A;
	border: 1px solid #16A34A;
}

.pth-result-fail {
	background: #FEF2F2;
	color: #DC2626;
	border: 1px solid #DC2626;
}

.pth-result-summary {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin: 14px 0;
}

.pth-summary-item {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pth-summary-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748B;
}

.pth-summary-value {
	font-weight: 800;
	font-size: 1.05rem;
}

.pth-review-heading {
	margin: 20px 0 10px;
	font-size: 1.15rem;
}

.pth-review-item {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-left: 4px solid #CBD5E1;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 10px;
}

.pth-review-correct {
	border-left-color: #16A34A;
}

.pth-review-incorrect {
	border-left-color: #DC2626;
}

.pth-review-skipped {
	border-left-color: #F59E0B;
}

.pth-review-head {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 8px;
	font-size: 0.88rem;
}

.pth-review-qno {
	font-weight: 700;
}

.pth-review-status {
	font-weight: 700;
}

.pth-review-correct .pth-review-status {
	color: #16A34A;
}

.pth-review-incorrect .pth-review-status {
	color: #DC2626;
}

.pth-review-skipped .pth-review-status {
	color: #B45309;
}

.pth-review-marks {
	margin-left: auto;
	color: #475569;
	font-weight: 600;
}

.pth-review-question {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0 0 8px;
	white-space: pre-wrap;
}

.pth-review-line {
	margin: 0 0 4px;
	font-size: 0.95rem;
	line-height: 1.55;
}

.pth-review-explanation {
	margin: 8px 0 0;
	font-size: 0.92rem;
	line-height: 1.6;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 10px 12px;
}

/* --- results history --- */

.pth-results {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0F172A;
	margin: 16px 0;
	overflow-x: auto;
}

.pth-results-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 0.92rem;
}

.pth-results-table th,
.pth-results-table td {
	border: 1px solid #E2E8F0;
	padding: 9px 10px;
	text-align: left;
	vertical-align: top;
}

.pth-results-table th {
	background: #0F172A;
	color: #fff;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pth-results-test {
	display: block;
	font-weight: 700;
}

.pth-results-exam {
	display: block;
	font-size: 0.82rem;
	color: #64748B;
}

/* --- responsive --- */

@media (max-width: 767px) {
	.pth-exam-body {
		flex-direction: column;
	}

	.pth-palette {
		display: none;
		width: 100%;
		flex: none;
	}

	.pth-test-app.pth-palette-open .pth-palette {
		display: block;
	}

	.pth-palette-toggle {
		display: inline-block;
	}

	.pth-palette-grid {
		grid-template-columns: repeat(6, 1fr);
	}

	.pth-test-facts {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 768px) {
	.pth-result-summary {
		grid-template-columns: repeat(3, 1fr);
	}

	.pth-screen-instructions,
	.pth-screen-result {
		padding: 28px;
	}
}

/* ==========================================================================
   v1.1.1 — Full-width layout
   All shortcode containers span the full available width, capped at
   1280px and centred, so mock tests use wide screens properly. Add the
   .pth-fullwidth utility class to a wrapper (or to a container itself)
   to remove the cap and let the content span 100% of its parent.
   ========================================================================== */

.pth-exam-card,
.pth-search,
.pth-notice,
.pth-test-app,
.pth-results,
.pth-exam-list {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.pth-exam-card *,
.pth-search *,
.pth-test-app *,
.pth-results * {
	box-sizing: border-box;
}

.pth-fullwidth {
	width: 100%;
	max-width: none;
}

.pth-fullwidth > .pth-exam-card,
.pth-fullwidth > .pth-search,
.pth-fullwidth > .pth-notice,
.pth-fullwidth > .pth-test-app,
.pth-fullwidth > .pth-results,
.pth-fullwidth > .pth-exam-list {
	max-width: none;
}

/* Wide screens: roomier in-exam layout — flexible question area + 300px palette. */
@media (min-width: 1024px) {
	.pth-exam-body {
		gap: 20px;
	}

	.pth-palette {
		flex: 0 0 300px;
		width: 300px;
	}

	.pth-question-area {
		padding: 24px;
	}
}

/* ==========================================================================
   v1.1.4 — Width cap override for the test player + results history
   Measured on the live temp site (Twenty Twenty-Five, 1920px viewport):
   the parent .entry-content is a WordPress constrained-layout block at
   full width (content box 1712px after global padding), yet
   .pth-test-app computed at width 700px, max-width 700px, with
   margin-left/right 506px (auto). Cause: WordPress block-layout CSS
   caps constrained-layout children at
   --wp--style--global--content-size (700px here) via a (0,2,0)-
   specificity rule and forces margin-left/right: auto !important.
   The v1.1.3 breakout lost that cascade on max-width (the 700px cap
   beat max-width:none) and on margins (auto !important beat margin:0),
   while its uncontested left:50% / translateX(-50%) shifted the capped
   700px box off-centre — the broken look that was measured.
   So instead of fighting the theme, work WITH it: the theme's auto
   margins already centre the box; all that is needed is for OUR cap
   (1280px, or the viewport minus gutters) to replace the 700px cap.
   The !important on max-width is deliberate and required — it is the
   only declaration that needs it. Do not "clean this up": removing the
   !important silently restores the 700px column.
   Expected geometry at 1920px: parent content box 1712 → width:100%
   capped at 1280 → auto margins (1712-1280)/2 = 216px each side → the
   element spans x≈320–1600, centred. On phones the parent is narrower
   than the cap, so width:100% governs and there is no overflow.
   Exam cards, exam lists, search and notices keep the v1.1.1
   wide-in-column behaviour.
   ========================================================================== */

.pth-test-app,
.pth-results,
.pth-topic-tests {
	width: 100%;
	max-width: min(1280px, calc(100vw - 32px)) !important;
}

/* --- save status indicator (v1.1.3, driven by pth-frontend.js) --- */

.pth-save-status {
	font-size: 0.85rem;
	font-weight: 600;
	color: #64748B;
	white-space: nowrap;
}

.pth-save-status-saved {
	color: #16A34A;
}

.pth-save-status-error {
	color: #DC2626;
}

/* ==========================================================================
   Phase 3 (v1.2.0) — Subject / chapter test cards
   [pth_subject_test] and [pth_chapter_test] print a stack of
   full-width cards. Each card shows a summary plus the standard
   [pth_mock_test] player shell, hidden until the card's Start button
   reveals it (data-pth-card-start in pth-frontend.js). The wrapper
   joins the v1.1.4 width-cap rule above so cards — and the player
   inside them — get the same 1280px measure as a standalone test
   page instead of the theme's 700px column.
   ========================================================================== */

.pth-topic-tests {
	margin: 16px 0;
	box-sizing: border-box;
}

.pth-topic-tests * {
	box-sizing: border-box;
}

.pth-topic-test-card {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0F172A;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 16px;
}

.pth-topic-test-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pth-topic-test-summary[hidden],
.pth-topic-test-player[hidden] {
	display: none !important;
}

.pth-topic-test-info {
	flex: 1 1 260px;
	min-width: 0;
}

.pth-topic-test-title {
	margin: 0 0 4px;
	font-size: 1.2rem;
	line-height: 1.35;
	color: #0F172A;
}

.pth-topic-test-exam {
	margin: 0 0 6px;
	font-weight: 600;
	color: #2563EB;
}

.pth-topic-test-meta {
	margin: 0;
	font-size: 0.9rem;
	color: #475569;
}

.pth-topic-test-player .pth-test-app {
	margin: 0;
}

/* ==========================================================================
   v1.4.1 — Startable test cards inside [pth_exam]
   Each published test of an exam renders as a card in the Phase 3
   pattern: a summary (title, duration, marks, Start Test button) plus
   the standard player shell hidden inside the card until the button
   reveals it (data-pth-card-start in pth-frontend.js). The cards live
   inside the exam card, so they take its measure and row styling; the
   player itself keeps its own width rules. A test whose shell cannot
   render yet falls back to the plain .pth-test-item row (no button).
   ========================================================================== */

.pth-exam-tests {
	margin: 8px 0 4px;
	box-sizing: border-box;
}

.pth-exam-tests * {
	box-sizing: border-box;
}

.pth-exam-test-card {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 8px;
}

.pth-exam-test-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pth-exam-test-summary[hidden],
.pth-exam-test-player[hidden] {
	display: none !important;
}

.pth-exam-test-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 240px;
	min-width: 0;
}

.pth-exam-test-player {
	margin-top: 4px;
}

.pth-exam-test-player .pth-test-app {
	margin: 0;
}

/* --- print: result only --- */

@media print {
	.pth-screen-instructions,
	.pth-screen-exam,
	.pth-print-hide {
		display: none !important;
	}

	.pth-test-app,
	.pth-screen-result {
		border: 0;
		background: #fff;
		padding: 0;
	}

	.pth-review-item,
	.pth-summary-item {
		break-inside: avoid;
	}
}

/* ==========================================================================
   v1.3.0 — Design polish (DESIGN-SPEC.md)
   A pure restyle layer: every rule below only overrides presentation
   values declared earlier in this file (same selectors, later in the
   cascade). No layout mechanism changes — the v1.1.4 width cap, the
   [hidden] guards, the mobile palette drawer toggle (.pth-palette-open)
   and the stacking scale (content < palette 100 < palette sheet 9000 <
   modal 10000) all keep working exactly as before.
   Palette: Primary #2563EB · Hover #1D4ED8 · Navy #0F172A · BG #F8FAFC
   Success #16A34A · Warning #F59E0B · Error #DC2626 · Muted #64748B
   Border #E2E8F0 · Chip bg #EFF6FF / chip text #1D4ED8 / chip edge #DBEAFE
   ========================================================================== */

/* --- fonts: system stack + Noto Sans Devanagari fallback (no webfonts) --- */

.pth-exam-card,
.pth-search,
.pth-notice,
.pth-test-app,
.pth-results,
.pth-topic-test-card {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Devanagari", sans-serif;
}

/* --- buttons & chips (spec component language) --- */

.pth-btn {
	font-size: 15px;
	font-weight: 650;
	border-radius: 8px;
}

.pth-badge {
	background: #EFF6FF;
	color: #1D4ED8;
	border: 1px solid #DBEAFE;
	border-radius: 50px;
	padding: 4px 12px;
	font-size: 12px;
}

.pth-badge-light {
	background: #F1F5F9;
	color: #64748B;
	border-color: #E2E8F0;
}

/* --- cards, lists, search --- */

.pth-exam-card,
.pth-search,
.pth-topic-test-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
}

.pth-notice {
	border-radius: 12px;
}

.pth-exam-title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #0F172A;
}

@media (min-width: 640px) {
	.pth-exam-title {
		font-size: 32px;
	}
}

.pth-tests-heading {
	font-size: 18px;
	font-weight: 650;
	color: #0F172A;
}

.pth-test-item,
.pth-exam-list-item {
	border-radius: 12px;
	padding: 14px 16px;
}

.pth-test-item:hover,
.pth-exam-list-item:hover {
	border-color: #2563EB;
	background: #F8FAFC;
}

.pth-test-meta,
.pth-topic-test-meta {
	color: #64748B;
}

.pth-search-label {
	font-size: 15px;
	font-weight: 650;
	color: #0F172A;
}

.pth-search-input {
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 12px 14px;
}

.pth-search-input:focus {
	border-color: #2563EB;
	outline: 2px solid #BFDBFE;
	outline-offset: 0;
}

.pth-topic-test-title {
	font-size: 18px;
	font-weight: 650;
}

.pth-results-table th {
	font-size: 13px;
}

.pth-results-table tbody tr:hover {
	background: #F8FAFC;
}

/* --- instructions screen --- */

.pth-screen-instructions {
	background: #fff;
	border-radius: 12px;
}

.pth-test-title {
	font-weight: 700;
	line-height: 1.2;
	color: #0F172A;
}

.pth-test-exam {
	color: #64748B;
}

.pth-test-facts li {
	background: #F8FAFC;
	border-radius: 12px;
	padding: 12px 14px;
}

.pth-fact-label {
	font-size: 12px;
	font-weight: 600;
}

.pth-fact-value {
	font-size: 17px;
}

.pth-test-instructions {
	border-radius: 12px;
}

/* --- exam screen: dark header bar (spec: #0F172A, 64px / mobile 56px) --- */

.pth-screen-exam {
	padding: 0;
	border-radius: 12px;
}

.pth-exam-header {
	background: #0F172A;
	color: #fff;
	height: 64px;
	padding: 0 20px;
	margin-bottom: 0;
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	flex-wrap: nowrap;
}

.pth-exam-titlebar {
	min-width: 0;
}

.pth-exam-running-title {
	color: #fff;
	font-size: 16px;
	font-weight: 650;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pth-exam-running-exam {
	color: #94A3B8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Save-status indicator on the dark header (base colours are for light
   backgrounds; these tints keep the same meaning readable on navy). */
.pth-exam-header .pth-save-status {
	color: #CBD5E1;
}

.pth-exam-header .pth-save-status-saving {
	color: #FCD34D;
}

.pth-exam-header .pth-save-status-saved {
	color: #4ADE80;
}

.pth-exam-header .pth-save-status-error {
	color: #FCA5A5;
}

/* Timer chip: white chip on the dark bar (spec). The JS already toggles
   .pth-timer-warning at <= 5 min and .pth-timer-danger at <= 1 min in
   renderTimer() — only the colours/sizes change here. */
.pth-timer {
	background: #fff;
	color: #0F172A;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	padding: 10px 16px;
	border-radius: 8px;
	flex: 0 0 auto;
}

.pth-timer-warning {
	background: #FEF2F2;
	color: #DC2626;
}

.pth-timer-danger {
	background: #DC2626;
	color: #fff;
}

.pth-banner {
	margin: 12px 20px 0;
}

.pth-exam-body {
	padding: 16px;
}

@media (min-width: 768px) {
	.pth-exam-body {
		padding: 20px;
	}
}

/* --- question area + 48px info bar --- */

.pth-question-area {
	border-radius: 12px;
	padding: 16px;
}

@media (min-width: 768px) {
	.pth-question-area {
		padding: 28px 20px 16px;
	}
}

.pth-question-head {
	height: 48px;
	min-height: 48px;
	align-items: center;
	background: #F8FAFC;
	border-bottom: 1px solid #E2E8F0;
	border-radius: 12px 12px 0 0;
	margin: -16px -16px 16px;
	padding: 0 16px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.pth-question-head {
		margin: -28px -20px 20px;
		padding: 0 20px;
	}
}

.pth-question-count {
	font-size: 15px;
	font-weight: 650;
	color: #0F172A;
}

.pth-question-marks {
	font-size: 13px;
	font-weight: 600;
	color: #64748B;
}

.pth-question-text {
	font-size: 18px;
	line-height: 1.7;
	font-weight: 600;
}

.pth-blank-input {
	border: 1px solid #E2E8F0;
	border-radius: 10px;
}

.pth-blank-input:focus {
	border-color: #2563EB;
	outline: 2px solid #BFDBFE;
}

/* --- options: 52px rows; selected = 2px primary border + tint --- */

.pth-options {
	gap: 12px;
}

.pth-option {
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	font-size: 16px;
}

.pth-option:hover {
	border-color: #2563EB;
	background: #EFF6FF;
}

/* The player marks selection only via the checked input (no class), so
   the selected row is styled through :has(). Padding drops 1px on the
   selected row so the 2px border causes no layout shift. */
.pth-option:has(> input:checked) {
	border: 2px solid #2563EB;
	background: #EFF6FF;
	padding: 13px 15px;
}

/* --- action buttons (spec colours; DOM order is fixed by the player:
   Previous, Clear Response, Mark for Review, Save & Next) --- */

.pth-exam-actions {
	gap: 10px;
}

.pth-exam-actions .pth-btn {
	min-height: 48px;
}

.pth-exam-actions .pth-btn-outline:nth-of-type(1) {
	background: #F1F5F9;
	border-color: #E2E8F0;
	color: #0F172A;
}

.pth-exam-actions .pth-btn-outline:nth-of-type(2) {
	background: #fff;
	border-color: #FECACA;
	color: #DC2626;
}

.pth-exam-actions .pth-btn-outline:nth-of-type(2):hover {
	background: #FEF2F2;
}

.pth-btn-warning:hover {
	background: #D97706;
	color: #0F172A;
}

/* --- palette: spec status colours (EXACT) --- */

.pth-palette {
	border-radius: 12px;
	padding: 20px;
}

.pth-palette-heading {
	font-size: 15px;
	font-weight: 650;
	color: #0F172A;
}

.pth-palette-grid {
	gap: 8px;
}

.pth-pal-btn {
	height: 40px;
	min-height: 40px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #E2E8F0;
}

.pth-pal-not-visited {
	background: #E2E8F0;
	border-color: #E2E8F0;
	color: #334155;
}

.pth-pal-not-answered {
	background: #FEE2E2;
	border-color: #FEE2E2;
	color: #991B1B;
}

.pth-pal-answered {
	background: #DCFCE7;
	border-color: #DCFCE7;
	color: #166534;
}

.pth-pal-marked {
	background: #FDE68A;
	border-color: #FDE68A;
	color: #92400E;
}

.pth-pal-answered-marked {
	background: #C4B5FD;
	border-color: #C4B5FD;
	color: #5B21B6;
}

.pth-pal-current {
	outline: 2px solid #2563EB;
	outline-offset: 2px;
}

.pth-palette-legend {
	font-size: 13px;
	color: #64748B;
}

.pth-dot-not-visited {
	background: #E2E8F0;
	border-color: #CBD5E1;
}

.pth-dot-answered {
	background: #DCFCE7;
	border-color: #16A34A;
}

.pth-dot-not-answered {
	background: #FEE2E2;
	border-color: #DC2626;
}

.pth-dot-marked {
	background: #FDE68A;
	border-color: #F59E0B;
}

.pth-dot-answered-marked {
	background: #C4B5FD;
	border-color: #7C3AED;
}

.pth-submit-btn {
	height: 48px;
	min-height: 48px;
	font-size: 15px;
}

/* Desktop split: question ~72% / palette ~28%, palette sticky. */
@media (min-width: 1024px) {
	.pth-palette {
		flex: 0 0 27.5%;
		width: auto;
		position: sticky;
		top: 16px;
	}
}

/* --- submit modal: count rows carry the palette colours as swatches
   (row order is fixed by the player: Answered, Answered & Marked,
   Marked for Review, Not Answered, Not Visited, Total) --- */

.pth-modal {
	border-radius: 12px;
}

.pth-modal-counts li {
	justify-content: flex-start;
	align-items: center;
}

.pth-modal-counts li::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-right: 10px;
	flex: 0 0 auto;
}

.pth-modal-counts li:nth-child(1)::before {
	background: #DCFCE7;
	box-shadow: inset 0 0 0 1px #16A34A;
}

.pth-modal-counts li:nth-child(2)::before {
	background: #C4B5FD;
	box-shadow: inset 0 0 0 1px #7C3AED;
}

.pth-modal-counts li:nth-child(3)::before {
	background: #FDE68A;
	box-shadow: inset 0 0 0 1px #F59E0B;
}

.pth-modal-counts li:nth-child(4)::before {
	background: #FEE2E2;
	box-shadow: inset 0 0 0 1px #DC2626;
}

.pth-modal-counts li:nth-child(5)::before {
	background: #E2E8F0;
	box-shadow: inset 0 0 0 1px #94A3B8;
}

.pth-modal-counts li strong {
	margin-left: auto;
}

/* --- result screen --- */

.pth-screen-result {
	background: #fff;
	border-radius: 12px;
}

.pth-result-title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #0F172A;
}

.pth-result-summary {
	gap: 12px;
}

.pth-summary-item {
	border-radius: 12px;
	padding: 18px;
	gap: 4px;
}

.pth-summary-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: #64748B;
}

.pth-summary-value {
	font-size: 24px;
	font-weight: 700;
	color: #0F172A;
}

/* Metric accents — card order is fixed by renderResult(): 1 Total
   Questions, 2 Attempted, 3 Correct, 4 Incorrect, 5 Unanswered,
   6 Total Marks (score), 7 Percentage, 8 Accuracy, 9 Time Taken. */
.pth-result-summary .pth-summary-item:nth-child(3) {
	border-top: 3px solid #16A34A;
}

.pth-result-summary .pth-summary-item:nth-child(3) .pth-summary-value {
	color: #16A34A;
}

.pth-result-summary .pth-summary-item:nth-child(4) {
	border-top: 3px solid #DC2626;
}

.pth-result-summary .pth-summary-item:nth-child(4) .pth-summary-value {
	color: #DC2626;
}

.pth-result-summary .pth-summary-item:nth-child(6) {
	border-top: 3px solid #2563EB;
}

.pth-result-summary .pth-summary-item:nth-child(6) .pth-summary-value {
	color: #2563EB;
}

.pth-result-summary .pth-summary-item:nth-child(9) .pth-summary-value {
	color: #64748B;
}

@media (min-width: 1024px) {
	.pth-result-summary {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Performance bars (markup added by renderResult(); widths are inline
   percentages of score / accuracy / attempt rate). */
.pth-progress {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 4px 0 14px;
}

.pth-progress-row {
	display: grid;
	grid-template-columns: 110px 1fr 48px;
	align-items: center;
	gap: 10px;
}

.pth-progress-label {
	font-size: 13px;
	font-weight: 600;
	color: #64748B;
}

.pth-progress-track {
	background: #E2E8F0;
	border-radius: 50px;
	height: 8px;
	overflow: hidden;
}

.pth-progress-fill {
	height: 100%;
	border-radius: 50px;
	background: #2563EB;
}

.pth-progress-fill-accuracy {
	background: #16A34A;
}

.pth-progress-fill-attempt {
	background: #64748B;
}

.pth-progress-value {
	font-size: 13px;
	font-weight: 700;
	color: #0F172A;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* Answer review: full status-tinted cards (spec: Correct = light
   green, Incorrect = light red, Not Attempted = light slate). */
.pth-review-heading {
	font-size: 20px;
	font-weight: 700;
	color: #0F172A;
}

.pth-review-item {
	border-radius: 12px;
}

.pth-review-correct {
	background: #F0FDF4;
	border-color: #BBF7D0;
	border-left-color: #16A34A;
}

.pth-review-incorrect {
	background: #FEF2F2;
	border-color: #FECACA;
	border-left-color: #DC2626;
}

.pth-review-skipped {
	background: #F8FAFC;
	border-color: #E2E8F0;
	border-left-color: #94A3B8;
}

.pth-review-skipped .pth-review-status {
	color: #64748B;
}

.pth-review-correct .pth-review-explanation,
.pth-review-incorrect .pth-review-explanation {
	background: #fff;
}

/* --- mobile: 56px header, bottom-sheet palette, fixed action bar --- */

@media (max-width: 767px) {
	.pth-exam-header {
		height: 56px;
		padding: 0 14px;
	}

	.pth-exam-running-title {
		font-size: 14px;
	}

	.pth-timer {
		font-size: 18px;
		padding: 8px 12px;
	}

	.pth-banner {
		margin: 12px 12px 0;
	}

	.pth-exam-body {
		padding: 12px;
	}

	.pth-palette-toggle {
		margin: 12px 12px 0;
	}

	.pth-question-text {
		font-size: 17px;
	}

	.pth-option {
		min-height: 56px;
	}

	/* Palette as a bottom sheet. The open/close mechanism is unchanged
	   (display toggled by .pth-palette-open); only its geometry is
	   restyled. It sits above the fixed action bar (800) and below the
	   submit modal (10000), matching the documented stacking scale. */
	.pth-palette {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		width: auto;
		flex: none;
		height: 80vh;
		max-height: 85vh;
		overflow-y: auto;
		z-index: 9000;
		border-radius: 16px 16px 0 0;
		border-bottom: 0;
		box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.25);
		padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
	}

	.pth-palette::before {
		content: "";
		display: block;
		width: 44px;
		height: 4px;
		border-radius: 50px;
		background: #CBD5E1;
		margin: 0 auto 14px;
	}

	.pth-palette-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	/* Fixed bottom action bar: the player's single actions row, pinned.
	   Extra bottom padding on the exam screen keeps the last content
	   clear of the bar. */
	.pth-exam-actions {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 800;
		background: #fff;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		gap: 8px;
		box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
	}

	.pth-exam-actions .pth-btn {
		font-size: 13px;
		padding: 10px 6px;
	}

	.pth-screen-exam {
		padding-bottom: 84px;
	}
}

/* Print additions for the v1.3.0 result elements (the main print block
   above is unchanged and still governs the result printout). */
@media print {
	.pth-progress {
		break-inside: avoid;
	}

	.pth-progress-track {
		border: 1px solid #000;
	}

	.pth-progress-fill {
		background: #000;
	}
}

/* ==========================================================================
   v1.5.0 — Homepage ([pth_homepage], HOMEPAGE-SPEC.md)
   (v1.5.1: mobile hero overflow fix — see the v1.5.1 comments.)
   All new classes use the pth-home- prefix. The wrapper defeats the
   block-theme width cap exactly like the v1.1.4 player rule: width
   100%, our 1200px cap with !important, and the theme's auto margins
   centre the box. Full-bleed is deliberately NOT attempted — every
   section is a container-width surface; the dark and CTA bands are
   rounded (24px) bands inside the container, per the build brief.
   Section rhythm: 24px gaps (16px mobile); section padding follows
   the spec scale 96 / 72 / 56.
   ========================================================================== */

.pth-home {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Devanagari", sans-serif;
	color: #0F172A;
	width: 100%;
	max-width: min(1200px, calc(100vw - 32px)) !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}

.pth-home *,
.pth-home *::before,
.pth-home *::after {
	box-sizing: border-box;
}

/* Hindi / Devanagari rules (spec §12/§13): never letter-spacing or
   uppercase on Hindi, generous line-height for the matras. Scoped to
   the homepage so no other shortcode's rendering changes. */
.pth-home [lang="hi"] {
	letter-spacing: 0;
}

.pth-home section {
	margin-bottom: 24px;
}

.pth-home-section {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 24px;
	padding: 96px 24px;
}

/* --- shared type & buttons --- */

.pth-home-eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #2563EB;
}

.pth-home-eyebrow-dark {
	color: #93C5FD;
}

.pth-home-h2 {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #0F172A;
}

.pth-home-h2-dark,
.pth-home-h2-cta {
	color: #fff;
}

.pth-home-sub {
	margin: 10px 0 0;
	font-size: 16px;
	line-height: 1.65;
	color: #64748B;
}

.pth-home-sub [lang="hi"] {
	line-height: 1.75;
}

.pth-home-sub-dark {
	color: #94A3B8;
}

.pth-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pth-home-btn-primary {
	background: #2563EB;
	color: #fff;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pth-home-btn-primary:hover {
	background: #1D4ED8;
	color: #fff;
	transform: translateY(-1px);
}

.pth-home-btn-secondary {
	background: #fff;
	color: #0F172A;
	border-color: #E2E8F0;
}

.pth-home-btn-secondary:hover {
	border-color: #2563EB;
	color: #2563EB;
}

.pth-home-btn-white {
	background: #fff;
	color: #2563EB;
}

.pth-home-btn-white:hover {
	background: #EFF6FF;
	color: #1D4ED8;
}

.pth-home-btn-lg {
	height: 52px;
	padding: 0 28px;
	font-size: 16px;
	border-radius: 14px;
}

.pth-home-btn:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 2px;
}

.pth-home-centre {
	text-align: center;
	margin: 28px 0 0;
}

.pth-home-icon {
	display: block;
}

/* --- hero --- */

.pth-home-hero {
	position: relative;
	overflow: hidden;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 24px;
	padding: 72px 24px 88px;
}

/* Winter Neva, faded out downwards (spec §3). */
.pth-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
	opacity: 0.45;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
	pointer-events: none;
}

/* Soft brand glow behind the visual. */
.pth-home-hero::after {
	content: "";
	position: absolute;
	right: -10%;
	top: -20%;
	width: 640px;
	height: 640px;
	background: radial-gradient(closest-side, rgba(37, 99, 235, 0.14), transparent);
	pointer-events: none;
}

.pth-home-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 40px;
	align-items: center;
}

.pth-home-hero-grid-single {
	grid-template-columns: 1fr;
}

/* v1.5.1 — homepage grid items must be allowed to shrink below
   their content's min-content size. Without this, a stacked
   minmax(auto, 1fr) track sizes itself to the widest child
   (the hero text column measured 839px at a 390px viewport)
   and the section's overflow clips it. Scoped to .pth-home;
   no visual effect anywhere the content already fits. */
.pth-home-hero-text,
.pth-home-hero-visual,
.pth-home-trust-item,
.pth-home-cat-card,
.pth-home-test-card,
.pth-home-steps,
.pth-home-how-visual,
.pth-home-why-card,
.pth-home-cta-grid > * {
	min-width: 0;
}

.pth-home-eyebrow-pill {
	display: inline-flex;
	align-items: center;
	margin: 0 0 18px;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid #DBEAFE;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	color: #1D4ED8;
}

.pth-home-h1 {
	margin: 0;
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: #0F172A;
}

.pth-home-hero-hindi {
	margin: 12px 0 0;
	font-size: clamp(28px, 4.2vw, 48px);
	font-weight: 600;
	line-height: 1.3;
	color: #2563EB;
}

.pth-home-hero-sub {
	margin: 16px 0 0;
	max-width: 560px;
	font-size: 17px;
	line-height: 1.65;
	color: #475569;
}

.pth-home-hero-sub [lang="hi"] {
	line-height: 1.75;
}

/* The hero search shell restyles the EXISTING [pth_exam_search]
   output into the spec's search bar — there is no second search
   system. The shortcode's own card chrome is stripped inside the
   shell; its form, results list and notice keep working. */
.pth-home-hero-search {
	margin-top: 28px;
	max-width: min(680px, 100%);
}

.pth-home-hero-search .pth-search {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	width: auto;
	max-width: none;
}

.pth-home-hero-search .pth-search-label {
	font-size: 15px;
	font-weight: 650;
	color: #0F172A;
	margin-bottom: 10px;
}

.pth-home-hero-search .pth-search-row {
	background: #fff;
	border: 1.5px solid #E2E8F0;
	border-radius: 16px;
	padding: 6px;
	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
	flex-wrap: nowrap;
	align-items: center;
}

.pth-home-hero-search .pth-search-row:focus-within {
	border-color: #2563EB;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 10px 30px rgba(37, 99, 235, 0.12);
}

.pth-home-hero-search .pth-search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	background: transparent;
	border: 0;
	border-radius: 12px;
	font-size: 16px;
}

.pth-home-hero-search .pth-search-input:focus {
	border-color: transparent;
	outline: none;
}

.pth-home-hero-search .pth-search-form .pth-btn {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 22px;
	border-radius: 12px;
}

.pth-home-hero-search .pth-exam-list,
.pth-home-hero-search .pth-notice {
	margin-top: 14px;
}

/* v1.5.1 — the embedded search must never exceed its column:
   cap the shortcode's own box at 100% inside the homepage and
   let its flex row/input shrink (the 680px design cap above
   still governs on wide screens). */
.pth-home .pth-search,
.pth-home .pth-search-form {
	max-width: 100%;
}

.pth-home .pth-search-row,
.pth-home .pth-search-input {
	min-width: 0;
}

.pth-home-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}

.pth-home-chips-label {
	font-size: 14px;
	color: #64748B;
}

.pth-home-chip {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #0F172A;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.pth-home-chip:hover {
	border-color: #2563EB;
	color: #2563EB;
	background: #EFF6FF;
}

.pth-home-hero-visual img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

/* --- trust strip --- */

.pth-home-trust {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	padding: 28px 24px;
}

.pth-home-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.pth-home-trust-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.pth-home-trust-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #EFF6FF;
	color: #2563EB;
	display: grid;
	place-items: center;
}

.pth-home-trust-icon .pth-home-icon {
	width: 22px;
	height: 22px;
}

.pth-home-trust-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: #0F172A;
}

.pth-home-trust-line {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #64748B;
}

@media (min-width: 1024px) {
	.pth-home-trust-item + .pth-home-trust-item {
		border-left: 1px solid #E2E8F0;
		padding-left: 20px;
	}
}

/* --- categories --- */

.pth-home-cats {
	background: #F8FAFC;
}

.pth-home-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 36px;
}

.pth-home-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 148px;
	padding: 24px;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	color: #0F172A;
	text-decoration: none;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pth-home-cat-card:hover {
	transform: translateY(-4px);
	border-color: #2563EB;
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.pth-home-cat-tile {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #EFF6FF;
	color: #2563EB;
	display: grid;
	place-items: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pth-home-cat-tile .pth-home-icon {
	width: 24px;
	height: 24px;
}

.pth-home-cat-card:hover .pth-home-cat-tile {
	background: #2563EB;
	color: #fff;
}

.pth-home-cat-name {
	margin-top: 14px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.pth-home-cat-hindi {
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.75;
	color: #64748B;
}

.pth-home-cat-list {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #64748B;
}

.pth-home-cat-arrow {
	position: absolute;
	right: 20px;
	bottom: 16px;
	font-size: 18px;
	color: #2563EB;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.pth-home-cat-card:hover .pth-home-cat-arrow {
	opacity: 1;
}

/* --- latest tests --- */

.pth-home-test-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 36px;
}

.pth-home-test-card {
	display: flex;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	padding: 20px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pth-home-test-card:hover {
	border-color: #BFDBFE;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.pth-home-test-summary {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.pth-home-test-summary[hidden],
.pth-home-test-player[hidden] {
	display: none !important;
}

.pth-home-test-player {
	flex: 1 1 auto;
	min-width: 0;
}

.pth-home-test-player .pth-test-app {
	margin: 0;
}

.pth-home-test-toprow {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.pth-home-tag {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: #2563EB;
	background: #EFF6FF;
	border-radius: 6px;
	padding: 4px 8px;
}

.pth-home-badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.pth-home-badge {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	border-radius: 6px;
	padding: 3px 8px;
}

.pth-home-badge-free {
	background: #DCFCE7;
	color: #166534;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pth-home-badge-lang {
	background: #DBEAFE;
	color: #1D4ED8;
}

.pth-home-test-title {
	margin: 12px 0 4px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: #0F172A;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pth-home-test-exam {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #2563EB;
}

.pth-home-test-meta {
	margin: 6px 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #64748B;
}

/* When the negative-marking line follows, it carries the gap. */
.pth-home-test-meta:has(+ .pth-home-test-negative) {
	margin-bottom: 0;
}

.pth-home-test-negative {
	margin: 2px 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #64748B;
}

.pth-home-start-btn {
	width: 100%;
	height: 44px;
	/* Pinned to the card foot by the summary's flex column; the meta
	   block's bottom margin guarantees the minimum gap. */
	margin-top: auto;
}

.pth-home-empty {
	margin-top: 36px;
	padding: 28px 24px;
	border: 1.5px dashed #CBD5E1;
	border-radius: 16px;
	background: #F8FAFC;
	text-align: center;
	font-size: 15px;
	line-height: 1.6;
	color: #64748B;
}

/* --- how it works --- */

.pth-home-how {
	background: #F8FAFC;
}

.pth-home-how-wrap {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 36px;
	align-items: center;
	margin-top: 36px;
}

.pth-home-steps {
	position: relative;
}

.pth-home-step {
	position: relative;
	display: flex;
	gap: 16px;
	padding-bottom: 28px;
}

/* Dashed connector between the number badges (spec §7). */
.pth-home-step::before {
	content: "";
	position: absolute;
	left: 21px;
	top: 48px;
	bottom: -2px;
	border-left: 2px dashed #BFDBFE;
}

.pth-home-step:last-of-type::before {
	display: none;
}

.pth-home-step-num {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #2563EB;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.pth-home-step-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: #0F172A;
}

.pth-home-step-line {
	margin: 3px 0 0;
	font-size: 15px;
	line-height: 1.65;
	color: #64748B;
}

.pth-home-step-line [lang="hi"] {
	line-height: 1.75;
}

.pth-home-steps-cta {
	margin: 4px 0 0 60px;
}

.pth-home-how-visual img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* --- why (dark band) --- */

.pth-home-why {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	padding: 96px 24px;
	background: linear-gradient(135deg, #0F172A 0%, #09203F 55%, #1E3C72 100%);
	color: #E2E8F0;
}

/* Subtle grid overlay (spec §8). */
.pth-home-why::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	pointer-events: none;
}

.pth-home-why > * {
	position: relative;
	z-index: 1;
}

.pth-home-why-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 36px;
}

.pth-home-why-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 16px;
	padding: 28px;
	transition: border-color 0.15s ease;
}

.pth-home-why-card:hover {
	border-color: rgba(96, 165, 250, 0.5);
}

.pth-home-why-tile {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(37, 99, 235, 0.22);
	color: #93C5FD;
	display: grid;
	place-items: center;
}

.pth-home-why-tile .pth-home-icon {
	width: 24px;
	height: 24px;
}

.pth-home-why-title {
	margin: 14px 0 6px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
}

.pth-home-why-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #CBD5E1;
}

.pth-home-why-text [lang="hi"] {
	line-height: 1.75;
}

/* --- FAQ --- */

.pth-home-faq-section .pth-home-section-head {
	text-align: center;
}

.pth-home-faq-section .pth-home-sub[lang="hi"] {
	line-height: 1.75;
}

.pth-home-faq {
	max-width: 760px;
	margin: 36px auto 0;
}

.pth-home-faq-item {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	margin-bottom: 12px;
}

.pth-home-faq-item.is-open {
	border-color: #BFDBFE;
	background: #F8FAFC;
}

.pth-home-faq-qwrap {
	margin: 0;
}

.pth-home-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 20px 24px;
	background: none;
	border: 0;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	color: #0F172A;
	text-align: left;
	cursor: pointer;
}

.pth-home-faq-chevron {
	flex: 0 0 auto;
	color: #64748B;
	transition: transform 0.2s ease;
}

.pth-home-faq-chevron .pth-home-icon {
	width: 20px;
	height: 20px;
}

.pth-home-faq-item.is-open .pth-home-faq-chevron {
	transform: rotate(180deg);
}

.pth-home-faq-a {
	padding: 0 24px 20px;
}

.pth-home-faq-a[hidden] {
	display: none !important;
}

.pth-home-faq-a p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #475569;
}

/* --- CTA band --- */

.pth-home-cta {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	padding: 64px;
	background: #2563EB;
	color: #fff;
}

/* Party Bliss glow on the right (spec §10). */
.pth-home-cta::after {
	content: "";
	position: absolute;
	right: -12%;
	top: -40%;
	width: 520px;
	height: 520px;
	background: radial-gradient(closest-side, rgba(4, 190, 254, 0.55), transparent);
	opacity: 0.5;
	pointer-events: none;
}

.pth-home-cta-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 36px;
	align-items: center;
}

.pth-home-cta-grid-single {
	grid-template-columns: 1fr;
}

.pth-home-h2-cta {
	font-size: 32px;
}

.pth-home-cta-hindi {
	margin: 10px 0 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.6;
	color: #DBEAFE;
}

.pth-home-cta-btnwrap {
	margin: 24px 0 0;
}

.pth-home-cta-visual img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

/* --- disclaimer --- */

.pth-home-disclaimer {
	margin: 0;
	padding: 0 16px;
	text-align: center;
	font-size: 13px;
	line-height: 1.7;
	color: #64748B;
}

/* --- tablet --- */

@media (max-width: 1023px) {
	.pth-home-section,
	.pth-home-why {
		padding: 72px 24px;
	}

	.pth-home-trust-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.pth-home-test-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.pth-home-hero-grid {
		gap: 32px;
	}
}

/* --- mobile --- */

@media (max-width: 767px) {
	.pth-home section {
		margin-bottom: 16px;
	}

	.pth-home-section,
	.pth-home-why {
		padding: 56px 16px;
	}

	.pth-home-h2 {
		font-size: 28px;
		line-height: 1.35;
	}

	.pth-home-hero {
		padding: 40px 16px 48px;
	}

	.pth-home-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.pth-home-h1 {
		font-size: 34px;
	}

	.pth-home-hero-hindi {
		font-size: 26px;
	}

	.pth-home-hero-visual {
		max-width: 520px;
	}

	/* v1.5.1 — was a nowrap scroll rail; its min-content (the
	   full chip row, ~840px) sized the hero's grid track and
	   clipped the whole column. Chips now wrap inside the
	   column like the base rule. */
	.pth-home-chips {
		flex-wrap: wrap;
		overflow-x: visible;
		padding-bottom: 0;
	}

	.pth-home-chip {
		flex: 0 0 auto;
	}

	.pth-home-trust {
		padding: 20px 16px;
	}

	.pth-home-trust-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.pth-home-trust-icon {
		width: 40px;
		height: 40px;
	}

	.pth-home-cat-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		margin-top: 28px;
	}

	.pth-home-cat-card {
		min-height: 0;
		padding: 16px;
	}

	.pth-home-cat-wide {
		grid-column: span 2;
	}

	.pth-home-cat-tile {
		width: 40px;
		height: 40px;
	}

	.pth-home-cat-tile .pth-home-icon {
		width: 20px;
		height: 20px;
	}

	.pth-home-cat-name {
		font-size: 16px;
		margin-top: 10px;
	}

	.pth-home-test-grid {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 28px;
	}

	.pth-home-how-wrap {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
		margin-top: 28px;
	}

	/* Mobile order per brief: heading, then image, then steps. */
	.pth-home-how-visual {
		order: -1;
	}

	.pth-home-steps-cta {
		margin-left: 0;
	}

	.pth-home-steps-cta .pth-home-btn {
		width: 100%;
	}

	.pth-home-why-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 28px;
	}

	.pth-home-why-card {
		padding: 20px;
	}

	.pth-home-faq {
		margin-top: 28px;
	}

	.pth-home-faq-q {
		padding: 18px;
	}

	.pth-home-faq-a {
		padding: 0 18px 18px;
	}

	.pth-home-cta {
		padding: 48px 16px;
	}

	.pth-home-cta-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.pth-home-h2-cta {
		font-size: 26px;
	}

	.pth-home-cta-btnwrap .pth-home-btn {
		width: 100%;
	}
}

/* --- reduced motion: no hover lifts, no chevron spin --- */

@media (prefers-reduced-motion: reduce) {
	.pth-home *,
	.pth-home *::before,
	.pth-home *::after {
		transition: none !important;
	}

	.pth-home-cat-card:hover,
	.pth-home-btn-primary:hover {
		transform: none;
	}
}

/* ============================================================
   v2.0.0 — Official exam interface (owner reference 7 Nov 2026:
   the TCS/NTA online assessment look). The live test takes over
   the whole screen; start screens stay in the page as before.
   All rules are scoped to .pth-player-live, which the player JS
   adds to the app root only while a test is running.
   ============================================================ */

.pth-test-app.pth-player-live {
	position: fixed;
	inset: 0;
	z-index: 200000;
	background: #fff;
	overflow-y: auto;
	overflow-x: hidden;
	width: auto;
	max-width: none !important;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

body.pth-player-open {
	overflow: hidden !important;
}

.pth-player-live .pth-screen-exam {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.pth-player-live .pth-screen-result {
	max-width: 920px;
	margin: 0 auto;
	padding: 28px 18px 70px;
	width: 100%;
	box-sizing: border-box;
}

/* --- top bar --- */

.pth-tcs-topbar {
	position: sticky;
	top: 0;
	z-index: 500;
	display: flex;
	align-items: center;
	gap: 14px;
	background: linear-gradient(90deg, #2B5CAB 0%, #1E4390 100%);
	color: #fff;
	padding: 8px 16px;
	box-shadow: 0 2px 8px rgba(15, 35, 75, 0.35);
}

.pth-tcs-brand {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	flex: 0 0 auto;
}

.pth-tcs-brand-name {
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: 0.2px;
}

.pth-tcs-brand-sub {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #BFD4F5;
}

.pth-tcs-title {
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

.pth-tcs-title .pth-exam-running-title {
	font-size: 1.15rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pth-tcs-title .pth-exam-running-exam {
	color: #BFD4F5;
	font-size: 0.78rem;
}

.pth-tcs-headright {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.pth-player-live .pth-save-status {
	color: #DBEAFE;
	font-size: 0.78rem;
	max-width: 170px;
}

.pth-player-live .pth-save-status-error {
	color: #FECACA;
}

.pth-player-live .pth-save-status-saved {
	color: #BBF7D0;
}

.pth-tcs-timerwrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pth-tcs-timerlabel {
	font-size: 0.82rem;
	font-weight: 600;
	color: #DBEAFE;
}

.pth-player-live .pth-timer {
	background: #fff;
	color: #1E4390;
	font-size: 1.05rem;
	padding: 4px 12px;
	border-radius: 6px;
}

.pth-player-live .pth-timer-warning {
	background: #F59E0B;
	color: #111827;
}

.pth-player-live .pth-timer-danger {
	background: #DC2626;
	color: #fff;
}

.pth-tcs-exit {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 36px;
}

.pth-tcs-exit:hover {
	background: rgba(255, 255, 255, 0.25);
}

.pth-player-live .pth-banner {
	margin: 10px 16px 0;
}

/* --- sections strip --- */

.pth-tcs-sections {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	background: #EDF1F7;
	border-bottom: 1px solid #C9D4E4;
	padding: 8px 16px;
}

.pth-tcs-sections-label {
	font-weight: 700;
	font-size: 0.88rem;
	color: #33475B;
	margin-right: 2px;
}

.pth-tcs-tab {
	background: #fff;
	border: 1px solid #A9BCD6;
	color: #1E4390;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 36px;
}

.pth-tcs-tab:hover {
	background: #DCE8F7;
}

.pth-tcs-tab-active {
	background: #2B5CAB;
	border-color: #2B5CAB;
	color: #fff;
}

.pth-tcs-sections .pth-palette-toggle {
	margin: 0 0 0 auto;
}

@media (min-width: 768px) {
	.pth-tcs-sections-single {
		display: none;
	}
}

/* --- body / question area --- */

.pth-player-live .pth-exam-body {
	flex: 1 1 auto;
	gap: 0;
	align-items: stretch;
}

.pth-player-live .pth-question-area {
	border: none;
	border-radius: 0;
	padding: 18px 26px 10px;
	display: flex;
	flex-direction: column;
}

.pth-player-live .pth-question-head {
	border-bottom: 2px solid #E8EDF3;
	padding-bottom: 10px;
	margin-bottom: 16px;
}

.pth-player-live .pth-question-count {
	font-size: 1.05rem;
	font-weight: 700;
	color: #14273F;
}

.pth-question-marks-chip {
	margin-left: auto;
	background: #EEF4FF;
	color: #1D4ED8;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 0.78rem;
	font-weight: 700;
}

.pth-tcs-viewin {
	border: 1px solid #C7D2E0;
	background: #F8FAFC;
	color: #33475B;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.pth-player-live .pth-question-text {
	font-size: 1.08rem;
}

/* --- bottom action bar --- */

.pth-tcs-actions {
	position: sticky;
	bottom: 0;
	background: #fff;
	border-top: 1px solid #E2E8F0;
	padding: 12px 0 6px;
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.pth-tcs-actions-left {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.pth-btn-lightblue {
	background: #E8EEF7;
	border: 1px solid #B9C9DE;
	color: #1E3A5F;
}

.pth-btn-lightblue:hover {
	background: #D7E3F2;
}

.pth-tcs-actions .pth-btn {
	min-height: 46px;
	padding: 0 20px;
	font-size: 0.95rem;
}

.pth-tcs-save {
	background: #20509E;
	border-color: #20509E;
	padding: 0 34px !important;
	font-size: 1rem !important;
	font-weight: 700;
}

.pth-tcs-save:hover {
	background: #1A4488;
}

/* --- right panel: candidate, palette, legend --- */

.pth-player-live .pth-palette {
	flex: 0 0 300px;
	width: 300px;
	background: #F4F7FB;
	border: none;
	border-left: 1px solid #DBE3EC;
	border-radius: 0;
	padding: 16px;
	position: sticky;
	/* The top bar measures 67px tall (two-line brand block); the
	   palette must dock exactly under it. v2.0.0 used a guessed
	   53px and the base palette rule's z-index 100, so a scrolled
	   palette slid OVER the bar and clipped the timer (verified by
	   measurement, 7 Nov 2026). */
	top: 67px;
	max-height: calc(100vh - 67px);
	z-index: 40;
	overflow-y: auto;
	align-self: flex-start;
	box-sizing: border-box;
}

.pth-tcs-candidate {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid #DBE3EC;
	margin-bottom: 10px;
}

.pth-tcs-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #E3EBF5;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.pth-tcs-candidate-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.pth-tcs-candidate-name {
	font-weight: 700;
	font-size: 0.95rem;
	color: #14273F;
}

.pth-tcs-candidate-sub {
	font-size: 0.78rem;
	color: #64748B;
}

.pth-tcs-viewing {
	font-size: 0.86rem;
	color: #475569;
	margin: 0 0 10px;
}

.pth-tcs-viewing strong {
	color: #1E4390;
}

.pth-player-live .pth-palette-heading {
	font-size: 0.98rem;
	color: #14273F;
}

.pth-player-live .pth-palette-grid {
	gap: 7px;
}

.pth-player-live .pth-pal-btn {
	min-height: 42px;
	font-size: 0.92rem;
}

/* Official palette shapes: answered = green with the top-right
   corner cut, not answered = red with the bottom-right corner
   cut, marked = purple circle, answered & marked = purple
   circle with a green dot. */
.pth-player-live .pth-pal-answered {
	background: #2F9E44;
	border: none;
	border-radius: 3px;
	clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}

.pth-player-live .pth-pal-not-answered {
	background: #E03131;
	border: none;
	border-radius: 3px;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}

.pth-player-live .pth-pal-marked {
	background: #7048B6;
	border: none;
	border-radius: 50%;
}

.pth-player-live .pth-pal-answered-marked {
	background: #7048B6;
	border: none;
	border-radius: 50%;
}

.pth-player-live .pth-pal-not-visited {
	border-radius: 3px;
}

.pth-player-live .pth-pal-current {
	transform: scale(1.14);
	z-index: 2;
	font-weight: 800;
	outline: 2px solid #0F172A;
	outline-offset: 1px;
}

.pth-player-live .pth-legend-item {
	width: 100%;
}

.pth-legend-count {
	margin-left: auto;
	font-weight: 700;
	color: #0F172A;
}

.pth-dot-marked,
.pth-dot-answered-marked {
	border-radius: 50%;
}

.pth-tcs-instr-btn {
	width: 100%;
	min-height: 44px;
	margin-bottom: 10px;
}

.pth-modal-instructions {
	white-space: pre-line;
	line-height: 1.6;
	color: #334155;
}

/* --- player on small screens --- */

@media (max-width: 900px) {
	.pth-tcs-brand-sub {
		display: none;
	}

	.pth-tcs-brand-name {
		font-size: 0.85rem;
	}

	.pth-tcs-title .pth-exam-running-title {
		font-size: 0.92rem;
	}

	.pth-tcs-timerlabel {
		display: none;
	}

	.pth-player-live .pth-save-status {
		display: none;
	}

	.pth-player-live .pth-exam-body {
		flex-direction: column;
	}

	.pth-player-live .pth-question-area {
		padding: 14px 14px 8px;
	}

	.pth-player-live .pth-palette {
		display: none;
		width: 100%;
		flex: none;
		position: static;
		max-height: none;
		border-left: none;
		border-top: 1px solid #DBE3EC;
	}

	.pth-player-live.pth-palette-open .pth-palette {
		display: block;
	}

	.pth-tcs-actions .pth-btn {
		padding: 0 14px;
		font-size: 0.9rem;
	}

	.pth-tcs-save {
		padding: 0 22px !important;
	}
}

@media print {
	.pth-test-app.pth-player-live {
		position: static;
		overflow: visible;
	}
}

/* ============================================================
   v2.1.0 — [pth_exam_page]: the structured exam landing page
   (EXAM-PAGE-DESIGN.md). Facts strip, on-this-page chips, the
   owner's section order, syllabus tables, coming-soon cards and
   chapterwise rows. Test cards reuse the [pth_exam] card styles.
   ============================================================ */

.pth-ep-section {
	margin: 34px 0;
	scroll-margin-top: 96px;
}

.pth-ep-section > h2 {
	font-size: 1.45rem;
	color: #14273F;
	border-bottom: 3px solid #20509E;
	padding-bottom: 8px;
	margin: 0 0 16px;
}

.pth-ep-section > h3,
.pth-ep-section h3 {
	color: #14273F;
}

.pth-ep-facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 6px 0 18px;
}

.pth-ep-fact {
	background: linear-gradient(180deg, #F2F7FF 0%, #E7EEFA 100%);
	border: 1px solid #C9D9F2;
	border-radius: 12px;
	padding: 14px 10px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pth-ep-fact-value {
	font-size: 1.25rem;
	font-weight: 800;
	color: #20509E;
}

.pth-ep-fact-label {
	font-size: 0.8rem;
	color: #475569;
	font-weight: 600;
}

.pth-ep-toc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 10px 14px;
	margin-bottom: 8px;
}

.pth-ep-toc-label {
	font-weight: 700;
	color: #33475B;
	font-size: 0.9rem;
}

.pth-ep-toc a {
	background: #fff;
	border: 1px solid #B9C9DE;
	color: #20509E;
	border-radius: 999px;
	padding: 5px 13px;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
}

.pth-ep-toc a:hover {
	background: #20509E;
	color: #fff;
}

.pth-ep-soon {
	border: 1.5px dashed #B9C9DE;
	background: #F8FAFC;
	border-radius: 12px;
	padding: 16px 18px;
	color: #475569;
}

.pth-ep-soon strong {
	color: #B45309;
}

.pth-ep-pattern {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 16px 0;
}

.pth-ep-pattern h3 {
	margin-top: 0;
}

.pth-ep-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 18px;
	font-size: 0.95rem;
}

.pth-ep-table th,
.pth-ep-table td {
	border: 1px solid #DBE3EC;
	padding: 9px 12px;
	text-align: left;
}

.pth-ep-table thead th {
	background: #EDF3FB;
	color: #14273F;
}

.pth-ep-table tbody th {
	background: #F8FAFC;
	width: 42%;
	color: #33475B;
}

.pth-ep-chapter {
	margin: 22px 0;
}

.pth-ep-chapter-title {
	font-size: 1.12rem;
	margin: 0 0 10px;
	padding-left: 10px;
	border-left: 4px solid #20509E;
}

.pth-ep-chapter-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pth-test-topic {
	display: inline-block;
	background: #EEF4FF;
	color: #1D4ED8;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.85rem;
	font-weight: 700;
	margin: 6px 0 0;
}

.pth-ep-disclaimer {
	font-size: 0.85rem;
	color: #64748B;
	margin-top: 34px;
}

@media (max-width: 640px) {
	.pth-ep-facts {
		grid-template-columns: repeat(2, 1fr);
	}

	.pth-ep-section > h2 {
		font-size: 1.25rem;
	}
}

/* ============================================================
   v2.2.0 — exam grid tiles + official logos (owner design
   order 7 Nov 2026: grid boxes with padding and breathing
   room, a LIVE badge, the paper's timing/facts, a "Take Mock
   Test" button, and the authority's official logo on cards).
   ============================================================ */

.pth-exam-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 18px;
	/* Same measure as the theme's page-title column, so the grid
	   never sticks to the screen edges. */
	width: 100%;
	max-width: min(1200px, calc(100vw - 32px));
	margin: 14px auto 38px;
}

.pth-tile {
	background: #fff;
	border: 1px solid #DBE3EC;
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pth-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(20, 39, 63, 0.12);
	border-color: #A9BCD6;
}

.pth-tile-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	min-height: 46px;
	margin-bottom: 5px;
}

.pth-tile-logo {
	height: 46px;
	max-width: 118px;
	object-fit: contain;
	object-position: left center;
}

.pth-tile-logo-text {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: linear-gradient(135deg, #2B5CAB 0%, #1E4390 100%);
	color: #fff;
	font-weight: 800;
	font-size: 1rem;
	display: grid;
	place-items: center;
	letter-spacing: 0.5px;
}

.pth-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #E7F8EE;
	color: #15803D;
	border: 1px solid #BBE7CB;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	border-radius: 999px;
	padding: 4px 10px;
	white-space: nowrap;
}

.pth-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22C55E;
	animation: pth-live-pulse 1.6s ease-in-out infinite;
}

@keyframes pth-live-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
	50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.pth-soon-badge {
	display: inline-flex;
	align-items: center;
	background: #FEF3C7;
	color: #92400E;
	border: 1px solid #FDE68A;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.6px;
	border-radius: 999px;
	padding: 4px 10px;
	white-space: nowrap;
}

.pth-tile-title {
	font-size: 1.18rem;
	margin: 0;
	color: #14273F;
}

.pth-tile-title a {
	color: inherit;
	text-decoration: none;
}

.pth-tile-title a:hover {
	color: #20509E;
}

.pth-tile-meta {
	margin: 0;
	font-weight: 700;
	color: #33475B;
	font-size: 0.93rem;
}

.pth-tile-lang {
	margin: 0 0 6px;
	color: #64748B;
	font-size: 0.85rem;
}

.pth-tile-btn {
	margin-top: auto;
	text-align: center;
	padding: 12px 16px;
	font-size: 0.98rem;
	border-radius: 10px;
}

.pth-tile-btn::after {
	content: " →";
}

/* Homepage category cards: official logo in place of the
   generic icon tile when a logo is available. */
.pth-home-cat-tile-logo {
	width: auto;
	min-width: 52px;
	height: 52px;
	padding: 5px 10px;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	display: grid;
	place-items: center;
}

.pth-home-cat-tile-logo img {
	max-height: 40px;
	max-width: 104px;
	object-fit: contain;
}

/* Exam page brand row (logo + badges above the facts strip). */
.pth-ep-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 4px 0 16px;
}

.pth-ep-logo {
	height: 54px;
	max-width: 150px;
	object-fit: contain;
	object-position: left center;
}

.pth-ep-brand-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

@media (max-width: 560px) {
	.pth-exam-grid {
		grid-template-columns: 1fr;
	}

	.pth-tile {
		padding: 17px;
	}
}

/* v2.2.0 — exam pages breathe: the [pth_exam_page] wrapper takes
   the same centred measure as the theme's page-title column
   (1200px, at least 16px clear on each side) instead of running
   edge to edge. */
.pth-ep {
	width: 100%;
	max-width: min(1200px, calc(100vw - 32px));
	margin-inline: auto;
}

/* ============================================================
   v2.3.0 — official-style result scorecard (owner design
   order 7 Nov 2026: "result bhi sarkari tarah dikhao, achhe
   se padding do, chipka na rahe, mobile responsive").
   A bordered scorecard: blue header band, candidate details
   in official table rows, one big marks row, a section-wise
   table, and roomy answer-review cards.
   ============================================================ */

.pth-result {
	max-width: 880px;
	margin: 0 auto;
	padding: 10px 2px 44px;
}

.pth-scorecard {
	background: #fff;
	border: 1.5px solid #B9C8DC;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(20, 39, 63, 0.08);
	overflow: hidden;
}

.pth-sc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: linear-gradient(90deg, #1E4390 0%, #2B5CAB 100%);
	color: #fff;
	padding: 16px 26px;
}

.pth-sc-brand {
	font-size: 1.18rem;
	font-weight: 800;
	letter-spacing: 0.2px;
}

.pth-sc-tag {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 3px;
	border: 1.5px solid rgba(255, 255, 255, 0.65);
	border-radius: 999px;
	padding: 4px 12px;
	white-space: nowrap;
}

.pth-sc-body {
	padding: 26px 30px 30px;
}

.pth-sc-title-row {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.pth-sc-title {
	margin: 0;
	font-size: 1.5rem;
	color: #14273F;
}

.pth-sc-stamp {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 2.5px;
	border: 3px solid;
	border-radius: 7px;
	padding: 4px 16px;
	transform: rotate(-4deg);
}

.pth-sc-stamp-pass {
	color: #15803D;
	border-color: #15803D;
	background: #E7F8EE;
}

.pth-sc-stamp-fail {
	color: #B91C1C;
	border-color: #B91C1C;
	background: #FDECEC;
}

.pth-sc-meta,
.pth-sc-counts,
.pth-sc-sections {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 4px;
	font-size: 0.96rem;
}

.pth-sc-meta th,
.pth-sc-meta td,
.pth-sc-counts th,
.pth-sc-counts td,
.pth-sc-sections th,
.pth-sc-sections td {
	border: 1px solid #D7E0EC;
	padding: 11px 14px;
	text-align: left;
	vertical-align: top;
}

.pth-sc-meta th,
.pth-sc-counts th {
	background: #F2F6FC;
	color: #33475B;
	font-weight: 700;
}

.pth-sc-meta th {
	width: 190px;
}

.pth-sc-counts th {
	width: 24%;
}

.pth-sc-counts td {
	width: 26%;
	font-weight: 600;
	color: #14273F;
}

.pth-sc-bigrow {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 22px 0 8px;
}

.pth-sc-big {
	background: linear-gradient(180deg, #F4F8FF 0%, #EAF1FD 100%);
	border: 1px solid #C9D9F2;
	border-radius: 12px;
	padding: 18px 14px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.pth-sc-big-label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #5B7290;
}

.pth-sc-big-value {
	font-size: 1.75rem;
	font-weight: 800;
	color: #1E4390;
	line-height: 1.15;
}

.pth-sc-subtitle {
	font-size: 1.15rem;
	color: #14273F;
	margin: 26px 0 4px;
}

.pth-sc-sections thead th {
	background: #20509E;
	color: #fff;
	font-weight: 700;
	text-align: center;
}

.pth-sc-sections td {
	text-align: center;
	font-weight: 600;
	color: #14273F;
}

.pth-sc-sections td.pth-sc-sec-name {
	text-align: left;
	font-weight: 700;
}

.pth-sc-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 26px;
}

.pth-result .pth-progress {
	margin-top: 24px;
}

/* Roomier answer review (v2.3.0) */
.pth-review-heading {
	margin: 32px 0 14px;
	font-size: 1.3rem;
}

.pth-review-item {
	padding: 20px 22px;
	margin-bottom: 16px;
}

.pth-review-question {
	font-size: 1.03rem;
	line-height: 1.6;
	margin: 10px 0;
}

.pth-review-line {
	margin: 7px 0;
	line-height: 1.55;
}

.pth-review-explanation {
	margin-top: 12px;
	padding: 13px 15px;
	line-height: 1.6;
}

@media (max-width: 640px) {
	.pth-sc-head {
		padding: 13px 18px;
	}

	.pth-sc-brand {
		font-size: 1.02rem;
	}

	.pth-sc-body {
		padding: 20px 16px 24px;
	}

	.pth-sc-title {
		font-size: 1.28rem;
	}

	.pth-sc-bigrow {
		grid-template-columns: 1fr 1fr;
	}

	.pth-sc-big:first-child {
		grid-column: 1 / -1;
	}

	.pth-sc-big-value {
		font-size: 1.45rem;
	}

	.pth-sc-meta th {
		width: 118px;
	}

	.pth-sc-meta th,
	.pth-sc-meta td,
	.pth-sc-counts th,
	.pth-sc-counts td,
	.pth-sc-sections th,
	.pth-sc-sections td {
		padding: 9px 10px;
		font-size: 0.88rem;
	}

	.pth-review-item {
		padding: 16px;
	}
}

@media print {
	.pth-scorecard {
		box-shadow: none;
	}
}

/* ============================================================
   v2.3.1 — Full-bleed colour bands on the homepage (owner request
   7 Nov 2026): the hero, the dark Why band and the blue CTA band
   run edge-to-edge across the viewport instead of sitting inside
   the 1200px column as rounded cards. Their inner content keeps
   the old centred measure through a viewport-aware inline padding
   (the grids inside were 1150px wide in the card layout).
   ============================================================ */
.pth-home-hero,
.pth-home-why,
.pth-home-cta {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
	border-left: none;
	border-right: none;
	padding-inline: max(16px, calc((100vw - 1150px) / 2));
}

/* v2.3.2 — homepage category card live counts + pattern line. */
.pth-home-cat-meta {
	margin-top: 14px;
	font-size: 14px;
	font-weight: 700;
	color: #2563EB;
}
.pth-home-cat-pyq {
	margin-top: 3px;
	font-size: 12px;
	color: #94A3B8;
}

/* ============================================================
   v2.5.0 — Mobile Phase 1 (MOBILE-UX-SPEC, Claude + owner
   phasing). Every rule in this section is scoped to mobile
   widths; the desktop layout is untouched. Official logos are
   kept as-is (compact sizing only).
   ============================================================ */

@media (max-width: 767px) {

	/* ----- homepage: compact hero ----- */
	.pth-home-hero {
		padding: 28px 16px 32px;
	}

	.pth-home-eyebrow-pill {
		display: none;
	}

	.pth-home-hero-sub {
		display: none;
	}

	.pth-home-h1 {
		font-size: clamp(24px, 6.8vw, 28px);
		line-height: 1.2;
	}

	.pth-home-hero-hindi {
		font-size: 15px;
		font-weight: 600;
		margin-top: 8px;
	}

	.pth-home-hero-search {
		margin-top: 20px;
	}

	/* ----- homepage: popular chips = ONE scroll row ----- */
	.pth-home-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
		align-items: center;
	}

	.pth-home-chips::-webkit-scrollbar {
		display: none;
	}

	.pth-home-chips-label {
		flex: 0 0 auto;
	}

	.pth-home-chip {
		flex: 0 0 auto;
		height: 36px;
		display: inline-flex;
		align-items: center;
		padding-top: 0;
		padding-bottom: 0;
	}

	/* ----- homepage: categories = 2-column grid (owner order 8 Nov: "2-2 karke dikhao" — supersedes the Phase 1 3-column compact grid) ----- */
	.pth-home-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-top: 24px;
	}

	.pth-home-cat-card {
		min-height: 100px;
		padding: 14px 10px;
		align-items: center;
		text-align: center;
		border-radius: 14px;
	}

	/* The wide (Computer) card fills its row on mobile. */
	.pth-home-cat-wide {
		grid-column: span 2;
	}

	.pth-home-cat-tile {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.pth-home-cat-tile .pth-home-icon {
		width: 22px;
		height: 22px;
	}

	.pth-home-cat-name {
		font-size: 12.5px;
		font-weight: 600;
		line-height: 1.3;
		margin-top: 8px;
	}

	.pth-home-cat-hindi {
		font-size: 11px;
	}

	/* Sub-lists do not fit the compact tile (spec §B). */
	.pth-home-cat-list,
	.pth-home-cat-arrow {
		display: none;
	}

	/* Live counts stay, just small. */
	.pth-home-cat-meta {
		font-size: 11px;
		margin-top: 6px;
		line-height: 1.35;
	}

	.pth-home-cat-pyq {
		font-size: 10px;
		line-height: 1.35;
	}

	/* ----- category pages: compact exam rows ----- */
	.pth-exam-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		margin: 10px auto 28px;
	}

	.pth-tile {
		position: relative;
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 2px;
		align-items: start;
		padding: 12px;
		border-radius: 14px;
	}

	.pth-tile:hover {
		transform: none;
		box-shadow: none;
	}

	/* Flatten the top row: the logo becomes the left rail and
	   the badge pins to the card's top-right corner. */
	.pth-tile-top {
		display: contents;
	}

	.pth-tile-logo {
		grid-column: 1;
		grid-row: 1 / span 3;
		width: 40px;
		height: 40px;
		max-width: 40px;
		object-fit: contain;
		object-position: center;
	}

	.pth-tile-logo-text {
		width: 40px;
		height: 40px;
		font-size: 0.85rem;
		border-radius: 10px;
	}

	.pth-live-badge,
	.pth-soon-badge {
		position: absolute;
		top: 10px;
		right: 10px;
		font-size: 0.62rem;
		padding: 2px 7px;
		gap: 4px;
	}

	.pth-live-dot {
		width: 6px;
		height: 6px;
	}

	.pth-tile-title {
		grid-column: 2;
		font-size: 15px;
		line-height: 1.3;
		padding-right: 62px;
	}

	.pth-tile-meta {
		grid-column: 2;
		font-size: 12px;
	}

	.pth-tile-lang {
		grid-column: 2;
		font-size: 12px;
		margin: 0;
	}

	.pth-tile-btn {
		grid-column: 2;
		justify-self: end;
		margin-top: 6px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 10px 18px;
		font-size: 0.9rem;
	}

	/* ----- exam pages: intro clamp (visual only — the text
	   stays server-rendered in full for SEO) ----- */
	#pth-ep-intro > p {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* ----- player ergonomics ----- */
	.pth-option {
		min-height: 56px;
		width: 100%;
	}

	.pth-tcs-actions .pth-btn {
		min-height: 48px;
		font-size: 0.88rem;
	}

	.pth-tcs-actions {
		padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
	}

	/* Timer stays visible and readable on mobile. */
	.pth-tcs-timerwrap {
		display: flex;
	}

	.pth-timer {
		font-variant-numeric: tabular-nums;
		white-space: nowrap;
	}
}

/* ----- exam pages: floating Start pill (JS-injected,
   pth-frontend.js initStartPill; mobile only) ----- */
.pth-start-pill {
	display: none;
}

@media (max-width: 767px) {
	.pth-start-pill {
		position: fixed;
		right: 16px;
		bottom: calc(68px + env(safe-area-inset-bottom, 0px));
		z-index: 80;
		min-height: 48px;
		padding: 0 22px;
		border: none;
		border-radius: 999px;
		background: #2563EB;
		color: #fff;
		font-size: 15px;
		font-weight: 700;
		box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
	}

	.pth-start-pill.is-visible {
		display: inline-flex;
		align-items: center;
	}

	/* Never over the fullscreen player. */
	body.pth-player-open .pth-start-pill {
		display: none !important;
	}

	[data-pth-card-start].pth-start-highlight,
	[data-pth-start].pth-start-highlight {
		box-shadow: 0 0 0 3px #2563EB, 0 0 0 7px rgba(37, 99, 235, 0.28);
	}
}

/* ----- result scorecard: section table -> stacked cards ----- */
@media (max-width: 639px) {
	.pth-sc-sections,
	.pth-sc-sections tbody,
	.pth-sc-sections tr,
	.pth-sc-sections td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.pth-sc-sections thead {
		display: none;
	}

	.pth-sc-sections tr {
		border: 1px solid #C9D9F2;
		border-radius: 12px;
		padding: 10px 14px;
		margin-bottom: 10px;
		background: #fff;
	}

	.pth-sc-sections td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 6px 0;
		border: none;
		text-align: right;
	}

	.pth-sc-sections td::before {
		content: attr(data-label);
		font-weight: 700;
		font-size: 0.78rem;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		color: #5B7290;
		text-align: left;
	}

	.pth-sc-sections td.pth-sc-sec-name {
		display: block;
		text-align: left;
		font-size: 1rem;
		padding-bottom: 8px;
		margin-bottom: 4px;
		border-bottom: 1px solid #E2E8F0;
	}

	.pth-sc-sections td.pth-sc-sec-name::before {
		display: none;
	}

	/* Print is a desktop action; the first button in the
	   scorecard actions row is Print Result (renderResult). */
	.pth-sc-actions .pth-btn:first-child {
		display: none;
	}
}

/* ============================================================
   v2.7.0 — Mobile Phase 2 (MOBILE-UX-SPEC §D/§E): the player
   bottom bar in ONE row, the question palette as a right-side
   drawer, and the card Start bottom sheet. The new elements'
   base styles come first (drawer head + scrim hidden at every
   width unless their mobile rules below say otherwise; the
   sheet overlay is [hidden]-guarded like the submit modal).
   Every layout change is gated to <=767px — the breakpoint the
   rest of this stylesheet uses for mobile — so desktop
   rendering is unchanged.
   ============================================================ */

/* --- palette drawer chrome (JS-built in buildExamScreen) --- */

.pth-pal-drawer-head {
	display: none;
}

.pth-palette-scrim {
	display: none;
}

/* --- start bottom sheet (JS-built singleton) --- */

.pth-start-sheet-overlay {
	position: fixed;
	inset: 0;
	z-index: 150000;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

/* The overlay is toggled via the `hidden` property; the
   display:flex above would otherwise beat the UA [hidden] rule
   and leave a fixed dimmed layer over the whole page. */
.pth-start-sheet-overlay[hidden] {
	display: none !important;
	pointer-events: none;
}

.pth-start-sheet {
	position: relative;
	background: #fff;
	width: 100%;
	max-height: 84vh;
	max-height: 84dvh;
	overflow-y: auto;
	border-radius: 16px 16px 0 0;
	padding: 20px 18px calc(16px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
	box-shadow: 0 -12px 34px rgba(15, 23, 42, 0.28);
}

.pth-start-sheet-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	color: #475569;
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.pth-start-sheet-title {
	margin: 0 44px 6px 0;
	font-size: 1.12rem;
	line-height: 1.3;
	color: #0F172A;
}

.pth-start-sheet-meta {
	margin: 0 0 12px;
	font-size: 0.92rem;
	font-weight: 600;
	color: #475569;
}

.pth-start-sheet-details {
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	background: #F8FAFC;
	padding: 8px 12px;
	margin: 0 0 14px;
}

.pth-start-sheet-details summary {
	display: flex;
	align-items: center;
	min-height: 32px;
	font-weight: 700;
	color: #1E4390;
	cursor: pointer;
}

.pth-start-sheet-body {
	font-size: 0.94rem;
	line-height: 1.6;
	color: #334155;
}

.pth-start-sheet-body p {
	margin: 8px 0;
}

.pth-start-sheet-begin {
	width: 100%;
	min-height: 52px;
	font-size: 1rem;
}

body.pth-sheet-open {
	overflow: hidden;
}

@media (max-width: 767px) {

	/* ----- player bottom bar: TWO rows (spec §E, amended
	   v2.7.1 on owner request 2026-11-16) -----
	   Row 1: Review ~30% · Clear ~22% · Save & Next ~48% at
	   360px. Row 2: Submit Test full width, always visible —
	   pehle Submit sirf palette drawer ke andar tha, mobile
	   par dikhta hi nahi tha. The left group wrapper becomes
	   display:contents so all three row-1 buttons are direct
	   flex items of the bar. */
	.pth-tcs-actions {
		flex-wrap: wrap;
		gap: 8px;
	}

	.pth-tcs-actions-left {
		display: contents;
	}

	.pth-tcs-actions .pth-btn {
		height: 48px;
		min-height: 48px;
		padding: 0 8px;
		white-space: nowrap;
		text-align: center;
	}

	.pth-tcs-actions-left > .pth-btn:nth-of-type(1) {
		flex: 30 1 0;
	}

	.pth-tcs-actions-left > .pth-btn:nth-of-type(2) {
		flex: 22 1 0;
	}

	.pth-tcs-actions .pth-tcs-save {
		flex: 48 1 0;
		padding: 0 10px !important;
	}

	/* v2.7.1 — Submit Test: full-width second row of the bar. */
	.pth-tcs-actions .pth-submit-btn-mobile {
		display: block;
		flex: 1 1 100%;
		order: 4;
		height: 48px;
		min-height: 48px;
		font-size: 1rem;
		font-weight: 700;
	}

	/* Short labels on mobile: the full button text is swapped
	   for a ::after label (the real text stays in the DOM for
	   assistive tech). "Save & Next" keeps its live label —
	   the script shortens it to "Save" on the last question. */
	.pth-tcs-actions-left > .pth-btn {
		font-size: 0;
	}

	.pth-tcs-actions-left > .pth-btn::after {
		font-size: 0.92rem;
		font-weight: 600;
	}

	.pth-tcs-actions-left > .pth-btn:nth-of-type(1)::after {
		content: "Review";
	}

	.pth-tcs-actions-left > .pth-btn:nth-of-type(2)::after {
		content: "Clear";
	}

	/* ----- palette = right drawer (spec §E) -----
	   Fixed, full height, min(88vw, 340px). No transition —
	   the spec bans transitions inside the player; the drawer
	   swaps visibility/transform states instantly. Closed =
	   off-canvas + visibility:hidden (not focusable, no clicks);
	   .pth-palette-open on the app root opens it. The panel is
	   a flex column: header, viewing line, legend counts, the
	   scrolling grid, then Instructions + Submit as the sticky
	   footer (the grid is the only scrolling child). */
	.pth-test-app.pth-player-live .pth-palette {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(88vw, 340px);
		height: 100vh;
		height: 100dvh;
		max-height: none;
		flex: none;
		align-self: auto;
		overflow: hidden;
		transform: translateX(103%);
		visibility: hidden;
		z-index: 600;
		border: none;
		border-left: 1px solid #DBE3EC;
		border-radius: 0;
		box-shadow: -12px 0 32px rgba(15, 23, 42, 0.18);
		box-sizing: border-box;
	}

	.pth-test-app.pth-player-live.pth-palette-open .pth-palette {
		transform: none;
		visibility: visible;
	}

	.pth-test-app.pth-player-live.pth-palette-open .pth-palette-scrim {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(15, 23, 42, 0.5);
		z-index: 590;
	}

	.pth-pal-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		flex: 0 0 auto;
		padding-bottom: 10px;
		margin-bottom: 10px;
		border-bottom: 1px solid #DBE3EC;
	}

	.pth-pal-drawer-title {
		font-weight: 700;
		font-size: 0.98rem;
		color: #14273F;
	}

	.pth-pal-drawer-right {
		display: inline-flex;
		align-items: center;
		gap: 6px;
	}

	/* Mirrors the main timer (same warning/danger classes,
	   restyled for the light drawer header). */
	.pth-pal-timer {
		font-weight: 700;
		font-size: 0.95rem;
		font-variant-numeric: tabular-nums;
		color: #14273F;
	}

	.pth-pal-timer.pth-timer-warning {
		color: #B45309;
	}

	.pth-pal-timer.pth-timer-danger {
		color: #DC2626;
	}

	.pth-pal-close {
		width: 44px;
		height: 44px;
		flex: 0 0 auto;
		border: 1px solid #CBD5E1;
		border-radius: 10px;
		background: #fff;
		color: #334155;
		font-size: 1rem;
		line-height: 1;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	/* The desktop panel's candidate box and heading make way
	   for the drawer header. */
	.pth-test-app.pth-player-live .pth-tcs-candidate,
	.pth-test-app.pth-player-live .pth-palette-heading {
		display: none;
	}

	.pth-test-app.pth-player-live .pth-tcs-viewing {
		order: 1;
		flex: 0 0 auto;
	}

	/* Legend with counts above the grid (spec §E). */
	.pth-test-app.pth-player-live .pth-palette-legend {
		order: 2;
		flex: 0 0 auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 6px 12px;
	}

	.pth-test-app.pth-player-live .pth-palette-grid {
		order: 3;
		flex: 1 1 auto;
		overflow-y: auto;
		grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
		gap: 8px;
		align-content: start;
		margin-bottom: 0;
		padding: 2px 2px 6px;
	}

	.pth-test-app.pth-player-live .pth-pal-btn {
		min-height: 44px;
	}

	.pth-test-app.pth-player-live .pth-tcs-instr-btn {
		order: 4;
		flex: 0 0 auto;
		margin: 10px 0 8px;
	}

	/* Submit (with its existing confirm modal) = drawer footer. */
	.pth-test-app.pth-player-live .pth-submit-btn {
		order: 5;
		flex: 0 0 auto;
	}

	/* Status is not colour-only: a corner glyph per status
	   (not-answered / not-visited stay plain). The
	   answered-&-marked ::after restyles the base green dot
	   into the ● glyph at the same corner. */
	.pth-test-app.pth-player-live .pth-pal-answered::after {
		content: "✓";
		position: absolute;
		left: 4px;
		bottom: 2px;
		font-size: 10px;
		font-weight: 800;
		line-height: 1;
		color: #fff;
	}

	.pth-test-app.pth-player-live .pth-pal-marked::after {
		content: "⚑";
		position: absolute;
		left: 50%;
		bottom: 4px;
		transform: translateX(-50%);
		font-size: 9px;
		line-height: 1;
		color: #fff;
	}

	.pth-test-app.pth-player-live .pth-pal-answered-marked::after {
		content: "●";
		position: absolute;
		right: 4px;
		bottom: 3px;
		width: auto;
		height: auto;
		border: none;
		background: none;
		font-size: 9px;
		line-height: 1;
		color: #2F9E44;
	}
}
