/*
 * Editorial — Ultra-Modern Homepage & Header
 * Homa CMS · MJ Redesign 2026
 * Premium dark theme with glassmorphism, neon accents, cinematic animations
 */

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════════ */
/* Color tokens: static/css/theme-tokens.css */

/* ═══════════════════════════════════════════════════
   GLOBAL BASE
════════════════════════════════════════════════════ */
html.dark-theme,
html.light-theme {
    background-color: var(--hx-bg);
    scrollbar-width: thin;
    scrollbar-color: var(--hx-accent) var(--hx-elevated);
}

html.dark-theme body,
html.light-theme body {
    background-color: var(--hx-bg);
    color: var(--hx-text);
    font-family: 'IRANSans', 'isSans', Tahoma, sans-serif;
    padding-bottom: 0 !important;
}

/* Premium grain texture overlay */
html.dark-theme body::before,
html.light-theme body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--hx-grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scrollbar */
html.dark-theme ::-webkit-scrollbar,
html.light-theme ::-webkit-scrollbar { width: 6px; height: 6px; }
html.dark-theme ::-webkit-scrollbar-track,
html.light-theme ::-webkit-scrollbar-track { background: var(--hx-elevated); }
html.dark-theme ::-webkit-scrollbar-thumb,
html.light-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--hx-accent), var(--hx-accent-2));
    border-radius: 99px;
}

/* Reading progress bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--hx-accent), var(--hx-accent-2));
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 16px var(--hx-accent-glow);
}

/* ═══════════════════════════════════════════════════
   HEADER — GLASSMORPHISM STICKY
════════════════════════════════════════════════════ */
.ed-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    font-family: 'IRANSans', 'isSans', sans-serif;
    background: var(--hx-header-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--hx-border);
    box-shadow: var(--hx-header-shadow-soft);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ed-header.is-scrolled {
    background: var(--hx-header-glass-scrolled);
    box-shadow: var(--hx-header-shadow-strong);
}

/* Breaking news ticker bar */
.ed-header-ticker {
    background: var(--hx-ticker-bg);
    border-bottom: 1px solid var(--hx-border);
    overflow: hidden;
    position: relative;
}

.ed-header-ticker::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5rem;
    background: linear-gradient(to left, var(--hx-ticker-fade), transparent);
    z-index: 2;
    pointer-events: none;
}

.ed-header-ticker-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    min-height: 2rem;
}

.ed-header-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--hx-red), #dc2626);
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: hx-pulse-badge 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes hx-pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

.ed-header-ticker-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hx-red);
    animation: hx-blink 1.2s ease-in-out infinite;
}

@keyframes hx-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.ed-header-ticker-scroll {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.ed-header-ticker-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--hx-ticker-text);
    animation: hx-ticker-scroll 28s linear infinite;
    padding-left: 3rem;
}

@keyframes hx-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ed-header-ticker-text:hover {
    animation-play-state: paused;
}

.ed-header-ticker-lang {
    display: none;
    gap: 0.75rem;
    font-size: 0.7rem;
    opacity: 0.7;
    flex-shrink: 0;
    color: var(--hx-text-muted);
}

.ed-header-ticker-lang a { color: inherit; transition: color 0.2s; }
.ed-header-ticker-lang a:hover { color: var(--hx-accent); opacity: 1; }

@media (min-width: 640px) {
    .ed-header-ticker-lang { display: flex; }
}

/* Header main bar */
.ed-header-main {
    background: transparent;
}

.ed-header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 0;
    min-height: 4rem;
}

/* Brand */
.ed-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    position: relative;
}

.ed-header-brand::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--hx-radius);
    background: var(--hx-accent-dim);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ed-header-brand:hover::after { opacity: 1; }

.ed-header-logo {
    height: 2.75rem;
    width: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(0, 194, 255, 0.15));
    transition: filter 0.3s ease;
}

.ed-header-brand:hover .ed-header-logo {
    filter: drop-shadow(0 0 12px var(--hx-accent-glow));
}

@media (min-width: 768px) {
    .ed-header-logo { height: 3rem; }
}

.ed-header-brand-text {
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 480px) {
    .ed-header-brand-text { display: flex; }
}

.ed-header-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--hx-text);
    line-height: 1.3;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .ed-header-title { font-size: 1rem; }
}

.ed-header-brand:hover .ed-header-title {
    color: var(--hx-accent);
}

.ed-header-sub {
    font-size: 0.625rem;
    color: var(--hx-text-dim);
    line-height: 1.3;
    letter-spacing: 0.01em;
}

/* Desktop navigation */
.ed-header-nav {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
}

@media (min-width: 992px) {
    .ed-header-nav { display: flex; }
}

.ed-nav-link,
.ed-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hx-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    border-radius: var(--hx-radius);
    transition: color 0.2s ease, background 0.2s ease;
    font-family: inherit;
    position: relative;
}

.ed-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    right: 0.7rem;
    left: 0.7rem;
    height: 1.5px;
    background: var(--hx-accent);
    border-radius: 99px;
    transform: scaleX(0);
    transition: transform 0.25s var(--hx-ease-spring);
    transform-origin: right;
}

.ed-nav-link:hover,
.ed-nav-btn:hover,
.ed-nav-link:focus-visible,
.ed-nav-btn:focus-visible {
    color: var(--hx-text);
    background: rgba(255, 255, 255, 0.05);
}

.ed-nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.ed-nav-item {
    position: relative;
}

