/* ITSWEBER CMS – Default Theme */

:root {
    /* ── Theme Colors ── */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-primary-bg: rgba(37, 99, 235, 0.06);
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-heading: #111827;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-bg-card: #ffffff;
    --color-border: #e5e7eb;

    /* ── Typography ── */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ── Layout ── */
    --container-width: 1140px;
    --header-height: 72px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.16);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.10);

    /* ── Border Radius ── */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ── Transitions ── */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration-base: 0.2s;
    --duration-slow: 0.3s;

    /* ── Plugin Hooks (for visual plugins to override) ── */
    --plugin-hero-overlay: rgba(0,0,0,0.35);
    --plugin-card-radius: var(--radius-md);
    --plugin-card-shadow-hover: var(--shadow-card-hover);
    --plugin-section-spacing: 5rem;
    --plugin-accent-color: var(--color-primary);
    --plugin-accent-gradient: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));

    /* ── Spacing Scale (8px Base) ── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* ── Section Spacing ── */
    --section-y: clamp(3rem, 6vw, 5rem);

    /* ── Responsive Typography ── */
    --text-hero: clamp(2.5rem, 6vw, 4.5rem);
    --text-h2: clamp(1.5rem, 3vw, 2.25rem);
    --text-h3: clamp(1.0625rem, 1.5vw, 1.25rem);
    --text-body: 1rem;
    --text-sm: 0.875rem;
    --text-xs: 0.8125rem;

    /* ── Accent Gradient ── */
    --accent-gradient: linear-gradient(135deg, #2563eb, #06b6d4);

    /* ── Glassmorphism ── */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --glass-shadow-hover: 0 16px 48px rgba(37, 99, 235, 0.12);

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

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; }

/* Header */
.site-header {
    background: rgba(255,255,255,0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8, 2rem); }

.site-logo { text-decoration: none; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--color-text); letter-spacing: -0.025em; }
.site-logo img { height: 40px; }

.main-nav { display: flex; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.nav-list { list-style: none; display: flex; gap: 1.25rem; }
.nav-list a { color: var(--color-text-light); text-decoration: none; font-size: 0.9375rem; font-weight: 500; transition: color var(--duration-fast) var(--ease); }
.nav-list a:hover, .nav-list a.active { color: var(--color-primary); text-decoration: none; }

/* ── Dropdown Navigation (v3.3.0) ───────────────────────────────── */

/* 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 var(--duration-fast, 0.15s) var(--ease, ease),
                background var(--duration-fast, 0.15s) var(--ease, ease);
    white-space: nowrap;
}
.nav-list > .nav-item > a:hover,
.nav-list > .nav-item.is-open > a {
    color: var(--color-primary);
    background: var(--color-primary-bg, #e8f4fb);
}

/* Active state – bottom accent bar */
.nav-list > .nav-item > a.active {
    position: relative;
    color: var(--color-primary);
    font-weight: 600;
}
.nav-list > .nav-item > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

/* Chevron (inside <a>, points down) */
.nav-chevron {
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4.5px solid currentColor;
    opacity: 0.7;
    transition: transform 200ms cubic-bezier(0.0, 0, 0.2, 1);
    margin-top: 1px;
}
.nav-item.is-open > a .nav-chevron {
    transform: rotate(180deg);
}

/* Flyout chevron (inside <a>, points right) */
.nav-flyout-chevron {
    display: inline-block;
    width: 0; height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4.5px solid currentColor;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}
.nav-item--sub:hover > a .nav-flyout-chevron {
    opacity: 1;
    transform: translateX(2px);
}

/* ── Dropdown Panel (Level 2) ────────────────────────────────────── */
.sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--color-bg, #fff);
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    padding: 8px 0;
    list-style: none;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms cubic-bezier(0.0,0,0.2,1),
                transform 200ms cubic-bezier(0.0,0,0.2,1),
                visibility 0s linear 200ms;
    overflow: hidden;
}

/* Top accent line */
.sub-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary, #15779b), var(--color-primary-light, #2ea3f2));
    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;
}

/* Open state */
.nav-item.has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 200ms cubic-bezier(0.0,0,0.2,1),
                transform 200ms cubic-bezier(0.0,0,0.2,1),
                visibility 0s linear 0s;
}

/* 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(--color-text, #2b2b2b);
    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: var(--color-primary-bg, #e8f4fb);
    color: var(--color-primary, #15779b);
    font-weight: 500;
    border-left-color: var(--color-primary, #15779b);
}
.sub-menu .nav-item > a.active {
    color: var(--color-primary, #15779b);
    font-weight: 500;
    border-left-color: var(--color-primary, #15779b);
}

/* ── 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(--color-primary-light, #2ea3f2), var(--color-primary, #15779b));
}
.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(--color-bg, #fff);
    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(--color-primary-light, #2ea3f2);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sub-menu, .nav-chevron, .nav-flyout-chevron { transition: none !important; }
}

/* Hero */
.hero-section {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background: var(--color-bg-alt);
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* 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%; }

