/*!
 * IDDS INNOVATE — share fix, news motion, modern motifs per arch
 * Load LAST after nexus-fix
 */

/* ==========================================================================
   SHARE — override Magz .sharing completely
   ========================================================================== */
body.skin-magz .sharing.hz-share-wrap,
body.skin-magz .single .sharing.hz-share-wrap {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 1.35rem 0 0 !important;
    padding: 0 !important;
}
body.skin-magz .nx-share {
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 18px;
    background:
        radial-gradient(480px 180px at 100% 0%, color-mix(in srgb, var(--idds-accent, #b45309) 14%, transparent), transparent 70%),
        #fff;
    border: 1px solid color-mix(in srgb, var(--idds-primary) 12%, #e2e8f0);
    box-shadow: 0 14px 32px rgba(15,23,42,.05);
}
body.skin-magz .nx-share__head {
    display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem;
}
body.skin-magz .nx-share__glyph {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; color: #fff;
    background: var(--idds-primary);
}
body.skin-magz .nx-share__kicker {
    margin: 0; font-size: .62rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: var(--idds-accent, #b45309);
}
body.skin-magz .nx-share__title {
    margin: .1rem 0 0; font-size: 1.05rem; font-weight: 800; color: #0f172a;
}
body.skin-magz .nx-share__row {
    display: flex; flex-wrap: wrap; gap: .55rem;
}
body.skin-magz .nx-share__chip {
    display: inline-flex !important;
    align-items: center; gap: .45rem;
    padding: .55rem .9rem !important;
    min-height: 42px;
    width: auto !important; height: auto !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--c) 8%, #fff) !important;
    border: 1px solid color-mix(in srgb, var(--c) 28%, #e2e8f0) !important;
    color: #0f172a !important;
    font-size: .8rem; font-weight: 700;
    text-decoration: none !important;
    float: none !important;
    transition: .18s ease;
}
body.skin-magz .nx-share__chip i {
    color: var(--c) !important;
    margin: 0 !important;
    font-size: 1rem;
    width: 1.1em; text-align: center;
}
body.skin-magz .nx-share__chip span { color: #0f172a !important; }
body.skin-magz .nx-share__chip:hover {
    background: var(--c) !important;
    border-color: var(--c) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--c) 30%, transparent);
}
body.skin-magz .nx-share__chip:hover i,
body.skin-magz .nx-share__chip:hover span { color: #fff !important; }

/* Kill Magz floating social styles inside our wrap */
body.skin-magz .hz-share-wrap ul li,
body.skin-magz .hz-share-wrap a.facebook,
body.skin-magz .hz-share-wrap a.twitter,
body.skin-magz .hz-share-wrap a.whatsapp {
    float: none !important;
    background: transparent !important;
    color: inherit !important;
}

/* Author photo precision */
body.skin-magz .hz-author__avatar img {
    width: 96px !important;
    height: 96px !important;
    object-fit: cover !important;
    object-position: center 20% !important;
}

/* ==========================================================================
   NEWS TICKER + MOTION
   ========================================================================== */
@keyframes nx-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes nx-card-in {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@keyframes nx-live-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: .55; }
}
@keyframes nx-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

body.skin-magz .home--nexus .nx-ticker {
    display: flex; align-items: center; gap: .65rem;
    margin: 0 0 .9rem; padding: .45rem .55rem .45rem .45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hz-primary) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--hz-primary) 14%, #e2e8f0);
    overflow: hidden;
}
body.skin-magz .home--nexus .nx-ticker__badge {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .7rem; border-radius: 999px;
    background: var(--hz-primary); color: #fff;
    font-size: .68rem; font-weight: 800; letter-spacing: .04em;
}
body.skin-magz .home--nexus .nx-ticker__viewport {
    flex: 1 1 auto; overflow: hidden; min-width: 0;
}
body.skin-magz .home--nexus .nx-ticker__track {
    display: flex; gap: 1.5rem; width: max-content;
    animation: nx-ticker 32s linear infinite;
}
body.skin-magz .home--nexus .nx-ticker:hover .nx-ticker__track { animation-play-state: paused; }
body.skin-magz .home--nexus .nx-ticker__item {
    white-space: nowrap; font-size: .82rem; font-weight: 650;
    color: rgba(255, 255, 255, .92); text-decoration: none;
}
body.skin-magz .home--nexus .nx-ticker__item:hover { color: #fff; }

body.skin-magz .home--nexus .nx-live {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .68rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: #b91c1c;
}
body.skin-magz .home--nexus .nx-live__dot {
    width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
    animation: nx-live-pulse 1.4s ease infinite;
}
body.skin-magz .home--nexus .nx-panel__head--split {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}

/* Featured as soft “slider” feel */
body.skin-magz .home--nexus .nx-news--motion #featured article.featured {
    position: relative;
    overflow: hidden;
}
body.skin-magz .home--nexus .nx-news--motion #featured article.featured figure img {
    animation: nx-kenburns 12s ease-in-out infinite alternate;
    transform-origin: center center;
}
body.skin-magz .home--nexus .nx-news--motion .article:not(.main-article) {
    animation: nx-card-in .55s cubic-bezier(.22,1,.36,1) both;
}
body.skin-magz .home--nexus .nx-news--motion .article:not(.main-article):nth-child(2) { animation-delay: .06s; }
body.skin-magz .home--nexus .nx-news--motion .article:not(.main-article):nth-child(3) { animation-delay: .12s; }
body.skin-magz .home--nexus .nx-news--motion .article:not(.main-article):nth-child(4) { animation-delay: .18s; }
body.skin-magz .home--nexus .nx-news--motion .article:not(.main-article) .inner {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
body.skin-magz .home--nexus .nx-news--motion .article:not(.main-article) .inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px color-mix(in srgb, var(--hz-primary) 14%, transparent);
}

/* ==========================================================================
   MODERN MOTIFS / SHAPES per architecture
   ========================================================================== */
body.skin-magz .home--nexus .nx-stage { position: relative; }
body.skin-magz .home--nexus .nx-stage::before,
body.skin-magz .home--nexus .nx-stage::after {
    content: "";
    position: absolute; pointer-events: none; z-index: 0;
    border-radius: 40% 60% 55% 45%;
    filter: blur(2px);
    opacity: .35;
}
body.skin-magz .home--nexus .nx-stage::before {
    width: 220px; height: 220px; top: 8%; right: -40px;
    background: color-mix(in srgb, var(--hz-accent) 35%, transparent);
}
body.skin-magz .home--nexus .nx-stage::after {
    width: 180px; height: 180px; top: 42%; left: -50px;
    background: color-mix(in srgb, var(--hz-primary) 28%, transparent);
    border-radius: 60% 40% 45% 55%;
}

/* Capitol — bronze ribbons */
body.skin-magz .home-arch--capitol .nx-panel--priority {
    border-top: 3px solid var(--hz-accent);
    background:
        linear-gradient(135deg, transparent 60%, color-mix(in srgb, var(--hz-accent) 8%, transparent)),
        rgba(255,255,255,.9);
}
body.skin-magz .home-arch--capitol .nx-panel--dock {
    background-image:
        radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--hz-primary) 10%, transparent) 0 18%, transparent 19%),
        radial-gradient(circle at 88% 70%, color-mix(in srgb, var(--hz-accent) 12%, transparent) 0 14%, transparent 15%);
}

