/* Text emphasis only: original header and footer surfaces remain intact. */
.eh-header .bf-menu-downloads{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.eh-header .bf-menu-downloads>a:first-child{font-size:13px;color:var(--eh-muted)}
.eh-header .bf-platform-mini{display:inline-flex;align-items:center;gap:9px;background:transparent;border:0;padding:4px;color:inherit;font:inherit;text-decoration:none;cursor:pointer}
.eh-header .bf-platform-mini :is(img,svg){width:28px;height:28px;object-fit:contain;flex-shrink:0}
.eh-header .eh-mega-bottom{align-items:center;gap:28px}
.eh-header .eh-mega-bottom>a:last-child{margin-left:auto}
.eh-header .eh-menu-icon--sofia{overflow:hidden;border-radius:15px}
.eh-header .eh-menu-icon--sofia{display:grid;place-items:center;padding:10px}
.eh-header .eh-menu-icon--sofia img{width:30px;height:30px;max-width:100%;object-fit:contain;border-radius:0}
@media(max-width:760px){.eh-header .eh-mega-bottom{gap:18px}.eh-header .eh-mega-bottom>a:last-child{margin-left:0}}
:root { --nav-sweep-a:#7c20c9; --nav-sweep-b:#145fc2; --nav-sweep-c:#bd247f; }
:root[data-theme=dark] { --nav-sweep-a:#d3b0ff; --nav-sweep-b:#8acbff; --nav-sweep-c:#ffadde; }
.eh-header .nav-sweep { display:inline-block;position:relative; }
.eh-header .nav-sweep::after {
  content:attr(data-sweep-text);position:absolute;inset:0;pointer-events:none;
  color:transparent;background:linear-gradient(90deg,var(--nav-sweep-a),var(--nav-sweep-b),var(--nav-sweep-c));
  -webkit-background-clip:text;background-clip:text;clip-path:inset(0 100% 0 0);transition:none;
}
.eh-header :is(summary,a):is(:hover,:focus-visible) .nav-sweep::after {
  animation:nav-text-pass 1.05s ease-out both;
}
@keyframes nav-text-pass {
  0% { clip-path:inset(0 100% 0 0); }
  35% { clip-path:inset(0 25% 0 0); }
  65% { clip-path:inset(0 0 0 45%); }
  100% { clip-path:inset(0 0 0 100%); }
}
.eh-header .eh-nav-group>summary .eh-chevron,
.eh-header .eh-nav-group[open]>summary .eh-chevron { transform:rotate(45deg);margin-bottom:4px; }
/* Preserve the original logo and its native tagline alignment. No text overlay. */
.eh-header .eh-brand>span { width:174px;min-width:174px; }
@media(max-width:760px) { .eh-header .eh-brand>span { width:139px;min-width:139px; } }
/* Keep the original glass artwork visible in dark mode, with a protected reading area. */
:root[data-theme=dark] #main.hf-home>.eh-hero {
  --hg-brightness:.8;
  --hg-copy-veil:color-mix(in srgb,var(--eh-bg) 88%,transparent);
  --hg-edge-veil:color-mix(in srgb,var(--eh-bg) 12%,transparent);
}
:root[data-theme=dark] #main.hf-home>.eh-hero::after {
  background:linear-gradient(to bottom,transparent 86%,var(--eh-bg)),radial-gradient(ellipse 52% 55% at 50% 16%,var(--hg-copy-veil) 0%,var(--hg-copy-veil) 60%,var(--hg-edge-veil) 100%);
}
:root[data-theme=dark] #main.hf-home>.eh-hero::before { filter:brightness(var(--hg-brightness)) saturate(1.15); }
@media(max-width:760px) {
  :root[data-theme=dark] #main.hf-home>.eh-hero { --hg-brightness:.7;--hg-copy-veil:color-mix(in srgb,var(--eh-bg) 94%,transparent); }
  :root[data-theme=dark] #main.hf-home>.eh-hero::after { background:linear-gradient(to bottom,transparent 86%,var(--eh-bg)),radial-gradient(ellipse 90% 66% at 50% 16%,var(--hg-copy-veil) 0%,var(--hg-copy-veil) 60%,var(--hg-edge-veil) 100%); }
}
@media(prefers-reduced-motion:reduce) {
  .eh-header :is(summary,a):is(:hover,:focus-visible) .nav-sweep::after { animation:none;clip-path:inset(0); }
}
@media(forced-colors:active) { .eh-header .nav-sweep::after { display:none; } }

/* Keep the feature index visible before hover in every expanded menu. */
:root body .eh-header .eh-mega-bottom>a.eh-all-features{display:inline-flex;align-items:center;gap:12px;padding:11px 16px;background:var(--eh-accent);color:var(--eh-on-button);border:1px solid var(--eh-accent);border-radius:9px;font-weight:650;text-decoration:none;opacity:1;visibility:visible}:root body .eh-header .eh-mega-bottom>a.eh-all-features:hover{filter:brightness(1.1)}:root body .eh-header .eh-mega-bottom>a.eh-all-features:focus-visible{outline:2px solid var(--eh-accent);outline-offset:4px}:root body .eh-footer .eh-footer-columns{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1000px){:root body .eh-footer .eh-footer-columns{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){:root body .eh-footer .eh-footer-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* AI identity uses the existing bird asset on a consistent brand tile. */
.eh-header .eh-menu-icon--sofia{width:34px;height:34px;padding:6px;flex:0 0 34px;background:#7500c7;border:1px solid #9c46e6;box-shadow:inset 0 1px 0 #ffffff36,0 3px 8px #7500c71a;border-radius:10px}
.eh-header .eh-menu-icon--sofia img{display:block;width:23px;height:23px;max-width:none;object-fit:contain;filter:brightness(0) invert(1);transform:none}