.hero-title { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.25rem; color: var(--color-text-light); max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.75rem; font-weight: 500; border-radius: var(--radius-sm); font-size: 0.9375rem; text-decoration: none; transition: background var(--duration-fast) var(--ease); }
.btn-primary { background: var(--accent-gradient); color: #fff; border: none; border-radius: var(--radius-full); transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.25); text-decoration: none; }
.btn-secondary { background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-full); }
.btn-hero { background: var(--accent-gradient); color: #fff; padding: 0.875rem 2rem; font-size: 1rem; border: none; border-radius: var(--radius-full); transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease); }
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.25); text-decoration: none; }
.btn-cta { background: var(--color-primary); color: #fff; }
.btn-cta:hover { background: var(--color-primary-dark); text-decoration: none; }

/* Sections */
.intro-section, .features-section, .blog-preview-section, .cta-section, .page-section, .blog-section, .gallery-section {
    padding: var(--section-y) 0;
}

.intro-section { text-align: center; }
.intro-section h2, .features-section h2, .blog-preview-section h2, .cta-section h2 { font-size: var(--text-h2); font-weight: 700; margin-bottom: 1rem; }
.intro-section p { font-size: 1.125rem; color: var(--color-text-light); max-width: 680px; margin: 0 auto; }

/* Section Subtitle */
.section-subtitle { font-size: 1.0625rem; color: var(--color-text-light); margin-top: -0.5rem; margin-bottom: 1.5rem; }
.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(--color-text-light); max-width: 680px; margin: 0 auto; line-height: 1.7; }
.intro-cta { margin-top: 2rem; }

.features-section {
    background: var(--color-bg-alt);
    position: relative;
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(var(--section-y) + 40px);
}
.features-section h2 { text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.feature-card { background: var(--glass-bg); padding: var(--space-10); border-radius: var(--radius-xl); border: 1px solid var(--glass-border); border-top: 3px solid var(--color-primary); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--glass-shadow); transition: transform var(--duration-slow) var(--ease), box-shadow var(--duration-slow) var(--ease), border-color var(--duration-slow) var(--ease); }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--color-text-light); font-size: 0.9375rem; }

.feature-card-link { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--color-primary); }
.feature-card-link:hover { text-decoration: underline; }

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow-hover); border-color: var(--color-primary-light); }

.cta-section { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #0f172a 100%); text-align: center; position: relative; overflow: hidden; color: #fff; }
.cta-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.cta-section > .container { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.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; }

/* Page */
.page-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.page-content { font-size: 1.0625rem; line-height: 1.8; }
.page-content p { margin-bottom: 1.25rem; }
.module-intro { margin-bottom: 2rem; }

/* Blog */
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.blog-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-image { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s var(--ease); }
.blog-card:hover .blog-card-image { transform: scale(1.03); }
.blog-card-body { padding: 1.25rem; margin-top: -1.5rem; position: relative; background: var(--color-bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 1; }
.blog-card-body h2 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.blog-card-body h2 a { color: var(--color-text); }
.blog-card-body h2 a:hover { color: var(--color-primary); text-decoration: none; }
.blog-card-body p { font-size: 0.9375rem; color: var(--color-text-light); }
.blog-category { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--color-primary); }
.blog-meta { display: flex; gap: 1rem; margin-top: 0.75rem; font-size: 0.8125rem; color: var(--color-text-light); }

/* Article */
.blog-article { padding: 3rem 0 5rem; }
.article-image { width: 100%; border-radius: var(--radius-md); margin-bottom: 2rem; }
.article-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; font-size: 0.875rem; color: var(--color-text-light); }
.article-category { color: var(--color-primary); font-weight: 500; }
.article-content { font-size: 1.0625rem; line-height: 1.8; }
.article-content p { margin-bottom: 1.25rem; }
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }

/* 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 – Album overview */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-card { display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); transition: box-shadow var(--duration-base) var(--ease); }
.gallery-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.gallery-card-image { width: 100%; height: 220px; object-fit: cover; }
.gallery-card-placeholder { height: 220px; background: var(--color-bg-alt); }
.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(--color-text-light); }

