/* globalapps.top, qsvo.globalapps.top, diwass.globalapps.top and aschg.globalapps.top (backend#120, #122, #124), served to all from
   /gemeinsam/. Layout: a course page in the online-course idiom — a dark course header, a sticky course card on the
   right, a collapsible curriculum below; a lesson player with narrated slides, tabs and the curriculum alongside; plain
   pages for the survey, the Impressum and the privacy notice; and the page on globalapps.top that lists the courses.
   Each course has its own colours: green for the QS-VO course (the default), blue for DIWASS (data-kurs="diwass"),
   amber for the ASchG course (data-kurs="aschg").
   The fonts are the visitor's own system fonts on purpose: nothing on these sites loads from another server. */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #56645e;
  --line: #dbe2de;
  --hero: #12201b;
  --hero-ink: #eef4f1;
  --hero-muted: #a9bdb4;
  --accent: #0e7a5c;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1eb;
  --pending: #8a5a00;
  --pending-soft: #fbf0d9;
  --ok: #187a49;
  --bad: #b3261e;
  --slide: #0f1a16;
  --slide-ink: #f1f6f3;
  --cover-1: #1f6b52;
  --cover-2: #12352a;
  --cover-3: #0b1d17;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1412; --surface: #141e1a; --ink: #e4ece8; --muted: #9db0a8; --line: #24322c;
    --hero: #0a110e; --hero-ink: #eef4f1; --hero-muted: #9fb5ab;
    --accent: #34c08f; --accent-ink: #062018; --accent-soft: #15352a;
    --pending: #e8b351; --pending-soft: #3a2e14; --ok: #4fd08f; --bad: #f2867e;
    --slide: #08100d; --slide-ink: #eef4f1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1412; --surface: #141e1a; --ink: #e4ece8; --muted: #9db0a8; --line: #24322c;
  --hero: #0a110e; --hero-ink: #eef4f1; --hero-muted: #9fb5ab;
  --accent: #34c08f; --accent-ink: #062018; --accent-soft: #15352a;
  --pending: #e8b351; --pending-soft: #3a2e14; --ok: #4fd08f; --bad: #f2867e;
  --slide: #08100d; --slide-ink: #eef4f1;
  color-scheme: dark;
}
/* DIWASS: a cooler blue for shipments and borders. Same three states as above: light, dark by the system, dark chosen. */
:root[data-kurs="diwass"] {
  --bg: #f4f6f8; --surface: #ffffff; --ink: #161e26; --muted: #52606e; --line: #d8e0e8;
  --hero: #0f1a25; --hero-ink: #eef3f8; --hero-muted: #a6b6c6;
  --accent: #1d5f9a; --accent-ink: #ffffff; --accent-soft: #e2edf7;
  --slide: #0c1520; --slide-ink: #eef3f8;
  --cover-1: #2c6a9e; --cover-2: #17344f; --cover-3: #0b1724;
}
@media (prefers-color-scheme: dark) {
  :root[data-kurs="diwass"]:not([data-theme="light"]) {
    --bg: #0c1218; --surface: #131c25; --ink: #e2e9f0; --muted: #9aabbc; --line: #22303d;
    --hero: #091017; --hero-ink: #eef3f8; --hero-muted: #9db0c2;
    --accent: #5aa6e6; --accent-ink: #061524; --accent-soft: #15293b;
    --slide: #070d13; --slide-ink: #eef3f8;
  }
}
:root[data-kurs="diwass"][data-theme="dark"] {
  --bg: #0c1218; --surface: #131c25; --ink: #e2e9f0; --muted: #9aabbc; --line: #22303d;
  --hero: #091017; --hero-ink: #eef3f8; --hero-muted: #9db0c2;
  --accent: #5aa6e6; --accent-ink: #061524; --accent-soft: #15293b;
  --slide: #070d13; --slide-ink: #eef3f8;
}
/* ASchG (backend#124): a warm amber, the colour of safety signs. The same three states again. */
:root[data-kurs="aschg"] {
  --bg: #f7f5f2; --surface: #ffffff; --ink: #221a14; --muted: #64584f; --line: #e5ddd5;
  --hero: #231811; --hero-ink: #f6f0ea; --hero-muted: #c3b2a4;
  --accent: #b4531a; --accent-ink: #ffffff; --accent-soft: #f6e6da;
  --slide: #1c130d; --slide-ink: #f6f0ea;
  --cover-1: #a8521d; --cover-2: #5a2c12; --cover-3: #2a150a;
}
@media (prefers-color-scheme: dark) {
  :root[data-kurs="aschg"]:not([data-theme="light"]) {
    --bg: #15100c; --surface: #1d1611; --ink: #efe6de; --muted: #b5a598; --line: #352a21;
    --hero: #100b08; --hero-ink: #f6f0ea; --hero-muted: #bfae9f;
    --accent: #f0904f; --accent-ink: #261204; --accent-soft: #3b2415;
    --slide: #0d0906; --slide-ink: #f6f0ea;
  }
}
:root[data-kurs="aschg"][data-theme="dark"] {
  --bg: #15100c; --surface: #1d1611; --ink: #efe6de; --muted: #b5a598; --line: #352a21;
  --hero: #100b08; --hero-ink: #f6f0ea; --hero-muted: #bfae9f;
  --accent: #f0904f; --accent-ink: #261204; --accent-soft: #3b2415;
  --slide: #0d0906; --slide-ink: #f6f0ea;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.15; margin: 0; }
/* German compounds like "Abfallverbringungsverordnung" are wider than a phone: let headings hyphenate, or break. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.mono { font-family: var(--mono); font-size: 0.84em; font-variant-numeric: tabular-nums; }
.para { font-family: var(--mono); font-size: 0.78em; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 18px; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 16px; }
.spacer { flex: 1; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 5px 12px; cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
/* On globalapps.top the two languages are two pages, so the switch is a pair of links. */
.lang a { padding: 5px 12px; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.lang a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.home-link { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.home-link:hover { color: var(--ink); text-decoration: underline; }

/* Course header */
.hero { background: var(--hero); color: var(--hero-ink); padding-block: 28px 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
.crumbs { font-size: 13px; font-weight: 600; color: var(--hero-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs span + span::before { content: "›"; margin-right: 8px; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-top: 12px; letter-spacing: -0.01em; }
.hero .sub { font-size: 18px; margin: 12px 0 0; max-width: 62ch; color: var(--hero-ink); opacity: 0.92; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.badge { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
.badge.free { background: var(--accent); color: var(--accent-ink); }
.badge.plain { background: rgba(255, 255, 255, 0.12); color: var(--hero-ink); }
.meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: var(--hero-muted); }

/* Body + course card */
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-block: 28px 56px; }
.content { min-width: 0; display: grid; gap: 32px; align-content: start; }
.card-col { position: relative; }
.buy-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); margin-top: -300px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(10, 30, 22, 0.18); }
.cover { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: radial-gradient(120% 120% at 15% 10%, var(--cover-1) 0%, var(--cover-2) 45%, var(--cover-3) 100%); color: #eaf5f0; display: grid; place-items: center; overflow: hidden; cursor: pointer; border: 0; width: 100%; }
.cover .glyph { position: absolute; right: -14px; bottom: -48px; font-family: var(--display); font-size: 210px; font-weight: 800; opacity: 0.13; line-height: 1; }
.cover .cover-text { position: absolute; left: 18px; top: 16px; text-align: left; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.cover .cover-text small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; opacity: 0.8; margin-top: 6px; }
.play { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.94); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.play::before { content: ""; border-left: 18px solid var(--cover-2); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.cover .cover-cap { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 14px; }
.card-body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.price { font-family: var(--display); font-weight: 800; font-size: 28px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 6px; padding: 12px 18px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; }
.includes li { display: flex; gap: 10px; }
.includes li::before { content: "•"; color: var(--accent); font-weight: 800; }
.card-note { font-size: 12px; color: var(--muted); }
.card-link { font-weight: 700; text-decoration: none; font-size: 15px; }

/* Sections on the course page */
.learn { border: 1px solid var(--line); background: var(--surface); padding: 20px 22px; border-radius: 8px; }
.learn h2, .block h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.learn ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.learn li { display: flex; gap: 10px; font-size: 15px; }
.learn li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.ask { border: 1px solid var(--accent); background: var(--accent-soft); padding: 20px 22px; border-radius: 8px; display: grid; gap: 12px; }
.ask h2 { font-size: 22px; font-weight: 800; }
.ask p { margin: 0; max-width: 64ch; }
.ask .row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.ask .row span { font-size: 15px; color: var(--muted); }
.block p { margin: 0 0 10px; max-width: 70ch; }
.block ul { margin: 0; padding-left: 20px; max-width: 70ch; }
.block-sub { font-size: 18px; margin: 16px 0 8px; }
.curr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.linkbtn { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 0; }
.curr { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.curr details + details { border-top: 1px solid var(--line); }
.curr summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: baseline; padding: 14px 18px; background: color-mix(in srgb, var(--line) 35%, var(--surface)); font-weight: 700; }
.curr summary::-webkit-details-marker { display: none; }
.curr summary::before { content: "▸"; color: var(--muted); transition: transform 0.15s; display: inline-block; }
.curr details[open] summary::before { transform: rotate(90deg); }
.curr summary .s-title { flex: 1; min-width: 0; }
.curr summary .s-meta { font-weight: 400; font-size: 13px; color: var(--muted); white-space: nowrap; }
.lessons { list-style: none; margin: 0; padding: 6px 0; }
.lessons li { display: flex; gap: 12px; align-items: baseline; padding: 8px 18px; font-size: 15px; }
.lessons .l-icon { color: var(--muted); width: 16px; flex: none; text-align: center; }
.lessons .l-title { flex: 1; min-width: 0; }
.lessons .l-title a { color: var(--accent); font-weight: 600; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.tag.ready { background: var(--accent-soft); color: var(--accent); }
.dur { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; max-width: 75ch; }

/* Player */
.pbar { background: var(--hero); color: var(--hero-ink); }
.pbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.pbar .ptitle { font-family: var(--display); font-weight: 800; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar a { color: var(--hero-ink); font-weight: 600; text-decoration: none; font-size: 14px; white-space: nowrap; }
.ring { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hero-muted); white-space: nowrap; }
.ring svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255,255,255,0.18); }
.ring .fill { stroke: var(--accent); transition: stroke-dashoffset 0.3s; }
.player-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; align-items: start; }
.stage { min-width: 0; padding-block: 0 48px; }
.screen { position: relative; background: var(--slide); color: var(--slide-ink); aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; overflow: hidden; }
.screen .slide { max-width: 780px; padding: 32px 40px; text-align: left; }
.screen .slide .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.screen .slide h3 { font-size: clamp(22px, 3.2vw, 38px); font-weight: 800; margin-top: 10px; }
.screen .slide p { font-size: clamp(15px, 1.7vw, 20px); margin: 14px 0 0; opacity: 0.92; }
.screen .glyph { position: absolute; right: 18px; bottom: -40px; font-family: var(--display); font-size: 180px; font-weight: 800; opacity: 0.07; pointer-events: none; }
.screen .note { position: absolute; top: 12px; right: 14px; font-size: 12px; background: rgba(255,255,255,0.1); padding: 3px 8px; border-radius: 4px; }
.screen.speaking .note::before { content: "● "; color: var(--accent); }
.controls { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--hero); color: var(--hero-ink); flex-wrap: wrap; }
.controls button { background: rgba(255,255,255,0.1); border: 0; color: var(--hero-ink); border-radius: 5px; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.controls button.main { background: var(--accent); color: var(--accent-ink); }
.controls .bar { flex: 1; min-width: 80px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; }
.controls .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.3s; }
.controls .count { font-family: var(--mono); font-size: 12.5px; color: var(--hero-muted); }
.lesson-head { padding: 20px 24px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lesson-head h2 { font-size: 24px; font-weight: 800; flex: 1; min-width: 240px; }
.lesson-no { font-size: 0.7em; color: var(--muted); }
.done-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; }
.tabs { display: flex; gap: 4px; padding: 14px 24px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.panel { padding: 22px 24px; max-width: 78ch; }
.panel h3 { font-size: 19px; font-weight: 800; margin: 22px 0 8px; }
.panel h3:first-child { margin-top: 0; }
.panel p { margin: 0 0 10px; }
.panel ol, .panel ul { padding-left: 22px; margin: 0 0 10px; display: grid; gap: 6px; }
.table-wrap { overflow-x: auto; margin: 6px 0 12px; }
.panel table { border-collapse: collapse; min-width: 460px; font-size: 15px; }
.panel th, .panel td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.panel th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.panel tr.hl td { background: var(--accent-soft); font-weight: 700; }
.fn { font-size: 13px; color: var(--muted); }
.checks { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.checks input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.checks input:checked + span { color: var(--muted); text-decoration: line-through; }
.quiz .q { font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.quiz .opts { display: grid; gap: 8px; }
.quiz .opts label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.quiz .opts input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.quiz .opts label.right { border-color: var(--ok); }
.quiz .opts label.wrong { border-color: var(--bad); }
.quiz .result { margin-top: 12px; padding: 10px 12px; border-radius: 6px; font-size: 15px; }
.quiz .result.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.quiz .result.no { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.quiz .actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.sources { display: grid; gap: 10px; padding-left: 0 !important; list-style: none; }
.nav-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 24px 0; flex-wrap: wrap; }
.side { border-left: 1px solid var(--line); background: var(--surface); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); max-height: calc(100vh - 56px); overflow-y: auto; }
.side h3 { font-size: 16px; font-weight: 800; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.side .curr { border: 0; border-radius: 0; }
.side .curr summary { padding: 12px 16px; font-size: 14px; }
.side .lessons li { padding: 7px 16px; font-size: 14px; }
.side .lessons li.current { background: var(--accent-soft); }
.side .lessons button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.side-ask { display: block; margin: 14px 16px 18px; padding: 12px 14px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.tick { width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 3px; flex: none; display: grid; place-items: center; font-size: 11px; margin-top: 3px; }
.tick.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Site footer, on every page */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 22px 28px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: grid; gap: 8px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-foot nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot p { margin: 0; max-width: 75ch; }

/* Plain pages: the survey, the Impressum, the privacy notice */
.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
.page h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.01em; }
.page .lead { font-size: 18px; margin: 12px 0 0; max-width: 62ch; }
.page h2 { font-size: 20px; font-weight: 800; margin: 30px 0 10px; }
.page p, .page li { max-width: 68ch; }
.page p { margin: 0 0 12px; }
.page ul, .page ol { padding-left: 22px; margin: 0 0 12px; display: grid; gap: 6px; }
.page .meta-line { color: var(--muted); font-size: 14px; margin-top: 10px; }
.note-box { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 14px 16px; font-size: 15px; margin-top: 20px; }
.note-box p:last-child { margin-bottom: 0; }

/* A lesson as a page of its own, written by kurs-seiten.mjs for search engines and for anyone who would rather read than
   play it (backend#123). Its text is the player's Overview tab, so it takes the panel's rules for headings and tables. */
.lesson-page .trail { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.lesson-page .trail a { color: inherit; }
.lesson-page .trail span::before { content: "›"; margin-right: 8px; }
.lesson-page .kicker { margin: 18px 0 6px; font-size: 14px; color: var(--muted); }
.lesson-page .open-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.lesson-page .keypoints { gap: 8px; }
.lesson-page .lesson-text h3 { font-size: 18px; font-weight: 800; margin: 22px 0 8px; }
.lesson-page .lesson-text h2 + h3 { margin-top: 0; }
.lesson-page .lesson-text table { border-collapse: collapse; min-width: 460px; font-size: 15px; }
.lesson-page .lesson-text th, .lesson-page .lesson-text td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lesson-page .lesson-text th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lesson-page .lesson-text tr.hl td { background: var(--accent-soft); font-weight: 700; }
.lesson-page .checklist { list-style: none; padding-left: 0; gap: 8px; }
.lesson-page .checklist li { position: relative; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.lesson-page .checklist li::before { content: ""; position: absolute; left: 12px; top: 14px; width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 3px; }
.lesson-page .quiz-q { font-weight: 700; font-size: 17px; }
.lesson-page .quiz-opts { list-style: upper-alpha; }
.lesson-page .quiz-a { margin-top: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 10px 12px; }
.lesson-page .quiz-a summary { cursor: pointer; font-weight: 700; }
.lesson-page .quiz-a p { margin: 10px 0 0; }
.lesson-page .lesson-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 36px 0 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.lesson-page .lesson-nav a { max-width: 46%; font-weight: 600; text-decoration: none; color: var(--accent); }
.lesson-page .lesson-nav a[rel="next"] { margin-left: auto; text-align: right; }
.lesson-page .lesson-nav .mono { display: block; color: var(--muted); }
/* On the English course page, which has no engine, the cover is a link into the course rather than a button. */
a.cover { text-decoration: none; }
.nojs-note { margin: 0; padding: 10px 16px; background: var(--accent-soft); color: var(--ink); font-size: 14px; text-align: center; }

/* Survey form */
.survey fieldset { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px 20px 20px; margin: 22px 0 0; display: grid; gap: 20px; min-width: 0; }
.survey legend { font-family: var(--display); font-weight: 800; font-size: 19px; padding: 0 6px; }
.survey .hint { font-size: 14px; color: var(--muted); margin: -10px 0 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > .label { font-weight: 700; }
.field .num { font-family: var(--mono); color: var(--accent); margin-right: 6px; }
.field.sub { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; width: 100%; }
.field textarea { min-height: 88px; resize: vertical; }
.opts-list { display: grid; gap: 6px; }
.opts-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.opts-list input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.send { margin-top: 26px; display: grid; gap: 12px; }
.send .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.send .btn { min-width: 160px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; max-width: 68ch; }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.send .btn[disabled] { opacity: 0.65; cursor: progress; }
.status { font-size: 15px; color: var(--ok); min-height: 1.4em; }
.status.err { color: var(--bad); font-weight: 600; }
/* The honeypot: off-screen for people, still in the form for bots. Never display:none, which bots skip. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* globalapps.top: the page that lists the courses (backend#122). Each card carries its course's own cover colours and
   button, the same in both themes, as the covers on the course pages are. */
.start-hero { padding-block: 40px 64px; }
.start-hero .eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hero-muted); }
.start-hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; margin-top: 12px; letter-spacing: -0.01em; max-width: 20ch; }
.start-hero .sub { font-size: 18px; margin: 14px 0 0; max-width: 64ch; opacity: 0.92; }
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: -36px; }
/* minmax(0, 1fr): a column sized to its content would grow to the widest unbreakable word, hyphenation notwithstanding. */
.course { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; box-shadow: 0 10px 30px rgba(10, 30, 22, 0.14); }
.course.qsvo { --c1: #1f6b52; --c2: #12352a; --c3: #0b1d17; --cbtn: #0e7a5c; }
.course.diwass { --c1: #2c6a9e; --c2: #17344f; --c3: #0b1724; --cbtn: #1d5f9a; }
.course.aschg { --c1: #a8521d; --c2: #5a2c12; --c3: #2a150a; --cbtn: #b4531a; }
.course-cover { position: relative; display: block; aspect-ratio: 16 / 6; overflow: hidden; color: #eef4f8; text-decoration: none; background: radial-gradient(120% 120% at 15% 10%, var(--c1) 0%, var(--c2) 45%, var(--c3) 100%); }
.course-cover .glyph { position: absolute; right: -6px; bottom: -40px; font-family: var(--display); font-size: 170px; font-weight: 800; line-height: 1; opacity: 0.14; }
.course-cover .cover-text { position: absolute; left: 20px; top: 18px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.course-cover .cover-text small { display: block; margin-top: 6px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; opacity: 0.8; }
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.course-body .for { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.course-body h2 { font-size: 22px; font-weight: 800; }
.course-body h2 a { color: var(--ink); text-decoration: none; }
.course-body h2 a:hover { text-decoration: underline; }
.course-body p { margin: 0; }
.facts { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.course .btn.primary { background: var(--cbtn); color: #ffffff; align-self: flex-start; }
.how { padding-block: 44px 4px; }
.how h2, .start-note h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.parts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.parts li { border-top: 3px solid var(--line); padding-top: 10px; font-size: 15px; }
.parts b { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 4px; }
.start-note { padding-block: 36px 56px; }
.start-note p { max-width: 70ch; margin: 0 0 10px; }

@media (max-width: 900px) {
  .hero-grid, .body-grid, .player-grid, .courses { grid-template-columns: minmax(0, 1fr); }
  .parts { grid-template-columns: 1fr 1fr; }
  .hero-grid > :last-child { display: none; }
  .buy-card { position: static; margin-top: 0; }
  .card-col { order: -1; }
  .learn ul { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
  .screen .slide { padding: 20px 22px; }
  .lesson-head, .tabs, .panel, .nav-row { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 600px) {
  .lesson-page .lesson-nav a { max-width: 100%; }
  .pair { grid-template-columns: 1fr; }
  .field.sub { margin-left: 0; }
  .parts { grid-template-columns: 1fr; }
}
/* The top bar has no room for the "All courses" link on a phone; the footer has it on every page. */
@media (max-width: 520px) {
  .home-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
