/* Home page "Media Coverage": one featured story beside a rail of four smaller ones.
   Same dark palette, accent and Inter type as the Press Releases and Latest Blogs sections.
   Every image is shown whole (object-fit: contain); a blurred copy of the same image fills any spare room. */
.mc-section {
    --mc-bg: #060c16;
    --mc-panel: #0c1520;
    --mc-ink: #eaf3ff;
    --mc-muted: #9cabc0;
    --mc-line: rgba(87, 197, 199, .18);
    --mc-line-strong: rgba(87, 197, 199, .55);
    --mc-accent: #57c5c7;
    /* Sidebar card height and spacing; the rail shows --mc-rail-visible (up to 4) cards at once. */
    --mc-card-h: 124px;
    --mc-gap: 16px;
    --mc-thumb-w: calc(var(--mc-card-h) * 1.6);
    padding: 96px 0;
    background:
        radial-gradient(ellipse 55% 60% at 12% 0%, rgba(87, 197, 199, .10), transparent 70%),
        radial-gradient(ellipse 45% 55% at 100% 100%, rgba(56, 120, 220, .10), transparent 70%),
        var(--mc-bg);
    color: var(--mc-ink);
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
}
.mc-section *, .mc-section *::before, .mc-section *::after { box-sizing: border-box; }
.mc-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

/* Heading */
.mc-head { max-width: 950px; margin: 0 auto 48px; text-align: center; }
.mc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--mc-accent);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.mc-eyebrow::before, .mc-eyebrow::after { width: 24px; height: 1px; background: currentColor; content: ''; }
.mc-title { margin: 0; color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.2; }
.mc-title span { color: var(--mc-accent); }
.mc-lede { margin: 14px 0 0; color: var(--mc-muted); font-size: 1rem; line-height: 1.7; }

/* Layout: featured card left, sidebar rail right. The rail is exactly --mc-rail-visible cards tall. */
.mc-layout {
    --mc-rail-visible: 4;
    --mc-rail-h: calc(var(--mc-rail-visible) * (var(--mc-card-h) + var(--mc-gap)) - var(--mc-gap));
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* Shared card */
.mc-card {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mc-line);
    border-radius: 16px;
    background: var(--mc-panel);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.mc-card:hover, .mc-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--mc-line-strong);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(87, 197, 199, .15);
}

/* Media: the whole image, centred, never cropped or stretched. */
.mc-card__media { position: relative; overflow: hidden; background: #08111c; }
.mc-card__media--article-image::before {
    position: absolute;
    inset: -24px;
    background: var(--mc-backdrop, none) center / cover no-repeat;
    filter: blur(22px) brightness(.45) saturate(1.1);
    content: '';
}
.mc-card__media img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.mc-card__media--publication-logo { background: #fff; }
.mc-card__media--publication-logo img { padding: 16px 18px; }
.mc-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(87, 197, 199, .45);
    font-size: 2rem;
    background:
        linear-gradient(rgba(87, 197, 199, .07) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(87, 197, 199, .07) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(135deg, #0f2036, #0a1424);
}

.mc-card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mc-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    color: var(--mc-muted);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .04em;
}
.mc-card__source { color: var(--mc-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; overflow-wrap: anywhere; }
.mc-card__title { margin: 0; color: #fff; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; transition: color .25s ease; }
.mc-card__link { color: inherit; text-decoration: none; }
/* The headline link covers the whole card, so the card is one large touch target. */
.mc-card__link::after { position: absolute; inset: 0; z-index: 2; content: ''; }
.mc-card__link:focus-visible { outline: none; }
.mc-card:has(.mc-card__link:focus-visible) { outline: 2px solid var(--mc-accent); outline-offset: -2px; }
.mc-card:hover .mc-card__title { color: var(--mc-accent); }
.mc-card__excerpt {
    margin: 0;
    color: #c4d2e5;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--mc-accent);
    font-size: .88rem;
    font-weight: 600;
    transition: gap .2s ease;
}
.mc-card__cta i { font-size: .75em; }
.mc-card:hover .mc-card__cta { gap: 12px; }

/* Featured: the image box takes the picture's own proportions (aspect-ratio is set inline from the
   image's width and height), so it shows whole at full column width. When the rail is taller,
   the box grows and the blurred backdrop fills the extra room. Very tall images are capped. */
.mc-card--featured { flex-direction: column; min-height: var(--mc-rail-h); }
.mc-card--featured::before {
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    z-index: 3;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mc-accent), transparent);
    opacity: .7;
    pointer-events: none;
    content: '';
}
.mc-card--featured .mc-card__media { flex: 1 0 auto; aspect-ratio: 16 / 9; max-height: 640px; }
.mc-card--featured .mc-card__body { gap: 12px; padding: 24px 30px 28px; border-top: 1px solid var(--mc-line); }
.mc-card--featured .mc-card__title { font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.25; }
.mc-card--featured .mc-card__excerpt { max-width: 62ch; font-size: 1rem; -webkit-line-clamp: 2; }
.mc-card--featured .mc-card__meta::before {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mc-accent);
    color: #05080c;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    content: 'Featured';
}

/* Featured slot: with several featured articles the slides share one grid cell (so the slot keeps the
   tallest slide's height and never jumps) and cross-fade; assets/js/media-coverage.js rotates them. */
.mc-featured { position: relative; display: grid; min-width: 0; }
.mc-featured__slide {
    grid-area: 1 / 1;
    display: flex;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility 0s linear .6s;
}
.mc-featured__slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s ease; }
.mc-featured__slide > .mc-card { flex: 1; }
/* Rotating slot: the tallest slide would set the height for all of them, so the image area is capped.
   Each image still shows whole; the blurred backdrop fills the rest of the frame. */