.ed-nav-item .fa-chevron-down {
    font-size: 0.5rem;
    opacity: 0.4;
    transition: transform 0.22s var(--hx-ease);
}

.ed-nav-item:hover .fa-chevron-down,
.ed-nav-item:focus-within .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown */
.ed-nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 14rem;
    max-width: 18rem;
    max-height: 18rem;
    overflow-y: auto;
    background: var(--hx-dropdown-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--hx-border-soft);
    border-radius: var(--hx-radius-lg);
    box-shadow: var(--hx-shadow-dropdown), 0 0 0 1px rgba(0, 194, 255, 0.04);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s var(--hx-ease-out);
    z-index: 40;
}

.ed-nav-item:hover .ed-nav-dropdown,
.ed-nav-item:focus-within .ed-nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.ed-nav-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: var(--hx-text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--hx-border);
    transition: background 0.15s, color 0.15s, padding-right 0.2s;
}

.ed-nav-dropdown a:last-child { border-bottom: none; }

.ed-nav-dropdown a:hover {
    background: var(--hx-accent-dim);
    color: var(--hx-accent);
    padding-right: 1.25rem;
}

/* Header actions */
.ed-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: auto;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .ed-header-actions { margin-right: 0; }
}

/* Desktop search */
.ed-header-search {
    display: none;
    position: relative;
    align-items: center;
}

@media (min-width: 992px) {
    .ed-header-search { display: flex; }
}

.ed-header-search input {
    width: 10rem;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--hx-text);
    background: var(--hx-input-bg);
    border: 1px solid var(--hx-border-soft);
    border-radius: 99px;
    transition: border-color 0.25s, width 0.35s var(--hx-ease), box-shadow 0.25s;
    outline: none;
}

.ed-header-search input::placeholder { color: var(--hx-text-dim); }

.ed-header-search input:focus {
    border-color: var(--hx-accent);
    width: 13rem;
    box-shadow: 0 0 0 3px var(--hx-accent-dim);
}

.ed-header-search button {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--hx-text-dim);
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.ed-header-search button:hover { color: var(--hx-accent); }

/* Mobile toggle buttons */
.ed-header-menu-btn,
.ed-header-search-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hx-border-soft);
    border-radius: var(--hx-radius);
    color: var(--hx-text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--hx-ease-spring);
}

.ed-header-menu-btn:hover,
.ed-header-search-btn-mobile:hover {
    background: var(--hx-accent-dim);
    border-color: rgba(0, 194, 255, 0.3);
    color: var(--hx-accent);
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .ed-header-menu-btn,
    .ed-header-search-btn-mobile { display: none; }
}

/* Animated burger icon */
.ed-burger {
    width: 1.375rem;
    height: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.ed-burger span {
    display: block;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s var(--hx-ease), opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

.ed-burger span:nth-child(2) { width: 70%; margin-right: auto; }

.ed-header-menu-btn.is-open .ed-burger span:nth-child(1) {
    transform: translateY(0.46rem) rotate(45deg);
}
.ed-header-menu-btn.is-open .ed-burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.ed-header-menu-btn.is-open .ed-burger span:nth-child(3) {
    transform: translateY(-0.46rem) rotate(-45deg);
}

/* Mobile search bar */
.ed-header-mobile-search {
    display: none;
    padding: 0.625rem 0;
    border-top: 1px solid var(--hx-border);
    background: var(--hx-mobile-search-bg);
    backdrop-filter: blur(20px);
    animation: hx-slide-down 0.25s ease;
}

.ed-header-mobile-search.is-open { display: block; }

.ed-header .site-header-mobile-search-bar { display: none; }

.ed-header-mobile-search input {
    width: 100%;
    padding: 0.55rem 2.25rem 0.55rem 0.875rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--hx-text);
    background: var(--hx-input-bg);
    border: 1px solid var(--hx-border-soft);
    border-radius: var(--hx-radius-lg);
    outline: none;
    transition: border-color 0.25s;
}

.ed-header-mobile-search input:focus {
    border-color: var(--hx-accent);
}

/* Mobile panel */
.ed-header-mobile-panel {
    display: none;
    background: var(--hx-mobile-panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--hx-border);
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    box-shadow: var(--hx-shadow-card);
}

.ed-header-mobile-panel.is-open,
#mobile-menu.ed-header-mobile-panel.is-open,
#mobile-menu.site-header-mobile-panel.is-open {
    display: block !important;
    animation: hx-slide-down 0.3s var(--hx-ease-out);
}

@media (max-width: 991.98px) {
    #mobile-menu.ed-header-mobile-panel.is-open,
    #mobile-menu.site-header-mobile-panel.is-open {
        position: fixed;
        top: var(--ed-mobile-menu-top, 7.25rem);
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1035;
        max-height: none !important;
        overflow-y: auto;
        border-top: 1px solid var(--hx-border);
    }
}

@media (min-width: 992px) {
    .ed-header-mobile-panel,
    .ed-header-mobile-panel.is-open,
    #mobile-menu.ed-header-mobile-panel.is-open { display: none !important; }
}

@keyframes hx-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ed-mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--hx-text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--hx-border);
    transition: background 0.15s, color 0.15s, padding-right 0.2s;
    position: relative;
}

.ed-mobile-nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--hx-accent);
    transform: scaleY(0);
    transition: transform 0.2s ease;
    border-radius: 2px;
}

