/* Rich Text */
.rich-text .rich-text__content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--c-body, #383838);
}

.rich-text--narrow .rich-text__content {
    max-width: 820px;
}

.rich-text .rich-text__content > :first-child {
    margin-top: 0;
}

.rich-text .rich-text__content > :last-child {
    margin-bottom: 0;
}

.rich-text .rich-text__content p {
    margin: 0 0 1.25em;
}

/* Headings */
.rich-text .rich-text__content h1,
.rich-text .rich-text__content h2,
.rich-text .rich-text__content h3,
.rich-text .rich-text__content h4,
.rich-text .rich-text__content h5,
.rich-text .rich-text__content h6 {
    color: var(--c-ink, #1c1a1b);
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    font-weight: 700;
}

.rich-text .rich-text__content h1 { font-size: 2.25rem; }
.rich-text .rich-text__content h2 { font-size: 1.875rem; }
.rich-text .rich-text__content h3 { font-size: 1.5rem; }
.rich-text .rich-text__content h4 { font-size: 1.25rem; }
.rich-text .rich-text__content h5 { font-size: 1.125rem; }
.rich-text .rich-text__content h6 { font-size: 1rem; }

/* Lists: tick markers on unordered lists */
.rich-text .rich-text__content ul,
.rich-text .rich-text__content ol {
    margin: 0 0 1.25em;
    padding-left: 1.5em;
}

.rich-text .rich-text__content li {
    margin-bottom: 0.5em;
}

.rich-text .rich-text__content ul {
    list-style: none;
    padding-left: 0;
}

.rich-text .rich-text__content ul > li {
    position: relative;
    padding-left: 32px;
}

.rich-text .rich-text__content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--c-primary, #b72025);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rich-text .rich-text__content ul ul > li::before {
    width: 8px;
    height: 8px;
    top: 0.65em;
    left: 6px;
    -webkit-mask: none;
    mask: none;
}

.rich-text .rich-text__content ol {
    list-style: decimal;
}

/* Blockquotes */
.rich-text .rich-text__content blockquote {
    margin: 1.75em 0;
    padding: 8px 0 8px 24px;
    border-left: 4px solid var(--c-primary, #b72025);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--c-ink, #1c1a1b);
}

.rich-text .rich-text__content blockquote p:last-child {
    margin-bottom: 0;
}

.rich-text .rich-text__content blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.9375rem;
    font-style: normal;
    color: var(--c-muted, #645050);
}

/* Media */
.rich-text .rich-text__content img {
    max-width: 100%;
    height: auto;
}

.rich-text .rich-text__content figure {
    margin: 1.5em 0;
}

.rich-text .rich-text__content figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--c-muted, #645050);
}

.rich-text .rich-text__content iframe,
.rich-text .rich-text__content video {
    max-width: 100%;
}

.rich-text .rich-text__content .wp-block-embed__wrapper,
.rich-text .rich-text__content .wp-block-embed {
    max-width: 100%;
}

/* Tables */
.rich-text .rich-text__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    font-size: 0.95rem;
}

.rich-text .rich-text__content th,
.rich-text .rich-text__content td {
    padding: 12px 14px;
    border: 1px solid var(--c-border, #e3dfdf);
    text-align: left;
    vertical-align: top;
}

.rich-text .rich-text__content th {
    background: var(--c-surface-alt, #f4f4f4);
    color: var(--c-ink, #1c1a1b);
    font-weight: 700;
}

.rich-text .rich-text__content a {
    color: var(--c-primary, #b72025);
    text-decoration: underline;
}

.rich-text .rich-text__content a:hover {
    color: var(--c-primary-dark, #842124);
}

.rich-text .rich-text__content hr {
    border: 0;
    border-top: 1px solid var(--c-border, #e3dfdf);
    margin: 2em 0;
}

/* Imported GenerateBlocks markup */
.rich-text .rich-text__content .gb-container {
    display: block;
    margin-bottom: 1.5em;
}

.rich-text .rich-text__content .gb-container > :last-child {
    margin-bottom: 0;
}

.rich-text .rich-text__content .gb-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0 0 1.5em;
}

.rich-text .rich-text__content .gb-grid-column {
    flex: 1 1 280px;
    min-width: 0;
    box-sizing: border-box;
}

.rich-text .rich-text__content .gb-grid-column > .gb-container {
    height: 100%;
}

.rich-text .rich-text__content .gb-headline {
    color: var(--c-ink, #1c1a1b);
    line-height: 1.25;
    margin: 1.2em 0 0.5em;
    font-weight: 700;
}

.rich-text .rich-text__content .gb-headline:first-child {
    margin-top: 0;
}

.rich-text .rich-text__content p.gb-headline,
.rich-text .rich-text__content .gb-text {
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

.rich-text .rich-text__content .gb-image,
.rich-text .rich-text__content .gb-media,
.rich-text .rich-text__content .gb-block-image img {
    max-width: 100%;
    height: auto;
}

.rich-text .rich-text__content .gb-shape {
    display: none;
}

.rich-text .rich-text__content .gb-button-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 1.25em;
}

.rich-text .rich-text__content .gb-button,
.rich-text .rich-text__content a.gb-button {
    display: inline-block;
    background: var(--c-primary, #b72025);
    color: var(--c-on-primary, #ffffff);
    padding: 16px 26px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.2s ease;
}

.rich-text .rich-text__content .gb-button:hover,
.rich-text .rich-text__content a.gb-button:hover {
    background: var(--c-primary-dark, #842124);
    color: var(--c-on-primary, #ffffff);
}

@media (max-width: 640px) {
    .rich-text .rich-text__content h1 { font-size: 1.875rem; }
    .rich-text .rich-text__content h2 { font-size: 1.5rem; }
    .rich-text .rich-text__content h3 { font-size: 1.3rem; }

    .rich-text .rich-text__content .gb-grid-wrapper {
        gap: 20px;
    }

    .rich-text .rich-text__content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
