/* SiaOne Academy - design system
   Brand colour comes from the SiaOne logo (deep teal). Light and dark themes
   are switched with data-theme on <html>. */

:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --border: #dbe4e6;
  --border-strong: #c3d0d3;
  --text: #0f1f24;
  --muted: #51656b;
  --faint: #8195a0;
  --brand: #0d6e77;
  --brand-strong: #0a545b;
  --brand-soft: #e1f1f2;
  --on-brand: #ffffff;
  --mark: #fff1b8;
  --mark-text: #3d2f00;


  --note: #1a59b5;
  --tip: #13763a;
  --important: #6a3bc0;
  --warning: #a35a00;
  --caution: #b3261e;

  --hero-a: #083f46;
  --hero-b: #0d6e77;
  --hero-c: #14909a;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(9, 40, 46, 0.06);
  --shadow: 0 8px 24px rgba(9, 40, 46, 0.09);
  --shadow-lg: 0 24px 60px rgba(4, 24, 28, 0.28);
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 64px;
  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1316;
  --surface: #101c20;
  --surface-2: #16262b;
  --border: #21353a;
  --border-strong: #2f484e;
  --text: #e9f1f2;
  --muted: #a0b3b8;
  --faint: #6f858c;
  --brand: #43bcc6;
  --brand-strong: #7ad6dd;
  --brand-soft: #11343a;
  --on-brand: #032326;
  --mark: #5c4a00;
  --mark-text: #fff3c4;


  --note: #8ab8f7;
  --tip: #6fd596;
  --important: #c0a2f5;
  --warning: #f0b45a;
  --caution: #ff8f85;

  --hero-a: #061f23;
  --hero-b: #0a3d43;
  --hero-c: #0f5c64;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, video { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd {
  font: 600 11px/1 var(--mono);
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); opacity: 0.94; }
.brand-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 4px 9px; border-radius: 999px;
}
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a {
  color: var(--muted); font-weight: 550; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.search-trigger {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  min-width: 250px; height: 40px; padding: 0 10px 0 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted); font-size: 14.5px;
}
.search-trigger:hover { border-color: var(--brand); color: var(--text); }
.search-trigger .st-label { flex: 1; text-align: left; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn span { display: inline-flex; }
[data-theme="dark"] .when-light, [data-theme="light"] .when-dark { display: none; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(67, 188, 198, 0.28), transparent 60%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 80px; max-width: 880px; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.74); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.5rem); letter-spacing: -0.035em; }
.hero-sub { margin: 16px auto 0; max-width: 620px; font-size: 1.12rem; color: rgba(255, 255, 255, 0.86); }
.hero-search {
  margin: 30px auto 0; width: 100%; max-width: 680px; height: 62px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px;
  background: #fff; color: #51656b; border: 0; border-radius: 16px;
  font-size: 1.05rem; text-align: left;
  box-shadow: 0 18px 44px rgba(2, 24, 28, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-search:hover { transform: translateY(-1px); box-shadow: 0 22px 54px rgba(2, 24, 28, 0.42); }
.hero-search span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero-search .icon { color: #0d6e77; width: 24px; height: 24px; }
.hero-search kbd { background: #eef3f4; border-color: #c3d0d3; color: #51656b; }
.hero-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.hero .chip { background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff; }
.hero .chip:hover { background: rgba(255, 255, 255, 0.24); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip small { font-size: 12px; opacity: 0.75; font-weight: 600; }

/* ---------- sections ---------- */
.section { padding-top: 56px; }
.section.tight { padding-top: 8px; }
.section:last-child, .two-col:last-child { padding-bottom: 72px; }
.section.narrow, .narrow { max-width: 860px; }
.section-head { margin-bottom: 22px; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.section-more { margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand);
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); text-decoration: none; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.btn.small { padding: 7px 11px; font-size: 13.5px; }
.btn .icon { width: 17px; height: 17px; }

.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
}
.badge.soon { color: var(--muted); background: var(--surface-2); }
.badge.kind { color: var(--brand); background: var(--brand-soft); }

/* module cards */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.module-card {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px;
  padding: 18px; border-radius: var(--radius); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.module-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.mc-icon {
  grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.mc-icon .icon { width: 23px; height: 23px; }
.mc-name { font-weight: 650; font-size: 1.02rem; letter-spacing: -0.01em; }
.mc-blurb { color: var(--muted); font-size: 14px; line-height: 1.45; }
.mc-count { margin-top: 8px; font-size: 13px; font-weight: 650; color: var(--brand); }
.mc-count.is-soon { color: var(--faint); }

/* flow cards */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.flow-card { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.flow-card p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.flow-card ol { list-style: none; margin: 16px 0 0; padding: 0; position: relative; }
.flow-card ol::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--border); }
.flow-card li a { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 0; color: var(--text); border-radius: 8px; font-size: 15px; font-weight: 500; }
.flow-card li a:hover { color: var(--brand); text-decoration: none; }
.flow-card li b {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; background: var(--surface); border: 2px solid var(--brand); color: var(--brand);
}
.flow-card li a:hover b { background: var(--brand); color: var(--on-brand); }

/* lesson cards */
.lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lesson-list { display: grid; gap: 10px; }
.lesson-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lesson-card:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow); }
.lc-play {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.lc-play .icon { width: 17px; height: 17px; margin-left: 2px; }
.lc-play b { font-size: 14px; }
.lesson-card:hover .lc-play { background: var(--brand); color: var(--on-brand); }
.lc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lc-title { font-weight: 650; letter-spacing: -0.01em; font-size: 1.02rem; line-height: 1.3; }
.lc-sum { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.lc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; font-size: 13px; color: var(--faint); font-weight: 500; }
.lesson-card.is-soon { background: transparent; border-style: dashed; box-shadow: none; }
.lesson-card.is-soon .lc-play { background: var(--surface-2); color: var(--faint); }
mark { background: var(--mark); color: var(--mark-text); border-radius: 3px; padding: 0 1px; }

/* ---------- page head ---------- */
.page-head { padding-top: 34px; padding-bottom: 26px; }
.page-head.center { text-align: center; padding-top: 90px; padding-bottom: 110px; }
.page-head.center p { margin-top: 18px; }
.page-head.center .btn { margin: 0 4px; }
.lede { color: var(--muted); font-size: 1.1rem; margin-top: 10px; max-width: 720px; }
.center .lede { margin-left: auto; margin-right: auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs i { font-style: normal; opacity: 0.6; }
.ph-row { display: flex; gap: 18px; align-items: flex-start; }
.ph-icon { flex: none; width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--on-brand); }
.ph-icon .icon { width: 30px; height: 30px; }
.ph-meta { margin-top: 10px; font-size: 14px; color: var(--faint); font-weight: 500; }

/* ---------- module page ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.topic { margin-bottom: 36px; }
.topic h2 { margin-bottom: 14px; }
.topic > .muted { margin: -8px 0 14px; font-size: 15px; }
.planned-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.planned-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; border: 1px dashed var(--border-strong); color: var(--muted); font-size: 14.5px; }
.planned-list .icon { width: 17px; height: 17px; color: var(--faint); }
.side-box { position: sticky; top: calc(var(--header-h) + 20px); padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.side-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 10px; }
.side-modules { display: grid; gap: 2px; }
.side-modules a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); font-size: 14.5px; }
.side-modules a:hover { background: var(--surface-2); text-decoration: none; color: var(--brand); }
.side-modules .icon { width: 18px; height: 18px; color: var(--brand); }

/* ---------- lesson page ---------- */
.lesson-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 44px; padding-top: 30px; padding-bottom: 80px; align-items: start; }
.lesson-side, .lesson-toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.ls-module { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); margin-bottom: 14px; }
.ls-module .icon { color: var(--brand); }
.side-nav { display: grid; gap: 1px; border-left: 2px solid var(--border); }
.sn-topic { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); padding: 12px 0 6px 14px; }
.sn-topic:first-child { padding-top: 2px; }
.side-nav a { display: block; padding: 6px 10px 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.side-nav a:hover { color: var(--text); text-decoration: none; border-left-color: var(--border-strong); }
.side-nav a[aria-current="page"] { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }

.lesson h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); }
.lesson-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 18px 0 22px; font-size: 14px; color: var(--muted); font-weight: 500; }
.lesson-meta span:not(.badge) { display: inline-flex; align-items: center; gap: 6px; }
.lesson-meta .icon { width: 16px; height: 16px; color: var(--faint); }
.draft-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin-bottom: 18px; border-radius: 10px; font-size: 14px; color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); }
.draft-note .icon { width: 17px; height: 17px; margin-top: 2px; }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #06181b; box-shadow: var(--shadow); border: 1px solid var(--border); }
.video-frame video { width: 100%; height: 100%; display: block; background: #000; }
.video-frame.is-placeholder {
  color: #fff; display: flex; flex-direction: column;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #083f46, #0d6e77 60%, #14909a);
}
.vp-chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(0, 0, 0, 0.22); font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }
.vp-chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.vp-chrome span { margin-left: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vp-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; }
.vp-center strong { font-size: 1.15rem; letter-spacing: -0.01em; }
.vp-center > span:last-child { color: rgba(255, 255, 255, 0.78); font-size: 14.5px; }
.vp-play { width: 68px; height: 68px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); margin-bottom: 8px; }
.vp-play .icon { width: 28px; height: 28px; margin-left: 4px; }

