/* Home page appearance. Block order and layout come from Umbraco. */
.ra-home-feed-layout {
    --ra-home-content-width: 1140px;
    --ra-home-gutter: 24px;
    background: #f7f7f5;
}

.ra-home-feed-layout .ra-hero {
    min-height: 0;
    padding: 32px var(--ra-home-gutter);
}

.ra-home-feed-layout .ra-hero .container-fluid {
    max-width: var(--ra-home-content-width);
    margin-inline: auto;
}

.ra-home-feed-layout .ra-hero--image-right .row,
.ra-home-feed-layout .ra-hero--image-left .row,
.ra-home-feed-layout .ra-hero--split .row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    margin: 0;
}

.ra-home-feed-layout .ra-hero--image-left .row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.ra-home-feed-layout .ra-hero .col-lg-6 {
    width: auto;
    min-width: 0;
    padding: 0;
}

.ra-home-feed-layout .ra-hero .col-lg-6:has(> img) {
    margin-block: 0 !important;
    text-align: right;
}

.ra-home-feed-layout .ra-hero--image-left .col-lg-6:has(> img) {
    text-align: left;
}

.ra-home-feed-layout .ra-hero img {
    width: min(100%, 260px);
    height: auto;
    border-radius: 12px;
    box-shadow: none !important;
}

.ra-home-feed-layout .ra-hero__title {
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
    margin-bottom: 16px;
}

.ra-home-feed-layout .ra-hero__subtitle {
    max-width: none;
    font-size: 16px;
    line-height: 1.55;
}

.ra-home-feed-layout .ra-hero__subtitle p:last-child {
    margin-bottom: 0;
}

.ra-home-feed-layout .ra-hero__description {
    max-width: none;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.65;
}

.ra-home-feed-layout .ra-hero__actions {
    margin-top: 20px;
}

.ra-home-feed-layout .ra-hero__actions .btn {
    padding: 10px 18px;
    font-size: 14px;
}

.ra-home-feed-layout .ra-social-block,
.ra-home-feed-layout .ra-social-block + .ra-social-block {
    padding: 36px 0;
    background: #f7f7f5;
}

.ra-home-feed-layout .ra-social-block .container {
    width: calc(100% - 2 * var(--ra-home-gutter));
    max-width: var(--ra-home-content-width);
    margin-inline: auto;
    padding-inline: 0;
}

.ra-home-feed-layout .ra-social-block__source-head {
    gap: 12px;
    margin-bottom: 22px;
}

.ra-home-feed-layout .ra-social-block__source-head h2 {
    font-size: clamp(32px, 3vw, 40px);
}

.ra-home-feed-layout .ra-social-block__source-head p {
    font-size: 14px;
}

.ra-home-feed-layout .ra-social-block__source-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
}

.ra-home-feed-layout .ra-social-block__source-icon--youtube {
    width: 44px;
    border-radius: 11px;
}

.ra-home-feed-layout .ra-social-block__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ra-home-feed-layout .ra-social-card {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgb(18 18 18 / 4%);
}

.ra-home-feed-layout .ra-social-card__body {
    padding: 18px;
}

.ra-home-feed-layout .ra-social-card__body time {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: .04em;
}

.ra-home-feed-layout .ra-social-card__body h3 {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ra-home-feed-layout .ra-social-card__body p {
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ra-home-feed-layout .ra-social-card__cta {
    font-size: 13px;
}

.ra-home-feed-layout .ra-social-block__footer {
    justify-content: flex-start;
    margin-top: 20px;
}

.ra-home-feed-layout .ra-social-block__button {
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.ra-home-feed-layout .ra-social-block__button:hover {
    background: transparent;
    color: inherit;
    text-decoration: underline;
    transform: none;
}

.ra-home-feed-layout .ra-grid-section,
.ra-home-feed-layout .ra-cards-section {
    padding: 36px var(--ra-home-gutter);
}

.ra-home-feed-layout .ra-grid-section__inner,
.ra-home-feed-layout .ra-cards-section__inner {
    max-width: var(--ra-home-content-width);
    margin-inline: auto;
}

.ra-home-feed-layout .ra-cards-section__header:empty {
    display: none;
}

.ra-home-feed-layout .ra-cards-section__header {
    margin-bottom: 24px;
}

.ra-home-feed-layout .ra-card {
    border-radius: 12px;
}

.ra-home-feed-layout .ra-card__body {
    padding: 20px;
}

@media (max-width: 767.98px) {
    .ra-home-feed-layout .ra-hero--image-right .row,
    .ra-home-feed-layout .ra-hero--image-left .row,
    .ra-home-feed-layout .ra-hero--split .row {
        gap: 20px;
    }

    .ra-home-feed-layout .ra-social-block__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ra-home-feed-layout {
        --ra-home-gutter: 16px;
    }

    .ra-home-feed-layout .ra-hero {
        padding-block: 24px;
    }

    .ra-home-feed-layout .ra-hero--image-right .row,
    .ra-home-feed-layout .ra-hero--image-left .row,
    .ra-home-feed-layout .ra-hero--split .row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 100px);
        column-gap: 16px;
        row-gap: 0;
    }

    .ra-home-feed-layout .ra-hero--image-left .row {
        grid-template-columns: minmax(0, 100px) minmax(0, 1fr);
        --ra-hero-text-column: 2;
        --ra-hero-image-column: 1;
    }

    .ra-home-feed-layout :is(.ra-hero--image-right, .ra-hero--image-left, .ra-hero--split) .col-lg-6:not(:has(> img)) {
        display: contents;
    }

    .ra-home-feed-layout :is(.ra-hero--image-right, .ra-hero--image-left, .ra-hero--split) .col-lg-6:not(:has(> img)) > * {
        grid-column: var(--ra-hero-text-column, 1);
    }

    .ra-home-feed-layout :is(.ra-hero--image-right, .ra-hero--image-left, .ra-hero--split) .col-lg-6:not(:has(> img)) > :is(.ra-hero__description, .ra-hero__actions, .ra-hero__social) {
        grid-column: 1 / -1;
    }

    .ra-home-feed-layout :is(.ra-hero--image-right, .ra-hero--image-left, .ra-hero--split) .col-lg-6:has(> img) {
        grid-column: var(--ra-hero-image-column, 2);
        grid-row: 1 / span 2;
        align-self: start;
    }

    .ra-home-feed-layout .ra-hero__title {
        font-size: 32px;
    }

    .ra-home-feed-layout .ra-hero__subtitle,
    .ra-home-feed-layout .ra-hero__description {
        font-size: 14px;
    }

    .ra-home-feed-layout .ra-social-block,
    .ra-home-feed-layout .ra-social-block + .ra-social-block {
        padding-block: 28px;
    }

    .ra-home-feed-layout .ra-social-block__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
