﻿/* ═══════════════════════════════════════════════════
   GF2 Learn — Modern Learning Platform Theme
   ═══════════════════════════════════════════════════ */

:root {
  color-scheme: light dark;
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-sidebar: #eef1f6;
  --bg-hover: #e4e9f0;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --accent: #0284c7;
  --accent-bright: #0ea5e9;
  --accent-dim: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.12);
  --accent-secondary: #7c3aed;
  --accent-teal: #0d9488;
  --link: #0369a1;
  --code-bg: #f1f5f9;
  --header-bg: rgba(244, 246, 250, 0.92);
  --hero-glow-a: rgba(2, 132, 199, 0.1);
  --hero-glow-b: rgba(124, 58, 237, 0.08);
  --btn-primary-fg: #f8fafc;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 40px rgba(2, 132, 199, 0.1);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --header-h: 4rem;
  --layout-max: 72rem;
  --content-max: 52rem;
  --sidebar-w: 17rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090f;
    --bg-elevated: #12121a;
    --bg-card: #16161f;
    --bg-sidebar: #0e0e14;
    --bg-hover: #1c1c28;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #ececf1;
    --text-muted: #8b8b9e;
    --text-dim: #5c5c6f;
    --accent: #38bdf8;
    --accent-bright: #7dd3fc;
    --accent-dim: #0ea5e9;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --accent-secondary: #a78bfa;
    --accent-teal: #2dd4bf;
    --link: #7dd3fc;
    --code-bg: #0d0d14;
    --header-bg: rgba(9, 9, 15, 0.85);
    --hero-glow-a: rgba(56, 189, 248, 0.12);
    --hero-glow-b: rgba(167, 139, 250, 0.08);
    --btn-primary-fg: #041018;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.12);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --bg-sidebar: #0e0e14;
  --bg-hover: #1c1c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf1;
  --text-muted: #8b8b9e;
  --text-dim: #5c5c6f;
  --accent: #38bdf8;
  --accent-bright: #7dd3fc;
  --accent-dim: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-secondary: #a78bfa;
  --accent-teal: #2dd4bf;
  --link: #7dd3fc;
  --code-bg: #0d0d14;
  --header-bg: rgba(9, 9, 15, 0.85);
  --hero-glow-a: rgba(56, 189, 248, 0.12);
  --hero-glow-b: rgba(167, 139, 250, 0.08);
  --btn-primary-fg: #041018;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.12);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dos"] {
  color-scheme: dark;
  --bg: #020604;
  --bg-elevated: #050d07;
  --bg-card: #07140b;
  --bg-sidebar: #030a05;
  --bg-hover: #0b2412;
  --border: rgba(112, 255, 135, 0.24);
  --border-strong: rgba(141, 255, 157, 0.52);
  --text: #8dff9d;
  --text-muted: #52bf65;
  --text-dim: #2f793c;
  --accent: #70ff87;
  --accent-bright: #b6ffc0;
  --accent-dim: #21b442;
  --accent-glow: rgba(76, 255, 112, 0.14);
  --accent-secondary: #43d75c;
  --accent-teal: #6bea7f;
  --link: #9dffab;
  --code-bg: #010402;
  --header-bg: rgba(2, 6, 4, 0.94);
  --hero-glow-a: rgba(76, 255, 112, 0.1);
  --hero-glow-b: rgba(29, 163, 54, 0.06);
  --btn-primary-fg: #020604;
  --success: #70ff87;
  --warning: #c8ff72;
  --danger: #ff7c7c;
  --info: #9dffab;
  --radius-sm: 0.1rem;
  --radius-md: 0.15rem;
  --radius-lg: 0.2rem;
  --radius-xl: 0.25rem;
  --shadow-sm: 0 0 0 1px rgba(76, 255, 112, 0.08);
  --shadow-md: 0 0 22px rgba(76, 255, 112, 0.08);
  --shadow-glow: 0 0 34px rgba(76, 255, 112, 0.14);
  --font-sans: "Courier New", "Lucida Console", monospace;
  --font-mono: "Courier New", "Lucida Console", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dos"] body {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(141, 255, 157, 0.025) 0,
    rgba(141, 255, 157, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  letter-spacing: 0.015em;
  text-shadow: 0 0 5px rgba(112, 255, 135, 0.18);
}

:root[data-theme="dos"] ::selection {
  color: #020604;
  background: #8dff9d;
}

:root[data-theme="dos"] .btn,
:root[data-theme="dos"] button,
:root[data-theme="dos"] input,
:root[data-theme="dos"] textarea,
:root[data-theme="dos"] select {
  font-family: var(--font-mono);
}

:root[data-theme="dos"] .btn {
  border: 1px solid var(--border-strong);
  text-transform: uppercase;
  box-shadow: none;
}

:root[data-theme="dos"] .btn:hover {
  transform: none;
  box-shadow: 0 0 14px var(--accent-glow);
}

:root[data-theme="dos"] .theme-toggle-track,
:root[data-theme="dos"] .theme-toggle-thumb {
  border-radius: var(--radius-sm);
}

:root[data-theme="dos"] .theme-toggle-thumb {
  border-color: var(--border-strong);
  box-shadow: 0 0 10px var(--accent-glow);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-bright); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: var(--btn-primary-fg);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.btn-primary:hover { color: var(--btn-primary-fg); box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text); border-color: var(--accent-dim); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

/* ─── Site Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: var(--header-bg);
}
.site-header-landing { background: var(--header-bg); }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
}
.site-header-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  min-width: 0;
}
.site-header-brand--vc .videnscenter-branding {
  flex-shrink: 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.site-logo:hover { color: var(--text); text-decoration: none; }
.site-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}
.site-logo-text { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.site-logo-accent { color: var(--accent); }
.site-nav { display: flex; gap: 0.25rem; }
.site-nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.site-nav-link:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }

/* ─── Theme toggle ─── */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.issue-report-link {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-muted);
  box-shadow: var(--shadow-md);
  opacity: 0.7;
  backdrop-filter: blur(10px);
  transition: color 140ms ease, border-color 140ms ease, opacity 140ms ease, transform 140ms ease;
}
.issue-report-link:hover,
.issue-report-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}
.issue-report-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.issue-report-link svg { flex-shrink: 0; }
.theme-toggle {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.theme-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 3.75rem;
  height: 2rem;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.theme-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: var(--text-dim);
  transition: color 0.2s;
}
.theme-toggle-thumb {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: calc(50% - 0.15rem);
  height: calc(100% - 0.3rem);
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: transform 0.2s ease;
}
.theme-toggle.is-dark .theme-toggle-thumb {
  transform: translateX(100%);
}
.theme-toggle.is-dark .theme-toggle-moon,
.theme-toggle:not(.is-dark) .theme-toggle-sun {
  color: var(--accent);
}
.theme-toggle:hover .theme-toggle-track {
  border-color: var(--border-strong);
}

/* ─── User Menu ─── */
.user-menu { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.user-menu-logged-in { display: flex; align-items: center; gap: 0.5rem; }
.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent-secondary));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.user-name {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.user-badge-muted { font-style: italic; }

/* ─── App Shell (content pages) ─── */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-body { flex: 1; }
.main-content { min-height: calc(100vh - var(--header-h)); }

.section-tabs { display: flex; gap: 0.2rem; }
.section-tabs .tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.section-tabs .tab:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.section-tabs .tab.active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.tab-icon { font-size: 0.85rem; }

/* ─── Sidebar ─── */
.section-page {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, var(--content-max));
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
}
.sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-sidebar);
  padding: 1.25rem 0.75rem;
  overflow-y: auto;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
}
.sidebar-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 0.75rem 0.75rem;
  font-weight: 600;
}
.sidebar-group { margin-bottom: 1.25rem; }
.sidebar-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.4rem 0.75rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  border-left: 2px solid transparent;
  margin-bottom: 1px;
}
.sidebar-link-text {
  min-width: 0;
  line-height: 1.35;
}
.sidebar-check {
  color: #22c55e;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1;
}
.sidebar-link:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.sidebar-link.active {
  background: var(--accent-glow);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}
.section-article {
  padding: 0 2rem 4rem;
  max-width: var(--content-max);
  width: 100%;
  margin-inline: auto;
}

