/* =====================================================================
 * v2.6.0: section system public defaults
 *
 * Loads on both admin and public sides so seeded sections render with
 * reasonable defaults. Themes can override every visual choice through
 * the CSS custom properties at the top.
 *
 * The selectors use the cms- BEM prefix and never reach into the rest of
 * the page, so this file is safe to drop into any client conversion.
 * ===================================================================== */

:root {
    --cms-section-padding-y: 4rem;
    --cms-section-padding-x: clamp(1rem, 4vw, 3rem);
    --cms-section-max-width: 1200px;
    --cms-section-bg: transparent;
    --cms-section-fg: inherit;
    --cms-section-accent: #c9a84c;
    --cms-section-muted: rgba(255, 255, 255, 0.55);
    --cms-section-surface: #161616;
    --cms-section-line: rgba(255, 255, 255, 0.1);
    --cms-section-radius: 4px;
    --cms-section-heading-font: var(
        --font-heading,
        "Playfair Display",
        Georgia,
        serif
    );
    --cms-section-body-font: var(
        --font-body,
        "DM Sans",
        system-ui,
        -apple-system,
        sans-serif
    );
}

/* ---- Shared section primitives ---------------------------------------- */

.cms-section {
    background: var(--cms-section-bg);
    color: var(--cms-section-fg);
    padding: var(--cms-section-padding-y) 0;
    font-family: var(--cms-section-body-font);
}

.cms-section__inner {
    max-width: var(--cms-section-max-width);
    margin: 0 auto;
    padding: 0 var(--cms-section-padding-x);
}

.cms-section__eyebrow {
    color: var(--cms-section-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.cms-section__heading {
    font-family: var(--cms-section-heading-font);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.cms-section__sub {
    color: var(--cms-section-muted);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    max-width: 640px;
}

/* ---- cta-band ---------------------------------------------------------
 * Two-column layout on wide screens, stacks on narrow. */

.cms-section--cta-band {
    background: var(--cms-section-surface);
}

.cms-section--cta-band .cms-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cms-section--cta-band .cms-section__copy {
    flex: 1 1 360px;
}

.cms-section--cta-band .cms-section__copy h2 {
    font-family: var(--cms-section-heading-font);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.cms-section--cta-band .cms-section__action {
    flex: 0 0 auto;
}

/* ---- testimonial-strip ------------------------------------------------ */

.cms-section--testimonial-strip .cms-section__inner {
    text-align: center;
    max-width: 820px;
}

/* Base quotes layout: one quote stays centered; two or more flow into a
 * calm auto-fit grid so heights are not forced equal (per the corpus
 * testimonial guidance). Public stylesheet so a rendered site shows it,
 * not only the editor. */
.cms-section--testimonial-strip .cms-section__quotes {
    display: grid;
    gap: var(--cms-grid-gap);
    grid-template-columns: 1fr;
    margin-top: 2rem;
}
.cms-section--testimonial-strip .cms-section__inner:has(.cms-section__quote-card ~ .cms-section__quote-card) {
    max-width: var(--cms-section-max-width);
    text-align: left;
}
.cms-section--testimonial-strip .cms-section__quotes:has(.cms-section__quote-card ~ .cms-section__quote-card) {
    grid-template-columns: repeat(auto-fit, minmax(var(--cms-grid-min), 1fr));
}

.cms-section--testimonial-strip .cms-section__quote {
    font-family: var(--cms-section-heading-font);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 1.5rem;
    quotes: """ """ "'" "'";
}

.cms-section--testimonial-strip .cms-section__quote::before {
    content: open-quote;
    color: var(--cms-section-accent);
    margin-right: 0.15em;
}

.cms-section--testimonial-strip .cms-section__quote::after {
    content: close-quote;
    color: var(--cms-section-accent);
    margin-left: 0.15em;
}

.cms-section--testimonial-strip .cms-section__attribution {
    color: var(--cms-section-muted);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

/* Card surface for multi-quote layouts (editorial / compact / auto-fit).
 * A single centered quote keeps no card. */
.cms-section--testimonial-strip .cms-section__quotes:has(.cms-section__quote-card ~ .cms-section__quote-card) .cms-section__quote-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--cms-section-surface);
    border: 1px solid var(--cms-section-line);
    border-radius: var(--cms-section-radius);
    margin: 0;
}
.cms-section--testimonial-strip .cms-section__quotes:has(.cms-section__quote-card ~ .cms-section__quote-card) .cms-section__quote {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-style: normal;
}
.cms-section--testimonial-strip .cms-section__quote-card:hover {
    border-color: var(--cms-section-accent);
}
.cms-section--testimonial-strip .cms-section__attribution-name {
    display: block;
    color: var(--cms-section-fg);
    font-weight: 600;
}
.cms-section--testimonial-strip .cms-section__attribution-role {
    display: block;
    color: var(--cms-section-muted);
}

/* ---- feature-grid ----------------------------------------------------- */

.cms-section--feature-grid .cms-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--cms-grid-min), 1fr));
    gap: var(--cms-grid-gap);
    margin-top: 2rem;
}

