/* PhotoRobot Academy — preview stylesheet
 * Brand identity per https://brandmanual.photorobot.com:
 *   - Primary colors: orange #FF6000, black #000
 *   - Typography: Titillium Web for UI/body + serif display for chapter numerals + page titles
 *     (editorial / Apple-style hierarchy — see CLAUDE.md "Multi-site design language")
 * Output to dist/assets/preview.css by tools/build-preview.mjs. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Titillium+Web:wght@300;400;600;700&display=swap');

:root {
  --pr-orange: #FF6000;
  --pr-orange-soft: rgba(255, 96, 0, 0.10);
  --pr-orange-soft-2: rgba(255, 96, 0, 0.04);
  --pr-orange-border: rgba(255, 96, 0, 0.35);
  --pr-black: #000;
  --pr-ink: #1a1a1a;
  --pr-ink-soft: #404040;
  --pr-ink-muted: #6b6b6b;
  --pr-ink-faint: #999;
  --pr-rule: #e8e6e2;
  --pr-rule-strong: #d4d2cd;
  --pr-bg: #ffffff;
  --pr-bg-soft: #faf9f7;
  --pr-bg-softer: #f5f3ef;
  --pr-green: #1e7a4a;
  --pr-green-soft: rgba(71, 209, 140, 0.15);
  --pr-red: #b8252b;
  --pr-red-soft: rgba(184, 37, 43, 0.10);
  --pr-amber: #b87d12;
  --pr-amber-soft: rgba(184, 125, 18, 0.10);
  --font: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Playfair Display', 'Didot', Georgia, serif;
  --font-mono: 'SF Mono', Monaco, Menlo, Consolas, 'Courier New', monospace;
  --max-width: 1120px;
  --content-width: 760px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 4px 16px rgba(20, 20, 20, 0.06);
  --shadow-3: 0 12px 32px rgba(20, 20, 20, 0.08);
  --header-h: 64px;
  --crumb-h: 44px;
}

/* Icon defaults — used inline across nav, tabs, file cards, buttons */
.icon, svg.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--pr-ink);
  background: var(--pr-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sticky footer pattern — short pages still pin the footer to the viewport bottom
   * (KH 2026-05-24: packages index had footer floating in the middle of the screen). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header + breadcrumbs + module-nav are flex-none; main grows; footer shrinks to fit. */
.site-header,
.breadcrumbs-wrap,
.module-nav-wrap { flex-shrink: 0; }
.site-main { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; }

a {
  color: var(--pr-orange);
  text-decoration: none;
  transition: text-decoration 0.1s;
}
a:hover { text-decoration: underline; }

.muted { color: var(--pr-ink-muted); }

/* ─── Header / Nav ──────────────────────────────────────── */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: var(--header-h);
  border-bottom: 1px solid var(--pr-rule);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
/* Brand block — canonical pattern matching cases.photorobot.io / support.photorobot.io
 * Logo | Tool name (bold uppercase) [Tag (thin uppercase, same size)]
 * The optional tag is unique to Academy preview (other .io sites don't have a build tag). */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand:hover .brand-logo { opacity: 0.85; }
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  flex-shrink: 0;
}
.brand-sep, .brand-tool, .brand-tag {
  line-height: 28px;            /* match logo height for vertical baseline alignment */
  display: inline-flex;
  align-items: center;
}
.brand-sep {
  color: var(--pr-ink-muted);
  font-weight: 300;
  font-size: 22px;
}
.brand-tool {
  font-weight: 700;
  color: var(--pr-ink);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-tag {
  font-weight: 300;
  color: var(--pr-ink-muted);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 2px;
}

.site-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ─── Global Student / Instructor mode toggle ─────────────── */
/* Apple-style segmented pill in the header. Persisted in localStorage,
 * mirrors to per-quiz toggle, gates visibility of instructor-only material
 * (delivery notes, quiz correct answers). Phase A presentational; Phase B
 * will gate via CF Access.
 *
 * Visual design: inactive button is transparent / muted (no background);
 * active button is strong filled state — Student = ink fill, Instructor = orange fill.
 * Unambiguous click feedback. */
.academy-mode-toggle {
  display: inline-flex;
  background: var(--pr-bg-soft);
  border: 1px solid var(--pr-rule);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  position: relative;
}
.amt-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--pr-ink-muted);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.amt-btn:hover:not(.active) {
  color: var(--pr-ink);
  background: rgba(0, 0, 0, 0.04);
}
.amt-btn:active { transform: scale(0.97); }
/* Active button — strong filled state, color depends on mode role */
.amt-btn[data-mode="student"].active {
  background: var(--pr-ink);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.amt-btn[data-mode="instructor"].active {
  background: var(--pr-orange);
  color: #fff;
  box-shadow: 0 1px 4px rgba(255, 96, 0, 0.35);
}
.amt-icon { opacity: 0.85; }
.amt-btn.active .amt-icon { opacity: 1; }

/* Global "Instructor mode" indicator stripe — 2px orange band below header
 * is always visible while Instructor mode is on. Confirms the mode switch
 * worked even on pages with no mode-gated content (landing, packages list). */
html.mode-instructor .site-header {
  box-shadow: 0 2px 0 0 var(--pr-orange);
}

/* ─── Mode-gated visibility (Phase A: presentational) ────── */
/* Instructor-only material visible only in `html.mode-instructor`.
 * KH 2026-05-24: "celá záložka instructor notes je nyní zatím stále dostupná
 * i studentovi, což je špatně" — student mode now fully hides both the module-nav
 * tab AND the file card on module overview. Mode-hint text removed as student
 * never sees the card existing. Phase B (CF Access) will gate URL access too. */
html.mode-student .mtab-instructor { display: none !important; }
html.mode-student .file-card-instructor { display: none !important; }
html.mode-student .file-card-mode-hint { display: none !important; }

/* Instructor mode — file card is fully visible + accented */
html.mode-instructor .file-card-instructor {
  border-color: var(--pr-orange-border);
  background: var(--pr-orange-soft-2);
}
html.mode-instructor .file-card-instructor .file-card-icon { color: var(--pr-orange); }
html.mode-instructor .file-card-mode-hint { display: none; }

/* Instructor-mode banner on training-notes pages. Hidden in student mode
 * (defensive — student shouldn't normally reach this URL, but if they do
 * via direct link the banner doesn't display until they're in instructor mode). */
html.mode-instructor .content.training-notes::before {
  content: "Instructor-only material — visible because Instructor mode is active in the header.";
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pr-orange);
  font-weight: 700;
  padding: 8px 14px;
  background: var(--pr-orange-soft);
  border: 1px solid var(--pr-orange-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
/* In student mode, hide all training-notes content body entirely + show a redirect message */
html.mode-student .content.training-notes > *:not(.training-notes-locked) { display: none; }
html.mode-student .content.training-notes::after {
  content: "This page contains instructor-only material. Switch to Instructor mode in the site header to view it. If you are a student, this content is intentionally hidden — your instructor will use it to guide the session.";
  display: block;
  padding: 32px 28px;
  background: var(--pr-bg-soft);
  border: 1px dashed var(--pr-rule-strong);
  border-radius: var(--radius-lg);
  color: var(--pr-ink-soft);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
  margin: 40px 0;
}
.lang-switcher {
  display: flex;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding-right: 8px;
  border-right: 1px solid var(--pr-rule);
}
.lang-switcher a {
  color: var(--pr-ink-muted);
  text-decoration: none;
  font-weight: 600;
}
.lang-switcher a.active { color: var(--pr-orange); }
.lang-switcher a:hover { color: var(--pr-ink); }

.site-nav { display: flex; gap: 4px; font-size: 14px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pr-ink-muted);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--pr-ink); background: var(--pr-bg-soft); text-decoration: none; }
.site-nav a.active {
  color: var(--pr-orange);
  font-weight: 600;
  background: var(--pr-orange-soft);
}
.site-nav .nav-icon { opacity: 0.85; }

/* ─── Breadcrumbs ───────────────────────────────────────── */
/* Sticky pod headerem — student neztrácí orientaci v hierarchii.
 * Apple-clean: home icon + chevron separators, more breathing room. */

