/*
 * EASY AI Stories — Candidate 03 production layout
 * Scoped component CSS. Matches the supplied reference without demo-only styles/fonts.
 */

.easy-stories-spotlight {
    --eais3-blue: #0006ff;
    --eais3-ink: #171b25;
    --eais3-muted: #656d7d;
    --eais3-height: 360px;
    --eais3-gap: 14px;
    --eais3-expand: 2.65;
    --eais3-motion: 560ms;
    --eais3-ease: cubic-bezier(.22, 1, .36, 1);

    width: 100%;
    margin: 0;
    padding: var(--eais3-padding, 28px 0);
    background: var(--eais3-background, #fff);
    color: var(--eais3-ink);
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
    container: eais3 / inline-size;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
}

.easy-stories-spotlight,
.easy-stories-spotlight *,
.easy-stories-spotlight *::before,
.easy-stories-spotlight *::after {
    box-sizing: border-box;
}

.easy-stories-spotlight [hidden] {
    display: none !important;
}

.easy-stories-spotlight :is(h2, h3, p) {
    margin: 0;
    padding: 0;
    font-family: inherit;
}

.easy-stories-spotlight a {
    color: inherit;
    text-decoration: none;
    box-shadow: none;
}

.easy-stories-spotlight button {
    font: inherit;
    box-shadow: none;
    appearance: none;
}

.easy-stories-spotlight img {
    display: block;
    max-width: 100%;
}

.easy-stories-spotlight :is(a, button):focus-visible {
    outline: 2px solid var(--eais3-blue);
    outline-offset: 4px;
}

.easy-stories-spotlight .eais3-shell {
    width: min(1390px, calc(100% - 80px));
    margin-inline: auto;
}

/*
 * Heading
 * This is intentionally a DIV in the PHP, not a HEADER element.
 * The reset below also keeps the component independent from legacy/global page chrome.
 */
.easy-stories-spotlight .eais3-heading {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 24px;
}

.easy-stories-spotlight .eais3-heading-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.easy-stories-spotlight .eais3-heading-mark {
    width: 30px;
    height: 30px;
    flex: none;
}

.easy-stories-spotlight .eais3-heading-mark svg,
.easy-stories-spotlight .eais3-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.easy-stories-spotlight .eais3-heading h2 {
    color: var(--eais3-ink);
    font-size: clamp(24px, 2.35cqw, 34px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.045em;
}

.easy-stories-spotlight .eais3-heading h2 span {
    color: var(--eais3-blue);
}

/* Composition */
.easy-stories-spotlight .eais3-composition {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 248px;
    align-items: stretch;
    gap: var(--eais3-gap);
    min-width: 0;
}

.easy-stories-spotlight .eais3-track {
    display: flex;
    align-items: stretch;
    gap: var(--eais3-gap);
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    overflow-anchor: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
}

.easy-stories-spotlight .eais3-track::-webkit-scrollbar {
    display: none;
}

.easy-stories-spotlight .eais3-track:focus-visible {
    outline: 2px solid var(--eais3-blue);
    outline-offset: 4px;
    border-radius: 17px;
}

/* Story cards */
.easy-stories-spotlight .eais3-panel {
    cursor: default;
    position: relative;
    isolation: isolate;
    flex: 0 0 var(--eais3-card-width, 340px);
    min-width: 0;
    height: var(--eais3-height);
    overflow: hidden;
    border-radius: 17px;
    background: #0006ffc9;
    scroll-snap-align: start;
    transition: flex-basis var(--eais3-motion) var(--eais3-ease);
}

.easy-stories-spotlight .eais3-panel:focus-visible {
    outline: 2px solid white;
    outline-offset: -5px;
}

.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-panel.is-active {
    flex-basis: calc(var(--eais3-card-width, 240px) * var(--eais3-expand));
}

.easy-stories-spotlight[data-eais3-mode="scroll"] .eais3-panel {
    transition: none;
}

/* Own the image geometry even inside story pages whose page-level CSS uses
 * #...-page img { height:auto }. Those ID selectors are intentionally overridden
 * here so compact cards always remain fully covered. */
.easy-stories-spotlight .eais3-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transform: scale(1);
    transition: transform 850ms var(--eais3-ease);
}

.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-panel.is-active .eais3-image {
    transform: scale(1.025);
}

.easy-stories-spotlight .eais3-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(10, 17, 23, .08) 0%,
        rgba(10, 17, 23, 0) 30%,
        rgba(10, 17, 23, .1) 45%,
        rgba(10, 17, 23, .85) 100%
    );
}