.ed-mobile-nav-link:hover {
    background: var(--hx-nav-hover-bg);
    color: var(--hx-text);
    padding-right: 1.625rem;
}

.ed-mobile-nav-link:hover::before {
    transform: scaleY(1);
}

.ed-mobile-submenu {
    display: none;
    background: var(--hx-mobile-submenu-bg);
    border-bottom: 1px solid var(--hx-border);
}

.ed-mobile-submenu.is-open {
    display: block !important;
    max-height: none;
    overflow: visible;
}

.ed-mobile-submenu a {
    display: block;
    padding: 0.625rem 2rem;
    font-size: 0.8125rem;
    color: var(--hx-text-dim);
    text-decoration: none;
    transition: color 0.15s;
}

.ed-mobile-submenu a:hover {
    color: var(--hx-accent);
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE — CINEMATIC LAYOUT
════════════════════════════════════════════════════ */
.ed-home {
    font-family: 'IRANSans', 'isSans', sans-serif;
    color: var(--hx-text);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* ── Featured showcase (برگزیده‌ها) ── */
.ed-featured {
    --feat-accent: var(--hx-accent);
    --feat-accent-2: var(--hx-accent-2);
    --feat-accent-dim: var(--hx-accent-dim);
    --feat-glow: var(--hx-accent-glow);
    position: relative;
    margin-bottom: 2.75rem;
    padding: 1.75rem 1.25rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--hx-border);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, var(--hx-featured-glow-1) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, var(--hx-featured-glow-2) 0%, transparent 50%),
        var(--hx-featured-panel-bg);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ed-featured-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ed-featured-bg-word {
    position: absolute;
    top: -0.15em;
    right: -0.08em;
    font-size: clamp(4.5rem, 14vw, 9rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px var(--hx-stroke-decorative);
    opacity: 0.9;
    user-select: none;
    animation: ed-feat-word-float 14s ease-in-out infinite;
}

@keyframes ed-feat-word-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

.ed-featured-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
}

.ed-featured-bg-orb--1 {
    width: 220px;
    height: 220px;
    top: -60px;
    left: 15%;
    background: var(--feat-accent);
    animation: ed-feat-orb 10s ease-in-out infinite;
}

.ed-featured-bg-orb--2 {
    width: 160px;
    height: 160px;
    bottom: -40px;
    right: 20%;
    background: var(--feat-accent-2);
    animation: ed-feat-orb 12s ease-in-out infinite reverse;
}

@keyframes ed-feat-orb {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(20px, -12px); }
}

.ed-featured-head,
.ed-featured-stage {
    position: relative;
    z-index: 1;
}

.ed-featured-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ed-featured-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--feat-accent-2);
    margin-bottom: 0.5rem;
}

.ed-featured-live i {
    font-size: 0.4rem;
    animation: ed-feat-live-pulse 1.4s ease-in-out infinite;
}

@keyframes ed-feat-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.85); }
}

.ed-featured-head-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(120deg, #fff 0%, #7dd3fc 50%, var(--hx-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 0.35rem;
}

.ed-featured-head-sub {
    font-size: 0.8rem;
    color: var(--hx-text-muted);
    margin: 0;
    max-width: 22rem;
    line-height: 1.65;
}

.ed-featured-head-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hx-text);
    text-decoration: none;
    border-radius: 99px;
    border: 1px solid rgba(0, 194, 255, 0.35);
    background: var(--feat-accent-dim);
    transition: transform 0.3s var(--hx-ease-spring), box-shadow 0.3s, border-color 0.3s;
}

.ed-featured-head-link:hover {
    transform: translateX(-5px);
    border-color: var(--feat-accent);
    box-shadow: 0 8px 28px var(--feat-glow);
    color: #fff;
}

.ed-featured-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1100px) {
    .ed-featured-stage {
        grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: stretch;
    }
}

/* Rail — picks */
.ed-featured-rail {
    order: 2;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 1100px) {
    .ed-featured-rail { order: 0; }
}

.ed-featured-rail-inner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: none;
}

@media (min-width: 768px) and (max-width: 1099px) {
    .ed-featured-rail-inner {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        gap: 0.75rem;
        scrollbar-width: thin;
        scrollbar-color: var(--feat-accent) transparent;
        -webkit-overflow-scrolling: touch;
    }
}

.ed-featured-pick {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    margin: 0;
    text-decoration: none;
    text-align: inherit;
    font-family: inherit;
    color: inherit;
    border-radius: 1rem;
    border: 1px solid var(--hx-border);
    background: var(--hx-featured-pick-bg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 0.35s var(--hx-ease-spring), border-color 0.3s, box-shadow 0.35s, background 0.3s;
}

.ed-featured-pick:focus-visible {
    outline: 2px solid var(--feat-accent);
    outline-offset: 2px;
}

@media (min-width: 768px) and (max-width: 1099px) {
    .ed-featured-pick {
        flex: 0 0 min(72vw, 17rem);
        max-width: 100%;
        scroll-snap-align: start;
    }
}

.ed-featured-pick::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--feat-accent), var(--feat-accent-2));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s var(--hx-ease-spring);
    border-radius: 99px;
}