/* 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(--color-bg-alt);
    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(--color-primary);
    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-xl);
}

.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 var(--duration-fast) 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 var(--duration-fast) 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-code { font-size: 6rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.error-message { font-size: 1.25rem; color: var(--color-text-light); margin: 1rem 0 2rem; }

/* Footer */
.site-footer { background: #111827; color: rgba(255,255,255,0.78); padding: 0; }
.site-footer::before { content: ''; display: block; height: 2px; background: var(--accent-gradient); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-12); padding: var(--space-16) 0; }
.footer-brand { min-width: 200px; }
.footer-brand-logo { display: inline-block; text-decoration: none; margin-bottom: var(--space-4); }
.footer-brand-logo img { height: 36px; width: auto; opacity: 0.9; }
.footer-brand-text { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: var(--space-4); }
.footer-col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: var(--space-4); }
.footer-nav { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-contact-line { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: var(--space-2); }
.footer-contact-line a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-contact-line a:hover { color: #fff; }
.footer-hours { font-size: 0.8125rem; opacity: 0.5; }
.footer-social { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.footer-social a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s, transform 0.2s; }
.footer-social a:hover { color: #fff; transform: translateY(-2px); }
.footer-social a svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: var(--space-5) 0; text-align: center; }
.footer-copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.4); }

/* Gallery Preview Section (Homepage) */
.gallery-preview-section { padding: var(--section-y) 0; }
.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(--color-bg-alt); }
.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(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text-light); 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; }
.blog-card-placeholder { width: 100%; height: 200px; background: var(--color-bg-alt, #f5f5f5); display: flex; align-items: center; justify-content: center; color: var(--color-text-light, #999); }
.blog-card-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.gallery-preview-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.event-card-placeholder { width: 100%; height: 200px; background: var(--color-bg-alt, #f5f5f5); display: flex; align-items: center; justify-content: center; color: var(--color-text-light, #999); }
.event-card-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }

/* ── Events (Phase 4b) ──────────────────────────────────────────────────── */
.events-section { padding: var(--section-y) 0; }
.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(--color-border); color: var(--color-text-light); font-size: 0.875rem; transition: background var(--duration-fast) var(--ease), color 0.15s; }
.events-category-filter a:hover, .events-category-filter a.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); text-decoration: none; }

/* Featured block */
.events-featured { margin-bottom: 3rem; padding: 2rem; background: var(--color-bg-alt); border-radius: var(--radius-lg); }
.events-featured-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--color-text-light); 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(--color-text-light); 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 */
.event-card { border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg); border: 1px solid var(--color-border); transition: box-shadow var(--duration-base) var(--ease); display: flex; flex-direction: column; }
.event-card:hover { box-shadow: var(--shadow-md); }
.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(--color-text); }
.event-card-body h3 a:hover { color: var(--color-primary); text-decoration: none; }
.event-card-body p { color: var(--color-text-light); font-size: 0.9rem; line-height: 1.5; }
.event-card--featured { border-color: var(--color-primary); }
.event-card--featured .event-card-body h3 a { color: var(--color-primary-dark); }

/* 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(--color-text-light); }
.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(--color-primary); }
.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(--color-primary); }
.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(--color-text-light); }
.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(--color-primary);
    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(--color-text-light); 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(--color-border); }
.btn-back { color: var(--color-text-light); font-size: 0.9375rem; }
.btn-back:hover { color: var(--color-primary); }

/* 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(--color-border); border-radius: 4px; color: var(--color-text-light); font-size: 0.875rem; }
.pagination-btn:hover { background: var(--color-bg-alt); text-decoration: none; }
.pagination-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── Events Preview Section (Homepage, Phase 4b.1) ─────────────────────── */
.events-preview-section { padding: var(--section-y) 0; }
.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; }

/* ── end Events ──────────────────────────────────────────────────────────── */