.breadcrumbs-wrap {
  position: sticky;
  top: var(--header-h);
  background: var(--pr-bg);
  border-bottom: 1px solid var(--pr-rule);
  z-index: 9;
}
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--pr-ink-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  line-height: 1.4;
}
.breadcrumbs a {
  color: var(--pr-ink-muted);
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.breadcrumbs a:hover { color: var(--pr-orange); text-decoration: none; background: var(--pr-bg-soft); }
.breadcrumbs .crumb-home { display: inline-flex; align-items: center; padding: 4px 6px; }
.breadcrumbs .crumb-icon { color: var(--pr-ink-muted); }
.breadcrumbs .crumb-home:hover .crumb-icon { color: var(--pr-orange); }
.breadcrumbs .crumb-sep {
  display: inline-flex;
  align-items: center;
  color: var(--pr-ink-faint);
  margin: 0 1px;
}
.breadcrumbs .crumb-current {
  color: var(--pr-ink);
  font-weight: 600;
  padding: 2px 6px;
}

/* ─── Module nav (Apple-style segmented tab bar) ─────────── */
/* Replaces the old crammed strip. Two-row layout:
 *   Row 1: chapter pill + module title (display serif)
 *   Row 2: icon tabs (Overview / Textbook / Workbook / Instructor / Knowledge check)
 * Sticky under breadcrumbs so the student can navigate sibling pages while reading. */

.module-nav-wrap {
  position: sticky;
  top: calc(var(--header-h) + var(--crumb-h));
  background: var(--pr-bg);
  border-bottom: 1px solid var(--pr-rule);
  z-index: 8;
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  background: rgba(255, 255, 255, 0.92);
}
.module-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.module-nav-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.module-chapter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pr-orange);
  background: var(--pr-orange-soft);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  line-height: 1;
}
.module-title-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pr-ink);
  line-height: 1.2;
}
.module-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 0 4px;
}
.module-tabs::-webkit-scrollbar { display: none; }
.mtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--pr-ink-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
  border-radius: 6px 6px 0 0;
  position: relative;
  top: 1px;
}
.mtab .mtab-icon { opacity: 0.75; }
.mtab:hover {
  color: var(--pr-ink);
  text-decoration: none;
  background: var(--pr-bg-soft);
}
.mtab:hover .mtab-icon { opacity: 1; }
.mtab.current {
  color: var(--pr-orange);
  border-bottom-color: var(--pr-orange);
  font-weight: 600;
}
.mtab.current .mtab-icon { opacity: 1; color: var(--pr-orange); }
.mtab-label { display: inline-block; }

/* ─── Page hero (textbook / workbook / quiz / training pages) ── */
/* Editorial header block with big serif title + display-serif chapter numeral. */

.page-hero {
  position: relative;
  padding: 32px 0 28px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--pr-rule);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow: hidden;
}
.page-hero-left {
  flex: 1 1 auto;
  min-width: 0;
}
.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pr-orange);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--pr-ink);
  margin: 0 0 12px;
}
.page-hero-meta {
  font-size: 14px;
  color: var(--pr-ink-muted);
  margin: 0;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

/* Meta atoms used by renderModuleMeta() — separates duration / level / roles
 * into typed pieces, instead of an undifferentiated dot-separated string.
 *   <em>30 min</em>  ·  BASIC  ·  Operator | Studio Manager | Network Specialist
 *   serif italic     pill        role list with PhotoRobot canonical `|` sep
 */
.meta-duration {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--pr-ink-soft);
  font-size: 16px;
  margin-right: 12px;
  letter-spacing: 0;
}
.meta-duration em { font-style: italic; font-weight: 400; }
.meta-level {
  display: inline-block;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pr-ink-soft);
  background: var(--pr-bg-soft);
  border: 1px solid var(--pr-rule);
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 14px;
  line-height: 1;
}
.meta-bullet {
  display: none;  /* atoms own their own gap; bullets between sections muddied the line */
}
.meta-roles {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  color: var(--pr-ink-muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.meta-role { color: var(--pr-ink-soft); padding: 0 8px; }
.meta-role:first-child { padding-left: 0; }
.meta-role:last-child { padding-right: 0; }
.meta-sep {
  color: var(--pr-rule-strong);
  font-weight: 300;
  display: inline-block;
  user-select: none;
}
.page-hero-chapter {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  font-weight: 700;
  color: var(--pr-orange-soft);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
  margin-top: -8px;
  white-space: nowrap;
}
/* Cert / Refresh / Placement variant — short word ("CERT", "RFRSH", "PLACE")
 * needs a smaller font-size so the visual weight matches a chapter number. */
.page-hero-chapter--cert {
  font-family: var(--font-ui, var(--font-display));
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pr-orange);
  margin-top: 6px;
  border: 2px solid var(--pr-orange);
  border-radius: 6px;
  padding: 8px 14px;
  text-transform: uppercase;
}

/* ─── Bottom prev/next nav ─────────────────────────────── */
/* Graphical card-pair below long article content. Solves the
 * "lost at end of long page" problem — no need to scroll up. */

.prev-next {
  max-width: var(--max-width);
  margin: 64px auto 0;
  padding: 0 24px;
}
.prev-next-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pn-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--pr-rule);
  border-radius: var(--radius-lg);
  background: var(--pr-bg);
  color: var(--pr-ink);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 110px;
}
.pn-card.pn-empty {
  border-style: dashed;
  background: transparent;
  pointer-events: none;
}
.pn-card.pn-next { text-align: right; align-items: flex-end; }
.pn-card:hover:not(.pn-empty) {
  border-color: var(--pr-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  text-decoration: none;
  background: var(--pr-orange-soft-2);
}
.pn-direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pr-ink-muted);
  font-weight: 600;
}
.pn-card:hover:not(.pn-empty) .pn-direction { color: var(--pr-orange); }
.pn-arrow { opacity: 0.7; }
.pn-card:hover:not(.pn-empty) .pn-arrow { opacity: 1; transform: translateX(2px); transition: transform 0.15s; }
.pn-prev:hover .pn-arrow { transform: translateX(-2px); }
.pn-chapter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pr-orange);
  text-transform: uppercase;
  margin-top: 6px;
}
.pn-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--pr-ink);
  letter-spacing: -0.005em;
}

/* ─── Main ──────────────────────────────────────────────── */

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ─── Content (textbook/workbook/arch docs) ─────────────── */

.content {
  max-width: var(--content-width);
  margin: 0 auto;
}
.content h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 8px 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.content h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 12px;
  font-weight: 600;
  padding-top: 8px;
}
.content h2:first-of-type { margin-top: 24px; }
.content h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 28px 0 8px;
  font-weight: 600;
}
.content h4 {
  font-size: 14px;
  margin: 20px 0 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pr-ink-muted);
}
.content p, .content ul, .content ol { margin: 0 0 16px; }
.content li { margin-bottom: 4px; }
.content li > p { margin-bottom: 8px; }
.content blockquote {
  border-left: 3px solid var(--pr-orange);
  padding: 6px 18px;
  margin: 20px 0;
  background: var(--pr-bg-soft);
  color: var(--pr-ink);
  font-style: italic;
}
.content blockquote p { margin-bottom: 8px; }
.content blockquote p:last-child { margin-bottom: 0; }
.content code {
  background: var(--pr-bg-soft);
  padding: 2px 6px;
  font-size: 0.88em;
  border-radius: 3px;
  font-family: var(--font-mono);
  color: var(--pr-ink);
}
.content pre {
  background: var(--pr-bg-soft);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid var(--pr-rule);
  margin: 16px 0;
}
.content pre code {
  background: transparent;
  padding: 0;
  font-size: 13px;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.content th, .content td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pr-rule);
  vertical-align: top;
}
.content th {
  background: var(--pr-bg-soft);
  font-weight: 600;
  border-bottom: 2px solid var(--pr-rule);
}
.content tr:last-child td { border-bottom: 0; }
.content hr {
  border: none;
  border-top: 1px solid var(--pr-rule);
  margin: 36px 0;
}
.content strong { font-weight: 600; }
.content em { font-style: italic; }
.content ul ul, .content ol ol, .content ul ol, .content ol ul { margin: 4px 0 4px 24px; }
.content img { max-width: 100%; height: auto; }

/* Inline checkboxes from markdown — render as visible */
.content input[type="checkbox"] { margin-right: 8px; }

/* ─── Hero (landing) ────────────────────────────────────── */

