/* ==============================================
   UMBC Featured Story Block
   style.css — self-contained, namespaced (.fs-*).
   Two-column editorial card: photo + panel. The panel adapts to light/dark
   via the theme's semantic tokens, so text is never dark-on-dark. Photo side
   is selectable (.fs--img-left / .fs--img-right).
   ============================================== */

.umbc-featured-story {
    /* Accent — uses the theme's --umbc-link, which is the accent token that
       flips by mode to stay WCAG-accessible on the (also-flipping) panel:
       teal on the light panel, gold on the dark panel. Gold on white fails
       contrast, so the accent must never be hardcoded to gold here. */
    --fs-accent: var(--umbc-link, #007176);
    --fs-accent-hover: var(--umbc-link-hover, #00595d);

    /* Panel palette — resolves through theme tokens, which flip under
     [data-theme="dark"], so the panel + its text adapt automatically. */
    --fs-panel-bg: var(--umbc-surface-card-alt, #f3f3f3);
    --fs-heading: var(--umbc-color-heading, #ffffff);
    --fs-text: var(--umbc-text, #252525);
    --fs-muted: var(--umbc-text-muted, #636466);

    --fs-easing: cubic-bezier(0.22, 1, 0.36, 1);
    --fs-gutter: clamp(1.25rem, 4vw, 4rem);
    --fs-max: 1400px;

    width: 100%;
    /* No baked-in outer padding — the block sits flush. Add spacing via the
       block's own margin controls (supports.spacing.margin) when needed. */
    padding: 0;
}

.fs-card {
    max-width: var(--fs-max);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
}

/* Photo always comes first in the DOM; for the right variant we flip the
   visual column order so source order (and tab order) stays photo → panel. */
.umbc-featured-story.fs--img-right .fs-card__photo {
    order: 2;
}
.umbc-featured-story.fs--img-right .fs-card__panel {
    order: 1;
}

@media (max-width: 800px) {
    .fs-card {
        grid-template-columns: 1fr;
    }
    /* On a single column, keep the photo on top regardless of side choice. */
    .umbc-featured-story.fs--img-right .fs-card__photo,
    .umbc-featured-story.fs--img-right .fs-card__panel {
        order: initial;
    }
}

.fs-card__photo {
    background-size: cover;
    background-position: center;
    min-height: clamp(280px, 40vw, 460px);
    background-color: var(--fs-panel-bg);
}

.fs-card__panel {
    background: var(--fs-panel-bg);
    color: var(--fs-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem);
}

/* Editorial kicker — deliberately not a button (no fill, no chip). */
.fs-card__pill {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: none;
    color: var(--fs-accent);
    font-size: 0.6875rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0;
    margin: 0 0 1rem;
}
.fs-card__pill::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: var(--fs-accent);
}

/* Scoped + explicit: the global heading rule both bleeds a dark color in
   (dark-on-dark, the original landing bug) and auto-margin-centers the
   heading, so we pin the color, the left margin, and the text alignment. */
.umbc-featured-story .fs-card__title {
    color: var(--fs-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-align: left;
    margin: 0 0 1rem;
    margin-left: 0 !important;
}

.fs-card__body {
    color: var(--fs-text);
    font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
    line-height: 1.7;
    margin: 0 0 1.75rem;
}

.fs-card__link {
    align-self: flex-end;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--fs-accent);
    border-bottom: 2px solid var(--fs-accent);
    padding-bottom: 3px;
    transition:
        color 0.15s,
        border-color 0.15s;
}
.fs-card__link:hover,
.fs-card__link:focus-visible {
    color: var(--fs-accent-hover);
    border-color: var(--fs-accent-hover);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .umbc-featured-story * {
        transition-duration: 0.01ms !important;
    }
}
