/* ══════════════════════════════════════════════════════════════
   EDITORIAL — A Typography-First Magazine Theme
   ITSWEBER CMS v3.4.0
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Color Palette */
  --ink:          #1a1a2e;
  --ink-light:    #2d2d44;
  --ink-muted:    #6b6b80;
  --accent:       #e63946;
  --accent-hover: #c62d39;
  --cream:        #fafaf9;
  --paper:        #f3f1ee;
  --border:       #e0ddd8;
  --border-light: #eae7e2;
  --white:        #ffffff;

  /* Typography */
  --font-display: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Sizing */
  --content-width: 720px;
  --wide-width:    1140px;
  --full-width:    1320px;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(26,26,46,0.06);
  --shadow-md:  0 4px 12px rgba(26,26,46,0.08);
  --shadow-lg:  0 12px 40px rgba(26,26,46,0.12);
  --shadow-img: 0 8px 30px rgba(26,26,46,0.15);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.3s;

  /* Radius */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Semantic aliases */
  --bg-page:       var(--cream);
  --bg-surface:    var(--white);
  --bg-header:     rgba(255,255,255,0.92);
  --text-primary:  var(--ink);
  --text-secondary: var(--ink-muted);

  /* ── Section Color Scheme Tokens (PFLICHT) ── */
  --scheme-primary-bg:    var(--accent);
  --scheme-primary-text:  #fff;
  --scheme-primary-muted: rgba(255,255,255,0.7);
  --scheme-alt-bg:        var(--paper);
  --scheme-alt-text:      var(--ink);
  --scheme-dark-bg:       #1a1a2e;
  --scheme-dark-text:     #f1f5f9;
  --scheme-dark-muted:    rgba(241,245,249,0.7);
}

/* ── Dark Mode ──────────────────────────────────────────────── */
html[data-theme="dark"] {
  --ink:          #e8e6e1;
  --ink-light:    #d4d0ca;
  --ink-muted:    #8a8780;
  --cream:        #121218;
  --paper:        #1a1a22;
  --border:       #2a2a35;
  --border-light: #222230;
  --white:        #16161e;
  --bg-page:      #0e0e14;
  --bg-surface:   #16161e;
  --bg-header:    rgba(14,14,20,0.95);
  --text-primary: #e8e6e1;
  --text-secondary: #8a8780;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.4);
  --shadow-img:   0 8px 30px rgba(0,0,0,0.4);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-page);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-size: 0.875rem;
}
.skip-link:focus { top: var(--space-sm); }

/* ── Containers ────────────────────────────────────────────── */
.container        { max-width: var(--full-width); margin: 0 auto; padding: 0 var(--space-lg); }
.container-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--space-lg); }

/* ── Decorative Rule ───────────────────────────────────────── */
.rule {
  border: none;
  height: 1px;
  background: var(--border);
  margin: var(--space-xl) 0;
}
.rule--accent {
  height: 3px;
  background: var(--accent);
  width: 48px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo:hover { color: var(--text-primary); }
.site-logo img { height: 32px; width: auto; }

/* Accent initial mark (fallback when no logo uploaded) */
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  flex-shrink: 0;
}

.main-nav { display: flex; align-items: center; gap: var(--space-lg); }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration) var(--ease);
}
.nav-list a:hover { color: var(--text-primary); }
.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

/* ── Dropdown Navigation ───────────────────────────────────── */
.nav-item.has-children > a { display: flex; align-items: center; gap: 0.25rem; }
.nav-chevron,
.nav-flyout-chevron { transition: transform var(--duration) var(--ease); }
.nav-item.has-children.is-open > a .nav-chevron { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration) var(--ease);
  z-index: 50;
  list-style: none;
}
.nav-item.has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--paper); }

/* Level 3 flyout */
.sub-menu .sub-menu {
  top: -0.5rem;
  left: 100%;
}

/* ── Header Search ─────────────────────────────────────────── */
.header-search { position: relative; }
.header-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration) var(--ease);
}
.header-search-toggle:hover { color: var(--accent); }

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm);
  min-width: 280px;
}
.header-search-dropdown form {
  display: flex;
  gap: var(--space-xs);
}
.header-search-dropdown input[type="search"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
}
.header-search-dropdown input[type="search"]:focus { border-color: var(--accent); }
.header-search-dropdown button[type="submit"] {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Theme Toggle ──────────────────────────────────────────── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
html[data-theme="dark"] .icon-sun { display: none; }
html:not([data-theme="dark"]) .icon-moon { display: none; }

/* ── Mobile Hamburger ──────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════════════════════ */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin-right: var(--space-xs);
  color: var(--border);
}
.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-current { font-weight: 600; color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY — Editorial Headings
   ══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ══════════════════════════════════════════════════════════════
   PAGE SECTIONS (Page Builder)
   ══════════════════════════════════════════════════════════════ */
.page-section {
  padding: var(--space-3xl) 0;
}
.page-section:nth-child(even) {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.page-section--title-only {
  padding: var(--space-2xl) 0 var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-content { font-size: 1.0625rem; line-height: 1.8; }
.page-content p { margin-bottom: var(--space-md); }

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero-section {
  padding: var(--space-3xl) 0;
  position: relative;
}
.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}
.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-img);
  aspect-ratio: 4/3;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.hero-image:hover img { transform: scale(1.03); }
/* Decorative accent bar */
.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent);
}

/* ── Hero Buttons ──────────────────────────────────────────── */
.btn, .btn-hero, .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}
.btn:hover, .btn-hero:hover, .btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   INTRO SECTION
   ══════════════════════════════════════════════════════════════ */
.intro-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.intro-section .container { max-width: var(--content-width); }
.intro-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-md);
}
.intro-section p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════════
   FEATURES SECTION
   ══════════════════════════════════════════════════════════════ */
.features-section {
  padding: var(--space-3xl) 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-xl);
}
.feature-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all var(--duration) var(--ease);
}
.feature-card:hover .feature-card-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.feature-card-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════════════════════ */
.service-cards-section { padding: var(--space-3xl) 0; }
.scs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.scs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.scs-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.scs-card-visual {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--accent);
}
.scs-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}
.scs-card-text { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: var(--space-3xl) 0;
  background: var(--ink);
  color: #e8e6e1;
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .cta-section { background: #1e1e2a; }

/* Decorative diagonal lines */
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 1px;
  height: 200%;
  background: rgba(230,57,70,0.2);
  transform: rotate(25deg);
}
.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: 5%;
  width: 1px;
  height: 200%;
  background: rgba(230,57,70,0.1);
  transform: rotate(25deg);
}
.cta-section .container {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: white;
  margin-bottom: var(--space-md);
}
.cta-section p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn,
.cta-section .btn-hero {
  background: var(--accent);
  color: white;
}
.cta-section .btn:hover,
.cta-section .btn-hero:hover {
  background: var(--accent-hover);
}

/* ══════════════════════════════════════════════════════════════
   BLOG SECTION
   ══════════════════════════════════════════════════════════════ */
.blog-section { padding: var(--space-3xl) 0; }

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}
.blog-category-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.blog-category-link:hover,
.blog-category-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.blog-category-count {
  font-size: 0.6875rem;
  opacity: 0.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-image-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-image-link img,
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card-image-link img,
.blog-card:hover .blog-card-image { transform: scale(1.05); }

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}
.blog-card-placeholder svg { width: 40px; height: 40px; }

.blog-card-body { padding: var(--space-lg); }
.blog-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: inline-block;
}
.blog-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}
.blog-card-body h2 a { color: var(--text-primary); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--accent); }
.blog-card-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