/* ─── Section Hero (index pages) ─── */
.section-hero {
  padding: 2rem 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.section-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.section-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.section-hero-lead { color: var(--text-muted); margin: 0; max-width: 36rem; font-size: 0.95rem; }
.hero-chip {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ─── Index lists ─── */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { margin: 0.25rem 0 0.5rem; font-size: 1.75rem; font-weight: 700; }
.page-lead, .breadcrumb { color: var(--text-muted); font-size: 0.9rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.index-list { display: flex; flex-direction: column; gap: 0.5rem; }
.index-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.index-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: var(--bg-hover);
  transform: translateX(3px);
  text-decoration: none;
}
.index-order {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 1.75rem;
}
.index-item-body { flex: 1; }
.index-item-body strong { display: block; font-weight: 600; }
.index-meta { color: var(--text-dim); font-size: 0.82rem; }
.index-arrow { color: var(--text-dim); font-size: 1rem; transition: color 0.15s; }
.index-item:hover .index-arrow { color: var(--accent); }
.index-check {
  color: #22c55e;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}
.index-section { margin-top: 2rem; }
.index-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.level-icon { font-size: 1.1rem; }

/* ─── Project cards ─── */
.project-level { margin-bottom: 2rem; }
.project-level:last-child { margin-bottom: 0; }
.project-level-title {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.project-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}
.project-num {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.project-card h2,
.project-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 600; color: var(--text); }

/* ─── Project solution pages ─── */
.project-solution-heading { margin: 2rem 0 0.75rem; font-size: 1.15rem; font-weight: 600; }
.project-solution-section { margin-bottom: 1.5rem; }
.project-solution-note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.project-solution-disclaimer { margin: 1rem 0 1.5rem; }
.project-solution-link { margin-bottom: 1.5rem; }
.project-solution-back { margin-top: 2rem; }
.page-lead { color: var(--text-muted); margin-top: 0.35rem; }
.deliverable-list { list-style: none; padding: 0; margin: 0; }
.deliverable-item { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.deliverable-item p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.9rem; }
.deliverable-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-right: 0.5rem;
}
.deliverable-badge.required { background: rgba(56, 189, 248, 0.15); color: var(--accent); }
.deliverable-badge.optional { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }
.project-deliverable-note { margin-top: 1rem; }
.project-demo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: var(--bg-card);
  margin-top: 0.75rem;
}
.project-demo-title { margin: 0 0 0.5rem; font-size: 1rem; }
.project-demo-hint { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 0.75rem; }
.project-demo-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.project-demo-input {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  min-width: 8rem;
}
.project-demo-input-wide { min-width: 100%; flex: 1; }
.project-demo-feedback { margin: 0.75rem 0 0; font-size: 0.9rem; }
.project-demo-error { color: #f87171; }
.project-demo-list { list-style: none; padding: 0; margin: 0; }
.project-demo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.project-demo-list li.done { opacity: 0.6; text-decoration: line-through; }
.project-demo-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.75rem; }
.project-demo-table th, .project-demo-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); }
.project-demo-tabs { display: flex; gap: 0.35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.project-demo-log, .project-demo-textarea {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  width: 100%;
  color: var(--text);
}
.project-demo-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* Project game demos (hjemmespil m.fl.) */
.project-demo-game-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.project-demo-game-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.project-demo-game-hub-intro { margin-bottom: 1rem; }
.project-demo-tabs--games { gap: 0.5rem; }
.project-demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.project-demo-tab:hover { border-color: var(--accent); color: var(--text); }
.project-demo-tab--active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}
.project-demo-tab-icon { font-size: 1rem; line-height: 1; }
.project-demo-game-panel { padding-top: 0.25rem; }
.project-demo-panel-lead {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.project-demo-row--center { justify-content: center; }
.project-demo-input-guess {
  min-width: 5.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}
.project-demo-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.45;
}
.project-demo-banner--success {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: var(--text);
}
.project-demo-banner--info {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
}
.project-demo-banner--warn {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
}
.project-demo-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}
.project-demo-stat {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.project-demo-stat--win strong { color: #22c55e; }
.project-demo-stat--loss strong { color: #f87171; }
.project-demo-stat--highlight strong { color: var(--accent); }
.project-demo-history { margin-top: 1rem; }
.project-demo-history-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.project-demo-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-demo-history-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.project-demo-history-arrow {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}
.project-demo-history-chip--low .project-demo-history-arrow { color: #38bdf8; }
.project-demo-history-chip--high .project-demo-history-arrow { color: #fbbf24; }
.project-demo-history-chip--low { border-color: rgba(56, 189, 248, 0.4); }
.project-demo-history-chip--high { border-color: rgba(251, 191, 36, 0.45); }
.project-demo-history-chip--win {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.12);
  font-weight: 700;
}
.project-demo-tip {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.project-demo-rps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.project-demo-rps-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.project-demo-rps-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}
.project-demo-rps-emoji { font-size: 2rem; line-height: 1; }
.project-demo-ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  max-width: 16rem;
  margin: 0 auto 1rem;
}
.project-demo-ttt-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.project-demo-ttt-cell:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.project-demo-ttt-cell:disabled { cursor: default; opacity: 0.95; }
.project-demo-ttt-cell--x { color: #38bdf8; }
.project-demo-ttt-cell--o { color: #f472b6; }

.playground-stdin-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.project-solution-console-intro {
  margin-bottom: 1rem;
}
.project-solution-console-steps {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.project-solution-console-steps li { margin-bottom: 0.35rem; }
.project-solution-scenario {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
  color: var(--text);
}
.project-solution-note-muted {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Konsol-program (skjult kildekode, som .exe) ─── */
.console-app {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.2);
  background: #0c0c0c;
}
.console-app-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
}
.console-app-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #3f3f3f;
}
.console-app-dot:nth-child(1) { background: #f87171; }
.console-app-dot:nth-child(2) { background: #fbbf24; }
.console-app-dot:nth-child(3) { background: #34d399; }
.console-app-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a3a3a3;
  font-weight: 500;
}
.console-app-body {
  padding: 0;
  background: #0a0a0a;
}
.console-app--interactive .playground-terminal {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.console-app--interactive .console-app-toolbar {
  padding: 0.65rem 1rem;
  border-top: 1px solid #222;
  background: #111;
}
.console-app-running-label {
  font-size: 0.85rem;
  color: #a3a3a3;
  font-family: var(--font-mono);
}
.console-app-screen {
  margin: 0;
  min-height: 14rem;
  max-height: 28rem;
  overflow: auto;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  color: #e5e5e5;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0a0a0a;
  border-bottom: 1px solid #222;
}
.console-app-has-run .console-app-screen {
  color: #d4d4d4;
}
.console-app-stdin {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #222;
  background: #111;
}
.console-app-stdin-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #737373;
}
.console-app-stdin-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: #a3a3a3;
  line-height: 1.45;
}
.console-app-stdin-hint code {
  font-size: 0.85em;
  color: #93c5fd;
  background: rgba(56, 189, 248, 0.1);
  border: none;
}
.console-app-stdin-legend {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: #a3a3a3;
  line-height: 1.5;
}
.console-app-stdin-legend li { margin-bottom: 0.25rem; }
.console-app-stdin-var-inline { font-size: 0.75rem; padding: 0.05rem 0.3rem; }
.console-app-stdin-prompt-inline { font-size: 0.78rem; }
.console-app-stdin-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.console-app-stdin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.console-app-stdin-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.console-app-stdin-step {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #525252;
  min-width: 1.25rem;
}
.console-app-stdin-var {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  border: none;
}
.console-app-stdin-var-fallback {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a3a3a3;
}
.console-app-stdin-prompt {
  font-size: 0.78rem;
  color: #a3a3a3;
}
.console-app-stdin-input {
  flex: 1;
  padding: 0.4rem 0.55rem;
  border: 1px solid #333;
  border-radius: var(--radius-sm);
  background: #0a0a0a;
  color: #e5e5e5;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.console-app-stdin-input:focus {
  outline: 2px solid rgba(56, 189, 248, 0.35);
  border-color: #525252;
}
.console-app--stepwise .console-app-scroll {
  max-height: 28rem;
  overflow: auto;
  background: #0a0a0a;
  border-bottom: 1px solid #222;
}
.console-app--stepwise .console-app-screen {
  max-height: none;
  overflow: visible;
  border-bottom: none;
}
.console-app--stepwise .console-app-sent-inputs {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 0.85rem;
  background: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a3e635;
  border-top: none;
}
.console-app--stepwise .console-app-sent-inputs li {
  padding: 0.15rem 0;
}
.console-app-sent-prompt {
  color: #737373;
  margin-right: 0.35rem;
}
.console-app-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid #222;
  background: #111;
}
.console-app-prompt-input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid #333;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.console-app-prompt-input:focus {
  outline: none;
  border-color: #38bdf8;
}
.console-app-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #141414;
}

/* ─── Huskeliste demos ─── */
.huskeliste-demo {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.hl-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-bottom: 1px solid var(--border);
}
.hl-hero-extended {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}
.hl-hero-icon {
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}
.hl-hero-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
}
.hl-hero-title { margin: 0.2rem 0 0; font-size: 1.2rem; font-weight: 700; }
.hl-hero-lead { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--text-muted); max-width: 36rem; }
.hl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 1rem 1.35rem 0;
}
.hl-stats-extended { grid-template-columns: repeat(4, 1fr); }
.hl-stat {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg);
}
.hl-stat-open { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.08); }
.hl-stat-done { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.hl-stat-total { border-color: rgba(148, 163, 184, 0.35); background: rgba(148, 163, 184, 0.06); }
.hl-stat-progress { border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.08); }
.hl-stat-value { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.hl-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hl-progress-bar {
  margin: 0.75rem 1.35rem 0;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.hl-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #34d399);
  transition: width 0.25s ease;
}
.hl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.35rem 0;
}
.hl-filter { min-width: 9rem; flex: 1; }
.hl-form-card {
  margin: 1rem 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
.hl-form-card-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.hl-form-title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hl-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.hl-input {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
}
.hl-input-grow { flex: 1; min-width: 10rem; }
.hl-feedback { margin: 0.5rem 0 0; font-size: 0.85rem; }
.hl-feedback--success { color: #4ade80; }
.hl-list-wrap { padding: 0 1.35rem 1.25rem; }
.hl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hl-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.hl-item:last-child { border-bottom: none; }
.hl-item--done .hl-item-text {
  opacity: 0.55;
  text-decoration: line-through;
}
.hl-item-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
}
.hl-item-text { flex: 1; font-size: 0.92rem; }
.hl-check-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  cursor: pointer;
}
.hl-checkbox { width: 1rem; height: 1rem; accent-color: #22c55e; }
.hl-empty {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.hl-tip {
  margin: 0;
  padding: 0.85rem 1.35rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Bibliotek demos ─── */
.bibliotek-demo {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.bib-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.08) 100%);
  border-bottom: 1px solid var(--border);
}
.bib-hero-extended {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(217, 119, 6, 0.1) 100%);
}
.bib-hero-icon {
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}
.bib-hero-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
}
.bib-hero-title { margin: 0.2rem 0 0; font-size: 1.2rem; font-weight: 700; }
.bib-hero-lead { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--text-muted); max-width: 36rem; }
.bib-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 1rem 1.35rem 0;
}
.bib-stats-extended { grid-template-columns: repeat(3, 1fr); }
.bib-stat {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg);
}
.bib-stat-available { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.bib-stat-loaned { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.bib-stat-total { border-color: rgba(148, 163, 184, 0.35); background: rgba(148, 163, 184, 0.06); }
.bib-stat-value { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.bib-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.bib-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.35rem 0;
}
.bib-search-wrap {
  flex: 1;
  min-width: 12rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.bib-search-icon { color: var(--text-muted); font-size: 0.95rem; }
.bib-search { border: none; background: transparent; padding: 0.5rem 0; flex: 1; min-width: 0; }
.bib-filter { min-width: 9rem; flex: 0 1 auto; }
.bib-form-card {
  margin: 1rem 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
.bib-form-title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bib-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.bib-input {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
}
.bib-list-wrap { padding: 0 1.35rem 1.25rem; }
.bib-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.bib-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.bib-item:last-child { border-bottom: none; }
.bib-item--loaned { background: rgba(251, 191, 36, 0.04); }
.bib-item-main {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  min-width: 10rem;
}
.bib-item-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.bib-item-title { display: block; font-size: 0.95rem; }
.bib-item-author {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.bib-item-borrower {
  display: block;
  font-size: 0.8rem;
  color: #fbbf24;
  margin-top: 0.25rem;
}
.bib-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bib-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.bib-badge--available {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.bib-badge--loaned {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.bib-empty {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.bib-feedback {
  margin: 0 1.35rem 0.75rem;
  font-size: 0.85rem;
}
.bib-feedback--info { color: #38bdf8; }
.bib-tip {
  margin: 0;
  padding: 0.85rem 1.35rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Log-parser demos ─── */
.log-parser-demo {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.lp-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-bottom: 1px solid var(--border);
}
.lp-hero-extended {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.1) 100%);
}
.lp-hero-icon {
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}
.lp-hero-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #818cf8;
}
.lp-hero-title { margin: 0.2rem 0 0; font-size: 1.2rem; font-weight: 700; }
.lp-hero-lead { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--text-muted); max-width: 38rem; }
.lp-downloads {
  padding: 0.85rem 1.35rem 0;
}
.lp-downloads-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.lp-downloads-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.lp-download-btn { font-family: var(--font-mono); font-size: 0.8rem; }
.lp-download-ext {
  opacity: 0.7;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-right: 0.2rem;
}
.lp-format-tabs { padding: 0.85rem 1.35rem 0; }
.lp-file-panel {
  margin: 1rem 1.35rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}
.lp-file-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.lp-file-name { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; }
.lp-file-meta { font-size: 0.78rem; color: var(--text-muted); }
.lp-log-preview {
  margin: 0;
  padding: 0.85rem;
  max-height: 12rem;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #d4d4d4;
  white-space: pre-wrap;
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem 0;
}
.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 0.85rem 1.35rem 0;
}
.lp-stat {
  padding: 0.7rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
}
.lp-stat-info { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.3); }
.lp-stat-warn { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); }
.lp-stat-error { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.3); }
.lp-stat-value { display: block; font-size: 1.4rem; font-weight: 700; }
.lp-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.lp-report {
  margin: 0.85rem 1.35rem 0;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.lp-compare {
  margin: 1rem 1.35rem 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.1);
}
.lp-form-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.lp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.65rem;
}
.lp-compare-table th,
.lp-compare-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.lp-muted { margin: 0; padding: 0.85rem; color: var(--text-muted); font-size: 0.88rem; }
.lp-tip {
  margin: 0;
  padding: 0.85rem 1.35rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.lp-solution-downloads {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .lp-solution-downloads { grid-template-columns: repeat(3, 1fr); }
}
.lp-solution-download-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.lp-solution-download-link:hover {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.08);
}
.lp-solution-download-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: #a5b4fc;
}
.lp-solution-download-desc { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Jobsøgning-tracker demos ─── */
.job-tracker-demo {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.jt-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.jt-hero-extended {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(56, 189, 248, 0.1) 100%);
}
.jt-hero-icon {
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}
.jt-hero-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.jt-hero-title { margin: 0.2rem 0 0; font-size: 1.2rem; font-weight: 700; }
.jt-hero-lead { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--text-muted); max-width: 36rem; }
.jt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 1rem 1.35rem 0;
}
.jt-stats-compact { grid-template-columns: repeat(4, 1fr); }
.jt-stat {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg);
}
.jt-stat-applied { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.jt-stat-waiting { border-color: rgba(250, 204, 21, 0.35); background: rgba(250, 204, 21, 0.08); }
.jt-stat-rejected { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.jt-stat-total { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.06); }
.jt-stat-value { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.jt-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.jt-form-card {
  margin: 1rem 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.jt-form-card-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.jt-form-title { margin: 0 0 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.jt-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.jt-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: var(--text-muted); }
.jt-input {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
}
.jt-input:focus { outline: 2px solid rgba(56, 189, 248, 0.4); border-color: var(--accent); }
.jt-list { padding: 0 1.35rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.jt-job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.15s, transform 0.15s;
}
.jt-job-card:hover { border-color: rgba(56, 189, 248, 0.35); transform: translateX(2px); }
.jt-job-main { display: flex; flex-direction: column; gap: 0.15rem; }
.jt-job-company { font-size: 0.95rem; }
.jt-job-title { font-size: 0.85rem; color: var(--text-muted); }
.jt-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.jt-badge-applied { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.jt-badge-waiting { background: rgba(250, 204, 21, 0.2); color: #facc15; }
.jt-badge-rejected { background: rgba(248, 113, 113, 0.2); color: #f87171; }
.jt-empty, .jt-empty-cell { color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 1rem; }
.jt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0 1.35rem 0.5rem;
  align-items: center;
}
.jt-search-wrap { position: relative; flex: 1; min-width: 12rem; }
.jt-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.jt-search { width: 100%; padding-left: 2rem; }
.jt-filter { min-width: 9rem; }
.jt-table-wrap { padding: 0 1.35rem 1rem; overflow-x: auto; }
.jt-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.jt-table th {
  text-align: left;
  padding: 0.5rem 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.jt-table td { padding: 0.65rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.jt-table tbody tr:hover { background: rgba(56, 189, 248, 0.04); }
.jt-status-select {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.jt-muted { color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }
.jt-footer-hint {
  margin: 0;
  padding: 0.75rem 1.35rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
@media (max-width: 640px) {
  .jt-stats, .jt-stats-compact { grid-template-columns: repeat(2, 1fr); }
  .jt-hero { flex-direction: column; }
}
.project-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; flex: 1; }
.project-arrow { margin-top: 0.75rem; font-size: 0.85rem; font-weight: 500; color: var(--accent); }

/* ═══════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════ */
.landing-shell { min-height: 100vh; display: flex; flex-direction: column; }
.landing-main { flex: 1; }

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
}
.landing-hero--vc .landing-hero-bg {
  background:
    radial-gradient(ellipse 90% 70% at 10% -5%, rgba(24, 138, 156, 0.22), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(24, 138, 156, 0.12), transparent),
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--hero-glow-a), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, var(--hero-glow-b), transparent);
}
.landing-hero--vc .landing-gradient-text {
  background: linear-gradient(135deg, #188a9c 0%, #0ea5e9 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-hero--vc .landing-badge {
  background: rgba(24, 138, 156, 0.12);
  border-color: rgba(24, 138, 156, 0.35);
  color: #188a9c;
}
:root[data-theme="dark"] .landing-hero--vc .landing-badge,
:root[data-theme="dos"] .landing-hero--vc .landing-badge {
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(24, 138, 156, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .landing-hero--vc .landing-badge {
    color: #5eead4;
    border-color: rgba(94, 234, 212, 0.35);
    background: rgba(24, 138, 156, 0.18);
  }
}
.landing-vc-hero { margin: 0 0 1.35rem; }
.landing-vc-hero-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 100%;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24, 138, 156, 0.35);
  background: linear-gradient(145deg, rgba(24, 138, 156, 0.14) 0%, rgba(24, 138, 156, 0.06) 100%);
  box-shadow: 0 8px 32px rgba(24, 138, 156, 0.12);
}
.landing-vc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.landing-vc-hero-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.landing-vc-hero-kicker--accent { color: #188a9c; }
:root[data-theme="dark"] .landing-vc-hero-kicker--accent,
:root[data-theme="dos"] .landing-vc-hero-kicker--accent { color: #5eead4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .landing-vc-hero-kicker--accent { color: #5eead4; }
}
.landing-vc-hero-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: rgba(24, 138, 156, 0.55);
}
.landing-vc-hero-logos.videnscenter-branding--hero .videnscenter-logo--vat { max-height: 3.5rem; }
.landing-vc-hero-logos.videnscenter-branding--hero .videnscenter-logo--portal { max-height: 2.5rem; }
.landing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--hero-glow-a), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, var(--hero-glow-b), transparent);
  pointer-events: none;
}
.landing-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--layout-max);
  margin: 0 auto;
}
.landing-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.landing-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.landing-gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 32rem;
}
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.landing-welcome { color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem 0 0; }
.landing-welcome strong { color: var(--accent-teal); }