.ed-featured-pick:hover,
.ed-featured-pick.is-active {
    border-color: rgba(0, 194, 255, 0.45);
    background: var(--feat-accent-dim);
    transform: translateX(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ed-featured-pick:hover::before,
.ed-featured-pick.is-active::before {
    transform: scaleY(1);
}

.ed-featured-pick-rank {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(0, 194, 255, 0.25);
    font-variant-numeric: tabular-nums;
    transition: color 0.25s;
    min-width: 1.25rem;
}

.ed-featured-pick:hover .ed-featured-pick-rank,
.ed-featured-pick.is-active .ed-featured-pick-rank {
    color: var(--feat-accent);
}

.ed-featured-pick-thumb {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.65rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--hx-border-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.ed-featured-pick-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--hx-ease);
}

.ed-featured-pick:hover .ed-featured-pick-thumb img {
    transform: scale(1.12);
}

.ed-featured-pick-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hx-surface-2);
    color: var(--hx-text-dim);
    font-size: 0.85rem;
}

.ed-featured-pick-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    overflow: hidden;
}

.ed-featured-pick-cat {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--feat-accent-2);
}

.ed-featured-pick-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--hx-text-muted);
    transition: color 0.2s;
}

.ed-featured-pick:hover .ed-featured-pick-title {
    color: var(--hx-text);
}

.ed-featured-pick-arrow {
    color: var(--hx-text-dim);
    font-size: 0.65rem;
    transition: transform 0.3s var(--hx-ease-spring), color 0.2s;
}

.ed-featured-pick:hover .ed-featured-pick-arrow {
    color: var(--feat-accent);
    transform: translateX(-4px);
}

/* Hero spotlight */
.ed-featured-hero-wrap {
    order: 1;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 1100px) {
    .ed-featured-hero-wrap { order: 0; }
}

.ed-featured-hero {
    display: block;
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: clamp(28rem, 62vw, 34rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.45s ease, transform 0.45s var(--hx-ease);
}

.ed-featured-hero:hover {
    box-shadow:
        0 36px 80px rgba(0, 0, 0, 0.6),
        0 0 48px var(--feat-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ed-featured-hero-media {
    position: absolute;
    inset: 0;
}

.ed-featured-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ed-feat-kenburns 18s ease-in-out infinite alternate;
}

@keyframes ed-feat-kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-2%, 1%); }
}

.ed-featured-hero-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hx-hero-empty-bg);
    animation: none;
}

.ed-featured-hero-img--empty i {
    font-size: 5rem;
    color: var(--feat-accent);
    opacity: 0.2;
}

.ed-featured-hero-scrim {
    position: absolute;
    inset: 0;
    background: var(--hx-hero-scrim);
}

.ed-featured-hero-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(0, 194, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 194, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to top, black 20%, transparent 80%);
}

.ed-featured-hero-panel {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .ed-featured-hero-panel {
        right: auto;
        left: 0;
        max-width: min(92%, 34rem);
        padding: 2rem 2.25rem;
    }
}

.ed-featured-hero-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ed-featured-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    color: #fff;
    background: linear-gradient(135deg, var(--feat-accent), var(--feat-accent-2));
    box-shadow: 0 4px 20px var(--feat-glow);
}

.ed-featured-hero-num {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    font-variant-numeric: tabular-nums;
}

.ed-featured-hero-title {
    font-size: clamp(1.35rem, 3.2vw, 2.15rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--hx-hero-title);
    margin: 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
    transition: color 0.25s;
}

.ed-featured-hero:hover .ed-featured-hero-title {
    color: var(--hx-hero-title-hover);
}

.ed-featured-hero.is-switching .ed-featured-hero-panel,
.ed-featured-hero.is-switching .ed-featured-hero-img {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.ed-featured-hero-panel,
.ed-featured-hero-img {
    transition: opacity 0.35s ease;
}

.ed-featured-hero-lead {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--hx-hero-lead);
    margin: 0;
}

.ed-featured-hero-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--hx-hero-foot-border);
}

.ed-featured-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.ed-featured-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ed-featured-hero-meta i {
    color: var(--feat-accent-2);
    font-size: 0.68rem;
}

.ed-featured-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    border: 1px solid rgba(0, 194, 255, 0.45);
    background: rgba(0, 194, 255, 0.15);
    text-decoration: none;
    transition: gap 0.25s var(--hx-ease-spring), color 0.2s, background 0.25s, box-shadow 0.25s;
}

.ed-featured-hero-cta:hover {
    gap: 0.75rem;
    color: #fff;
    background: rgba(0, 194, 255, 0.28);
    box-shadow: 0 6px 20px var(--hx-accent-glow);
}

.ed-featured-hero-cta i {
    transition: transform 0.25s var(--hx-ease-spring);
}

.ed-featured-hero-cta:hover i {
    transform: translateX(-5px);
}

/* Featured — mobile & tablet responsive */
@media (max-width: 767px) {
    .ed-featured {
        padding: 1.15rem 0.75rem 1rem;
        margin-bottom: 2rem;
        border-radius: 1rem;
    }

    .ed-featured-bg-word {
        font-size: clamp(2.75rem, 20vw, 4rem);
    }

    .ed-featured-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.15rem;
        padding-bottom: 1rem;
    }

    .ed-featured-head-link {
        justify-content: center;
        width: 100%;
    }

    .ed-featured-hero {
        min-height: clamp(14.5rem, 78vw, 21rem);
        border-radius: 1rem;
    }

    .ed-featured-hero-panel {
        right: 0;
        left: 0;
        max-width: none;
        padding: 0.9rem 0.85rem 1rem;
    }

    .ed-featured-hero-num {
        font-size: 1.5rem;
    }

    .ed-featured-hero-title {
        font-size: clamp(1rem, 4.6vw, 1.28rem);
    }

    .ed-featured-hero-lead {
        font-size: 0.8rem;
        line-height: 1.65;
    }

    .ed-featured-hero-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .ed-featured-hero-cta {
        justify-content: center;
    }

    .ed-featured-rail-inner {
        flex-direction: column;
        overflow-x: visible;
        scroll-snap-type: none;
        gap: 0.5rem;
        padding-bottom: 0;
    }

    .ed-featured-pick {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: auto 3rem minmax(0, 1fr) auto;
    }

    .ed-featured-pick-body {
        min-width: 0;
    }

    .ed-featured-pick-title {
        overflow-wrap: anywhere;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .ed-featured-hero {
        min-height: clamp(18rem, 44vw, 26rem);
    }
}