.hero {
  margin-bottom: 48px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--pr-rule);
}
.hero h1 {
  font-size: 44px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-claim {
  font-size: 22px;
  color: var(--pr-orange);
  margin: 0 0 16px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.005em;
}
.hero-sub {
  font-size: 16px;
  color: var(--pr-ink-muted);
  margin: 0 0 16px;
  max-width: 640px;
}
.hero-sub strong { color: var(--pr-ink); }
.preview-banner {
  font-size: 14px;
  padding: 12px 16px;
  background: var(--pr-orange-soft);
  border-left: 3px solid var(--pr-orange);
  color: var(--pr-ink);
  margin-top: 16px;
}
.preview-banner a { color: var(--pr-orange); text-decoration: underline; }

/* ─── Module grid + cards ───────────────────────────────── */

.modules-section, .links-section { margin: 32px 0; }
.modules-section h2, .links-section h2 {
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 600;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

/* Module library filters (v0.25.1) — KH-requested filter pills for the
 * modules library. Level (basic/intermediate/advanced) + Track (operator,
 * studio-manager, integrator, hardware, network) + Status (live / include
 * forthcoming). Client-side filtering via data attributes, no backend. */
.module-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 4px;
  padding: 14px 16px;
  background: var(--pr-bg-soft, #faf9f7);
  border: 1px solid var(--pr-rule, #e8e6e2);
  border-radius: 6px;
}
/* Filter group: label stacks ABOVE the pills row (v0.35.0 KH catch:
 * "instructor přetéká na druhý řádek — pokud by to nešlo jinak, dej
 * nadpisy filtrů o řádek výš"). Stacking gives pills full row width,
 * prevents overflow when track count grows. */
.filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.filter-group-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}
/* Filter group labels — heading-style presence (v0.27.1 KH catch:
 * "level track a status by měly vypadat víc jako nadpisy"). Larger
 * font, darker ink, bigger letterspacing — reads as a section heading
 * sitting ABOVE its options (v0.35.0), no longer inline. */
.filter-group-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--pr-ink, #1a1a1a);
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--pr-rule, #e8e6e2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pr-ink, #1a1a1a);
  cursor: pointer;
  font-family: inherit;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: var(--pr-orange, #FF6000);
  color: var(--pr-orange, #FF6000);
}
.filter-pill.active {
  background: var(--pr-orange, #FF6000);
  border-color: var(--pr-orange, #FF6000);
  color: #fff;
}
.filter-pill.active:hover {
  background: #e05700;
  border-color: #e05700;
  color: #fff;
}
.module-filter-count {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--pr-ink-muted, #6b6b6b);
  font-style: italic;
}
.meta-status--forthcoming {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--pr-ink-muted, #6b6b6b);
  background: var(--pr-bg-soft, #faf9f7);
  border: 1px solid var(--pr-rule, #e8e6e2);
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 6px;
}
.module-card--forthcoming {
  opacity: 0.78;
}
.module-card--forthcoming:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .module-filters {
    gap: 14px 18px;
    padding: 12px 12px;
  }
  .filter-group { gap: 6px; }
  .filter-group-label { font-size: 10px; }
  .filter-pill { padding: 4px 10px; font-size: 11px; }
}
.card {
  display: block;
  border: 1px solid var(--pr-rule);
  border-radius: 6px;
  padding: 16px;
  background: var(--pr-bg);
  color: var(--pr-ink);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--pr-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 20, 20, 0.06);
  text-decoration: none;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--pr-ink-muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  gap: 10px;
}
.card-chapter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pr-orange);
  background: var(--pr-orange-soft);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  line-height: 1;
}
.card-slug {
  font-family: var(--font-mono);
  text-transform: lowercase;
  font-size: 11px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--pr-ink);
}
.card-meta { font-size: 13px; color: var(--pr-ink-muted); margin: 0 0 6px; }
.card-meta .meta-duration { font-size: 14px; margin-right: 0; }
.card-roles {
  font-size: 12px;
  color: var(--pr-ink-muted);
  margin: 6px 0 0;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.card-roles .meta-role { padding: 0 6px; }
.card-roles .meta-role:first-child { padding-left: 0; }

.reference-links { padding-left: 20px; }
.reference-links li { margin: 6px 0; }

/* ─── Module overview page ──────────────────────────────── */

.module-overview-hero {
  position: relative;
  padding: 24px 0 32px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--pr-rule);
  overflow: hidden;
}
.module-overview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.module-overview-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pr-orange);
  font-weight: 700;
}
.module-overview-title {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pr-ink);
  margin: 0 0 14px;
  max-width: calc(100% - 160px);
}
.module-overview-sub {
  font-size: 15px;
  color: var(--pr-ink-muted);
  margin: 0;
  max-width: calc(100% - 160px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.module-overview-sub .meta-duration { font-size: 18px; margin-right: 14px; }
.module-overview-sub .meta-level { font-size: 11px; padding: 4px 10px; margin-right: 16px; }
.module-overview-sub .meta-roles { font-size: 14px; }
.module-overview-chapter {
  position: absolute;
  top: 16px;
  right: 0;
  font-family: var(--font-display);
  font-size: 160px;
  line-height: 0.85;
  font-weight: 700;
  color: var(--pr-orange-soft);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.module-overview-section { margin: 36px 0; }
.module-overview-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--pr-ink);
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--pr-bg-soft);
  color: var(--pr-ink-muted);
  border: 1px solid var(--pr-rule);
}
.status-pill.status-final { background: var(--pr-green-soft); color: var(--pr-green); border-color: transparent; }
.status-pill.status-review { background: var(--pr-orange-soft); color: var(--pr-orange); border-color: transparent; }
.status-pill.status-draft { background: var(--pr-bg-softer); color: var(--pr-ink-muted); }

/* File cards grid — visual replacement for ".module-files" list */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.file-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--pr-rule);
  border-radius: var(--radius-lg);
  background: var(--pr-bg);
  color: var(--pr-ink);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}
.file-card:hover:not(.file-card-locked) {
  border-color: var(--pr-orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  text-decoration: none;
  background: var(--pr-orange-soft-2);
}
.file-card-icon {
  color: var(--pr-orange);
  margin-bottom: 4px;
}
.file-card-label {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--pr-ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.file-card-desc {
  font-size: 13px;
  color: var(--pr-ink-muted);
  line-height: 1.45;
}
.file-card-locked {
  border-style: dashed;
  background: var(--pr-bg-soft);
  cursor: default;
}
.file-card-locked .file-card-icon { color: var(--pr-ink-faint); }
.file-card-locked .file-card-label { color: var(--pr-ink-muted); }
.file-card-locked .file-card-desc { font-style: italic; }

.source-list, .followup-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.source-list li, .followup-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--pr-rule);
}
.source-list li:last-child, .followup-list li:last-child { border-bottom: 0; }
.source-list .ext-icon { opacity: 0.6; margin-left: 2px; }

.module-overview dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 20px;
  font-size: 14px;
  margin: 16px 0 0;
  padding: 20px;
  background: var(--pr-bg-soft);
  border-radius: var(--radius);
}
.module-overview dt {
  color: var(--pr-ink-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding-top: 2px;
}
.module-overview dd { margin: 0; color: var(--pr-ink); }

/* ─── Quiz interactive (v0.5.0+) ─────────────────────────── */
/* Build script parses quiz markdown and renders interactive form.
 * Student mode (default): radio/checkbox inputs, hidden answers, submit to score.
 * Teacher mode: all correct + explanations visible, no submit. */

.quiz-pool .preview-note-box {
  background: var(--pr-orange-soft);
  border: 1px solid var(--pr-orange-border);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--pr-ink);
}

/* Quiz toolbar — mode tabs + info */
.quiz-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding: 10px 12px;
  background: var(--pr-bg-soft);
  border: 1px solid var(--pr-rule);
  border-radius: 4px;
  font-size: 13px;
  gap: 16px;
  flex-wrap: wrap;
}
.quiz-mode-toggle {
  display: flex;
  gap: 4px;
  background: var(--pr-bg);
  border: 1px solid var(--pr-rule);
  border-radius: 3px;
  padding: 2px;
}
.qm-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: var(--pr-ink-muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qm-btn:hover { color: var(--pr-ink); background: var(--pr-bg-soft); }
.qm-btn.active {
  background: var(--pr-orange);
  color: white;
  box-shadow: var(--shadow-1);
}
.qm-btn .qm-icon { opacity: 0.85; }
.qm-btn.active .qm-icon { opacity: 1; }
.quiz-info {
  color: var(--pr-ink-muted);
  font-size: 12px;
}

/* Question fieldset */
.quiz-q {
  border: none;
  margin: 0 0 32px;
  padding: 0;
}
.quiz-q legend {
  font-weight: 600;
  font-size: 14px;
  color: var(--pr-ink);
  margin-bottom: 4px;
  padding: 0;
}
.quiz-q .qtag {
  font-weight: 400;
  color: var(--pr-ink-muted);
  font-size: 12px;
  margin-left: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.quiz-q .q-text {
  margin: 8px 0 14px;
  font-size: 16px;
  line-height: 1.55;
}
.quiz-q .q-text strong { font-weight: 600; }

/* Options as clickable rows */
.q-options {
  list-style: none;
  padding: 0;
  margin: 0;
}
.q-option {
  margin: 6px 0;
}
.q-option label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--pr-rule);
  border-radius: 4px;
  background: var(--pr-bg);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  font-size: 14px;
  line-height: 1.5;
}
.q-option label:hover {
  border-color: var(--pr-ink-muted);
  background: var(--pr-bg-soft);
}
.q-option input[type="radio"],
.q-option input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--pr-orange);
  flex-shrink: 0;
  cursor: pointer;
}
.q-option .opt-letter {
  font-weight: 600;
  color: var(--pr-ink-muted);
  flex-shrink: 0;
}
.q-option .opt-text {
  flex: 1;
}
/* Disabled state (after submit / in teacher mode) */
.q-option input:disabled + .opt-letter,
.q-option input:disabled ~ .opt-text {
  /* keep readable */
}
.q-option label:has(input:disabled) {
  cursor: default;
}
.q-option label:has(input:disabled):hover {
  border-color: var(--pr-rule);
  background: var(--pr-bg);
}

/* Correct answer highlight (after submit OR in teacher mode) */
.q-option.is-correct label {
  border-color: var(--pr-green);
  background: var(--pr-green-soft);
}
.q-option.is-correct .opt-letter {
  color: var(--pr-green);
}
.q-option.is-incorrect label {
  border-color: #c44;
  background: rgba(204, 68, 68, 0.06);
}
.q-option.was-selected label {
  border-width: 2px;
}