.landing-code-window {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  background: var(--code-bg);
}
.landing-code-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.landing-code-titlebar span:first-child,
.landing-code-titlebar span:nth-child(2),
.landing-code-titlebar span:nth-child(3) {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--border-strong);
}
.landing-code-titlebar span:first-child { background: #f87171; }
.landing-code-titlebar span:nth-child(2) { background: #fbbf24; }
.landing-code-titlebar span:nth-child(3) { background: #34d399; }
.landing-code-filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.landing-code-body {
  margin: 0;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
}
.tok-kw { color: #c792ea; }
.tok-type { color: #82aaff; }
.tok-fn { color: #82aaff; }
.tok-str { color: #c3e88d; }

/* Stats */
.landing-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2rem 1.5rem;
}
.landing-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: var(--layout-max);
  margin: 0 auto;
  text-align: center;
}
.stat-card { padding: 0.5rem; }
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

/* Målpinde */
.landing-maalpinde {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}
.landing-maalpinde .landing-section-header a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.landing-maalpinde .landing-section-header a:hover {
  color: var(--accent-secondary);
}
.maalpind-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.maalpind-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.maalpind-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
}
.maalpind-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}
.maalpind-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.maalpind-where {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-teal);
}

/* Pathways */
.landing-pathways,
.landing-journey,
.landing-features {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.landing-section-header { margin-bottom: 2rem; }
.landing-section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.landing-section-header p { color: var(--text-muted); margin: 0; font-size: 1rem; }

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pathway-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.pathway-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.2s;
}
.pathway-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}
.pathway-card:hover::before { opacity: 1; }
.pathway-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.pathway-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; }
.pathway-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; flex: 1; line-height: 1.55; }
.pathway-meta {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}
.pathway-arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  font-size: 1.25rem;
  color: var(--text-dim);
  transition: color 0.15s, transform 0.15s;
}
.pathway-card:hover .pathway-arrow { color: var(--accent); transform: translateX(3px); }