/* ── Blog Pagination ───────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}
.pagination-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.pagination-link:hover { border-color: var(--accent); color: var(--accent); }
.pagination-link.disabled { opacity: 0.4; pointer-events: none; }
.pagination-info { font-size: 0.8125rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   BLOG SINGLE — Article
   ══════════════════════════════════════════════════════════════ */
.blog-article { padding: var(--space-2xl) 0 var(--space-3xl); }

.article-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-img);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}
.article-category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.6875rem;
}
.article-reading-time { display: flex; align-items: center; gap: 0.25rem; }

/* ── Table of Contents ─────────────────────────────────────── */
.article-toc {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.article-toc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.article-toc-list {
  padding-left: var(--space-lg);
  margin: 0;
}
.article-toc-list li { margin-bottom: var(--space-xs); font-size: 0.875rem; }
.article-toc-list a { color: var(--text-secondary); }
.article-toc-list a:hover { color: var(--accent); }
.toc-level-3 { padding-left: var(--space-md); }

/* ── Article Content ───────────────────────────────────────── */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.article-content h2 {
  font-size: 1.75rem;
  margin: var(--space-2xl) 0 var(--space-md);
}
.article-content h3 {
  font-size: 1.375rem;
  margin: var(--space-xl) 0 var(--space-md);
}
.article-content p { margin-bottom: var(--space-lg); }
.article-content ul, .article-content ol { margin-bottom: var(--space-lg); padding-left: var(--space-xl); }
.article-content li { margin-bottom: var(--space-sm); }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-content pre {
  background: var(--ink);
  color: #e8e6e1;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
html[data-theme="dark"] .article-content pre { background: #1e1e2a; }
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--paper);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}
.article-content pre code { background: none; padding: 0; }
.article-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

/* ── Related Posts ──────────────────────────────────────────── */
.article-related {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-light);
}
.article-related-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}
.related-post-card {
  text-decoration: none;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.related-post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-post-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.related-post-img { width: 100%; height: 100%; object-fit: cover; }
.related-post-body { padding: var(--space-md); }
.related-post-date { font-size: 0.75rem; color: var(--text-secondary); }
.related-post-body h4 { font-family: var(--font-display); font-size: 1rem; margin-top: var(--space-xs); }

.article-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

/* ══════════════════════════════════════════════════════════════
   BLOG PREVIEW SECTION (Homepage)
   ══════════════════════════════════════════════════════════════ */
.blog-preview-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.blog-preview-section .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* ══════════════════════════════════════════════════════════════
   HIGHLIGHT GRID
   ══════════════════════════════════════════════════════════════ */
.highlight-grid-section { padding: var(--space-3xl) 0; }
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.highlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: var(--space-lg);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.highlight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.highlight-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg);
}
.highlight-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.highlight-card:hover .highlight-card-image img { transform: scale(1.05); }
.highlight-card-body { padding: 0; }
.highlight-card-icon { margin-bottom: var(--space-sm); color: var(--accent, var(--text)); }
.highlight-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: var(--space-sm); }
.highlight-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   TOPIC CARDS
   ══════════════════════════════════════════════════════════════ */
.topic-cards-section { padding: var(--space-3xl) 0; }
.topic-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text-primary); }
.topic-card-icon { margin-bottom: var(--space-md); color: var(--accent); }
.topic-card-title { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: var(--space-sm); }
.topic-card-text { font-size: 0.875rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   FEATURE SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.feature-showcase-section { padding: var(--space-3xl) 0; }
.fss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.fss-grid.reverse { direction: rtl; }
.fss-grid.reverse > * { direction: ltr; }
.fss-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-img);
}
.fss-card img { width: 100%; height: auto; }
.fss-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}
.fss-card-text { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-md); }

/* ══════════════════════════════════════════════════════════════
   PROCESS STEPS
   ══════════════════════════════════════════════════════════════ */
.process-steps-section { padding: var(--space-3xl) 0; }
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}
.process-step {
  text-align: center;
  counter-increment: step;
  position: relative;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  display: block;
  margin-bottom: var(--space-sm);
}
.process-step-title { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: var(--space-sm); }
.process-step-text { font-size: 0.9375rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   TEAM SECTION
   ══════════════════════════════════════════════════════════════ */
.team-section { padding: var(--space-3xl) 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-xl);
}
.team-card { text-align: center; }
.team-card-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--border-light);
}
.team-card-image img { width: 100%; height: 100%; object-fit: cover; }
.team-card-name { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: var(--space-xs); }
.team-card-role { font-size: 0.8125rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.team-card-bio { font-size: 0.9375rem; color: var(--text-secondary); margin-top: var(--space-sm); }

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════ */
.testimonials-section { padding: var(--space-3xl) 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  line-height: 1;
}
.testimonial-text {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-author-name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-author-role { font-size: 0.8125rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   STATS SECTION
   ══════════════════════════════════════════════════════════════ */
.stats-section { padding: var(--space-3xl) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}
.stats-item { padding: var(--space-md); }
.stats-item-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stats-item-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   TRUST SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.trust-showcase-section { padding: var(--space-3xl) 0; }
.tss-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xl);
  align-items: center;
}
.tss-card {
  opacity: 0.5;
  transition: opacity var(--duration) var(--ease);
  max-height: 48px;
  width: auto;
}
.tss-card:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   RATING / BEFORE-AFTER / VIDEO / SOCIAL EMBED / HTML
   ══════════════════════════════════════════════════════════════ */
.rating-highlight-section { padding: var(--space-3xl) 0; }
.before-after-section { padding: var(--space-3xl) 0; }
.video-section { padding: var(--space-3xl) 0; }
.social-embed-section { padding: var(--space-3xl) 0; }
.html-section { padding: var(--space-3xl) 0; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ══════════════════════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════════════════════ */
.gallery-section,
.gallery-album-section { padding: var(--space-3xl) 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.gallery-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-card-image { aspect-ratio: 4/3; overflow: hidden; }
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-card:hover .gallery-card-image img { transform: scale(1.05); }
.gallery-card-body { padding: var(--space-md); }

.gallery-preview-section { padding: var(--space-3xl) 0; }

/* ══════════════════════════════════════════════════════════════
   EVENTS
   ══════════════════════════════════════════════════════════════ */
.events-section { padding: var(--space-3xl) 0; }
.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: box-shadow var(--duration) var(--ease);
}
.event-card:hover { box-shadow: var(--shadow-md); }
.event-date-block {
  text-align: center;
  min-width: 64px;
  padding: var(--space-md);
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
}
.event-date-day { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.event-date-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }
.event-info h2 a,
.event-info h3 a { color: var(--text-primary); text-decoration: none; }
.event-info h2 a:hover,
.event-info h3 a:hover { color: var(--accent); }
.event-meta { font-size: 0.8125rem; color: var(--text-secondary); margin-top: var(--space-sm); }

.events-preview-section { padding: var(--space-3xl) 0; }

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.contact-section { padding: var(--space-3xl) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}
.contact-form .form-group { margin-bottom: var(--space-md); }
.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--duration) var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-info-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.contact-info-card h3 { font-family: var(--font-display); margin-bottom: var(--space-md); }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}
.contact-info-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   DOWNLOADS
   ══════════════════════════════════════════════════════════════ */
.downloads-section { padding: var(--space-3xl) 0; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow var(--duration) var(--ease);
}
.download-card:hover { box-shadow: var(--shadow-md); }
.download-card h3 { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: var(--space-sm); }
.download-card h3 a { color: var(--text-primary); text-decoration: none; }
.download-card h3 a:hover { color: var(--accent); }
.download-meta { font-size: 0.8125rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   SEARCH
   ══════════════════════════════════════════════════════════════ */
.search-section { padding: var(--space-3xl) 0; }
.search-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); }