.mc-featured[data-mc-rotate] .mc-card--featured .mc-card__media { max-height: min(460px, 60vh); }
.mc-featured__dots {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--mc-line);
    border-radius: 999px;
    background: rgba(6, 12, 22, .7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.mc-featured__dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
}
/* A larger invisible hit area for touch. */
.mc-featured__dot::after { position: absolute; inset: -9px -5px; content: ''; }
.mc-featured__dot:hover { background: rgba(255, 255, 255, .8); }
.mc-featured__dot[aria-current="true"] { width: 22px; background: var(--mc-accent); }
.mc-featured__dot:focus-visible { outline: 2px solid var(--mc-accent); outline-offset: 3px; }

/* Sidebar rail: fixed-height cards, the article image beside the story, four visible at a time. */
.mc-list { position: relative; min-width: 0; height: var(--mc-rail-h); overflow: hidden; }
.mc-list .mc-card {
    flex-direction: row;
    align-items: stretch;
    height: var(--mc-card-h);
    margin-bottom: var(--mc-gap);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.mc-list:not(.mc-list--marquee) .mc-list__group > .mc-card:last-child { margin-bottom: 0; }
/* Rail cards stay put on hover (a lift would be clipped by the rail); an accent bar grows instead. */
.mc-list .mc-card:hover, .mc-list .mc-card:focus-within { transform: none; }
.mc-list .mc-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    width: 3px;
    background: linear-gradient(180deg, var(--mc-accent), rgba(56, 120, 220, .8));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s ease;
    pointer-events: none;
    content: '';
}
.mc-list .mc-card:hover::before, .mc-list .mc-card:focus-within::before { transform: scaleY(1); }
.mc-list .mc-card__media { flex: 0 0 var(--mc-thumb-w); height: 100%; }
.mc-list .mc-card__body { flex: 1; justify-content: center; gap: 6px; padding: 12px 18px; overflow: hidden; }
.mc-list .mc-card__meta { font-size: .72rem; }
.mc-list .mc-card__title { font-size: .98rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.mc-list .mc-card__excerpt, .mc-list .mc-card__cta { display: none; }

/* Four or more articles beside the featured card: the rail matches the featured card's height and the four
   visible cards share it evenly, so both columns line up. Size containment keeps the rail's contents out of
   the row height; it is never shorter than four standard cards. */
.mc-list--fill { align-self: stretch; height: auto; min-height: var(--mc-rail-h); container-type: size; }
.mc-list--fill .mc-card {
    --mc-row-h: calc((100cqh - (var(--mc-rail-visible) - 1) * var(--mc-gap)) / var(--mc-rail-visible));
    height: var(--mc-card-h);
    height: var(--mc-row-h);
}
.mc-list--fill .mc-card__media { flex-basis: var(--mc-thumb-w); flex-basis: min(calc(var(--mc-row-h) * 1.6), 46%); }

/* More than four articles: the track holds the list twice and slides up by one copy, so the loop is
   seamless. Only transform animates (no layout work); hovering or focusing the rail pauses it. */
.mc-list--marquee {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(180deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.mc-list--marquee .mc-list__track {
    animation: mc-marquee var(--mc-marquee-duration, 24s) linear infinite;
    will-change: transform;
}
.mc-list--marquee:hover .mc-list__track,
.mc-list--marquee:focus-within .mc-list__track { animation-play-state: paused; }
.mc-list--marquee:focus-visible { outline: 2px solid var(--mc-accent); outline-offset: 3px; }
@keyframes mc-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, -50%, 0); }
}

/* Two articles: the lone sidebar story becomes a full-height card with its image on top. */
@media (min-width: 901px) {
    .mc-section--pair .mc-layout { align-items: stretch; }
    .mc-section--pair .mc-list { height: auto; }
    .mc-section--pair .mc-list__track, .mc-section--pair .mc-list__group { height: 100%; }
    .mc-section--pair .mc-list .mc-card { flex-direction: column; height: 100%; margin-bottom: 0; }
    .mc-section--pair .mc-list .mc-card__media { flex: none; height: auto; aspect-ratio: 16 / 10; }
    .mc-section--pair .mc-list .mc-card__body { justify-content: flex-start; padding: 22px 24px; gap: 10px; }
    .mc-section--pair .mc-list .mc-card__title { font-size: 1.15rem; }
    .mc-section--pair .mc-list .mc-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; font-size: .9rem; }
    .mc-section--pair .mc-list .mc-card__cta { display: inline-flex; }
}

