/*
 * sdo-corsi: stylesheet of the learner area (home, lesson, progress, help, certificate).
 * Layout: fixed header, side menu, lesson cards per module, video with the lesson list
 * next to it; under 900px the menu becomes a drawer and a bottom bar appears.
 * Look: the house style of scuoladjonline.it (black + acid green, Archivo capitals,
 * mono labels, hard 2px lines, no rounded corners). Every colour is a token.
 * Motion: transform and opacity only, under 300 ms, hover only with a mouse.
 * Switch this file off with add_filter( 'sdo_load_app_css', '__return_false' ).
 */

/* ---------- Fonts (self-hosted, no third-party request) ---------- */
@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url(../fonts/archivo.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Space Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/space-mono-400.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Space Mono';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/space-mono-700.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
.sdo-app {
	--sdo-bg: #0a0a0a;
	--sdo-panel: #121212;
	--sdo-raised: #1c1c1c;
	--sdo-line: #2a2a2a;
	--sdo-line-strong: #3d3d3d;
	--sdo-track: #2a2a2a;
	--sdo-acid: #c6ff00;
	--sdo-acid-dim: #9ecc00;
	--sdo-ink: #0a0a0a;
	--sdo-text: #f2f2f2;
	--sdo-text-2: #c2c2c2;
	--sdo-text-3: #9a9a9a;
	--sdo-error: #ff9a8a;
	--sdo-overlay: rgba(10, 10, 10, 0.88);
	--sdo-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--sdo-mono: 'Space Mono', ui-monospace, Menlo, Consolas, monospace;
	--sdo-press: transform 140ms ease-out;
	--sdo-top: 66px;
	--sdo-tabbar: 64px;
	--sdo-adminbar: 0px;
	/* Names used by the lesson exercises and older markup. */
	--bg: var(--sdo-bg); --bg-2: var(--sdo-panel); --card: var(--sdo-raised); --fg: var(--sdo-text);
	--muted: var(--sdo-text-3); --line: var(--sdo-line-strong); --accent: var(--sdo-acid); --mono: var(--sdo-mono);
	color-scheme: dark;
}
body.sdo-app.admin-bar { --sdo-adminbar: 32px; }
@media (max-width: 782px) { body.sdo-app.admin-bar { --sdo-adminbar: 46px; } }
@media (max-width: 600px) { body.sdo-app.admin-bar { --sdo-adminbar: 0px; } }

/* ---------- Base ---------- */
.sdo-app, .sdo-app *, .sdo-app *::before, .sdo-app *::after { box-sizing: border-box; }
html:has(body.sdo-app) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--sdo-top, 66px) + 16px); background: #0a0a0a; }
body.sdo-app {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: clip;
	background: var(--sdo-bg);
}
.sdo-app {
	color: var(--sdo-text);
	font-family: var(--sdo-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
/* Resets use :where() so they never outweigh a component class. */
:where(.sdo-app) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
:where(.sdo-app) :where(ul, ol) { padding: 0; list-style: none; }
:where(.sdo-app) img { max-width: 100%; height: auto; }
:where(.sdo-app) :where(button, input, select, textarea) { font: inherit; color: inherit; border-radius: 0; }
:where(.sdo-app) button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.sdo-app) a { color: var(--sdo-acid); -webkit-tap-highlight-color: transparent; }
:where(.sdo-app) strong { font-weight: 700; color: var(--sdo-text); }
.sdo-app [hidden] { display: none !important; }
:where(.sdo-app) summary { list-style: none; cursor: pointer; }
.sdo-app summary::-webkit-details-marker { display: none; }
.sdo-app :focus { outline: none; }
.sdo-app :focus-visible { outline: 3px solid var(--sdo-acid); outline-offset: 3px; }
.sdo-app ::selection { background: var(--sdo-acid); color: var(--sdo-ink); }
.sdo-icon, .sdo-logo { flex: 0 0 auto; display: block; }

.sdo-sr, .sdo-app .screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sdo-skip {
	position: absolute; left: 12px; top: -80px; z-index: 100;
	display: flex; align-items: center; min-height: 44px; padding: 0 18px;
	background: var(--sdo-acid); color: var(--sdo-ink) !important; font-weight: 800; text-decoration: none;
}
.sdo-skip:focus { top: calc(var(--sdo-adminbar) + 12px); }

/* ---------- Type helpers ---------- */
.sdo-eyebrow {
	font-family: var(--sdo-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.4;
	text-transform: uppercase; color: var(--sdo-text-3);
}
.sdo-eyebrow--acid { color: var(--sdo-acid); }
.sdo-h1, .sdo-h2, .sdo-resume__title, .sdo-module__title, .sdo-lessonhead__title, .sdo-list__title, .sdo-panel__title, .sdo-faq__title, .sdo-done__name {
	font-family: var(--sdo-sans); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; text-wrap: balance; color: var(--sdo-text);
}
.sdo-h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1; }
.sdo-h2 { font-size: 20px; line-height: 1.1; }
.sdo-lead { color: var(--sdo-text-2); font-size: 17px; max-width: 64ch; }
.sdo-small { font-size: 14px; }
.sdo-hint { font-size: 14px; color: var(--sdo-text-3); max-width: 80ch; }
.sdo-link { color: var(--sdo-acid); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sdo-link--block { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.sdo-backlink {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
	color: var(--sdo-text-3) !important; text-decoration: none; font-family: var(--sdo-mono); font-size: 13px; font-weight: 700; text-transform: uppercase;
}
details:not([open]) .sdo-when-open, details[open] .sdo-when-closed { display: none; }

/* ---------- Buttons ---------- */
.sdo-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 20px; border: 2px solid transparent; border-radius: 0;
	background: transparent; color: var(--sdo-text) !important;
	font-family: var(--sdo-mono); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase;
	text-decoration: none; text-align: center; cursor: pointer; transition: var(--sdo-press);
}
.sdo-btn:active { transform: scale(0.97); }
.sdo-btn[disabled] { opacity: 0.6; cursor: default; }
.sdo-btn[disabled]:active { transform: none; }
.sdo-btn--outline { border-color: var(--sdo-line-strong); }
.sdo-btn--acid { background: var(--sdo-acid); border-color: var(--sdo-acid); color: var(--sdo-ink) !important; }
.sdo-btn--lg { min-height: 56px; padding: 0 26px; font-size: 14px; }

.sdo-iconbtn {
	flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--sdo-text) !important;
	text-decoration: none; transition: var(--sdo-press);
}
.sdo-iconbtn:active { transform: scale(0.97); }
.sdo-iconbtn--outline { flex-basis: 48px; width: 48px; height: 48px; border: 2px solid var(--sdo-line-strong); }

@media (hover: hover) and (pointer: fine) {
	.sdo-app a.sdo-link:hover { color: var(--sdo-text); }
	.sdo-btn--outline:hover, .sdo-iconbtn--outline:hover { border-color: var(--sdo-acid); color: var(--sdo-acid) !important; }
	.sdo-iconbtn:hover { color: var(--sdo-acid) !important; }
	.sdo-btn--acid:hover { background: transparent; color: var(--sdo-acid) !important; }
	.sdo-backlink:hover { color: var(--sdo-acid) !important; }
}

/* ---------- Panels, bars, pills ---------- */
.sdo-panel {
	padding: 20px; display: flex; flex-direction: column; gap: 12px;
	background: var(--sdo-panel); border: 2px solid var(--sdo-line);
}
.sdo-panel--lg { padding: 26px; }
.sdo-panel p { color: var(--sdo-text-2); }
.sdo-panel__title { font-size: 17px; line-height: 1.15; }

.sdo-bar, .sdo-progress__track { height: 8px; background: var(--sdo-track); overflow: hidden; }
.sdo-bar > span, .sdo-progress__bar { display: block; height: 100%; background: var(--sdo-acid); }
.sdo-progress { display: flex; flex-direction: column; gap: 8px; }
.sdo-progress__track { height: 10px; }
.sdo-progress__bar { width: 0; transform-origin: left center; }
.sdo-progress__label { font-family: var(--sdo-mono); font-size: 12px; text-transform: uppercase; color: var(--sdo-text-3); font-variant-numeric: tabular-nums; }

.sdo-pill {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
	background: var(--sdo-raised); color: var(--sdo-text-2); font-family: var(--sdo-mono); font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.sdo-status-ok { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sdo-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--sdo-acid); }
.sdo-checkdot {
	flex: 0 0 22px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--sdo-acid); color: var(--sdo-ink);
}
.sdo-notice {
	display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 2px solid var(--sdo-acid);
	background: var(--sdo-panel); color: var(--sdo-text); margin: 0;
}
.sdo-notice > .sdo-icon { margin-top: 2px; color: var(--sdo-acid); }
.sdo-notice p { color: var(--sdo-text-2); }
.sdo-notice--error { border-color: var(--sdo-error); color: var(--sdo-error); font-weight: 700; }
.sdo-empty { align-items: flex-start; }

