:root {
    --rr-purple: #6A59FD;
    --rr-navy: #171245;
    --rr-page-bg: #F9F9F9;
    --rr-card-grey: #E8E8E8;
    --rr-white: #FFFFFF;
    --rr-gutter: 72px;
    --rr-radius: 12px;
    --rr-radius-lg: 20px;
}

main.rr-main {
    display: block;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--rr-page-bg);
    color: var(--rr-navy);
}

.rr-main h1,
.rr-main h2,
.rr-main h3,
.rr-main p {
    margin: 0;
}

.rr-main a {
    text-decoration: none;
}

.rr-container {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
}

    .rr-container.rr-container--wide {
        max-width: calc(1296px + (var(--rr-gutter) * 2));
        padding: 0 var(--rr-gutter);
    }

.rr-section {
    position: relative;
    padding: 80px 0;
}

.rr-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.rr-main .rr-section__title {
    min-width: 0;
    color: var(--rr-navy);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
}

.rr-main .rr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px !important;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

    .rr-main .rr-btn.rr-btn--sm {
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }

    .rr-main .rr-btn.rr-btn--light {
        background-color: var(--rr-white);
        color: var(--rr-navy);
    }

        .rr-main .rr-btn.rr-btn--light:hover {
            background-color: var(--rr-navy);
            color: var(--rr-white) !important;
        }

    .rr-main .rr-btn.rr-btn--dark {
        background-color: var(--rr-navy);
        color: var(--rr-white);
    }

        .rr-main .rr-btn.rr-btn--dark:hover {
            border-color: var(--rr-navy);
            background-color: var(--rr-white);
            color: var(--rr-navy) !important;
        }

    .rr-main .rr-btn.rr-btn--outline-light {
        border-color: rgba(255, 255, 255, 0.85);
        background-color: transparent;
        color: var(--rr-white);
    }

        .rr-main .rr-btn.rr-btn--outline-light:hover {
            background-color: var(--rr-white);
            color: var(--rr-navy) !important;
        }

    .rr-main .rr-btn.rr-btn--outline-dark {
        border-color: rgba(23, 18, 69, 0.6);
        background-color: transparent;
        color: var(--rr-navy);
    }

        .rr-main .rr-btn.rr-btn--outline-dark:hover {
            border-color: var(--rr-navy);
            background-color: var(--rr-navy);
            color: var(--rr-white) !important;
        }

.rr-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--rr-purple);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    color: var(--rr-white);
}

.rr-hero__inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 800px;
    padding: 0 var(--rr-gutter);
}

.rr-hero__content {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 560px;
    padding: 120px 0 80px;
}

.rr-main .rr-hero__title {
    color: var(--rr-white);
    font-size: 72px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.rr-main .rr-hero__text {
    max-width: 540px;
    margin-top: 28px;
    color: var(--rr-white);
    font-size: 16px;
    line-height: 1.5;
}

.rr-hero .rr-btn {
    margin-top: 32px;
}

.rr-hero__image {
    position: absolute;
    bottom: 0;
    left: 48%;
    display: block;
    width: auto;
    height: 86%;
    max-height: 690px;
    object-fit: contain;
    object-position: bottom;
}

.rr-intro {
    padding-bottom: 0;
}

.rr-intro__inner {
    max-width: 760px;
    text-align: center;
}

.rr-main .rr-intro__title {
    color: var(--rr-navy);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
}

.rr-main .rr-intro__text {
    margin-top: 20px;
    color: var(--rr-navy);
    font-size: 16px;
    line-height: 1.5;
}

.rr-features {
    padding: 160px 0 80px;
}

.rr-features__swoosh {
    position: absolute;
    top: 80px;
    left: 0;
    width: 430px;
    height: auto;
    pointer-events: none;
}

.rr-feature {
    position: relative;
    display: grid;
    grid-template-columns: 463px minmax(0, 1fr);
    align-items: center;
    gap: 80px;
}

    .rr-feature + .rr-feature {
        margin-top: 200px;
    }

    .rr-feature.rr-feature--reverse {
        grid-template-columns: minmax(0, 1fr) 463px;
    }

        .rr-feature.rr-feature--reverse .rr-feature__media {
            order: 2;
        }

.rr-feature__media {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--rr-radius-lg);
    aspect-ratio: 463 / 442;
}

