/* Paulmar Self-Study — player, quiz, checkout ------------------------------------------ */
.pss-container { max-width: 1140px; margin: 0 auto; padding: 30px 20px 60px; }
.pss-study [hidden], .pss-quiz [hidden], .pss-checkout [hidden], .pss-feedback [hidden] { display: none !important; }
/* Palette follows the brand tokens (clever-child/tokens.css) with literal fallbacks for when the theme is absent. Gold is not the accent here: it sits under white text in badges, pressed tools and checked choices. */
.pss-study, .pss-quiz, .pss-checkout, .pss-feedback { --pss-accent: var(--pm-blue-800, #0e4c8a); --pss-accent-dark: var(--pm-navy, #0a2845); --pss-ink: var(--pm-ink, #16222e); --pss-muted: var(--pm-slate, #5b6770); --pss-line: var(--pm-line, #dbe3ea); --pss-bg: var(--pm-cloud, #f3f6f9); color: var(--pss-ink); }

.pss-study-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pss-study-title { font-size: 26px; line-height: 1.25; margin: 4px 0 0; }
.pss-back { font-size: 13px; color: var(--pss-muted); text-decoration: none; }
.pss-back:hover { color: var(--pss-accent-dark); }
.pss-study-head-meta { display: flex; gap: 10px; align-items: center; }
.pss-badge { display: inline-block; background: var(--pss-accent); color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; }
.pss-count-pill { font-size: 13px; color: var(--pss-muted); background: var(--pss-bg); border-radius: 12px; padding: 4px 10px; }

.pss-notice { padding: 12px 16px; border-radius: 4px; margin: 0 0 18px; font-size: 14px; border: 1px solid transparent; }
.pss-notice-success { background: #e9f8f2; border-color: #a5dfc6; color: #1c6b48; }
.pss-notice-info { background: #eaf4fb; border-color: #a9cfec; color: #1d4f7a; }
.pss-notice-warn { background: #fff8e1; border-color: #ffe58f; color: #7a5a00; }
.pss-notice-error { background: #fdecec; border-color: #f3b3b3; color: #8a1f1f; }

/* layout */
.pss-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .pss-layout { grid-template-columns: 1fr; } .pss-side { order: 2; } }

/* stage */
.pss-stage { position: relative; background: #0b1440; border-radius: 6px; overflow: hidden; outline: none; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.pss-stage:focus-visible { box-shadow: 0 0 0 3px var(--pss-accent), 0 6px 24px rgba(0,0,0,.18); }
.pss-stage-inner { position: relative; aspect-ratio: 4 / 3; max-height: calc(100vh - 220px); margin: 0 auto; }
@supports not (aspect-ratio: 4 / 3) { .pss-stage-inner { padding-top: 75%; } .pss-stage-inner .pss-slide-img { position: absolute; inset: 0; } }
.pss-slide-img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; cursor: pointer; }
.pss-loading { position: absolute; inset: 0; background: rgba(11,20,64,.35); }
.pss-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: pss-spin .8s linear infinite; }
@keyframes pss-spin { to { transform: rotate(360deg); } }
.pss-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 22px; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; border-radius: 4px; }
.pss-nav-prev { left: 8px; } .pss-nav-next { right: 8px; }
.pss-stage:hover .pss-nav, .pss-stage:focus-within .pss-nav { opacity: 1; }
.pss-nav:hover { background: rgba(0,0,0,.6); }
.pss-nav:disabled { opacity: 0 !important; cursor: default; }
@media (pointer: coarse) { .pss-nav { opacity: .7; } }
.pss-progress-thin { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); }
.pss-progress-thin span { display: block; height: 100%; background: var(--pss-accent); width: 0; transition: width .2s; }
.pss-is-fullscreen .pss-stage-inner { max-height: 100vh; height: 100vh; }
.pss-stage:fullscreen { background: #000; display: flex; align-items: center; justify-content: center; }
.pss-stage:fullscreen .pss-stage-inner { width: min(100vw, 133.33vh); height: 100vh; max-height: none; }

/* toolbar */
.pss-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }
.pss-toolbar-left, .pss-toolbar-right { display: flex; align-items: center; gap: 8px; }
.pss-tool { border: 1px solid var(--pss-line); background: #fff; color: var(--pss-ink); border-radius: 4px; padding: 8px 12px; font-size: 13px; cursor: pointer; line-height: 1; }
.pss-tool:hover { border-color: var(--pss-accent-dark); color: var(--pss-accent-dark); }
.pss-tool[aria-pressed="true"] { background: var(--pss-accent); border-color: var(--pss-accent); color: #fff; }
.pss-tool:disabled { opacity: .45; cursor: default; }
.pss-tool-primary { background: var(--pss-accent); border-color: var(--pss-accent); color: #fff; font-weight: 700; }
.pss-tool-primary:hover { background: var(--pss-accent-dark); border-color: var(--pss-accent-dark); color: #fff; }
.pss-counter { font-size: 14px; font-weight: 700; min-width: 70px; text-align: center; }
@media (max-width: 480px) { .pss-tool span { display: none; } .pss-tool { padding: 8px 10px; } .pss-toolbar-left .pss-tool span { display: inline; } }

.pss-slide-title { margin-top: 12px; font-size: 14px; color: var(--pss-muted); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.pss-audio { margin-top: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--pss-bg); padding: 10px 12px; border-radius: 4px; }
.pss-audio audio { flex: 1 1 260px; max-width: 100%; }
.pss-audio-auto { font-size: 13px; color: var(--pss-muted); }
.pss-links { margin-top: 12px; font-size: 14px; }
.pss-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px; margin-top: 12px; border-top: 1px solid var(--pss-line); scroll-snap-type: x proximity; }
.pss-thumb { position: relative; flex: 0 0 auto; width: 112px; border: 2px solid transparent; border-radius: 4px; padding: 0; background: #fff; cursor: pointer; scroll-snap-align: center; }
.pss-thumb img { display: block; width: 100%; height: auto; border-radius: 3px; }
.pss-thumb span { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.pss-thumb.is-current { border-color: var(--pss-accent); }
.pss-thumb.is-locked { opacity: .35; cursor: default; }
.pss-notes { margin-top: 16px; background: var(--pss-bg); border-radius: 4px; padding: 16px 20px; font-size: 14px; }
.pss-notes h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; color: var(--pss-muted); }
.pss-notes p { white-space: pre-line; margin: 0; }
.pss-notes-empty { color: var(--pss-muted); font-style: italic; }
/* "Ask a question" panel — shares the .pss-notes look; the textarea reuses .pss-fb-comments */
.pss-question textarea { margin: 4px 0 10px; min-height: 90px; background: #fff; }
.pss-question-hint { color: var(--pss-muted); font-size: 13px; white-space: normal; margin: 0 0 8px; }
.pss-question-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pss-question-count { margin-left: auto; font-size: 12px; color: var(--pss-muted); }
.pss-question .pss-notice { margin: 12px 0 0; }

/* sidebar */
.pss-side-box { background: #fff; border: 1px solid var(--pss-line); border-radius: 6px; padding: 18px 20px; margin-bottom: 18px; }
.pss-side-box h3 { font-size: 15px; margin: 0 0 12px; }
.pss-side-tips ul { margin: 0 0 0 18px; padding: 0; font-size: 13px; color: var(--pss-muted); }
.pss-side-tips li { margin-bottom: 6px; }
.pss-progress-bar { height: 8px; background: var(--pss-bg); border-radius: 4px; overflow: hidden; }
.pss-progress-bar span { display: block; height: 100%; width: 0; background: var(--pss-accent); transition: width .3s; }
.pss-progress-text { font-size: 13px; color: var(--pss-muted); margin: 8px 0 14px; }
.pss-quiz-btn { display: block !important; text-align: center; margin: 0 !important; }
.pss-quiz-btn.is-disabled { opacity: .45; pointer-events: none; }
.pss-quiz-help { font-size: 12px; color: var(--pss-muted); margin: 10px 0 0; }
.pss-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #8a1f1f; color: #fff; padding: 10px 16px; border-radius: 4px; font-size: 13px; z-index: 9999; max-width: min(90vw, 560px); text-align: center; line-height: 1.5; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.pss-toast-success { background: #1c6b48; }

/* course landing buttons */
.pss-course-buttons .gdlr-lms-button { margin-right: 8px; margin-bottom: 8px; }
.pss-button-note { font-size: 12px; color: #7a7a7a; margin-top: 8px; line-height: 1.5; }
.pss-dashboard-cert-link { font-size: 12px; margin-left: 10px; }

/* Pre-enrolment instructions on the LMS login page (templates/login-instructions.php). */
.pss-instructions { max-width: 900px; margin: 0 0 34px; color: #555; font-size: 14px; line-height: 1.7; }
.pss-instructions .pss-li-title { margin: 0 0 4px; font-size: 24px; }
.pss-instructions .pss-li-subtitle { margin: 0 0 20px; font-size: 14px; font-style: italic; color: #8a8a8a; }
.pss-instructions .pss-li-list { margin: 0 0 26px; padding-left: 22px; }
.pss-instructions .pss-li-list li { margin: 0 0 7px; }
.pss-instructions .pss-li-list ul { margin: 7px 0 0; padding-left: 22px; list-style: circle; }
.pss-instructions .pss-li-disclaimer-title { margin: 0 0 8px; font-size: 15px; letter-spacing: .06em; }
.pss-instructions .pss-li-disclaimer { margin: 0; padding: 14px 18px; background: #f7f7f7;
	border-left: 3px solid #d8d8d8; font-size: 13px; line-height: 1.65; }

/* The two routes onward: create an account, or sign in. The LMS sign-in form is moved
   inside the second card, so the card styling has to tame the form's own layout. */
.pss-login-paths { display: flex; flex-wrap: wrap; align-items: stretch; gap: 18px;
	margin: 0 0 32px; max-width: 900px; }
.pss-login-paths .pss-login-path { flex: 1 1 300px; padding: 20px 22px; background: #f7f7f7;
	border: 1px solid #e5e5e5; border-radius: 4px;
	display: flex; flex-direction: column; }
.pss-login-paths .pss-login-path h3 { margin: 0 0 8px; font-size: 17px; }
.pss-login-paths .pss-login-path p { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: #6f6f6f; }
/* The cards stretch to match, and the sign-in form makes the right one much the taller.
   Anchor the button to the bottom so the slack reads as deliberate spacing rather than a
   gap under a stranded button — headings stay aligned across both cards. */
.pss-login-paths .pss-login-cta { display: inline-block; align-self: flex-start; margin-top: auto; }

/* The form's Username/Password are floated halves at full width; inside a card they stack. */
.pss-login-path-returning .gdlr-lms-form { margin: 0; }
.pss-login-path-returning .gdlr-lms-form .gdlr-lms-half-left,
.pss-login-path-returning .gdlr-lms-form .gdlr-lms-half-right {
	width: 100%; float: none; margin: 0 0 12px; }
.pss-login-path-returning .gdlr-lms-form label { display: block; margin-bottom: 5px; font-size: 13px; }
.pss-login-path-returning .gdlr-lms-form input[type="text"],
.pss-login-path-returning .gdlr-lms-form input[type="password"] {
	width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; }
.pss-login-path-returning .gdlr-lms-form p { margin: 0 0 12px; }
.pss-login-path-returning .gdlr-lms-form .gdlr-lms-lost-password { font-size: 13px; }
.pss-login-path-returning .gdlr-lms-form p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
	.pss-login-paths { display: block; }
	.pss-login-paths .pss-login-path { margin-bottom: 14px; }
}

/* "Class Information" / "Enroll Now" (or "View Course" once enrolled) buttons on a
   course grid card.
   These sit inside the LMS's own .price-button span so they inherit the theme's
   button colour and padding; the span was never a link, so the anchor needs the
   colour and the block behaviour. */
.pss-grid-buttons { float: none !important; }
.pss-grid-buttons .pss-grid-btn { margin: 0 8px 8px 0; padding: 0 !important; }
.pss-grid-buttons .pss-grid-btn > a,
.pss-grid-buttons .pss-grid-btn > a:hover,
.pss-grid-buttons .pss-grid-btn > a:focus { display: block; padding: 6px 18px; color: inherit; text-decoration: none; }
.pss-grid-buttons .pss-grid-btn-register,
.pss-grid-buttons .pss-grid-btn-view { opacity: 1; }
.pss-grid-buttons .pss-grid-btn-info { opacity: .82; }
.pss-grid-buttons .pss-grid-btn:hover { opacity: 1; }
/* Enrolment closed: "Registration opens soon" is a label (an <a> without href), not a button. */
.pss-grid-buttons .pss-grid-btn-closed > a { cursor: default; }
.gdlr-lms-course-grid2 .gdlr-lms-course-price span.pss-grid-btn-closed,
.gdlr-lms-course-grid2 .gdlr-lms-course-price span.pss-grid-btn-closed:hover { background: var(--pm-blue-050, #eef3f8); color: var(--pm-navy, #1b2a41); box-shadow: inset 0 0 0 1.5px var(--pm-blue-300, #a9c1dc); opacity: 1; }
.pss-course-buttons .pss-enrol-closed { margin: 0 0 10px; }

/* quiz */
.pss-questions { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.pss-question { background: #fff; border: 1px solid var(--pss-line); border-radius: 6px; padding: 16px 18px; margin: 0 0 12px; }
.pss-question.is-missing { border-color: #e0a0a0; background: #fff8f8; }
.pss-question.is-correct { border-color: #a5dfc6; background: #f2fbf7; }
.pss-question.is-wrong { border-color: #f3b3b3; background: #fff5f5; }
.pss-question-text { font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
.pss-qnum { color: var(--pss-muted); font-weight: 700; margin-right: 4px; }
.pss-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.pss-choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--pss-line); border-radius: 20px; padding: 6px 16px 6px 12px; cursor: pointer; font-size: 14px; user-select: none; }
.pss-choice:hover { border-color: var(--pss-accent-dark); }
.pss-choice input { margin: 0; accent-color: var(--pss-accent-dark); }
.pss-choice:has(input:checked) { background: var(--pss-accent); border-color: var(--pss-accent); color: #fff; }
.pss-question-mark { font-size: 13px; font-weight: 700; margin-top: 8px; }
.is-correct .pss-question-mark { color: #1c6b48; } .is-wrong .pss-question-mark { color: #8a1f1f; }
.pss-quiz-intro { background: var(--pss-bg); border-radius: 4px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.pss-quiz-footer { position: sticky; bottom: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(4px); border-top: 1px solid var(--pss-line); padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pss-quiz-status { font-size: 14px; color: var(--pss-muted); }
.pss-quiz-status.is-complete { color: #1c6b48; font-weight: 700; }
/* developer tools (settings flag, off by default) — deliberately loud so they cannot pass for UI */
.pss-dev-tools { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px dashed #b45309; border-radius: 4px; background: #fff8e1; }
.pss-dev-tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #b45309; }
.pss-quiz-error { margin-top: 12px; color: #8a1f1f; background: #fdecec; border: 1px solid #f3b3b3; padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.pss-result-card { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; border-radius: 8px; padding: 22px; margin-bottom: 20px; border: 1px solid var(--pss-line); background: #fff; }
.pss-result-card.is-pass { border-color: #a5dfc6; background: #f2fbf7; }
.pss-result-card.is-fail { border-color: #f3b3b3; background: #fff5f5; }
/* Retake notice: no score column, and neutral rather than "failed" colouring. */
.pss-result-card.is-retake { grid-template-columns: 1fr; border-color: #a9cfec; background: #f4f9fd; }
.pss-result-score { text-align: center; }
.pss-result-score strong { display: block; font-size: 42px; line-height: 1; }
.pss-result-score span { font-size: 13px; color: var(--pss-muted); }
.pss-result-text h2 { margin: 0 0 8px; font-size: 22px; }
.pss-result-text p { margin: 0 0 10px; }
.pss-result-text .gdlr-lms-button { margin-right: 8px; margin-bottom: 6px; }
@media (max-width: 600px) { .pss-result-card { grid-template-columns: 1fr; text-align: center; } }
.pss-history { margin-bottom: 20px; font-size: 13px; color: var(--pss-muted); }

/* class evaluation (templates/course-feedback.php) — reuses the quiz's question / pill kit */
.pss-result-card.is-single { grid-template-columns: 1fr; }
.pss-fb-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; background: #fff; border: 1px solid var(--pss-line); border-radius: 6px; padding: 16px 20px; margin: 0 0 22px; }
.pss-fb-head dl { margin: 0; }
.pss-fb-head dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--pss-muted); margin: 0 0 3px; }
.pss-fb-head dd { margin: 0; font-weight: 700; font-size: 15px; }
.pss-fb-section { font-size: 18px; margin: 26px 0 4px; }
.pss-fb-section-hint { font-size: 13px; color: var(--pss-muted); margin: 0 0 12px; }
/* 1–10 pills: the number is the whole control, so the radio dot is hidden and focus goes on the pill. */
.pss-fb-scale .pss-choice { position: relative; padding: 6px 0; min-width: 46px; justify-content: center; }
.pss-fb-scale .pss-choice input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.pss-fb-scale .pss-choice:has(input:focus-visible) { outline: 2px solid var(--pss-accent-dark); outline-offset: 2px; }
.pss-fb-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--pss-muted); margin-top: 6px; max-width: 560px; }
.pss-fb-comments { width: 100%; box-sizing: border-box; min-height: 120px; border: 1px solid var(--pss-line); border-radius: 4px; padding: 10px 12px; font: inherit; color: inherit; resize: vertical; }
.pss-fb-field-error { font-size: 13px; font-weight: 700; color: #8a1f1f; margin-top: 8px; }
.pss-fb-answers { background: #fff; border: 1px solid var(--pss-line); border-radius: 6px; padding: 18px 22px; margin-bottom: 20px; }
.pss-fb-answers h3 { font-size: 15px; margin: 0 0 10px; }
.pss-fb-answers table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pss-fb-answers th, .pss-fb-answers td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--pss-line); vertical-align: top; }
/* The theme paints every table th navy (paulmar.css `table tr th`); these are labels, not headers. */
.pss-fb-answers th { background: transparent; font-weight: 400; font-size: inherit; color: var(--pss-muted); width: 60%; padding-right: 16px; }
.pss-fb-answers tr:last-child th, .pss-fb-answers tr:last-child td { border-bottom: 0; }
.pss-fb-comments-text { white-space: pre-wrap; }

/* checkout */
.pss-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 28px; }
@media (max-width: 800px) { .pss-checkout-grid { grid-template-columns: 1fr; } }
.pss-order, .pss-pay { background: #fff; border: 1px solid var(--pss-line); border-radius: 6px; padding: 22px 24px; }
.pss-order h2, .pss-pay h2 { font-size: 16px; margin: 0 0 14px; }
.pss-pay h2 + p + p + h2 { margin-top: 22px; }
.pss-order-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: start; }
.pss-order-thumb img { width: 110px; height: auto; border-radius: 4px; }
.pss-order-text h3 { font-size: 16px; margin: 0 0 8px; }
.pss-order-facts { margin: 0 0 0 16px; padding: 0; font-size: 13px; color: var(--pss-muted); }
.pss-order-price { font-size: 18px; font-weight: 700; }
.pss-order-total { display: flex; justify-content: space-between; border-top: 1px solid var(--pss-line); margin-top: 16px; padding-top: 12px; font-size: 16px; }
@media (max-width: 520px) { .pss-order-item { grid-template-columns: 1fr; } }
.pss-student { margin: 0 0 6px; }
.pss-small { font-size: 12px; color: var(--pss-muted); }
.pss-paypal-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; border-radius: 24px; padding: 13px 18px; background: #ffc439; color: #111; font-size: 15px; font-weight: 700; cursor: pointer; }
.pss-paypal-btn:hover { background: #f2ba36; }
.pss-pp-word { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.pss-pp-word em { font-style: normal; color: #003087; } .pss-pp-word b { color: #009cde; }
