/* Original featured presentation, with a shared text budget. */
.news-section .news-card,
.strands-section .strand-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.featured-card-copy {
    display: flex;
    flex-direction: column;
    min-height: 166px;
    height: auto;
    box-sizing: content-box;
    padding-top: 14px;
}

.news-section .news-card .featured-card-copy h3,
.strands-section .strand-card .featured-card-copy h3 {
    display: -webkit-box;
    flex-shrink: 0;
    margin: 0;
    overflow: hidden;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.news-section .news-card .featured-card-copy p,
.strands-section .strand-card .featured-card-copy p {
    display: -webkit-box;
    min-height: 0;
    flex-shrink: 0;
    margin: 10px 0 0;
    overflow: hidden;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--excerpt-lines, 3);
    line-clamp: var(--excerpt-lines, 3);
}

.news-section .news-card > .news-read-more,
.strands-section .strand-card > .strand-view-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 18px;
}

.featured-carousel {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

.featured-carousel .featured-carousel-track {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 64px) / 3);
    justify-content: start;
    align-items: stretch;
    gap: 32px;
    overflow: hidden;
    touch-action: pan-y;
}

.featured-carousel-track > article {
    min-width: 0;
}

/* Quiet editorial navigation: text, arrows and a short underline. */
.featured-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
    color: #555555;
}

.featured-carousel-controls[hidden] {
    display: none;
}

.featured-carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.featured-carousel-arrow:hover:not(:disabled) {
    color: #990000;
}

.news-section .featured-carousel-controls {
    color: #ffffff;
}

.news-section .featured-carousel-arrow:hover:not(:disabled) {
    color: #eed0c8;
}

.featured-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.featured-carousel-arrow:focus-visible,
.featured-carousel-track:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.featured-carousel-position {
    min-width: 52px;
    color: inherit;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    text-align: center;
}

@media (max-width: 850px) {
    .featured-carousel .featured-carousel-track {
        grid-auto-columns: calc((100% - 24px) / 2);
        gap: 24px;
    }
}

@media (max-width: 550px) {
    .featured-carousel .featured-carousel-track {
        grid-auto-columns: 100%;
        gap: 18px;
    }

    .featured-carousel-controls {
        gap: 20px;
    }
}

/* Place quiet chevron controls beside the images, outside the reading area. */
.featured-carousel {
    position: relative;
    max-width: 1120px;
    padding: 0 48px;
    box-sizing: border-box;
}

.featured-carousel-controls {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    pointer-events: none;
}

.featured-carousel-controls .featured-carousel-arrow {
    position: absolute;
    top: var(--carousel-control-y, 106px);
    width: 40px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
    pointer-events: auto;
}

.featured-carousel-arrow[data-carousel-previous] {
    left: 0;
}

.featured-carousel-arrow[data-carousel-next] {
    right: 0;
}

.featured-carousel-arrow svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 550px) {
    .featured-carousel {
        padding: 0 32px;
    }

    .featured-carousel-controls .featured-carousel-arrow {
        width: 28px;
    }
}

/* A little more contrast while keeping the existing side chevrons. */
.featured-carousel-controls .featured-carousel-arrow {
    border: 1px solid rgba(153, 0, 0, 0.18);
    border-radius: 6px;
    background: rgba(153, 0, 0, 0.06);
    color: #990000;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.featured-carousel-arrow svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.2;
}

.featured-carousel-controls .featured-carousel-arrow:hover:not(:disabled) {
    border-color: rgba(153, 0, 0, 0.38);
    background: rgba(153, 0, 0, 0.12);
    color: #790000;
}

.news-section .featured-carousel-controls .featured-carousel-arrow {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.09);
    color: #fff8f3;
}

.news-section .featured-carousel-controls .featured-carousel-arrow:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.featured-carousel-controls .featured-carousel-arrow:active:not(:disabled) {
    border-color: currentColor;
}

@media (max-width: 550px) {
    .featured-carousel {
        padding-right: 38px;
        padding-left: 38px;
    }

    .featured-carousel-controls .featured-carousel-arrow {
        width: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .featured-carousel-controls .featured-carousel-arrow {
        transition: none;
    }
}

/* Circular controls with equal dimensions at every breakpoint. */
.featured-carousel-controls .featured-carousel-arrow {
    width: 40px;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    border-radius: 50%;
}

@media (max-width: 550px) {
    .featured-carousel {
        padding-right: 42px;
        padding-left: 42px;
    }

    .featured-carousel-controls .featured-carousel-arrow {
        width: 36px;
        height: 36px;
        min-height: 36px;
    }
}

/* Strand accents follow the school's dark maroon. */
.strands-section .strand-card h3 .strand-title-link,
.strands-section .strand-card > .strand-view-link {
    color: #780000;
}

.strands-section .strand-card h3 .strand-title-link:hover,
.strands-section .strand-card > .strand-view-link:hover,
.strands-section .strand-card > .strand-view-link:focus-visible {
    color: #5c0000;
}

.strands-section .strand-card > .strand-view-link:hover,
.strands-section .strand-card > .strand-view-link:focus-visible {
    text-decoration: none;
}