.cms-section--feature-grid .cms-section__feature {
    padding: 1.5rem;
    background: var(--cms-section-surface);
    border: 1px solid var(--cms-section-line);
    border-radius: var(--cms-section-radius);
}

/* One deliberate hover change (border, not a lift) so cards feel alive
 * without the everything-lifts slop tell. */
.cms-section--feature-grid .cms-section__feature:hover {
    border-color: var(--cms-section-accent);
}

/* The featured cell reads as the anchor of the collection. Only takes
 * effect in the featured/bento presets; harmless in the default row. */
.cms-section--feature-grid .cms-section__feature--featured {
    background: color-mix(in srgb, var(--cms-section-accent) 8%, var(--cms-section-surface));
}

.cms-section--feature-grid .cms-section__icon {
    color: var(--cms-section-accent);
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.cms-section--feature-grid .cms-section__feature-title {
    font-family: var(--cms-section-heading-font);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.cms-section--feature-grid .cms-section__feature-body {
    color: var(--cms-section-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ---- image-gallery ---------------------------------------------------- */

.cms-section--image-gallery .cms-section__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--cms-grid-min), 1fr));
    gap: var(--cms-grid-gap-tight);
    margin-top: 2rem;
}

.cms-section--image-gallery .cms-section__gallery-item {
    margin: 0;
    background: var(--cms-section-surface);
    border-radius: var(--cms-section-radius);
    overflow: hidden;
}

.cms-section--image-gallery .cms-section__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.cms-section--image-gallery .cms-section__gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    color: var(--cms-section-muted);
    font-size: 0.85rem;
    border: 1px dashed var(--cms-section-line);
}

.cms-section--image-gallery figcaption {
    padding: 0.5rem 0.75rem;
    color: var(--cms-section-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ---- faq-accordion ---------------------------------------------------- */

.cms-section--faq-accordion .cms-section__faqs {
    margin-top: 2rem;
    max-width: var(--cms-measure);
}

.cms-section--faq-accordion .cms-section__faq {
    border-bottom: 1px solid var(--cms-section-line);
    padding: 1rem 0;
}

.cms-section--faq-accordion .cms-section__faq summary {
    font-family: var(--cms-section-heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    padding-right: 2rem;
    position: relative;
}

.cms-section--faq-accordion .cms-section__faq summary::-webkit-details-marker {
    display: none;
}

.cms-section--faq-accordion .cms-section__faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--cms-section-accent);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.cms-section--faq-accordion .cms-section__faq[open] summary::after {
    transform: rotate(45deg);
}

.cms-section--faq-accordion .cms-section__faq-body {
    color: var(--cms-section-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 0.75rem;
}

/* ---- text-block ------------------------------------------------------- */

.cms-section--text-block .cms-section__inner {
    max-width: var(--cms-measure);
}

/* Optional lead paragraph: larger first line for an editorial entry. Opt
 * in by marking the first paragraph; absent, prose is unchanged. */
.cms-section--text-block .cms-section__body--lead > p:first-child {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--cms-section-fg);
}

.cms-section--text-block .cms-section__body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--cms-section-fg);
}

.cms-section--text-block .cms-section__body p {
    margin: 0 0 1rem;
}

.cms-section--text-block .cms-section__body ul,
.cms-section--text-block .cms-section__body ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.cms-section--text-block .cms-section__body a {
    color: var(--cms-section-accent);
    text-decoration: underline;
}

/* ---- quote-pull ------------------------------------------------------- */

