.brbetano-breadcrumbs {
    padding-block: 20px;
    color: var(--brbetano-color-muted);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.brbetano-breadcrumbs a {
    color: #ad3b0b;
    text-decoration: none;
}

.brbetano-breadcrumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.brbetano-breadcrumbs .breadcrumb_last {
    color: var(--brbetano-color-text);
    font-weight: 600;
}

.brbetano-rich-text {
    color: #343d48;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.brbetano-content-section {
    position: relative;
    width: 100%;
    max-width: none;
    margin-block: 0;
    margin-inline: 0;
    padding-block: 36px;
    padding-inline: max(var(--brbetano-container-gutter), calc((100% - var(--brbetano-container-width)) / 2));
    border: 0;
    border-top: 1px solid #dce2e8;
    border-radius: 28px 28px 0 0;
    background: var(--brbetano-color-surface);
    box-shadow: 0 -10px 24px -16px rgb(22 36 48 / 24%);
}

.brbetano-content-section:nth-of-type(even) {
    background: #edf1f5;
}

.brbetano-content-section + .brbetano-content-section {
    margin-top: -12px;
}

.brbetano-content-section::before {
    position: absolute;
    top: 0;
    left: max(var(--brbetano-container-gutter), calc((100% - var(--brbetano-container-width)) / 2));
    width: 96px;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--brbetano-color-primary), #ffad70 60%, transparent);
    content: "";
    pointer-events: none;
}

.brbetano-content-block {
    margin-block: 20px;
}

.brbetano-main > :is(.brbetano-content-section, .brbetano-content-block):first-child {
    margin-top: 32px;
}

.brbetano-main > .brbetano-content-block:last-child {
    margin-bottom: 48px;
}

.brbetano-main > .brbetano-content-section:last-child {
    margin-bottom: 0;
    padding-bottom: 52px;
}

.brbetano-rich-text .wp-block-group__inner-container,
.brbetano-rich-text .is-layout-constrained > :where(:not(.alignleft):not(.alignright)) {
    max-width: none;
}

.brbetano-rich-text :where(h1, h2, h3, h4, h5, h6),
.brbetano-rich-text:is(h1, h2, h3, h4, h5, h6) {
    color: var(--brbetano-color-text);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-wrap: pretty;
    scroll-margin-top: calc(var(--brbetano-header-height) + var(--brbetano-admin-height) + 24px);
}

.brbetano-rich-text :where(h1),
.brbetano-rich-text:is(h1) {
    margin-block: 0 20px;
    font-size: clamp(28px, 3vw, 40px);
}

.brbetano-rich-text :where(h2),
.brbetano-rich-text:is(h2) {
    margin-block: 32px 16px;
    font-size: clamp(24px, 2.2vw, 30px);
}

.brbetano-rich-text :where(h3),
.brbetano-rich-text:is(h3) {
    margin-block: 28px 14px;
    font-size: clamp(21px, 1.8vw, 24px);
}

.brbetano-rich-text :where(h4, h5, h6),
.brbetano-rich-text:is(h4, h5, h6) {
    margin-block: 24px 12px;
    font-size: 18px;
}

.brbetano-rich-text :where(p) {
    margin-block: 0 16px;
}

.brbetano-rich-text > :first-child,
.brbetano-rich-text .wp-block-group__inner-container > :first-child {
    margin-top: 0;
}

.brbetano-rich-text > :last-child,
.brbetano-rich-text .wp-block-group__inner-container > :last-child {
    margin-bottom: 0;
}

.brbetano-rich-text :where(p:empty) {
    display: none;
}

.brbetano-rich-text :where(a) {
    color: #ad3b0b;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.brbetano-rich-text :where(a:hover) {
    color: #7e2a08;
}

.brbetano-rich-text :where(strong, b) {
    color: var(--brbetano-color-text);
    font-weight: 700;
}

.brbetano-rich-text :where(ul, ol):not(.schema-how-to-steps),
.brbetano-rich-text:is(ul, ol):not(.schema-how-to-steps) {
    margin-block: 18px 22px;
    padding-inline-start: 26px;
}

.brbetano-rich-text :where(ul):not(.schema-how-to-steps),
.brbetano-rich-text:is(ul) {
    list-style-type: disc;
}

.brbetano-rich-text :where(li) {
    padding-inline-start: 5px;
}

.brbetano-rich-text :where(li + li) {
    margin-top: 9px;
}

.brbetano-rich-text :where(li)::marker,
.brbetano-rich-text:is(ul, ol) > li::marker {
    color: #c94a14;
    font-weight: 750;
}

.brbetano-rich-text :where(li > ul, li > ol) {
    margin-block: 10px 0;
}

.brbetano-rich-text :where(figure, .wp-block-image) {
    max-width: 100%;
    margin: 24px 0;
}

.brbetano-rich-text :where(img, video) {
    height: auto;
    border-radius: 12px;
}

.brbetano-rich-text :where(.aligncenter) {
    margin-inline: auto;
    text-align: center;
}