/* Source + explanation (revealed after submit or in teacher mode) */
.quiz-q .q-source,
.quiz-q .q-explanation {
  font-size: 13px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--pr-bg-soft);
  border-left: 3px solid var(--pr-rule);
}
.quiz-q .q-source strong,
.quiz-q .q-explanation strong {
  color: var(--pr-orange);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-right: 6px;
}
.quiz-q.q-correct .q-source,
.quiz-q.q-correct .q-explanation { border-left-color: var(--pr-green); }
.quiz-q.q-incorrect .q-source,
.quiz-q.q-incorrect .q-explanation { border-left-color: #c44; }

/* Open-text question rendering (no auto-scoring — diagnostic / placement)
 * Phase A: placeholder textarea + "answer for instructor review" note.
 * Phase B: textarea becomes interactive + answers flow to admin queue. */
.quiz-q[data-type="open-text"] {
  border-left: 3px solid var(--pr-orange-soft, rgba(255, 96, 0, 0.30));
  background: linear-gradient(to right, rgba(255, 96, 0, 0.03) 0%, transparent 60%);
}
.quiz-q .q-open-prompt {
  margin-top: 6px;
}
.quiz-q .q-open-prompt > p:first-child {
  font-size: 13px;
  color: var(--pr-ink-soft);
  margin-bottom: 10px;
}
.quiz-q .q-open-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px dashed var(--pr-rule-strong);
  background: var(--pr-bg-soft);
  color: var(--pr-ink-faint);
  border-radius: var(--radius);
  resize: vertical;
  cursor: not-allowed;
}
.quiz-q .q-open-note {
  font-size: 11.5px;
  margin: 8px 0 0;
  color: var(--pr-ink-muted);
}
.quiz-q.q-open-submitted {
  border-left-color: var(--pr-orange);
}
.quiz-q.q-open-submitted .q-open-textarea {
  border-style: solid;
}

/* Placement result panel — neutral, no pass/fail color tier */
.quiz-result.tier-placement {
  background: var(--pr-bg-softer);
  border-left: 4px solid var(--pr-orange);
}
.quiz-result.tier-placement .result-grade-tier {
  color: var(--pr-orange);
}
.result-action-placement {
  background: rgba(255, 96, 0, 0.05);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}

/* Submit + result panel */
.quiz-submit-wrap {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--pr-rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.quiz-submit-hint {
  font-size: 13px;
  color: var(--pr-ink-muted);
  margin: 0 0 4px;
  max-width: 520px;
  line-height: 1.5;
}
.quiz-submit-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  background: var(--pr-orange);
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(255, 96, 0, 0.25);
  min-width: 280px;
  justify-content: center;
}
.quiz-submit-btn:hover:not(:disabled) {
  background: #e55700;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 96, 0, 0.35);
}
.quiz-submit-btn:active:not(:disabled) { transform: translateY(0); }
.quiz-submit-btn:disabled,
.quiz-submit-btn.submitted {
  background: var(--pr-bg-soft);
  color: var(--pr-ink-muted);
  cursor: default;
  box-shadow: none;
  border: 1px solid var(--pr-rule);
}
.quiz-submit-icon { opacity: 0.95; }
.quiz-attempts-note {
  font-size: 12px;
  color: var(--pr-ink-faint);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Result panel — tiered presentation (honors / pass / below / fail) */
.quiz-result {
  margin-top: 12px;
  padding: 28px 28px 24px;
  background: var(--pr-bg);
  border: 1px solid var(--pr-rule);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  text-align: left;
  box-shadow: var(--shadow-2);
}
.result-grade-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pr-rule);
}
.result-grade-tier {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.result-grade-score {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--pr-ink);
  letter-spacing: 0.02em;
}
.result-caption {
  font-size: 15px;
  line-height: 1.55;
  color: var(--pr-ink-soft);
  margin: 0 0 16px;
}
.result-action {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.result-action strong { font-weight: 600; }
.result-meta {
  font-size: 12px;
  color: var(--pr-ink-faint);
  margin: 8px 0 0;
  letter-spacing: 0.01em;
}

/* Tier color treatments */
.quiz-result.tier-honors { border-top: 4px solid var(--pr-orange); }
.quiz-result.tier-honors .result-grade-tier { color: var(--pr-orange); }
.quiz-result.tier-honors .result-action-honors {
  background: var(--pr-orange-soft);
  border-color: var(--pr-orange-border);
  color: var(--pr-ink);
}

.quiz-result.tier-pass { border-top: 4px solid var(--pr-green); }
.quiz-result.tier-pass .result-grade-tier { color: var(--pr-green); }
.quiz-result.tier-pass .result-action-pass {
  background: var(--pr-green-soft);
  border-color: rgba(30, 122, 74, 0.35);
  color: var(--pr-ink);
}

.quiz-result.tier-below { border-top: 4px solid var(--pr-amber); }
.quiz-result.tier-below .result-grade-tier { color: var(--pr-amber); }
.quiz-result.tier-below .result-action-below {
  background: var(--pr-amber-soft);
  border-color: rgba(184, 125, 18, 0.35);
  color: var(--pr-ink);
}

.quiz-result.tier-fail { border-top: 4px solid var(--pr-red); }
.quiz-result.tier-fail .result-grade-tier { color: var(--pr-red); }
.quiz-result.tier-fail .result-action-fail {
  background: var(--pr-red-soft);
  border-color: rgba(184, 37, 43, 0.35);
  color: var(--pr-ink);
}

/* Teacher mode: disable form interaction, soften options */
.quiz.mode-instructor .q-option label { cursor: default; }
.quiz.mode-instructor .q-option:not(.is-correct) label {
  opacity: 0.65;
}
.quiz.mode-instructor .q-option:not(.is-correct) label:hover {
  border-color: var(--pr-rule);
  background: var(--pr-bg);
}

/* Quiz options rendered as markdown list items.
 * Convention v0.4.2+: each option = own list item, correct answer is bold + " ← CORRECT" suffix. */
.quiz-pool ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 20px;
}
.quiz-pool ul li {
  padding: 8px 12px 8px 16px;
  margin: 4px 0;
  border-left: 3px solid var(--pr-rule);
  background: var(--pr-bg-soft);
  font-size: 15px;
  line-height: 1.5;
}
.quiz-pool ul li strong {
  font-weight: 600;
}
/* Correct option = bold + arrow; highlight with green left border */
.quiz-pool ul li:has(> strong:last-child) {
  border-left-color: var(--pr-green);
  background: var(--pr-green-soft);
}
/* Task-list items (true-false / multi-select) — visual checkboxes */
.quiz-pool ul li.task-list-item {
  list-style: none;
}
.quiz-pool ul li.task-list-item input[type="checkbox"] {
  margin-right: 10px;
  vertical-align: -1px;
  cursor: not-allowed;          /* preview render is non-interactive */
}
.quiz-pool ul li.task-list-item input[type="checkbox"]:checked + * {
  font-weight: 600;
}

/* Workbook task-list items (Exercise 6 checklist, exercises with checkboxes) */
.workbook ul li.task-list-item {
  list-style: none;
  padding: 4px 0;
}
.workbook ul li.task-list-item input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: -1px;
  cursor: not-allowed;
}

