/* ── Menu toggle button (matches .menu-icon-btn from React) ── */
.menu-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 3.5vw, 16px);
    width: 2.34em;
    height: 2.34em;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .menu-toggle:hover { background: #222325; }
}
.menu-toggle:active { background: #292c31; }
.menu-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}
.menu-toggle .bar {
    width: 1.25em;
    height: 0.125em;
    background-color: #f9fafb;
    border-radius: 1px;
}

/* ── Side menu panel ───────────────── */
/* em units used inside panel so sizes are relative to this
   element's font-size (matching React's rem-based layout). */
.side-menu {
    position: fixed;
    top: 0;
    right: -21em;
    width: 21em;
    height: 100dvh;
    background-color: #1f2937;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 1em 1.25em 0;
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: normal;
    direction: ltr;
}
.side-menu.open { right: 0; }

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.375em;
}
.side-menu-title {
    margin: 0;
    text-align: right;
    font-weight: 800;
    color: #f9fafb;
    font-size: 1.25em;
}
.menu-close-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .menu-close-btn:hover { background: #374151; }
}
.menu-close-btn:active { background: #292c31; }

.side-menu-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5em;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.side-menu-body::-webkit-scrollbar { display: none; }

.side-menu-item {
    background: none;
    border: none;
    padding: 0.57em 0.715em;
    text-align: right;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 700;
    transition: background-color 0.2s ease;
    color: #f9a61d;
    text-decoration: none;
    display: block;
    font-family: inherit;
}
.side-menu-item:hover { background-color: #374151; }

.side-menu-divider {
    border-top: 1px solid #374151;
    margin: 0.667em 0.715em 0;
    width: 50%;
    align-self: flex-end;
}
.side-menu-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #d1d5db;
    padding: 0.475em 0.715em 0.285em;
    margin-top: 0.38em;
    text-align: right;
    letter-spacing: 0.03em;
}

.side-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    padding: 0.5em 0.75em;
    border-top: 1px solid #374151;
}
.side-menu-footer-row {
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.side-menu-footer-item {
    background: none;
    border: none;
    padding: 0.2em 0;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 400;
    transition: color 0.2s ease;
    color: #9ca3af;
    text-decoration: none;
    font-family: inherit;
}
.side-menu-footer-item:hover { color: #f9fafb; }
.side-menu-footer-sep { color: #4b5563; }

.side-menu-promo {
    display: block;
    margin: 0.5em 0.715em;
    padding: 0.6em 0.715em;
    background: rgba(167,139,250,0.08);
    border: 1px dashed rgba(167,139,250,0.5);
    border-radius: 8px;
    font-size: 0.9em;
    color: #d1d5db;
    text-align: center;
    text-decoration: none;
}
.side-menu-promo span { color: #f9a61d; font-weight: 700; }
.side-menu-promo:hover { background: rgba(167,139,250,0.14); }

/* ── Overlay ───────────────────────── */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}
.side-menu-overlay.open { display: block; }
/* ── Toolbar ──────────────────────── */
.toolbar {
    margin-top: -1.2rem;
    margin-bottom: 0;
    margin-right: -0.1em;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}
.toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.toolbar .breadcrumb {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.toolbar .breadcrumb a, .toolbar .breadcrumb span { unicode-bidi: isolate; }
.toolbar .breadcrumb a { color: var(--link); text-decoration: none; }
.toolbar .breadcrumb a:hover { text-decoration: underline; }
.toolbar .breadcrumb .bc-sep { color: #9ca3af; margin: 0 0.2rem; }
.hero-updated {
    display: block;
    font-size: 0.75rem;
    color: #a1aabd;
    background: rgba(107,114,128,0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    text-align: end;
    margin-top: 0;
    width: fit-content;
    align-self: flex-end;
}
/* ── Share Panel ─────────────────────────── */

.share-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.share-panel-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
}

.share-panel-buttons {
    display: flex;
    gap: 0.6rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    transition:
        border-color 0.2s,
        transform 0.15s;
}

@media (hover: hover) {
    .share-btn:hover {
        border-color: var(--accent);
        transform: scale(1.1);
    }
}

.share-btn:active {
    border-color: var(--accent);
    transform: scale(0.95);
}

.share-btn img {
    width: 1.3rem;
    height: 1.3rem;
}

.share-btn img[src*="facebook"],
.share-btn img[src*="telegram"] {
    background: #fff;
    border-radius: 50%;
}
/* ── Related articles ────────────── */
.bp-related-articles { margin-top: 1rem; }
.bp-related-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.5rem; }
.bp-related-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-bright); margin: 0; }
.bp-related-see-all { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: opacity 0.2s; }
.bp-related-see-all:hover { opacity: 0.8; }
.bp-related-row { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; gap: 0.65rem; }
.bp-related-card { position: relative; border-radius: 0.75rem; overflow: hidden; cursor: pointer; text-decoration: none; border: 1px solid #374151; }
.bp-related-card:first-child { grid-row: span 2; }
.bp-related-card > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.bp-related-card:hover > img { transform: scale(1.09); }
.bp-related-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 0.75rem 0.6rem; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.5) 65%, rgba(0,0,0,0.15) 80%, transparent 100%); }
.bp-related-title { font-size: 0.82rem; font-weight: 700; color: #f9fafb; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-related-card:first-child .bp-related-title { font-size: 1rem; font-weight: 800; -webkit-line-clamp: 3; }
@media (max-width: 600px) {
    .bp-related-row { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8rem; }
    .bp-related-card:first-child { grid-column: span 2; grid-row: span 1; }
}
.bp-related-card .bc-reviewer { margin-bottom: 0; margin-top: 0.3rem; }
.bp-related-card .bc-reviewer-pic { width: 18px !important; height: 18px !important; max-width: 18px; max-height: 18px; min-width: 18px; min-height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); margin-left: 0.3rem; flex-shrink: 0; }
.bc-reviewer { display: flex; align-items: center; flex-wrap: wrap; row-gap: 0.15rem; column-gap: 0; margin-bottom: 0.4rem; margin-top: 0.5rem; font-size: 0.78rem; color: #9ca3af; line-height: 1.4; }
.bc-reviewer-pic { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); margin-left: 0.3rem; }
.bc-reviewer-label { color: var(--accent); font-weight: 700; margin-left: 0.25rem; }
.bc-reviewer-name { font-weight: 700; color: var(--text); }
.bc-reviewer-title { font-weight: bold; }
/* ═══════════════════════════════════════════════════════════════════
   WikiPets (וטיפדיה) — Page Styles
   Wiki-style layout: hero with search, stats bar, A-Z filter, collapsible category cards.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Page layout ─────────────────────────────────────────────── */

