/**
 * OrchestraLife.Ru homepage.
 *
 * Page-specific styles for the static front page.
 *
 * GeneratePress remains responsible for the page container, header, menu,
 * sidebar layout, and base content width. This file styles only OrchestraLife
 * editorial components rendered inside .olf-home.
 */

/* --------------------------------------------------------------------------
   Front page content
   -------------------------------------------------------------------------- */

.olf-home {
    width: min(1760px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
    padding-block: clamp(4px, 1.1vw, 16px) clamp(44px, 5vw, 72px);
}



.olf-kicker {
    margin: 0 0 18px;
    color: var(--olf-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}





.olf-section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.olf-section-heading h2 {
    margin: 0 0 12px;
    color: var(--olf-heading);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.15;
}

.olf-section-heading p:last-child {
    margin: 0;
    color: var(--olf-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.olf-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--olf-accent);
    font-weight: 700;
    text-decoration: none;
}

.olf-section-link:hover,
.olf-section-link:focus {
    color: var(--olf-accent-dark);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.olf-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: clamp(56px, 8vw, 104px) clamp(24px, 5vw, 72px);
    background:
        linear-gradient(135deg, rgba(36, 88, 77, 0.11), rgba(36, 88, 77, 0.02)),
        var(--olf-surface);
    border: 1px solid var(--olf-border);
}

.olf-hero > * {
    position: relative;
    z-index: 2;
}

.olf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(36, 88, 77, 0.10), transparent 24%),
        linear-gradient(115deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.94) 54%, rgba(228, 239, 235, 0.46) 100%);
    z-index: 0;
}

.olf-hero::after {
    content: "";
    position: absolute;
    top: 80px;
    right: 42px;
    width: min(420px, 42%);
    height: 360px;
    opacity: 0.18;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 24px,
            var(--olf-accent) 25px,
            transparent 26px,
            transparent 42px
        );
    transform: rotate(-4deg);
    transform-origin: center;
    z-index: 1;
}

.olf-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--olf-heading);
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.olf-hero-text {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--olf-muted);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.58;
}


/* --------------------------------------------------------------------------
   Instruments
   -------------------------------------------------------------------------- */

.olf-instruments {
    margin-top: 38px;
}

.olf-instrument-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.olf-instrument-card {
    position: relative;
    min-height: 220px;
    padding: 26px;
    border: 1px solid var(--olf-border);
    background: var(--olf-surface);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(32, 38, 35, 0.06);
}

.olf-instrument-card--active {
    border-color: var(--olf-accent);
    background: linear-gradient(180deg, var(--olf-surface), var(--olf-accent-soft));
}