.brbetano-rich-text :where(figcaption, caption) {
    padding-top: 10px;
    color: var(--brbetano-color-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.brbetano-rich-text :where(.wp-block-table),
.brbetano-rich-text:is(.wp-block-table) {
    overflow-x: auto;
    max-width: 100%;
    margin-block: 24px;
    border: 1px solid #dce2e7;
    border-radius: 12px;
    background: #ffffff;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #c8cfd7 #f5f6f7;
}

.brbetano-rich-text table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: auto;
    color: #343d48;
    font-size: 14px;
    line-height: 1.6;
}

.brbetano-rich-text table.has-fixed-layout {
    table-layout: auto;
}

.brbetano-rich-text table thead {
    border-bottom: 0;
}

.brbetano-rich-text table :is(th, td) {
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #e7ebef;
    text-align: start;
    vertical-align: top;
}

.brbetano-rich-text table th {
    background: #fff1e8;
    color: #80330f;
    font-weight: 750;
}

.brbetano-rich-text :where(tbody tr:nth-child(even) td) {
    background: #f7f8fa;
}

.brbetano-rich-text :where(tbody tr:last-child td, tfoot tr:last-child td) {
    border-bottom: 0;
}

.brbetano-rich-text :where(.wp-block-table figcaption) {
    margin: 0;
    padding: 12px 18px;
    border-top: 1px solid #e7ebef;
}

.brbetano-rich-text :where(blockquote) {
    margin: 24px 0;
    padding: 18px 22px;
    border: 0;
    border-inline-start: 3px solid var(--brbetano-color-primary);
    border-radius: 0 10px 10px 0;
    background: #fff5ed;
}

.brbetano-rich-text :where(pre) {
    overflow-x: auto;
    max-width: 100%;
    padding: 18px;
    border: 1px solid var(--brbetano-color-border);
    border-radius: 10px;
    background: #f7f8fa;
    font-size: 14px;
}

.brbetano-rich-text :where(hr) {
    margin-block: 28px;
    border: 0;
    border-top: 1px solid var(--brbetano-color-border);
}

.brbetano-rich-text :where(.schema-faq),
.brbetano-rich-text:is(.schema-faq) {
    display: grid;
    gap: 12px;
    margin-block: 20px;
}

.brbetano-rich-text :where(.schema-faq-section) {
    overflow: hidden;
    margin: 0;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: #ffffff;
}

.brbetano-rich-text .schema-faq-question {
    position: relative;
    display: block;
    margin: 0;
    padding: 18px 52px 18px 20px;
    color: var(--brbetano-color-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
}

.brbetano-rich-text summary.schema-faq-question {
    cursor: pointer;
}

.brbetano-rich-text summary.schema-faq-question::-webkit-details-marker {
    display: none;
}

.brbetano-rich-text summary.schema-faq-question::after {
    position: absolute;
    top: 19px;
    right: 20px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 6px;
    background: #fff0e7;
    color: #ad3b0b;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    content: "+";
}

.brbetano-rich-text details[open] > summary.schema-faq-question {
    background: #fff8f3;
}

.brbetano-rich-text details[open] > summary.schema-faq-question::after {
    content: "−";
}

.brbetano-rich-text .schema-faq-answer {
    margin: 0;
    padding: 16px 20px 20px;
    border-top: 1px solid #edf0f3;
    color: #4a5461;
    font-size: 15px;
    line-height: 1.75;
}

.brbetano-rich-text .schema-how-to-description {
    margin-bottom: 16px;
}

.brbetano-rich-text .schema-how-to-steps,
.brbetano-rich-text:is(.schema-how-to-steps) {
    display: grid;
    gap: 12px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
    counter-reset: brbetano-steps;
}

.brbetano-rich-text .schema-how-to-step {
    position: relative;
    min-height: 64px;
    margin: 0;
    padding: 18px 20px 18px 64px;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    background: #fafbfc;
    counter-increment: brbetano-steps;
    scroll-margin-top: calc(var(--brbetano-header-height) + var(--brbetano-admin-height) + 24px);
}

.brbetano-rich-text .schema-how-to-step::before {
    position: absolute;
    top: 16px;
    left: 16px;
    display: grid;
    min-width: 32px;
    height: 32px;
    padding-inline: 5px;
    place-items: center;
    border: 1px solid #ffd6bd;
    border-radius: 8px;
    background: #fff0e7;
    color: #a7390b;
    font-size: 15px;
    font-weight: 750;
    content: counter(brbetano-steps);
}

.brbetano-rich-text .schema-how-to-step-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.brbetano-rich-text .schema-how-to-step-text {
    margin: 8px 0 0;
    color: #4a5461;
    font-size: 15px;
}

@media (max-width: 600px) {
    .brbetano-breadcrumbs {
        padding-block: 16px;
        font-size: 12px;
    }

    .brbetano-rich-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .brbetano-content-section {
        padding-block: 28px;
        border-radius: 20px 20px 0 0;
    }

    .brbetano-content-section + .brbetano-content-section {
        margin-top: -10px;
    }

    .brbetano-content-section::before {
        width: 64px;
    }

    .brbetano-main > :is(.brbetano-content-section, .brbetano-content-block):first-child {
        margin-top: 20px;
    }

    .brbetano-main > .brbetano-content-block:last-child {
        margin-bottom: 36px;
    }

    .brbetano-main > .brbetano-content-section:last-child {
        padding-bottom: 40px;
    }

    .brbetano-rich-text table :is(th, td) {
        padding: 12px;
        font-size: 13px;
    }

    .brbetano-rich-text .brbetano-table-wide table,
    .brbetano-rich-text.brbetano-table-wide table {
        min-width: 680px;
    }

    .brbetano-rich-text .schema-faq-question {
        padding: 16px 46px 16px 16px;
        font-size: 15px;
    }

    .brbetano-rich-text summary.schema-faq-question::after {
        top: 17px;
        right: 14px;
    }

    .brbetano-rich-text .schema-faq-answer {
        padding: 14px 16px 16px;
        font-size: 14px;
    }

    .brbetano-rich-text .schema-how-to-step {
        padding: 16px 14px 16px 56px;
    }

    .brbetano-rich-text .schema-how-to-step::before {
        top: 16px;
        left: 12px;
        min-width: 30px;
        height: 30px;
    }

    .brbetano-rich-text .schema-how-to-step-name,
    .brbetano-rich-text .schema-how-to-step-text {
        font-size: 14px;
    }
}
