.main-content {
    min-width: 0;
    background: var(--bg-page);
    color: var(--text-primary);
}
.cms-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 64px 20px 80px;
}
.cms-rich-content {
    min-width: 0;
    font-size: 17px;
    line-height: 1.8;
}
.cms-rich-content > :first-child { margin-top: 0; }
.cms-rich-content > :last-child { margin-bottom: 0; }
.cms-rich-content h1 { font-size: 40px; line-height: 1.15; font-weight: 800; margin: 0.6em 0 0.4em; letter-spacing: 0; }
.cms-rich-content h2 { font-size: 30px; line-height: 1.2; font-weight: 800; margin: 0.8em 0 0.4em; letter-spacing: 0; }
.cms-rich-content h3 { font-size: 23px; line-height: 1.25; font-weight: 700; margin: 0.7em 0 0.35em; letter-spacing: 0; }
.cms-rich-content h4 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 0.7em 0 0.35em; letter-spacing: 0; }
.cms-rich-content p { max-width: 70ch; margin: 0 0 18px; color: var(--text-secondary); }
.cms-rich-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 18px; }
.cms-rich-content ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 18px; }
.cms-rich-content li { margin: 0.25em 0; }
.cms-rich-content a:not(.cms-button):not(.about-story__button):not(.faburs-faq-preview__button) {
    color: var(--color-first);
    text-underline-offset: 3px;
}
.cms-rich-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    margin: 34px 0;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-surface-sunken);
}
.cms-rich-content blockquote {
    border-left: 3px solid var(--color-first);
    padding-left: 14px;
    margin: 14px 0;
    font-style: italic;
    color: var(--text-secondary);
}
.cms-hero {
    padding: clamp(32px, 7vw, 76px) 0;
    border-bottom: 1px solid var(--border-subtle, var(--gray-200));
}
.cms-hero h1 {
    font-size: clamp(32px, 6vw, 64px);
    line-height: 1.05;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: 0;
}
.cms-hero p,
.cms-section p,
.cms-faq p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 14px;
}
.cms-section {
    padding: 34px 0;
    border-bottom: 1px solid var(--border-subtle, var(--gray-200));
}
.cms-section h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: 0;
}
.cms-image {
    margin: 34px 0;
}
.cms-image img {
    display: block;
    width: 100%;
    border-radius: 14px;
}
.cms-image figcaption {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 8px;
}
.cms-actions {
    padding: 22px 0;
}
.cms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9999px;
    background: var(--color-first);
    color: var(--text-inverse);
    text-decoration: none;
    font-weight: 800;
}
.cms-faq {
    border: 1px solid var(--border-subtle, var(--gray-200));
    border-radius: 12px;
    padding: 16px 18px;
    margin: 12px 0;
    background: var(--card-bg);
}
.cms-faq summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 10px;
}
.cms-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.cms-contact li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-subtle, var(--gray-200));
    border-radius: 10px;
}
.cms-contact strong {
    color: var(--text-tertiary);
}
.cms-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    padding: 34px 0;
    align-items: start;
}
.cms-split--image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}
.cms-split__label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-first);
}
.cms-split__text h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 800;
}
.cms-split__text p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 14px;
}
.cms-split__media img {
    display: block;
    width: 100%;
    border-radius: 14px;
}
@media (max-width: 640px) {
    .cms-split, .cms-split--image {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.cms-cardgrid {
    padding: 34px 0;
}
.cms-cardgrid__grid {
    display: grid;
    grid-template-columns: repeat(var(--cms-cardgrid-count, 3), minmax(0, 1fr));
    gap: 16px;
}
.cms-cardgrid__card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
}
.cms-cardgrid__number {
    display: block;
    margin-bottom: 20px;
    color: var(--color-first);
    font-family: var(--fab-font-mono);
    font-size: 13px;
}
.cms-cardgrid__card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}
.cms-cardgrid__card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}
@media (max-width: 640px) {
    .cms-cardgrid__grid {
        grid-template-columns: 1fr;
    }
}
.cms-align-center {
    text-align: center;
}
.cms-align-right {
    text-align: right;
}
.cms-align-center p {
    margin-left: auto;
    margin-right: auto;
}
.cms-align-right p {
    margin-left: auto;
    margin-right: 0;
}
/* A layout-field heading/paragraph can carry cms-align-center/right
   directly (not just on a wrapper ancestor) — center/right its own
   max-width-constrained box too, not just the text inside it.
   The class is doubled to outrank a page's own CSS (e.g. a rule like
   ".about-story__hero h1 { margin: 0 }") which is equal-specificity
   and loads after this shared stylesheet, so would otherwise win. */
h1.cms-align-center.cms-align-center, h2.cms-align-center.cms-align-center, h3.cms-align-center.cms-align-center,
h4.cms-align-center.cms-align-center, h5.cms-align-center.cms-align-center, h6.cms-align-center.cms-align-center,
p.cms-align-center.cms-align-center {
    margin-left: auto;
    margin-right: auto;
}
h1.cms-align-right.cms-align-right, h2.cms-align-right.cms-align-right, h3.cms-align-right.cms-align-right,
h4.cms-align-right.cms-align-right, h5.cms-align-right.cms-align-right, h6.cms-align-right.cms-align-right,
p.cms-align-right.cms-align-right {
    margin-left: auto;
    margin-right: 0;
}
/* A layout-field button (an inline-flex <a>/<button>) needs its own
   display switched to a block-level flex box before margin:auto can
   center it — width:fit-content keeps it from stretching full-width. */
a.cms-align-center.cms-align-center, button.cms-align-center.cms-align-center {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
a.cms-align-right.cms-align-right, button.cms-align-right.cms-align-right {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
}
.cms-products {
    padding: 34px 0;
}
.cms-products > h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: 0;
}
.cms-products__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.cms-products .fcard__img {
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
}
.cms-products .fcard__title-link,
.cms-products .fcard__media-link {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 640px) {
    .cms-contact li { grid-template-columns: 1fr; }
    .cms-page { padding: 36px 16px 52px; }
    .cms-rich-content { font-size: 16px; }
    .cms-rich-content h1 { font-size: 34px; }
    .cms-rich-content h2 { font-size: 26px; }
    .cms-rich-content img { margin: 24px 0; }
    .cms-section h2 { font-size: 24px; }
}
@media (min-width: 640px) {
    .cms-products__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .cms-products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