.rr-feature__image,
.rr-feature__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rr-feature__content {
    width: 100%;
    max-width: 582px;
    min-width: 0;
}

.rr-main .rr-feature__title {
    color: var(--rr-navy);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
}

.rr-feature__text {
    max-width: 380px;
    margin-top: 20px;
    color: var(--rr-navy);
    font-size: 16px;
    line-height: 1.5;
}

    .rr-feature__text p {
        margin: 0;
    }

.rr-feature .rr-btn {
    margin-top: 48px;
}

.rr-news__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.rr-news-card {
    display: flex;
    flex-direction: column;
    min-height: 262px;
    padding: 40px;
    border-radius: var(--rr-radius);
    color: var(--rr-white);
    transition: transform .22s ease, box-shadow .22s ease;
}

.rr-news-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(23, 18, 69, .12);
}

    .rr-news-card.rr-news-card--purple {
        --rr-news-title-hover: var(--rr-navy);
        background-color: var(--rr-purple);
    }

    .rr-news-card.rr-news-card--navy {
        --rr-news-title-hover: var(--rr-purple);
        background-color: var(--rr-navy);
    }

.rr-main .rr-news-card__title {
    max-width: 520px;
    color: var(--rr-white);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
}

    .rr-main .rr-news-card__title a {
        color: inherit;
        transition: color .2s ease;
    }

    /* Override the global important link colour on these coloured cards. */
    .rr-main .rr-news-card__title a:hover,
    .rr-main .rr-news-card__title a:focus,
    .rr-main .rr-news-card__title a:active {
        color: var(--rr-news-title-hover, var(--rr-white)) !important;
    }

.rr-main .rr-news-card__text {
    max-width: 360px;
    margin-top: 12px;
    color: var(--rr-white);
    font-size: 14px;
    line-height: 1.45;
}

.rr-news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 32px;
}

.rr-news-card__date {
    color: var(--rr-white);
    font-size: 12px;
}

.rr-happening__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.rr-happening-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--rr-radius);
    background-color: var(--rr-card-grey);
    transition: transform .22s ease, box-shadow .22s ease;
}

.rr-happening-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(23, 18, 69, .14);
}

@media (hover: hover) and (pointer: fine) {
    .rr-news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(23, 18, 69, .12);
    }

    .rr-happening-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(23, 18, 69, .14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rr-news-card,
    .rr-happening-card,
    .rr-main .rr-news-card__title a {
        transition: none;
    }

    .rr-news-card:hover,
    .rr-news-card:focus-within,
    .rr-happening-card:hover,
    .rr-happening-card:focus-within {
        transform: none;
    }
}

.rr-happening-card__media {
    display: block;
    height: 200px;
    background-color: #D5D5DB;
}

    .rr-happening-card__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.rr-happening-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 28px 24px;
}

.rr-main .rr-happening-card__title {
    color: var(--rr-navy);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
}

    .rr-main .rr-happening-card__title a,
    .rr-main .rr-happening-card__title a:hover {
        color: inherit;
    }

.rr-happening-card__text {
    max-width: 460px;
    margin-top: 12px;
    color: var(--rr-navy);
    font-size: 14px;
    line-height: 1.45;
}

    .rr-happening-card__text p {
        margin: 0;
    }

.rr-happening-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 32px;
}

.rr-happening-card__date {
    color: rgba(23, 18, 69, 0.6);
    font-size: 12px;
}

.rr-careers {
    padding-bottom: 120px;
}