/* Journey */
.landing-journey { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); max-width: none; }
.landing-journey .landing-section-header,
.landing-journey .journey-steps { max-width: var(--layout-max); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.journey-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.journey-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}
.journey-step h3 { margin: 0 0 0.25rem; font-size: 0.95rem; font-weight: 600; }
.journey-step p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

/* Features */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.landing-features-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.feature-item h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 600; color: var(--accent-teal); }
.feature-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.feature-item--vc {
  border-color: rgba(24, 138, 156, 0.35);
  background: linear-gradient(160deg, rgba(24, 138, 156, 0.1) 0%, var(--bg-card) 100%);
}
.feature-item-vc-mark {
  margin-bottom: 0.85rem;
}
.feature-item-vc-mark .videnscenter-branding--footer .videnscenter-logo--vat { max-height: 2.35rem; }

/* CTA */
.landing-cta {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}
.landing-cta--vc {
  background:
    linear-gradient(180deg, transparent 0%, rgba(24, 138, 156, 0.08) 100%),
    var(--bg);
}
.landing-cta--vc .landing-cta-inner {
  border-color: rgba(24, 138, 156, 0.28);
  background: linear-gradient(135deg, rgba(24, 138, 156, 0.1), rgba(14, 165, 233, 0.06));
}
.landing-cta-vc-logos {
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.landing-cta--vc .videnscenter-branding--footer .videnscenter-logo--vat { max-height: 2.75rem; }
.landing-cta--vc .videnscenter-branding--footer .videnscenter-logo--portal { max-height: 2rem; }
.landing-cta-inner {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(167, 139, 250, 0.06));
}
.landing-cta h2 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 700; }
.landing-cta p { color: var(--text-muted); margin: 0 0 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 0 1.5rem 1.5rem;
}
.site-footer-vat-bar {
  background: linear-gradient(135deg, #188a9c 0%, #147a8a 100%);
  margin: 0 -1.5rem 2rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer-vat-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: var(--layout-max);
  margin: 0 auto;
}
.site-footer-vat-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.site-footer-vat-bar .videnscenter-logo--light { display: none !important; }
.site-footer-vat-bar .videnscenter-logo--dark { display: block !important; }
.site-footer-vat-bar .videnscenter-logo--vat { max-height: 3.25rem; }
.site-footer-vat-bar .videnscenter-logo--portal { max-height: 2.35rem; opacity: 0.95; }
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--layout-max);
  margin: 0 auto 1.5rem;
}
.site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 20rem;
}
.site-footer-gf2 {
  color: var(--text);
  text-decoration: none;
}
.site-footer-gf2:hover { text-decoration: none; opacity: 0.9; }
.site-footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}
.site-footer-brand p a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer-brand p a:hover { color: var(--accent); }
.site-footer-links { display: flex; gap: 3rem; }
.site-footer-links div { display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin: 0 0 0.25rem; }
.site-footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.site-footer-links a:hover { color: var(--accent); text-decoration: none; }
.site-footer-copy {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}
.site-footer-copy a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer-copy a:hover { color: var(--accent); }
.videnscenter-branding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}
.videnscenter-branding--header .videnscenter-logo--vat { max-height: 2.35rem; }
.videnscenter-branding--header .videnscenter-logo--portal { max-height: 1.65rem; opacity: 0.92; }
.videnscenter-branding--hero .videnscenter-logo--vat { max-height: 3.5rem; }
.videnscenter-branding--hero .videnscenter-logo--portal { max-height: 2.5rem; opacity: 0.95; }
.videnscenter-branding--footer .videnscenter-logo--vat { max-height: 3rem; }
.videnscenter-branding--footer .videnscenter-logo--portal { max-height: 2.15rem; opacity: 0.92; }
.videnscenter-branding--deck .videnscenter-logo--vat { max-height: 2.15rem; }
.videnscenter-branding--deck .videnscenter-logo--portal { max-height: 1.5rem; opacity: 0.92; }
.videnscenter-logo-link,
.videnscenter-logo-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.videnscenter-logo-link:hover { opacity: 0.9; }
.videnscenter-logo-mark { cursor: default; }
.videnscenter-logo {
  display: block;
  width: auto;
  max-width: min(100%, 20rem);
  height: auto;
}
.videnscenter-logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .videnscenter-logo--light { display: none; }
  :root:not([data-theme="light"]) .videnscenter-logo--dark { display: block; }
}
:root[data-theme="dark"] .videnscenter-logo--light,
:root[data-theme="dos"] .videnscenter-logo--light { display: none; }
:root[data-theme="dark"] .videnscenter-logo--dark,
:root[data-theme="dos"] .videnscenter-logo--dark { display: block; }
:root[data-theme="light"] .videnscenter-logo--light { display: block; }
:root[data-theme="light"] .videnscenter-logo--dark { display: none; }

/* ─── Content meta & markdown ─── */
.content-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; }
.meta-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}
.meta-chip-level { border-color: rgba(56, 189, 248, 0.3); color: var(--accent); background: var(--accent-glow); }