.olf-instrument-card__status {
    display: inline-flex;
    margin: 0 0 18px;
    padding: 5px 10px;
    border: 1px solid var(--olf-border);
    border-radius: 999px;
    color: var(--olf-accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.olf-instrument-card h3 {
    margin: 0 0 12px;
    color: var(--olf-heading);
    font-size: 1.35rem;
}

.olf-instrument-card p {
    color: var(--olf-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .olf-instrument-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.home.page .site-content {
        padding-inline: 18px;
    }

    .olf-hero {
        min-height: 0;
        padding: 42px 22px;
    }

    .olf-hero::after {
        display: none;
    }

    .olf-instrument-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Dynamic news and CMN feed
   -------------------------------------------------------------------------- */

.olf-news,
.olf-cmn-feed {
    margin-top: clamp(42px, 6vw, 72px);
}

.olf-dynamic-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}

.olf-dynamic-list--cmn {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.olf-dynamic-list--empty {
    display: block;
    padding: 26px 28px;
    color: var(--olf-muted);
    background: var(--olf-surface);
    border: 1px solid var(--olf-border);
}

.olf-dynamic-list--empty p {
    margin: 0;
}

.olf-dynamic-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 26px;
    background: var(--olf-surface);
    border: 1px solid var(--olf-border);
}


.olf-dynamic-card__image {
    display: block;
    margin: -26px -26px 22px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(11, 96, 85, 0.08);
}

.olf-dynamic-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.olf-dynamic-card__meta {
    margin: 0 0 16px;
    color: var(--olf-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.olf-dynamic-card h3 {
    margin: 0;
    color: var(--olf-heading);
    font-size: clamp(21px, 1.7vw, 27px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.olf-dynamic-card h3 a {
    color: inherit;
    text-decoration: none;
}

.olf-dynamic-card h3 a:hover,
.olf-dynamic-card h3 a:focus {
    color: var(--olf-accent-dark);
    text-decoration: underline;
}

.olf-dynamic-card p {
    color: var(--olf-muted);
}

@media (max-width: 980px) {
    .olf-dynamic-list,
    .olf-dynamic-list--cmn {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   GeneratePress-friendly editorial homepage
   -------------------------------------------------------------------------- */

.olf-home--editorial .olf-hero--cover {
    display: flex;
    align-items: center;
    min-height: clamp(340px, 34vw, 470px);
    padding: clamp(34px, 5vw, 68px);
    border-radius: 24px;
    background-image:
        linear-gradient(90deg, rgba(242, 248, 253, 0.98) 0%, rgba(236, 245, 252, 0.92) 34%, rgba(233, 243, 251, 0.50) 61%, rgba(233, 243, 251, 0.08) 100%),
        url('../../images/home-hero-cover.webp');
    background-position: center, center right;
    background-size: cover, cover;
    background-repeat: no-repeat;
    box-shadow: 0 18px 46px rgba(32, 38, 35, 0.08);
}

.olf-home--editorial .olf-hero--cover::before,
.olf-home--editorial .olf-hero--cover::after {
    display: none;
}

.olf-home--editorial .olf-hero__content {
    max-width: 610px;
}

.olf-home--editorial .olf-hero h1 {
    max-width: 640px;
    font-size: clamp(38px, 4.45vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.olf-home--editorial .olf-hero-text {
    max-width: 520px;
    margin-top: 18px;
    font-size: clamp(17px, 1.45vw, 21px);
}

.olf-home--editorial .olf-hero-visual {
    display: none;
}

.olf-home-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.92fr);
    gap: clamp(26px, 3vw, 42px);
    align-items: start;
    margin-top: clamp(16px, 2.2vw, 28px);
}

.olf-home-main .olf-news,
.olf-home-main .olf-cmn-feed {
    margin-top: 0;
}

.olf-home-main .olf-section-heading {
    margin-bottom: 18px;
}

.olf-home-main .olf-kicker {
    margin-bottom: 0;
}

.olf-home-main .olf-news .olf-dynamic-list--news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 0;
}

.olf-home-main .olf-news .olf-dynamic-card {
    min-height: 100%;
    overflow: hidden;
    padding: 0 20px 20px;
    border-radius: 18px;
}

.olf-home-main .olf-news .olf-dynamic-card__image {
    margin: 0 -20px 18px;
}

.olf-home-main .olf-news .olf-dynamic-card h3 {
    font-size: clamp(20px, 1.55vw, 25px);
}

.olf-home-main .olf-news .olf-dynamic-card > p:not(.olf-dynamic-card__meta) {
    margin-bottom: 20px;
}

.olf-home-main .olf-news .olf-section-link {
    margin-top: auto;
    padding-top: 0;
}

.olf-home-main .olf-cmn-feed {
    padding: 22px;
    border: 1px solid var(--olf-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(32, 38, 35, 0.06);
}

.olf-home-main .olf-cmn-feed .olf-section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(20px, 1.25vw, 24px);
    line-height: 1.14;
}

.olf-home-main .olf-cmn-feed .olf-dynamic-list--cmn {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
}

.olf-home-main .olf-cmn-feed .olf-dynamic-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 32px;
    grid-template-areas:
        "image title link"
        "image meta link";
    column-gap: 15px;
    row-gap: 6px;
    align-items: center;
    min-height: 98px;
    padding: 12px;
    border-radius: 15px;
}

.olf-home-main .olf-cmn-feed .olf-dynamic-card__image {
    grid-area: image;
    width: 92px;
    height: 74px;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: auto;
}

.olf-home-main .olf-cmn-feed .olf-dynamic-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.olf-home-main .olf-cmn-feed .olf-dynamic-card h3 {
    grid-area: title;
    min-width: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.24;
    letter-spacing: -0.01em;
}

.olf-home-main .olf-cmn-feed .olf-dynamic-card__meta {
    grid-area: meta;
    margin: 0;
    font-size: 0.78rem;
}

.olf-home-main .olf-cmn-feed .olf-dynamic-card > p:not(.olf-dynamic-card__meta) {
    display: none;
}

.olf-home-main .olf-cmn-feed .olf-section-link {
    grid-area: link;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(36, 88, 77, 0.20);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--olf-accent);
    font-size: 0;
    text-decoration: none;
}

.olf-home-main .olf-cmn-feed .olf-section-link::after {
    content: "↗";
    font-size: 0.78rem;
    line-height: 1;
}

.olf-home-main .olf-cmn-feed .olf-section-link span {
    display: none;
}

.olf-home-main .olf-cmn-feed .olf-section-link:hover,
.olf-home-main .olf-cmn-feed .olf-section-link:focus {
    background: var(--olf-accent);
    color: #ffffff;
}

.olf-home--editorial .olf-instruments {
    margin-top: clamp(42px, 6vw, 72px);
}

.olf-home--editorial .olf-instrument-card {
    min-height: 190px;
}

@media (max-width: 1100px) {
    .olf-home-main {
        grid-template-columns: 1fr;
    }

    .olf-home-main .olf-cmn-feed .olf-dynamic-list--cmn {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .olf-home-main .olf-news .olf-dynamic-list--news,
    .olf-home-main .olf-cmn-feed .olf-dynamic-list--cmn {
        grid-template-columns: 1fr;
    }

    .olf-home--editorial .olf-hero--cover {
        min-height: 360px;
        padding: 28px;
        background-image:
            linear-gradient(180deg, rgba(242, 248, 253, 0.98) 0%, rgba(236, 245, 252, 0.84) 58%, rgba(233, 243, 251, 0.54) 100%),
            url('../../images/home-hero-cover.webp');
    }

    .olf-home--editorial .olf-hero h1 {
        font-size: clamp(36px, 11vw, 52px);
    }
}

@media (max-width: 560px) {
    .olf-home {
        width: calc(100% - 28px);
        padding-block-start: 18px;
    }

    .olf-home--editorial .olf-cmn-feed {
        padding: 18px;
    }

    .olf-home-main .olf-cmn-feed .olf-dynamic-card {
        grid-template-columns: 82px minmax(0, 1fr) 30px;
        min-height: 92px;
    }

    .olf-home-main .olf-cmn-feed .olf-dynamic-card__image {
        width: 82px;
        height: 68px;
    }
}

/* --------------------------------------------------------------------------
   Homepage section headings and links
   -------------------------------------------------------------------------- */

.olf-home-main .olf-section-heading--row,
.olf-instruments .olf-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.olf-home-main .olf-section-heading__more {
    margin-top: 2px;
    color: var(--olf-accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.olf-home-main .olf-section-heading__more:hover,
.olf-home-main .olf-section-heading__more:focus {
    color: var(--olf-accent-dark);
    text-decoration: underline;
}

.olf-home-main .olf-section-heading h2,
.olf-home-main .olf-kicker,
.olf-instruments .olf-kicker {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.olf-home-main .olf-section-heading h2::after,
.olf-home-main .olf-kicker::after,
.olf-instruments .olf-kicker::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--olf-accent);
    opacity: 0.88;
}

.olf-home-main .olf-cmn-feed .olf-dynamic-card {
    grid-template-columns: 92px minmax(0, 1fr) 18px;
}

.olf-home-main .olf-cmn-feed .olf-section-link {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.olf-home-main .olf-cmn-feed .olf-section-link::after {
    font-size: 0.92rem;
}

@media (max-width: 820px) {
    .olf-home-main .olf-section-heading__more {
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   Homepage hero text accent
   -------------------------------------------------------------------------- */

.olf-home--editorial .olf-hero .olf-hero-text::before {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: var(--olf-accent);
    opacity: 0.88;
}

/* --------------------------------------------------------------------------
   GeneratePress homepage shell
   -------------------------------------------------------------------------- */

body.home .inside-article {
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* --------------------------------------------------------------------------
   Homepage news cards
   -------------------------------------------------------------------------- */

.olf-home-main .olf-news .olf-dynamic-card {
    border-color: rgba(36, 95, 134, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 255, 0.94) 62%, rgba(236, 247, 255, 0.78) 100%);
    box-shadow: 0 14px 34px rgba(36, 95, 134, 0.075);
}

.olf-home-main .olf-news .olf-dynamic-card__meta {
    margin-bottom: 12px;
    font-size: 0.72rem;
    letter-spacing: 0.075em;
}

.olf-home-main .olf-news .olf-dynamic-card h3 {
    font-size: clamp(18px, 1.22vw, 22px);
    line-height: 1.18;
    letter-spacing: -0.018em;
}

.olf-home-main .olf-news .olf-dynamic-card > p:not(.olf-dynamic-card__meta) {
    color: rgba(32, 37, 42, 0.74);
    font-size: 0.94rem;
    line-height: 1.56;
}

.olf-home-main .olf-news .olf-section-link {
    font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Homepage publications and library updates
   -------------------------------------------------------------------------- */

.olf-home-main .olf-news {
    grid-column: 1;
}

.olf-home-main .olf-publications {
    grid-column: 1;
    margin-top: clamp(24px, 3vw, 36px);
}

.olf-home-main .olf-cmn-feed {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.olf-home-main .olf-publications .olf-dynamic-list--articles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 0;
}

.olf-home-main .olf-publications .olf-dynamic-card {
    min-height: 100%;
    overflow: hidden;
    padding: 0 20px 20px;
    border-color: rgba(36, 95, 134, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(32, 38, 35, 0.055);
}

.olf-home-main .olf-publications .olf-dynamic-card__image {
    margin: 0 -20px 18px;
}

.olf-home-main .olf-publications .olf-dynamic-card__meta {
    margin-bottom: 12px;
    font-size: 0.72rem;
    letter-spacing: 0.075em;
}

.olf-home-main .olf-publications .olf-dynamic-card h3 {
    font-size: clamp(18px, 1.2vw, 22px);
    line-height: 1.18;
    letter-spacing: -0.018em;
}

.olf-home-main .olf-publications .olf-dynamic-card > p:not(.olf-dynamic-card__meta) {
    color: rgba(32, 37, 42, 0.74);
    font-size: 0.94rem;
    line-height: 1.56;
}

.olf-home-main .olf-publications .olf-section-link {
    margin-top: auto;
    padding-top: 0;
    font-size: 0.92rem;
}

.olf-library-updates {
    margin-top: clamp(34px, 5vw, 58px);
}

.olf-library-updates .olf-materials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.olf-library-updates .olf-material-card,
.olf-library-updates .olf-materials-empty {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 24px 22px;
    border: 1px solid rgba(36, 95, 134, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(36, 95, 134, 0.06);
}

.olf-library-updates .olf-material-card__meta {
    margin: 0 0 12px;
    color: var(--olf-muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.olf-library-updates .olf-material-card h3 {
    margin: 0;
    color: var(--olf-heading);
    font-size: clamp(18px, 1.25vw, 22px);
    line-height: 1.18;
    letter-spacing: -0.018em;
}

.olf-library-updates .olf-material-card h3 a {
    color: inherit;
    text-decoration: none;
}

.olf-library-updates .olf-material-card h3 a:hover,
.olf-library-updates .olf-material-card h3 a:focus {
    color: var(--olf-accent);
}

.olf-library-updates .olf-material-card__work,
.olf-library-updates .olf-material-card__note {
    color: rgba(32, 37, 42, 0.74);
    font-size: 0.94rem;
    line-height: 1.56;
}

.olf-library-updates .olf-section-link {
    margin-top: auto;
    padding-top: 18px;
    font-size: 0.92rem;
}

@media (max-width: 1120px) {
    .olf-home-main {
        grid-template-columns: 1fr;
    }

    .olf-home-main .olf-cmn-feed {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 820px) {
    .olf-home-main .olf-publications .olf-dynamic-list--articles,
    .olf-library-updates .olf-materials-grid {
        grid-template-columns: 1fr;
    }
}

.olf-home .olf-kicker a {
    color: inherit;
    text-decoration: none;
}

.olf-home .olf-kicker a:hover,
.olf-home .olf-kicker a:focus {
    color: var(--olf-accent-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/* Mobile full-bleed homepage hero. */
@media (max-width: 720px) {
    .olf-home--editorial .olf-hero--cover {
        width: 100vw;
        max-width: none;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
}

/* Reduce CMN feed headline size on mobile. */
@media (max-width: 768px) {
    body.home .olf-home-main .olf-cmn-feed .olf-dynamic-card h3,
    body.home .olf-home-main .olf-cmn-feed .olf-dynamic-card h3 a {
        font-size: 1.05rem;
        line-height: 1.2;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }
}


/* Compact thumbnails in homepage library updates. */
.olf-library-updates .olf-material-card__image {
    display: block;
    height: clamp(68px, 6.5vw, 88px);
    margin: 0 0 12px;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2f5;
}

.olf-library-updates .olf-material-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.olf-library-updates .olf-material-card__image:hover img,
.olf-library-updates .olf-material-card__image:focus img {
    transform: scale(1.02);
    filter: saturate(1.02);
}

.olf-library-updates .olf-material-card__meta,
.olf-library-updates .olf-material-card__work,
.olf-library-updates .olf-material-card__note {
    display: none;
}

/* Compact horizontal material cards in homepage library updates. */
.olf-library-updates .olf-material-card {
    min-height: auto;
    padding: 16px;
}

.olf-library-updates .olf-material-card:has(.olf-material-card__image) {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: start;
}

.olf-library-updates .olf-material-card__image {
    grid-row: 1 / span 2;
    width: 112px;
    height: 64px;
    margin: 0;
    border-radius: 12px;
    aspect-ratio: auto;
}

.olf-library-updates .olf-material-card__image img {
    border-radius: inherit;
    object-fit: cover;
}

.olf-library-updates .olf-material-card h3 {
    font-size: clamp(16px, 1vw, 18px);
    line-height: 1.2;
    letter-spacing: -0.012em;
}

.olf-library-updates .olf-material-card .olf-section-link {
    margin-top: 0;
    padding-top: 2px;
    font-size: 0.84rem;
}

@media (max-width: 720px) {
    .olf-library-updates .olf-material-card:has(.olf-material-card__image) {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px 12px;
    }

    .olf-library-updates .olf-material-card__image {
        width: 92px;
        height: 56px;
    }
}

/* Mobile CMN feed cards: image on top instead of side thumbnail. */
@media (max-width: 560px) {
    .olf-home-main .olf-cmn-feed .olf-dynamic-card {
        grid-template-columns: minmax(0, 1fr) 30px;
        grid-template-areas:
            "image image"
            "title link"
            "meta link";
        min-height: 0;
        row-gap: 9px;
        align-items: start;
    }

    .olf-home-main .olf-cmn-feed .olf-dynamic-card__image {
        width: 100%;
        height: auto;
        margin: 0;
        border-radius: 12px;
        aspect-ratio: 16 / 9;
    }

    .olf-home-main .olf-cmn-feed .olf-dynamic-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .olf-home-main .olf-cmn-feed .olf-section-link {
        align-self: start;
        margin-top: 1px;
    }
}