/* ── Category nav pills ── */
.ed-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--hx-border);
    border-radius: var(--hx-radius-lg);
}

.ed-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hx-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hx-border);
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.22s var(--hx-ease);
    white-space: nowrap;
}

.ed-cat-pill:hover {
    color: var(--hx-accent);
    border-color: rgba(0, 194, 255, 0.35);
    background: var(--hx-accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 194, 255, 0.12);
}

/* ── Section blocks ── */
.ed-section {
    margin-bottom: 2.5rem;
    position: relative;
}

.ed-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--hx-border);
    position: relative;
}

.ed-section-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 3.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--hx-accent), transparent);
    border-radius: 99px;
}

.ed-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hx-text);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    letter-spacing: -0.01em;
}

.ed-section-title::before {
    content: '';
    width: 3px;
    height: 1.25em;
    background: linear-gradient(to bottom, var(--hx-accent), var(--hx-accent-2));
    border-radius: 2px;
}

.ed-section-more {
    font-size: 0.775rem;
    color: var(--hx-text-dim);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, gap 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ed-section-more:hover {
    color: var(--hx-accent);
}

/* Section layout A: featured + list */
.ed-section-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ed-section-featured {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* Cards */
.ed-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: var(--hx-radius-lg);
    overflow: hidden;
    background: var(--hx-elevated);
    border: 1px solid var(--hx-border);
    transition: transform 0.35s var(--hx-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.ed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 194, 255, 0.06);
    border-color: rgba(0, 194, 255, 0.2);
}

.ed-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--hx-surface-2);
    position: relative;
}

.ed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--hx-ease);
}

.ed-card:hover .ed-card-image img { transform: scale(1.06); }

.ed-card-body {
    padding: 1rem 1.125rem 1.125rem;
}

.ed-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--hx-text);
    margin-bottom: 0.375rem;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.ed-card:hover .ed-card-title { color: var(--hx-accent); }

.ed-card-excerpt {
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--hx-text-muted);
}

/* Fallback: when card wraps content directly (no .ed-card-body) */
.ed-card > .ed-card-title,
.ed-card > .ed-card-excerpt {
    padding: 0 1.125rem;
}

.ed-card > .ed-card-title { padding-top: 1rem; }
.ed-card > .ed-card-excerpt { padding-bottom: 1.125rem; }

/* Small card variant (sidebar list) */
.ed-card-sm {
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--hx-border);
    padding: 0.875rem 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ed-card-sm:hover {
    box-shadow: none;
    border-color: var(--hx-border);
    background: rgba(0, 194, 255, 0.04);
    transform: translateX(-3px);
}

.ed-card-sm:last-child { border-bottom: none; }

.ed-card-sm .ed-card-title {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

/* Section layout B: 4-col grid */
.ed-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .ed-section-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .ed-section-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Latest section ── */
.ed-latest {
    margin-bottom: 1.5rem;
}

.ed-latest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--hx-border);
    position: relative;
}

.ed-latest-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--hx-accent), transparent);
}

.ed-latest-title {
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}

.ed-latest-title::before {
    content: '';
    width: 3px;
    height: 1.2em;
    background: linear-gradient(to bottom, var(--hx-accent), var(--hx-accent-2));
    border-radius: 2px;
}

.ed-latest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .ed-latest-grid { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
}

.ed-latest-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--hx-border);
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
    border-radius: var(--hx-radius);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ed-latest-item:hover {
    background: rgba(0, 194, 255, 0.04);
    transform: translateX(-3px);
}

.ed-latest-thumb {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    overflow: hidden;
    background: var(--hx-surface-2);
    border-radius: var(--hx-radius);
    border: 1px solid var(--hx-border);
}

.ed-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ed-latest-item:hover .ed-latest-thumb img { transform: scale(1.05); }

.ed-latest-item:hover .ed-latest-item-title { color: var(--hx-accent); }

.ed-latest-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--hx-text-muted);
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.ed-latest-meta {
    font-size: 0.65rem;
    color: var(--hx-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Empty state ── */
.ed-empty {
    padding: 3rem;
    text-align: center;
    color: var(--hx-text-dim);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--hx-border-soft);
    border-radius: var(--hx-radius-lg);
}

/* ── Line clamp utilities ── */
.ed-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Scroll reveal ── */
[data-ed-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s var(--hx-ease-out), transform 0.55s var(--hx-ease-out);
}

[data-ed-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-ed-reveal-delay="1"] { transition-delay: 0.08s; }
[data-ed-reveal-delay="2"] { transition-delay: 0.16s; }
[data-ed-reveal-delay="3"] { transition-delay: 0.24s; }
[data-ed-reveal-delay="4"] { transition-delay: 0.32s; }
[data-ed-reveal-delay="5"] { transition-delay: 0.40s; }

/* ═══════════════════════════════════════════════════
   HOMEPAGE — CREATIVE SECTIONS (2026 refresh)
════════════════════════════════════════════════════ */

/* Display typography */
.ed-display {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.ed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--hx-text);
}