.learning-goals {
  margin: 0 0 2.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--accent-glow), var(--bg-card) 55%);
  box-shadow: var(--shadow-sm);
}
.learning-goals-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.learning-goals-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 1.2rem;
  line-height: 1;
}
.learning-goals-heading-wrap { min-width: 0; }
.learning-goals-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.learning-goals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.learning-goals-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.learning-goals-check {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  position: relative;
}
.learning-goals-check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0.32rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ─── Curriculum pages ─── */
.curriculum-page {
  max-width: 44rem;
}
.curriculum-header {
  margin-bottom: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.curriculum-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.35rem 0 0.75rem;
}
.curriculum-content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}
.curriculum-content > h1:first-child {
  display: none;
}
.curriculum-content > p:first-of-type {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border);
}
.curriculum-content h2 {
  margin: 2.75rem 0 1rem;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, var(--accent-glow), transparent 70%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.curriculum-content h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-teal);
}
.curriculum-content p { margin: 0 0 1.1rem; }
.curriculum-content ul,
.curriculum-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}
.curriculum-content li {
  margin-bottom: 0.45rem;
  padding-left: 0.25rem;
}
.curriculum-content li::marker { color: var(--accent); }
.curriculum-content strong { color: var(--text); font-weight: 600; }
.curriculum-content table {
  width: 100%;
  margin: 1.25rem 0 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.92rem;
}
.curriculum-content th,
.curriculum-content td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.curriculum-content th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text);
}
.curriculum-content tr:last-child td { border-bottom: none; }
.curriculum-content tr:nth-child(even) td { background: var(--accent-glow); }
.curriculum-content :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border);
  color: var(--accent);
}