.sdo-cols { display: flex; flex-wrap: wrap; gap: 20px; }
.sdo-cols > * { flex: 1 1 300px; min-width: 0; }
.sdo-cols--3-2 > :first-child { flex: 3 1 420px; }
.sdo-cols--3-2 > :last-child { flex: 2 1 280px; }

/* ---------- Header ---------- */
.sdo-top {
	position: sticky; top: var(--sdo-adminbar); z-index: 70;
	display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
	min-height: var(--sdo-top); padding: 0 20px 0 12px; background: var(--sdo-bg); border-bottom: 2px solid var(--sdo-text);
}
.sdo-top__start, .sdo-top__end { display: flex; align-items: center; gap: 8px; }
.sdo-top__start { flex: 1 1 auto; min-width: 0; }
.sdo-top__end { flex: 0 0 auto; }
.sdo-top__brand {
	display: flex; align-items: center; gap: 10px; min-height: 44px; margin-left: 4px; color: var(--sdo-text) !important; text-decoration: none;
	font-family: var(--sdo-sans); font-size: 17px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; white-space: nowrap;
}
.sdo-top__name b { font-weight: 900; color: var(--sdo-acid); }
.sdo-top__back, .sdo-top__context { display: none; }
.sdo-top__help {
	display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
	color: var(--sdo-text-2) !important; text-decoration: none; font-family: var(--sdo-mono); font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.sdo-usermenu { position: relative; }
.sdo-avatar {
	width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
	background: var(--sdo-acid); color: var(--sdo-ink); font-weight: 900; font-size: 17px; transition: var(--sdo-press);
}
.sdo-avatar:active { transform: scale(0.97); }
.sdo-usermenu[open] > .sdo-avatar { outline: 2px solid var(--sdo-text); outline-offset: 2px; }
.sdo-usermenu__panel {
	position: absolute; right: 0; top: calc(100% + 12px); z-index: 80; width: min(290px, calc(100vw - 24px)); padding: 8px;
	display: flex; flex-direction: column; gap: 2px; background: var(--sdo-panel); border: 2px solid var(--sdo-text);
	box-shadow: 6px 6px 0 var(--sdo-acid); animation: sdo-pop 140ms ease-out;
}
.sdo-usermenu__who { display: flex; flex-direction: column; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 2px solid var(--sdo-line); }
.sdo-usermenu__who span { font-size: 14px; color: var(--sdo-text-3); overflow-wrap: anywhere; }
.sdo-usermenu__link {
	display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px;
	color: var(--sdo-text) !important; text-decoration: none; font-size: 15px; font-weight: 600;
}
.sdo-usermenu__link .sdo-icon { color: var(--sdo-text-3); }
@media (hover: hover) and (pointer: fine) {
	.sdo-top__help:hover { color: var(--sdo-acid) !important; }
	.sdo-usermenu__link:hover { background: var(--sdo-raised); color: var(--sdo-acid) !important; }
}
@keyframes sdo-pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Shell and side menu ---------- */
.sdo-shell { display: block; }
.sdo-shell__main { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--sdo-top) - var(--sdo-adminbar)); }
.sdo-shell__main > main { flex: 1 0 auto; }
.sdo-side { display: none; }
.sdo-side__group { display: flex; flex-direction: column; gap: 2px; }
.sdo-side__group--line { padding-top: 16px; border-top: 2px solid var(--sdo-line); }
/* The last group stays at the bottom of the menu; the part above it scrolls when the window is low. */
.sdo-side__scroll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.sdo-side__group--bottom { flex: 0 0 auto; margin-top: auto; }
.sdo-side__title { padding: 0 12px 8px; }
.sdo-side__link {
	display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 12px; border-left: 4px solid transparent;
	color: var(--sdo-text-2) !important; text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.25;
}
.sdo-side__link.is-current { background: var(--sdo-panel); border-left-color: var(--sdo-acid); color: var(--sdo-text) !important; font-weight: 800; }
.sdo-side__link--module { justify-content: space-between; gap: 10px; font-weight: 500; font-size: 14px; }
.sdo-side__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdo-side__count { flex: 0 0 auto; font-family: var(--sdo-mono); font-size: 12px; color: var(--sdo-text-3); font-variant-numeric: tabular-nums; }
.sdo-side__count.is-busy { color: var(--sdo-text); font-weight: 700; }
.sdo-side__count.is-done { color: var(--sdo-acid); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
	.sdo-side__link:hover { background: var(--sdo-panel); color: var(--sdo-acid) !important; }
}
.sdo-side__legal {
	display: flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 12px; border-top: 2px solid var(--sdo-line);
	color: var(--sdo-text-3) !important; text-decoration: underline; text-underline-offset: 3px; font-family: var(--sdo-mono); font-size: 11px; text-transform: uppercase;
}
.sdo-side__close { display: none; align-self: flex-end; margin: 0 -4px -10px 0; }
.sdo-scrim { position: fixed; inset: 0; z-index: 55; background: var(--sdo-overlay); animation: sdo-fade-only 160ms ease-out; }

