:root {
    --cms-block-color-accent: #0f766e;
    --cms-block-color-border: #d6d3d1;
    --cms-block-color-muted: #525252;
    --cms-block-color-on-accent: #fff;
    --cms-block-color-surface: #fafafa;
    --cms-block-color-surface-muted: #f7f7f3;
    --cms-block-color-surface-plain: #fff;
    --cms-color-brand-strong: #c0000c;
    --cms-color-neutral-accent: #0f766e;
    --cms-color-support: #15769c;
    --cms-color-support-light: #d9eef8;
    --cms-color-neutral-soft: #f7f7f3;
    --cms-color-muted-text: #525252;
    --cms-color-muted-border: #d6d3d1;
    --cms-color-muted-surface: #fafafa;
    --cms-color-outline-blue: #8ec5dc;
    --cms-color-event-red-soft: #f4dadd;
    --cms-color-event-blue-soft: #d9e7f0;
    --cms-color-icon-card-light: #e8f6fb;
    --cms-color-warning: #c9a900;
    --cms-color-on-warning: #221b00;
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

.cms-rich-text {
    line-height: 1.65;
}

.cms-blocks {
    display: grid;
    gap: 48px;
    margin: 48px 0;
}

.cms-block {
    width: 100%;
}

.cms-block__title,
.cms-cta__title,
.cms-teaser__title {
    margin: 0 0 16px;
    line-height: 1.2;
}

.cms-text-image {
    display: grid;
    gap: 28px;
    align-items: center;
}

.cms-text-image--left,
.cms-text-image--right {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
}

.cms-text-image--left .cms-text-image__media,
.cms-text-image--top .cms-text-image__media {
    order: -1;
}

.cms-text-image--bottom .cms-text-image__media {
    order: 2;
}

.cms-text-image__media,
.cms-gallery__item {
    margin: 0;
}

.cms-text-image__media img,
.cms-gallery__item img,
.cms-teaser__image {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.cms-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.cms-quote {
    margin: 0;
    padding: 28px;
    border-left: 4px solid var(--cms-block-color-accent);
    background: var(--cms-block-color-surface-muted);
}

.cms-quote__text {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.45;
}

.cms-quote__source {
    margin-top: 14px;
    color: var(--cms-block-color-muted);
}

.cms-cta {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    border: 1px solid var(--cms-block-color-border);
    border-radius: 8px;
    background: var(--cms-block-color-surface);
}

.cms-cta__text {
    margin: 0;
    line-height: 1.5;
}

.cms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 6px;
    background: var(--cms-block-color-accent);
    color: var(--cms-block-color-on-accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cms-teasers {
    display: grid;
    gap: 18px;
}

.cms-teasers--cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cms-teaser {
    overflow: hidden;
    border: 1px solid var(--cms-block-color-border);
    border-radius: 8px;
    background: var(--cms-block-color-surface-plain);
}

.cms-teaser__body {
    padding: 18px;
}

.cms-teaser__title {
    font-size: 1.1rem;
}

.cms-teaser__title a {
    color: inherit;
}

.cms-teaser__description {
    margin: 0;
    color: var(--cms-block-color-muted);
    line-height: 1.5;
}

@media (max-width: 760px) {
    .cms-text-image--left,
    .cms-text-image--right {
        grid-template-columns: 1fr;
    }

    .cms-text-image--right .cms-text-image__media {
        order: -1;
    }

    .cms-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Reusable CMS sections */
.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.cms-block--hero_image_block {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.cms-block--hero_image_block:first-child {
    margin-top: -48px;
}

.cms-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 430px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--site-color-on-surface) 0%, var(--site-color-inverse-surface) 100%);
    color: var(--site-color-white);
}

.cms-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.18));
    content: "";
    z-index: 1;
}

.cms-hero--image {
    background-image: var(--cms-hero-image);
    background-position: center;
    background-size: cover;
}

.cms-hero__content {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 80px));
    margin: 0 auto;
}

.cms-hero__title {
    max-width: 660px;
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.04;
}

.cms-hero__text {
    max-width: 720px;
    margin: 26px 0 0;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.55;
}

.cms-hero__actions,
.cms-section__header {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.cms-hero__actions {
    margin-top: 32px;
}

.cms-action-button {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cms-action-button:hover {
    transform: translateY(-1px);
}

.cms-action-button--primary {
    background: var(--site-color-primary-container);
    color: var(--site-color-white);
    box-shadow: 0 12px 28px rgba(227, 6, 19, 0.24);
}

.cms-action-button--primary:hover {
    background: var(--site-color-primary);
}

.cms-action-button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.22);
    color: var(--site-color-white);
    backdrop-filter: blur(8px);
}

.cms-action-button--outline {
    width: 100%;
    min-height: 42px;
    border: 2px solid var(--cms-color-outline-blue);
    background: var(--site-color-white);
    color: var(--cms-color-support);
}

.cms-action-button--light {
    width: 100%;
    margin-top: auto;
    background: var(--site-color-white);
    color: var(--cms-color-brand-strong);
}

.cms-section {
    margin: 72px 0;
}

.cms-section__intro,
.cms-section__header {
    margin-bottom: 28px;
}

.cms-section__intro--split,
.cms-section__header {
    display: flex;
    justify-content: space-between;
    gap: 36px;
}

.cms-section__intro--center {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.cms-section-label {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--cms-color-support-light);
    color: var(--cms-color-support);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cms-section__title,
.cms-highlight__title {
    margin: 0;
    color: var(--site-color-heading);
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.1;
}

.cms-section__text,
.cms-highlight__text {
    max-width: 520px;
    margin: 12px 0 0;
    color: var(--site-color-on-surface-variant);
    font-size: 1.02rem;
    line-height: 1.55;
}

.cms-section-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--cms-color-brand-strong);
    font-weight: 800;
    text-decoration: none;
}