/* Source / Explanation labels in quiz */
.quiz-pool p strong:first-child {
  color: var(--pr-orange);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

/* ─── Footer ────────────────────────────────────────────── */

/* Footer pattern per cases.photorobot.io / CPQ canonical:
 * Single row (white-space: nowrap), build-info left, links right with ↗ suffix.
 * Mobile (<640px) stacks vertically. */
.site-footer {
  border-top: 1px solid var(--pr-rule);
  padding: 14px 24px 18px;
  margin-top: 64px;
  font-size: 12px;
  color: var(--pr-ink-muted);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.footer-build {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.75;
  margin: 0;
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.footer-links a {
  color: var(--pr-ink-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--pr-orange); }
.footer-sep { color: var(--pr-rule); }

/* External link arrow — ↗ unicode appended via ::after.
 * Match CPQ pattern (e.g., "photorobot.io ↗"). */
a.ext::after {
  content: " \2197";              /* ↗ NORTH EAST ARROW (U+2197) */
  font-size: 0.85em;
  opacity: 0.7;
  display: inline-block;
  margin-left: 1px;
}
a.ext:hover::after { opacity: 1; }

/* ─── Workbook — interactive fill-in fields (v0.4.4+) ────── */
/* Underscore patterns _____ in workbook markdown are post-processed by
 * tools/build-preview.mjs into <input class="wb-fill"> elements with
 * data-key attribute. Inline script handles localStorage persistence
 * + Reset button. Task-list checkboxes are enabled at runtime (the
 * markdown-it-task-lists plugin renders them disabled by default). */

.wb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 28px;
  background: var(--pr-bg-soft);
  border: 1px solid var(--pr-rule);
  border-radius: 4px;
  font-size: 13px;
  gap: 16px;
  flex-wrap: wrap;
}
.wb-notice {
  color: var(--pr-ink-muted);
  flex: 1 1 auto;
  min-width: 200px;
}
.wb-notice strong { color: var(--pr-ink); }
.wb-reset-btn {
  font-family: inherit;
  font-size: 11px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--pr-rule);
  border-radius: 3px;
  color: var(--pr-ink-muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.wb-reset-btn:hover {
  border-color: var(--pr-orange);
  color: var(--pr-orange);
  background: var(--pr-bg);
}
.wb-fill {
  display: inline-block;
  border: none;
  border-bottom: 1px solid var(--pr-ink-muted);
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: var(--pr-ink);
  padding: 2px 6px;
  margin: 0 2px;
  min-width: 140px;
  transition: border-color 0.15s, background 0.15s, border-bottom-width 0.05s;
}
.wb-fill:hover {
  background: var(--pr-bg-soft);
}
.wb-fill:focus {
  outline: none;
  border-bottom-color: var(--pr-orange);
  border-bottom-width: 2px;
  background: var(--pr-orange-soft);
}
/* In table cells, fill-in spans the cell width */
.workbook table .wb-fill {
  width: 100%;
  margin: 0;
  min-width: 0;
}
/* In blockquotes (Exercise 2 pattern: > Label: _____), wider input */
.workbook blockquote .wb-fill {
  min-width: 200px;
}
/* Workbook task-list checkboxes are interactive (Exercise 6 pre-flight checklist) */
.workbook .task-list-item input[type="checkbox"] {
  cursor: pointer;
  margin-right: 8px;
  vertical-align: -1px;
  accent-color: var(--pr-orange);
}
.workbook .task-list-item input[type="checkbox"]:hover {
  outline: 2px solid var(--pr-orange-soft);
  outline-offset: 2px;
}

/* ─── Scroll arrows — float right side of viewport ──────── */
/* Visible only when page is taller than 1.5× viewport. Up disabled
 * when at top, Down disabled when at bottom. JS in shell template. */

.scroll-arrows {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.scroll-arrows.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--pr-rule);
  background: var(--pr-bg);
  color: var(--pr-ink-muted);
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  line-height: 1;
  padding: 0;
}
.scroll-arrow:hover {
  border-color: var(--pr-orange);
  color: var(--pr-orange);
  background: var(--pr-bg-soft);
}
.scroll-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.scroll-arrow:disabled:hover {
  border-color: var(--pr-rule);
  color: var(--pr-ink-muted);
  background: var(--pr-bg);
}

/* ─── Mobile ────────────────────────────────────────────── */

/* ─── Mobile (≤640px) ────────────────────────────────────── */

@media (max-width: 640px) {
  :root { --header-h: 110px; --crumb-h: 42px; }
  /* Header — stacks vertically, brand block stays single row */
  .site-header {
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    height: auto;
    min-height: var(--header-h);
  }
  .brand { gap: 10px; }
  .brand-logo { height: 24px; }
  .brand-tool { font-size: 16px; }
  .brand-tag { font-size: 16px; letter-spacing: 0.10em; }
  .brand-sep { font-size: 20px; }
  .site-tools { flex-direction: column; gap: 6px; width: 100%; }
  .lang-switcher { border-right: none; padding-right: 0; }
  .academy-mode-toggle { align-self: center; }
  .amt-btn { font-size: 11px; padding: 5px 10px; }
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
  }
  .site-nav a { padding: 6px 8px; gap: 5px; }

  /* Breadcrumbs */
  .breadcrumbs { padding: 8px 14px; font-size: 12px; }
  .breadcrumbs a, .breadcrumbs .crumb-current { padding: 2px 4px; }

  /* Module nav — title row + tabs both compact, tabs scroll horizontally */
  .module-nav-inner { padding: 10px 14px 0; gap: 8px; }
  .module-title-text { font-size: 17px; }
  .module-chapter { font-size: 10px; padding: 2px 7px; }
  .mtab { padding: 8px 11px; font-size: 12px; gap: 6px; }
  .mtab-icon { width: 14px; height: 14px; }

  /* Page hero — smaller numerals, stacked layout */
  .page-hero { flex-direction: column; gap: 10px; padding: 20px 0; margin-bottom: 24px; }
  .page-hero-title { font-size: 30px; }
  .page-hero-chapter { font-size: 72px; position: absolute; top: 12px; right: 0; opacity: 0.5; margin: 0; }

  /* Module overview hero — same treatment */
  .module-overview-title { font-size: 34px; max-width: 100%; padding-right: 80px; }
  .module-overview-sub { max-width: 100%; }
  .module-overview-chapter { font-size: 84px; top: 28px; right: -4px; }
  .module-overview-section h2 { font-size: 20px; }
  .files-grid { grid-template-columns: 1fr; gap: 10px; }
  .file-card { padding: 18px; }

  /* Prev/next — stack vertically on mobile */
  .prev-next-inner { grid-template-columns: 1fr; gap: 10px; }
  .pn-card { padding: 18px 20px; min-height: 90px; }
  .pn-card.pn-empty { display: none; }
  .pn-card.pn-next { text-align: left; align-items: flex-start; }
  .pn-title { font-size: 17px; }

  /* Main + content */
  .site-main { padding: 20px 14px 40px; }
  .hero { padding: 16px 0 20px; margin-bottom: 32px; }
  .hero h1 { font-size: 28px; }
  .hero-claim { font-size: 17px; }
  .hero-sub { font-size: 15px; }
  .content h1 { font-size: 24px; line-height: 1.25; }
  .content h2 { font-size: 18px; margin-top: 28px; }
  .content h3 { font-size: 16px; }

  /* Content tables — make them scrollable horizontally instead of overflowing */
  .content { overflow-x: hidden; }
  .content > table,
  .content > p > table,
  .content article > table,
  article.content > table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .content table { font-size: 13px; }
  .content th, .content td { padding: 6px 8px; }
  .content pre { font-size: 12px; padding: 12px; }
  .content code { font-size: 0.85em; word-break: break-word; }

  /* Module overview meta dl */
  .module-overview dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .module-overview dt { font-weight: 600; margin-top: 8px; }

  /* Module grid — single column */
  .module-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Footer — stack vertically, links wrap */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    gap: 6px;
  }
  .footer-links { flex-wrap: wrap; gap: 6px; font-size: 12px; }
  .footer-build { font-size: 10px; }

  /* Scroll arrows */
  .scroll-arrows { right: 10px; gap: 6px; }
  .scroll-arrow { width: 34px; height: 34px; font-size: 16px; }

  /* Workbook toolbar — stack on mobile */
  .wb-toolbar {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .wb-notice { font-size: 12px; }
  .wb-reset-btn { width: 100%; padding: 10px 14px; font-size: 12px; }
  .wb-fill { min-width: 100px; font-size: 13px; }
  .workbook table .wb-fill { font-size: 12px; }

  /* Quiz interactive — mobile optimization */
  .quiz-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }
  .quiz-mode-toggle { width: 100%; }
  .qm-btn { flex: 1; padding: 8px 0; }
  .quiz-info { font-size: 11px; text-align: center; }
  .quiz-q legend { font-size: 13px; }
  .quiz-q .qtag {
    display: block;
    margin-left: 0;
    margin-top: 2px;
    font-size: 11px;
  }
  .quiz-q .q-text { font-size: 15px; }
  .q-option label {
    padding: 10px 12px;
    font-size: 14px;
    gap: 8px;
  }
  .quiz-submit-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    font-size: 14px;
  }
  .quiz-submit-hint { font-size: 12px; }
  .quiz-result { padding: 22px 18px 20px; }
  .result-grade-tier { font-size: 24px; }
  .result-grade-score { font-size: 16px; }
  .result-caption { font-size: 14px; }
  .result-action { padding: 12px 14px; font-size: 13px; }

  /* Source / explanation panels */
  .quiz-q .q-source,
  .quiz-q .q-explanation {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* ─── Very narrow mobile (≤380px — older phones / split-screen) ─ */

@media (max-width: 380px) {
  .brand-tool { font-size: 14px; }
  .brand-tag { font-size: 14px; letter-spacing: 0.08em; }
  .breadcrumbs-wrap { top: 138px; }
  .hero h1 { font-size: 24px; }
  .content h1 { font-size: 20px; }
  .module-files a { padding: 10px 12px; font-size: 14px; }
  .qm-btn { font-size: 10px; padding: 7px 0; }
}

/* ─── Print ─────────────────────────────────────────────── */
/* Goal v0.4.2: usable basic print for self-study / take-home.
 * Adaptive paper size (let browser print dialog choose A4 / US Letter via @page size:auto).
 * Pagination v0.6+ (Worker migration) will add: per-module workbook PDF download,
 * page-break-after on H2 section boundaries, header/footer with module slug + page N/M. */

/* ─── Landing hero (full-bleed cinematic) ───────────────────────────
 *
 * Rendered by buildPages() when slug === 'landing'. Sits between the
 * sticky header/breadcrumbs and the .content article. Full-bleed dark
 * background, two-column grid (text left, SVG art right), generous
 * vertical padding. Mobile collapses to single column with the SVG
 * pushed below the text.
 */

.landing-hero {
  width: 100%;
  background: radial-gradient(ellipse at 18% 18%, #1a1408 0%, #0a0a0e 55%, #050507 100%);
  color: #f3f1ed;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 96, 0, 0.18);
  /* The hero lives inside .site-main which has flex 1 0 auto; let it stretch full width. */
}
.landing-hero::before {
  /* Subtle floor gradient that fades from the page background up */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 96, 0, 0.05) 100%);
  pointer-events: none;
}
.landing-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 32px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}
.landing-hero-text { display: flex; flex-direction: column; gap: 24px; }
.landing-hero-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pr-orange);
  font-weight: 600;
}
.landing-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.02;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.landing-hero-subtitle {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  font-weight: 300;
  color: rgba(243, 241, 237, 0.78);
  margin: 0;
  max-width: 540px;
}
.landing-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 4px;
}
.landing-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.landing-hero-cta-primary {
  background: var(--pr-orange);
  color: #ffffff;
  padding: 14px 26px 14px 28px;
  box-shadow: 0 4px 14px rgba(255, 96, 0, 0.32);
}
.landing-hero-cta-primary:hover {
  background: #ff7421;
  transform: translateY(-1px);
}
.landing-hero-cta-primary .landing-hero-cta-arrow {
  transition: transform 160ms ease;
  font-weight: 400;
}
.landing-hero-cta-primary:hover .landing-hero-cta-arrow { transform: translateX(3px); }
.landing-hero-cta-secondary {
  background: transparent;
  color: #f3f1ed;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(243, 241, 237, 0.32);
  border-radius: 0;
}
.landing-hero-cta-secondary:hover {
  border-bottom-color: var(--pr-orange);
  color: var(--pr-orange);
}
.landing-hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 241, 237, 0.55);
  font-weight: 600;
}
/* Generic .landing-hero-stats li base — kept minimal so modifier variants
 * (.landing-hero-stats--primary / .landing-hero-stats--secondary) control
 * their own spacing + separators entirely. The legacy dot separator that
 * lived here previously was polluting the modifier renderings — every
 * non-last li got "·" PLUS its modifier-specific pipe, producing the
 * "· | · |" combo KH flagged in v0.24.8 ("kombinovat tečky a | jako
 * oddělovače mi přijde perverzní"). */