.ed-badge--pulse {
    animation: ed-badge-glow 2.4s ease-in-out infinite;
}

.ed-badge--mini {
    font-size: 0.58rem;
    padding: 0.15rem 0.5rem;
    opacity: 0.85;
}

@keyframes ed-badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--section-glow, var(--hx-accent-glow)); }
    50%       { box-shadow: 0 0 0 6px transparent; }
}

.ed-btn-ghost {
    padding: 0.45rem 0.9rem;
    border-radius: 99px;
    border: 1px solid var(--hx-border-soft);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.28s var(--hx-ease-spring);
}

.ed-btn-ghost:hover {
    border-color: var(--section-accent, var(--hx-accent));
    color: var(--section-accent, var(--hx-accent));
    background: var(--section-accent-dim, var(--hx-accent-dim));
    transform: translateX(-4px);
    box-shadow: 0 8px 24px var(--section-glow, var(--hx-accent-glow));
}

/* ── Category nav creative ── */
.ed-cat-nav--creative {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    background: linear-gradient(120deg, rgba(0, 194, 255, 0.04) 0%, rgba(99, 102, 241, 0.06) 100%);
    position: relative;
    overflow: hidden;
}

.ed-cat-nav--creative::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    animation: ed-shimmer 6s ease-in-out infinite;
}

@keyframes ed-shimmer {
    0%   { transform: translateX(-100%); }
    40%, 100% { transform: translateX(100%); }
}

.ed-cat-nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hx-accent);
    flex-shrink: 0;
}

.ed-cat-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.ed-cat-pill--ghost {
    border-style: dashed !important;
    opacity: 0.75;
}

.ed-cat-nav--creative .ed-cat-pill:nth-child(3n+1):hover {
    color: #00c2ff;
    border-color: rgba(0, 194, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 194, 255, 0.2);
}

.ed-cat-nav--creative .ed-cat-pill:nth-child(3n+2):hover {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.ed-cat-nav--creative .ed-cat-pill:nth-child(3n):hover {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.18);
}

/* ── Section themes ── */
.ed-section {
    --section-accent: var(--hx-accent);
    --section-accent-2: var(--hx-accent-2);
    --section-accent-dim: var(--hx-accent-dim);
    --section-glow: var(--hx-accent-glow);
    padding: 1.75rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 1.25rem;
    border: 1px solid var(--hx-border);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
}

.ed-section--mosaic {
    --section-accent: #00c2ff;
    --section-accent-2: #22d3ee;
    --section-accent-dim: rgba(0, 194, 255, 0.1);
    --section-glow: rgba(0, 194, 255, 0.28);
    background: linear-gradient(145deg, rgba(0, 194, 255, 0.04) 0%, transparent 55%);
}

.ed-section--magazine {
    --section-accent: #a78bfa;
    --section-accent-2: #6366f1;
    --section-accent-dim: rgba(167, 139, 250, 0.12);
    --section-glow: rgba(99, 102, 241, 0.3);
    border-radius: 0 1.25rem 1.25rem 0;
    border-right: 3px solid var(--section-accent);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
}

.ed-section--magazine .ed-section-title {
    font-style: normal;
    font-weight: 900;
}

.ed-section--bento {
    --section-accent: #fbbf24;
    --section-accent-2: #f59e0b;
    --section-accent-dim: rgba(251, 191, 36, 0.12);
    --section-glow: rgba(251, 191, 36, 0.22);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, transparent 100%);
}

.ed-section--strip {
    --section-accent: #34d399;
    --section-accent-2: #10b981;
    --section-accent-dim: rgba(52, 211, 153, 0.1);
    --section-glow: rgba(16, 185, 129, 0.25);
    border-radius: 1.25rem 1.25rem 2.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
}

.ed-section-head--mosaic .ed-section-title::before,
.ed-section-head--magazine .ed-section-title::before,
.ed-section-head--bento .ed-section-title::before,
.ed-section-head--strip .ed-section-title::before {
    background: linear-gradient(to bottom, var(--section-accent), var(--section-accent-2));
    box-shadow: 0 0 12px var(--section-glow);
}

.ed-section-head::after {
    background: linear-gradient(90deg, var(--section-accent), transparent);
    width: 5rem;
}

.ed-section-kicker {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--section-accent);
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.ed-section-head-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ed-section--magazine .ed-section-title {
    font-size: 1.35rem;
}

.ed-section--bento .ed-section-title {
    font-size: 1.2rem;
    text-transform: none;
}

/* ── Mosaic layout ── */
.ed-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .ed-mosaic {
        grid-template-columns: 1.45fr 1fr;
        align-items: stretch;
    }
}

.ed-mosaic-hero {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 18rem;
    border: 1px solid var(--hx-border-soft);
    transition: transform 0.4s var(--hx-ease), box-shadow 0.4s ease;
}

.ed-mosaic-hero:hover {
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 40px var(--section-glow);
}

.ed-mosaic-hero-media {
    position: absolute;
    inset: 0;
}