.cms-icon-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.cms-icon-card {
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 112px;
    padding: 26px;
    border: 1px solid var(--site-color-outline-variant);
    border-radius: 12px;
    background: var(--site-color-white);
    box-shadow: 0 12px 30px rgba(25, 28, 29, 0.06);
}

.cms-icon-card__icon,
.cms-link-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: var(--site-color-primary-container);
    color: var(--site-color-white);
    font-size: 2rem;
}

.cms-icon-card--blue .cms-icon-card__icon {
    background: var(--cms-color-support);
}

.cms-icon-card--yellow .cms-icon-card__icon {
    background: var(--cms-color-warning);
    color: var(--cms-color-on-warning);
}

.cms-icon-card h3,
.cms-event-card h3,
.cms-callout-card h3 {
    margin: 0;
    color: var(--site-color-on-surface);
    font-size: 1.12rem;
}

.cms-icon-card p,
.cms-event-card p,
.cms-callout-card p {
    margin: 6px 0 0;
    color: var(--site-color-on-surface-variant);
    line-height: 1.45;
}

.cms-event-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cms-event-card,
.cms-callout-card {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(25, 28, 29, 0.12);
}

.cms-event-card {
    border: 1px solid var(--site-color-outline-variant);
    background: var(--site-color-white);
}

.cms-event-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    background: var(--cms-color-event-red-soft);
    color: var(--cms-color-brand-strong);
}

.cms-event-card--blue-soft .cms-event-card__media {
    background: var(--cms-color-event-blue-soft);
    color: var(--cms-color-support);
}

.cms-event-card__media > .material-symbols-outlined {
    font-size: 3.375rem;
}

.cms-event-card__label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--cms-color-brand-strong);
    color: var(--site-color-white);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cms-event-card__body {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.cms-event-card__body p {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.9rem;
}

.cms-event-card__body .material-symbols-outlined {
    color: var(--cms-color-brand-strong);
    font-size: 1.125rem;
}

.cms-callout-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
    background: var(--cms-color-brand-strong);
    color: var(--site-color-white);
}

.cms-callout-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.75rem;
}

.cms-callout-card h3,
.cms-callout-card p {
    color: var(--site-color-white);
}

.cms-callout-card p {
    margin-bottom: 28px;
}

.cms-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 56px;
    align-items: center;
    padding: 48px;
    border: 1px solid var(--site-color-outline-variant);
    border-radius: 16px;
    background: var(--site-color-white);
    box-shadow: 0 12px 34px rgba(25, 28, 29, 0.06);
}

.cms-highlight__items {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.cms-highlight__items li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--site-color-on-surface);
    font-weight: 700;
}

.cms-highlight__items .material-symbols-outlined {
    color: var(--site-color-primary-container);
    font-size: 1.25rem;
}

.cms-highlight__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cms-highlight__visual img {
    display: block;
    width: min(100%, 330px);
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(25, 28, 29, 0.18);
}

.cms-highlight__fallback {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 330px);
    aspect-ratio: 1;
    border: 9px solid var(--cms-color-brand-strong);
    border-radius: 999px;
    color: var(--cms-color-brand-strong);
    box-shadow: 0 20px 50px rgba(25, 28, 29, 0.16);
}

.cms-highlight__main-icon {
    font-size: 7.375rem;
}

.cms-link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 22px;
}

.cms-link-card {
    display: grid;
    place-items: center;
    min-height: 126px;
    padding: 22px;
    border: 1px solid var(--site-color-outline-variant);
    border-radius: 12px;
    background: var(--site-color-white);
    color: var(--site-color-on-surface);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(25, 28, 29, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.cms-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(25, 28, 29, 0.1);
}

.cms-link-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    background: var(--cms-color-icon-card-light);
    color: var(--cms-color-support);
    font-size: 1.75rem;
}

.cms-block--snippet_base_carousel_block {
    min-width: 0;
}

.cms-carousel .glide__slide {
    height: auto;
}

.cms-carousel__item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 225 / 205;
    padding: 20px;
    border: 1px solid var(--cms-color-brand-strong);
    background: var(--site-color-white, #fff);
    color: var(--site-color-on-surface, inherit);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.cms-carousel__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 960px) {
    .cms-hero {
        min-height: 420px;
    }

    .cms-hero__content {
        width: min(100% - 48px, 1120px);
    }

    .cms-section__intro--split,
    .cms-section__header,
    .cms-highlight {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .cms-icon-cards,
    .cms-event-cards {
        grid-template-columns: 1fr;
    }

    .cms-highlight {
        gap: 34px;
    }
}

@media (max-width: 640px) {
    main {
        width: min(100% - 32px, 1120px);
    }

    .cms-blocks {
        gap: 40px;
        margin: 40px 0;
    }

    .cms-block--hero_image_block:first-child {
        margin-top: -40px;
    }

    .cms-hero {
        min-height: 380px;
    }

    .cms-hero__content {
        width: min(100% - 32px, 1120px);
    }

    .cms-hero__actions,
    .cms-hero__actions .cms-action-button,
    .cms-action-button--primary,
    .cms-action-button--secondary {
        width: 100%;
    }

    .cms-section {
        margin: 52px 0;
    }

    .cms-icon-card,
    .cms-highlight,
    .cms-callout-card {
        padding: 24px;
    }

    .cms-highlight__fallback {
        width: min(100%, 250px);
    }

    .cms-highlight__main-icon {
        font-size: 5.5rem;
    }
}