.search-results-list { list-style: none; padding: 0; }
.search-result-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-light);
}
.search-result-item h2 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: var(--space-xs); }
.search-result-item h2 a { color: var(--text-primary); }
.search-result-item h2 a:hover { color: var(--accent); }
.search-result-item p { font-size: 0.9375rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════ */
.error-page {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}
.error-page p { color: var(--text-secondary); margin-bottom: var(--space-xl); }

/* ══════════════════════════════════════════════════════════════
   MAINTENANCE PAGE
   ══════════════════════════════════════════════════════════════ */
.maintenance-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-xl);
}
.maintenance-page h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: var(--space-md); }
.maintenance-page p { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-2xl);
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
  text-decoration: none;
}
.footer-brand-logo img { height: 32px; width: auto; }
.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(230,57,70,0.06);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer-nav { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-nav a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.footer-nav a:hover { color: var(--accent); }

.footer-contact-line {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}
.footer-contact-line a { color: var(--text-secondary); }
.footer-contact-line a:hover { color: var(--accent); }
.footer-hours {
  font-size: 0.8125rem;
  font-style: italic;
  opacity: 0.8;
  margin-top: var(--space-sm);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════════════════════════ */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration) var(--ease);
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   MODULE INTRO (system page content)
   ══════════════════════════════════════════════════════════════ */
.module-intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: var(--content-width);
}

/* ══════════════════════════════════════════════════════════════
   TEXT MUTED
   ══════════════════════════════════════════════════════════════ */
.text-muted { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   CONSENT BANNER OVERRIDES
   ══════════════════════════════════════════════════════════════ */
.consent-reopen { color: var(--text-secondary); font-size: 0.75rem; }
.consent-reopen:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section .container { grid-template-columns: 1fr; gap: var(--space-xl); }
  .fss-grid { grid-template-columns: 1fr; }
  .fss-grid.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-list a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
  }
  .nav-list a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-search { display: none; }

  .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-lg);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
  }
  .nav-item.has-children.is-open > .sub-menu { display: block; }

  .hero-section .container { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { text-align: center; }
  .event-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root {
    --space-2xl: 2.5rem;
    --space-3xl: 3.5rem;
  }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .scroll-to-top, .nav-toggle, .theme-toggle,
  .breadcrumbs, .blog-pagination, .article-toc { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  .container, .container-narrow { max-width: 100%; padding: 0; }
  a { color: inherit; text-decoration: underline; }
}


/* ================================================================
   MISSING SELECTORS - Auto-extracted from Default Theme
   Adapted for Editorial tokens
   ================================================================ */

.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.025em; }
.nav-list a:hover, .nav-list a.active { color: var(--accent); text-decoration: none; }

/* Top-level item */
.nav-list > .nav-item {
    position: relative;
}
.nav-list > .nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    min-height: 44px;
    line-height: 28px;
    border-radius: var(--radius-sm, 4px);
    transition: color 0.15s var(--ease, ease),
                background 0.15s var(--ease, ease);
    white-space: nowrap;
}
.nav-list > .nav-item > a:hover,
.nav-list > .nav-item.is-open > a {
    color: var(--accent);
    background: rgba(230,57,70,0.06);
}

/* Active state – bottom accent bar */
.nav-list > .nav-item > a.active {
    position: relative;
    color: var(--accent);
    font-weight: 600;
}
.nav-list > .nav-item > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.nav-item.is-open > a .nav-chevron {
    transform: rotate(180deg);
}
.nav-item--sub:hover > a .nav-flyout-chevron {
    opacity: 1;
    transform: translateX(2px);
}

/* Top accent line */
.sub-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent));
    border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0;
}

/* Invisible bridge to prevent hover gap close */
.nav-item.has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: 12px;
}

/* Dropdown items */
.sub-menu .nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sub-menu .nav-item > a:hover {
    background: rgba(230,57,70,0.06);
    color: var(--accent);
    font-weight: 500;
    border-left-color: var(--accent);
}
.sub-menu .nav-item > a.active {
    color: var(--accent);
    font-weight: 500;
    border-left-color: var(--accent);
}

/* ── Flyout Panel (Level 3) ──────────────────────────────────────── */
.sub-menu--flyout {
    top: -8px;
    left: calc(100% + 4px);
    transform: translateX(-8px);
}
.sub-menu--flyout::before {
    background: linear-gradient(90deg, var(--accent), var(--accent));
}
.nav-item.has-children.is-open > .sub-menu--flyout {
    transform: translateX(0);
}

/* Flyout connecting arrow */
.sub-menu--flyout::after {
    content: '';
    position: absolute;
    top: 16px;
    left: -6px;
    width: 12px; height: 12px;
    background: var(--bg-surface);
    transform: rotate(45deg);
    box-shadow: -2px 2px 4px rgba(0,0,0,0.04);
    z-index: -1;
}

/* Focus visible (keyboard only) */
.nav-list a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Hero Video Background (Phase video-hero) */
.hero-section .hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}
.hero-section.hero--video-contain .hero-video-bg { object-fit: contain; }
.hero-section.hero--has-video > .container { position: relative; z-index: 2; }
.hero-section.hero--has-video::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.hero-section.hero--has-video.hero--overlay-light::after  { background: rgba(0,0,0,0.20); }
.hero-section.hero--has-video.hero--overlay-medium::after { background: rgba(0,0,0,0.45); }
.hero-section.hero--has-video.hero--overlay-heavy::after  { background: rgba(0,0,0,0.65); }