/* Drawer: phones on every screen, larger windows on every screen but home. */
.sdo-side.is-open {
	display: flex; flex-direction: column; gap: 18px; padding: 16px 12px 24px;
	position: fixed; left: 0; top: calc(var(--sdo-top) + var(--sdo-adminbar)); bottom: 0; z-index: 60; width: min(300px, 86vw); overflow: hidden;
	background: var(--sdo-bg); border-right: 2px solid var(--sdo-text); animation: sdo-drawer 200ms ease-out;
}
@media (min-width: 900px) {
	.sdo-shell--side { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }
	.sdo-shell--side.is-collapsed { grid-template-columns: minmax(0, 1fr); }
	.sdo-shell--side .sdo-side {
		display: flex; flex-direction: column; gap: 18px;
		position: sticky; top: calc(var(--sdo-top) + var(--sdo-adminbar)); bottom: auto; z-index: 1; width: auto;
		height: calc(100vh - var(--sdo-top) - var(--sdo-adminbar)); padding: 16px 12px; overflow: hidden;
		background: transparent; border-right: 2px solid var(--sdo-line); animation: none;
	}
	.sdo-shell--side.is-collapsed .sdo-side { display: none; }
	.sdo-shell--side .sdo-scrim { display: none !important; }
}
@keyframes sdo-drawer { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* ---------- Legal links under every screen ---------- */
.sdo-legal {
	display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 20px 32px 28px; border-top: 2px solid var(--sdo-line);
	font-family: var(--sdo-mono); font-size: 12px; text-transform: uppercase; color: var(--sdo-text-3);
}
.sdo-legal a { display: inline-flex; align-items: center; min-height: 28px; color: var(--sdo-text-3); text-decoration: none; }
.sdo-legal a.sdo-legal__withdraw { text-decoration: underline; text-underline-offset: 3px; }
.sdo-app .sdo-cookie-link { margin: 0; padding: 0; font: inherit; text-align: left; }
.sdo-app .sdo-cookie-link a { display: inline-flex; align-items: center; min-height: 28px; color: var(--sdo-text-3); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
	.sdo-legal a:hover, .sdo-app .sdo-cookie-link a:hover, .sdo-side__legal:hover { color: var(--sdo-acid) !important; }
}

/* ---------- Cookie banner of sdo-shop (consent.js), in the house style of the marketing site.
   "Rifiuta" and "Accetta tutto" stay equally large and equally visible. ---------- */
.sdo-app .sdo-consent {
	background: var(--sdo-bg); color: var(--sdo-text); border: 2px solid var(--sdo-acid); border-radius: 0; padding: 18px 20px;
	box-shadow: 6px 6px 0 rgba(198, 255, 0, 0.25); font: 500 15px/1.5 var(--sdo-sans);
}
.sdo-app .sdo-consent p { margin: 0 0 12px; padding-right: 34px; color: var(--sdo-text-2); }
.sdo-app .sdo-consent p strong { color: var(--sdo-text); }
.sdo-app .sdo-consent a { color: var(--sdo-acid); }
.sdo-app .sdo-consent__x { display: grid; place-items: center; border: 2px solid var(--sdo-line-strong); border-radius: 0; background: var(--sdo-bg); color: var(--sdo-text); }
.sdo-app .sdo-consent__btns button {
	min-height: 48px; border: 2px solid var(--sdo-text); border-radius: 0; background: transparent; color: var(--sdo-text);
	font: 700 13px/1.2 var(--sdo-mono); text-transform: uppercase; letter-spacing: 0.02em;
}
.sdo-app .sdo-consent button:focus-visible, .sdo-app .sdo-consent summary:focus-visible { outline: 3px solid var(--sdo-acid); outline-offset: 2px; }
.sdo-app .sdo-consent__more summary { color: var(--sdo-text-3); font: 700 12px/1.3 var(--sdo-mono); text-transform: uppercase; }
.sdo-app .sdo-consent__more label { color: var(--sdo-text-2); }
.sdo-app .sdo-consent__more input { accent-color: var(--sdo-acid); }
@media (hover: hover) and (pointer: fine) {
	.sdo-app .sdo-consent__btns button:hover, .sdo-app .sdo-consent__x:hover { border-color: var(--sdo-acid); color: var(--sdo-acid); }
}

/* ---------- Bottom bar (phones) ---------- */
.sdo-tabbar { display: none; }

/* ---------- Main areas ---------- */
.sdo-main { width: 100%; min-width: 0; display: flex; flex-direction: column; }
.sdo-home { gap: 36px; padding: 20px 32px 64px; }
.sdo-screen { gap: 24px; margin: 0 auto; width: 100%; padding: 36px 32px 64px; }
.sdo-screen--wide { max-width: 1080px; }
.sdo-screen--narrow { max-width: 860px; }
.sdo-screen--login { max-width: 520px; }
.sdo-pagehead { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------- Home: chips ---------- */
.sdo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sdo-chip {
	flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--sdo-line-strong);
	background: transparent; color: var(--sdo-text) !important; text-decoration: none;
	font-family: var(--sdo-mono); font-size: 13px; font-weight: 700; text-transform: uppercase; white-space: nowrap; transition: var(--sdo-press);
}
.sdo-chip:active { transform: scale(0.97); }
.sdo-chip.is-active { background: var(--sdo-acid); border-color: var(--sdo-acid); color: var(--sdo-ink) !important; }
.sdo-chip--module { display: none; max-width: 240px; }
@media (hover: hover) and (pointer: fine) {
	.sdo-chip:not(.is-active):hover { border-color: var(--sdo-acid); color: var(--sdo-acid) !important; }
}

/* ---------- Home: resume + progress ---------- */
.sdo-hero { display: flex; flex-wrap: wrap; gap: 20px; }
.sdo-resume { flex: 3 1 480px; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 26px; border-color: var(--sdo-text); }
.sdo-resume__thumb { flex: 1 1 280px; max-width: 360px; }
.sdo-resume__text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sdo-resume__title { font-size: clamp(26px, 3vw, 36px); line-height: 1; }
.sdo-resume__meta { color: var(--sdo-text-2); font-size: 15px; }
.sdo-resume__btn { margin-top: 6px; }
.sdo-resume--done .sdo-resume__text { flex-basis: 100%; }

.sdo-progresscard { flex: 1 1 260px; min-width: 0; }
.sdo-progresscard__count { display: flex; align-items: baseline; gap: 10px; color: var(--sdo-text-2); }
.sdo-progresscard__num { font-size: 56px; line-height: 0.9; font-weight: 900; letter-spacing: -0.03em; color: var(--sdo-acid); font-variant-numeric: tabular-nums; }
.sdo-progresscard__pct { display: none; }
.sdo-progresscard__goal { font-size: 14px; }
.sdo-progresscard__link { margin-top: auto; display: flex; align-items: center; min-height: 44px; font-size: 14px; }

/* ---------- Lesson tiles ---------- */
.sdo-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sdo-raised); border: 2px solid var(--sdo-line); }
.sdo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sdo-thumb__empty {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--sdo-raised) 0%, var(--sdo-raised) 62%, var(--sdo-panel) 62%, var(--sdo-panel) 100%);
}
.sdo-thumb__num {
	font-family: var(--sdo-sans); font-size: 64px; line-height: 1; font-weight: 900; letter-spacing: -0.04em;
	color: transparent; -webkit-text-stroke: 2px var(--sdo-line-strong); font-variant-numeric: tabular-nums;
}
@supports not (-webkit-text-stroke: 2px #000) { .sdo-thumb__num { color: var(--sdo-line-strong); } }
.sdo-thumb__num--sm { font-size: 30px; -webkit-text-stroke-width: 1.5px; }
.sdo-thumb__num--lg { font-size: 96px; -webkit-text-stroke-color: var(--sdo-acid); }
.sdo-thumb__kind {
	position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px;
	font-family: var(--sdo-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--sdo-text-3);
}
.sdo-thumb__dur {
	position: absolute; right: 0; bottom: 0; padding: 3px 7px; background: var(--sdo-bg);
	color: var(--sdo-text); font-family: var(--sdo-mono); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.sdo-thumb__dur--sm { padding: 1px 5px; font-size: 11px; }
.sdo-thumb__done, .sdo-thumb__now {
	position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px;
	background: var(--sdo-acid); color: var(--sdo-ink); font-family: var(--sdo-mono); font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.sdo-thumb__now { background: var(--sdo-text); padding-left: 9px; }
.sdo-thumb__play {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
	display: flex; align-items: center; justify-content: center; background: var(--sdo-acid); color: var(--sdo-ink);
}
.sdo-resume__thumb .sdo-thumb__num { position: absolute; left: 14px; bottom: 6px; font-size: 64px; -webkit-text-stroke-color: var(--sdo-line-strong); }
.sdo-card.is-current .sdo-thumb { border-color: var(--sdo-text); }
.sdo-card.is-current .sdo-thumb__num { -webkit-text-stroke-color: var(--sdo-acid); }

/* ---------- Home: modules and cards ---------- */
.sdo-done { padding: 0; gap: 0; overflow: hidden; }
.sdo-done__item + .sdo-done__item { border-top: 2px solid var(--sdo-line); }
.sdo-done__row {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
	min-height: 60px; padding: 8px 20px; color: var(--sdo-text);
}
.sdo-done__name { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.15; }
.sdo-done__meta { display: flex; align-items: center; gap: 16px; font-family: var(--sdo-mono); font-size: 12px; text-transform: uppercase; color: var(--sdo-text-3); }
.sdo-done__short { display: none; }
.sdo-done__toggle { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sdo-text); }
.sdo-done__toggle .sdo-icon { transition: transform 200ms ease-out; }
.sdo-done__item[open] .sdo-done__toggle .sdo-icon { transform: rotate(180deg); }
.sdo-done__panel { padding: 8px 20px 20px; }
.sdo-done__item[open] > .sdo-done__panel { animation: sdo-reveal 220ms ease-out; }
.sdo-done__row:focus-visible { outline-offset: -4px; }
@keyframes sdo-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.sdo-module { display: flex; flex-direction: column; gap: 16px; }
details.sdo-module { display: block; }
.sdo-module__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 2px solid var(--sdo-line); }
.sdo-module__titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sdo-module__title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1; }
.sdo-module__meta { font-family: var(--sdo-mono); font-size: 12px; text-transform: uppercase; color: var(--sdo-text-3); }

