:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --primary-soft: #f3e8ff;
  --primary-border: #ddd6fe;
  --amber-soft: #fef9c3;
  --amber-border: #fde047;
  --amber-text: #854d0e;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --max-w: 1140px;
  --article-w: 820px;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #9333ea);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link, .nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover, .nav-dropdown-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  min-width: 260px;
  display: none;
  z-index: 200;
}

.nav-dropdown-menu.grid-2 {
  min-width: 520px;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Search Trigger & Modal */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.search-trigger:hover {
  border-color: var(--primary);
  color: var(--text);
  background: var(--surface);
}

.search-kbd {
  font-size: 0.72rem;
  padding: 0.1rem 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
}

/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 1rem;
}

.search-modal-backdrop.active {
  display: flex;
}

.search-modal {
  background: var(--surface);
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}

.search-input {
  width: 100%;
  border: none;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  background: transparent;
}

.search-close-btn {
  background: var(--surface-alt);
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.search-results {
  max-height: 65vh;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result-item {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}

.search-result-item:hover {
  background: var(--primary-soft);
}

.search-result-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.search-result-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  background: var(--surface-alt);
  color: var(--text-muted);
  white-space: nowrap;
}

.search-result-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Main Container */
main {
  flex: 1;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.article-container {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Article Header & Card */
.article-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.75rem;
  box-shadow: var(--shadow);
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.topic-badge:hover {
  background: var(--primary-border);
}

.article-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta a {
  color: var(--text-muted);
}

/* Table of Contents */
.toc-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.toc-box summary {
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
}

.toc-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.toc-list li {
  margin-bottom: 0.25rem;
}

.toc-list a {
  text-decoration: none;
  color: var(--text-muted);
}

.toc-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Typography inside Article Content */
.article-content h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.85rem;
  color: var(--text);
  letter-spacing: -0.015em;
  scroll-margin-top: 80px;
}

.article-content h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 1.85rem 0 0.65rem;
  color: var(--text);
  scroll-margin-top: 80px;
}

.article-content h4 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.article-content p {
  margin: 0 0 1.15rem;
}

.article-content > p:first-of-type strong em,
.article-content > p:first-of-type em strong {
  font-style: normal;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.65;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.25rem 0;
}

/* Figures & Images */
.article-content figure {
  margin: 1.75rem 0;
  text-align: center;
}

.article-content figure img {
  margin: 0 auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.article-content figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Callout Boxes (Begriff & Merken) */
.callout-box {
  margin: 1.75rem 0;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.callout-definition {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.callout-definition h2, .callout-definition h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.callout-remember {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.callout-remember-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.callout-remember-body p:last-child {
  margin-bottom: 0;
}

.callout-definition figure img,
.callout-remember figure img {
  border: none;
  max-width: 80px;
}

/* Multi-column layouts inside content */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
  align-items: center;
}

.wp-block-column {
  flex: 1 1 260px;
  min-width: 0;
}

/* Tables */
.wp-block-table, .table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th, td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th, thead td {
  background: var(--surface-alt);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* Accordions & FAQs (<details>) */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0.85rem 0;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.15s;
}

details:hover {
  border-color: #cbd5e1;
}

details[open] {
  background: var(--surface-alt);
  border-color: var(--primary-border);
}

summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

details[open] > summary::after {
  content: "−";
}

summary svg {
  display: none;
}

details > div, details > p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

details p:last-child {
  margin-bottom: 0;
}

/* 2-Click YouTube Privacy Player */
.video-figure {
  margin: 2rem 0;
}

.yt-2click {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border: none !important;
}

.yt-2click:hover .yt-thumb {
  transform: scale(1.02);
  opacity: 0.68;
}

.yt-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.25) 55%, rgba(15, 23, 42, 0.4) 100%);
  text-align: center;
}

.yt-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.yt-play-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.yt-play-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.yt-privacy-note {
  position: absolute;
  bottom: 0.65rem;
  left: 1rem;
  right: 1rem;
  margin: 0 !important;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.yt-privacy-note a {
  color: #ddd6fe;
  font-weight: 600;
}

.yt-2click iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Buttons */
.btn, .wp-element-button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
}

.btn:hover, .wp-element-button:hover, .wp-block-button__link:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--primary) !important;
  border-color: var(--primary-border);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

/* Author Box & Learning Path Nav */
.author-box {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2.75rem;
}

.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary-border);
}

.author-info h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.author-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.learning-path-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.path-nav-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.path-nav-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.path-nav-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.path-nav-title {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.96rem;
}

/* Homepage & Topic Overview Grids */
.hero-banner {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 55%, #7c3aed 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.hero-banner h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-banner p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
}

.hero-search-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 460px;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text-muted);
  border: none;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.hero-search-btn strong {
  color: var(--primary);
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo-wrap img {
  max-height: 300px;
  width: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 3rem auto 1.75rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 1.85rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Topic Cards Grid on Homepage */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.topic-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.topic-card-icon {
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text);
}

.topic-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  line-height: 1.55;
}

.topic-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  padding-top: 0.75rem;
  border-top: 1px solid var(--surface-alt);
}

/* Topic Overview Lesson List */
.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.lesson-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lesson-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow);
}

.lesson-thumb-link {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.lesson-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-step {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.lesson-body h2 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
}

.lesson-body h2 a {
  text-decoration: none;
  color: var(--text);
}

.lesson-body h2 a:hover {
  color: var(--primary);
}

.lesson-body p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Glossary A-Z */
.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.5rem 0;
  padding: 0.75rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
}

.glossary-letter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.glossary-letter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 1.25rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h3 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.site-footer p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open {
    display: flex;
  }
  .nav-dropdown-menu, .nav-dropdown-menu.grid-2 {
    position: static;
    box-shadow: none;
    border: none;
    min-width: 0;
    grid-template-columns: 1fr;
    padding-left: 1rem;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .search-kbd {
    display: none;
  }
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .lesson-card {
    grid-template-columns: 1fr;
  }
  .article-shell {
    padding: 1.5rem 1.25rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}