.ed-mosaic-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--hx-ease);
}

.ed-mosaic-hero:hover .ed-mosaic-hero-media img {
    transform: scale(1.08);
}

.ed-mosaic-hero-body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: var(--hx-card-scrim);
}

.ed-mosaic-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0.5rem 0 0.5rem;
    transition: color 0.2s;
}

.ed-mosaic-hero:hover .ed-mosaic-hero-title {
    color: var(--section-accent);
}

.ed-mosaic-hero-excerpt {
    font-size: 0.85rem;
    color: var(--hx-text-muted);
    line-height: 1.7;
}

.ed-mosaic-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ed-mosaic-row {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    padding: 0.75rem;
    text-decoration: none;
    color: inherit;
    border-radius: var(--hx-radius-lg);
    border: 1px solid var(--hx-border);
    background: var(--hx-elevated);
    transition: transform 0.3s var(--hx-ease-spring), border-color 0.3s, background 0.3s;
}

.ed-mosaic-row:hover {
    transform: translateX(-6px);
    border-color: rgba(0, 194, 255, 0.35);
    background: var(--section-accent-dim);
}

.ed-mosaic-row-thumb {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid var(--hx-border);
}

.ed-mosaic-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ed-mosaic-row:hover .ed-mosaic-row-thumb img {
    transform: scale(1.1);
}

.ed-mosaic-row-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.ed-mosaic-row:hover h4 {
    color: var(--section-accent);
}

.ed-mosaic-row-meta {
    font-size: 0.65rem;
    color: var(--hx-text-dim);
}

/* ── Magazine layout ── */
.ed-magazine {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ed-magazine-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.125rem 0.75rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--hx-border);
    transition: background 0.25s, padding-right 0.3s var(--hx-ease-spring);
    position: relative;
}

.ed-magazine-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(to bottom, var(--section-accent), var(--section-accent-2));
    transform: scaleY(0);
    transition: transform 0.3s var(--hx-ease-spring);
}

.ed-magazine-item:hover::before {
    transform: scaleY(1);
}

.ed-magazine-item:hover {
    background: var(--section-accent-dim);
    padding-right: 1.25rem;
}

.ed-magazine-item:last-child {
    border-bottom: none;
}

.ed-magazine-index {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(167, 139, 250, 0.45);
    font-variant-numeric: tabular-nums;
    transition: -webkit-text-stroke-color 0.3s, color 0.3s;
}

.ed-magazine-item:hover .ed-magazine-index {
    color: var(--section-accent);
    -webkit-text-stroke-color: transparent;
}

.ed-magazine-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    transition: color 0.2s;
}

.ed-magazine-item:hover .ed-magazine-title {
    color: var(--section-accent);
}

.ed-magazine-excerpt {
    font-size: 0.8rem;
    color: var(--hx-text-muted);
    line-height: 1.65;
}

.ed-magazine-thumb {
    width: 5.5rem;
    height: 4rem;
    border-radius: 0.5rem 1rem 0.5rem 1rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--hx-border-soft);
    transform: rotate(-2deg);
    transition: transform 0.35s var(--hx-ease-spring);
}

.ed-magazine-item:hover .ed-magazine-thumb {
    transform: rotate(0deg) scale(1.05);
}

.ed-magazine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Bento layout ── */
.ed-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .ed-bento {
        grid-template-columns: 1.2fr 0.8fr 1fr;
        grid-template-rows: 11rem 11rem;
    }

    .ed-bento-cell--1 {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .ed-bento-cell--2 {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .ed-bento-cell--3 {
        grid-column: 1;
        grid-row: 2;
    }

    .ed-bento-cell--4 {
        grid-column: 2;
        grid-row: 2;
    }
}

.ed-bento-cell {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 9rem;
    border: 1px solid var(--hx-border);
    transition: transform 0.35s var(--hx-ease), box-shadow 0.35s ease;
}

.ed-bento-cell--1 {
    min-height: 12rem;
    border-radius: 1.25rem 1.25rem 0.5rem 1.25rem;
}

.ed-bento-cell--2 {
    border-radius: 1.25rem;
}

.ed-bento-cell--3,
.ed-bento-cell--4 {
    border-radius: 0.5rem 1rem 1rem 0.5rem;
}

.ed-bento-cell:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px var(--section-glow);
    border-color: rgba(251, 191, 36, 0.35);
}

.ed-bento-media {
    position: absolute;
    inset: 0;
}

.ed-bento-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--hx-ease);
}

.ed-bento-cell:hover .ed-bento-media img {
    transform: scale(1.07);
}

.ed-bento-caption {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.875rem 1rem;
    background: var(--hx-card-scrim-soft);
}

.ed-bento-caption h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.35rem;
    transition: color 0.2s;
}

.ed-bento-cell--1 .ed-bento-caption h3 {
    font-size: 1.1rem;
}

.ed-bento-cell:hover .ed-bento-caption h3 {
    color: var(--section-accent);
}

.ed-section--bento .ed-badge {
    color: var(--section-accent);
    border-color: rgba(251, 191, 36, 0.3);
}

/* ── Horizontal strip ── */
.ed-strip-wrap {
    margin: 0 -1.25rem;
    padding: 0 1.25rem 0.5rem;
    overflow: hidden;
}

.ed-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--section-accent) var(--hx-elevated);
}

.ed-strip::-webkit-scrollbar {
    height: 5px;
}