/* Signal — scan grid */
body.skin-magz .home-arch--signal .nx-panel {
    background-image:
        linear-gradient(rgba(14,165,233,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Habitat — leaf blobs */
body.skin-magz .home-arch--habitat .nx-panel {
    border-radius: 22px;
    background-image:
        radial-gradient(ellipse at 0% 0%, color-mix(in srgb, #166534 10%, transparent), transparent 45%),
        radial-gradient(ellipse at 100% 100%, color-mix(in srgb, #ca8a04 10%, transparent), transparent 40%);
}

/* Folio — editorial rules */
body.skin-magz .home-arch--folio .nx-panel--news {
    border-left: 3px solid var(--hz-ink);
    border-radius: 4px 16px 16px 4px;
}

/* Command — hazard stripe */
body.skin-magz .home-arch--command .nx-panel--priority {
    background:
        repeating-linear-gradient(-45deg,
            color-mix(in srgb, var(--hz-accent) 12%, transparent) 0 10px,
            transparent 10px 20px),
        #fff;
}

/* Vector — blueprint dots */
body.skin-magz .home-arch--vector .nx-vector__main {
    background-image: radial-gradient(color-mix(in srgb, var(--hz-primary) 18%, transparent) 1px, transparent 1px);
    background-size: 14px 14px;
}

/* Orbit — rings */
body.skin-magz .home-arch--orbit .nx-orbit__leaders {
    background:
        radial-gradient(circle at 50% 40%, transparent 42%, color-mix(in srgb, var(--hz-primary) 10%, transparent) 43% 48%, transparent 49%),
        #fff;
}

/* Ledger — ruled paper */
body.skin-magz .home-arch--ledger .nx-ledger__col--wide {
    background-image: linear-gradient(transparent 96%, color-mix(in srgb, var(--hz-primary) 12%, transparent) 97%);
    background-size: 100% 28px;
}

/* Leaders photo — extra precision */
body.skin-magz .home--nexus .leader-card__photo {
    height: 300px !important;
    flex-basis: 300px !important;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0) !important;
}
body.skin-magz .home--nexus .leader-card__photo img {
    max-width: 88% !important;
    height: 94% !important;
    object-fit: contain !important;
    object-position: center bottom !important;
}

@media (prefers-reduced-motion: reduce) {
    body.skin-magz .home--nexus .nx-ticker__track,
    body.skin-magz .home--nexus .nx-news--motion #featured article.featured figure img,
    body.skin-magz .home--nexus .nx-news--motion .article:not(.main-article),
    body.skin-magz .home--nexus .nx-live__dot {
        animation: none !important;
    }
}