/* One article: a single centred horizontal card, image beside the story. */
.mc-section--single .mc-layout { grid-template-columns: minmax(0, 1fr); max-width: 1040px; margin-inline: auto; }
.mc-section--single .mc-card--featured { flex-direction: row; min-height: 0; }
.mc-section--single .mc-card--featured .mc-card__media { flex: 0 0 52%; max-height: 560px; }
.mc-section--single .mc-card--featured .mc-card__body { flex: 1; justify-content: center; padding: 40px 44px; border-top: 0; border-left: 1px solid var(--mc-line); }
.mc-section--single .mc-card--featured .mc-card__cta { margin-top: 8px; }
.mc-section--single .mc-card--featured .mc-card__excerpt { -webkit-line-clamp: 5; }

/* Tablet: two columns while there's room; below that, stack. */
@media (max-width: 1100px) {
    .mc-section { --mc-card-h: 112px; --mc-gap: 14px; --mc-thumb-w: calc(var(--mc-card-h) * 1.45); }
    .mc-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
    .mc-list .mc-card__body { padding: 10px 14px; }
    .mc-list .mc-card__title { font-size: .92rem; }
    .mc-card--featured .mc-card__body { padding: 22px 26px 26px; }
    .mc-section--single .mc-card--featured .mc-card__body { padding: 32px; }
}
@media (max-width: 900px) {
    .mc-section { padding: 72px 0; --mc-card-h: 120px; --mc-thumb-w: calc(var(--mc-card-h) * 1.6); }
    .mc-layout { grid-template-columns: minmax(0, 1fr); }
    .mc-card--featured { min-height: 0; }
    .mc-card--featured .mc-card__media { flex: none; max-height: 70vh; }
    /* Stacked: nothing beside the rail to match, so it goes back to four standard-height cards. */
    .mc-list--fill { height: var(--mc-rail-h); min-height: 0; container-type: normal; }
    .mc-list--fill .mc-card { height: var(--mc-card-h); }
    .mc-list--fill .mc-card__media { flex-basis: var(--mc-thumb-w); }
}
@media (max-width: 700px) {
    .mc-section--single .mc-card--featured { flex-direction: column; }
    .mc-section--single .mc-card--featured .mc-card__media { flex: none; }
    .mc-section--single .mc-card--featured .mc-card__body { border-left: 0; border-top: 1px solid var(--mc-line); }
}

/* Mobile: compact rail cards with smaller thumbnails. */
@media (max-width: 600px) {
    .mc-section { padding: 56px 0; --mc-card-h: 100px; --mc-gap: 12px; --mc-thumb-w: 118px; }
    .mc-shell { width: calc(100% - 32px); }
    .mc-head { margin-bottom: 32px; }
    .mc-lede { font-size: .95rem; }
    .mc-layout { gap: 16px; }
    .mc-card--featured .mc-card__body,
    .mc-section--single .mc-card--featured .mc-card__body { padding: 18px 20px 20px; gap: 10px; }
    .mc-card--featured .mc-card__title { font-size: 1.25rem; }
    .mc-card--featured .mc-card__excerpt { font-size: .93rem; }
    .mc-list .mc-card__body { padding: 10px 12px; gap: 4px; }
    .mc-list .mc-card__meta { font-size: .66rem; gap: 2px 10px; }
    .mc-list .mc-card__title { font-size: .88rem; -webkit-line-clamp: 3; }
    .mc-card__media--publication-logo img { padding: 10px; }
}
@media (max-width: 380px) {
    .mc-section { --mc-thumb-w: 96px; }
    .mc-list .mc-card__title { -webkit-line-clamp: 2; }
}

/* Reduced motion: no marquee. The rail becomes a plain scrollable list of the articles (the duplicate
   copy is hidden), and hover effects stop moving. */
@media (prefers-reduced-motion: reduce) {
    .mc-card, .mc-card__cta, .mc-list .mc-card::before, .mc-featured__slide, .mc-featured__dot { transition: none; }
    .mc-card:hover, .mc-card:focus-within { transform: none; }
    .mc-list--marquee { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--mc-line-strong) transparent; -webkit-mask-image: none; mask-image: none; }
    .mc-list--marquee .mc-list__track { animation: none; will-change: auto; }
    .mc-list--marquee .mc-list__group[aria-hidden="true"] { display: none; }
    .mc-list--marquee .mc-list__group > .mc-card:last-child { margin-bottom: 0; }
}