.rr-careers__banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 464px;
    overflow: hidden;
    border-radius: 16px;
    background-color: var(--rr-purple);
    color: var(--rr-white);
}

.rr-careers__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

    .rr-careers__image::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, var(--rr-purple) 0%, rgba(106, 89, 253, 0.55) 35%, rgba(106, 89, 253, 0) 75%);
    }

.rr-careers__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 48px 40px;
}

.rr-main .rr-careers__title {
    color: var(--rr-white);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
}

.rr-careers__text {
    max-width: 560px;
    margin-top: 16px;
    color: var(--rr-white);
    font-size: 18px;
    line-height: 1.45;
}

    .rr-careers__text p {
        margin: 0;
    }

.rr-careers__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.rr-sweden__intro {
    margin-bottom: 32px;
    text-align: center;
    font-size: 18px;
}

.rr-sweden__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.rr-sweden__item a {
    color: var(--rr-navy);
}

.rr-sweden__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    overflow: hidden;
    border-radius: 50%;
}

    .rr-sweden__circle img {
        width: 80%;
        height: 80%;
        object-fit: cover;
    }

.rr-main .rr-sweden__title {
    color: var(--rr-navy);
    font-size: 24px;
    font-weight: 600;
}

.rr-main .rr-feature .rr-feature__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    height: auto;
    min-height: 0;
    padding: 0;
}

    .rr-main .rr-feature .rr-feature__content > * {
        margin: 0;
        padding: 0;
        min-height: 0;
        max-width: 100%;
    }

    .rr-main .rr-feature .rr-feature__content > :not(a):not(button):not(.rr-btn) {
        height: auto;
    }

    .rr-main .rr-feature .rr-feature__content :is(h1, h2, h3, h4, h5, h6) {
        margin: 0;
        padding: 0;
        min-height: 0;
        height: auto;
    }

    .rr-main .rr-feature .rr-feature__content .rr-feature__text,
    .rr-main .rr-feature .rr-feature__content .rr-feature__text *,
    .rr-main .rr-feature .rr-feature__content > p {
        margin: 0;
        padding: 0;
        min-height: 0;
        height: auto;
        font-weight: 400;
        line-height: 1.5;
    }

    .rr-main .rr-feature .rr-feature__content br,
    .rr-main .rr-feature .rr-feature__content p:empty,
    .rr-main .rr-feature .rr-feature__content p:has(> br:only-child) {
        display: none;
    }

    .rr-main .rr-feature .rr-feature__content .rr-btn,
    .rr-main .rr-feature .rr-feature__content .readmore {
        margin: 12px 0 0;
        text-transform: none;
        letter-spacing: normal;
    }