.code-block {
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--code-bg);
}
.code-block-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.code-block-dots {
  display: flex;
  gap: 0.35rem;
}
.code-block-dots span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--border-strong);
}
.code-block-dots span:nth-child(1) { background: #f87171; }
.code-block-dots span:nth-child(2) { background: #fbbf24; }
.code-block-dots span:nth-child(3) { background: #34d399; }
.code-block-lang {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.code-block-copy {
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.code-block-copy:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.code-block pre {
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow-x: auto;
}
.code-block pre code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  background: none;
  border: none;
  padding: 0;
}
.code-block pre code:not(.hljs) {
  color: var(--text);
}

/* Fallback token colors when hljs theme stylesheet is slow or unavailable */
:root[data-theme="dark"] .code-block pre code.hljs .hljs-keyword,
:root:not([data-theme="light"]) .code-block pre code.hljs .hljs-keyword {
  color: #ff7b72;
}
:root[data-theme="dark"] .code-block pre code.hljs .hljs-string,
:root:not([data-theme="light"]) .code-block pre code.hljs .hljs-string {
  color: #a5d6ff;
}
:root[data-theme="dark"] .code-block pre code.hljs .hljs-comment,
:root:not([data-theme="light"]) .code-block pre code.hljs .hljs-comment {
  color: #8b949e;
}
:root[data-theme="dark"] .code-block pre code.hljs .hljs-number,
:root:not([data-theme="light"]) .code-block pre code.hljs .hljs-number {
  color: #79c0ff;
}
:root[data-theme="dark"] .code-block pre code.hljs .hljs-built_in,
:root:not([data-theme="light"]) .code-block pre code.hljs .hljs-built_in {
  color: #ffa657;
}
:root[data-theme="light"] .code-block pre code.hljs .hljs-keyword { color: #cf222e; }
:root[data-theme="light"] .code-block pre code.hljs .hljs-string { color: #0a3069; }
:root[data-theme="light"] .code-block pre code.hljs .hljs-comment { color: #57606a; }
:root[data-theme="light"] .code-block pre code.hljs .hljs-number { color: #0550ae; }
:root[data-theme="light"] .code-block pre code.hljs .hljs-built_in { color: #953800; }

/* Fallback base color if light hljs theme is active in dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .code-block pre code.hljs {
    color: #c9d1d9;
  }
}
:root[data-theme="dark"] .code-block pre code.hljs {
  color: #c9d1d9;
}
.curriculum-content .callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border-left-width: 4px;
}
.curriculum-content .git-step {
  margin: 2rem 0 0;
  border-radius: var(--radius-md);
}

.knowledge-check {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(45, 212, 191, 0.04));
}
.curriculum-content .knowledge-check ul.kc-options {
  margin: 0;
  padding: 0;
  list-style: none;
}
.curriculum-content .knowledge-check .kc-options > li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kc-heading {
  margin: 0 0 1.25rem !important;
  font-size: 1.35rem !important;
  color: var(--accent) !important;
}
.kc-progress {
  margin: -0.75rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.kc-login-hint {
  margin: -0.5rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.kc-question {
  padding: 1.15rem 0;
  border-top: 1px solid var(--border);
}
.kc-question:first-of-type {
  border-top: none;
  padding-top: 0;
}
.kc-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-teal);
  margin: 0 0 0.5rem;
}
.kc-prompt {
  margin: 0 0 0.85rem;
  font-weight: 500;
  line-height: 1.55;
}
.kc-prompt p { margin: 0; }
.kc-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.kc-option {
  display: block;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.kc-option p {
  margin: 0;
  display: inline;
}
.kc-option:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-1px);
}
.kc-option:disabled { cursor: default; opacity: 1; }
.kc-option.kc-correct {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.1);
}
.kc-option.kc-wrong {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.08);
}
.kc-feedback {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.kc-verdict {
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.kc-verdict-ok { color: #22c55e; }
.kc-verdict-no { color: #f87171; }
.kc-explanation {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}
.kc-explanation p { margin: 0; }
.kc-reset {
  margin-top: 0.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.kc-reset:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text);
}
.kc-reset:disabled {
  cursor: wait;
  opacity: 0.7;
}

.curriculum-index .index-list { gap: 0.65rem; }
.curriculum-index .index-item {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.curriculum-index .index-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.curriculum-index .index-order {
  font-size: 0.85rem;
  min-width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.markdown-body h2 { font-size: 1.25rem; color: var(--accent); font-weight: 600; }
.markdown-body p, .markdown-body li { color: var(--text); }
.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 0.3rem;
  border: 1px solid var(--border);
}
.markdown-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
}
.markdown-body pre code { background: none; border: none; padding: 0; }

.callout {
  border-left: 3px solid var(--info);
  background: rgba(96, 165, 250, 0.06);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1rem 0;
}
.callout-warning { border-left-color: var(--warning); background: rgba(251, 191, 36, 0.06); }

.git-step {
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  background: rgba(251, 191, 36, 0.04);
}
.git-step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--warning);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.exercise-progress-summary {
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
}
.exercise-login-hint {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.exercise-part {
  margin: 1.25rem 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
}
.exercise-part:last-child { border-bottom: none; }
.exercise-part-complete .exercise-card {
  border-color: rgba(34, 197, 94, 0.35);
}
.exercise-part-complete .exercise-save-panel {
  border-color: rgba(34, 197, 94, 0.25);
}
.exercise-card {
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 0 0 0.75rem;
  background: rgba(45, 212, 191, 0.04);
}
.exercise-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-teal);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.exercise-part-badge {
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
}
.exercise-part-ide .exercise-card {
  margin-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.exercise-ide-playground {
  margin: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: none;
  overflow: hidden;
}
.exercise-part-ide {
  overflow: hidden;
}
.exercise-page {
  position: relative;
}
.exercise-page-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 14rem;
  padding: 2rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.exercise-page-loader-text {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.exercise-page-loader-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.exercise-page--pending .exercise-page-body {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.exercise-page--ready .exercise-page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.exercise-page--ready .exercise-page-body {
  opacity: 1;
  transition: opacity 0.32s ease;
}
.exercise-page--timeout .exercise-page-loader-hint::after {
  content: " — nogle editorer kunne ikke indlæses. Prøv at genindlæse siden.";
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--warning);
}
.gf2-spinner {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gf2-spin 0.75s linear infinite;
}
.gf2-spinner-lg {
  width: 2.25rem;
  height: 2.25rem;
  border-width: 3px;
}
@keyframes gf2-spin {
  to {
    transform: rotate(360deg);
  }
}
.exercise-ide-playground .playground-title {
  color: var(--accent-teal);
}
.playground-header-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.playground-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.playground-icon-btn:hover:not(:disabled) {
  background: var(--bg-card);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}
.playground-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.playground-icon-btn .gf2-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border-width: 2px;
}
.playground-icon-btn-run {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.playground-icon-btn-run:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 88%, #fff);
  border-color: transparent;
  color: #fff;
}
.playground-icon-btn-save.playground-icon-btn-saved {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}
.playground-editor-host-exercise {
  min-height: 8.5rem;
  height: auto;
  transition: height 0.12s ease-out;
}
.exercise-ide-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.exercise-ide-footer-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 2rem;
}
.exercise-ide-bar-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.exercise-ide-bar-ai {
  margin-left: auto;
}
.exercise-ide-bar-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.exercise-ide-bar-select {
  height: 2rem;
  min-width: 9.5rem;
  max-width: 14rem;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.exercise-ide-bar-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.exercise-ide-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 2rem;
  padding: 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.exercise-ide-bar-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
.exercise-ide-bar-btn .gf2-spinner {
  width: 0.85rem;
  height: 0.85rem;
  border-width: 2px;
}
.exercise-ide-bar-btn:hover:not(:disabled) {
  background: var(--bg-card);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.exercise-ide-bar-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.exercise-ide-bar-btn-ai,
.exercise-ide-bar-btn-clippy {
  border-color: rgba(34, 211, 238, 0.28);
  color: var(--accent-teal);
}
.exercise-ide-bar-btn-ai:hover:not(:disabled),
.exercise-ide-bar-btn-clippy:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--accent-teal);
}
.exercise-ide-bar-btn-clippy img {
  flex-shrink: 0;
}
.exercise-ide-clippy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 600;
}
.clippy-speech {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.clippy-speech-avatar,
.clippy-inline-icon {
  flex-shrink: 0;
  object-fit: contain;
}
.clippy-speech-avatar {
  margin-top: 0.1rem;
}
.clippy-speech-bubble {
  min-width: 0;
  flex: 1;
}
.clippy-speech-name {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.clippy-speech-title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.clippy-speech-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--text-muted);
}
.clippy-speech-hint {
  border-color: rgba(34, 211, 238, 0.3);
}
.clippy-speech-hint .clippy-speech-title {
  color: var(--accent-teal);
}
.clippy-speech-ok {
  border-color: rgba(34, 197, 94, 0.4);
}
.clippy-speech-ok .clippy-speech-title {
  color: #4ade80;
}
.clippy-speech-warn {
  border-color: rgba(251, 191, 36, 0.35);
}
.clippy-speech-warn .clippy-speech-title {
  color: #fbbf24;
}
.exercise-ai-panel {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.exercise-ai-panel-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.exercise-ai-panel-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.exercise-ai-panel-hint {
  border-color: rgba(34, 211, 238, 0.3);
}
.exercise-ai-panel-ok {
  border-color: rgba(34, 197, 94, 0.4);
}
.exercise-ai-panel-ok .exercise-ai-panel-label {
  color: #4ade80;
}
.exercise-ai-panel-warn {
  border-color: rgba(251, 191, 36, 0.35);
}
.exercise-ai-panel-warn .exercise-ai-panel-label {
  color: #fbbf24;
}
.exercise-ide-save-error {
  font-size: 0.82rem;
  color: #f87171;
}
.playground-footer {
  margin: 0;
  padding: 0;
}
.exercise-save-panel {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.exercise-save-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.exercise-answer-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 5rem;
}
.exercise-answer-input:focus {
  outline: 2px solid rgba(56, 189, 248, 0.35);
  border-color: var(--accent);
}
.exercise-save-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.exercise-saved-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4ade80;
}
.index-check {
  margin-left: auto;
  color: #4ade80;
  font-weight: 700;
  font-size: 0.9rem;
}

.solution {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin: 1rem 0;
  background: var(--bg-card);
}
.solution summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--warning);
}

.code-playground {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 1rem 0;
  overflow: hidden;
}
.playground-code {
  margin: 0;
  padding: 1rem;
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.playground-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.playground-toolbar button, .playground-toolbar a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.playground-expected {
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.code-playground-interactive {
  background: var(--bg-card);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.exercise-ide-playground {
  min-width: 0;
}
.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.playground-header .playground-header-toolbar {
  margin-left: auto;
}
.playground-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.playground-editor-host {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: block;
  min-height: 12rem;
  height: auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--code-bg);
  transition: height 0.12s ease-out;
}
.playground-editor-host-loading {
  min-height: 8.5rem;
  color: transparent;
  caret-color: transparent;
}
.playground-editor-host-loading:not(:has(.monaco-editor)) {
  overflow: hidden;
}
.playground-editor-host-loading:not(:has(.monaco-editor))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 8%, transparent) 45%,
    transparent 90%
  );
  background-size: 200% 100%;
  animation: gf2-editor-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}
.playground-editor-host-loading:not(:has(.monaco-editor))::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gf2-spin 0.75s linear infinite;
  pointer-events: none;
}
@keyframes gf2-editor-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.playground-editor-host .monaco-editor,
.playground-editor-host .monaco-editor-background,
.playground-editor-host .monaco-editor .overflow-guard {
  width: 100% !important;
  max-width: 100%;
}
.playground-editor-host .monaco-editor .margin,
.playground-editor-host .monaco-editor .monaco-scrollable-element {
  width: 100% !important;
}
.playground-editor-host-compact {
  min-height: 9rem;
  height: auto;
}
.code-playground-readonly .playground-header-unified {
  border-bottom: 1px solid var(--border);
}
.curriculum-runnable-playground {
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--code-bg);
}
.curriculum-runnable-playground .playground-header-unified {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.curriculum-runnable-playground .playground-title {
  color: var(--text-muted);
}
.curriculum-runnable-playground .playground-editor-host-compact {
  min-height: 9rem;
}
.playground-header-unified .playground-header-start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.playground-header-unified .code-block-lang {
  margin-left: 0.15rem;
}
.code-playground-readonly .btn-primary.btn-sm {
  font-size: 0.8rem;
}
.runnable-code-display {
  margin: 0;
  padding: 1rem;
  background: var(--code-bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
}
.runnable-code-display code {
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}
.runnable-code-display code:not(.hljs) {
  color: var(--text);
}
.runnable-code-display code.hljs {
  background: none;
}
:root:not([data-theme="light"]) .runnable-code-display code.hljs,
:root[data-theme="dark"] .runnable-code-display code.hljs {
  color: #e6edf3;
}
:root[data-theme="dark"] .runnable-code-display code.hljs .hljs-keyword,
:root:not([data-theme="light"]) .runnable-code-display code.hljs .hljs-keyword {
  color: #ff7b72;
}
:root[data-theme="dark"] .runnable-code-display code.hljs .hljs-string,
:root:not([data-theme="light"]) .runnable-code-display code.hljs .hljs-string {
  color: #a5d6ff;
}
:root[data-theme="dark"] .runnable-code-display code.hljs .hljs-comment,
:root:not([data-theme="light"]) .runnable-code-display code.hljs .hljs-comment {
  color: #8b949e;
}
:root[data-theme="dark"] .runnable-code-display code.hljs .hljs-number,
:root:not([data-theme="light"]) .runnable-code-display code.hljs .hljs-number {
  color: #79c0ff;
}
:root[data-theme="dark"] .runnable-code-display code.hljs .hljs-built_in,
:root:not([data-theme="light"]) .runnable-code-display code.hljs .hljs-built_in {
  color: #ffa657;
}
:root[data-theme="light"] .runnable-code-display code.hljs .hljs-keyword { color: #cf222e; }
:root[data-theme="light"] .runnable-code-display code.hljs .hljs-string { color: #0a3069; }
:root[data-theme="light"] .runnable-code-display code.hljs .hljs-comment { color: #57606a; }
:root[data-theme="light"] .runnable-code-display code.hljs .hljs-number { color: #0550ae; }
:root[data-theme="light"] .runnable-code-display code.hljs .hljs-built_in { color: #953800; }
.playground-editor-host .monaco-editor,
.playground-editor-host .monaco-editor .overflow-guard {
  border-radius: 0;
}
.playground-output-panel {
  border-top: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
}
.playground-output-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.playground-output {
  margin: 0;
  padding: 0.75rem;
  background: var(--code-bg);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.playground-output-muted {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.playground-output-error {
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.playground-output-ok {
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.playground-output-warn {
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.playground-expected-ok {
  background: rgba(52, 211, 153, 0.06);
  border-color: rgba(52, 211, 153, 0.35);
}
.playground-expected-fail {
  background: rgba(248, 113, 113, 0.06);
  border-color: rgba(248, 113, 113, 0.35);
}
.playground-expected-label {
  font-weight: 600;
  margin-right: 0.5rem;
}
.playground-match-badge {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.playground-match-ok { color: #34d399; }
.playground-match-fail { color: #f87171; }
.playground-elapsed {
  margin: 0;
  padding: 0 0.75rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.related-pensum {
  margin: 1.5rem 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}
.related-label { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.35rem; font-weight: 500; }

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-list {
  margin: 2.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.video-list-header {
  margin-bottom: 1rem;
}
.video-list-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.video-list .video-list-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 1.1rem;
}
.video-list-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.video-card {
  min-width: 0;
}
.video-card .video-embed {
  margin: 0 0 0.7rem;
  background: #050816;
}
.video-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
}

/* Profile & auth */
.profile-page { max-width: 40rem; margin: 0 auto; padding: 2rem 1.5rem; }
.profile-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}
.profile-avatar-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent-secondary));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.profile-list { margin: 0; }
.profile-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.profile-row:last-child { border-bottom: none; }
.profile-row dt { color: var(--text-muted); font-size: 0.85rem; }
.profile-row dd { margin: 0; }
.profile-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

.theme-settings { margin-top: 1rem; }
.theme-settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.theme-settings-heading h2 { margin: 0.1rem 0 0; font-size: 1.1rem; }
.theme-settings-heading p {
  max-width: 18rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: right;
}
.theme-settings-eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.theme-option {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 0.55rem;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.theme-option:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.theme-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-option.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.theme-option-preview {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: calc(var(--radius-sm) / 2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.theme-option-preview-light { color: #0369a1; background: #f4f6fa; }
.theme-option-preview-dark { color: #7dd3fc; background: #09090f; }
.theme-option-preview-dos {
  color: #8dff9d;
  background: repeating-linear-gradient(to bottom, #020604 0, #020604 3px, #07140b 4px);
  border-color: rgba(112, 255, 135, 0.35);
  text-shadow: 0 0 6px rgba(112, 255, 135, 0.55);
}
.theme-option-copy { display: flex; flex-direction: column; line-height: 1.35; }
.theme-option-copy strong { font-size: 0.88rem; }
.theme-option-copy small { color: var(--text-muted); font-size: 0.72rem; }
.theme-option-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: none;
  padding: 0.1rem 0.3rem;
  color: var(--btn-primary-fg);
  border-radius: var(--radius-sm);
  background: var(--accent);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.theme-option.is-selected .theme-option-check { display: inline-flex; }
.theme-settings-status {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

:root[data-theme="dos"] .theme-option:hover { transform: none; }
:root[data-theme="dos"] .theme-option.is-selected {
  box-shadow: inset 0 0 18px rgba(76, 255, 112, 0.06), 0 0 12px rgba(76, 255, 112, 0.08);
}

:root[data-theme="dos"] .user-avatar,
:root[data-theme="dos"] .profile-avatar-large {
  color: #020604;
}

:root[data-theme="dos"] .playground-file-btn,
:root[data-theme="dos"] .playground-editor-tab,
:root[data-theme="dos"] .playground-terminal-output,
:root[data-theme="dos"] .playground-terminal-prompt,
:root[data-theme="dos"] .playground-terminal-input {
  font-family: var(--font-mono);
}

:root[data-theme="dos"] .playground-terminal {
  background: #010402;
}

:root[data-theme="dos"] .playground-terminal-header,
:root[data-theme="dos"] .playground-terminal-output,
:root[data-theme="dos"] .playground-terminal-input {
  color: var(--text);
  border-color: var(--border);
}

:root[data-theme="dos"] .playground-terminal-prompt,
:root[data-theme="dos"] .playground-terminal-status {
  color: var(--accent);
}

:root[data-theme="dos"] .code-block pre code.hljs,
:root[data-theme="dos"] .runnable-code-display code.hljs {
  color: #70ff87;
  background: #010402;
}
:root[data-theme="dos"] .code-block pre code.hljs .hljs-keyword,
:root[data-theme="dos"] .runnable-code-display code.hljs .hljs-keyword { color: #b6ffc0; }
:root[data-theme="dos"] .code-block pre code.hljs .hljs-string,
:root[data-theme="dos"] .runnable-code-display code.hljs .hljs-string { color: #7dff91; }
:root[data-theme="dos"] .code-block pre code.hljs .hljs-comment,
:root[data-theme="dos"] .runnable-code-display code.hljs .hljs-comment { color: #3b9b4c; }
:root[data-theme="dos"] .code-block pre code.hljs .hljs-number,
:root[data-theme="dos"] .runnable-code-display code.hljs .hljs-number { color: #c4ffcc; }
:root[data-theme="dos"] .code-block pre code.hljs .hljs-built_in,
:root[data-theme="dos"] .runnable-code-display code.hljs .hljs-built_in { color: #59d96f; }

.auth-required {
  max-width: 28rem;
  margin: 3rem auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-align: center;
}
.auth-required h1 { font-size: 1.25rem; margin-top: 0; font-weight: 700; }
.auth-required p { color: var(--text-muted); }

/* ─── Fullscreen Playground ─── */
.playground-shell {
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.playground-workspace {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}
.playground-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.playground-toolbar-left,
.playground-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.playground-home-link {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}
.playground-home-link span { color: var(--accent-teal); }
.playground-toolbar-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--border);
}
.playground-toolbar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.playground-project-select {
  min-width: 10rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
}
.playground-status-error {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border-bottom: 1px solid rgba(248, 113, 113, 0.25);
}
.playground-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
}
.playground-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  overflow: hidden;
}
.playground-sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.playground-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.playground-file-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  overflow-y: auto;
  flex: 1;
}
.playground-file-item {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.playground-file-item.active .playground-file-btn {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-teal);
}
.playground-file-btn {
  flex: 1;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.78rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}
.playground-file-btn:hover { background: var(--bg-card); }
.playground-file-dirty { color: #fbbf24; margin-left: 0.2rem; }
.playground-file-delete {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
}
.playground-file-delete:hover { color: #f87171; }
.playground-editor-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.playground-editor-tab {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", Consolas, monospace;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.playground-ide-full {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
}
.playground-ide-full .playground-header {
  display: none;
}
.playground-ide-full .playground-editor-host-full {
  flex: 1;
  min-height: 12rem;
}
.playground-terminal {
  flex-shrink: 0;
  height: 11rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: #0a0e14;
}
.playground-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.playground-terminal-status { font-weight: 500; text-transform: none; color: #22d3ee; }
.playground-terminal-status-wait { color: #fbbf24; }
.playground-terminal-output {
  flex: 1;
  margin: 0;
  padding: 0.5rem 0.75rem;
  overflow-y: auto;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #e2e8f0;
  white-space: pre-wrap;
}
.playground-terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.playground-terminal-prompt {
  color: #22d3ee;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.85rem;
}
.playground-terminal-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.82rem;
  outline: none;
}
@media (max-width: 768px) {
  .playground-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .playground-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 8rem;
  }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .landing-hero-inner { grid-template-columns: 1fr; }
  .landing-hero-visual { order: -1; }
  .pathway-grid { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: repeat(2, 1fr); }
  .landing-features-grid,
  .landing-features-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .landing-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .site-footer-inner { flex-direction: column; }
}

@media (max-width: 768px) {
  .section-page {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .site-header-brand { gap: 0.75rem; }
  .site-header-brand--vc .videnscenter-branding {
    padding-left: 0.75rem;
    gap: 0.5rem 0.75rem;
  }
  .videnscenter-branding--header .videnscenter-logo--vat { max-height: 1.85rem; }
  .videnscenter-branding--header .videnscenter-logo--portal { max-height: 1.35rem; }
  .landing-vc-hero-logos.videnscenter-branding--hero .videnscenter-logo--vat { max-height: 2.75rem; }
  .landing-vc-hero-logos.videnscenter-branding--hero .videnscenter-logo--portal { max-height: 2rem; }
  .landing-features-grid,
  .landing-features-grid--4 { grid-template-columns: 1fr; }
  .site-footer-vat-bar-inner { flex-direction: column; align-items: flex-start; }
  .sidebar {
    position: static;
    height: auto;
    max-height: 14rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .site-header-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 1rem; gap: 0.75rem; }
  .site-nav { display: none; }
  .section-tabs { flex-wrap: wrap; }
  .journey-steps { grid-template-columns: 1fr; }
  .section-article { padding: 0 1rem 3rem; }
  .user-name { display: none; }
  .theme-settings-heading { flex-direction: column; }
  .theme-settings-heading p { max-width: none; text-align: left; }
  .theme-options { grid-template-columns: 1fr; }
}

/* ── Slide deck (PowerPoint-lignende præsentation) ── */
.slide-deck-layout {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
}

.slide-deck {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 100% 0%, var(--accent-glow), transparent 55%),
    radial-gradient(900px 500px at 0% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    var(--bg);
}

.slide-deck-stage {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.75rem 0.5rem;
  min-height: min(70vh, calc(100dvh - 9rem));
}

.slide-deck-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 12;
}

.slide-deck-toolbar-start,
.slide-deck-toolbar-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slide-deck-toolbar-end .theme-toggle {
  flex-shrink: 0;
}

.slide-deck-exit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.slide-deck-exit:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.slide-deck-chapter {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(40vw, 28rem);
}

.slide-deck-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.slide-deck-btn:hover,
.slide-deck-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.slide-deck-slides {
  position: relative;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-deck-frame-branding {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.65rem;
  pointer-events: none;
}
.slide-deck-frame-branding-inner {
  width: min(100%, 72rem);
  display: flex;
  justify-content: flex-end;
  padding-right: 0.65rem;
  pointer-events: auto;
}

.slide-vc-logo {
  display: block;
  width: min(220px, 42vw);
  height: 2.5rem;
  background: var(--slide-vc-logo-light) no-repeat center / contain;
}
:root[data-theme="dark"] .slide-vc-logo,
:root[data-theme="dos"] .slide-vc-logo {
  background-image: var(--slide-vc-logo-dark);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .slide-vc-logo {
    background-image: var(--slide-vc-logo-dark);
  }
}

.slide-deck-slide-panel {
  width: min(100%, 72rem);
}

.slide-deck-slide-panel[hidden] {
  display: none !important;
}

.slide-deck-slide-panel--active {
  display: flex;
}

.slide-deck-nav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}
.slide-deck-nav:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.slide-deck-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.slide-deck-slide {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 9rem);
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--text) 6%, transparent) inset,
    0 24px 48px color-mix(in srgb, var(--bg) 35%, transparent);
  overflow: hidden;
}

.slide-deck-slide-header {
  padding: 1rem 1.5rem 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.slide-deck-slide-title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.slide-deck-slide-subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.slide-deck-slide-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

.slide-deck-slide--title .slide-deck-slide-body {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide-deck-slide--video .slide-deck-slide-body,
.slide-deck-slide--quiz .slide-deck-slide-body,
.slide-deck-slide--codeexample .slide-deck-slide-body {
  display: flex;
  flex-direction: column;
}

.slide-title-content {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
}
.slide-main-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.slide-intro {
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: left;
}
.slide-goals {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--accent-glow);
  text-align: left;
}
.slide-goals-heading {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.slide-goals-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.slide-video-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.slide-video-embed {
  flex: 1;
  min-height: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}
.slide-video-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  border: 0;
}
.slide-video-caption {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.slide-quiz-content .knowledge-check {
  margin: 0;
  border: none;
  padding: 0;
  background: transparent;
}
.slide-quiz-content .kc-heading {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.slide-quiz-content .kc-prompt {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}
.slide-quiz-content .kc-options {
  margin-top: 1rem;
}

.slide-body-content {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}
.slide-body-content h2,
.slide-body-content h3 {
  margin-top: 0;
}
.slide-deck-slide--codeexample .curriculum-runnable-playground,
.slide-deck-slide--codeexample .playground-shell {
  flex: 1;
  min-height: 14rem;
}

/* Kompakte slides: lidt tekst → stort og centreret */
.slide-deck-slide--compact .slide-deck-slide-body {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.slide-deck-slide--compact .slide-body-content,
.slide-deck-slide--compact .slide-title-content {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  line-height: 1.55;
}
.slide-deck-slide--compact .slide-body-content h2,
.slide-deck-slide--compact .slide-body-content h3 {
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  margin-bottom: 0.75rem;
}
.slide-deck-slide--compact .slide-body-content p {
  margin-bottom: 0.85rem;
}
.slide-deck-slide--compact .slide-body-content :not(pre) > code {
  font-size: 0.92em;
}
.slide-deck-slide--compact.slide-deck-slide--title .slide-deck-slide-body {
  text-align: center;
}
.slide-deck-slide--compact .slide-intro {
  text-align: center;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

/* VC-tema på slide-præsentation */
.slide-deck--vc {
  --slide-vc-accent: #188a9c;
  --slide-vc-accent-soft: rgba(24, 138, 156, 0.14);
  --slide-vc-accent-border: rgba(24, 138, 156, 0.35);
  background:
    radial-gradient(ellipse 90% 70% at 10% -5%, rgba(24, 138, 156, 0.18), transparent),
    radial-gradient(ellipse 60% 50% at 95% 15%, rgba(24, 138, 156, 0.1), transparent),
    radial-gradient(1200px 600px at 100% 0%, var(--accent-glow), transparent 55%),
    var(--bg);
}
:root[data-theme="dark"] .slide-deck--vc,
:root[data-theme="dos"] .slide-deck--vc {
  --slide-vc-accent: #5eead4;
  --slide-vc-accent-soft: rgba(24, 138, 156, 0.2);
  --slide-vc-accent-border: rgba(94, 234, 212, 0.35);
}

.slide-deck--vc .slide-deck-toolbar {
  border-bottom-color: var(--slide-vc-accent-border);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface) 92%, transparent) 0%,
    color-mix(in srgb, var(--surface) 82%, transparent) 100%
  );
}
.slide-deck--vc .slide-deck-chapter {
  color: var(--slide-vc-accent);
}
.slide-deck--vc .slide-deck-exit:hover,
.slide-deck--vc .slide-deck-btn:hover,
.slide-deck--vc .slide-deck-btn[aria-pressed="true"] {
  border-color: var(--slide-vc-accent);
  background: var(--slide-vc-accent-soft);
}
.slide-deck--vc .slide-deck-nav:hover:not(:disabled) {
  border-color: var(--slide-vc-accent);
  background: var(--slide-vc-accent-soft);
}
.slide-deck--vc .slide-deck-slide {
  border-color: var(--slide-vc-accent-border);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--slide-vc-accent) 8%, transparent) inset,
    0 20px 40px rgba(24, 138, 156, 0.1);
}
.slide-deck--vc .slide-deck-slide-header {
  border-bottom-color: var(--slide-vc-accent-border);
  background: linear-gradient(180deg, var(--slide-vc-accent-soft) 0%, transparent 100%);
}
.slide-deck--vc .slide-deck-slide-title {
  color: var(--slide-vc-accent);
}
.slide-deck--vc .slide-main-title {
  background: linear-gradient(135deg, #188a9c 0%, #0ea5e9 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
:root[data-theme="dark"] .slide-deck--vc .slide-main-title,
:root[data-theme="dos"] .slide-deck--vc .slide-main-title {
  background: linear-gradient(135deg, #5eead4 0%, #38bdf8 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.slide-deck--vc .slide-goals {
  border-color: var(--slide-vc-accent-border);
  background: var(--slide-vc-accent-soft);
}
.slide-deck--vc .slide-goals-heading {
  color: var(--slide-vc-accent);
}
.slide-deck--vc .slide-deck-dot--active {
  background: var(--slide-vc-accent);
}
.slide-deck--vc .slide-deck-dot:hover {
  background: color-mix(in srgb, var(--slide-vc-accent) 55%, transparent);
}
.slide-deck--vc .slide-deck-counter-current {
  color: var(--slide-vc-accent);
}
.slide-deck--vc .slide-deck-footer {
  border-top-color: var(--slide-vc-accent-border);
}
.slide-deck--vc .slide-deck-overview-item:hover,
.slide-deck--vc .slide-deck-overview-item--active {
  border-color: var(--slide-vc-accent);
  box-shadow: 0 8px 24px rgba(24, 138, 156, 0.14);
}
.slide-deck--vc .slide-deck-overview-number {
  color: var(--slide-vc-accent);
}

.slide-deck-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  position: relative;
  z-index: 12;
}

.slide-deck-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}
.slide-deck-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: color-mix(in srgb, var(--text-muted) 35%, transparent);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.slide-deck-dot:hover {
  transform: scale(1.15);
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.slide-deck-dot--active {
  background: var(--accent);
  transform: scale(1.2);
}

.slide-deck-counter {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.slide-deck-counter-current {
  color: var(--text);
  font-weight: 700;
}

.slide-deck-overview[hidden] {
  display: none !important;
}

.slide-deck-overview {
  position: absolute;
  inset: 3.25rem 0 3.5rem;
  z-index: 10;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  overflow: auto;
}
.slide-deck-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
}
.slide-deck-overview-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.slide-deck-overview-item:hover,
.slide-deck-overview-item--active {
  border-color: var(--accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 12%, transparent);
  transform: translateY(-1px);
}
.slide-deck-overview-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.slide-deck-overview-kind {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.slide-deck-overview-title {
  font-size: 0.88rem;
  line-height: 1.35;
}

.slide-deck-missing {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem;
}

.curriculum-present-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.curriculum-present-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.slide-deck:fullscreen {
  background: var(--bg);
}
.slide-deck:fullscreen .slide-deck-slide {
  max-height: calc(100dvh - 8rem);
}

@media (max-width: 900px) {
  .slide-deck-toolbar-end .slide-deck-btn { padding-inline: 0.55rem; }
  .slide-deck-exit-label { display: none; }
  .slide-deck-stage {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0.5rem;
  }
  .slide-deck-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0.85;
  }
  .slide-deck-nav--prev { left: 0.35rem; }
  .slide-deck-nav--next { right: 0.35rem; }
  .slide-deck-slide {
    aspect-ratio: auto;
    min-height: calc(100dvh - 10rem);
    max-height: none;
  }
  .slide-vc-logo {
    width: min(180px, 46vw);
    height: 2.1rem;
  }
  .slide-deck-frame-branding {
    padding-bottom: 0.5rem;
  }
  .slide-deck-frame-branding-inner {
    padding-right: 0.5rem;
  }
}

@media (max-width: 600px) {
  .slide-deck-chapter { display: none; }
  .slide-deck-toolbar {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }
  .slide-deck-toolbar-end { gap: 0.5rem; }
}
