/**
 * SheetPro Theme Custom Styles
 */

/* WordPress Core Alignment */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* WordPress Navigation */
.nav-links { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.nav-links a, .nav-links span { padding: 0.5rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; }
.nav-links .current { background: #2563eb; color: white; border-color: #2563eb; }
.nav-links a:hover { background: #f9fafb; }

/* Custom Logo */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 40px; width: auto; }

/* Navigation Menu Items */
.menu-item a { color: #374151; font-weight: 500; transition: color 0.15s; }
.menu-item a:hover { color: #2563eb; }
.current-menu-item a { color: #2563eb; }

/* Widget Styles */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; color: white; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: 0.5rem; }
.widget ul li a { color: #9ca3af; transition: color 0.15s; }
.widget ul li a:hover { color: white; }

/* FAQ Toggle Animation */
.faq-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Download Button Animation */
.download-btn { position: relative; overflow: hidden; }
.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.download-btn:active::after { width: 200px; height: 200px; }

/* Mobile Menu */
#mobile-menu.active { display: block; }

/* Cookie Banner Animation */
#cookie-banner.show { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 40;
}
#scroll-to-top:hover { background: #1d4ed8; transform: translateY(-2px); }
#scroll-to-top.show { display: flex; }

/* Print Styles */
@media print {
    header, footer, .download-btn, #cookie-banner, #scroll-to-top { display: none !important; }
    body { font-size: 12pt; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   EXCEL MOCKUP STYLES
   ===================================================== */

.excel-mockup-container {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.excel-mockup-container:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.excel-window {
    background: #f3f3f3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 11px;
}

/* Title Bar */
.excel-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #217346 0%, #1a5c38 100%);
    padding: 6px 12px;
    color: white;
}

.excel-titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.excel-icon {
    width: 18px;
    height: 18px;
}

.excel-filename {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.95;
}

.excel-titlebar-buttons {
    display: flex;
    gap: 8px;
}

.excel-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.excel-btn.minimize { background: #f5c242; }
.excel-btn.maximize { background: #3dc04f; }
.excel-btn.close { background: #ed594a; }

/* Ribbon */
.excel-ribbon {
    background: #217346;
    padding: 4px 12px;
    border-bottom: 1px solid #1a5c38;
}

.excel-ribbon-tabs {
    display: flex;
    gap: 16px;
    color: white;
    font-size: 11px;
}

.excel-ribbon-tabs span {
    padding: 4px 0;
    opacity: 0.7;
    cursor: pointer;
}

.excel-ribbon-tabs span.active {
    opacity: 1;
    border-bottom: 2px solid white;
}

/* Formula Bar */
.excel-formula-bar {
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid #d6d6d6;
    padding: 4px 8px;
    gap: 8px;
}

.excel-cell-ref {
    min-width: 50px;
    padding: 2px 6px;
    background: #f5f5f5;
    border: 1px solid #d6d6d6;
    font-size: 10px;
    text-align: center;
}

.excel-fx {
    color: #666;
    font-style: italic;
    font-size: 10px;
}

.excel-formula-input {
    flex: 1;
    padding: 2px 6px;
    background: white;
    border: 1px solid #d6d6d6;
    font-size: 10px;
    color: #333;
    min-height: 18px;
}

/* Spreadsheet Grid */
.excel-sheet-area {
    background: white;
    overflow: hidden;
}

.excel-grid {
    display: grid;
    grid-template-columns: 30px repeat(5, minmax(0, 1fr));
    border: 1px solid #d6d6d6;
}

.excel-corner {
    background: #f5f5f5;
    border-right: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
}

.excel-col-header {
    background: #f5f5f5;
    border-right: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
    padding: 4px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.excel-row-header {
    background: #f5f5f5;
    border-right: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
    padding: 4px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.excel-cell {
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 4px 6px;
    min-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

/* Cell Types */
.excel-cell.header-cell {
    background: #217346;
    color: white;
    font-weight: 600;
}

.excel-cell.number-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.excel-cell.currency-cell {
    text-align: right;
    color: #1a5c38;
    font-weight: 500;
}

.excel-cell.total-label {
    font-weight: 600;
    text-align: right;
}

.excel-cell.total-cell {
    font-weight: 700;
    text-align: right;
    background: #f0f7f4;
}

.excel-cell.total-cell.highlight {
    background: #d4edda;
    color: #155724;
}

.excel-cell.positive {
    color: #28a745;
}

.excel-cell.warning {
    color: #ffc107;
}

.excel-cell.critical {
    color: #dc3545;
    font-weight: 600;
}

/* Sheet Tabs */
.excel-sheet-tabs {
    display: flex;
    align-items: flex-end;
    background: #e0e0e0;
    padding: 4px 8px 0;
    gap: 2px;
}

.excel-sheet-tab {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 4px 4px 0 0;
    font-size: 10px;
    color: #666;
    cursor: pointer;
    border: 1px solid #c0c0c0;
    border-bottom: none;
}

.excel-sheet-tab.active {
    background: white;
    color: #333;
    font-weight: 500;
}

.excel-sheet-tab-add {
    padding: 4px 8px;
    color: #888;
    cursor: pointer;
    font-size: 12px;
}

/* Status Bar */
.excel-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #217346;
    padding: 3px 12px;
    color: white;
    font-size: 10px;
}

.excel-status-left {
    opacity: 0.9;
}

.excel-zoom {
    opacity: 0.8;
}

/* Decorative Elements */
.excel-mockup-shadow {
    position: absolute;
    bottom: -15px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
}

.excel-mockup-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 8px 8px 0 0;
}

/* Preview Notice */
.excel-preview-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.excel-preview-notice .notice-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.excel-preview-notice p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.excel-preview-notice strong {
    color: white;
}

/* ============ AVG Search (header centered + hero + mobile) ============ */
.avg-search-form { position: relative; }
/* header variant: hidden on mobile, flex-grow centered on desktop */
.avg-search-form--header { display: none; }
@media (min-width: 768px) {
  .avg-search-form--header { display: flex; align-items: center; }
}
.avg-search-input {
  width: 100%; padding: 0.55rem 0.9rem 0.55rem 2.4rem;
  font-size: 0.875rem; color: #111827;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.5rem;
  outline: none; transition: box-shadow .15s, border-color .15s; -webkit-appearance: none;
}
.avg-search-input:focus { border-color: var(--avg-secondary,#3B82F6); box-shadow: 0 0 0 3px rgba(59,130,246,.18); background:#fff; }
.avg-search-icon { position:absolute; left:0.8rem; top:50%; transform:translateY(-50%); width:1rem; height:1rem; color:#9ca3af; pointer-events:none; }
.avg-search-submit { position:absolute; right:0.35rem; top:50%; transform:translateY(-50%); background:transparent; border:0; cursor:pointer; padding:0.3rem; color:#9ca3af; display:flex; align-items:center; }
.avg-search-submit:hover { color: var(--avg-secondary,#3B82F6); }
/* hero variant */
.avg-search-form--hero { max-width:36rem; margin:0 auto 2rem; }
.avg-search-form--hero .avg-search-input { padding:1rem 7.5rem 1rem 2.9rem; font-size:1rem; background:#fff; border:0; border-radius:0.75rem; box-shadow:0 20px 40px -12px rgba(0,0,0,.35); }
.avg-search-form--hero .avg-search-icon { left:1.1rem; width:1.25rem; height:1.25rem; }
.avg-search-form--hero .avg-search-button { position:absolute; right:0.5rem; top:50%; transform:translateY(-50%); background:var(--avg-secondary,#3B82F6); color:#fff; font-weight:600; border:0; border-radius:0.5rem; padding:0.6rem 1.4rem; cursor:pointer; transition:background .15s; }
.avg-search-form--hero .avg-search-button:hover { background:var(--avg-primary,#1E3A8A); }
/* mobile variant */
.avg-search-form--mobile { padding:0 0.5rem 0.5rem; display:block; }

/* nav spacing (compiled tailwind lacks space-x-6) */
.avg-header-nav { gap: 1.75rem; }
.avg-header-nav > ul { display:flex; align-items:center; gap:1.75rem; margin:0; padding:0; list-style:none; }
.avg-header-nav > ul > a, .avg-header-nav > ul > li { white-space: nowrap; }
.avg-search-form--header { max-width: 30rem; margin-left: 2.5rem; margin-right: 2.5rem; }
@media (max-width: 1100px){ .avg-search-form--header { margin-left:1.25rem; margin-right:1.25rem; } }

/* ═══════════════════════════════════════════════════
   Excel Haven identity — teal #0F766E + amber #F59E0B, Space Grotesk
   Overrides the Tailwind blue palette site-wide
   ═══════════════════════════════════════════════════ */
:root {
    --eh-primary: #0F766E;      /* teal 700 */
    --eh-primary-600: #0D9488;  /* teal 600 */
    --eh-primary-800: #115E59;  /* teal 800 */
    --eh-primary-900: #134E4A;  /* teal 900 */
    --eh-accent: #F59E0B;       /* amber 500 */
    --eh-accent-600: #D97706;   /* amber 600 */
    --eh-ink: #0F172A;          /* slate 900 */
    --eh-body: #475569;         /* slate 600 */
    --eh-muted: #64748B;        /* slate 500 */
    --eh-line: #E2E8F0;         /* slate 200 */
    --eh-surface: #F8FAFC;      /* slate 50  */
    --avg-primary: #0F766E; --avg-secondary: #0D9488;
}

/* Map the donor's hard-coded Tailwind blues onto the teal/amber palette */
.from-blue-900 { --tw-gradient-from: var(--eh-primary-900) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(19,78,74,0)) !important; }
.via-blue-800 { --tw-gradient-stops: var(--tw-gradient-from), var(--eh-primary-800), var(--tw-gradient-to, rgba(17,94,89,0)) !important; }
.to-blue-700 { --tw-gradient-to: var(--eh-primary) !important; }
.bg-gradient-to-br.from-blue-900, .bg-gradient-to-r.from-blue-600 { background: linear-gradient(135deg, var(--eh-primary-900), var(--eh-primary)) !important; }
.from-blue-600 { --tw-gradient-from: var(--eh-primary-600) !important; }
.bg-blue-600 { background-color: var(--eh-primary) !important; }
.hover\:bg-blue-700:hover { background-color: var(--eh-primary-800) !important; }
.bg-blue-700, .bg-blue-800, .bg-blue-900 { background-color: var(--eh-primary-800) !important; }
.text-blue-600, .text-blue-700 { color: var(--eh-primary) !important; }
.text-blue-800, .text-blue-900 { color: var(--eh-primary-900) !important; }
.hover\:text-blue-600:hover { color: var(--eh-primary) !important; }
.hover\:text-blue-700:hover { color: var(--eh-primary-800) !important; }
.text-blue-100 { color: #CCFBF1 !important; }
.text-blue-200 { color: #99F6E4 !important; }
.bg-blue-100 { background-color: #CCFBF1 !important; }
.bg-blue-50 { background-color: #F0FDFA !important; }
.border-blue-200 { border-color: #99F6E4 !important; }
.hover\:bg-blue-50:hover { background-color: #F0FDFA !important; }
.focus\:ring-blue-500:focus { --tw-ring-color: var(--eh-primary-600) !important; }
.focus\:border-blue-500:focus { border-color: var(--eh-primary-600) !important; }
.bg-white\/10 { background-color: rgba(255,255,255,0.12) !important; }
#scroll-to-top { background: var(--eh-primary) !important; }
#scroll-to-top:hover { background: var(--eh-primary-800) !important; }
.nav-links .current { background: var(--eh-primary) !important; border-color: var(--eh-primary) !important; }
:focus-visible { outline-color: var(--eh-primary) !important; }
.avg-search-input:focus { border-color: var(--eh-primary-600); box-shadow: 0 0 0 3px rgba(13,148,136,.18); }

/* ═══════════════════════════════════════════════════
   Excel Haven — own component system (eh-*)
   Hand-authored because tailwind.css is a purged static build.
   ═══════════════════════════════════════════════════ */

/* Accent strip + header */
.eh-accent-strip { height: 4px; background: linear-gradient(90deg, var(--eh-primary), var(--eh-accent)); }
.eh-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--eh-line); }
.eh-header__bar { display: flex; align-items: center; gap: 1.25rem; height: 4.25rem; }
.eh-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.eh-brand__mark { display: inline-flex; width: 2.1rem; height: 2.1rem; border-radius: .6rem; align-items: center; justify-content: center; background: var(--eh-primary); color: #fff; }
.eh-brand__mark svg { width: 1.25rem; height: 1.25rem; }
.eh-brand__name { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; color: var(--eh-ink); }
.eh-nav { align-items: center; }
.eh-nav__list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.eh-nav__list a { color: var(--eh-body); font-weight: 500; text-decoration: none; transition: color .15s; white-space: nowrap; }
.eh-nav__list a:hover { color: var(--eh-primary); }
.eh-header__actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.eh-menu-toggle { padding: .5rem; border-radius: .5rem; color: var(--eh-body); background: transparent; border: 0; cursor: pointer; }
.eh-menu-toggle:hover { background: var(--eh-surface); }
.eh-mobile-menu { border-top: 1px solid var(--eh-line); background: #fff; }
.eh-mobile-menu a { color: var(--eh-body); text-decoration: none; }
.eh-mobile-menu a.eh-btn { color: #fff; }

/* Buttons */
.eh-btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; border-radius: .6rem; padding: .6rem 1.1rem; text-decoration: none; transition: background .15s, color .15s, transform .15s, box-shadow .15s; cursor: pointer; line-height: 1.2; }
.eh-btn svg { width: 1.1rem; height: 1.1rem; }
.eh-btn--primary { background: var(--eh-primary); color: #fff; }
.eh-btn--primary:hover { background: var(--eh-primary-800); }
.eh-btn--ghost { background: transparent; color: var(--eh-primary); border: 1px solid var(--eh-line); }
.eh-btn--ghost:hover { border-color: var(--eh-primary); background: #F0FDFA; }
.eh-btn--light { background: #fff; color: var(--eh-primary-900); }
.eh-btn--light:hover { background: var(--eh-surface); }
.eh-btn--download { background: var(--eh-accent); color: #422006; box-shadow: 0 8px 20px -8px rgba(217,119,6,.6); }
.eh-btn--download:hover { background: var(--eh-accent-600); color: #fff; }
.eh-btn--lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.eh-btn.w-full { width: 100%; }

/* Section heading */
.eh-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.eh-section-head--center { justify-content: center; text-align: center; }
.eh-section-head--center > div { max-width: 42rem; }
.eh-section-head__kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--eh-primary); margin-bottom: .5rem; }
.eh-section-head__title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; color: var(--eh-ink); }
.eh-section-head__lede { margin-top: .6rem; font-size: 1.05rem; color: var(--eh-body); line-height: 1.6; }
.eh-section-head__link { flex-shrink: 0; }

/* Hero */
.eh-hero { background: radial-gradient(120% 120% at 100% 0%, #F0FDFA 0%, #fff 55%); padding: 3.5rem 0 4rem; border-bottom: 1px solid var(--eh-line); }
.eh-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; }
.eh-hero__copy { min-width: 0; }
.eh-hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--eh-primary-800); background: #CCFBF1; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.eh-hero__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--eh-accent); }
.eh-hero__title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; color: var(--eh-ink); }
.eh-hero__lede { margin: 1.1rem 0 1.6rem; font-size: 1.12rem; line-height: 1.6; color: var(--eh-body); max-width: 34rem; }
.eh-hero__usps { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.eh-hero__usps li { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--eh-body); }
.eh-hero__usps svg { width: 1.15rem; height: 1.15rem; color: var(--eh-primary); flex-shrink: 0; }
.eh-hero__aside { min-width: 0; }
.eh-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.eh-stat { background: #fff; border: 1px solid var(--eh-line); border-radius: .8rem; padding: 1rem; text-align: center; }
.eh-stat__num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--eh-primary); }
.eh-stat__label { display: block; font-size: .8rem; color: var(--eh-muted); margin-top: .15rem; }

/* Static spreadsheet visual (hero + single placeholder) */
.eh-sheet { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(15,118,110,.45); border: 1px solid var(--eh-line); font-size: .8rem; }
.eh-sheet__bar { display: flex; align-items: center; gap: .4rem; background: var(--eh-primary-900); padding: .6rem .9rem; }
.eh-sheet__dot { width: .7rem; height: .7rem; border-radius: 50%; }
.eh-sheet__dot--r { background: #ef5350; } .eh-sheet__dot--y { background: #f5c242; } .eh-sheet__dot--g { background: #3dc04f; }
.eh-sheet__file { margin-left: .6rem; color: #CCFBF1; font-weight: 500; }
.eh-sheet__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eh-sheet__cell { padding: .55rem .7rem; border-right: 1px solid var(--eh-line); border-bottom: 1px solid var(--eh-line); color: var(--eh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eh-sheet__cell--head { background: var(--eh-surface); font-weight: 700; text-align: center; color: var(--eh-muted); }
.eh-sheet__cell--n { text-align: right; font-variant-numeric: tabular-nums; }
.eh-sheet__cell--f { color: var(--eh-primary); font-weight: 600; }
.eh-sheet__cell--tot { background: #F0FDFA; font-weight: 700; }
.eh-sheet__tabs { display: flex; gap: .35rem; padding: .5rem .9rem; background: var(--eh-surface); }
.eh-sheet__tab { font-size: .72rem; padding: .25rem .7rem; border-radius: .4rem .4rem 0 0; background: #fff; color: var(--eh-muted); border: 1px solid var(--eh-line); }
.eh-sheet__tab--on { color: var(--eh-primary); font-weight: 600; border-bottom-color: #fff; }

/* Features / voordelen */
.eh-features { padding: 4rem 0; background: #fff; }
.eh-features__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 3rem; align-items: start; }
.eh-features__intro { position: sticky; top: 6rem; }
.eh-features__list { display: grid; gap: 1.1rem; }
.eh-feature { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 1rem; background: var(--eh-surface); border: 1px solid var(--eh-line); border-radius: .9rem; padding: 1.2rem 1.3rem; transition: border-color .15s, box-shadow .15s; }
.eh-feature:hover { border-color: #99F6E4; box-shadow: 0 12px 30px -18px rgba(15,118,110,.5); }
.eh-feature__num { font-size: .9rem; font-weight: 700; color: var(--eh-accent-600); }
.eh-feature__icon { width: 2.5rem; height: 2.5rem; border-radius: .65rem; background: #CCFBF1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.eh-feature__icon svg { width: 1.35rem; height: 1.35rem; color: var(--eh-primary); }
.eh-feature__title { font-weight: 600; color: var(--eh-ink); margin-bottom: .25rem; }
.eh-feature__desc { color: var(--eh-body); line-height: 1.55; }

/* Latest / cards grid */
.eh-latest { padding: 4rem 0; background: var(--eh-surface); }
.eh-grid { display: grid; gap: 1.5rem; }
.eh-grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eh-grid--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Template card */
.eh-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--eh-line); border-radius: 1rem; overflow: hidden; min-width: 0; transition: transform .18s, box-shadow .18s, border-color .18s; }
.eh-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(15,23,42,.35); border-color: #99F6E4; }
.eh-card__head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 1.1rem 1.2rem; background: linear-gradient(135deg, color-mix(in srgb, var(--eh-cat, #0F766E) 14%, #fff), #fff); border-bottom: 1px solid var(--eh-line); }
.eh-card__glyph { width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: var(--eh-cat, #0F766E); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.eh-card__glyph svg { width: 1.35rem; height: 1.35rem; }
.eh-card__badge { align-self: center; font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; color: #fff; background: var(--eh-cat, #0F766E); }
.eh-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; min-width: 0; }
.eh-card__title { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-bottom: .5rem; }
.eh-card__title a { color: var(--eh-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eh-card__title a:hover { color: var(--eh-primary); }
.eh-card__desc { color: var(--eh-muted); font-size: .92rem; line-height: 1.5; margin-bottom: 1.1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eh-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--eh-line); }
.eh-card__downloads { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--eh-muted); }
.eh-card__downloads svg { width: 1rem; height: 1rem; }
.eh-card__cta { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--eh-primary); text-decoration: none; }
.eh-card__cta svg { width: 1rem; height: 1rem; transition: transform .15s; }
.eh-card:hover .eh-card__cta svg { transform: translateX(3px); }

/* Small related card */
.eh-card-sm { min-width: 0; }
.eh-card-sm__link { display: flex; flex-direction: column; gap: .6rem; height: 100%; background: #fff; border: 1px solid var(--eh-line); border-radius: .85rem; padding: 1.1rem; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.eh-card-sm__link:hover { border-color: #99F6E4; box-shadow: 0 14px 30px -20px rgba(15,23,42,.4); }
.eh-card-sm__icon { width: 2.2rem; height: 2.2rem; border-radius: .55rem; background: #CCFBF1; display: inline-flex; align-items: center; justify-content: center; }
.eh-card-sm__icon svg { width: 1.2rem; height: 1.2rem; color: var(--eh-primary); }
.eh-card-sm__title { font-weight: 600; color: var(--eh-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eh-card-sm__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: .82rem; }
.eh-card-sm__dl { display: inline-flex; align-items: center; gap: .3rem; color: var(--eh-muted); }
.eh-card-sm__dl svg { width: .95rem; height: .95rem; }
.eh-card-sm__free { color: var(--eh-accent-600); font-weight: 600; }

/* Categories grid */
.eh-cats { padding: 4rem 0; background: #fff; }
.eh-cats__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.eh-cat { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; min-width: 0; background: #fff; border: 1px solid var(--eh-line); border-radius: .9rem; padding: 1.2rem; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.eh-cat:hover { transform: translateY(-2px); border-color: var(--eh-cat, #0F766E); box-shadow: 0 14px 30px -20px rgba(15,23,42,.4); }
.eh-cat__icon { width: 2.6rem; height: 2.6rem; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--eh-cat, #0F766E) 14%, #fff); }
.eh-cat__icon svg { width: 1.4rem; height: 1.4rem; color: var(--eh-cat, #0F766E); }
.eh-cat__name { font-weight: 600; color: var(--eh-ink); }
.eh-cat__count { font-size: .82rem; color: var(--eh-muted); }

/* FAQ */
.eh-faq { padding: 4rem 0; background: var(--eh-surface); }
.eh-faq__list { display: grid; gap: .8rem; }
.eh-faq__item { background: #fff; border: 1px solid var(--eh-line); border-radius: .8rem; overflow: hidden; }
.eh-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; background: transparent; border: 0; cursor: pointer; text-align: left; font-weight: 600; color: var(--eh-ink); font-family: inherit; font-size: 1rem; }
.eh-faq__q:hover { background: var(--eh-surface); }
.eh-faq__chev { width: 1.25rem; height: 1.25rem; color: var(--eh-muted); flex-shrink: 0; transition: transform .2s; }
.eh-faq__q[aria-expanded="true"] .eh-faq__chev { transform: rotate(180deg); }
.eh-faq__a { padding: 0 1.3rem 1.2rem; color: var(--eh-body); }

/* CTA */
.eh-cta { padding: 4rem 0; background: #fff; }
.eh-cta__panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--eh-primary-900), var(--eh-primary)); border-radius: 1.4rem; padding: 2.6rem; color: #fff; overflow: hidden; position: relative; }
.eh-cta__panel::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(245,158,11,.35), transparent 70%); }
.eh-cta__text { max-width: 40rem; position: relative; z-index: 1; }
.eh-cta__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.eh-cta__desc { margin-top: .7rem; font-size: 1.05rem; color: #CCFBF1; line-height: 1.6; }
.eh-cta__note { margin-top: 1rem; font-size: .85rem; color: #99F6E4; }
.eh-cta__action { position: relative; z-index: 1; }

/* Footer */
.eh-footer { background: #0B1220; color: #94A3B8; }
.eh-footer__inner { padding: 3.5rem 1rem 2rem; }
.eh-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.eh-footer__heading { color: #fff; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.eh-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.eh-footer__links a { color: #94A3B8; text-decoration: none; transition: color .15s; }
.eh-footer__links a:hover { color: #fff; }
.eh-footer__brand { min-width: 0; }
.eh-footer__logo { font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; }
.eh-footer__tagline { margin-top: .8rem; font-size: .9rem; line-height: 1.6; color: #94A3B8; }
.eh-footer__social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.eh-footer__social a { color: #94A3B8; transition: color .15s; }
.eh-footer__social a:hover { color: #fff; }
.eh-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(148,163,184,.18); font-size: .85rem; }
.eh-footer__note { color: #64748B; }

/* Cookie bar */
.eh-cookiebar { background: #fff; box-shadow: 0 -8px 30px -12px rgba(15,23,42,.25); border-top: 1px solid var(--eh-line); padding: 1rem; }

/* Internal / legal page hero */
.eh-page-hero { background: linear-gradient(135deg, var(--eh-primary-900), var(--eh-primary)); color: #fff; padding: 3rem 0; position: relative; overflow: hidden; }
.eh-page-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--eh-accent); }
.eh-page-hero__inner { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.eh-page-hero__eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #99F6E4; margin-bottom: .7rem; }
.eh-page-hero__title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.eh-page-hero__lede { margin-top: .9rem; font-size: 1.1rem; color: #CCFBF1; max-width: 42rem; line-height: 1.55; }
.eh-page-hero__meta { margin-top: .8rem; font-size: .85rem; color: #99F6E4; }

/* Legal / content cards */
.eh-legal-card { background: #fff; border: 1px solid var(--eh-line); border-radius: 1rem; box-shadow: 0 18px 40px -30px rgba(15,23,42,.4); }
.eh-cta-box { background: #F0FDFA; border: 1px solid #99F6E4; border-radius: 1rem; }

/* Single template page */
.eh-single-hero { background: radial-gradient(120% 120% at 0% 0%, #F0FDFA 0%, #fff 55%); padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--eh-line); }
.eh-single-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; }
.eh-single-hero__copy { min-width: 0; }
.eh-single-hero__cat { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--eh-primary-800); background: #CCFBF1; padding: .3rem .8rem; border-radius: 999px; text-decoration: none; margin-bottom: 1rem; }
.eh-single-hero__cat:hover { background: #99F6E4; }
.eh-single-hero__title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--eh-ink); }
.eh-single-hero__lede { margin: 1rem 0 1.4rem; font-size: 1.1rem; color: var(--eh-body); line-height: 1.6; }
.eh-single-hero__facts { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1.6rem; }
.eh-fact { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--eh-muted); }
.eh-fact svg { width: 1.1rem; height: 1.1rem; color: var(--eh-primary); }
.eh-single-hero__media { min-width: 0; }
.eh-single-hero__placeholder .eh-sheet { max-width: 30rem; margin-left: auto; }

/* Screenshot slider (ported) */
.eh-shots__card { background: #fff; border-radius: 1.1rem; box-shadow: 0 30px 60px -25px rgba(15,118,110,.4); overflow: hidden; border: 1px solid var(--eh-line); }
.eh-shots__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.eh-shots__track::-webkit-scrollbar { display: none; }
.eh-shots__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.eh-shots__slide img { display: block; width: 100%; height: auto; }
.eh-shots__cap { font-size: .78rem; font-weight: 600; color: var(--eh-muted); text-align: center; padding: .55rem; background: var(--eh-surface); }
.eh-shots__nav { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .7rem; background: var(--eh-surface); }
.eh-shots__btn { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: #E2E8F0; color: #334155; font-size: 1.1rem; line-height: 1; cursor: pointer; flex: none; }
.eh-shots__btn:hover { background: #CBD5E1; }
.eh-shots__dots { display: flex; gap: .4rem; align-items: center; }
.eh-shots__dot { width: .5rem; height: .5rem; border-radius: 50%; background: #CBD5E1; border: 0; padding: 0; cursor: pointer; transition: .2s; }
.eh-shots__dot.on { background: var(--eh-primary); width: 1.3rem; border-radius: .35rem; }

/* Single body */
.eh-single-body { padding: 3.5rem 0; }
.eh-single-body__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; }
.eh-single-body__main { min-width: 0; }
.eh-h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; color: var(--eh-ink); margin-bottom: 1.2rem; }
.eh-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.eh-benefit { display: flex; align-items: flex-start; gap: .75rem; color: var(--eh-body); }
.eh-benefit svg { width: 1.35rem; height: 1.35rem; color: var(--eh-primary); flex-shrink: 0; margin-top: .1rem; }
.eh-featgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.eh-featgrid__item { display: flex; align-items: center; gap: .7rem; background: var(--eh-surface); border: 1px solid var(--eh-line); border-radius: .7rem; padding: .9rem 1rem; color: var(--eh-body); min-width: 0; }
.eh-featgrid__item svg { width: 1.2rem; height: 1.2rem; color: var(--eh-primary); flex-shrink: 0; }
.eh-single-body__aside { min-width: 0; }
.eh-sticky { position: sticky; top: 6rem; }
.eh-dlcard { background: #fff; border: 1px solid var(--eh-line); border-radius: 1rem; box-shadow: 0 18px 40px -28px rgba(15,23,42,.45); padding: 1.4rem; }
.eh-dlcard__title { font-weight: 700; color: var(--eh-ink); margin-bottom: 1rem; }
.eh-dlcard__specs { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.eh-dlcard__specs li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-size: .88rem; }
.eh-dlcard__specs span { color: var(--eh-muted); }
.eh-dlcard__specs strong { color: var(--eh-ink); text-align: right; }
.eh-dlcard__free { color: var(--eh-accent-600) !important; }
.eh-catcard { background: var(--eh-surface); border: 1px solid var(--eh-line); border-radius: 1rem; padding: 1.4rem; }
.eh-catcard__title { font-weight: 700; color: var(--eh-ink); margin-bottom: 1rem; }
.eh-catcard__link { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--eh-line); border-radius: .7rem; padding: .8rem; text-decoration: none; transition: box-shadow .15s; }
.eh-catcard__link:hover { box-shadow: 0 12px 25px -18px rgba(15,23,42,.4); }
.eh-catcard__icon { width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: #CCFBF1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.eh-catcard__icon svg { width: 1.25rem; height: 1.25rem; color: var(--eh-primary); }
.eh-catcard__link strong { display: block; color: var(--eh-ink); }
.eh-catcard__link em { display: block; font-style: normal; font-size: .82rem; color: var(--eh-muted); }

/* Related */
.eh-related { padding: 3.5rem 0; background: var(--eh-surface); }

/* E-E-A-T byline (hero) */
.eh-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1.6rem; }
.eh-byline__person { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.eh-byline__avatar { flex-shrink: 0; display: inline-flex; }
.eh-byline__avatar img, .eh-byline__img { max-width: none; width: 2rem; height: 2rem; border-radius: 999px; display: block; object-fit: cover; }
.eh-byline__text { font-size: .9rem; color: var(--eh-muted); }
.eh-byline__text a { color: inherit; text-decoration: none; }
.eh-byline__text strong { color: var(--eh-ink); font-weight: 700; }
.eh-byline__text a:hover strong { color: var(--eh-primary); }
.eh-byline__sep { color: var(--eh-line); font-weight: 700; }

/* E-E-A-T author box (Over de makers) */
.eh-authors { border-top: 1px solid var(--eh-line); padding-top: 2rem; }
.eh-authors__intro { margin: -.4rem 0 1.6rem; color: var(--eh-body); }
.eh-authors__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.eh-author { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; background: var(--eh-surface); border: 1px solid var(--eh-line); border-radius: 1rem; padding: 1.3rem; }
.eh-author__avatar { flex-shrink: 0; display: inline-flex; }
.eh-author__avatar img, .eh-author__img { max-width: none; width: 4.5rem; height: 4.5rem; border-radius: 999px; display: block; object-fit: cover; }
.eh-author__body { min-width: 0; }
.eh-author__name { display: block; font-weight: 700; color: var(--eh-ink); text-decoration: none; }
.eh-author__name:hover { color: var(--eh-primary); }
.eh-author__role { display: block; font-size: .82rem; font-weight: 600; color: var(--eh-primary); margin: .15rem 0 .5rem; }
.eh-author__bio { font-size: .9rem; color: var(--eh-body); line-height: 1.55; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .eh-hero__grid, .eh-single-hero__grid, .eh-features__layout, .eh-single-body__grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .eh-features__intro { position: static; }
    .eh-sticky { position: static; }
    .eh-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .eh-grid--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eh-single-hero__placeholder .eh-sheet { margin: 0 auto; }
}
@media (max-width: 768px) {
    .eh-header__actions .avg-search-form--header { display: none; }
    .eh-grid--cards { grid-template-columns: minmax(0, 1fr); }
    .eh-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eh-featgrid { grid-template-columns: minmax(0, 1fr); }
    .eh-authors__grid { grid-template-columns: minmax(0, 1fr); }
    .eh-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .eh-footer__brand { grid-column: 1 / -1; order: -1; }
    .eh-cta__panel { padding: 1.8rem; }
    .eh-hero, .eh-single-hero { padding-top: 2rem; }
}
@media (max-width: 420px) {
    .eh-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .eh-grid--sm { grid-template-columns: minmax(0, 1fr); }
}

/* MOBILE fixes: avatars never squashed, cards never overflow */
img.avatar { max-width: none; flex-shrink: 0; align-self: center; }
[class*="__avatar"] { flex-shrink: 0; }
[class*="__avatar"] img { max-width: none; }
.eh-card, .eh-card-sm, .eh-cat, .eh-featgrid__item, .eh-stat { min-width: 0; }