/* Utilities */
.text-muted { color: var(--color-text-light); }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-list { display: none; flex-direction: column; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 1rem 1.5rem; gap: 0; }
    .nav-list.open { display: flex; }

    /* Mobile dropdown overrides */
    .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(--color-border, rgba(0,0,0,0.08));
        border-radius: 0; background: none;
    }
    .nav-list > .nav-item > a:hover { background: var(--color-primary-bg, #e8f4fb); }
    .nav-list > .nav-item > a.active {
        border-left: 3px solid var(--color-primary);
        padding-left: 12px;
    }
    .nav-list > .nav-item > a.active::after { display: none; }

    .nav-chevron {
        padding: 14px 18px;
        margin-left: auto;
        margin-right: -8px;
        cursor: pointer;
    }

    .sub-menu {
        position: static !important;
        opacity: 1; visibility: visible;
        transform: none !important;
        box-shadow: none;
        background: var(--color-bg-alt, #f5f5f5);
        border-radius: 0;
        margin: 0; padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .sub-menu::before, .sub-menu::after { display: none; }
    .nav-item.has-children.is-open > .sub-menu {
        max-height: 500px;
    }
    .sub-menu .nav-item > a {
        padding: 10px 20px 10px 40px;
        border-left: none;
        border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.05));
    }
    .sub-menu .nav-item > a:hover {
        background: var(--color-primary-bg, #e8f4fb);
        color: var(--color-primary);
        border-left: none;
    }

    .sub-menu--flyout {
        position: static !important;
        margin-left: 0;
        background: var(--color-bg-section, #f0f0f0);
    }
    .sub-menu--flyout::after { display: none; }
    .sub-menu--flyout .nav-item > a {
        padding-left: 60px;
        font-size: 13px;
    }

    .nav-flyout-chevron {
        border-left-width: 0;
        border-top: 4.5px solid currentColor;
        border-bottom: 4px solid transparent;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
    }

    .nav-item.has-children::after { display: none; }

    .hero-title { font-size: 2rem; }
    .hero-section { padding: 4rem 0; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-2); }

    /* Typography scaling at tablet */
    .article-title { font-size: 1.875rem; }
    .page-title    { font-size: 1.875rem; }
    .section-title { font-size: 1.625rem; }
    .event-detail-header h1 { font-size: 1.875rem; }
    .download-detail-header h1 { font-size: 1.75rem; }

    /* Section padding at tablet (5rem → 3.5rem) */
    .intro-section, .features-section, .blog-preview-section, .cta-section,
    .page-section, .blog-section, .gallery-section,
    .gallery-preview-section, .events-preview-section { padding: 3.5rem 0; }
    .events-section { padding: 2.5rem 0; }
    .blog-article   { padding: 2rem 0 3.5rem; }
    .event-detail   { padding: 2.5rem 0; }
    .download-detail { padding: 2.5rem 0; }

    .topic-cards-grid { grid-template-columns: 1fr; }
    .highlight-grid { grid-template-columns: 1fr; }
    .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; }

    /* Stats + Testimonials responsive (v3.4.0) */
    .testimonials--staggered .testimonial-card:nth-child(even) { margin-top: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* Hero boxed – reduce card padding on tablet */
    .hero--layout-boxed > .container { padding: 2rem 1.75rem; border-radius: var(--radius-lg); }
}

/* ── Breadcrumbs (Phase 5.1) ────────────────────────────────────────────── */
.breadcrumbs {
    background: var(--color-bg-alt, #f5f5f5);
    border-bottom: 1px solid var(--color-border, #e0e0e0);
    padding: 0.55rem 0;
    font-size: 0.8125rem;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--color-text-light, #888);
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 0.4rem;
    color: var(--color-border, #ccc);
}
.breadcrumb-item a {
    color: var(--color-text-light, #888);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--color-primary, #4a6cf7);
    text-decoration: underline;
}
.breadcrumb-item.breadcrumb-current span {
    color: var(--color-text, #333);
    font-weight: 500;
}
@media (max-width: 768px) {
    .breadcrumbs { padding: 0.4rem 0; }
    .breadcrumb-item { font-size: 0.75rem; }
}
/* ── end Breadcrumbs ────────────────────────────────────────────────────── */

/* ── Downloads ──────────────────────────────────────────────────────────── */

/* Archive page */
.downloads-section { padding: var(--section-y) 0; }
.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(--color-border, #ccc);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}
.search-btn {
    padding: 0.5rem 1.1rem;
    background: var(--color-primary, #4a6cf7);
    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(--color-text-light, #888);
    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(--color-border, #ccc);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text-light, #666);
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease), color 0.15s, border-color 0.15s;
}
.downloads-category-filter a:hover { background: var(--color-bg-alt, #f5f5f5); text-decoration: none; }
.downloads-category-filter a.active {
    background: var(--color-primary, #4a6cf7);
    color: #fff;
    border-color: var(--color-primary, #4a6cf7);
}

/* Card grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}
.download-card {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--duration-base) var(--ease);
}
.download-card:hover { box-shadow: var(--shadow-md); }
.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(--color-bg-alt, #f5f7fa);
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-placeholder-ext {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-muted, #aaa);
    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(--color-primary, #4a6cf7); 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(--color-text, #333); text-decoration: none; }
.download-card-body h3 a:hover { color: var(--color-primary, #4a6cf7); }
.download-excerpt { font-size: 0.875rem; color: var(--color-text-light, #666); 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(--color-border, #eee); }
.download-meta { display: flex; align-items: center; gap: 0.4rem; }
.download-ext, .download-ext-badge { font-size: 0.7rem; font-weight: 700; background: var(--color-primary, #4a6cf7); color: #fff; padding: 0.1rem 0.45rem; border-radius: 3px; letter-spacing: 0.03em; }
.download-size { font-size: 0.8125rem; color: var(--color-text-muted, #999); }
.btn-download-detail { font-size: 0.8125rem; color: var(--color-primary, #4a6cf7); 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(--color-primary, #4a6cf7); 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(--color-text-light, #666); 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(--color-text-muted, #999); margin-top: 0.15rem; }
.btn-download, .btn.btn-download {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: var(--color-primary, #4a6cf7);
    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(--color-border, #eee); }
.btn-back { color: var(--color-text-light, #666); text-decoration: none; font-size: 0.9rem; }
.btn-back:hover { color: var(--color-primary, #4a6cf7); text-decoration: underline; }

@media (max-width: 768px) {
    .downloads-grid { grid-template-columns: 1fr; }
    .download-file-card { flex-wrap: wrap; }
}
/* ── end Downloads ──────────────────────────────────────────────────────── */

/* ── 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(--color-heading, #111); }
.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(--color-border, #ccc); border-radius: 4px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--color-text, #333); transition: border-color 0.15s; }
.contact-form-input:focus,
.contact-form-textarea:focus { outline: none; border-color: var(--color-primary, #4a6cf7); }
.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; }
/* ── end Contact Form ───────────────────────────────────────────────────── */

/* ── Hero Presentation System (Hero v2) ─────────────────────────────────── */

/* 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: #2563eb; }

/* 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(--container-width, 1200px); }
.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(--color-primary);
    margin-bottom: 0.75rem;
}

/* Hero v2: Subtitle max-width constraint for readability */
.hero-subtitle { max-width: 640px; }
.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) {
    .blog-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .events-preview-grid { grid-template-columns: 1fr; }
    .events-featured-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 3rem 0; }

    /* Section padding on small mobile (fix: use actual classes, not .section) */
    .intro-section, .features-section, .blog-preview-section, .cta-section,
    .page-section, .blog-section, .gallery-section,
    .gallery-preview-section, .events-preview-section { padding: 2.5rem 0; }
    .events-section { padding: 2rem 0; }
    .blog-article   { padding: 1.5rem 0 2.5rem; }
    .event-detail   { padding: 2rem 0; }
    .download-detail { padding: 2rem 0; }

    /* Typography on small mobile */
    .article-title { font-size: 1.5rem; }
    .page-title    { font-size: 1.5rem; }
    .section-title { font-size: 1.375rem; }
    .event-detail-header h1 { font-size: 1.5rem; }
    .download-detail-header h1 { font-size: 1.4375rem; }

    /* Error / 404 */
    .error-section { padding: 4rem 0; }
    .error-code    { font-size: 4rem; }

    /* Hero boxed – minimal padding on phone */
    .hero--layout-boxed > .container { padding: 1.5rem 1.25rem; border-radius: var(--radius-md); }

    /* Hero v2: portrait inline smaller on phone */
    .hero-portrait-inline .hero-portrait { width: 90px; height: 90px; }

    /* Contact form: full-width submit button on small mobile */
    .contact-form-submit { align-self: stretch; }
    .contact-form-submit.btn, .contact-form-submit { width: 100%; text-align: center; }

    /* Stats + Testimonials responsive (v3.4.0) */
    .stats-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
/* ── end Hero Presentation System ───────────────────────────────────────── */

/* ── Phase 14: Accessibility Foundations ─────────────────────────────────── */

/* Skip link – visually hidden until focused */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.15s;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Visible focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--color-primary);
    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(--color-primary);
    outline-offset: 0;
    border-color: var(--color-primary);
}

/* ── end Accessibility Foundations ───────────────────────────────────────── */

/* ── Section Presentation Tokens (Phase 21) ──────────────────────────────── */
/* empty = theme default; these override only when explicitly set by admin    */

/* === 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(--color-text, var(--text)); }
.section--scheme-primary .testimonial-text,
.section--scheme-primary .feature-card p { color: var(--color-text-light, var(--text-muted)); }
.section--scheme-primary .testimonial-author-name { color: var(--color-text, var(--text)); }
.section--scheme-primary .testimonial-author-role { color: var(--color-text-light, 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, #2563eb) !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(--color-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(--color-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(--color-border); box-shadow: none; }
.section--card-flat .highlight-card { box-shadow: none; background: transparent; border: none; }

/* Topic Cards */
.topic-cards-section { padding: var(--section-y) 0; }
.topic-cards-section h2 { text-align: center; margin-bottom: 1rem; }
.topic-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.topic-card { display: flex; flex-direction: column; background: var(--color-bg); padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); text-decoration: none; color: inherit; transition: box-shadow var(--duration-base) var(--ease), transform 0.2s; }
.topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.topic-card--plain { cursor: default; }
.topic-card--plain:hover { transform: none; }
.topic-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.topic-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.topic-card-text { color: var(--color-text-light); font-size: 0.9375rem; flex: 1; }
.topic-card-link { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--color-primary); }

/* Highlight Grid */
.highlight-grid-section { padding: var(--section-y) 0; background: var(--color-bg-alt); }
.highlight-grid-section h2 { text-align: center; margin-bottom: 1rem; }
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.highlight-card { display: flex; flex-direction: column; background: var(--color-bg); padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); text-decoration: none; color: inherit; transition: box-shadow var(--duration-base) var(--ease); }
.highlight-card:hover { box-shadow: var(--shadow-md); }
.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(--color-text-light); font-size: 0.9375rem; flex: 1; }
.highlight-card-source { font-size: 0.8125rem; color: var(--color-text-light); font-style: italic; margin-top: 0.5rem; }
.highlight-card-link { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--color-primary); }

/* feature-card-icon: normalize icon display (replaces former inline styles) */
.feature-card-icon { font-size: 2rem; margin-bottom: .5rem; }

/* ── Stats Section (v3.4.0) ── */
.stats-section { padding: var(--section-y) 0; }
.stats-header { text-align: center; margin-bottom: var(--space-12); }
.stats-title { font-size: var(--text-h2); font-weight: 700; }
.stats-subtitle { font-size: 1.0625rem; color: var(--color-text-light); margin-top: var(--space-2); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-8); text-align: center; }
.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: var(--space-3); color: var(--color-primary); }
.stats-item-value { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; color: var(--color-primary); line-height: 1.1; }
.stats-prefix, .stats-suffix { font-size: 0.7em; }
.stats-item-label { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--color-text-light); margin-top: var(--space-2); }

/* ── Testimonials Section (v3.4.0) ── */
.testimonials-section { padding: var(--section-y) 0; }
.testimonials-header { text-align: center; margin-bottom: var(--space-12); }
.testimonials-title { font-size: var(--text-h2); font-weight: 700; }
.testimonials-subtitle { font-size: 1.0625rem; color: var(--color-text-light); margin-top: var(--space-2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-8); }
.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: var(--space-12); }
.testimonial-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-10); position: relative; transition: box-shadow var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease); }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-quote-mark { font-size: 4rem; line-height: 1; color: var(--color-primary); opacity: 0.2; position: absolute; top: var(--space-6); left: var(--space-8); font-family: Georgia, serif; }
.testimonial-text { font-size: 1.0625rem; line-height: 1.7; color: var(--color-text); margin-top: var(--space-8); font-style: italic; }
.testimonial-rating { display: flex; gap: 0.25rem; margin-top: var(--space-4); color: #f59e0b; }
.testimonial-star { opacity: 0.3; }
.testimonial-star.star--filled { opacity: 1; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.testimonial-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); overflow: hidden; background: var(--color-primary-bg); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--color-primary); font-size: 1.125rem; flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-avatar--initials,
.testimonial-avatar-initials { text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.testimonial-author-name { font-weight: 600; font-style: normal; display: block; }
.testimonial-author-role { font-size: var(--text-sm); color: var(--color-text-light); }

/* ── end Section Presentation Tokens ─────────────────────────────────────── */

/* ------------------------------------------------------------------
   Cookie Consent Theme Overrides
   Override these CSS variables to customize the consent banner.
   ------------------------------------------------------------------ */
/*
:root {
    --iw-consent-bg: #ffffff;
    --iw-consent-text: #111827;
    --iw-consent-text-muted: #6b7280;
    --iw-consent-border: #e5e7eb;
    --iw-consent-primary: #2563eb;
    --iw-consent-primary-hover: #1d4ed8;
    --iw-consent-primary-text: #ffffff;
    --iw-consent-secondary-bg: #ffffff;
    --iw-consent-secondary-text: #374151;
    --iw-consent-secondary-border: #d1d5db;
    --iw-consent-secondary-hover: #f3f4f6;
    --iw-consent-badge-bg: #eff6ff;
    --iw-consent-badge-text: #2563eb;
    --iw-consent-toggle-active: #2563eb;
    --iw-consent-backdrop: rgba(0, 0, 0, 0.45);
    --iw-consent-radius: 12px;
    --iw-consent-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}
*/

/* ─── Scroll-to-Top Button (v3.0.6) ──────────────────────────────────── */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary, #2563eb);
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--color-primary-dark, #1d4ed8);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}
.scroll-to-top:focus-visible {
    outline: 2px solid var(--color-primary, #2563eb);
    outline-offset: 3px;
}
.scroll-to-top svg {
    width: 20px;
    height: 20px;
}
@media (max-width: 640px) {
    .scroll-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* ─── Gallery Lightbox Theme Overrides (v3.0.6) ─────────────────────── */
/* Default theme uses the core lightbox defaults (accent: #2563eb).
   No overrides needed – the base gallery-lightbox.css matches this theme. */

/* ─── Dark Mode (v3.2.0) ────────────────────────────────────────────── */
/* Only active when admin enables dark mode (html[data-dark-mode] is set) */
@media (prefers-color-scheme: dark) {
    html[data-dark-mode]:not([data-theme="light"]) {
        --color-primary: #60a5fa;
        --color-primary-dark: #3b82f6;
        --color-text: #e5e7eb;
        --color-text-light: #9ca3af;
        --color-bg: #111827;
        --color-bg-alt: #1f2937;
        --color-border: #374151;
        color-scheme: dark;
    }
    html[data-dark-mode]:not([data-theme="light"]) .site-header {
        background: rgba(17,24,39,0.8);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    html[data-dark-mode]:not([data-theme="light"]) .feature-card { background: rgba(30,41,59,0.7); }
    html[data-dark-mode]:not([data-theme="light"]) .cta-section { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e293b 100%); }
    html[data-dark-mode]:not([data-theme="light"]) .site-footer { background: #0d1117; }
    html[data-dark-mode]:not([data-theme="light"]) .logo-text { color: #e5e7eb; }
    html[data-dark-mode]:not([data-theme="light"]) img { opacity: 0.92; }
}
/* Manual override: user clicked toggle */
html[data-dark-mode][data-theme="dark"] {
    --color-primary: #60a5fa;
    --color-primary-dark: #3b82f6;
    --color-text: #e5e7eb;
    --color-text-light: #9ca3af;
    --color-bg: #111827;
    --color-bg-alt: #1f2937;
    --color-border: #374151;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(51, 65, 85, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --glass-shadow-hover: 0 16px 48px rgba(96, 165, 250, 0.15);
    color-scheme: dark;
}
html[data-dark-mode][data-theme="dark"] .site-header { background: rgba(17,24,39,0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
html[data-dark-mode][data-theme="dark"] .feature-card { background: rgba(30,41,59,0.7); }
html[data-dark-mode][data-theme="dark"] .cta-section { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e293b 100%); }
html[data-dark-mode][data-theme="dark"] .site-footer { background: #0d1117; }
html[data-dark-mode][data-theme="dark"] .logo-text { color: #e5e7eb; }
html[data-dark-mode][data-theme="dark"] img { opacity: 0.92; }
/* Toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.theme-toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.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; }
}

/* ─── Scroll Reveal Animations (v3.2.0) ─────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.vis {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}



/* ═══════════════════════════════════════════════════════════════════════════
   Search – Header Dropdown & Results Page (v3.3.0)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Header Search – Toggle Button */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}
.header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}
.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 */
.header-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    background: var(--bg-primary, #fff);
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(-4px);
    animation: searchDropIn 0.15s ease forwards;
}
.header-search-dropdown[hidden] {
    display: none;
}
@keyframes searchDropIn {
    to { opacity: 1; transform: translateY(0); }
}
.header-search-dropdown form {
    display: flex;
    align-items: center;
    gap: 0;
}
.header-search-dropdown input[type="search"] {
    width: 260px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border: 2px solid var(--border-color, #ddd);
    border-right: none;
    border-radius: var(--radius-sm, 6px) 0 0 var(--radius-sm, 6px);
    outline: none;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #1a1a1a);
    -webkit-appearance: none;
}
.header-search-dropdown input[type="search"]:focus {
    border-color: var(--color-primary, #2563eb);
}
.header-search-dropdown button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--color-primary, #2563eb);
    color: #fff;
    border: 2px solid var(--color-primary, #2563eb);
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
    cursor: pointer;
    transition: background 0.2s;
}
.header-search-dropdown button[type="submit"]:hover {
    background: var(--color-primary-dark, #1d4ed8);
    border-color: var(--color-primary-dark, #1d4ed8);
}
.header-search-dropdown button[type="submit"] svg {
    display: block;
}

/* Search Page */
.search-section {
    padding: 3rem 0;
    min-height: 50vh;
}
.search-form {
    margin-bottom: 2rem;
}
.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(--color-primary, #2563eb);
}
.search-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary, #2563eb);
    color: #fff;
    border: 2px solid var(--color-primary, #2563eb);
    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(--color-primary-dark, #1d4ed8);
    border-color: var(--color-primary-dark, #1d4ed8);
}
.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: var(--color-error, #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: #1d4ed8; }
.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(--color-primary, #2563eb);
}
.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(--color-primary, #2563eb);
    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) {
    .header-search-dropdown input[type="search"] {
        width: 200px;
    }
    .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(--color-primary, #2563eb);
    }
    .search-submit {
        border-radius: var(--radius-md, 6px);
        justify-content: center;
        margin-top: 0.5rem;
    }
}
@media (max-width: 480px) {
    .header-search-dropdown {
        position: fixed;
        top: auto;
        right: 1rem;
        left: 1rem;
    }
    .header-search-dropdown input[type="search"] {
        width: 100%;
        flex: 1;
    }
    .search-section { padding: 2rem 0; }
}

/* ── F3: Blog Enhancements ───────────────────────────────────────────────── */

/* Reading Time */
.article-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-text-light, #6b7280);
}
.article-reading-time svg { flex-shrink: 0; vertical-align: middle; }

/* Table of Contents */
.article-toc {
    margin: 1.75rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-alt, #f9fafb);
    border: 1px solid var(--color-border, #e5e7eb);
    border-left: 4px solid var(--color-primary, #2563eb);
    border-radius: 8px;
}
.article-toc-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--color-heading, #111827);
}
.article-toc-title svg { flex-shrink: 0; }
.article-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style: decimal;
}
.article-toc-list li { margin: 0.3rem 0; font-size: 0.9rem; }
.article-toc-list li a {
    color: var(--color-primary, #2563eb);
    text-decoration: none;
    transition: opacity 0.15s;
}
.article-toc-list li a:hover { text-decoration: underline; opacity: 0.8; }
.toc-level-3 { padding-left: 1.25rem; list-style-type: disc; }

/* Related Posts */
.article-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
}
.article-related-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-heading, #111827);
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .related-posts-grid { grid-template-columns: 1fr; }
}
.related-post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.related-post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.related-post-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.related-post-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-post-body { padding: 0.85rem 1rem; flex: 1; }
.related-post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-light, #6b7280);
    margin-bottom: 0.35rem;
}
.related-post-body h4 {
    margin: 0;
    font-size: 0.925rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-heading, #111827);
}

/* ── 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);
}

/* ══════════════════════════════════════════════════════════════
   DEFAULT v2 PREMIUM DIFFERENTIATION
   ══════════════════════════════════════════════════════════════ */

/* ── Hero: Asymmetric layout with decorative shapes ──────────── */
.hero-section.hero--asymmetric .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    text-align: left;
}
.hero-section.hero--asymmetric .hero-content {
    max-width: 580px;
}
.hero-section.hero--asymmetric .hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}
.hero-title-accent {
    background: var(--accent-gradient, linear-gradient(135deg, #2563eb, #06b6d4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero subtle radial glow */
.hero-section.hero--asymmetric::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Decorative shapes */
.hero-visual {
    position: relative;
    width: 100%;
    height: 400px;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
}
.hero-shape--1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(6,182,212,0.1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(2px);
}
.hero-shape--2 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(6,182,212,0.18), rgba(37,99,235,0.08));
    top: 15%;
    right: 5%;
    filter: blur(1px);
}
.hero-shape--3 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(6,182,212,0.12));
    bottom: 10%;
    left: 15%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(1px);
}
.hero-shape--4 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    opacity: 0.08;
    top: 20%;
    left: 35%;
    border-radius: 16px;
    transform: rotate(15deg);
}
.hero-shape--5 {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    opacity: 0.06;
    bottom: 25%;
    right: 20%;
    border-radius: 12px;
    transform: rotate(-10deg);
}

/* Dark mode shapes */
html[data-theme="dark"] .hero-shape--1 {
    background: linear-gradient(135deg, rgba(96,165,250,0.12), rgba(6,182,212,0.08));
}
html[data-theme="dark"] .hero-shape--2 {
    background: linear-gradient(135deg, rgba(6,182,212,0.14), rgba(96,165,250,0.06));
}
html[data-theme="dark"] .hero-shape--3 {
    background: linear-gradient(135deg, rgba(96,165,250,0.16), rgba(6,182,212,0.1));
}

@media (max-width: 768px) {
    .hero-section.hero--asymmetric .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        height: 200px;
    }
    .hero-shape--1 { width: 150px; height: 150px; }
    .hero-shape--2 { width: 100px; height: 100px; }
    .hero-shape--3 { width: 80px; height: 80px; }
    .hero-shape--4, .hero-shape--5 { display: none; }
}

/* ── 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);
}