.sdo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 26px 16px; }
.sdo-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--sdo-text) !important; text-decoration: none; }
.sdo-card .sdo-thumb { transition: transform 160ms ease-out; }
.sdo-card:active .sdo-thumb { transform: scale(0.98); }
.sdo-card__text { display: flex; flex-direction: column; gap: 3px; }
.sdo-card__title { font-size: 16px; line-height: 1.25; font-weight: 700; }
.sdo-card__meta { min-height: 18px; font-family: var(--sdo-mono); font-size: 12px; text-transform: uppercase; color: var(--sdo-text-3); }
.sdo-card.is-done .sdo-card__meta { color: var(--sdo-acid); }
.sdo-card.is-current .sdo-card__meta { color: var(--sdo-text); font-weight: 700; }
.sdo-card:focus-visible { outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) {
	.sdo-card:hover .sdo-card__title { color: var(--sdo-acid); }
	.sdo-card:hover .sdo-thumb { border-color: var(--sdo-acid); }
}

/* ---------- Lesson page ---------- */
.sdo-lesson { display: block; width: 100%; min-width: 0; margin: 0 auto; padding: 24px 32px 64px; max-width: 1680px; }
.sdo-lesson > * { margin-bottom: 20px; }
.sdo-lesson > :last-child { margin-bottom: 0; }
.sdo-lesson__body, .sdo-lesson__aside { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sdo-lesson__aside { gap: 16px; }
@media (min-width: 1100px) {
	.sdo-lesson { display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: auto auto auto 1fr; column-gap: 24px; align-items: start; }
	.sdo-lesson > * { grid-column: 1; }
	.sdo-lesson > .sdo-lesson__aside { grid-column: 2; grid-row: 1 / span 4; margin-bottom: 0; }
	.sdo-lesson--text > .sdo-lesson__body, .sdo-lesson--text > .sdo-lesson__help { max-width: 860px; }
}

/* Player (Vimeo keeps its own controls) */
.sdo-player { position: relative; }
.sdo-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000000; border: 2px solid var(--sdo-line); }
.sdo-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@supports not (aspect-ratio: 16 / 9) { .sdo-video { height: 0; padding-top: 56.25%; } }