.wp-page { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* ─── Hero ────────────────────────────────────────────────────── */

.wp-hero { background: var(--surface); border-radius: 1rem; padding: 1.5rem 1.5rem 1rem 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; text-align: center; }
.wp-hero::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 1rem; pointer-events: none; }
.wp-site-logo { height: 5rem; width: auto; }
.wp-site-logo-link { display: block; margin-bottom: 0.5rem; }
.wp-hero h1 { font-size: 2.6rem; font-weight: 900; margin: 0 0 0.5rem; color: var(--text-bright); letter-spacing: -1px; position: relative; }
.wp-hero h1 span { color: var(--accent); }
.wp-hero-sub { font-size: 1rem; color: #9ca3af; margin: 0; position: relative; }
.wp-hero-count { font-size: 0.9rem; color: var(--accent); margin: 0.35rem 0 0; position: relative; }

/* ─── Filter card (matches blog) ──────────────────────────────── */

.wp-filter { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.wp-filter-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.wp-filter-title { font-size: 0.85rem; color: #9ca3af; font-weight: 600; }
.wp-filter-count { font-size: 0.82rem; color: #9ca3af; }
.wp-filter-right { display: flex; align-items: center; gap: 0.4rem; }
.wp-filter-sep { color: #9ca3af; font-size: 0.82rem; }
.wp-az-reset { font-size: 0.78rem; color: var(--accent); text-decoration: none; }
.wp-az-reset:hover { color: var(--text-bright); }
.wp-filter-search { width: 100%; background: transparent; border: 1px solid var(--border); color: var(--text-bright); font-size: 0.85rem; padding: 0.4rem 0.75rem; border-radius: 999px; font-family: var(--font); outline: none; transition: border-color 0.15s; margin-bottom: 0.75rem; }
.wp-filter-search:focus { border-color: var(--accent); }
.wp-filter-search::placeholder { color: #6b7280; }

/* ─── A-Z bar (inside filter card) ─────────────────────────────── */

.wp-az { text-align: center; font-size: 0.9rem; padding-top: 0.25rem; }
.wp-az-link { color: var(--accent); padding: 0.15rem 0.3rem; border-radius: 0.25rem; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.wp-az-link:hover { background: rgba(249,166,29,0.15); }
.wp-az-link.active { background: var(--accent); color: #000; font-weight: 700; }
.wp-az-sep { color: var(--border); margin: 0 0.15rem; font-size: 0.75rem; }

/* ─── Category cards ──────────────────────────────────────────── */

.wp-card { background: var(--surface); border: 1px solid var(--accent); border-radius: 0.75rem; margin-bottom: 1rem; overflow: hidden; }

.wp-card-hdr { display: flex; align-items: center; padding: 0.75rem 1.25rem; gap: 0.5rem; cursor: pointer; transition: background 0.15s; user-select: none; }
.wp-card-hdr:hover { background: rgba(255,255,255,0.03); }
.wp-card-hdr h2 { font-size: 1.15rem; color: var(--accent); margin: 0; flex: 1; font-weight: 700; }
.wp-cnt { background: var(--accent); color: #000; border-radius: 1rem; padding: 0.1rem 0.6rem; font-size: 0.75rem; font-weight: 700; }
.wp-card-arrow { color: #9ca3af; font-size: 0.7rem; transition: transform 0.2s; }

.wp-card.collapsed .wp-card-arrow { transform: rotate(180deg); }
.wp-card.collapsed .wp-card-bd { display: none; }

.wp-card-bd { padding: 0.5rem 1.25rem 1rem; border-top: 1px solid var(--border); }

.wp-list { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 1.25rem; }
.wp-list li { margin-bottom: 0.25rem; break-inside: avoid; }
.wp-item { font-size: 0.82rem; font-weight: 400; color: var(--link); text-decoration: none; display: inline; padding: 0.15rem 0; transition: color 0.15s; }
.wp-item:hover { color: #93bbfd; text-decoration: underline; }

/* ─── No results ──────────────────────────────────────────────── */

.wp-empty { display: none; text-align: center; padding: 2.5rem 1rem; color: #9ca3af; font-size: 1rem; }
.wp-empty.show { display: block; }

/* ─── Individual term page ────────────────────────────────────── */

.wp-term { max-width: 42rem; margin: 0 auto; padding: 0.5rem 0 1.5rem; }
.wp-term-header { margin-bottom: 1.25rem; }
.wp-term-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.wp-term-tag { display: inline-block; background: rgba(249,166,29,0.9); color: #141415; font-size: 0.85rem; font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 1rem; }
.wp-term-brand { font-size: 1.4rem; font-weight: 800; color: var(--text-bright); text-decoration: none; }
.wp-term-brand:hover { opacity: 0.85; }
.wp-term-brand span { color: var(--accent); }
.wp-term-title { font-size: 1.5rem; font-weight: 800; margin: 0; color: var(--text-bright); line-height: 1.3; }
.wp-term-img { width: 100%; border-radius: 0.75rem; margin-bottom: 1.5rem; aspect-ratio: 16 / 7; object-fit: cover; display: block; }

.wp-term-def { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border-right: 3px solid var(--accent); }
.wp-term-def p { font-size: 1rem; color: var(--text); line-height: 1.9; margin: 0; }
.wp-term-def a { color: var(--link); text-decoration: underline; }
.wp-term-def a:hover { color: #93bbfd; }

.wp-term-sec { margin-bottom: 1.5rem; }
.wp-term-sec h2 { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin: 0 0 0.75rem; line-height: 1.3; }
.wp-term-sec p { font-size: 1rem; color: var(--text); line-height: 1.9; margin: 0; }
.wp-term-sec a { color: var(--link); text-decoration: underline; }
.wp-term-sec a:hover { color: #93bbfd; }

.wp-term-related { margin-top: 1.25rem; border-top: 1px solid var(--border); }
.wp-term-related h2 { font-size: 1rem; margin: 1.25rem 0 0.75rem; }
.wp-term-related-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.wp-term-related-tag { display: inline-block; background: var(--hover, #283040); color: var(--link); padding: 0.45rem 1rem; border-radius: 1.25rem; font-size: 0.85rem; text-decoration: none; border: 1px solid var(--border); transition: all 0.2s; }
.wp-term-related-tag:hover { background: var(--link); color: #fff; border-color: var(--link); }

.wp-term-sep { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ─── Disclaimer ──────────────────────────────────────────────── */

.disclaimer { margin-top: 3rem; padding: 1.25rem 1.5rem 0 1.5rem; border-top: 1px solid var(--border); color: #6b7280; font-size: 0.8rem; line-height: 1.6; }
.disclaimer strong { color: #9ca3af; }

/* ─── Mobile ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .wp-page { padding: 1.5rem 1rem 3rem; }
    .wp-hero { padding: 1.25rem 1rem; }
    .wp-hero h1 { font-size: 2rem; }
    .wp-list { columns: 2; }
    .wp-az { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .wp-hero h1 { font-size: 1.7rem; }
    .wp-list { columns: 2; }
    .wp-term-title { font-size: 1.25rem; }
    .wp-term-img { aspect-ratio: 16 / 9; border-radius: 0.5rem; }
}
/* ═══════════════════════════════════════════════════════════════════
   SSR Common — Shared styles across all SSR pages
   ═══════════════════════════════════════════════════════════════════ */

/* ── CTA Button (soft blob) ─────────────────── */
.ssr-cta {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: block;
    margin-inline: auto;
    width: fit-content;
    background: transparent;
    border: none;
    color: #fffbe6;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.65rem;
    border-radius: 1.5rem 0.6rem 1.5rem 0.6rem;
    text-decoration: none;
    font-family: var(--font);
    transition: transform 0.25s, border-radius 0.4s, box-shadow 0.25s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.ssr-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        #c4b8f0,
        #b4a4e8,
        #a490e0,
        #bca8ec,
        #ccbcf4,
        #bca8ec,
        #a490e0,
        #b8a8e4,
        #c0b0ec,
        #b4a4e8,
        #c4b8f0
    );
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.72;
    animation: cp-ai-border-flow 12s linear infinite;
    pointer-events: none;
}
.ssr-cta::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: calc(1.5rem - 1px) calc(0.6rem - 1px) calc(1.5rem - 1px) calc(0.6rem - 1px);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.92), rgba(147, 121, 240, 0.75), rgba(127, 109, 230, 0.72), rgba(167, 139, 250, 0.92));
    background-size: 300% 300%;
    animation: cp-ai-bg-shift 14s linear infinite;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: none;
    transition: border-radius 0.4s, background 0.25s;
}
@media (hover: hover) {
    .ssr-cta:hover {
        border-radius: 0.6rem 1.5rem 0.6rem 1.5rem;
        transform: translateY(-2px);
        background: transparent;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }
    .ssr-cta:hover::after {
        border-radius: calc(0.6rem - 1px) calc(1.5rem - 1px) calc(0.6rem - 1px) calc(1.5rem - 1px);
        background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(147, 121, 240, 0.8), rgba(127, 109, 230, 0.78), rgba(167, 139, 250, 0.95));
        background-size: 300% 300%;
        animation: cp-ai-bg-shift 14s linear infinite;
    }
}

@keyframes cp-ai-border-flow {
    to { background-position: 250% 0; }
}
@keyframes cp-ai-bg-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Sticky bottom CTA ──────────────── */
.cp-sticky-cta-wrap {
    position: sticky;
    bottom: 0.25rem;
    z-index: 10;
    margin: 1.5rem -0.625rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 1.25rem);
}
.cp-sticky-cta-wrap .ssr-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    margin-bottom: 0.25rem;
    padding: 0.35rem 2rem;
    text-shadow: none;
}
.cp-ai-cta-label {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.cp-sticky-cta-wrap .ssr-cta:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.5);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    .cp-sticky-cta-wrap .ssr-cta::before,
    .cp-sticky-cta-wrap .ssr-cta::after {
        animation: none;
    }
}

/* ── Animatable custom properties for hero glow ── */
@property --glow-x {
    syntax: '<percentage>';
    initial-value: 62%;
    inherits: false;
}
@property --glow-y {
    syntax: '<percentage>';
    initial-value: 25%;
    inherits: false;
}
@property --glow-a {
    syntax: '<number>';
    initial-value: 0.7;
    inherits: false;
}

/* ── Hero purple gradient glow ── */
.ssr-hero-glow {
    /* static centered ambient + subtle dark tint */
    background-image:
        radial-gradient(
            ellipse 100% 90% at 62% 25%,
            rgba(167, 139, 250, 0.045) 0%,
            rgba(139, 92, 246, 0.021) 40%,
            transparent 70%
        ),
        linear-gradient(
            rgba(0, 0, 0, 0.14),
            rgba(0, 0, 0, 0.14)
        );
}

/* single centered blob — drifting + breathing */
.ssr-hero-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(
            ellipse 80% 85% at var(--glow-x) var(--glow-y),
            rgba(167, 139, 250, 0.101) 0%,
            rgba(167, 139, 250, 0.041) 40%,
            transparent 75%
        );
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: var(--glow-a);
    animation: hero-glow-drift 20s ease-in-out infinite;
}

@keyframes hero-glow-drift {
    0%   { --glow-x: 62%; --glow-y: 25%; --glow-a: 0.71; }
    25%  { --glow-x: 78%; --glow-y: 12%; --glow-a: 0.90; }
    50%  { --glow-x: 48%; --glow-y: 35%; --glow-a: 0.62; }
    75%  { --glow-x: 72%; --glow-y: 30%; --glow-a: 0.81; }
    100% { --glow-x: 62%; --glow-y: 25%; --glow-a: 0.71; }
}

@media (prefers-reduced-motion: reduce) {
    .ssr-hero-glow::after {
        animation: none;
        --glow-x: 62%;
        --glow-y: 25%;
        --glow-a: 0.76;
    }
}

/* ── Back to top link ──────────────── */
.back-to-top { display: block; text-align: center; color: #9ca3af; font-size: 0.8rem; margin-top: 1.25rem; text-decoration: none; }
.back-to-top:hover { color: var(--accent); }