.cms-section--quote-pull .cms-section__inner {
    max-width: 900px;
    text-align: center;
}

.cms-section--quote-pull .cms-section__pullquote {
    font-family: var(--cms-section-heading-font);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 1.25rem;
    color: var(--cms-section-fg);
    quotes: """ """;
}

.cms-section--quote-pull .cms-section__pullquote::before {
    content: open-quote;
    color: var(--cms-section-accent);
    font-size: 1.4em;
    line-height: 0;
    margin-right: 0.1em;
    vertical-align: -0.3em;
}

.cms-section--quote-pull .cms-section__pullquote::after {
    content: close-quote;
    color: var(--cms-section-accent);
    font-size: 1.4em;
    line-height: 0;
    margin-left: 0.1em;
    vertical-align: -0.3em;
}

.cms-section--quote-pull .cms-section__attribution {
    color: var(--cms-section-muted);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

/* ---- divider ---------------------------------------------------------- */

.cms-section--divider {
    padding: 2rem 0;
}

.cms-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cms-divider__line {
    flex: 1;
    height: 1px;
    background: var(--cms-section-line);
    max-width: 200px;
}

.cms-divider__label {
    color: var(--cms-section-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

/* =====================================================================
 * r11 (ADDITIVE): shared grid foundation for the addable section library
 *
 * Why this exists: the addable content blocks (feature-grid, image-gallery,
 * testimonial-strip, cta-band, faq-accordion, quote-pull, text-block,
 * divider) used to render as a row of N equal cards, which reads as the
 * generic default. This block gives all of them ONE shared, intentional
 * grid vocabulary so the library looks like a single system, drawn from
 * the screenshot-to-site grid patterns (auto-fit, featured-first, bento,
 * masonry/columns, editorial split). Every utility is additive and
 * namespaced cms-grid* / cms-foundation tokens, so nothing here changes
 * existing selectors or existing markup. A partial that does not opt in
 * keeps its old appearance.
 *
 * Tokens (override per theme): consistent gap + reading-measure scale so
 * the whole library shares one rhythm.
 * ===================================================================== */

:root {
    /* Shared gap scale: one set of spacing steps for every section grid. */
    --cms-grid-gap: clamp(1rem, 2.5vw, 2rem);
    --cms-grid-gap-tight: clamp(0.75rem, 1.6vw, 1.25rem);
    --cms-grid-gap-loose: clamp(1.5rem, 3.5vw, 3rem);
    /* Track sizing for auto-fit collections. */
    --cms-grid-min: 16rem;
    --cms-grid-min-compact: 13rem;
    /* Reading measures so prose stays legible, not full-bleed. */
    --cms-measure: 68ch;
    --cms-measure-narrow: 46ch;
    --cms-measure-wide: 80ch;
    /* Row height bento/featured templates pack against. */
    --cms-grid-row: 12rem;
}

/* ---- Foundation utilities (referenced by the section types) ----------- */

/* Auto-fit track: cards size themselves and the last row balances. The
 * safe default for any peer collection, since it never leaves an orphan. */
.cms-grid-autofit {
    display: grid;
    gap: var(--cms-grid-gap);
    grid-template-columns: repeat(auto-fit, minmax(var(--cms-grid-min), 1fr));
}
.cms-grid-autofit--compact {
    grid-template-columns: repeat(auto-fit, minmax(var(--cms-grid-min-compact), 1fr));
}

/* Featured-first: the first cell becomes a 2x2 anchor, the rest pack as
 * 1x1. Turns an even row into something art-directed without new content. */
.cms-grid-featured {
    display: grid;
    gap: var(--cms-grid-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: var(--cms-grid-row);
}
.cms-grid-featured > :first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* Bento: explicit mixed-span tiles with a clear hierarchy. Items opt into
 * a larger footprint with the span helpers below. */
.cms-grid-bento {
    display: grid;
    gap: var(--cms-grid-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: var(--cms-grid-row);
    grid-auto-flow: dense;
}
.cms-grid-bento .cms-cell--wide { grid-column: span 2; }
.cms-grid-bento .cms-cell--tall { grid-row: span 2; }
.cms-grid-bento .cms-cell--big  { grid-column: span 2; grid-row: span 2; }

/* Masonry via CSS multicol (variable-height packing for galleries). Native
 * grid masonry is used where the browser supports it, with this as the
 * reliable fallback. */
.cms-grid-masonry {
    columns: 3;
    column-gap: var(--cms-grid-gap-tight);
}
.cms-grid-masonry > * {
    break-inside: avoid;
    margin-bottom: var(--cms-grid-gap-tight);
}

/* Editorial split: an asymmetric two-column layout for a story or an
 * offset arrangement. Flips the ratio on alternate uses. */
.cms-grid-split {
    display: grid;
    gap: var(--cms-grid-gap-loose);
    grid-template-columns: 3fr 2fr;
    align-items: center;
}

/* Shared responsive collapse so every template stacks the same way. */
@media (max-width: 60rem) {
    .cms-grid-featured,
    .cms-grid-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cms-grid-masonry { columns: 2; }
}
@media (max-width: 36rem) {
    .cms-grid-featured,
    .cms-grid-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .cms-grid-featured > :first-child,
    .cms-grid-bento .cms-cell--wide,
    .cms-grid-bento .cms-cell--tall,
    .cms-grid-bento .cms-cell--big {
        grid-column: auto;
        grid-row: auto;
    }
    .cms-grid-masonry { columns: 1; }
    .cms-grid-split { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
    .cms-section__feature,
    .cms-section__quote-card,
    .cms-section__gallery-item {
        transition: border-color 0.18s ease, transform 0.18s ease;
    }
}

/* =====================================================================
 * r11 (ADDITIVE): public layout variants for the addable library
 *
 * These mirror the type+preset CSS that already lives in the admin-only
 * section-system.css, but here in the PUBLIC stylesheet so a rendered
 * site (not just the editor) shows the chosen layout. preset_key is the
 * existing, sanitized variant mechanism (cms-section--preset-<key>), so
 * this adds no new binding. The default preset is unchanged; named
 * presets opt into a grid pattern from the foundation above.
 * ===================================================================== */

/* feature-grid: featured-first and bento variants, plus column counts.
 * Default stays the calm auto-fit row defined earlier. */
.cms-section--feature-grid.cms-section--preset-featured .cms-section__grid {
    display: grid;
    gap: var(--cms-grid-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--cms-grid-row), auto);
}
.cms-section--feature-grid.cms-section--preset-featured .cms-section__feature--featured {
    grid-column: span 2;
    grid-row: span 2;
}
.cms-section--feature-grid.cms-section--preset-bento .cms-section__grid {
    display: grid;
    gap: var(--cms-grid-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--cms-grid-row), auto);
    grid-auto-flow: dense;
}
.cms-section--feature-grid.cms-section--preset-bento .cms-section__feature--featured {
    grid-column: span 2;
    grid-row: span 2;
}
.cms-section--feature-grid.cms-section--preset-two-column .cms-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cms-section--feature-grid.cms-section--preset-four-column .cms-section__grid {
    grid-template-columns: repeat(auto-fit, minmax(var(--cms-grid-min-compact), 1fr));
}
.cms-section--feature-grid.cms-section--preset-icon-cards .cms-section__feature {
    text-align: center;
}
.cms-section--feature-grid.cms-section--preset-icon-cards .cms-section__icon {
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 60rem) {
    .cms-section--feature-grid.cms-section--preset-featured .cms-section__grid,
    .cms-section--feature-grid.cms-section--preset-bento .cms-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 36rem) {
    .cms-section--feature-grid.cms-section--preset-featured .cms-section__grid,
    .cms-section--feature-grid.cms-section--preset-bento .cms-section__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .cms-section--feature-grid.cms-section--preset-featured .cms-section__feature--featured,
    .cms-section--feature-grid.cms-section--preset-bento .cms-section__feature--featured {
        grid-column: auto;
        grid-row: auto;
    }
}

/* image-gallery: true masonry (multicol with native grid where supported)
 * and a justified-rows variant. Default stays the calm auto-fit grid. */
.cms-section--image-gallery.cms-section--preset-masonry .cms-section__gallery {
    display: block;
    columns: 3;
    column-gap: var(--cms-grid-gap-tight);
}
.cms-section--image-gallery.cms-section--preset-masonry .cms-section__gallery-item {
    break-inside: avoid;
    margin-bottom: var(--cms-grid-gap-tight);
}
.cms-section--image-gallery.cms-section--preset-masonry .cms-section__gallery-item img {
    height: auto;
    aspect-ratio: auto;
}
@supports (grid-template-rows: masonry) {
    .cms-section--image-gallery.cms-section--preset-masonry .cms-section__gallery {
        display: grid;
        columns: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: masonry;
        gap: var(--cms-grid-gap-tight);
    }
    .cms-section--image-gallery.cms-section--preset-masonry .cms-section__gallery-item {
        margin-bottom: 0;
    }
}
@media (max-width: 60rem) {
    .cms-section--image-gallery.cms-section--preset-masonry .cms-section__gallery { columns: 2; }
    @supports (grid-template-rows: masonry) {
        .cms-section--image-gallery.cms-section--preset-masonry .cms-section__gallery {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
}
@media (max-width: 36rem) {
    .cms-section--image-gallery.cms-section--preset-masonry .cms-section__gallery { columns: 1; }
}
.cms-section--image-gallery.cms-section--preset-justified .cms-section__gallery {
    grid-template-columns: repeat(auto-fit, minmax(var(--cms-grid-min), 1fr));
}
.cms-section--image-gallery.cms-section--preset-justified .cms-section__gallery-item img {
    aspect-ratio: 3 / 2;
}

/* testimonial-strip: editorial offset (staggered columns), spotlight (one
 * large card), and compact strip. Default keeps the centered single column. */
.cms-section--testimonial-strip.cms-section--preset-editorial .cms-section__inner {
    max-width: var(--cms-section-max-width);
    text-align: left;
}
.cms-section--testimonial-strip.cms-section--preset-editorial .cms-section__quotes {
    display: grid;
    gap: var(--cms-grid-gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}
.cms-section--testimonial-strip.cms-section--preset-editorial .cms-section__quote-card {
    text-align: left;
}
.cms-section--testimonial-strip.cms-section--preset-editorial .cms-section__quote-card:nth-child(3n+2) {
    transform: translateY(2rem);
}
.cms-section--testimonial-strip.cms-section--preset-spotlight .cms-section__inner {
    max-width: 820px;
}
.cms-section--testimonial-strip.cms-section--preset-spotlight .cms-section__quotes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.cms-section--testimonial-strip.cms-section--preset-spotlight .cms-section__quote-card {
    padding: clamp(1.5rem, 4vw, 3rem);
}
.cms-section--testimonial-strip.cms-section--preset-spotlight .cms-section__quote {
    font-size: clamp(1.4rem, 3vw, 2rem);
}
.cms-section--testimonial-strip.cms-section--preset-compact-strip .cms-section__inner {
    max-width: var(--cms-section-max-width);
}
.cms-section--testimonial-strip.cms-section--preset-compact-strip .cms-section__quotes {
    display: grid;
    gap: var(--cms-grid-gap);
    grid-template-columns: repeat(auto-fit, minmax(var(--cms-grid-min), 1fr));
}
@media (max-width: 60rem) {
    .cms-section--testimonial-strip.cms-section--preset-editorial .cms-section__quotes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 36rem) {
    .cms-section--testimonial-strip.cms-section--preset-editorial .cms-section__quotes {
        grid-template-columns: 1fr;
    }
    .cms-section--testimonial-strip.cms-section--preset-editorial .cms-section__quote-card:nth-child(3n+2) {
        transform: none;
    }
}

/* cta-band: asymmetric split (copy weighted, action anchored) and the
 * existing centered/simple variants. Default keeps the two-column flex. */
.cms-section--cta-band.cms-section--preset-split .cms-section__inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: var(--cms-grid-gap-loose);
}
.cms-section--cta-band.cms-section--preset-split .cms-section__action {
    justify-self: end;
}
@media (max-width: 48rem) {
    .cms-section--cta-band.cms-section--preset-split .cms-section__inner {
        grid-template-columns: 1fr;
    }
    .cms-section--cta-band.cms-section--preset-split .cms-section__action {
        justify-self: start;
    }
}
.cms-section--cta-band.cms-section--preset-centered .cms-section__inner {
    flex-direction: column;
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}
.cms-section--cta-band.cms-section--preset-simple {
    background: transparent;
}
.cms-section--cta-band.cms-section--preset-simple .cms-section__inner {
    padding-block: 1.5rem;
}

/* faq-accordion: readable single-measure default; optional two-column for
 * a long list of short answers. */
.cms-section--faq-accordion.cms-section--preset-two-column .cms-section__faqs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--cms-grid-gap);
    max-width: var(--cms-section-max-width);
}
@media (max-width: 48rem) {
    .cms-section--faq-accordion.cms-section--preset-two-column .cms-section__faqs {
        grid-template-columns: 1fr;
    }
}

/* text-block: narrow reading measure, plus a two-column lead for long prose. */
.cms-section--text-block.cms-section--preset-narrow .cms-section__inner {
    max-width: var(--cms-measure-narrow);
    margin-inline: auto;
}
.cms-section--text-block.cms-section--preset-columns .cms-section__inner {
    max-width: var(--cms-measure-wide);
}
.cms-section--text-block.cms-section--preset-columns .cms-section__body {
    columns: 2;
    column-gap: var(--cms-grid-gap-loose);
}
.cms-section--text-block.cms-section--preset-columns .cms-section__body > :first-child {
    margin-top: 0;
}
@media (max-width: 48rem) {
    .cms-section--text-block.cms-section--preset-columns .cms-section__body {
        columns: 1;
    }
}

/* quote-pull: editorial left-aligned pull as an alternative to centered. */
.cms-section--quote-pull.cms-section--preset-centered .cms-section__inner {
    text-align: center;
}
.cms-section--quote-pull.cms-section--preset-editorial .cms-section__inner {
    max-width: var(--cms-measure-wide);
    text-align: left;
}
.cms-section--quote-pull.cms-section--preset-editorial .cms-section__pullquote {
    border-left: 3px solid var(--cms-section-accent);
    padding-left: clamp(1rem, 3vw, 2rem);
}
.cms-section--quote-pull.cms-section--preset-editorial .cms-section__pullquote::before,
.cms-section--quote-pull.cms-section--preset-editorial .cms-section__pullquote::after {
    content: none;
}

/* divider: refined rhythm. The base partial emits two .cms-divider__line
 * spans (no <hr>), so the dashed/dotted/wide variants style those spans.
 * (Fixes the prior dashed/dotted rules that targeted a non-existent hr.) */
.cms-section--divider.cms-section--preset-dashed .cms-divider__line {
    height: 0;
    border-top: 1px dashed var(--cms-section-line);
    background: none;
}
.cms-section--divider.cms-section--preset-dotted .cms-divider__line {
    height: 0;
    border-top: 1px dotted var(--cms-section-line);
    background: none;
}
.cms-section--divider.cms-section--preset-wide .cms-divider__line {
    max-width: none;
}
.cms-section--divider.cms-section--preset-tight {
    padding-block: 1rem;
}

/* =====================================================================
 * v2.6.4-r2: NLH attribution band styling
 *
 * Ships pre-styled so every conversion gets a finished-looking footer
 * attribution band without per-site CSS work. The wrapper is opt-in:
 * use <div class="nlh-attribution-band"> in your footer and the link
 * inherits editorial typography that fits dark or light themes.
 *
 * Theme-adapter variables (override per site if needed):
 *   --nlh-attribution-color      surrounding text color
 *   --nlh-attribution-link       link color
 *   --nlh-attribution-link-hover link hover color
 *   --nlh-attribution-divider    hairline separator color
 * ===================================================================== */

.nlh-attribution-band {
    --nlh-attribution-color: var(--cms-section-muted, rgba(255,255,255,.55));
    --nlh-attribution-link: var(--cms-section-accent, #c9a84c);
    --nlh-attribution-link-hover: var(--cms-section-accent, #c9a84c);
    --nlh-attribution-divider: var(--cms-section-line, rgba(255,255,255,.1));
    width: 100%;
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nlh-attribution-divider);
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--nlh-attribution-color);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    line-height: 1.6;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}
.nlh-attribution-band:hover {
    opacity: 1;
}
.nlh-attribution-band a.nlh-attribution {
    color: var(--nlh-attribution-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.4s ease, border-bottom-color 0.4s ease, opacity 0.4s ease;
}
.nlh-attribution-band a.nlh-attribution:hover,
.nlh-attribution-band a.nlh-attribution:focus-visible {
    color: var(--nlh-attribution-link-hover);
    border-bottom-color: var(--nlh-attribution-link);
    opacity: 1;
}
