/**
 * MaestroExcel theme styles
 */

/* WordPress Core Alignment */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; margin: .75rem; padding: .75rem 1rem; overflow: visible; background: #fff; color: #0f172a; z-index: 100; }
.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;
}

/* ============ MaestroExcel search (header + hero + mobile) ============ */
.me-search-form { position: relative; }
/* header variant: hidden on mobile, flex-grow centered on desktop */
.me-search-form--header { display: none; }
@media (min-width: 768px) {
  .me-search-form--header { display: flex; align-items: center; }
}
.me-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;
}
.me-search-input:focus { border-color: var(--me-secondary,#3B82F6); box-shadow: 0 0 0 3px rgba(59,130,246,.18); background:#fff; }
.me-search-icon { position:absolute; left:0.8rem; top:50%; transform:translateY(-50%); width:1rem; height:1rem; color:#9ca3af; pointer-events:none; }
.me-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; }
.me-search-submit:hover { color: var(--me-secondary,#3B82F6); }
/* hero variant */
.me-search-form--hero { max-width:36rem; margin:0 auto 2rem; }
.me-search-form--hero .me-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); }
.me-search-form--hero .me-search-icon { left:1.1rem; width:1.25rem; height:1.25rem; }
.me-search-form--hero .me-search-button { position:absolute; right:0.5rem; top:50%; transform:translateY(-50%); background:var(--me-secondary,#3B82F6); color:#fff; font-weight:600; border:0; border-radius:0.5rem; padding:0.6rem 1.4rem; cursor:pointer; transition:background .15s; }
.me-search-form--hero .me-search-button:hover { background:var(--me-primary,#1E3A8A); }
/* mobile variant */
.me-search-form--mobile { padding:0 0.5rem 0.5rem; display:block; }

.me-search-form--header { max-width: 30rem; margin-left: 2.5rem; margin-right: 2.5rem; }
@media (max-width: 1100px){ .me-search-form--header { margin-left:1.25rem; margin-right:1.25rem; } }

/* ═══════════════════════════════════════════════════
   MaestroExcel identity — professional blue and green
   Maps legacy utility colors into the theme palette.
   ═══════════════════════════════════════════════════ */
:root {
    --me-primary: #1D4ED8;
    --me-primary-600: #2563EB;
    --me-primary-800: #1E40AF;
    --me-primary-900: #172554;
    --me-secondary: #15803D;
    --me-accent: #15803D;
    --me-accent-600: #166534;
    --me-ink: #0F172A;
    --me-body: #475569;
    --me-muted: #64748B;
    --me-line: #E2E8F0;
    --me-surface: #F8FAFC;
}

/* Map compiled utility blues onto the MaestroExcel palette. */
.from-blue-900 { --tw-gradient-from: var(--me-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(--me-primary-800), var(--tw-gradient-to, rgba(17,94,89,0)) !important; }
.to-blue-700 { --tw-gradient-to: var(--me-primary) !important; }
.bg-gradient-to-br.from-blue-900, .bg-gradient-to-r.from-blue-600 { background: linear-gradient(135deg, var(--me-primary-900), var(--me-primary)) !important; }
.from-blue-600 { --tw-gradient-from: var(--me-primary-600) !important; }
.bg-blue-600 { background-color: var(--me-primary) !important; }
.hover\:bg-blue-700:hover { background-color: var(--me-primary-800) !important; }
.bg-blue-700, .bg-blue-800, .bg-blue-900 { background-color: var(--me-primary-800) !important; }
.text-blue-600, .text-blue-700 { color: var(--me-primary) !important; }
.text-blue-800, .text-blue-900 { color: var(--me-primary-900) !important; }
.hover\:text-blue-600:hover { color: var(--me-primary) !important; }
.hover\:text-blue-700:hover { color: var(--me-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(--me-primary-600) !important; }
.focus\:border-blue-500:focus { border-color: var(--me-primary-600) !important; }
.bg-white\/10 { background-color: rgba(255,255,255,0.12) !important; }
#scroll-to-top { background: var(--me-primary) !important; }
#scroll-to-top:hover { background: var(--me-primary-800) !important; }
.nav-links .current { background: var(--me-primary) !important; border-color: var(--me-primary) !important; }
:focus-visible { outline-color: var(--me-primary) !important; }
.me-search-input:focus { border-color: var(--me-primary-600); box-shadow: 0 0 0 3px rgba(13,148,136,.18); }

/* ═══════════════════════════════════════════════════
   MaestroExcel Lean component system (me-*)
   Hand-authored because tailwind.css is a purged static build.
   ═══════════════════════════════════════════════════ */

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

/* Buttons */
.me-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; }
.me-btn svg { width: 1.1rem; height: 1.1rem; }
.me-btn--primary { background: var(--me-primary); color: #fff; }
.me-btn--primary:hover { background: var(--me-primary-800); }
.me-btn--ghost { background: transparent; color: var(--me-primary); border: 1px solid var(--me-line); }
.me-btn--ghost:hover { border-color: var(--me-primary); background: #F0FDFA; }
.me-btn--light { background: #fff; color: var(--me-primary-900); }
.me-btn--light:hover { background: var(--me-surface); }
.me-btn--download { background: var(--me-accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(21,128,61,.55); }
.me-btn--download:hover { background: var(--me-accent-600); color: #fff; }
.me-btn--lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.me-btn.w-full { width: 100%; }

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

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

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

/* Features */
.me-features { padding: 4rem 0; background: #fff; }
.me-features__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 3rem; align-items: start; }
.me-features__intro { position: sticky; top: 6rem; }
.me-features__list { display: grid; gap: 1.1rem; }
.me-feature { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 1rem; background: var(--me-surface); border: 1px solid var(--me-line); border-radius: .9rem; padding: 1.2rem 1.3rem; transition: border-color .15s, box-shadow .15s; }
.me-feature:hover { border-color: #99F6E4; box-shadow: 0 12px 30px -18px rgba(29,78,216,.5); }
.me-feature__num { font-size: .9rem; font-weight: 700; color: var(--me-accent-600); }
.me-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; }
.me-feature__icon svg { width: 1.35rem; height: 1.35rem; color: var(--me-primary); }
.me-feature__title { font-weight: 600; color: var(--me-ink); margin-bottom: .25rem; }
.me-feature__desc { color: var(--me-body); line-height: 1.55; }

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

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

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

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

/* FAQ */
.me-faq { padding: 4rem 0; background: var(--me-surface); }
.me-faq__list { display: grid; gap: .8rem; }
.me-faq__item { background: #fff; border: 1px solid var(--me-line); border-radius: .8rem; overflow: hidden; }
.me-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(--me-ink); font-family: inherit; font-size: 1rem; }
.me-faq__q:hover { background: var(--me-surface); }
.me-faq__chev { width: 1.25rem; height: 1.25rem; color: var(--me-muted); flex-shrink: 0; transition: transform .2s; }
.me-faq__q[aria-expanded="true"] .me-faq__chev { transform: rotate(180deg); }
.me-faq__a { padding: 0 1.3rem 1.2rem; color: var(--me-body); }

/* CTA */
.me-cta { padding: 4rem 0; background: #fff; }
.me-cta__panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--me-primary-900), var(--me-primary)); border-radius: 1.4rem; padding: 2.6rem; color: #fff; overflow: hidden; position: relative; }
.me-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%); }
.me-cta__text { max-width: 40rem; position: relative; z-index: 1; }
.me-cta__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.me-cta__desc { margin-top: .7rem; font-size: 1.05rem; color: #CCFBF1; line-height: 1.6; }
.me-cta__note { margin-top: 1rem; font-size: .85rem; color: #99F6E4; }
.me-cta__action { position: relative; z-index: 1; }

/* Footer */
.me-footer { background: #0B1220; color: #94A3B8; }
.me-footer__inner { padding: 3.5rem 1rem 2rem; }
.me-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.me-footer__heading { color: #fff; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.me-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.me-footer__links a { color: #94A3B8; text-decoration: none; transition: color .15s; }
.me-footer__links a:hover { color: #fff; }
.me-footer__cookie-manage { appearance: none; border: 0; padding: 0; background: transparent; color: #94A3B8; font: inherit; cursor: pointer; text-align: left; }
.me-footer__cookie-manage:hover, .me-footer__cookie-manage:focus-visible { color: #fff; text-decoration: underline; }
.me-footer__brand { min-width: 0; }
.me-footer__logo { font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; }
.me-footer__tagline { margin-top: .8rem; font-size: .9rem; line-height: 1.6; color: #94A3B8; }
.me-footer__social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.me-footer__social a { color: #94A3B8; transition: color .15s; }
.me-footer__social a:hover { color: #fff; }
.me-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; }
.me-footer__note { color: #94A3B8; }

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

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

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

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

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

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

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

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

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

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

/* Reduced motion must follow all component declarations to override them. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .me-shots__track { scroll-behavior: auto !important; }
}