.landing-hero-stats li {
  position: relative;
}
.landing-hero-art {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.landing-hero-illustration {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

/* Below-fold landing content gets a soft warm background to lead from
 * the dark hero into the article without a jarring white wall. */
body:has(.landing-hero) .site-main { background: linear-gradient(to bottom, #0a0a0e 0%, #0a0a0e calc(var(--landing-hero-h, 600px) + 0px), var(--pr-bg) 0); }

/* Landing article — uniform LEFT alignment.
 *
 * v0.26.1: KH revert — "nadpisy byly původně zarovnané vlevo, odstavce
 * rovněž. Nějak se tam vloudilo zarovnání na střed a je to víc rozbité
 * než to bylo." Centered pattern from v0.26.0 reverted. All sections
 * (h2, body, lists, tables, instructors) align LEFT within the article's
 * natural content-width column. Consistency comes from uniform LEFT,
 * not uniform CENTER. */
.content.landing-page {
  max-width: var(--content-width);
}
.content.landing-page > p:first-of-type {
  font-size: 19px;
  line-height: 1.55;
  color: var(--pr-ink-soft, #4a4a4a);
  margin-top: 56px;
  /* Lead paragraph stays left-aligned, no auto-margins. */
}
.content.landing-page h2 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.01em;
  margin-top: 72px;
  margin-bottom: 18px;
  /* Left-aligned (default) — no text-align: center. */
}
.content.landing-page h3 {
  font-size: 21px;
  letter-spacing: -0.005em;
  margin-top: 36px;
}
/* Ordered lists: keep numbers inside the article's content column.
 * v0.26.1 fix — KH catch "první odstavce mají uskočené číslování".
 * The numbers were rendering outside the column boundary on narrow viewports.
 * Set padding-left so the marker sits cleanly inside. */
.content.landing-page ol,
.content.landing-page ul {
  padding-left: 1.6em;
}
.content.landing-page hr {
  border: 0;
  border-top: 1px solid var(--pr-rule);
  margin: 56px 0;
}

/* Mobile: stack hero (text first, art second, smaller) */
@media (max-width: 880px) {
  .landing-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 22px 56px;
  }
  .landing-hero-art { order: 2; }
  .landing-hero-text { order: 1; gap: 20px; }
  .landing-hero-illustration { max-width: 420px; }
  .landing-hero-subtitle { font-size: 17px; }
}
@media (max-width: 480px) {
  .landing-hero-inner { padding: 48px 18px 40px; }
  .landing-hero-title { font-size: clamp(38px, 11vw, 56px); }
  .landing-hero-cta-primary { padding: 12px 22px; font-size: 14px; }
  .landing-hero-illustration { max-width: 340px; }
  .landing-hero-stats { gap: 6px 18px; font-size: 10.5px; letter-spacing: 0.10em; }
}

/* ──────────────────────────────────────────────────────────────────────
 * Landing dark theme — v0.24.0
 *
 * The landing page renders against a near-black background to give the
 * cinematic hero photo and the brand mark room to breathe. Everything OUTSIDE
 * the `<body class="page-landing">` scope (other pages) keeps the original
 * light theme. Header and footer keep their default chrome — only the main
 * content + hero + below-fold sections go dark.
 * ────────────────────────────────────────────────────────────────────── */

body.page-landing {
  background: #0a0a0e;
  color: #ececec;
}
body.page-landing .site-main {
  background: #0a0a0e;
}
/* Suppress the previous bg-gradient stunt — dark theme now goes full bleed. */
body.page-landing:has(.landing-hero) .site-main {
  background: #0a0a0e;
}

/* Content area on dark landing — paragraphs, headings, rules.
 * v0.24.8: brightened body text colors. KH catch: previous #c8c8c8 looked
 * "moc šedý, je to smutné" against the #0a0a0e page. Bumped paragraphs
 * to #e5e5e5 and list items match — body is the workhorse, reads as
 * proper editorial copy now, not muted "fine print". */
body.page-landing .content.landing-page > p:first-of-type { color: #e5e5e5; }
body.page-landing .content.landing-page h2 { color: #ffffff; }
body.page-landing .content.landing-page h3 { color: #ffffff; }
body.page-landing .content.landing-page p { color: #e5e5e5; }
body.page-landing .content.landing-page a { color: #FF8a40; }
body.page-landing .content.landing-page a:hover { color: #FF6000; }
body.page-landing .content.landing-page strong { color: #ffffff; }
body.page-landing .content.landing-page em { color: #e8e8e8; }
body.page-landing .content.landing-page hr {
  border-top-color: rgba(255,255,255,0.10);
  /* Add a subtle orange tint at the section break for visual rhythm —
   * blockquotes have orange left rules, hr should echo that warmth. */
  border-top: 1px solid transparent;
  background: linear-gradient(to right, transparent, rgba(255, 96, 0, 0.40), transparent);
  height: 1px;
  margin: 56px auto;
  max-width: 200px;
}
body.page-landing .content.landing-page ul,
body.page-landing .content.landing-page ol { color: #e5e5e5; }
/* Bullet list polish (v0.25.0): orange markers + orange-tinted strong
 * prefix in bullet items. KH catch: bullets looked "vizuálně o dost chudší"
 * compared to blockquote richness. Now bullets read as editorial list
 * with brand-orange leading marker and leading-bold-orange item label. */
body.page-landing .content.landing-page li::marker {
  color: rgba(255, 96, 0, 0.85);
  font-size: 1.05em;
}
body.page-landing .content.landing-page ul > li,
body.page-landing .content.landing-page ol > li {
  padding-left: 4px;
  margin-bottom: 8px;
}
/* Strong at the START of a bullet item = its label.
 * (e.g., "**Operator Standard** — the broadest entry point").
 * Render the label in brand orange to give the list visual structure.
 * Strong NOT at the start (mid-sentence emphasis) stays white. */
body.page-landing .content.landing-page ul > li > strong:first-child,
body.page-landing .content.landing-page ol > li > strong:first-child {
  color: #FF8a40;
}

/* Blockquote / callout boxes — dark theme override.
 * Light theme uses var(--pr-bg-soft) (warm light gray) + var(--pr-ink) (dark text).
 * Dark landing needs a translucent dark background with light text so callouts
 * stay readable against the #0a0a0e page background. */
body.page-landing .content.landing-page blockquote {
  border-left: 3px solid rgba(255, 96, 0, 0.70);
  background: rgba(255, 255, 255, 0.04);
  color: #d8d8d8;
}
body.page-landing .content.landing-page blockquote strong { color: #ffffff; }
body.page-landing .content.landing-page blockquote em { color: #d0d0d0; }
body.page-landing .content.landing-page blockquote a {
  color: #FF8a40;
  text-decoration: underline;
  text-decoration-color: rgba(255, 96, 0, 0.50);
}
body.page-landing .content.landing-page blockquote a:hover {
  color: #FF6000;
  text-decoration-color: #FF6000;
}

/* Inline code + code blocks — dark theme.
 * Light theme uses --pr-bg-soft background + --pr-ink text → invisible on dark. */
body.page-landing .content.landing-page code {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.page-landing .content.landing-page pre {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.page-landing .content.landing-page pre code {
  background: transparent;
  border: 0;
  color: #f0f0f0;
}

/* Scroll FAB arrows — dark theme override.
 * Light theme uses --pr-bg (white) + --pr-ink-muted border which on dark page
 * looks like glowing UFOs hovering on the side. KH v0.24.6 catch: "tyhle
 * šipky by měly být méně zářivé na tom černém podkladu, dost ruší".
 * Dark variant: muted dark fill + subtle border. Hover restores orange. */
body.page-landing .scroll-arrow {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}
body.page-landing .scroll-arrow:hover {
  background: rgba(255, 96, 0, 0.10);
  border-color: rgba(255, 96, 0, 0.55);
  color: #FF8a40;
}
body.page-landing .scroll-arrow:disabled {
  opacity: 0.20;
}
body.page-landing .scroll-arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.45);
}

/* Tables — dark theme.
 * KH v0.24.8 catch: "podbarvení záhlaví se k tomu luxusnímu černému
 * provedení vůbec nehodí". Removed th background fill (was a translucent
 * white slab that looked like a UI-element strip pasted on top of the
 * editorial page). Replaced with a brighter typographic header — capitals,
 * letterspacing, and a single thin underline. Clean editorial table look.
 * Day column gets a sane minimum width + nowrap so values like "9-10"
 * don't break onto two lines. */
body.page-landing .content.landing-page table {
  color: #e5e5e5;
}
body.page-landing .content.landing-page th {
  background: transparent;
  color: rgba(255, 96, 0, 0.95);          /* orange caps echo blockquote/bullet treatment */
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 96, 0, 0.45);   /* orange underline below header row */
  white-space: nowrap;
}
body.page-landing .content.landing-page td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #e5e5e5;
}
/* First column (typically narrow numeric / label column like "Day" or "#")
 * gets a minimum width + nowrap so short range values ("9-10", "2-3") don't
 * fall onto two lines on narrow viewports. Center-align (v0.25.1, KH catch:
 * "sloupci s čísly by slušelo zarovnání na střed") — numeric columns read
 * better stacked vertically on their axis. */
body.page-landing .content.landing-page th:first-child,
body.page-landing .content.landing-page td:first-child {
  min-width: 64px;
  white-space: nowrap;
  text-align: center;
}
body.page-landing .content.landing-page tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ──────────────────────────────────────────────────────────────────────
 * Hero — photo variant
 *
 * When `hero_image` is set in landing.md, build skript renders
 * <section class="landing-hero landing-hero--photo">. The photo carries the
 * brand mark + slogan baked in, so the text overlay is suppressed and the
 * photo fills the hero band edge to edge.
 * ────────────────────────────────────────────────────────────────────── */

/* Hero — photo variant
 * Fix v0.24.1 after KH preview feedback: previous version (a) cropped the
 * left side of the photo with object-fit: cover + max-height, hiding the
 * brand logo and slogan, and (b) overlaid the stats/CTAs over the photo
 * with a translucent gradient that looked like a second image layered on
 * top. This rewrite shows the whole photo (object-fit: contain so the
 * brand mark + slogan stay visible) and moves CTAs + stats UNDER the photo
 * on a solid dark band — no overlay, no second-image illusion.
 *
 * v0.24.1 extra-defensive: explicit reset of every inherited rule from
 * .landing-hero so that the photo variant doesn't accidentally render with
 * the legacy SVG-variant chrome (radial gradient bg, 96px padding, etc.)
 * which produced a "second image" illusion when stale CSS was cached. */
.landing-hero.landing-hero--photo {
  background: #0a0a0e !important;
  padding: 0 !important;
  min-height: auto !important;
  border-bottom: 0 !important;
  overflow: hidden !important;
}
.landing-hero.landing-hero--photo::before { display: none !important; }
.landing-hero.landing-hero--photo::after { display: none !important; }
.landing-hero--photo {
  background: #0a0a0e;
  padding: 0;
  min-height: auto;
  border-bottom: 0;
}
.landing-hero--photo::before { display: none; }
.landing-hero--photo .landing-hero-inner {
  display: block;
  grid-template-columns: none;
  padding: 0;
  max-width: 100%;
  margin: 0;
  gap: 0;
  position: relative;
}
.landing-hero--photo .landing-hero-art {
  width: 100%;
  margin: 0;
  display: block;
  background: #0a0a0e;
}
.landing-hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  object-position: center;
  background: #0a0a0e;
}
/* CTAs + stats sit on a solid dark band UNDER the photo (not overlaid).
 * Background unified to #0a0a0e (page bg) so there's no visible seam between
 * the photo's letterbox edges, this meta band, and the article below.
 * KH v0.24.5 catch: "máme tam záměrně jinou černou jako podklad stránky a jinou
 * černou v tom bloku pod obrázkem? — je to strašně pruhatý". */
.landing-hero--photo .landing-hero-meta {
  position: static;
  background: #0a0a0e;
  padding: 40px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.landing-hero--photo .landing-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ──────────────────────────────────────────────────────────────────────
 * Hero stats — two-tier Apple-grade claims (v0.24.6 redesign)
 *
 * KH catch: "vypadá jako poznámky na papíru od svačiny, nikoli hlavní
 * claimy". Previous version (single row, 11px caps, dot separators, weak
 * white) read as small-print marginalia, not headline statements.
 *
 * Redesign:
 *   - Two explicit tiers (`--primary` numerical / `--secondary` delivery)
 *   - Primary row: larger type, near-full-white, generous letterspacing
 *     used as a graphic device not a "small caps" trick
 *   - Secondary row: slimmer, dimmer, longer letterspacing — visually
 *     declared as the "subhead" beneath the primary line
 *   - Slim vertical pipe separators (1px @ 14px tall) instead of middle
 *     dots — classic editorial rhythm device, reads as a typeset claim
 *     line rather than a CSV
 *   - Generous gap between tiers + max-width to keep claims on
 *     controlled wrapping
 * ────────────────────────────────────────────────────────────────────── */

.landing-hero--photo .landing-hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 920px;
  font-family: var(--font-display, "Titillium Web", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif);
}

/* v0.24.8 — Claims redesign. KH multi-fix:
 *   - "kombinovat tečky a | jako oddělovače mi přijde perverzní" → only pipes
 *   - "horní řádek by se neměl zalamovat na dva" → max-width widened
 *   - hierarchical rhythm: primary punch line + slim subhead, no in-between
 *
 * Strategy: single max-width 1200px shelf accommodates all 4 primary chips
 * on one row up to ~13px caps + 0.16em letterspacing (tighter than the
 * previous 0.22em to buy horizontal room). Secondary stays narrow and
 * subdued. Pipe is the ONLY separator type — no dots anywhere. */

.landing-hero--photo .landing-hero-stats {
  max-width: 1200px;
}

/* Primary tier — the headline claims */
.landing-hero--photo .landing-hero-stats--primary {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  gap: 0 24px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
  overflow-x: visible;
}
.landing-hero--photo .landing-hero-stats--primary li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.landing-hero--photo .landing-hero-stats--primary li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-right: 24px;
  background: rgba(255, 255, 255, 0.22);
}

/* Secondary tier — the supporting delivery line */
.landing-hero--photo .landing-hero-stats--secondary {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  gap: 0 22px;
  flex-wrap: nowrap;
  overflow-x: visible;
}
.landing-hero--photo .landing-hero-stats--secondary li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.landing-hero--photo .landing-hero-stats--secondary li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin-right: 22px;
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1100px) {
  .landing-hero--photo .landing-hero-stats--primary {
    font-size: 12px;
    letter-spacing: 0.14em;
    gap: 0 20px;
    flex-wrap: wrap;
  }
  .landing-hero--photo .landing-hero-stats--primary li + li::before { margin-right: 20px; }
}
@media (max-width: 880px) {
  .landing-hero-photo { max-height: 56vh; }
  .landing-hero--photo .landing-hero-meta { padding: 28px 22px 36px; gap: 14px; }
  .landing-hero--photo .landing-hero-stats--primary {
    font-size: 11.5px;
    letter-spacing: 0.13em;
    gap: 0 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .landing-hero--photo .landing-hero-stats--primary li + li::before { margin-right: 16px; }
  .landing-hero--photo .landing-hero-stats--secondary {
    font-size: 10.5px;
    letter-spacing: 0.20em;
    gap: 0 16px;
    flex-wrap: wrap;
  }
  .landing-hero--photo .landing-hero-stats--secondary li + li::before { margin-right: 16px; }
}
@media (max-width: 480px) {
  .landing-hero-photo { max-height: 50vh; }
  .landing-hero--photo .landing-hero-meta { padding: 22px 16px 28px; }
  .landing-hero--photo .landing-hero-stats--primary {
    font-size: 11px;
    gap: 0 12px;
  }
  .landing-hero--photo .landing-hero-stats--primary li + li::before {
    margin-right: 12px;
    height: 11px;
  }
  .landing-hero--photo .landing-hero-stats--secondary {
    font-size: 10px;
    gap: 0 12px;
  }
  .landing-hero--photo .landing-hero-stats--secondary li + li::before {
    margin-right: 12px;
    height: 9px;
  }
}

/* ──────────────────────────────────────────────────────────────────────
 * Instructors section — landing.md `instructors:` frontmatter
 *
 * Card grid with portrait (real photo or silhouette placeholder),
 * name, role, optional bio + external link. Designed to live on the
 * dark landing page; on a light page the silhouette would need an
 * inverted color set (currently dark-only — no other page renders
 * instructors yet).
 * ────────────────────────────────────────────────────────────────────── */

/* Instructors section — vertical-stacked horizontal cards.
 * v0.24.8 redesign per KH: previous compact 4-up grid had long bios spilling
 * awkwardly underneath tiny medallions ("možná by to s těmi delšími texty
 * vycházelo líp" with horizontal layout). New layout: each instructor is a
 * row (photo left, meta right). Multiple rows stacked vertically. Mobile
 * collapses back to vertical (photo on top, meta below). Cleaner pro
 * editorial bios. */
.instructors-section {
  margin: 88px 0 64px;
  padding: 0;
}
.instructors-section-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #f5f5f5;
  /* Left-aligned (default) — KH v0.26.1: "nadpisy byly původně zarovnané vlevo".
   * Uniform with other section h2s. */
}
.instructors-section-intro {
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 48px;
  color: #b8b8b8;
  /* Left-aligned natural prose, no max-width / auto-margin constraint. */
}
.instructors-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 820px;
  margin: 0 auto;
}
.instructor-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  text-align: left;
  transition: transform 160ms ease;
}
.instructor-card:hover {
  transform: translateY(-1px);
}
.instructor-portrait {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 0;
  flex-shrink: 0;
  position: relative;
  /* Subtle rim so the medallion sits on the dark background without
   * looking like a hole punched in the page. */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: box-shadow 200ms ease;
}
.instructor-card:hover .instructor-portrait {
  box-shadow: 0 0 0 1px rgba(255, 96, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.45);
}
/* Inset vignette — fades the bright photo background toward the medallion
 * rim, creating a "spotlight on the face" feel instead of the previous
 * "head peeking through a hole" effect that KH flagged in v0.24.4 ("kluci
 * vykukují dírkou z kadibudky"). The radial gradient is centered on the
 * subject's face (matching the object-position offset below) and fades
 * to near-black at the rim — same approach photographers use to draw the
 * viewer's eye to the focal subject. */
.instructor-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, transparent 38%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.instructor-photo,
.instructor-silhouette {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Head + eyes pulled up so they sit near the medallion's optical centre
   * (~38 % from the top, matching the vignette focus). Default center
   * positioning sank the faces too low and left a slab of background
   * around the head. */
  object-position: center 25%;
  /* Mild zoom-in compresses the white photo background at the rim and lets
   * the gradient vignette finish the transition into the dark page. */
  transform: scale(1.08);
  transform-origin: center 30%;
  display: block;
  /* Monochrome treatment — all instructor portraits render in black-and-white
   * regardless of whether the source is a real photograph or the silhouette
   * SVG placeholder. KH design call: "obrázky prosím zobrazuj černobíle,
   * ať vypadáme všichni stejně". Slight contrast bump compensates for the
   * tone-flattening effect of full desaturation. */
  filter: grayscale(1) contrast(1.05);
}
.instructor-card--silhouette .instructor-silhouette {
  /* Silhouette SVG already paints in greyscale; the inherited filter is a
   * no-op visually but keeps one-source-of-truth styling. The silhouette
   * doesn't need the head-up offset (it's already designed with the head
   * near the optical center) so reset object-position + scale. */
  object-position: center center;
  transform: none;
}
.instructor-meta {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.instructor-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: #ffffff;
  line-height: 1.2;
}
.instructor-name-link {
  color: #FF8a40;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}
.instructor-name-link:hover {
  color: #FF6000;
  border-bottom-color: #FF6000;
}
.instructor-name-arrow {
  color: rgba(255, 96, 0, 0.75);
  font-size: 14px;
  margin-left: 2px;
}
/* Instructor nickname (e.g., "Kamil (KH)") — visible parenthetical sized
 * close to the first name but slightly lighter color. KH v0.27.2:
 * "nemusí to možná být tak moc graficky upozaděné". Bumped from 0.55 alpha
 * and 0.7em to 0.78 alpha + 0.78em — reads as co-equal informal nickname
 * rather than dim footnote. */
.instructor-nickname {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-left: 4px;
  font-family: var(--font-display);
}
/* Inline flags in the heading row (next to first name).
 * KH v0.27.2: "křestní jméno a za ním vlaječky, aby to nebylo moc prázdné". */
.instructor-inline-flags {
  display: inline-flex;
  gap: 4px;
  margin-left: 12px;
  font-size: 0.65em;
  line-height: 1;
  vertical-align: middle;
}
.instructor-inline-flags .instructor-lang-flag {
  filter: saturate(0.92);
  opacity: 0.95;
}
/* Full formal name as bold prefix inside the bio paragraph.
 * Card heading shows just first name; bio still announces who they are. */
.instructor-fullname {
  color: #f0f0f0;
  font-weight: 600;
}
.instructor-role {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 600;
}
.instructor-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #d0d0d0;
  margin: 12px 0 0;
  max-width: 60ch;
}
/* Language flags — inline in heading row beside first name (per v0.27.2).
 * Previous block-level `.instructor-languages` paragraph removed since
 * flags now ride alongside the name. `.instructor-lang-flag` styling
 * shared by inline (heading row) and any future block placement. */
.instructor-lang-flag {
  display: inline-block;
  filter: saturate(0.92);
  opacity: 0.92;
  transition: opacity 140ms ease, filter 140ms ease;
  cursor: help;
}
.instructor-card:hover .instructor-lang-flag {
  opacity: 1;
  filter: saturate(1);
}

@media (max-width: 640px) {
  .instructors-section { margin: 64px 0 48px; }
  .instructors-section-title { font-size: 26px; }
  .instructors-grid { gap: 28px; }
  /* Mobile: collapse back to vertical (photo on top, meta below) */
  .instructor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .instructor-portrait { width: 108px; height: 108px; }
  .instructor-meta { align-items: center; }
  .instructor-bio { text-align: center; }
  .instructor-languages { justify-content: center; }
}

@page {
  margin: 18mm 18mm 22mm 18mm;     /* generous bottom for footer */
}

@media print {
  .site-header, .site-nav, .site-footer, .breadcrumbs-wrap, .breadcrumbs, .preview-banner, .preview-note-box,
  .scroll-arrows, .wb-toolbar, .wb-reset-btn, .landing-hero {
    display: none;
  }
  .site-main { padding: 0; max-width: 100%; }
  .content { max-width: 100%; }
  body { font-size: 10.5pt; color: black; }
  .content h1 { font-size: 20pt; page-break-after: avoid; }
  .content h2 { font-size: 14pt; page-break-after: avoid; margin-top: 24pt; }
  .content h3 { font-size: 12pt; page-break-after: avoid; }
  .content blockquote { page-break-inside: avoid; }
  .content table, .content pre { page-break-inside: avoid; }
  .content ul, .content ol { page-break-inside: avoid; }
  a { color: black; text-decoration: underline; }
  /* Quiz: print correct-answer highlight as bold + outline (no color reliance) */
  .quiz-pool ul li {
    background: transparent;
    border-left: 2px solid #ccc;
  }
  .quiz-pool ul li:has(> strong:last-child) {
    border-left: 2px solid black;
    border-left-width: 3px;
  }
  /* Workbook: ensure fill-in lines are visible (underscores in source render fine) */
  .workbook hr { border-top-color: #999; }
  /* Module overview meta dl: side-by-side stays */
  .module-overview dl { grid-template-columns: 160px 1fr; }
}

/* ─── Packages library — Student + Instructor sections (v0.30.4) ─── */

.packages-library .packages-section {
  margin-top: 2.5em;
}

.packages-library .packages-section:first-of-type {
  margin-top: 1.5em;
}

.packages-library .packages-section-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 0.4em;
  letter-spacing: -0.01em;
}

.packages-library .packages-section-intro {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 0.95em;
  line-height: 1.5;
}

.packages-library .packages-list {
  list-style: disc;
  padding-left: 1.3em;
}

.packages-library .packages-list li {
  margin-bottom: 0.4em;
  line-height: 1.5;
}

/* Visual separation pro Instructor track — subtle accent border-top */
.packages-library .packages-section--instructor {
  border-top: 1px solid var(--pr-black-10, #e5e5e5);
  padding-top: 1.5em;
  margin-top: 3em;
}

.packages-library .packages-section--instructor .packages-section-title {
  /* Slight color signal — uses brand orange tint to differentiate from student tracks */
  color: var(--pr-orange, #ff6000);
}
