/* Cue Training. Brand: burgundy pink, beige, blush, warm near-black. Change fonts here in one place. */
:root {
	--sct-pink: #BD2754;
	--sct-pink-dark: #9E1F45;
	--sct-beige: #F8EFE6;
	--sct-blush: #F6E4DD;
	--sct-ink: #2A1E22;
	--sct-ink-2: #4A3A3F;
	--sct-muted: #6B5A5F;
	--sct-line: #EAD9CC;
	--sct-line-2: #D9C4B8;
	--sct-white: #FFFFFF;
	--sct-serif: 'Fraunces', Georgia, serif;
	--sct-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body.sct { margin: 0; }
body.sct { background: var(--sct-beige); color: var(--sct-ink); font-family: var(--sct-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.sct a { color: var(--sct-pink-dark); }
.sct :focus-visible { outline: 3px solid var(--sct-pink); outline-offset: 2px; }
.sct-shell { min-height: 100vh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--sct-beige); }
.sct-shell.wide { max-width: 1280px; }

/* Header */
.sct-top { background: var(--sct-pink); color: #fff; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 5; }
.sct-brand { display: flex; align-items: center; gap: 8px; color: #fff !important; text-decoration: none; min-height: 44px; }
.sct-word { font-size: 20px; letter-spacing: -0.01em; }
.sct-word b { font-weight: 700; }
.sct-pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.18); }
.sct-pill.student { background: #fff; color: var(--sct-pink-dark); font-weight: 800; letter-spacing: .04em; }
.sct-top-right { display: flex; align-items: center; gap: 8px; }
.sct-avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--sct-beige); color: var(--sct-pink-dark) !important; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; text-decoration: none; }
.sct-switch { color: #fff !important; font-size: 13px; font-weight: 600; }
.sct-shared { background: var(--sct-ink); color: #fff; font-size: 13px; padding: 8px 20px; display: flex; justify-content: space-between; }
.sct-shared a { color: #fff; font-weight: 700; }

main.sct-main { flex: 1; padding-bottom: 96px; }
.sct-sec { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.sct-sec.white { background: #fff; }
.sct-sec.blush { background: var(--sct-blush); }
.sct-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sct-pink-dark); }
.sct h1, .sct h2, .sct h3 { font-family: var(--sct-serif); font-weight: 400; margin: 0; line-height: 1.08; }
.sct h1 { font-size: 34px; }
.sct h2 { font-size: 25px; }
.sct h1 em, .sct h2 em { color: var(--sct-pink); }
.sct p { margin: 0; color: var(--sct-ink-2); }
.sct-small { font-size: 13px; color: var(--sct-muted); }

/* Buttons */
.sct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; font: 700 16px var(--sct-sans); text-decoration: none; cursor: pointer; }
.sct-btn-primary { background: var(--sct-pink); color: #fff !important; }
.sct-btn-dark { background: var(--sct-ink); color: #fff !important; }
.sct-btn-light { background: #fff; color: var(--sct-ink) !important; }
.sct-btn-line { background: #fff; color: var(--sct-pink-dark) !important; border: 1px solid var(--sct-pink); min-height: 40px; padding: 0 14px; font-size: 13px; }
.sct-btn-block { width: 100%; }
.sct-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Cards */
.sct a.sct-card, .sct a.sct-card:visited { color: var(--sct-ink); }
.sct-card { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--sct-ink); }
.sct-card.dark { background: var(--sct-ink); color: #fff; border-radius: 22px; padding: 20px; gap: 14px; }
.sct-card.dark p, .sct-card.dark .sct-small { color: var(--sct-blush); }
.sct-card.dashed { border: 1px dashed var(--sct-line-2); }
.sct-row { display: flex; align-items: center; gap: 14px; }
.sct-grow { flex: 1; min-width: 0; }
.sct-title { font-size: 16px; font-weight: 700; }
.sct-bar { height: 6px; border-radius: 3px; background: var(--sct-line); overflow: hidden; }
.sct-bar > span { display: block; height: 100%; background: var(--sct-pink); border-radius: 3px; }
.sct-card.dark .sct-bar { background: rgba(255,255,255,.2); }
.sct-card.dark .sct-bar > span { background: var(--sct-blush); }
.sct-tag { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--sct-blush); color: var(--sct-pink-dark); white-space: nowrap; }
.sct-tag.dark { background: var(--sct-ink); color: #fff; }
.sct-tag.pink { background: var(--sct-pink); color: #fff; }
.sct-ring { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sct-ring > span { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--sct-ink); }
.sct-card.dark .sct-ring > span { background: var(--sct-ink); color: #fff; font-family: var(--sct-serif); font-size: 20px; }
.sct-num { font-family: var(--sct-serif); font-size: 26px; color: var(--sct-pink); width: 34px; flex-shrink: 0; }
.sct-ribbon { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 4px; margin: 0 -20px; scroll-snap-type: x mandatory; }
.sct-ribbon .sct-card { width: 210px; flex-shrink: 0; scroll-snap-align: start; padding: 0; overflow: hidden; }
.sct-ribbon .sct-thumb { height: 96px; background: var(--sct-pink); display: flex; align-items: flex-end; padding: 10px 12px; }
.sct-ribbon .sct-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }

/* Lessons */
.sct-video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 20px; background: var(--sct-ink); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--sct-blush); }
.sct-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sct-point { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--sct-beige); }
.sct-point b { color: var(--sct-pink-dark); font-size: 12px; letter-spacing: .08em; }
.sct-lessonlist a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--sct-ink); }
.sct-lessonlist a.now { background: var(--sct-blush); font-weight: 700; }
.sct-dot { width: 28px; height: 28px; border-radius: 14px; border: 2px solid var(--sct-line-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.sct-dot.done { background: var(--sct-ink); border-color: var(--sct-ink); }
.sct-dot.now { background: var(--sct-pink); border-color: var(--sct-pink); }
.sct-stick { position: sticky; bottom: 64px; z-index: 4; padding: 12px 20px; background: var(--sct-beige); border-top: 1px solid var(--sct-line); }

/* Forms */
.sct-form { display: flex; flex-direction: column; gap: 14px; }
.sct-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.sct-field input, .sct-field select { min-height: 52px; padding: 0 16px; border: 1px solid var(--sct-line-2); border-radius: 14px; background: #fff; font: 16px var(--sct-sans); color: var(--sct-ink); }
.sct-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sct-ink-2); }
.sct-check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--sct-pink); }
.sct-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 16px; border: 2px solid var(--sct-line); border-radius: 16px; background: #fff; cursor: pointer; }
.sct-choice:has(input:checked) { border-color: var(--sct-pink); }
.sct-choice input { accent-color: var(--sct-pink); width: 22px; height: 22px; }
.sct-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sct-chips label { position: relative; }
.sct-chips input { position: absolute; opacity: 0; }
.sct-chips span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.sct-chips input:checked + span { background: var(--sct-ink); color: #fff; }
.sct-chips input:focus-visible + span { outline: 3px solid var(--sct-pink); }
.sct-error { background: #fff; border: 2px solid var(--sct-pink); color: var(--sct-ink); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.sct-ok { background: var(--sct-ink); color: #fff; border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.sct-student-banner { background: var(--sct-ink); color: #fff; padding: 10px 20px; font-weight: 800; letter-spacing: .12em; font-size: 13px; text-align: center; }

/* Bottom nav */
.sct-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-top: 1px solid var(--sct-line); padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); z-index: 6; }
.sct-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; justify-content: center; font-size: 11px; color: var(--sct-muted); text-decoration: none; font-weight: 500; }
.sct-nav a.on { color: var(--sct-pink-dark); font-weight: 700; }
.sct-nav svg { width: 22px; height: 22px; }

/* Certificate (prints to A4) */
.sct-cert { background: #fff; margin: 20px; border-radius: 22px; padding: 40px 28px; text-align: center; border: 1px solid var(--sct-line); display: flex; flex-direction: column; gap: 14px; }
@media print {
	.sct-top, .sct-nav, .sct-noprint, .sct-shared { display: none !important; }
	body.sct { background: #fff; }
	.sct-cert { border: 2px solid var(--sct-pink); margin: 0; }
}

/* Admin reports */
.sct-admin { padding: 32px 24px 60px; display: flex; flex-direction: column; gap: 22px; }
.sct-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.sct-kpi { background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.sct-kpi.dark { background: var(--sct-ink); color: #fff; }
.sct-kpi .big { font-family: var(--sct-serif); font-size: 42px; line-height: 1; }
.sct-panel { background: #fff; border-radius: 20px; padding: 22px; overflow-x: auto; }
.sct-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.sct-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.sct-table th { text-align: left; font-size: 12px; color: var(--sct-muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 10px; border-bottom: 1px solid var(--sct-line); }
.sct-table td { padding: 12px 8px; border-bottom: 1px solid #F3E7DE; vertical-align: middle; }
.sct-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sct-filters a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--sct-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.sct-filters a.on { background: var(--sct-ink); color: #fff; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Photography, matching servicecue.com: full bleed panels beside headline copy */
.sct-banner { position: relative; margin: 0 20px; border-radius: 22px; overflow: hidden; background: var(--sct-blush); aspect-ratio: 16 / 9; }
.sct-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sct-thumb-photo { display: block; width: 100%; height: 120px; object-fit: cover; background: var(--sct-blush); }
.sct a.sct-card.has-photo { padding: 0; overflow: hidden; }
.sct-card.has-photo .sct-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Service Cue Hub page (sits inside the website theme) ---------- */
.sct-hubwrap { --sct-pink: #BD2754; --sct-pink-dark: #9E1F45; --sct-blush: #F6E4DD; --sct-ink: #2A1E22; --sct-ink-2: #4A3A3F; --sct-line: #EAD9CC; --sct-serif: 'Fraunces', Georgia, serif; --sct-sans: 'Inter', Arial, sans-serif;
	max-width: 1180px; margin: 0 auto; padding: 8px 0 56px; font-family: var(--sct-sans); color: var(--sct-ink); }
.sct-hubhead { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 0 32px; }
.sct-hub-eyebrow { font-family: var(--sct-sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sct-pink-dark); }
.sct-hubwrap .sct-hub-h1 { font-family: var(--sct-serif); font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; margin: 0; color: var(--sct-ink); letter-spacing: -0.01em; }
.sct-hubwrap .sct-hub-h1 em { font-style: italic; color: var(--sct-pink); }
.sct-hub-lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--sct-ink-2); }
.sct-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.sct-hubwrap a.sct-hub-card { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--sct-line); text-decoration: none !important; color: var(--sct-ink) !important; transition: transform .15s ease, box-shadow .15s ease; }
.sct-hubwrap a.sct-hub-card * { text-decoration: none !important; }
.sct-hubwrap a.sct-hub-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(42,30,34,.10); }
.sct-hubwrap a.sct-hub-card:focus-visible { outline: 3px solid var(--sct-pink); outline-offset: 3px; }
.sct-hub-media { display: block; aspect-ratio: 4 / 3; background: var(--sct-blush); overflow: hidden; }
.sct-hub-media img { display: block; width: 100%; height: 100%; }
.sct-hub-media.fit-cover img { object-fit: cover; }
.sct-hub-media.fit-contain img { object-fit: contain; padding: 18px 0 0; object-position: center bottom; }
.sct-hub-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.sct-hubwrap .sct-hub-title { font-family: var(--sct-serif); font-size: 26px; line-height: 1.1; color: var(--sct-ink) !important; }
.sct-hubwrap .sct-hub-text { font-size: 15px; line-height: 1.5; color: var(--sct-ink-2) !important; flex: 1; margin-bottom: 8px; }
.sct-hubwrap .sct-hub-card .sct-btn { align-self: flex-start; min-height: 46px; padding: 0 20px; font-size: 15px; border-radius: 999px; background: var(--sct-pink); color: #fff !important; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }

/* The Hub has its own heading, so hide the theme's page title on that page */
body:has(.sct-hubwrap) .wp-block-post-title, body:has(.sct-hubwrap) h1.entry-title { display: none; }

/* Coming soon card */
.sct-hubwrap .sct-hub-card.is-soon { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--sct-line); color: var(--sct-ink); cursor: default; }
.sct-hub-card.is-soon .sct-hub-media { position: relative; }
.sct-hub-card.is-soon .sct-hub-media img { filter: grayscale(.35); opacity: .75; }
.sct-soon-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--sct-ink); color: #fff; font: 700 12px var(--sct-sans); letter-spacing: .08em; text-transform: uppercase; }
.sct-hubwrap .sct-hub-card.is-soon .sct-btn { background: var(--sct-blush); color: var(--sct-pink-dark) !important; }

/* Who's logging in */
.sct-who { display: flex; flex-direction: column; gap: 12px; }
.sct a.sct-who-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; background: #fff; border-radius: 18px; text-decoration: none; color: var(--sct-ink); border: 1px solid var(--sct-line); min-height: 84px; }
.sct a.sct-who-card:hover { border-color: var(--sct-pink); }
.sct-who-card img, .sct-who-mark { width: 72px; height: 60px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--sct-blush); }
.sct-who-mark { display: flex; align-items: center; justify-content: center; background: var(--sct-pink); color: #fff; font: 700 18px var(--sct-serif); }
.sct-who-card .sct-grow { display: flex; flex-direction: column; gap: 2px; }
.sct-who-card.is-soon img { filter: grayscale(.4); opacity: .7; }

/* Real logo */
.sct-logo { display: block; height: 24px; width: auto; }
.sct-cert-logo { display: block; height: 34px; width: auto; margin: 0 auto 6px; }

/* Softer account circle in the header */
.sct-top .sct-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff !important; border: 1.5px solid rgba(255,255,255,.7); font: 600 13px var(--sct-sans); letter-spacing: .06em; transition: background .15s ease; }
.sct-top .sct-avatar:hover { background: rgba(255,255,255,.26); }
.sct-top .sct-avatar img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- Desktop layout (computers and large tablets) ---------- */
@media (min-width: 900px) {
	.sct-shell { max-width: none; }
	.sct-top { position: sticky; top: 0; padding: 14px max(32px, calc((100vw - 1120px) / 2)); }
	.sct-shared { padding-left: max(32px, calc((100vw - 1120px) / 2)); padding-right: max(32px, calc((100vw - 1120px) / 2)); }
	.sct-student-banner { order: 1; }
	/* Bottom bar becomes a menu under the header */
	.sct-shell { display: flex; flex-direction: column; }
	.sct-top { order: 0; }
	.sct-nav { order: 1; position: sticky; top: 72px; left: auto; transform: none; width: 100%; max-width: none; display: flex; justify-content: flex-start; gap: 6px; padding: 8px max(32px, calc((100vw - 1120px) / 2)); background: #fff; border-top: 0; border-bottom: 1px solid var(--sct-line); z-index: 4; }
	.sct-nav a { flex-direction: row; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
	.sct-nav a.on { background: var(--sct-blush); }
	.sct-nav svg { width: 18px; height: 18px; }
	main.sct-main { order: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 32px 72px; }
	/* Sections become cards on the beige page */
	.sct-sec { padding: 28px 0; }
	.sct-sec.white, .sct-sec.blush { padding: 32px; border-radius: 24px; margin: 8px 0 20px; }
	.sct h1 { font-size: 46px; }
	.sct h2 { font-size: 30px; }
	/* Course lists and login choices side by side */
	#courses.sct-sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	#courses.sct-sec > h2, #courses.sct-sec > p { grid-column: 1 / -1; }
	.sct-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.sct a.sct-who-card { min-height: 110px; padding: 16px 20px 16px 16px; }
	.sct-who-card img, .sct-who-mark { width: 96px; height: 78px; }
	.sct-banner { margin: 0; max-height: 360px; aspect-ratio: auto; height: 360px; }
	/* Reading pages stay a comfortable width */
	.view-lesson main.sct-main, .view-course main.sct-main, .view-login main.sct-main, .view-set-password main.sct-main,
	.view-join main.sct-main, .view-student main.sct-main, .view-profile main.sct-main, .view-clinic-setup main.sct-main,
	.view-certificate main.sct-main, .view-student-pay main.sct-main, .view-student-welcome main.sct-main { max-width: 820px; }
	.view-login main.sct-main { max-width: 980px; }
	.sct-stick { bottom: 0; border-radius: 0 0 24px 24px; }
	.sct-form { max-width: 560px; }
	.sct-btn-block { max-width: 560px; }
	.view-lesson .sct-btn-block, .sct-stick .sct-btn-block { max-width: none; }
	/* Team page: people in two columns */
	.view-team .sct-sec.white { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.view-team .sct-sec.white > h2 { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
	.view-home .sct-banner { height: 280px; }
	.sct-home-cards { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
	.sct-home-cards > .sct-card.dark { grid-row: span 3; }
	.sct-home-cards > form, .sct-home-cards > .sct-error, .sct-home-cards > .sct-card[style*="blush"] { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
	.view-login .sct-who { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.view-login .sct-who-card { flex-direction: column; align-items: flex-start; text-align: left; }
	.view-login .sct-who-card img { width: 100%; height: 150px; }
	.view-login .sct-who-card > span[aria-hidden] { display: none; }
}


/* Desktop alignment: boxes line up with the page edges; form pages have no boxes at all */
@media (min-width: 900px) {
	main.sct-main > .sct-sec { padding-left: 0; padding-right: 0; }
	main.sct-main > .sct-sec.white, main.sct-main > .sct-sec.blush { padding: 32px; margin: 12px 0 20px; }
	main.sct-main > .sct-banner { margin: 8px 0 12px; }
	.sct-cert { margin: 20px 0; }
	.sct-stick { margin: 0; padding: 14px 0 18px; border-top: 0; background: var(--sct-beige); }
	.sct-stick .sct-form, .sct-stick .sct-btn-block { max-width: none; }
	.view-team .sct-sec.white { align-items: start; }
	/* Form pages: one clean column, sections split by a fine line */
	.view-profile main.sct-main > .sct-sec.white, .view-profile main.sct-main > .sct-sec.blush,
	.view-login main.sct-main > .sct-sec.white, .view-join main.sct-main > .sct-sec.white,
	.view-set-password main.sct-main > .sct-sec.white, .view-student main.sct-main > .sct-sec.white,
	.view-clinic-setup main.sct-main > .sct-sec.white, .view-student-pay main.sct-main > .sct-sec.white {
		background: transparent; border-radius: 0; padding: 32px 0; margin: 8px 0 0; border-top: 1px solid var(--sct-line);
	}
	.view-profile main.sct-main, .view-set-password main.sct-main, .view-clinic-setup main.sct-main, .view-student-pay main.sct-main { max-width: 640px; }
	.view-profile .sct-form, .view-profile .sct-btn-block, .view-login .sct-form, .view-login .sct-btn-block { max-width: none; }
	.view-login .sct-who + * , .view-login main.sct-main { max-width: 980px; }
	.view-login main.sct-main > .sct-sec:not(:first-child) , .view-login main.sct-main > .sct-sec { max-width: 560px; }
	.view-login main.sct-main > .sct-sec, .view-login main.sct-main > .sct-sec.white { margin-left: auto; margin-right: auto; width: 100%; }
	.view-login main.sct-main > .sct-sec:has(.sct-who) { max-width: none; }
}

/* Form pages on phones: same clean column as desktop, no white bands */
@media (max-width: 899px) {
	.view-profile main.sct-main > .sct-sec.white, .view-profile main.sct-main > .sct-sec.blush,
	.view-login main.sct-main > .sct-sec.white, .view-join main.sct-main > .sct-sec.white,
	.view-set-password main.sct-main > .sct-sec.white, .view-student main.sct-main > .sct-sec.white,
	.view-clinic-setup main.sct-main > .sct-sec.white, .view-student-pay main.sct-main > .sct-sec.white {
		background: transparent; border-top: 1px solid var(--sct-line); margin: 0 20px; padding: 24px 0;
	}
}

/* Logo always hard left, matching servicecue.com's header */
@media (min-width: 900px) {
	.sct-top { padding-left: clamp(32px, 4.2vw, 80px); padding-right: clamp(32px, 4.2vw, 80px); }
	.sct-nav, .sct-shared { padding-left: clamp(32px, 4.2vw, 80px); padding-right: clamp(32px, 4.2vw, 80px); }
}
.sct-top .sct-brand { margin-right: auto; }

/* One layout for every page: same header, same content column, same left edge */
@media (min-width: 900px) {
	main.sct-main,
	.sct-shell[class*="view-"] main.sct-main { max-width: 1040px !important; padding-left: 32px; padding-right: 32px; }
	.sct-shell.wide main.sct-main { padding-left: 32px; padding-right: 32px; }
	.sct-admin { padding: 28px 0 60px; }
	/* Forms and buttons keep a comfortable width, starting at the same left edge as everything else */
	.sct-form, .view-profile .sct-form, .view-login .sct-form { max-width: 560px; }
	.sct-btn-block, .view-profile .sct-btn-block, .view-login .sct-btn-block { max-width: 560px; }
	.sct-stick .sct-form, .sct-stick .sct-btn-block, .view-lesson .sct-btn-block { max-width: none; }
	.view-login main.sct-main > .sct-sec, .view-login main.sct-main > .sct-sec.white { max-width: none; margin-left: 0; margin-right: 0; }
	/* Long text stays easy to read */
	.sct p, .sct-lessonlist, .sct-p { max-width: 70ch; }
	.sct-card p, .sct-who-card .sct-small, .sct-hub-text { max-width: none; }
}

@media (min-width: 900px) {
	.sct-sec > .sct-btn:not(.sct-btn-block) { align-self: flex-start; min-width: 260px; }
}

/* Reports page uses the same full-width header and menu as every other page */
.sct-shell.wide { max-width: none; }

/* Way back to the Hub, right-hand end of the menu bar (desktop) */
.sct-nav a.sct-nav-out { display: none; }
@media (min-width: 900px) {
	.sct-nav a.sct-nav-out { display: inline-flex; margin-left: auto; color: var(--sct-pink-dark) !important; font-weight: 600; }
}
@media (min-width: 900px) { .view-achievements .sct-sec.white:has(h2 + .sct-card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .view-achievements .sct-sec.white:has(h2 + .sct-card) > h2 { grid-column: 1 / -1; } }

/* Keep the content edge identical on short and long pages (scrollbar space is always reserved) */
html { scrollbar-gutter: stable; }

/* Launch checklist */
.sct-task { background: var(--sct-beige); }
.sct-task .sct-num { min-width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--sct-pink-dark); font: 700 13px var(--sct-sans); }
.sct-task.is-done .sct-num { background: var(--sct-ink); color: #fff; }
.sct-task.is-done .sct-title { text-decoration: line-through; text-decoration-color: var(--sct-pink); }
.sct-task-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sct-task-btns .sct-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.sct-task .sct-form { margin: 0; }
.sct-task-tick { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) { .sct-task .sct-row { flex-wrap: wrap; } .sct-task .sct-form { width: 100%; padding-left: 46px; } }

/* Checklist v2: action wording, done or skip */
.sct-action { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--sct-ink); max-width: none; }
.sct-action strong { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 6px; background: var(--sct-pink); color: #fff; font: 700 11px var(--sct-sans); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.sct-task-marks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sct-task-marks .sct-form { margin: 0; width: auto; }
.sct-task.is-skipped { background: #fff; border: 1px dashed var(--sct-line-2); }
@media (max-width: 600px) { .sct-task .sct-form { width: auto; padding-left: 0; } }

/* Login choices: keep faces in frame and text aligned on every card */
@media (min-width: 900px) {
	.view-login .sct-who-card img { object-position: center 18%; }
	.view-login a.sct-who-card { align-items: stretch; }
	.view-login .sct-who-card .sct-grow { align-self: stretch; text-align: left; }
}
.sct-who-card img { object-position: center 18%; }

/* Logged-out pages: a slim bar back to the Hub and website */
.sct-nav.sct-nav-public { position: static; transform: none; left: auto; bottom: auto; width: 100%; max-width: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: #fff; border-top: 0; border-bottom: 1px solid var(--sct-line); order: 1; }
.sct-nav.sct-nav-public a { flex-direction: row; min-height: 40px; padding: 0 12px; border-radius: 999px; font: 600 14px var(--sct-sans); color: var(--sct-pink-dark) !important; }
.sct-nav.sct-nav-public a.sct-nav-site { color: var(--sct-ink-2) !important; font-weight: 500; }
.sct-shell:has(.sct-nav-public) { display: flex; flex-direction: column; }
.sct-shell:has(.sct-nav-public) main.sct-main { order: 2; padding-bottom: 40px; }
@media (min-width: 900px) { .sct-nav.sct-nav-public { padding-left: clamp(32px, 4.2vw, 80px); padding-right: clamp(32px, 4.2vw, 80px); } }

/* Login form pages: every section, line and button the same width */
@media (min-width: 900px) {
	.view-login main.sct-main > .sct-sec:not(:has(.sct-who)) { max-width: 560px; }
}

/* Hub uses the same content column as Cue Training, even inside the website theme */
@media (min-width: 900px) {
	.sct-hubwrap { width: min(976px, calc(100vw - 64px)); max-width: none; margin-left: calc(50% - min(488px, calc(50vw - 32px))); margin-right: 0; }
}

/* Back link text starts exactly under the logo */
.sct-nav.sct-nav-public a:first-child { margin-left: -12px; }
.sct-nav.sct-nav-public a.sct-nav-site { margin-right: -12px; }

/* No WordPress toolbar gap on training pages */
html:has(.sct-shell) { margin-top: 0 !important; }
html:has(.sct-shell) #wpadminbar { display: none !important; }

/* Home: "What's next" fills the row when there is nothing beside it (therapists, reception, students) */
@media (min-width: 900px) {
	.sct-home-cards > .sct-card.dark:only-child { grid-column: 1 / -1; }
	.sct-home-cards:not(:has(> .sct-card:not(.dark))) > .sct-card.dark { grid-column: 1 / -1; grid-row: auto; }
}

/* Home banner: taller on computers and anchored near the top so heads stay in frame */
.sct-banner img { object-position: center 22%; }
@media (min-width: 900px) {
	.view-home .sct-banner { height: 380px; }
}

/* Lesson text: proper paragraph spacing and easy reading */
.sct .sct-p { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; color: var(--sct-ink-2); }
.sct .sct-p p { margin: 0; }
.sct .sct-p strong, .sct .sct-p b { color: var(--sct-ink); font-weight: 700; }
.sct .sct-p ul, .sct .sct-p ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.sct .sct-p li { padding-left: 2px; }
.sct .sct-p li::marker { color: var(--sct-pink); }
@media (min-width: 900px) { .sct .sct-p { font-size: 17px; max-width: 68ch; } }

/* Lesson: lesson text sits in a white card; on computers it sits beside the video at exactly the video's height */
.sct-watch > .sct-p { background: #fff; border-radius: 22px; padding: 22px 22px 24px; border: 1px solid var(--sct-line); }
@media (min-width: 1100px) {
	.sct-watch { display: grid !important; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
	.sct-watch > .sct-video { margin: 0; }
	.sct-watch > .sct-p { height: 0; min-height: 100%; overflow-y: auto; max-width: none; font-size: 15px; line-height: 1.6; gap: 12px; scrollbar-width: thin; }
	.sct-watch:not(:has(.sct-p)) { grid-template-columns: 1fr; }
}

/* Quick check: a white card at the same width as Key points */
.sct-quiz .sct-form { max-width: none; }
.sct-quiz fieldset.sct-card { background: var(--sct-beige); }
.sct-quiz .sct-btn-block { max-width: none; }

/* Certificate of Completion */
.sct-certdoc { margin: 8px 0 12px; background: #fff; border-radius: 22px; padding: 14px; border: 1px solid var(--sct-line); box-shadow: 0 10px 30px rgba(42,30,34,.06); }
.sct-certdoc-in { border: 2px solid var(--sct-pink); outline: 1px solid var(--sct-pink); outline-offset: -8px; border-radius: 14px; padding: 40px 24px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: linear-gradient(180deg, #fff 0%, #fffaf6 100%); }
.sct-certdoc-logo { height: 34px; width: auto; margin-bottom: 10px; }
.sct-certdoc-kicker { font: 700 12px var(--sct-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sct-pink-dark); }
.sct-certdoc-small { font: 400 15px var(--sct-sans); color: var(--sct-ink-2); margin-top: 8px; }
.sct-certdoc-name { font-family: var(--sct-serif); font-size: clamp(30px, 6vw, 48px); line-height: 1.1; color: var(--sct-ink); padding: 0 12px 10px; border-bottom: 1px solid var(--sct-line-2); min-width: min(100%, 420px); }
.sct-certdoc-course { font-family: var(--sct-serif); font-style: italic; font-size: clamp(24px, 4.5vw, 34px); color: var(--sct-pink); line-height: 1.2; }
.sct-certdoc-foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; width: 100%; margin-top: 26px; align-items: end; }
.sct-certdoc-foot > div { display: flex; flex-direction: column; gap: 4px; font: 600 14px var(--sct-sans); color: var(--sct-ink); }
.sct-certdoc-label { font: 600 11px var(--sct-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sct-ink-2); }
.sct-certdoc-sign { border-top: 1px solid var(--sct-ink); padding-top: 8px; }
.sct-certdoc-signname { font-family: var(--sct-serif); font-style: italic; font-size: 22px; font-weight: 400; color: var(--sct-ink); order: -1; margin-bottom: 6px; border-bottom: 0; }
.sct-certdoc-sign { border-top: 0; }
.sct-certdoc-sign .sct-certdoc-label { border-top: 1px solid var(--sct-ink); padding-top: 6px; }
.sct-certdoc-legal { margin-top: 18px; font: 400 12px var(--sct-sans); color: var(--sct-ink-2); max-width: 520px; line-height: 1.5; }
.sct-cert-actions { flex-direction: row !important; flex-wrap: wrap; gap: 12px; }
.sct-cert-actions .sct-btn { flex: 1 1 220px; max-width: 320px; }
@media (max-width: 600px) {
	.sct-certdoc { margin: 0 20px; padding: 10px; }
	.sct-certdoc-in { padding: 30px 16px 22px; }
	.sct-certdoc-foot { grid-template-columns: 1fr; gap: 14px; }
	.sct-cert-actions .sct-btn { max-width: none; }
}
@media print {
	@page { size: A4 landscape; margin: 12mm; }
	.sct-top, .sct-nav, .sct-noprint, .sct-shared, footer { display: none !important; }
	body, .sct-shell, main.sct-main { background: #fff !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
	.sct-certdoc { box-shadow: none; border: 0; padding: 0; margin: 0; }
	.sct-certdoc-in { min-height: 170mm; justify-content: center; }
	.sct-certdoc-foot { grid-template-columns: 1fr 1fr 1fr !important; }
}

/* Certificate issuer line: centred and bold */
.sct-certdoc-legal { text-align: center; font-weight: 700; font-size: 13px; color: var(--sct-ink); letter-spacing: .02em; }

/* Certificate: what the course means, under the course name */
.sct-certdoc-line { font: 400 15px var(--sct-sans); color: var(--sct-ink-2); max-width: 480px; line-height: 1.5; margin-top: -2px; }

/* Team course list: one big feature photo on the left, the rest in a 2 x 2 grid on the right. */
@media (min-width: 900px) {
	#courses.sct-bento { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; }
	#courses.sct-bento > .sct-card:first-child { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; }
	#courses.sct-bento > .sct-card:first-child .sct-thumb-photo { flex: 1 1 auto; height: auto; min-height: 260px; }
	#courses.sct-bento > .sct-card:first-child .sct-title { font-size: 1.25rem; }
	#courses.sct-bento > .sct-card:not(:first-child) .sct-thumb-photo { height: 130px; }
}

/* Role name on the course photo, so it stands out. */
.sct-photo-wrap { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; }
.sct-photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,26,32,.72) 0%, rgba(43,26,32,.15) 45%, rgba(43,26,32,0) 70%); pointer-events: none; }
.sct-photo-name { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 26px; line-height: 1.1; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.sct-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) {
	#courses.sct-bento > .sct-card:first-child .sct-photo-name { font-size: 40px; left: 22px; bottom: 18px; }
	#courses.sct-bento > .sct-card:first-child .sct-thumb-photo { flex: 1 1 auto; }
}
/* Course photos: crop towards faces, not the middle of the frame. */
#courses .sct-thumb-photo { object-position: center 28%; }
@media (min-width: 900px) {
	#courses.sct-bento > .sct-card:not(:first-child) .sct-thumb-photo { height: 150px; }
	#courses.sct-bento > .sct-card:first-child .sct-thumb-photo { object-position: center 35%; }
}
#courses .sct-aud-therapist .sct-thumb-photo { object-position: center 45%; }
/* Courses that aren't open yet: greyed out with a lock badge. */
#courses .sct-soon { cursor: not-allowed; }
#courses .sct-soon .sct-thumb-photo { filter: grayscale(1) brightness(.55); }
#courses .sct-soon .sct-photo-wrap::before { content: "\1F512  Coming soon"; position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.92); color: #2B1A20; font: 700 12px/1 Arial, Helvetica, sans-serif; padding: 7px 11px; border-radius: 999px; }
#courses .sct-soon .sct-photo-name { color: rgba(255,255,255,.8); }
/* Team course list: pull the course box up closer to the heading. */
.sct-sec:has(+ #courses.sct-bento) { padding-bottom: 4px; padding-top: 12px; }
#courses.sct-bento { margin-top: 12px; }
/* Phones: taller course photos so faces aren't cropped. */
@media (max-width: 899px) {
	#courses .sct-thumb-photo { height: auto; aspect-ratio: 4 / 3; }
	#courses .sct-aud-owner .sct-thumb-photo { object-position: center 18%; }
	#courses .sct-aud-reception .sct-thumb-photo { object-position: 70% 30%; }
	#courses .sct-photo-name { font-size: 30px; }
}

/* Lesson intro beside the video: lead line, short paragraphs, tick lists */
.sct .sct-p.sct-intro { gap: 12px; }
.sct .sct-intro > p:first-child { font-family: var(--sct-serif); font-size: 21px; line-height: 1.3; color: var(--sct-ink); padding-bottom: 12px; border-bottom: 1px solid var(--sct-line); }
.sct .sct-intro p { font-size: 15px; line-height: 1.6; }
.sct .sct-intro ul, .sct .sct-intro ol { list-style: none; padding: 0; margin: 0; gap: 8px; counter-reset: sct-intro; }
.sct .sct-intro li { position: relative; background: var(--sct-beige); border-radius: 12px; padding: 10px 12px 10px 44px; font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--sct-ink); }
.sct .sct-intro li::before { content: "\2713"; position: absolute; left: 12px; top: 10px; width: 21px; height: 21px; border-radius: 50%; background: var(--sct-pink); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sct .sct-intro ol li { counter-increment: sct-intro; }
.sct .sct-intro ol li::before { content: counter(sct-intro); }
.sct .sct-intro a { font-weight: 600; }
@media (max-width: 899px) { .sct-watch > .sct-intro { margin-top: 14px; } }
.sct .sct-intro h3 { font-family: var(--sct-serif); font-size: 18px; line-height: 1.25; color: var(--sct-ink); margin: 8px 0 0; }

/* Tap a step in the intro to jump to it in the video */
.sct .sct-intro h3 a.sct-jump { color: var(--sct-ink); text-decoration: none; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sct .sct-intro h3 a.sct-jump span { flex: none; font: 700 12px var(--sct-sans); color: #fff; background: var(--sct-pink); border-radius: 999px; padding: 4px 9px; }
.sct .sct-intro h3 a.sct-jump:hover span { background: var(--sct-pink-dark); }
/* Wrong answer: ask the chat */
.sct-why { align-self: flex-start; margin-top: 4px; background: none; border: 0; padding: 4px 0; font: 600 14px var(--sct-sans); color: var(--sct-pink-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Milestones on the course page */
.sct-miles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.sct-mile { background: #fff; border: 1px solid var(--sct-line); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 8px; }
.sct-mile .sct-bar { grid-column: 1 / -1; height: 5px; }
.sct-mile-n { width: 22px; height: 22px; border-radius: 50%; background: var(--sct-blush); color: var(--sct-pink-dark); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.sct-mile-name { font-weight: 700; font-size: 14px; color: var(--sct-ink); }
.sct-mile-count { font-size: 12px; color: var(--sct-muted); }
.sct-mile.is-done { border-color: var(--sct-pink); }
.sct-mile.is-done .sct-mile-n { background: var(--sct-pink); color: #fff; }
.sct-milehead { display: flex; align-items: baseline; gap: 10px; padding: 18px 10px 2px; border-top: 1px solid var(--sct-line); margin-top: 6px; }
.sct-milehead:first-child { border-top: 0; margin-top: 0; }
.sct-milehead span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sct-muted); }
.sct-milehead b { font-family: var(--sct-serif); font-weight: 500; font-size: 20px; color: var(--sct-ink); }
.sct-milehead em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--sct-pink-dark); }
.sct-milewin { display: flex; gap: 12px; align-items: center; background: var(--sct-ink); color: #fff; border-radius: 16px; padding: 14px 16px; font-size: 14px; line-height: 1.45; }
.sct-milewin span { font-size: 28px; }
.sct-milewin b { color: #fff; }
/* Was this lesson clear? */
.sct-fb { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sct-fb-q { font-family: var(--sct-serif); font-size: 20px; color: var(--sct-ink); }
.sct-fb-q em { color: var(--sct-pink); }
.sct-fb-btns { display: flex; gap: 8px; }
.sct-fb-b { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--sct-line-2); background: #fff; color: var(--sct-ink); font: 600 14px var(--sct-sans); cursor: pointer; }
.sct-fb-b.on { background: var(--sct-ink); border-color: var(--sct-ink); color: #fff; }
.sct-fb-more { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 8px; text-align: left; font-size: 14px; }
.sct-fb-more textarea { border: 1px solid var(--sct-line); border-radius: 12px; padding: 10px 12px; font: 15px var(--sct-sans); resize: vertical; }
.sct-fb-more[hidden], .sct-fb-thanks[hidden] { display: none; }

/* Shareable certified badge */
.sct-share canvas { width: 100%; max-width: 420px; height: auto; border-radius: 18px; box-shadow: 0 14px 34px rgba(42,30,34,.18); margin: 6px 0 4px; }

/* Owners with more than one location */
.sct-locs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; }
.sct a.sct-loc, .sct a.sct-loc:visited { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; background: #fff; border: 1px solid var(--sct-line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--sct-ink); }
.sct-loc .sct-bar { grid-column: 1 / -1; height: 5px; }
.sct-loc-name { font-weight: 700; font-size: 15px; }
.sct-loc-stat { font-size: 12px; color: var(--sct-muted); }
.sct a.sct-loc.is-on { border: 2px solid var(--sct-pink); padding: 11px 13px; }

/* Owner setup: extra locations */
.sct-moreloc { background: var(--sct-beige); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.sct-moreloc-have { font-weight: 600; font-size: 14px; color: var(--sct-ink); }
#sct-locrows { display: flex; flex-direction: column; gap: 8px; }