.where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.where-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.where-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.where-path b { font-weight: 600; font-size: 14.5px; padding: 3px 10px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); }
.where-path i { display: inline-flex; color: var(--faint); }
.where-path .icon { width: 15px; height: 15px; }

.lesson-body { margin-top: 30px; font-size: 1.03rem; }
.lesson-body h2 { margin: 36px 0 12px; font-size: 1.35rem; }
.lesson-body h2:first-child { margin-top: 0; }
.lesson-body h3 { margin: 24px 0 8px; }
.lesson-body p { margin: 0 0 14px; }
.lesson-body ul { margin: 0 0 14px; padding-left: 22px; }
.lesson-body li { margin: 5px 0; }
.lesson-body li::marker { color: var(--brand); }
.lesson-body code { font: 0.9em var(--mono); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.lesson-body a { font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.lesson-body a:hover { text-decoration-color: var(--brand); }

/* numbered steps */
ol.steps { list-style: none; counter-reset: step; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
ol.steps > li {
  counter-increment: step; position: relative; margin: 0;
  padding: 14px 16px 14px 60px; min-height: 54px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
ol.steps > li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; background: var(--brand); color: var(--on-brand);
}
ol.steps > li:hover { border-color: var(--brand); }
ol.steps > li.is-done { background: var(--surface-2); color: var(--muted); }
ol.steps > li.is-done::before { content: "\2713"; background: var(--tip); color: var(--surface); }
/* names of buttons, menus and fields */
ol.steps strong, .lesson-body p strong, .lesson-body ul strong { font-weight: 650; color: var(--text); }
ol.steps strong { padding: 1px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); white-space: nowrap; }
[data-theme="dark"] ol.steps strong { color: var(--brand-strong); }

/* callouts (> [!TIP] in Markdown) */
.markdown-alert { margin: 18px 0; padding: 14px 16px 14px 18px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 7%, var(--surface)); font-size: 0.98rem; }
.markdown-alert p { margin: 0; }
.markdown-alert p + p { margin-top: 6px; }
.markdown-alert-title { font-weight: 700; color: var(--c); font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px !important; }
.markdown-alert-note { --c: var(--note); }
.markdown-alert-tip { --c: var(--tip); }
.markdown-alert-important { --c: var(--important); }
.markdown-alert-warning { --c: var(--warning); }
.markdown-alert-caution { --c: var(--caution); }

.helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-weight: 550; }
.helpful-thanks { color: var(--tip); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pg { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; line-height: 1.35; }
.pg small { color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.pg.next { text-align: right; }
.pg:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.related { margin-top: 44px; }
.related h2 { margin-bottom: 14px; }

.toc-box h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 10px; }
.toc-box nav { display: grid; gap: 1px; border-left: 2px solid var(--border); margin-bottom: 18px; }
.toc-box nav a { padding: 5px 0 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.4; }
.toc-box nav a:hover { color: var(--text); text-decoration: none; }
.toc-box nav a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }

/* ---------- search page ---------- */
.sp-box { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 0 16px; height: 56px; max-width: 760px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.sp-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.sp-box .icon { color: var(--brand); width: 22px; height: 22px; }
.sp-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; }
.sp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.sp-status { margin-top: 14px; font-size: 14.5px; min-height: 1.5em; }
.sp-status a, .sp-status button { font-weight: 600; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; }
.linklike:hover { text-decoration: underline; }
.empty { padding: 28px; border-radius: var(--radius); border: 1px dashed var(--border-strong); text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 6px; }
.empty .hero-chips { color: var(--muted); margin-top: 14px; }

/* ---------- search dialog ---------- */
.sd-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(4, 20, 24, 0.55); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.sd-backdrop[hidden] { display: none; }
.sd { width: 100%; max-width: 680px; max-height: 78vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.sd-head { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 60px; border-bottom: 1px solid var(--border); flex: none; }
.sd-head .icon { color: var(--brand); width: 22px; height: 22px; }
.sd-head input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.08rem; }
.sd-head input::-webkit-search-cancel-button { display: none; }
.sd-close { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 6px; padding: 4px 7px; font: 600 11px/1 var(--mono); color: var(--muted); }
.sd-body { overflow: auto; padding: 8px; flex: 1; }
.sd-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); padding: 10px 10px 6px; }
.sd-note { padding: 6px 10px 8px; font-size: 14px; color: var(--muted); }
.sd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--text); border: 0; background: none; width: 100%; text-align: left; }
.sd-item:hover { text-decoration: none; }
.sd-item.is-sel { background: var(--brand-soft); }
.sd-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--brand); }
.sd-item.is-sel .sd-ic { background: var(--brand); color: var(--on-brand); }
.sd-ic .icon { width: 16px; height: 16px; }
.sd-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sd-t { font-weight: 600; line-height: 1.35; }
.sd-s { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sd-m { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--faint); font-weight: 500; margin-top: 3px; }
.sd-m .badge { height: 19px; font-size: 11px; padding: 0 7px; }
.sd-foot { display: flex; gap: 16px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--faint); flex: none; }
.sd-foot span { display: inline-flex; align-items: center; gap: 6px; }
.sd-foot a { margin-left: auto; font-weight: 600; }
.sd-empty { padding: 26px 16px; text-align: center; color: var(--muted); }
.sd-empty strong { display: block; color: var(--text); margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 24px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-row { display: flex; justify-content: space-between; gap: 32px; padding-top: 30px; padding-bottom: 34px; flex-wrap: wrap; }
.footer-brand { font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.site-footer p { color: var(--muted); font-size: 14.5px; max-width: 460px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; font-size: 14.5px; font-weight: 500; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .lesson-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
  .lesson-toc { display: none; }
}
@media (max-width: 980px) {
  .search-trigger { min-width: 0; }
  .two-col { grid-template-columns: 1fr; }
  .col-side { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; --header-h: 58px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h); margin: 0;
    flex-direction: column; gap: 2px; padding: 10px var(--gutter) 14px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; font-size: 16px; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; background: transparent; border-color: transparent; }
  .search-trigger .st-label, .search-trigger kbd { display: none; }
  .brand-logo { height: 30px; }
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .lesson-side { display: none; }
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .hero-search { height: 56px; font-size: 1rem; }
  .hero-search kbd, .sd-foot span { display: none; }
  .section { padding-top: 42px; }
  .ph-icon { width: 48px; height: 48px; border-radius: 13px; }
  .sd-backdrop { padding: 0; }
  .sd { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
  ol.steps > li { padding-left: 54px; }
  .pager { grid-template-columns: 1fr; }
  .pg.next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .lesson-side, .lesson-toc, .helpful, .pager, .related, .video-frame, .draft-note { display: none !important; }
  .lesson-layout { display: block; padding: 0; }
  body { background: #fff; }
  ol.steps > li { break-inside: avoid; }
}

/* ---------- full tour and module overviews ---------- */
.eyebrow.dark { color: var(--brand); margin-bottom: 8px; }
.tour-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.tb-text h2 { font-size: 1.6rem; }
.tb-text > p { color: var(--muted); margin-top: 10px; }
.tb-text > p:last-child { margin-top: 20px; }
.tb-types { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.tb-types li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.tb-types b { color: var(--text); font-weight: 650; }
.tb-types .icon { width: 26px; height: 26px; padding: 6px 5px 6px 7px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
a.video-frame { display: flex; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.video-frame:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
a.video-frame:hover .vp-play { background: #fff; color: #0d6e77; }
.video-frame.is-placeholder[style] { background-size: cover; background-position: center; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; padding-top: 30px; padding-bottom: 80px; align-items: start; max-width: 1100px; }
.guide-layout .video-frame { margin-top: 4px; }
.module-overview .video-frame { max-width: 760px; }
.module-overview .lesson-body { margin-top: 22px; max-width: 860px; }
.tasks-title { margin: 8px 0 18px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 1.5rem; }
.module-grid.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 14px; }
.module-grid.compact .mc-blurb { display: none; }
.related > .muted { margin-top: -8px; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.lesson-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lesson-body th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); background: var(--surface-2); padding: 10px 14px; white-space: nowrap; }
.lesson-body td { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.lesson-body td:first-child { font-weight: 600; }
@media (max-width: 1180px) { .guide-layout { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .tour-band { grid-template-columns: 1fr; padding: 20px; gap: 22px; }
  .tb-video { order: -1; }
}

/* ---------- video chapters ---------- */
.chapters { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.chapters summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; list-style-position: inside; }
.chapters summary span { color: var(--faint); font-weight: 500; font-size: 13.5px; }
.chapter-list { display: grid; gap: 2px; padding: 0 8px 10px; max-height: 320px; overflow: auto; }
.chapter { display: flex; gap: 12px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 8px; font-size: 14.5px; color: var(--text); }
.chapter:hover { background: var(--surface-2); }
.chapter b { flex: none; width: 40px; font: 600 12.5px var(--mono); color: var(--brand); }
.chapter.is-now { background: var(--brand-soft); font-weight: 600; }
ol.steps > li { padding-right: 84px; }
.step-play { position: absolute; right: 12px; top: 13px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--brand); font: 600 12px var(--mono); }
.step-play:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
ol.steps > li.is-playing { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
@media (max-width: 860px) { ol.steps > li { padding-right: 16px; padding-bottom: 44px; } .step-play { top: auto; bottom: 10px; right: auto; left: 54px; } }

/* ---------- video thumbnails on cards, step-level search results ---------- */
.lc-thumb { position: relative; flex: none; width: 150px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #06181b; border: 1px solid var(--border); }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.lc-thumb i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(6, 24, 27, 0.28); transition: background 0.15s ease; }
.lc-thumb i .icon { width: 30px; height: 30px; padding: 7px 6px 7px 8px; border-radius: 50%; background: rgba(13, 110, 119, 0.92); }
.lesson-card:hover .lc-thumb i { background: rgba(6, 24, 27, 0.08); }
.lc-thumb b { position: absolute; right: 5px; bottom: 5px; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.72); color: #fff; font: 600 11.5px var(--mono); }
.flow-card .lc-thumb { display: none; }
.lc-step, .sd-step { display: block; margin-top: 4px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--brand); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.lc-step b, .sd-step b { display: inline-block; margin-right: 8px; color: var(--brand); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.has-video { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; }
.has-video .icon { width: 12px; height: 12px; }
ol.steps > li:target { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
@media (max-width: 560px) { .lc-thumb { width: 104px; } }

/* =====================================================================
   Design pass 2 - video covers, video tiles, type and spacing polish
   ===================================================================== */
body { font-feature-settings: "ss01", "cv11"; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-weight: 650; }
.section-head h2 { font-size: 1.7rem; letter-spacing: -0.03em; }
.section-head p { font-size: 1.05rem; }
.section { padding-top: 68px; }
.section.tight { padding-top: 8px; }

/* --- the cover that sits on a video until it is played --- */
.video-frame.has-cover { position: relative; display: block; }
.video-cover {
  position: absolute; inset: 0; z-index: 2; width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 4.2%, 44px); border: 0; margin: 0; text-align: left; color: #fff; cursor: pointer; font: inherit;
  background:
    linear-gradient(112deg, rgba(5, 44, 50, 0.97) 0%, rgba(9, 78, 85, 0.94) 40%, rgba(13, 110, 119, 0.70) 72%, rgba(20, 144, 154, 0.45) 100%),
    var(--poster, none) center / cover no-repeat,
    #083f46;
}
.video-cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(120deg, #000 0%, transparent 60%); -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 60%); }
.video-frame.is-started .video-cover { display: none; }
.vc-text { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 72%; }
.vc-kicker { display: inline-flex; align-self: flex-start; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); }
.vc-title { font-size: clamp(1.2rem, 0.9rem + 1.9vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.vc-meta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.vc-meta .icon { width: 13px; height: 13px; }
.vc-play { position: relative; flex: none; align-self: center; width: clamp(54px, 9.5%, 88px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: #0d6e77; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32); transition: transform 0.16s ease; }
.vc-play .icon { width: 40%; height: 40%; margin-left: 7%; }
.video-cover:hover .vc-play, a.video-frame:hover .vc-play { transform: scale(1.08); }
.video-cover:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
a.video-frame.has-cover { aspect-ratio: 16 / 9; }
a.video-frame.has-cover:hover { text-decoration: none; }
.tb-video .vc-title { font-size: clamp(1.2rem, 0.9rem + 1.2vw, 1.8rem); }
@media (max-width: 560px) { .vc-meta { font-size: 13.5px; } .vc-kicker { font-size: 11px; } .vc-text { max-width: 78%; gap: 7px; } }

/* --- hero figures --- */
.hero-stats { display: flex; justify-content: center; gap: clamp(22px, 6vw, 64px); margin: 38px 0 0; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-stats dt { font-size: 2rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.hero-stats dd { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.74); }
.hero-inner { padding-bottom: 64px; }

/* --- video tiles (home page) --- */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.video-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); text-decoration: none; }
.vcard-thumb { position: relative; aspect-ratio: 16 / 9; background: #06181b; overflow: hidden; }
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.vcard-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 63, 70, 0.05) 30%, rgba(6, 44, 50, 0.72) 100%); }
.vcard-thumb i { position: absolute; left: 12px; bottom: 11px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #0d6e77; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); transition: transform 0.16s ease; }
.vcard-thumb i .icon { width: 15px; height: 15px; margin-left: 2px; }
.video-card:hover .vcard-thumb i { transform: scale(1.1); }
.vcard-thumb b { position: absolute; right: 10px; bottom: 13px; z-index: 1; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.62); color: #fff; font: 600 12px var(--mono); }
.vcard-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 17px; }
.vcard-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand); }
.vcard-title { font-weight: 650; font-size: 1.03rem; line-height: 1.3; letter-spacing: -0.012em; }
.vcard-sum { color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } }

/* --- list thumbnails: a tint so every picture belongs to the same family --- */
.lc-thumb { width: 168px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--border); }
.lc-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 63, 70, 0.04) 35%, rgba(6, 44, 50, 0.62) 100%); pointer-events: none; }
.lc-thumb i { background: none; align-items: flex-end; justify-content: flex-start; padding: 0 0 8px 9px; z-index: 1; }
.lc-thumb i .icon { width: 28px; height: 28px; padding: 7px 6px 7px 8px; background: #fff; color: #0d6e77; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28); }
.lesson-card:hover .lc-thumb i { background: none; }
.lc-thumb b { z-index: 1; right: 7px; bottom: 9px; background: rgba(0, 0, 0, 0.62); }
.lesson-card { padding: 14px; gap: 16px; align-items: center; }
@media (max-width: 560px) { .lc-thumb { width: 112px; } .lesson-card { align-items: flex-start; } }

/* --- flows: three across, numbered like a route --- */
.flow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-card h3 { font-size: 1.12rem; }
@media (max-width: 980px) { .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .flow-grid { grid-template-columns: 1fr; } }

/* --- module cards and header --- */
.module-card { padding: 20px; border-radius: 14px; }
.mc-icon { border-radius: 12px; }
.page-head.with-icon { padding-bottom: 20px; }
.module-overview > h2, .tasks-title { font-size: 1.45rem; }
.module-overview .video-frame { max-width: 820px; }
.topic h2 { font-size: 1.15rem; color: var(--muted); font-weight: 650; letter-spacing: 0; }
.topic:not(.module-overview) h2::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--brand); vertical-align: middle; margin-right: 10px; }
.module-overview > h2 { color: var(--text); }

/* --- lesson page --- */
.lesson h1 { letter-spacing: -0.035em; }
.lesson .lede { font-size: 1.15rem; line-height: 1.55; }
.video-frame { border-radius: 16px; border: 0; box-shadow: 0 1px 0 var(--border), var(--shadow); }
.lesson-body h2 { font-size: 1.4rem; letter-spacing: -0.025em; }
.where { border-radius: 12px; }

/* --- footer: closes the page in the brand colour --- */
.site-footer { margin-top: 56px; border-top: 0; color: rgba(255, 255, 255, 0.82); background: linear-gradient(135deg, #062f35, #0a545b 60%, #0d6e77); }
.site-footer .footer-brand { color: #fff; font-size: 1.1rem; }
.site-footer p { color: rgba(255, 255, 255, 0.72); }
.site-footer nav a { color: rgba(255, 255, 255, 0.86); }
.site-footer nav a:hover { color: #fff; }
.footer-row { padding-top: 40px; padding-bottom: 44px; }
[data-theme="dark"] .site-footer { background: linear-gradient(135deg, #04191c, #072a2f 60%, #0a3d43); }
[data-theme="dark"] .vcard-thumb img, [data-theme="dark"] .lc-thumb img, [data-theme="dark"] .sd-thumb img { filter: brightness(0.82); }
.section:last-child, .two-col:last-child { padding-bottom: 24px; }

/* --- search dialog: thumbnails and "narrow to an app" chips --- */
.sd { max-width: 720px; }
.sd-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: #06181b; box-shadow: inset 0 0 0 1px var(--border); }
.sd-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.sd-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 44, 50, 0.6)); }
.sd-thumb b { position: absolute; right: 4px; bottom: 4px; z-index: 1; padding: 0 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.65); color: #fff; font: 600 10.5px/1.6 var(--mono); }
.sd-item { align-items: center; }
.sd-facets { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 4px; }
.sd-facets .chip { font-size: 13px; padding: 4px 11px; }
.sd-facets .chip small { margin-left: 2px; }
.sd-item.is-sel .sd-thumb { box-shadow: 0 0 0 2px var(--brand); }
.module-overview .chapters { max-width: 820px; }
@media (max-width: 560px) { .sd-thumb { width: 76px; } }