.easy-stories-spotlight .eais3-meta {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.easy-stories-spotlight .eais3-domain {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 100px;
    background: rgba(255, 255, 255, .94);
    color: #2c3440;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.easy-stories-spotlight .eais3-number {
    flex: none;
    color: white;
    font-size: 10px;
    font-weight: 650;
    text-shadow: 0 1px 4px #222;
    line-height: 1;
}

/* Current related story: visible and active, never faded/disabled. */
.easy-stories-spotlight .eais3-current-badge {
    flex: none;
    margin-left: auto;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 100px;
    background: rgba(23, 27, 37, .62);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .09em;
    text-shadow: none;
}

.easy-stories-spotlight .eais3-copy {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 25px;
    color: white;
    pointer-events: none;
}

.easy-stories-spotlight .eais3-copy h3 {
    max-width: 430px;
    color: inherit;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-copy h3 {
    font-size: 24px;
}

.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-panel.is-active .eais3-copy h3 {
    font-size: 36px;
}

.easy-stories-spotlight .eais3-short {
    display: none;
}

.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-short {
    display: inline;
}

.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-full,
.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-detail {
    display: none;
}

.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-panel.is-active .eais3-short {
    display: none;
}

.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-panel.is-active .eais3-full,
.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-panel.is-active .eais3-detail {
    display: block;
    animation: eais3-copy-in 360ms both var(--eais3-ease);
}

.easy-stories-spotlight .eais3-detail p {
    max-width: 355px;
    margin-top: 12px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.easy-stories-spotlight .eais3-arrow {
    display: block;
    width: 19px;
    height: 19px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.easy-stories-spotlight .eais3-story-link {
    appearance: none;
    background: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 14px;
    min-height: 40px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .65);
    color: white;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.5;
    pointer-events: none;
}

.easy-stories-spotlight .eais3-story-link .eais3-arrow {
    transition: transform .25s ease;
}

.easy-stories-spotlight .eais3-story-link:hover .eais3-arrow {
    transform: translateX(3px);
}

.easy-stories-spotlight .eais3-story-link:focus-visible {
    outline-color: white;
}

/* Shared geometry for a native card link or a current-story expansion button. */
.easy-stories-spotlight .eais3-select {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 0;
    background: none;
    cursor: default;
    border-radius: inherit;
    padding: 0;
    color: inherit;
}

.easy-stories-spotlight[data-eais3-mode="expand"] .eais3-select {
    display: block;
}

.easy-stories-spotlight .eais3-select:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
}

@keyframes eais3-copy-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ask easy AI fixed panel */
.easy-stories-spotlight .eais3-invitation {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 248px;
    min-width: 0;
    height: var(--eais3-height);
    padding: 24px;
    border: 1px solid #dee4f5;
    border-radius: 17px;
    background: linear-gradient(145deg, #f1f5ff 0%, #fafbff 70%, #fff 100%);
}

.easy-stories-spotlight .eais3-ask-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--eais3-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.easy-stories-spotlight .eais3-mark {
    display: block;
    width: 56px;
    height: 56px;
    flex: none;
}

.easy-stories-spotlight .eais3-ask-copy {
    margin: auto 0;
    padding: 8px 0;
}

.easy-stories-spotlight .eais3-next-label {
    display: block;
    margin-bottom: 9px;
    color: var(--eais3-blue);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .09em;
    line-height: 1.5;
}

.easy-stories-spotlight .eais3-ask-copy h3 {
    color: var(--eais3-ink);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.easy-stories-spotlight .eais3-ask-copy p {
    margin-top: 12px;
    color: var(--eais3-muted);
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.easy-stories-spotlight .eais3-ask-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 8px 0;
    border-bottom: 1px solid #0006ff;
    color: var(--eais3-blue);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.easy-stories-spotlight .eais3-ask-link .eais3-arrow {
    transition: transform .25s ease;
}

.easy-stories-spotlight .eais3-ask-link:hover .eais3-arrow {
    transform: translateX(3px);
}

/* Navigation inside the stories viewport */
.easy-stories-spotlight .eais3-viewport {
    position: relative;
    min-width: 0;
}

.easy-stories-spotlight .eais3-controls {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.easy-stories-spotlight .eais3-range {
    flex: none;
    min-width: 65px;
    text-align: right;
    color: var(--eais3-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.easy-stories-spotlight .eais3-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(23, 27, 37, .12);
    border-radius: 50%;
    background: #fff;
    color: #171b25;
    opacity: var(--eais3-control-opacity, 1);
    cursor: pointer;
    pointer-events: auto;
    transition: background .16s, opacity .16s, transform .16s;
}

.easy-stories-spotlight .eais3-controls .eais3-arrow {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
}

.easy-stories-spotlight .eais3-controls [data-eais3-prev] {
    left: 12px;
}

.easy-stories-spotlight .eais3-controls [data-eais3-next] {
    right: 12px;
}

.easy-stories-spotlight .eais3-controls button:hover:not(:disabled) {
    background: #f2f3f5;
}

/* Match candidate 06: keep the unavailable direction visible but faint. */
.easy-stories-spotlight .eais3-controls button:disabled {
    --eais3-control-opacity: .36;
    cursor: default;
}

.easy-stories-spotlight .eais3-controls button:focus-visible {
    outline: 2px solid #171b25;
    outline-offset: 4px;
}

.easy-stories-spotlight [data-eais3-prev] .eais3-arrow {
    transform: rotate(180deg);
}

/*
 * Candidate 03 desktop cue behavior.
 * The arrow cue follows the visible edge/card under the pointer and clears on leave.
 * We intentionally do not use :focus-within/:has(:focus-visible), so a mouse click
 * cannot leave the arrows stuck on screen after the pointer exits the component.
 */
@media (hover: hover) and (pointer: fine) {
    .easy-stories-spotlight[data-eais3-mounted] .eais3-controls button {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-50%) scale(.94);
    }

    .easy-stories-spotlight[data-eais3-mounted][data-eais3-near="left"] [data-eais3-prev],
    .easy-stories-spotlight[data-eais3-mounted][data-eais3-near="right"] [data-eais3-next],
    .easy-stories-spotlight[data-eais3-mounted][data-eais3-near="both"] .eais3-controls button,
    .easy-stories-spotlight[data-eais3-mounted] .eais3-controls button:focus-visible {
        opacity: var(--eais3-control-opacity, 1);
        pointer-events: auto;
        transform: translateY(-50%) scale(1);
    }
}

/* Mobile / no-JS helpers */
.easy-stories-spotlight .eais3-mobile-hint {
    display: none;
}

.easy-stories-spotlight .eais3-noscript {
    font-size: 14px !important;
    padding-top: 16px;
    line-height: 1.8 !important;
}

.easy-stories-spotlight .eais3-noscript a {
    text-decoration: underline;
    color: var(--eais3-blue);
    margin-left: 10px;
}

@container eais3 (max-width: 1240px) {
    .easy-stories-spotlight .eais3-shell {
        width: calc(100% - 48px);
    }

    .easy-stories-spotlight .eais3-composition {
        grid-template-columns: minmax(0, 1fr) 226px;
    }

    .easy-stories-spotlight .eais3-invitation {
        padding: 22px;
    }

    .easy-stories-spotlight .eais3-copy {
        left: 20px;
        right: 20px;
    }

    .easy-stories-spotlight[data-eais3-mode="expand"] .eais3-copy h3 {
        font-size: 21px;
    }

    .easy-stories-spotlight[data-eais3-mode="expand"] .eais3-panel.is-active .eais3-copy h3 {
        font-size: 32px;
    }

    .easy-stories-spotlight .eais3-ask-copy h3 {
        font-size: 31px;
    }

    .easy-stories-spotlight .eais3-heading {
        gap: 24px;
    }
}

@container eais3 (max-width: 900px) {
    .easy-stories-spotlight .eais3-composition {
        grid-template-columns: minmax(0, 1fr) 208px;
    }

    .easy-stories-spotlight .eais3-invitation {
        padding: 20px;
    }

    .easy-stories-spotlight .eais3-mark {
        width: 48px;
        height: 48px;
    }

    .easy-stories-spotlight .eais3-ask-copy h3 {
        font-size: 29px;
    }

    .easy-stories-spotlight .eais3-heading h2 {
        font-size: 27px;
    }
}

@container eais3 (max-width: 620px) {
    .easy-stories-spotlight .eais3-shell {
        width: calc(100% - 36px);
    }

    .easy-stories-spotlight .eais3-heading {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 18px;
    }

    .easy-stories-spotlight .eais3-heading-main {
        gap: 10px;
        align-items: flex-start;
    }

    .easy-stories-spotlight .eais3-heading-mark {
        width: 25px;
        height: 25px;
        margin-top: 3px;
    }

    .easy-stories-spotlight .eais3-heading h2 {
        font-size: 26px;
        max-width: 19ch;
    }

    .easy-stories-spotlight .eais3-heading h2 span {
        display: block;
    }

    .easy-stories-spotlight .eais3-range {
        justify-self: end;
    }

    .easy-stories-spotlight .eais3-composition {
        grid-template-columns: minmax(0, 1fr);
    }

    .easy-stories-spotlight .eais3-track {
        gap: 12px;
    }

    .easy-stories-spotlight .eais3-track .eais3-invitation {
        flex: 0 0 var(--eais3-card-width, 300px);
        scroll-snap-align: start;
        padding: 24px;
    }

    .easy-stories-spotlight .eais3-panel,
    .easy-stories-spotlight .eais3-invitation {
        height: 350px;
        border-radius: 15px;
    }

    .easy-stories-spotlight .eais3-copy {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .easy-stories-spotlight .eais3-copy h3 {
        font-size: 28px;
    }

    .easy-stories-spotlight .eais3-detail p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .easy-stories-spotlight .eais3-mark {
        width: 56px;
        height: 56px;
    }

    .easy-stories-spotlight .eais3-ask-copy h3 {
        font-size: 34px;
    }

    .easy-stories-spotlight .eais3-mobile-hint {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 12px;
        color: var(--eais3-muted);
        font-size: 11px !important;
        line-height: 1.5 !important;
    }

    .easy-stories-spotlight .eais3-mobile-hint .eais3-arrow {
        width: 15px;
        height: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .easy-stories-spotlight * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .easy-stories-spotlight[data-eais3-mode="expand"] .eais3-panel.is-active .eais3-image {
        transform: none;
    }
}



/* =============================================================
   EASY.GR 2027 — DAY / NIGHT MODE · easy-ai-stories.css
   Additive visual overrides. The approved Light CSS remains intact.
   Supports html[data-theme="dark"], body.dark and Eco Bar theme state.
   Does not alter layout, animation, API calls, click handlers or pricing.
   ============================================================= */
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight{
  --eais3-ink:#edf3ff;
  --eais3-muted:#aab9cd;
  background:var(--eais3-background, #172437);
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-heading h2 span{
  color:#a6b9ff;
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-panel:focus-visible{
  outline:2px solid #384960;
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-story-link{
  border-bottom:1px solid rgba(56,73,96,0.650);
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-story-link:focus-visible{
  outline-color:#384960;
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-select:focus-visible{
  outline:2px solid #384960;
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-invitation{
  border:1px solid #384960;
  background:linear-gradient(145deg, #1d2c42 0%, #1d2c42 70%, #172437 100%);
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-next-label{
  color:#a6b9ff;
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-ask-link{
  color:#a6b9ff;
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-controls button{
  background:#172437;
  color:#edf3ff;
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-controls button:hover:not(:disabled){
  background:#1d2c42;
}

:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-noscript a{
  color:#a6b9ff;
}

/* Page-specific corrections and contrast pass */
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight{--eais3-ink:#edf3ff;--eais3-muted:#adbed3;--eais3-background:#0c1524;background:#0c1524;color:var(--eais3-ink)}
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-invitation{background:linear-gradient(145deg,#1a2a4c,#17263d 70%,#152137);border-color:#394b6c;color:#edf3ff}
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-ask-copy h3,
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-heading h2,
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-ask-brand{color:#edf3ff}
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-ask-copy p{color:#adbed3}
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-controls button{background:#1f3048;color:#edf3ff;border-color:#475b75}
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-controls button:hover:not(:disabled){background:#2b405e}
:is(html[data-theme="dark"],html[data-theme="night"],html.dark,html.night,html.dark-mode,html.theme-dark,html:has(#easy-ecosystem-global-bar-v14[data-theme="dark"]),body[data-theme="dark"],body[data-theme="night"],body.dark,body.night,body.dark-mode,body.theme-dark) .easy-stories-spotlight .eais3-domain{background:rgba(19,30,48,.94);color:#edf3ff}

/* One native link covers every navigable story card, in both layout modes. */
.easy-stories-spotlight[data-eais3] .eais3-card-link {
    display: block;
    z-index: 3;
}
.easy-stories-spotlight[data-eais3] .eais3-panel,
.easy-stories-spotlight[data-eais3] .eais3-panel * {
    cursor: default !important;
}
.easy-stories-spotlight[data-eais3] .eais3-panel.is-linked,
.easy-stories-spotlight[data-eais3] .eais3-panel.is-linked * {
    cursor: pointer !important;
}
.easy-stories-spotlight[data-eais3] .eais3-card-link:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: -5px !important;
}
.easy-stories-spotlight .eais3-panel.is-linked:hover .eais3-story-link .eais3-arrow,
.easy-stories-spotlight .eais3-panel.is-linked:focus-within .eais3-story-link .eais3-arrow {
    transform: translateX(3px);
}
.easy-stories-spotlight[data-eais3] .eais3-controls button:disabled,
.easy-stories-spotlight[data-eais3] .eais3-controls button:disabled * {
    cursor: default !important;
}
@media (forced-colors: active) {
    .easy-stories-spotlight[data-eais3] .eais3-card-link:focus-visible {
        outline-color: LinkText !important;
    }
}

/* Keep the story caption intact inside the site's shared span/SVG rules. */
.easy-stories-spotlight[data-eais3] .eais3-detail > .eais3-story-link {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 20px !important;
    width: auto !important;
    max-width: 100%;
    white-space: nowrap;
    vertical-align: middle;
}
.easy-stories-spotlight[data-eais3] .eais3-story-link > svg.eais3-arrow {
    display: block !important;
    position: static !important;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    max-width: 19px !important;
    flex: 0 0 19px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
}
/* Short/full titles are alternatives, never two simultaneous headings. */
.easy-stories-spotlight[data-eais3] .eais3-short { display: none !important; }
.easy-stories-spotlight[data-eais3] .eais3-full { display: block !important; }
.easy-stories-spotlight[data-eais3][data-eais3-mode="expand"] .eais3-short { display: inline !important; }
.easy-stories-spotlight[data-eais3][data-eais3-mode="expand"] .eais3-full,
.easy-stories-spotlight[data-eais3][data-eais3-mode="expand"] .eais3-detail { display: none !important; }
.easy-stories-spotlight[data-eais3][data-eais3-mode="expand"] .eais3-panel.is-active .eais3-short { display: none !important; }
.easy-stories-spotlight[data-eais3][data-eais3-mode="expand"] .eais3-panel.is-active .eais3-full,
.easy-stories-spotlight[data-eais3][data-eais3-mode="expand"] .eais3-panel.is-active .eais3-detail { display: block !important; }