/* Practice buttons under the video (shown once the player answers) */
.sdo-pbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sdo-pbtn {
	width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 6px;
	border: 2px solid var(--sdo-line-strong); background: transparent; color: var(--sdo-text);
	font-family: var(--sdo-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; white-space: nowrap; transition: var(--sdo-press);
}
.sdo-pbtn:active { transform: scale(0.97); }
.sdo-pbtn[aria-pressed="true"] { background: var(--sdo-acid); border-color: var(--sdo-acid); color: var(--sdo-ink); }
@media (hover: hover) and (pointer: fine) {
	.sdo-pbtn:not([aria-pressed="true"]):hover { border-color: var(--sdo-acid); color: var(--sdo-acid); }
}

/* Title and actions */
.sdo-lessonhead { display: flex; flex-direction: column; gap: 12px; }
.sdo-lessonhead__title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1; }
.sdo-lessonhead__meta { color: var(--sdo-text-2); font-size: 15px; }
.sdo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; scroll-margin-top: calc(var(--sdo-top) + 24px); }
.sdo-actions__form { display: contents; }
.sdo-donebtn { border-color: var(--sdo-line-strong); }
.sdo-nextbtn { gap: 6px; min-width: 0; max-width: 100%; padding: 0 16px; border-color: var(--sdo-line-strong); }
.sdo-nextbtn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdo-actions[data-done="1"] .sdo-donebtn { border-color: var(--sdo-acid); color: var(--sdo-acid) !important; }
.sdo-actions[data-done="1"] .sdo-nextbtn { padding: 0 20px; background: var(--sdo-acid); border-color: var(--sdo-acid); color: var(--sdo-ink) !important; }
.sdo-actions.is-changed .sdo-donebtn, .sdo-actions.is-changed .sdo-nextbtn { animation: sdo-fade 220ms ease-out; }
.sdo-actions.is-changed .sdo-donebtn .sdo-icon { animation: sdo-check 240ms ease-out; }
@keyframes sdo-fade { from { opacity: 0.4; } to { opacity: 1; } }
@keyframes sdo-check { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
	.sdo-actions[data-done="0"] .sdo-donebtn:hover, .sdo-actions[data-done="0"] .sdo-nextbtn:hover { border-color: var(--sdo-acid); color: var(--sdo-acid) !important; }
	.sdo-actions[data-done="1"] .sdo-nextbtn:hover { background: transparent; color: var(--sdo-acid) !important; }
}

/* Lesson text and downloads */
.sdo-prose { max-width: 70ch; color: var(--sdo-text-2); font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
.sdo-prose > * + * { margin-top: 0.95em !important; }
.sdo-prose h2, .sdo-prose h3, .sdo-prose h4 {
	color: var(--sdo-text); font-family: var(--sdo-sans); font-size: 21px; line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase;
	margin-top: 1.7em !important;
}
.sdo-prose h3, .sdo-prose h4 { font-size: 18px; }
.sdo-prose ul, .sdo-prose ol { padding-left: 1.3em; }
.sdo-prose ul { list-style: square; }
.sdo-prose ol { list-style: decimal; }
.sdo-prose li::marker { color: var(--sdo-acid); font-weight: 700; }
.sdo-prose li + li { margin-top: 0.4em; }
.sdo-prose a { color: var(--sdo-acid); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sdo-prose img { height: auto; }
.sdo-prose blockquote { margin: 0; padding-left: 16px; border-left: 4px solid var(--sdo-acid); }
.sdo-prose figure { margin-left: 0; margin-right: 0; }
.sdo-prose figcaption { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--sdo-text-3); }
.sdo-prose hr { border: 0; border-top: 2px solid var(--sdo-line); margin-top: 1.8em !important; margin-bottom: 1.8em; }
.sdo-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 15px; }
.sdo-prose th, .sdo-prose td { padding: 8px 10px; border-bottom: 1px solid var(--sdo-line); text-align: left; vertical-align: top; }
.sdo-prose iframe, .sdo-prose video { max-width: 100%; }
.sdo-lesson--text .sdo-text { padding: 26px; }

.sdo-downloads__list { display: flex; flex-direction: column; gap: 8px; }
.sdo-downloads__item {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px;
	background: var(--sdo-raised); border: 2px solid var(--sdo-line); color: var(--sdo-text) !important; text-decoration: none; font-weight: 700;
}
.sdo-downloads__item .sdo-icon { color: var(--sdo-acid); }
.sdo-downloads__name { min-width: 0; overflow-wrap: anywhere; }
.sdo-downloads__go { margin-left: auto; font-family: var(--sdo-mono); font-size: 12px; text-transform: uppercase; color: var(--sdo-acid); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
	.sdo-downloads__item:hover { border-color: var(--sdo-acid); }
}

/* Lists next to the video */
.sdo-list { padding: 16px 14px 10px; gap: 10px; }
.sdo-list__head { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.sdo-list__title { font-size: 18px; line-height: 1.1; }
.sdo-list__sub { font-family: var(--sdo-mono); font-size: 12px; text-transform: uppercase; color: var(--sdo-text-3); }
.sdo-list__rows { display: flex; flex-direction: column; gap: 2px; }
.sdo-list__all { margin: 0 4px 6px; }
.sdo-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; font-size: 14px; color: var(--sdo-text-2); }
.sdo-switch { flex: 0 0 52px; width: 52px; height: 44px; padding: 0; display: flex; align-items: center; background: transparent; border: 0; }
.sdo-switch__track { display: flex; align-items: center; width: 48px; height: 26px; padding: 3px; background: var(--sdo-track); border: 2px solid var(--sdo-line-strong); }
.sdo-switch__knob { width: 16px; height: 16px; background: var(--sdo-text-2); transition: transform 180ms ease-out; }
.sdo-switch[aria-checked="true"] .sdo-switch__track { background: var(--sdo-acid); border-color: var(--sdo-acid); }
.sdo-switch[aria-checked="true"] .sdo-switch__knob { background: var(--sdo-ink); transform: translateX(22px); }