@media (max-width: 1280px) {
    :root {
        --rr-gutter: 40px;
    }

    .rr-container {
        padding: 0 var(--rr-gutter);
    }

    .rr-hero__inner {
        min-height: 640px;
    }

    .rr-hero__content {
        padding: 100px 0 64px;
    }

    .rr-main .rr-hero__title {
        font-size: 60px;
    }

    .rr-feature,
    .rr-feature.rr-feature--reverse {
        gap: 56px;
    }

    .rr-feature {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

        .rr-feature.rr-feature--reverse {
            grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        }

        .rr-feature + .rr-feature {
            margin-top: 120px;
        }

    .rr-features {
        padding: 120px 0 64px;
    }

    .rr-features__swoosh {
        width: 320px;
    }

    .rr-news-card {
        min-height: 240px;
        padding: 32px;
    }

    .rr-main .rr-news-card__title,
    .rr-main .rr-happening-card__title {
        font-size: 24px;
    }

    .rr-happening-card__media {
        height: 180px;
    }

    .rr-careers__banner {
        min-height: 420px;
    }
}

@media (max-width: 1024px) {
    :root {
        --rr-gutter: 24px;
    }

    .rr-section {
        padding: 64px 0;
    }

    .rr-section__head {
        margin-bottom: 32px;
    }

    .rr-hero__inner {
        min-height: 560px;
        padding-top: 55px;
    }

    .rr-hero__content {
        max-width: 48%;
        padding: 64px 0;
    }

    .rr-main .rr-hero__title {
        font-size: 44px;
    }

    .rr-main .rr-hero__text {
        margin-top: 20px;
    }

    .rr-hero .rr-btn {
        margin-top: 24px;
    }

    .rr-hero__image {
        left: 50%;
        height: 90%;
    }

    .rr-main .rr-intro__title,
    .rr-main .rr-section__title {
        font-size: 32px;
    }

    .rr-features {
        padding: 96px 0 56px;
    }

    .rr-features__swoosh {
        width: 240px;
    }

    .rr-feature,
    .rr-feature.rr-feature--reverse {
        gap: 40px;
    }

        .rr-feature + .rr-feature {
            margin-top: 80px;
        }

    .rr-main .rr-feature__title {
        font-size: 32px;
    }

    .rr-main .rr-feature .rr-feature__content {
        gap: 16px;
    }

        .rr-main .rr-feature .rr-feature__content .rr-btn,
        .rr-main .rr-feature .rr-feature__content .readmore {
            margin-top: 8px;
        }

    .rr-news-card {
        min-height: 220px;
        padding: 24px;
    }

    .rr-main .rr-news-card__title,
    .rr-main .rr-happening-card__title {
        font-size: 20px;
    }

    .rr-news-card__footer,
    .rr-happening-card__footer {
        padding-top: 24px;
    }

    .rr-happening-card__media {
        height: 160px;
    }

    .rr-happening-card__body {
        padding: 20px 24px;
    }

    .rr-careers {
        padding-bottom: 80px;
    }

    .rr-careers__banner {
        min-height: 0;
    }

    .rr-careers__image {
        display: none;
    }

    .rr-careers__content {
        padding: 40px 32px;
    }

    .rr-main .rr-careers__title {
        font-size: 28px;
    }

    .rr-careers__text {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    :root {
        --rr-gutter: 20px;
    }

    .rr-section {
        padding: 48px 0;
    }

    .rr-hero__inner {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .rr-hero__content {
        align-self: stretch;
        max-width: none;
        padding: 48px 0 24px;
    }

    .rr-main .rr-hero__title {
        font-size: 40px;
    }

    .rr-main .rr-hero__text {
        max-width: none;
    }

    .rr-hero__image {
        position: relative;
        bottom: auto;
        left: auto;
        align-self: center;
        width: 100%;
        max-width: 420px;
        height: auto;
        max-height: none;
    }

    .rr-intro__inner {
        text-align: left;
    }

    .rr-main .rr-intro__title,
    .rr-main .rr-section__title {
        font-size: 24px;
    }

    .rr-features {
        padding: 64px 0 48px;
    }

    .rr-features__swoosh {
        width: 160px;
    }

    .rr-feature,
    .rr-feature.rr-feature--reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

        .rr-feature + .rr-feature {
            margin-top: 64px;
        }

        .rr-feature.rr-feature--reverse .rr-feature__media {
            order: 0;
        }

    .rr-feature__media {
        width: 100%;
        max-width: 341px;
        max-height: 341px;
        justify-self: center;
    }

    .rr-feature__content {
        max-width: none;
    }

    .rr-main .rr-feature__title {
        font-size: 24px;
    }

    .rr-main .rr-feature .rr-feature__content {
        gap: 12px;
    }

        .rr-main .rr-feature .rr-feature__content .rr-btn,
        .rr-main .rr-feature .rr-feature__content .readmore {
            margin-top: 4px;
        }

    .rr-feature__text {
        max-width: none;
    }

    .rr-news__grid,
    .rr-happening__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .rr-news-card {
        min-height: 0;
    }

    .rr-main .rr-news-card__text,
    .rr-happening-card__text {
        max-width: none;
    }

    .rr-happening-card__media {
        height: 180px;
    }

    .rr-careers {
        padding-bottom: 64px;
    }

    .rr-careers__content {
        max-width: none;
        padding: 32px 24px;
    }

    .rr-main .rr-careers__title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .rr-main .rr-hero__title {
        font-size: 36px;
    }

    .rr-careers__actions .rr-btn {
        flex: 1 1 auto;
    }

    .rr-feature {
        margin: 48px 0;
    }
}

/* Responsive sizing overrides. Keep this block after the existing styles. */
.rr-main,
.rr-main *,
.rr-main *::before,
.rr-main *::after {
    box-sizing: border-box;
}

.rr-main {
    --rr-gutter: clamp(16px, 5vw, 72px);
}

    .rr-main .rr-main__wrap {
        min-width: 0;
    }

.rr-container {
    width: 100%;
    max-width: calc(1120px + (var(--rr-gutter) * 2));
    padding: 0 var(--rr-gutter);
}

    .rr-container.rr-container--wide {
        max-width: calc(1296px + (var(--rr-gutter) * 2));
    }

.rr-section {
    padding: clamp(48px, 5.56vw, 80px) 0;
}

.rr-section__head {
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: clamp(24px, 2.78vw, 40px);
}

.rr-main :is(h1, h2, h3, h4, h5, h6, p),
.rr-feature__text,
.rr-happening-card__text,
.rr-careers__text,
.rr-sweden__item {
    overflow-wrap: anywhere;
}

.rr-main .rr-btn {
    height: auto;
    min-height: 42px;
    max-width: 100%;
    padding: 10px 20px !important;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

    .rr-main .rr-btn.rr-btn--sm {
        height: auto;
        min-height: 38px;
        padding: 8px 16px !important;
    }

.rr-hero__inner {
    min-height: clamp(560px, 55.56vw, 800px);
    padding: 0 var(--rr-gutter);
}

.rr-hero__content {
    width: 48%;
    max-width: 560px;
    min-width: 0;
    padding: clamp(64px, 8.33vw, 120px) 0 clamp(48px, 5.56vw, 80px);
}

.rr-main .rr-hero__title {
    font-size: clamp(36px, 5vw, 72px);
}

.rr-main .rr-hero__text {
    margin-top: clamp(20px, 1.95vw, 28px);
}

.rr-hero .rr-btn {
    margin-top: clamp(24px, 2.23vw, 32px);
}

.rr-hero__image {
    left: auto;
    right: 0;
    width: 50%;
    height: 86%;
    max-height: 690px;
    object-fit: contain;
    object-position: center bottom;
}

.rr-intro {
    padding-bottom: 0;
}

.rr-intro__inner {
    max-width: calc(760px + (var(--rr-gutter) * 2));
}

.rr-main .rr-intro__title,
.rr-main .rr-feature__title {
    font-size: clamp(24px, calc(18.4px + 1.5vw), 40px);
}

.rr-main .rr-section__title,
.rr-main .rr-careers__title {
    font-size: clamp(24px, 2.5vw, 36px);
}

.rr-features {
    padding: clamp(64px, 11.12vw, 160px) 0 clamp(48px, 5.56vw, 80px);
}

.rr-features__swoosh {
    top: clamp(32px, 5.56vw, 80px);
    width: clamp(140px, 29.87vw, 430px);
    max-width: 100%;
}

.rr-feature {
    grid-template-columns: minmax(0, 463fr) minmax(0, 577fr);
    gap: clamp(24px, 5.56vw, 80px);
    margin: 0;
}

    .rr-feature.rr-feature--reverse {
        grid-template-columns: minmax(0, 577fr) minmax(0, 463fr);
        gap: clamp(24px, 5.56vw, 80px);
    }

    .rr-feature + .rr-feature {
        margin-top: clamp(64px, 13.89vw, 200px);
    }

.rr-main .rr-feature .rr-feature__content {
    gap: clamp(12px, 1.39vw, 20px);
}

    .rr-main .rr-feature .rr-feature__content .rr-btn,
    .rr-main .rr-feature .rr-feature__content .readmore {
        margin-top: clamp(4px, .84vw, 12px);
    }

.rr-news__grid,
.rr-happening__grid {
    gap: clamp(16px, 1.67vw, 24px);
}

.rr-news-card,
.rr-happening-card,
.rr-sweden__item,
.rr-careers__content {
    min-width: 0;
}

.rr-news-card {
    min-height: clamp(220px, 18.2vw, 262px);
    padding: clamp(20px, 2.78vw, 40px);
}

.rr-main .rr-news-card__title,
.rr-main .rr-happening-card__title {
    font-size: clamp(20px, calc(12px + 1.12vw), 28px);
}

.rr-news-card__footer,
.rr-happening-card__footer {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-top: clamp(24px, 2.23vw, 32px);
}

.rr-news-card__date,
.rr-happening-card__date {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rr-happening-card__media {
    height: clamp(160px, 13.89vw, 200px);
}

.rr-happening-card__body {
    padding: clamp(20px, 1.67vw, 24px) clamp(20px, 1.95vw, 28px);
}

.rr-careers {
    padding-bottom: clamp(64px, 8.34vw, 120px);
}

.rr-careers__banner {
    min-height: clamp(400px, 32.23vw, 464px);
}

.rr-careers__image {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    height: auto;
    background-position: center right;
}

.rr-careers__content {
    width: 48%;
    max-width: 640px;
    padding: clamp(28px, 3.34vw, 48px) clamp(20px, 2.78vw, 40px);
}

.rr-careers__banner:not(:has(.rr-careers__image)) {
    min-height: 0;
}

    .rr-careers__banner:not(:has(.rr-careers__image)) .rr-careers__content {
        width: 100%;
        max-width: 760px;
    }

.rr-careers__text,
.rr-sweden__intro {
    font-size: clamp(16px, 1.25vw, 18px);
}

.rr-sweden__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(16px, 1.67vw, 24px);
}

/* Compact careers banner on tablets and phones; no empty image row. */
@media (max-width: 1024px) {
    .rr-careers__banner {
        flex-direction: row;
        align-items: center;
        min-height: 0;
    }

    .rr-careers__content {
        width: 100%;
        max-width: none;
        padding: 32px 28px;
    }

    .rr-careers__image {
        display: none;
    }
}

/* Keep tablet announcement cards in two balanced columns. */
@media (min-width: 768px) and (max-width: 1024px) {
    .rr-happening__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .rr-happening-card__media {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .rr-happening-card__body {
        padding: 24px;
    }

    .rr-happening-card__footer {
        gap: 12px;
        padding-top: 24px;
    }
}

@media (max-width: 767px) {
    .rr-careers__content {
        padding: 32px 24px;
    }
}

/* Keep every tile; stack the same elements when two columns become cramped. */
@media (max-width: 767px) {
    .rr-hero__inner {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0;
    }

    .rr-hero__content {
        width: 100%;
        max-width: none;
        padding: 48px 0 24px;
    }

    .rr-hero__image {
        position: relative;
        inset: auto;
        align-self: center;
        width: 100%;
        max-width: 420px;
        height: auto;
        max-height: none;
    }

    .rr-feature,
    .rr-feature.rr-feature--reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-bottom: 0;
    }

    .rr-feature__media {
        max-width: 463px;
        max-height: none;
        aspect-ratio: 463 / 442;
        justify-self: center;
    }

    .rr-feature.rr-feature--reverse .rr-feature__media {
        order: 0;
    }

    .rr-feature__content,
    .rr-feature__text {
        max-width: none;
    }

    .rr-news__grid,
    .rr-happening__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rr-news-card {
        min-height: 0;
    }

    .rr-happening-card__media {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Mobile article spacing and insight-card proportions. */
@media (max-width: 767px) {
    .rr-features {
        padding-top: 80px;
    }

    .rr-feature + .rr-feature {
        margin-top: 88px;
    }

    .rr-main .rr-feature .rr-feature__content {
        gap: 20px;
    }

        .rr-main .rr-feature .rr-feature__content .rr-btn,
        .rr-main .rr-feature .rr-feature__content .readmore {
            margin-top: 24px;
        }

    .rr-news__grid {
        justify-items: center;
        gap: 24px;
    }

    .rr-news-card {
        width: 100%;
        min-height: clamp(240px, 70vw, 280px);
        padding: 32px clamp(24px, 8vw, 32px);
    }

    .rr-main .rr-news-card__title {
        font-size: 22px;
    }

    .rr-news-card__footer {
        padding-top: 24px;
    }
}

/* Keep the mobile insights title and its action on the same row. */
@media (max-width: 767px) {
    .rr-news .rr-section__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 16px;
        row-gap: 0;
    }

    .rr-main .rr-news .rr-section__title {
        width: 100%;
        max-width: 220px;
        min-width: 0;
        font-size: 22px;
        line-height: 1.15;
    }

    .rr-news .rr-section__head .rr-btn {
        justify-self: end;
        align-self: center;
        max-width: 110px;
        margin: 0;
    }
}

/* Mobile announcement header and cards, matching the compact reference. */
@media (max-width: 767px) {
    /* Remove the combined section padding between insights and announcements. */

    .rr-news + .rr-happening {
        padding-top: 0;
    }

    .rr-happening .rr-section__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0 16px;
    }

    .rr-main .rr-happening .rr-section__title {
        width: 100%;
        max-width: clamp(185px, 55vw, 220px);
        min-width: 0;
        font-size: clamp(20px, 5.8vw, 24px);
        line-height: 1.15;
    }

    .rr-happening .rr-section__head .rr-btn {
        justify-self: end;
        align-self: center;
        max-width: 110px;
        margin: 0;
    }

    .rr-happening__grid {
        gap: 16px;
    }

    .rr-happening-card {
        border-radius: 20px;
    }

    .rr-happening-card__media {
        position: relative;
        flex: none;
        height: auto;
        min-height: 0;
        aspect-ratio: 17 / 10;
        overflow: hidden;
    }

        .rr-happening-card__media img {
            position: absolute;
            inset: 0;
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .rr-happening-card__body {
        min-height: 260px;
        padding: 24px;
    }

    .rr-main .rr-happening-card__title {
        font-size: 18px;
        line-height: 1.2;
    }

    .rr-happening-card__text {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.25;
    }

    .rr-happening-card__footer {
        gap: 12px;
        padding-top: 32px;
    }

        .rr-happening-card__footer .rr-btn {
            min-height: 42px;
            font-size: 14px;
        }
}

/* Mobile Join Rouse card: roomy content and naturally sized buttons. */
@media (max-width: 767px) {
    .rr-careers__banner {
        border-radius: 20px;
    }

    .rr-careers__content {
        width: 100%;
        padding: 40px;
    }

    .rr-main .rr-careers__title {
        font-size: 24px;
        line-height: 1.2;
    }

    .rr-main .rr-careers__text {
        max-width: none;
        margin-top: 16px;
        font-size: 20px;
        line-height: 1.2;
    }

        .rr-main .rr-careers__text p {
            font-size: inherit;
            line-height: inherit;
        }

    .rr-careers__actions {
        align-items: flex-start;
        gap: 16px;
        margin-top: 64px;
    }

    .rr-main .rr-careers__actions .rr-btn {
        flex: 0 1 auto;
        min-width: 0;
        min-height: 42px;
        padding: 10px 12px !important;
        border-radius: 10px;
        font-size: 16px;
    }
}