/* Hero Inline Video (Phase video-hero: video_display=inline) */
.hero-video-inline-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    line-height: 0;
    aspect-ratio: 16 / 9;
}
.hero-video-inline-wrap--center {
    display: block;
    margin: 2rem auto 0;
    width: min(540px, 90%);
}
.hero-video-inline {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero--video-inline .hero-split-inner .hero-video-inline-wrap {
    flex: 0 0 auto;
    width: clamp(200px, 28vw, 360px);
    aspect-ratio: 16 / 9;
}
@media (max-width: 768px) {
    .hero-video-inline-wrap--center { margin-top: 1.5rem; }
    .hero--video-inline .hero-split-inner { flex-direction: column; align-items: center; }
    .hero--video-inline .hero-split-inner .hero-video-inline-wrap { width: min(480px, 90%); flex: none; }
}

/* Inline-Video-Größen (video_inline_size) */
.hero--video-size-sm   .hero-video-inline-wrap--center { width: min(380px, 90%); }
.hero--video-size-md   .hero-video-inline-wrap--center { width: min(560px, 90%); }
.hero--video-size-lg   .hero-video-inline-wrap--center { width: min(820px, 94%); }
.hero--video-size-full .hero-video-inline-wrap--center { width: 100%; }
.btn-cta { background: var(--accent); color: #fff; }
.btn-cta:hover { background: var(--accent-hover); text-decoration: none; }
.intro-section h2, .features-section h2, .blog-preview-section h2, .cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.intro-section .section-subtitle, .cta-section .section-subtitle { max-width: 680px; margin-left: auto; margin-right: auto; }
.intro-text { font-size: 1.125rem; color: var(--text-secondary); max-width: 680px; margin: 0 auto; line-height: 1.7; }
.intro-cta { margin-top: 2rem; }
.features-section h2 { text-align: center; }
.feature-card-link { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.feature-card-link:hover { text-decoration: underline; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(230,57,70,0.12); border-color: var(--accent); }
.cta-section > .container { position: relative; z-index: 1; }
.cta--has-bg { background-size: cover; background-position: center; position: relative; }
.cta--has-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 0; }
.cta--has-bg > .container { position: relative; z-index: 1; }
.cta--has-bg h2, .cta--has-bg .cta-text, .cta--has-bg .cta-eyebrow { color: #fff; }
.cta--overlay-light::after { background: rgba(0,0,0,0.25); }
.cta--overlay-medium::after { background: rgba(0,0,0,0.45); }
.cta--overlay-heavy::after { background: rgba(0,0,0,0.65); }
.cta-eyebrow { display: block; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; color: rgba(255,255,255,0.85); }
.cta--has-bg .cta-eyebrow { color: rgba(255,255,255,0.85); }
.cta-text { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Phase 3d – <picture> layout normalisation
   The <picture> element is display:inline by default, which prevents the
   wrapped <img> (display:block; width:100%; height:100%) from resolving
   percentage heights, breaks the gallery-image-item squares, and can
   disrupt click-event bubbling to the parent <figure>.
   display:contents makes <picture> transparent to layout and event
   propagation: the <img> behaves as a direct child of its grandparent,
   identical to pre-picture_tag behaviour. */
picture {
    display: contents;
}
.gallery-card-placeholder { height: 220px; background: var(--bg-page); }
.gallery-card-info { padding: 1rem; }
.gallery-card-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.gallery-card-info p { font-size: 0.875rem; color: var(--text-secondary); }

/* Gallery – Album image grid */
.gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.625rem;
    margin-top: 1.5rem;
}
.gallery-image-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: var(--bg-page);
    margin: 0;
}
.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.gallery-image-item:hover img,
.gallery-image-item:focus img {
    transform: scale(1.05);
}
.gallery-image-item:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.gallery-image-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    padding: 2rem 0.75rem 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.gallery-image-item:hover figcaption,
.gallery-image-item:focus figcaption {
    opacity: 1;
}

/* Gallery – Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.gallery-lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}
.gallery-lightbox-inner {
    position: relative;
    max-width: min(90vw, 1200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4rem;
}
.gallery-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    box-shadow: var(--shadow-lg);
}
.gallery-lightbox-info {
    margin-top: 0.875rem;
    text-align: center;
    min-height: 2.5rem;
}
.gallery-lightbox-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin: 0;
}
.gallery-lightbox-counter {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}
.gallery-lightbox-close {
    position: fixed;
    top: 1.125rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s var(--ease);
    z-index: 9001;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus {
    color: #fff;
    outline: none;
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.375rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s var(--ease);
    z-index: 9001;
    user-select: none;
}
.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}
.gallery-lightbox-prev:disabled,
.gallery-lightbox-next:disabled {
    opacity: 0.2;
    cursor: default;
}
@media (max-width: 768px) {
    .gallery-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.375rem;
    }
    .gallery-lightbox-inner { padding: 0 3rem; }
    .gallery-lightbox-prev { left: 0.25rem; }
    .gallery-lightbox-next { right: 0.25rem; }
}

/* Contact */
.contact-info { margin-top: 2rem; }
.contact-info p { margin-bottom: 0.5rem; }

/* Error */
.error-section { text-align: center; padding: 8rem 0; }
.error-message { font-size: 1.25rem; color: var(--text-secondary); margin: 1rem 0 2rem; }
.site-footer::before { content: ''; display: block; height: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }
.footer-brand { min-width: 200px; }
.footer-social a svg { width: 20px; height: 20px; }
.gallery-preview-section h2 { text-align: center; margin-bottom: 2.5rem; }
.gallery-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.gallery-preview-card { display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; position: relative; text-decoration: none; background: var(--bg-page); }
.gallery-preview-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-preview-card:hover img { transform: scale(1.05); }
.gallery-preview-placeholder { width: 100%; height: 100%; background: var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 2rem; }
.gallery-preview-card span { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.5rem 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-preview-cta { text-align: center; }
.blog-preview-cta { text-align: center; margin-top: 2rem; }
.gallery-preview-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.event-card-placeholder { width: 100%; height: 200px; background: var(--bg-page); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.event-card-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.events-header { margin-bottom: 2rem; }

/* Category filter nav */
.events-category-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.events-category-filter a { padding: 0.3rem 0.85rem; border-radius: 4px; border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.875rem; transition: background 0.15s var(--ease), color 0.15s; }
.events-category-filter a:hover, .events-category-filter a.active { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

/* Featured block */
.events-featured { margin-bottom: 3rem; padding: 2rem; background: var(--bg-page); border-radius: var(--radius-lg); }
.events-featured-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.events-featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.events-all-title { font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; }

/* Event grid */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.event-card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.event-card picture { display: block; }
.event-card picture img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.event-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.event-card-body h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.event-card-body h3 a { color: var(--text-primary); }
.event-card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.event-card-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.event-card--featured { border-color: var(--accent); }
.event-card--featured .event-card-body h3 a { color: var(--accent-hover); }

/* Status variants */
.event-card--postponed { border-color: #e67e22; }
.event-card--cancelled { opacity: 0.7; border-color: #c0392b; }

/* Event meta */
.event-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.8125rem; color: var(--text-secondary); }
.event-date, .event-time, .event-location { white-space: nowrap; }

/* Event category label */
.event-category { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.event-category a { color: inherit; }
.event-category a:hover { text-decoration: underline; }

/* Status badge */
.event-status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 3px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.event-status-badge--postponed { background: #fef3cd; color: #b45309; }
.event-status-badge--cancelled  { background: #fde8e8; color: #b91c1c; }

/* Card link */
.event-card-link { margin-top: auto; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.event-card-link:hover { text-decoration: underline; }

/* ── Event Detail ── */
.event-detail { padding: 4rem 0; }
.event-status-notice { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 2rem; font-size: 0.95rem; }
.event-status-notice--postponed { background: #fef3cd; color: #92400e; border-left: 4px solid #f59e0b; }
.event-status-notice--cancelled  { background: #fde8e8; color: #991b1b; border-left: 4px solid #ef4444; }
.event-detail-header { margin-bottom: 2rem; }
.event-detail-header h1 { font-size: 2.25rem; line-height: 1.25; margin: 0.5rem 0 1rem; }
.event-detail-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.9375rem; color: var(--text-secondary); }
.event-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.event-meta-icon { font-size: 1rem; }
.meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.7;
}
.meta-icon svg {
    width: 100%;
    height: 100%;
}
.event-detail-image { margin-bottom: 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.event-detail-image img, .event-detail-image picture img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.event-detail-image picture { display: block; }
.event-detail-excerpt { margin-bottom: 1.5rem; font-size: 1.125rem; color: var(--text-secondary); line-height: 1.65; }
.event-detail-content { margin-bottom: 2rem; }
.event-detail-content.prose { line-height: 1.75; }
.event-detail-content.prose p { margin-bottom: 1rem; }
.event-detail-content.prose h2, .event-detail-content.prose h3 { margin: 1.5rem 0 0.75rem; }
.event-detail-footer { padding-top: 2rem; border-top: 1px solid var(--border); }
.btn-back { color: var(--text-secondary); font-size: 0.9375rem; }
.btn-back:hover { color: var(--accent); }

/* Pagination (shared) */
.pagination { display: flex; gap: 0.5rem; margin-top: 2rem; justify-content: center; }
.pagination-btn { padding: 0.4rem 0.85rem; border: 1px solid var(--border); border-radius: 4px; color: var(--text-secondary); font-size: 0.875rem; }
.pagination-btn:hover { background: var(--bg-page); text-decoration: none; }
.pagination-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.events-preview-section h2 { text-align: center; margin-bottom: 2rem; }
.events-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.events-preview-cta { text-align: center; margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-list > .nav-item { display: block; }
    .nav-list > .nav-item > a {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 0; min-height: 48px;
        border-bottom: 1px solid var(--border);
        border-radius: 0; background: none;
    }
    .nav-list > .nav-item > a:hover { background: rgba(230,57,70,0.06); }
    .nav-list > .nav-item > a.active {
        border-left: 3px solid var(--accent);
        padding-left: 12px;
    }
    .nav-list > .nav-item > a.active::after { display: none; }
    .sub-menu::before, .sub-menu::after { display: none; }
    .sub-menu .nav-item > a {
        padding: 10px 20px 10px 40px;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }
    .sub-menu .nav-item > a:hover {
        background: rgba(230,57,70,0.06);
        color: var(--accent);
        border-left: none;
    }
    .sub-menu--flyout {
        position: static !important;
        margin-left: 0;
        background: var(--bg-page);
    }
    .sub-menu--flyout::after { display: none; }
    .sub-menu--flyout .nav-item > a {
        padding-left: 60px;
        font-size: 13px;
    }
    .nav-item.has-children::after { display: none; }
    .event-detail-header h1 { font-size: 1.875rem; }
    .download-detail-header h1 { font-size: 1.75rem; }
    .event-detail   { padding: 2.5rem 0; }
    .download-detail { padding: 2.5rem 0; }
    .section--cols-2 .features-grid, .section--cols-2 .topic-cards-grid, .section--cols-2 .highlight-grid,
    .section--cols-3 .features-grid, .section--cols-3 .topic-cards-grid, .section--cols-3 .highlight-grid,
    .section--cols-4 .features-grid, .section--cols-4 .topic-cards-grid, .section--cols-4 .highlight-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .testimonials--staggered .testimonial-card:nth-child(even) { margin-top: 0; }
    .hero--layout-boxed > .container { padding: 2rem 1.75rem; border-radius: var(--radius-lg); }
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}
.breadcrumb-item.breadcrumb-current span {
    color: var(--text-primary);
    font-weight: 500;
}
@media (max-width: 768px) {
    .breadcrumb-item { font-size: 0.75rem; }
}
.downloads-header { margin-bottom: 2rem; }

/* Search bar */
.downloads-search-form { margin: 1.25rem 0; }
.search-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}
.search-btn {
    padding: 0.5rem 1.1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
}
.search-btn:hover { opacity: 0.9; }
.search-clear {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.2rem 0.4rem;
}

/* Category filter */
.downloads-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}
.downloads-category-filter a {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s var(--ease), color 0.15s, border-color 0.15s;
}
.downloads-category-filter a:hover { background: var(--bg-page); text-decoration: none; }
.downloads-category-filter a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Card grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}
.download-card-image img,
.download-card-image picture img { width: 100%; height: 180px; object-fit: cover; display: block; }
.download-card-image picture { display: block; }
.download-card-placeholder {
    height: 100px;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-placeholder-ext {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}
.download-card-body { padding: 1rem 1.125rem 1rem; flex: 1; display: flex; flex-direction: column; }
.download-category { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.download-category a { color: var(--accent); text-decoration: none; }
.download-category a:hover { text-decoration: underline; }
.download-card-body h3 { font-size: 1.0625rem; margin: 0.4rem 0 0.5rem; line-height: 1.35; }
.download-card-body h3 a { color: var(--text-primary); text-decoration: none; }
.download-card-body h3 a:hover { color: var(--accent); }
.download-excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; flex: 1; margin-bottom: 0.75rem; }
.download-version { font-size: 0.75rem; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 0.1rem 0.5rem; border-radius: 3px; display: inline-block; margin-bottom: 0.5rem; }
.download-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.625rem; border-top: 1px solid var(--border); }
.download-ext, .download-ext-badge { font-size: 0.7rem; font-weight: 700; background: var(--accent); color: #fff; padding: 0.1rem 0.45rem; border-radius: 3px; letter-spacing: 0.03em; }
.download-size { font-size: 0.8125rem; color: var(--text-secondary); }
.btn-download-detail { font-size: 0.8125rem; color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-download-detail:hover { text-decoration: underline; }
.download-card-link { font-size: 0.8125rem; color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.download-card-link:hover { text-decoration: underline; }

/* Detail page */
.download-detail { padding: 3rem 0; }
.download-detail-header { margin-bottom: 1.5rem; }
.download-detail-header h1 { font-size: 2rem; margin: 0.4rem 0 0; line-height: 1.25; }
.download-detail-image { margin-bottom: 2rem; border-radius: var(--radius-md); overflow: hidden; }
.download-detail-image img,
.download-detail-image picture img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.download-detail-image picture { display: block; }
.download-detail-excerpt { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.5rem; }
.download-detail-content { margin-bottom: 2rem; }
.download-detail-content.prose { line-height: 1.75; }
.download-detail-content.prose p { margin-bottom: 1rem; }
.download-detail-content.prose h2,
.download-detail-content.prose h3 { margin: 1.5rem 0 0.75rem; }
.download-cta { margin: 2rem 0; }
.download-file-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f0f9ff;
    border: 1px solid #bde0f9;
    border-radius: var(--radius-md);
}
.download-file-icon { flex-shrink: 0; }
.download-ext-badge--lg { font-size: 0.875rem; padding: 0.25rem 0.6rem; border-radius: 4px; }
.download-file-info { flex: 1; min-width: 0; }
.download-file-name { display: block; font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-file-size { display: block; font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.15rem; }
.btn-download, .btn.btn-download {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.btn-download:hover { opacity: 0.88; text-decoration: none; }
.download-detail-footer { padding-top: 2rem; border-top: 1px solid var(--border); }
.btn-back { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.btn-back:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 768px) {
    .downloads-grid { grid-template-columns: 1fr; }
    .download-file-card { flex-wrap: wrap; }
}

/* ── Contact Form (Phase 11b) ───────────────────────────────────────────── */
.contact-form-section { margin-top: 2.5rem; }
.contact-form-heading { font-size: 1.375rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--text-primary); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form-honeypot { display: none; }
.contact-form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-form-label { font-weight: 600; font-size: 0.9375rem; }
.contact-form-input,
.contact-form-textarea { width: 100%; padding: 0.6rem 0.875rem; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--text-primary); transition: border-color 0.15s; }
.contact-form-input:focus,
.contact-form-textarea:focus { outline: none; border-color: var(--accent); }
.contact-form-input.is-error,
.contact-form-textarea.is-error { border-color: #e53e3e; }
.contact-form-textarea { resize: vertical; }
.contact-form-error { color: #c53030; font-size: 0.875rem; }
.contact-form-submit { align-self: flex-start; }
.contact-alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 0.9375rem; }
.contact-alert--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.contact-alert--error { background: #fff5f5; border: 1px solid #fed7d7; color: #9b2c2c; }

/* Overlay via ::after – default: on section (full/split/center) */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

/* Container above overlay */
.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Hero v2: Boxed – overlay scoped to container, not section */
.hero--layout-boxed::after { display: none; }
.hero--layout-boxed > .container {
    position: relative;
    overflow: hidden;
}
.hero--layout-boxed > .container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}
.hero--layout-boxed > .container > * { position: relative; z-index: 2; }

/* Text colour modifiers */
.hero--text-light .hero-title,
.hero--text-light .hero-eyebrow,
.hero--text-light .hero-subtitle { color: #fff; }
.hero--text-dark .hero-title,
.hero--text-dark .hero-eyebrow,
.hero--text-dark .hero-subtitle { color: #111; }

/* Canonical colour tokens (1.0.10+) */
.hero--text-white .hero-title,
.hero--text-white .hero-eyebrow,
.hero--text-white .hero-subtitle { color: #ffffff; }
.hero--text-black .hero-title,
.hero--text-black .hero-eyebrow,
.hero--text-black .hero-subtitle { color: #000000; }
.hero--text-red .hero-title,
.hero--text-red .hero-eyebrow,
.hero--text-red .hero-subtitle { color: #dc2626; }
.hero--text-green .hero-title,
.hero--text-green .hero-eyebrow,
.hero--text-green .hero-subtitle { color: #16a34a; }
.hero--text-blue .hero-title,
.hero--text-blue .hero-eyebrow,
.hero--text-blue .hero-subtitle { color: var(--accent); }

/* Heading size modifiers */
.hero--hsize-sm .hero-title  { font-size: 2rem; }
.hero--hsize-md .hero-title  { font-size: 2.5rem; }
.hero--hsize-lg .hero-title  { font-size: 3.5rem; }
.hero--hsize-xl .hero-title  { font-size: 4.5rem; }

/* Heading weight modifiers */
.hero--hweight-normal .hero-title { font-weight: 400; }
.hero--hweight-medium .hero-title { font-weight: 600; }
.hero--hweight-bold   .hero-title { font-weight: 700; }
.hero--hweight-black  .hero-title { font-weight: 900; }

/* Body text size modifiers */
.hero--body-sm .hero-subtitle { font-size: 1rem; }
.hero--body-md .hero-subtitle { font-size: 1.125rem; }
.hero--body-lg .hero-subtitle { font-size: 1.375rem; }

/* Text alignment modifiers */
.hero--align-left  { text-align: left; }
.hero--align-right { text-align: right; }
.hero--align-left  .hero-subtitle,
.hero--align-left  .hero-eyebrow { margin-left: 0; }
.hero--align-right .hero-subtitle,
.hero--align-right .hero-eyebrow { margin-right: 0; margin-left: auto; }

/* Overlay strength modifiers – section level (full/split/center) */
.hero--overlay-light::after  { background: rgba(0,0,0,0.25); }
.hero--overlay-medium::after { background: rgba(0,0,0,0.45); }
.hero--overlay-heavy::after  { background: rgba(0,0,0,0.65); }

/* Overlay strength modifiers – boxed: scoped to container */
.hero--layout-boxed.hero--overlay-light > .container::after  { background: rgba(0,0,0,0.25); }
.hero--layout-boxed.hero--overlay-medium > .container::after { background: rgba(0,0,0,0.45); }
.hero--layout-boxed.hero--overlay-heavy > .container::after  { background: rgba(0,0,0,0.65); }

/* Height modifiers */
.hero--tall { min-height: 80vh; display: flex; align-items: center; }
.hero--tall > .container { width: 100%; }

/* Layout: full (content stretches to full container width) */
.hero--layout-full > .container { max-width: 100%; padding-left: 2rem; padding-right: 2rem; }

/* Layout: boxed – Hero v2: background + overlay scoped to box */
.hero--layout-boxed > .container {
    background-color: rgba(255,255,255,0.88);
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    padding: 2.5rem 3rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
}

/* Boxed without bg image: no background-size/position needed, card look */
.hero--layout-boxed:not(.hero--has-bg) > .container {
    background-color: rgba(255,255,255,0.92);
}

/* Layout: split (text left + portrait right) */
.hero--layout-split > .container { max-width: var(--wide-width); }
.hero-split-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.hero-text { flex: 1; min-width: 0; }
.hero-portrait-wrap { flex: 0 0 auto; }

/* Hero v2: Portrait inline (non-split modes) – centered above text */
.hero-portrait-inline {
    margin: 0 auto 1.5rem;
    flex: none;
}
.hero-portrait-inline .hero-portrait {
    width: 140px;
    height: 140px;
    margin: 0 auto;
}
.hero--align-left .hero-portrait-inline { margin-left: 0; margin-right: auto; }
.hero--align-right .hero-portrait-inline { margin-left: auto; margin-right: 0; }

/* Boxed + portrait inline: slightly larger */
.hero--layout-boxed .hero-portrait-inline .hero-portrait {
    width: 120px;
    height: 120px;
}

/* Portrait style modifiers */
.hero--portrait-circle .hero-portrait { border-radius: 50%; }
.hero--portrait-rounded .hero-portrait { border-radius: 1.5rem; }
.hero--portrait-square .hero-portrait { border-radius: 0; }
.hero-portrait { width: 280px; height: 280px; object-fit: cover; display: block; box-shadow: 0 8px 32px rgba(0,0,0,0.15); border-radius: 50%; }

/* Portrait shadow style modifiers */
.hero--portrait-elevated .hero-portrait { box-shadow: 0 16px 64px rgba(0,0,0,0.25); }
.hero--portrait-flat      .hero-portrait { box-shadow: none; }

/* CTA container */
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 1.75rem;
    justify-content: center;
}
.hero--align-left .hero-ctas  { justify-content: flex-start; }
.hero--align-right .hero-ctas { justify-content: flex-end; }

/* CTA layout: stacked */
.hero--cta-stacked .hero-ctas { flex-direction: column; align-items: center; max-width: 260px; margin-left: auto; margin-right: auto; }
.hero--align-left.hero--cta-stacked  .hero-ctas { align-items: flex-start; margin-left: 0; }
.hero--align-right.hero--cta-stacked .hero-ctas { align-items: flex-end; margin-right: 0; }
.hero--cta-stacked .hero-ctas .btn { width: 100%; text-align: center; }

/* Eyebrow text */
.hero-eyebrow {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.hero--layout-boxed .hero-subtitle { max-width: 100%; }
.hero--layout-split .hero-subtitle { max-width: 100%; }

/* Responsive – Hero Presentation */
@media (max-width: 768px) {
    .hero--hsize-xl .hero-title { font-size: 2.5rem; }
    .hero--hsize-lg .hero-title { font-size: 2rem; }
    .hero-split-inner { flex-direction: column; gap: 2rem; text-align: center; }
    .hero--layout-split { text-align: center; }
    .hero--layout-split .hero-ctas { justify-content: center; }
    .hero-portrait { width: 200px; height: 200px; }
    .hero-portrait-inline .hero-portrait { width: 110px; height: 110px; }
    .hero--cta-stacked .hero-ctas { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero--layout-boxed > .container { max-width: 100%; padding: 2rem 1.75rem; border-radius: var(--radius-lg); }
}

/* Responsive – improved section/grid fixes */
@media (max-width: 480px) {
    .events-grid { grid-template-columns: 1fr; }
    .events-preview-grid { grid-template-columns: 1fr; }
    .events-featured-grid { grid-template-columns: 1fr; }
    .event-detail   { padding: 2rem 0; }
    .download-detail { padding: 2rem 0; }
    .event-detail-header h1 { font-size: 1.5rem; }
    .download-detail-header h1 { font-size: 1.4375rem; }
    .error-section { padding: 4rem 0; }
    .hero--layout-boxed > .container { padding: 1.5rem 1.25rem; border-radius: var(--radius-md); }
    .hero-portrait-inline .hero-portrait { width: 90px; height: 90px; }
    .contact-form-submit { align-self: stretch; }
    .contact-form-submit.btn, .contact-form-submit { width: 100%; text-align: center; }
}

/* Visible focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Suppress outline for mouse/touch (already handled by :hover) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex="0"]:focus:not(:focus-visible) {
    outline: none;
}

/* Contact form: replace outline:none with visible focus for keyboard users */
.contact-form-input:focus-visible,
.contact-form-textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}

/* === Section Color Schemes (Unified v3.4) === */
.section--scheme-primary { background: var(--scheme-primary-bg); color: var(--scheme-primary-text); }
.section--scheme-primary h2,
.section--scheme-primary h3 { color: var(--scheme-primary-text); }
.section--scheme-primary p,
.section--scheme-primary .section-subtitle,
.section--scheme-primary .intro-text { color: var(--scheme-primary-muted); }
.section--scheme-primary .testimonial-card,
.section--scheme-primary .feature-card,
.section--scheme-primary .highlight-card { color: var(--text-primary, var(--text)); }
.section--scheme-primary .testimonial-text,
.section--scheme-primary .feature-card p { color: var(--text-secondary, var(--text-muted)); }
.section--scheme-primary .testimonial-author-name { color: var(--text-primary, var(--text)); }
.section--scheme-primary .testimonial-author-role { color: var(--text-secondary, var(--text-muted)); }

.section--scheme-alt { background: var(--scheme-alt-bg); color: var(--scheme-alt-text); }

.section--scheme-dark { background: var(--scheme-dark-bg); color: var(--scheme-dark-text); }
.section--scheme-dark h2,
.section--scheme-dark h3,
.section--scheme-dark p { color: var(--scheme-dark-text); }
.section--scheme-dark .testimonial-card,
.section--scheme-dark .feature-card { color: var(--scheme-dark-text); }

.section--scheme-none { background: transparent; }

/* Section text color overrides – must cover ALL card-internal elements.
   IMPORTANT for future Premium Themes: every element that sets an explicit
   color: inside a homepage section MUST be listed here, otherwise the
   section_text_color admin setting will not override it.
   See docs/premium-theme-checklist.md for the full checklist. */
.section--text-black,
.section--text-black h2,
.section--text-black h3,
.section--text-black h4,
.section--text-black p,
.section--text-black li,
.section--text-black span,
.section--text-black a,
.section--text-black .section-subtitle,
.section--text-black .intro-text,
.section--text-black .feature-card p,
.section--text-black .feature-card h3,
.section--text-black .feature-card-link,
.section--text-black .topic-card-title,
.section--text-black .topic-card-text,
.section--text-black .topic-card-link,
.section--text-black .highlight-card-title,
.section--text-black .highlight-card-text,
.section--text-black .highlight-card-source,
.section--text-black .highlight-card-link,
.section--text-black .blog-card-body p,
.section--text-black .blog-card-body h2 a,
.section--text-black .blog-card-title a,
.section--text-black .blog-card-category,
.section--text-black .blog-card-excerpt,
.section--text-black .blog-card-readmore,
.section--text-black .blog-card-date,
.section--text-black .blog-category,
.section--text-black .blog-meta,
.section--text-black .blog-read-time,
.section--text-black .event-card-body p,
.section--text-black .event-card-body h3 a,
.section--text-black .event-card-meta,
.section--text-black .event-card-link,
.section--text-black .cta-text,
.section--text-black .cta-eyebrow { color: #1a202c !important; }
.section--text-white,
.section--text-white h2,
.section--text-white h3,
.section--text-white h4,
.section--text-white p,
.section--text-white li,
.section--text-white span,
.section--text-white a,
.section--text-white .section-subtitle,
.section--text-white .intro-text,
.section--text-white .feature-card p,
.section--text-white .feature-card h3,
.section--text-white .feature-card-link,
.section--text-white .topic-card-title,
.section--text-white .topic-card-text,
.section--text-white .topic-card-link,
.section--text-white .highlight-card-title,
.section--text-white .highlight-card-text,
.section--text-white .highlight-card-source,
.section--text-white .highlight-card-link,
.section--text-white .blog-card-body p,
.section--text-white .blog-card-body h2 a,
.section--text-white .blog-card-title a,
.section--text-white .blog-card-category,
.section--text-white .blog-card-excerpt,
.section--text-white .blog-card-readmore,
.section--text-white .blog-card-date,
.section--text-white .blog-category,
.section--text-white .blog-meta,
.section--text-white .blog-read-time,
.section--text-white .event-card-body p,
.section--text-white .event-card-body h3 a,
.section--text-white .event-card-meta,
.section--text-white .event-card-link,
.section--text-white .cta-text,
.section--text-white .cta-eyebrow { color: #ffffff !important; }
.section--text-theme,
.section--text-theme h2,
.section--text-theme h3,
.section--text-theme h4,
.section--text-theme p,
.section--text-theme li,
.section--text-theme span,
.section--text-theme a,
.section--text-theme .section-subtitle,
.section--text-theme .intro-text,
.section--text-theme .feature-card p,
.section--text-theme .feature-card h3,
.section--text-theme .feature-card-link,
.section--text-theme .topic-card-title,
.section--text-theme .topic-card-text,
.section--text-theme .topic-card-link,
.section--text-theme .highlight-card-title,
.section--text-theme .highlight-card-text,
.section--text-theme .highlight-card-source,
.section--text-theme .highlight-card-link,
.section--text-theme .blog-card-body p,
.section--text-theme .blog-card-body h2 a,
.section--text-theme .blog-card-title a,
.section--text-theme .blog-card-category,
.section--text-theme .blog-card-excerpt,
.section--text-theme .blog-card-readmore,
.section--text-theme .blog-card-date,
.section--text-theme .blog-category,
.section--text-theme .blog-meta,
.section--text-theme .blog-read-time,
.section--text-theme .event-card-body p,
.section--text-theme .event-card-body h3 a,
.section--text-theme .event-card-meta,
.section--text-theme .event-card-link,
.section--text-theme .cta-text,
.section--text-theme .cta-eyebrow { color: var(--theme-primary, var(--accent)) !important; }

/* Alignment override */
.section--align-left { text-align: left !important; }
.section--align-left h2 { text-align: left !important; }
.section--align-left p { margin-left: 0 !important; max-width: none !important; }

/* Card style variants */
.section--card-bordered .feature-card { border: 1px solid var(--border) !important; box-shadow: none !important; }
.section--card-flat .feature-card { box-shadow: none !important; background: transparent !important; border: none !important; }

/* Column tokens */
.section--cols-2 .features-grid, .section--cols-2 .topic-cards-grid, .section--cols-2 .highlight-grid { grid-template-columns: repeat(2, 1fr); }
.section--cols-3 .features-grid, .section--cols-3 .topic-cards-grid, .section--cols-3 .highlight-grid { grid-template-columns: repeat(3, 1fr); }
.section--cols-4 .features-grid, .section--cols-4 .topic-cards-grid, .section--cols-4 .highlight-grid { grid-template-columns: repeat(4, 1fr); }

/* Max-width tokens */
.section--maxw-sm .container { max-width: 540px; }
.section--maxw-md .container { max-width: 720px; }
.section--maxw-lg .container { max-width: 960px; }

/* Topic and Highlight card modifier support */
.section--card-bordered .topic-card { border: 1px solid var(--border); box-shadow: none; }
.section--card-flat .topic-card { box-shadow: none; background: transparent; border: none; }
.section--card-bordered .highlight-card { border: 1px solid var(--border); box-shadow: none; }
.section--card-flat .highlight-card { box-shadow: none; background: transparent; border: none; }
.topic-cards-section h2 { text-align: center; margin-bottom: 1rem; }
.topic-card--plain { cursor: default; }
.topic-card--plain:hover { transform: none; }
.topic-card-link { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.highlight-grid-section h2 { text-align: center; margin-bottom: 1rem; }
.highlight-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.highlight-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.highlight-card-text { color: var(--text-secondary); font-size: 0.9375rem; flex: 1; }
.highlight-card-source { font-size: 0.8125rem; color: var(--text-secondary); font-style: italic; margin-top: 0.5rem; }
.highlight-card-link { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.stats-header { text-align: center; margin-bottom: 3rem; }
.stats-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
.stats-subtitle { font-size: 1.0625rem; color: var(--text-secondary); margin-top: var(--space-sm); }
.stats--cols-2 .stats-grid { grid-template-columns: repeat(2, 1fr); }
.stats--cols-3 .stats-grid { grid-template-columns: repeat(3, 1fr); }
.stats-item-icon { margin-bottom: 0.75rem; color: var(--accent); }
.stats-prefix, .stats-suffix { font-size: 0.7em; }
.testimonials-header { text-align: center; margin-bottom: 3rem; }
.testimonials-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
.testimonials-subtitle { font-size: 1.0625rem; color: var(--text-secondary); margin-top: var(--space-sm); }
.testimonials--cols-1 .testimonials-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.testimonials--cols-3 .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonials--staggered .testimonial-card:nth-child(even) { margin-top: 3rem; }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-quote-mark { font-size: 4rem; line-height: 1; color: var(--accent); opacity: 0.2; position: absolute; top: var(--space-lg); left: 2rem; font-family: Georgia, serif; }
.testimonial-rating { display: flex; gap: 0.25rem; margin-top: var(--space-md); color: var(--accent); }
.testimonial-star { opacity: 0.3; }
.testimonial-star.star--filled { opacity: 1; }
.scroll-to-top:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* ── Theme Toggle Icons ──────────────────────────────────────── */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
html:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
    html:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}
.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}
.header-search-toggle svg {
    display: block;
    pointer-events: none;
}
.header-search-dropdown[hidden] {
    display: none;
}
@keyframes searchDropIn {
    to { opacity: 1; transform: translateY(0); }
}
.header-search-dropdown button[type="submit"]:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.header-search-dropdown button[type="submit"] svg {
    display: block;
}
.search-input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color, #ddd);
    border-right: none;
    border-radius: var(--radius-md, 6px) 0 0 var(--radius-md, 6px);
    outline: none;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #1a1a1a);
    -webkit-appearance: none;
}
.search-input:focus {
    border-color: var(--accent);
}
.search-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: 0 var(--radius-md, 6px) var(--radius-md, 6px) 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}
.search-submit:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.search-submit svg { display: block; }

/* Search Results */
.search-result-count {
    color: var(--text-muted, #666);
    margin-bottom: 1.5rem;
    text-align: center;
}
.search-error {
    text-align: center;
    color: #dc2626;
    margin-bottom: 1rem;
}
.search-results {
    max-width: 800px;
    margin: 0 auto;
}
.search-result-card {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color, #eee);
}
.search-result-card:last-child {
    border-bottom: none;
}
.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}
.search-result-type {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm, 4px);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-muted, #666);
}
.search-result-type svg { width: 14px; height: 14px; }
.search-result-type--blog { background: #dbeafe; color: var(--accent-hover); }
.search-result-type--event { background: #fef3c7; color: #92400e; }
.search-result-type--download { background: #d1fae5; color: #065f46; }
.search-result-date {
    color: var(--text-muted, #999);
    font-size: 0.8125rem;
}
.search-result-title {
    font-size: 1.125rem;
    margin: 0.25rem 0;
    line-height: 1.4;
}
.search-result-title a {
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
}
.search-result-title a:hover {
    color: var(--accent);
}
.search-result-excerpt {
    color: var(--text-secondary, #555);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0.25rem 0;
}
.search-result-excerpt mark,
.search-result-title mark {
    background: #fef08a;
    color: inherit;
    padding: 0 0.125rem;
    border-radius: 2px;
}
.search-result-link {
    color: var(--accent);
    font-size: 0.8125rem;
    text-decoration: none;
    opacity: 0.7;
}
.search-result-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 3rem 0;
}
.search-no-results svg {
    color: var(--text-muted, #ccc);
    margin-bottom: 1rem;
}
.search-no-results p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    .search-input {
        border-right: 2px solid var(--border-color, #ddd);
        border-radius: var(--radius-md, 6px);
        border-bottom: none;
    }
    .search-input:focus {
        border-color: var(--accent);
    }
    .search-submit {
        border-radius: var(--radius-md, 6px);
        justify-content: center;
        margin-top: 0.5rem;
    }
}
.article-reading-time svg { flex-shrink: 0; vertical-align: middle; }
.article-toc-title svg { flex-shrink: 0; }
.article-toc-list li a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s;
}
.article-toc-list li a:hover { text-decoration: underline; opacity: 0.8; }
.related-post-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Sticky Header (v3.3.0) ─────────────────────────────────────────── */
html[data-sticky-header] .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
html[data-sticky-header] .site-header.is-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ══════════════════════════════════════════════════════════════
   EDITORIAL PREMIUM DIFFERENTIATION
   ══════════════════════════════════════════════════════════════ */

/* ── Hero: Editorial 2-column layout ─────────────────────────── */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    color: var(--border);
}
.hero-image-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-section .hero-image { order: -1; }
    .hero-eyebrow { justify-content: center; }
    .hero-ctas { justify-content: center; }
}

/* ── Hero: Editorial label line + highlight word ─────────────── */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}
.hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}
.hero-title em {
    font-style: normal;
    color: var(--accent);
}

/* ── Hero: asymmetric layout – image in 2nd column ───────────── */
.hero-section .hero-image {
    position: relative;
    inset: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-img);
    aspect-ratio: 4/3;
    z-index: auto;
}

/* ── CTA: Newsletter form ─────────────────────────────────────── */
.cta-newsletter {
    max-width: 520px;
    margin: 0 auto;
}
.cta-newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cta-newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration) var(--ease);
}
.cta-newsletter-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.cta-newsletter-input:focus {
    border-color: var(--accent);
}
.cta-newsletter-form .btn-cta {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .cta-newsletter-form {
        flex-direction: column;
    }
    .cta-newsletter-input {
        border-right: 1px solid rgba(255,255,255,0.15);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        border-bottom: none;
    }
    .cta-newsletter-form .btn-cta {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
}

/* ── Footer: 4-column + flex bottom ──────────────────────────── */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    text-align: left;
}
.footer-legal {
    display: flex;
    gap: var(--space-lg);
}
.footer-legal a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
.footer-legal a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
}

/* ── Read Progress Bar ───────────────────────────────────────── */
.read-progress {
    position: fixed;
    top: 64px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ── Typographic rule / accent ───────────────────────────────── */
.rule--accent {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border: none;
    margin: var(--space-lg) auto;
}

/* ── Scroll Animations (v3.3.0) ──────────────────────────────────────── */
html[data-scroll-animations] .animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
html[data-scroll-animations] .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Editorial: Magazine Grid for Blog Preview ─────────────── */
.editorial-magazine .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}
.editorial-magazine .section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    text-align: left;
    margin-bottom: 0;
}
.editorial-magazine .view-all {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    text-decoration: none;
}
.editorial-magazine .view-all::after {
    content: '\2192';
    transition: transform var(--duration) var(--ease);
}
.editorial-magazine .view-all:hover::after { transform: translateX(4px); }

.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
}
.magazine-card--featured { grid-row: 1 / 3; }
.magazine-card--featured .magazine-card-image { aspect-ratio: 3/4; }
.magazine-card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.magazine-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.magazine-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.magazine-card-image { aspect-ratio: 16/9; overflow: hidden; }
.magazine-card-image img,
.magazine-card-image picture img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.magazine-card:hover .magazine-card-image img { transform: scale(1.05); }
.magazine-card-body { padding: var(--space-lg); }
.magazine-card-category {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: block;
}
.magazine-card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}
.magazine-card--featured .magazine-card-title { font-size: 1.5rem; }
.magazine-card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.magazine-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

@media (max-width: 1024px) {
    .magazine-grid { grid-template-columns: 1fr 1fr; }
    .magazine-card--featured { grid-row: auto; }
    .magazine-card--featured .magazine-card-image { aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
    .magazine-grid { grid-template-columns: 1fr; }
    .editorial-magazine .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
}

/* ── Editorial: Features – centered subtitle ───────────────── */
.features-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