.sdo-row { display: flex; gap: 12px; padding: 8px; border-left: 4px solid transparent; color: var(--sdo-text) !important; text-decoration: none; }
.sdo-row.is-current { background: var(--sdo-raised); border-left-color: var(--sdo-acid); }
.sdo-row__thumb { flex: 0 0 116px; align-self: flex-start; }
.sdo-row__text { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.sdo-row__title { font-size: 15px; line-height: 1.25; font-weight: 700; }
.sdo-row__status { display: flex; align-items: center; gap: 5px; font-family: var(--sdo-mono); font-size: 11px; text-transform: uppercase; color: var(--sdo-text-3); }
.sdo-row__status.is-now { font-weight: 700; color: var(--sdo-text); }
.sdo-row__status.is-done, .sdo-row[data-done="1"] .sdo-row__status.is-now { font-weight: 700; color: var(--sdo-acid); }
@media (hover: hover) and (pointer: fine) {
	.sdo-row:not(.is-current):hover { background: var(--sdo-raised); }
	.sdo-row:hover .sdo-row__title { color: var(--sdo-acid); }
}

/* Help block under the lesson */
.sdo-helpblock { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.sdo-helpblock__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sdo-helpblock__btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Progress and account ---------- */
.sdo-bigprogress { gap: 16px; border-color: var(--sdo-text); }
.sdo-bigprogress__count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--sdo-text-2); }
.sdo-bigprogress__num { font-size: 72px; line-height: 0.9; font-weight: 900; letter-spacing: -0.03em; color: var(--sdo-acid); font-variant-numeric: tabular-nums; }
.sdo-bigprogress__resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 4px; color: var(--sdo-text-2); }
.sdo-certcard { gap: 10px; scroll-margin-top: calc(var(--sdo-top) + 16px); }
.sdo-certcard__icon { color: var(--sdo-text-3); }
.sdo-certcard__icon.is-ready { color: var(--sdo-acid); }
.sdo-certcard__cta { margin-top: auto; align-self: flex-start; }

.sdo-modlist { gap: 6px; }
.sdo-modlist > .sdo-h2 { margin-bottom: 10px; }
.sdo-modlist__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 0; border-top: 2px solid var(--sdo-line); }
.sdo-modlist__name { flex: 2 1 220px; min-width: 0; display: flex; flex-direction: column; font-weight: 700; }
.sdo-modlist__sub { font-family: var(--sdo-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--sdo-text-3); }
.sdo-modlist__bar { flex: 3 1 220px; display: flex; align-items: center; gap: 12px; }
.sdo-modlist__bar .sdo-bar { flex: 1 1 auto; }
.sdo-modlist__count { flex: 0 0 44px; text-align: right; font-family: var(--sdo-mono); font-size: 13px; color: var(--sdo-text-2); font-variant-numeric: tabular-nums; }
.sdo-modlist__cta { flex: 0 0 150px; padding: 0 10px; }

.sdo-account { gap: 0; }
.sdo-account > .sdo-h2 { margin-bottom: 14px; }
.sdo-account__row, .sdo-account__link {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
	min-height: 48px; padding: 6px 0; border-top: 2px solid var(--sdo-line);
}
.sdo-account__label { color: var(--sdo-text-2); }
.sdo-account__value { overflow-wrap: anywhere; }
.sdo-account__link { color: var(--sdo-text) !important; text-decoration: none; font-weight: 600; }
.sdo-account__link .sdo-icon { color: var(--sdo-text-3); }
@media (hover: hover) and (pointer: fine) {
	.sdo-account__link:hover, .sdo-account__link:hover .sdo-icon { color: var(--sdo-acid) !important; }
}

/* ---------- Forms (login, certificate check) ---------- */
.sdo-field { display: flex; flex-direction: column; gap: 6px; }
.sdo-field__label, .sdo-loginform label { font-family: var(--sdo-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--sdo-text); }
.sdo-input, .sdo-loginform input[type="text"], .sdo-loginform input[type="password"], .sdo-loginform input[type="email"] {
	display: block; width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--sdo-line-strong); border-radius: 0;
	background: var(--sdo-bg); color: var(--sdo-text); font-family: var(--sdo-sans); font-size: 17px; font-weight: 500;
}
.sdo-input::placeholder { color: var(--sdo-text-3); opacity: 1; }
.sdo-input:focus, .sdo-loginform input:focus { border-color: var(--sdo-acid); }
.sdo-login { display: flex; flex-direction: column; gap: 20px; }
.sdo-loginform { gap: 16px; }
.sdo-loginform form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.sdo-loginform form p { display: flex; flex-direction: column; gap: 6px; }
.sdo-loginform .login-remember label {
	display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--sdo-sans); font-size: 15px; font-weight: 500;
	text-transform: none; color: var(--sdo-text-2); cursor: pointer;
}
.sdo-loginform .login-remember input { width: 20px; height: 20px; margin: 0; accent-color: var(--sdo-acid); }
.sdo-loginform input[type="submit"] {
	min-height: 56px; padding: 0 26px; border: 2px solid var(--sdo-acid); border-radius: 0; background: var(--sdo-acid); color: var(--sdo-ink);
	font-family: var(--sdo-mono); font-size: 14px; font-weight: 700; text-transform: uppercase; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.sdo-loginhelp { gap: 8px; }
.sdo-loginhelp p { font-size: 15px; }
.sdo-certificate-verify { display: flex; flex-direction: column; gap: 24px; }
.sdo-certificate-verify__form { align-items: flex-start; max-width: 520px; }
.sdo-certificate-verify__form .sdo-field { align-self: stretch; }
@media (hover: hover) and (pointer: fine) {
	.sdo-loginform input[type="submit"]:hover { background: transparent; color: var(--sdo-acid); }
}

/* ---------- Help ---------- */
.sdo-faq { padding: 0; gap: 0; overflow: hidden; }
.sdo-faq__item + .sdo-faq__item { border-top: 2px solid var(--sdo-line); }
.sdo-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 20px; color: var(--sdo-text); }
.sdo-faq__q .sdo-icon { color: var(--sdo-acid); transition: transform 200ms ease-out; }
.sdo-faq__item[open] .sdo-faq__q .sdo-icon { transform: rotate(180deg); }
.sdo-faq__title { font-size: 16px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.sdo-faq__a { padding: 0 20px 20px; max-width: 66ch; font-size: 16px; }
.sdo-faq__item[open] > .sdo-faq__a { animation: sdo-reveal 220ms ease-out; }
.sdo-faq__q:focus-visible { outline-offset: -4px; }
.sdo-contact { gap: 10px; }
.sdo-contact__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }

/* ---------- No access ---------- */
.sdo-noaccess { align-items: flex-start; gap: 18px; padding-top: 56px; }
.sdo-noaccess__lock { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--sdo-acid); color: var(--sdo-ink); }
.sdo-noaccess .sdo-lead { max-width: 56ch; overflow-wrap: anywhere; }
.sdo-noaccess__block { align-self: stretch; align-items: flex-start; gap: 12px; }
.sdo-noaccess__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Certificate (always light: paper) ---------- */
.sdo-certificate {
	display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 52px 32px 40px; text-align: center;
	background: #ffffff; color: #0a0a0a; border: 6px double #0a0a0a;
}
.sdo-certificate p, .sdo-certificate strong, .sdo-certificate a { color: #0a0a0a; }
.sdo-certificate__school { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.sdo-certificate__title { margin-top: 20px !important; font-family: var(--sdo-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #0a0a0a; }
.sdo-certificate__intro { font-size: 16px; }
.sdo-certificate__name { font-size: clamp(30px, 5vw, 46px); line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.sdo-certificate__course { font-size: 24px; line-height: 1.15; font-weight: 800; }
.sdo-certificate__date { font-size: 16px; }
.sdo-certificate__signature { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sdo-certificate__signature-line { display: block; width: 200px; border-top: 2px solid #0a0a0a; margin-bottom: 6px; }
.sdo-certificate__signature-name { font-weight: 800; }
.sdo-certificate__signature-role { font-family: var(--sdo-mono); font-size: 12px; text-transform: uppercase; }
.sdo-certificate__footer { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; overflow-wrap: anywhere; }

/* ---------- Toasts (status messages) ---------- */
.sdo-toasts { position: fixed; left: 50%; bottom: 24px; z-index: 90; width: min(440px, calc(100vw - 32px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.sdo-toast {
	display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid var(--sdo-text);
	background: var(--sdo-panel); color: var(--sdo-text); font-weight: 700; box-shadow: 6px 6px 0 var(--sdo-acid);
	pointer-events: auto; animation: sdo-toast-in 220ms ease-out;
}
.sdo-toast.is-leaving { opacity: 0; transition: opacity 200ms ease-out; }
.sdo-toast a, .sdo-toast button { margin-left: auto; white-space: nowrap; }
.sdo-toast button { min-height: 36px; padding: 0 10px; border: 2px solid var(--sdo-line-strong); background: transparent; color: var(--sdo-text); font-family: var(--sdo-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.sdo-toast--party .sdo-checkdot { animation: sdo-party 280ms ease-out; }
@keyframes sdo-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sdo-party { 0% { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: none; } }

/* ---------- [sdo_area] used outside the area page ---------- */
.sdo-app--embed { background: var(--sdo-bg); }

/* ==========================================================================
   Phones and small tablets (< 900px): compact header, drawer menu, bottom bar,
   scrolling rows of cards, lesson list under the video.
   ========================================================================== */
@media (max-width: 899px) {
	.sdo-app { --sdo-top: 56px; }
	body.sdo-app--tabbar { padding-bottom: calc(var(--sdo-tabbar) + env(safe-area-inset-bottom, 0px)); }

	.sdo-top { position: static; padding: 0 8px 0 4px; gap: 8px; }
	.sdo-top__help { display: none; }
	.sdo-top__brand { gap: 8px; margin-left: 2px; font-size: 15px; }
	.sdo-top__brand .sdo-logo { width: 28px; height: 28px; }
	.sdo-avatar { width: 44px; height: 44px; background: transparent; }
	.sdo-avatar > span { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--sdo-acid); font-size: 15px; }
	.sdo-usermenu[open] > .sdo-avatar { outline: 0; }
	.sdo-usermenu[open] > .sdo-avatar > span { outline: 2px solid var(--sdo-text); outline-offset: 2px; }
	.sdo-app--has-back .sdo-top__brand { display: none; }
	.sdo-app--has-back .sdo-top__back { display: inline-flex; margin-left: -6px; }
	.sdo-app--has-back .sdo-top__context { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }

	.sdo-tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(var(--sdo-tabs, 4), minmax(0, 1fr));
		height: calc(var(--sdo-tabbar) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
		background: var(--sdo-bg); border-top: 2px solid var(--sdo-text);
	}
	.sdo-tabbar__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0;
		color: var(--sdo-text-2) !important; text-decoration: none; font-family: var(--sdo-mono); font-size: 11px; font-weight: 700; text-transform: uppercase;
	}
	.sdo-tabbar__item.is-current { color: var(--sdo-acid) !important; box-shadow: inset 0 3px 0 var(--sdo-acid); }
	.sdo-tabbar__item:focus-visible { outline-offset: -5px; }
	.sdo-toasts { bottom: calc(var(--sdo-tabbar) + env(safe-area-inset-bottom, 0px) + 12px); }
	/* The cookie banner sits above the bottom bar, so the bar stays usable. */
	body.sdo-app--tabbar .sdo-consent {
		bottom: calc(var(--sdo-tabbar) + env(safe-area-inset-bottom, 0px) + 12px);
		max-height: calc(100vh - var(--sdo-tabbar) - env(safe-area-inset-bottom, 0px) - 28px);
	}
	body.sdo-app:not(.sdo-app--tabbar) .sdo-toasts { bottom: 16px; }
	.sdo-side.is-open { top: var(--sdo-adminbar); z-index: 75; padding-top: 8px; overflow-y: auto; }
	.sdo-side.is-open .sdo-side__close { display: inline-flex; }
	.sdo-scrim { z-index: 72; }
	.sdo-side__scroll { flex: 0 0 auto; overflow: visible; }

	.sdo-screen { gap: 20px; padding: 20px 16px 28px; }
	.sdo-panel--lg { padding: 18px 16px; }
	.sdo-legal { padding: 16px 16px 20px; gap: 2px 16px; }

	/* Home */
	.sdo-home { gap: 26px; padding: 12px 16px 28px; }
	.sdo-chips { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.sdo-chips::-webkit-scrollbar { display: none; }
	.sdo-chip--module { display: flex; }
	.sdo-chip--module { overflow: hidden; text-overflow: ellipsis; }
	.sdo-hero { display: block; }
	.sdo-hero > * + * { margin-top: 20px; }
	.sdo-resume { flex: 0 0 auto; display: block; padding: 12px; }
	.sdo-resume__thumb { max-width: none; margin-bottom: 14px; }
	.sdo-resume__text { align-items: stretch; gap: 8px; }
	.sdo-resume__btn { margin-top: 6px; }
	.sdo-progresscard { flex: 0 0 auto; gap: 10px; padding: 16px; }
	.sdo-progresscard > .sdo-eyebrow { display: none; }
	.sdo-progresscard__count { gap: 6px; color: var(--sdo-text); font-weight: 700; }
	.sdo-progresscard__num { font-size: 16px; line-height: inherit; font-weight: 700; letter-spacing: 0; color: var(--sdo-text); }
	.sdo-progresscard__pct { display: block; margin-left: auto; font-family: var(--sdo-mono); font-size: 13px; color: var(--sdo-acid); }
	.sdo-progresscard__link { margin-top: -4px; }

	.sdo-done__row { flex-wrap: nowrap; gap: 12px; padding: 0 12px 0 16px; }
	.sdo-done__name { min-width: 0; font-size: 15px; }
	.sdo-done__name .sdo-checkdot, .sdo-done__count, .sdo-done__toggle-text { display: none; }
	.sdo-done__short { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--sdo-acid); }
	.sdo-done__panel { padding: 4px 16px 16px; }

	.sdo-module { gap: 12px; }
	.sdo-module__head { flex-wrap: nowrap; gap: 12px; }
	.sdo-module__meta { flex: 0 0 auto; max-width: 45%; text-align: right; }
	.sdo-cards {
		display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto;
		scroll-snap-type: x proximity; scroll-padding-left: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.sdo-cards::-webkit-scrollbar { display: none; }
	.sdo-card { flex: 0 0 232px; gap: 8px; scroll-snap-align: start; }
	.sdo-done__panel .sdo-cards { margin: 0 -16px; }

	/* Lesson */
	.sdo-lesson { padding: 0 0 28px; }
	.sdo-lesson > * { margin-left: 16px; margin-right: 16px; }
	.sdo-lesson > .sdo-player { margin: 0 0 12px; }
	.sdo-video { border-width: 0 0 2px; }
	.sdo-pbtns { margin-bottom: 16px; }
	.sdo-lesson > .sdo-lesson__body:first-child { padding-top: 20px; }
	.sdo-lessonhead { gap: 8px; }
	.sdo-lessonhead__meta { font-size: 14px; }
	.sdo-actions { flex-wrap: nowrap; padding-top: 8px; }
	.sdo-actions__prev { display: none; }
	.sdo-actions .sdo-btn { min-height: 52px; padding: 0 14px; }
	.sdo-actions[data-done="0"] .sdo-donebtn { flex: 1 1 auto; min-width: 0; }
	.sdo-actions[data-done="0"] .sdo-nextbtn { flex: 0 0 auto; }
	.sdo-actions[data-done="0"] .sdo-nextbtn__title { display: none; }
	.sdo-actions[data-done="1"] .sdo-donebtn { flex: 0 0 52px; width: 52px; padding: 0; }
	.sdo-actions[data-done="1"] .sdo-donebtn__label { display: none; }
	.sdo-actions[data-done="1"] .sdo-nextbtn { flex: 1 1 auto; min-width: 0; }
	.sdo-lesson .sdo-panel { padding: 16px; }
	.sdo-lesson--text .sdo-text { padding: 18px 16px; }
	.sdo-prose { font-size: 16px; }
	.sdo-lesson__aside { gap: 4px; }
	.sdo-lesson .sdo-list { padding: 0; gap: 6px; background: transparent; border: 0; }
	.sdo-list + .sdo-list { margin-top: 16px; }
	.sdo-list__head { padding: 0; }
	.sdo-switchrow { padding: 0; }
	.sdo-list__rows { margin: 0 -8px; }
	.sdo-list__all { margin: 8px 0 0; }
	.sdo-row__thumb { flex-basis: 128px; }
	.sdo-row__status { font-size: 12px; }
	.sdo-helpblock { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
	.sdo-helpblock__text { flex: 0 0 auto; }
	.sdo-helpblock__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sdo-helpblock__btns .sdo-btn:only-child { grid-column: 1 / -1; }

	/* Progress */
	.sdo-bigprogress__num { font-size: 56px; }
	.sdo-bigprogress__resume .sdo-btn { flex: 1 1 100%; }
	.sdo-modlist__cta { flex: 1 1 100%; }
	.sdo-contact__btns .sdo-btn { flex: 1 1 auto; }

	/* No access, certificate */
	.sdo-noaccess { padding-top: 28px; }
	.sdo-noaccess__btns .sdo-btn, .sdo-noaccess__block > .sdo-btn { flex: 1 1 auto; align-self: stretch; }
	.sdo-certificate { padding: 30px 16px 26px; }
	.sdo-certificate__course { font-size: 20px; }
	.sdo-certificate-actions .sdo-btn { align-self: stretch; }
}

/* The video stays in view while you scroll to the text or the lesson list. */
@media (max-width: 899px) and (orientation: portrait) {
	.sdo-lesson > .sdo-player { position: sticky; top: var(--sdo-adminbar); z-index: 40; }
}

@media (max-width: 480px) {
	.sdo-pbtn { font-size: 11px; line-height: 1.2; white-space: normal; text-align: center; }
	.sdo-pbtn .sdo-icon { display: none; }
}
@media (max-width: 380px) {
	.sdo-row__thumb { flex-basis: 108px; }
	.sdo-top__brand { font-size: 14px; }
	.sdo-btn { padding-left: 14px; padding-right: 14px; }
}

/* ---------- Reduced motion: no movement, fades stay ---------- */
@media (prefers-reduced-motion: reduce) {
	.sdo-app *, .sdo-app *::before, .sdo-app *::after { scroll-behavior: auto !important; }
	.sdo-btn, .sdo-iconbtn, .sdo-chip, .sdo-avatar, .sdo-pbtn, .sdo-card .sdo-thumb, .sdo-switch__knob,
	.sdo-done__toggle .sdo-icon, .sdo-faq__q .sdo-icon { transition: none; }
	.sdo-btn:active, .sdo-iconbtn:active, .sdo-chip:active, .sdo-avatar:active, .sdo-pbtn:active, .sdo-card:active .sdo-thumb { transform: none; }
	.sdo-done__item[open] > .sdo-done__panel, .sdo-faq__item[open] > .sdo-faq__a, .sdo-usermenu__panel, .sdo-toast,
	.sdo-side.is-open, .sdo-actions.is-changed .sdo-donebtn .sdo-icon, .sdo-toast--party .sdo-checkdot {
		animation-name: sdo-fade-only;
	}
}
@keyframes sdo-fade-only { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Print: only the content (certificate on one A4 landscape sheet) ---------- */
@media print {
	@page { margin: 12mm; }
	body.sdo-certificate-page { page: sdo-certificate; }
	@page sdo-certificate { size: A4 landscape; margin: 12mm; }
	html:has(body.sdo-app), body.sdo-app { background: #ffffff !important; padding: 0 !important; }
	.sdo-top, .sdo-tabbar, .sdo-side, .sdo-scrim, .sdo-toasts, .sdo-skip, .sdo-legal, .sdo-no-print,
	.sdo-app .sdo-cookie-link, .sdo-app .sdo-consent, #wpadminbar { display: none !important; }
	.sdo-shell, .sdo-shell--side { display: block; }
	.sdo-shell__main { min-height: 0; }
	.sdo-screen { padding: 0; max-width: none; }
	.sdo-certificate { min-height: 60vh; justify-content: center; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