.ed-strip::-webkit-scrollbar-thumb {
    background: var(--section-accent);
    border-radius: 99px;
}

.ed-strip-card {
    flex: 0 0 min(85%, 18rem);
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--hx-elevated);
    border: 1px solid var(--hx-border);
    transition: transform 0.35s var(--hx-ease-spring), box-shadow 0.35s;
}

@media (min-width: 640px) {
    .ed-strip-card {
        flex: 0 0 16rem;
    }
}

.ed-strip-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px var(--section-glow);
    border-color: rgba(52, 211, 153, 0.4);
}

.ed-strip-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ed-strip-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ed-strip-card:hover .ed-strip-card-media img {
    transform: scale(1.1);
}

.ed-strip-card-body {
    padding: 0.875rem 1rem 1rem;
}

.ed-strip-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    transition: color 0.2s;
}

.ed-strip-card:hover h3 {
    color: var(--section-accent);
}

.ed-strip-card-body p {
    font-size: 0.75rem;
    color: var(--hx-text-muted);
    line-height: 1.6;
}

.ed-strip.is-marquee-active {
    overflow-x: hidden;
}

.ed-strip-marquee-inner {
    display: flex;
    width: max-content;
    animation: ed-marquee 36s linear infinite;
}

.ed-strip.is-marquee-active:hover .ed-strip-marquee-inner {
    animation-play-state: paused;
}

.ed-strip-track {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@keyframes ed-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Latest aurora section ── */
.ed-latest--aurora {
    position: relative;
    padding: 2rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--hx-border);
    background: var(--hx-section-aurora);
    overflow: hidden;
}

.ed-latest-glow {
    position: absolute;
    width: 60%;
    height: 120%;
    top: -30%;
    left: -10%;
    background: conic-gradient(from 120deg, var(--hx-accent-glow), transparent, var(--hx-accent-2-glow), transparent);
    filter: blur(60px);
    opacity: 0.4;
    animation: ed-aurora-spin 18s linear infinite;
    pointer-events: none;
}

@keyframes ed-aurora-spin {
    to { transform: rotate(360deg); }
}

.ed-latest--aurora .ed-latest-head,
.ed-latest-mosaic {
    position: relative;
    z-index: 1;
}

.ed-section-kicker--light {
    color: rgba(0, 194, 255, 0.85);
}

.ed-latest--aurora .ed-latest-title {
    font-size: 1.5rem;
}

.ed-latest--aurora .ed-latest-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ed-latest--aurora .ed-latest-head::after {
    width: 6rem;
    background: linear-gradient(90deg, var(--hx-accent), var(--hx-accent-2), transparent);
}

.ed-latest-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .ed-latest-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .ed-latest-mosaic {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ed-latest-card {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 1rem;
    border: 1px solid var(--hx-border);
    background: var(--hx-card-glass);
    backdrop-filter: blur(8px);
    transition: transform 0.35s var(--hx-ease-spring), border-color 0.3s, box-shadow 0.35s;
    position: relative;
    overflow: hidden;
}

.ed-latest-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
    transform: translateX(100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.ed-latest-card:hover::after {
    transform: translateX(-100%);
}

.ed-latest-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 194, 255, 0.35);
    box-shadow: var(--hx-shadow-card), 0 0 24px var(--hx-accent-glow);
}

.ed-latest-card-num {
    position: absolute;
    top: 0.35rem;
    left: 0.5rem;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

.ed-latest-card-thumb {
    flex-shrink: 0;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--hx-border-soft);
    position: relative;
    z-index: 1;
}

.ed-latest-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ed-latest-card:hover .ed-latest-card-thumb img {
    transform: scale(1.08);
}

.ed-latest-card-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.ed-latest-card-title {
    font-size: 0.925rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.35rem;
    transition: color 0.2s;
}

.ed-latest-card:hover .ed-latest-card-title {
    color: var(--hx-accent);
}

.ed-latest-date {
    font-size: 0.68rem;
    color: var(--hx-text-dim);
    display: block;
}

/* ── Scroll reveal variants ── */
[data-ed-reveal="scale"] {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
}

[data-ed-reveal="scale"].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

[data-ed-reveal="slide-left"] {
    opacity: 0;
    transform: translateX(28px);
}

[data-ed-reveal="slide-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-ed-reveal="slide-right"] {
    opacity: 0;
    transform: translateX(-28px);
}

[data-ed-reveal="slide-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-ed-reveal="slide-up"] {
    opacity: 0;
    transform: translateY(32px);
}

[data-ed-reveal="slide-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-ed-reveal="blur"] {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(8px);
}

[data-ed-reveal="blur"].is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

[data-ed-stagger] > [data-ed-reveal],
[data-ed-stagger] > [data-ed-reveal-delay] {
    /* children observed individually */
}

@media (prefers-reduced-motion: reduce) {
    [data-ed-reveal],
    [data-ed-reveal="scale"],
    [data-ed-reveal="slide-left"],
    [data-ed-reveal="slide-right"],
    [data-ed-reveal="slide-up"],
    [data-ed-reveal="blur"] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .ed-featured-bg-word,
    .ed-featured-bg-orb,
    .ed-featured-live i,
    .ed-featured-hero-img,
    .ed-latest-glow,
    .ed-cat-nav--creative::before,
    .ed-badge--pulse {
        animation: none !important;
    }

    .ed-strip.is-marquee-active .ed-strip-track {
        animation: none !important;
    }
}
