/* RUE Flex Builder — Modern Legal Editorial / foundation v2.
 * Visual direction: Cookies Policy (editorial) + Crypto Regulations (modular).
 * Scope: Blog posts and local Design Lab via .fx-main--modern-editorial.
 * This file is the entire foundation; NOT an appended override stack.
 * Component layouts, content and ACF values are not changed here.
 */

.fx-main--modern-editorial {
    /* Restrained RUE palette, aligned with the reference family. */
    --fx-dark: #111b2b;
    --fx-dark-2: #1a2a40;
    --fx-card-dark: #23344a;
    --fx-grad-dark: linear-gradient(145deg, #111b2b 0%, #1a2a40 78%, #25273b 100%);
    --fx-gold: #bfa161;
    --fx-gold-dark: #7d6038;
    --fx-gold-bright: #e9c17c;
    --fx-gold-light: #f8f3e9;
    --fx-gold-accent: #c9aa6e;
    --fx-text: #273342;
    --fx-text-muted: #566375;
    --fx-text-invert: #f6f4f0;
    --fx-white: #fff;
    --fx-light: #f7f5f1;
    --fx-band-a: #f7f5f1;
    --fx-band-b: #f7f5f1;
    --fx-border: #e6e2da;
    --fx-border-light: #f0ede7;
    --fx-container: 1120px;
    --fx-container-wide: 1320px;
    --fx-gutter: clamp(18px, 3.5vw, 52px);
    --fx-radius: 14px;
    --fx-radius-sm: 9px;
    --fx-radius-lg: 18px;
    --fx-shadow: 0 12px 34px rgba(17, 27, 43, .09);
    --fx-shadow-sm: 0 5px 18px rgba(17, 27, 43, .065);
    --fx-shadow-gold: 0 13px 32px rgba(125, 96, 56, .14);
    --fx-font-head: 'Alice', Georgia, serif;
    --fx-font-body: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Editorial rhythm: adjacent pale sections form one continuous page,
 * not a parade of stripes and rules. Theme=gold/dark remain explicit accents. */
.fx-main--modern-editorial .fx {
    font-family: var(--fx-font-body);
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.69;
}
.fx-main--modern-editorial .fx.fx-theme-light.fx-band-a:not(.fx--rich_text),
.fx-main--modern-editorial .fx.fx-theme-light.fx-band-b:not(.fx--rich_text) {
    background: var(--fx-band-a);
}
.fx-main--modern-editorial .fx.fx-theme-light + .fx.fx-theme-light {
    border-top: 0;
}
.fx-main--modern-editorial .fx.fx-theme-gold {
    background: #f2ede3;
}
.fx-main--modern-editorial .fx-space-sm {
    padding-block: clamp(10px, 1.2vw, 14px);
}
.fx-main--modern-editorial .fx-space-md {
    padding-block: clamp(16px, 1.8vw, 20px);
}
/* Ordered spacing scale (per side): none < sm < md < lg.
 * Hero and CTA are deliberate full-width accents with their own rhythm. */
.fx-main--modern-editorial .fx-space-lg {
    padding-block: clamp(22px, 2.3vw, 26px);
}
.fx-main--modern-editorial .fx--hero.fx-space-lg {
    padding-block: 40px 28px;
}
.fx-main--modern-editorial .fx--cta.fx-space-lg {
    padding-block: 36px;
}

/* Typography: each component retains its own heading alignment/scale.
 * Narrative text is left-aligned like Cookies Policy; module headings can
 * remain centred as on Crypto Regulations. */
.fx-main--modern-editorial .fx :where(h1, h2, h3, h4) {
    font-family: var(--fx-font-head);
    text-wrap: pretty;
}
.fx-main--modern-editorial .fx .fx-subheading {
    line-height: 1.55;
}
.fx-main--modern-editorial .fx--rich_text {
    line-height: 1.76;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich__heading {
    color: var(--fx-gold-dark);
    text-align: left;
    font-size: clamp(1.65rem, 2.8vw, 2.25rem);
    line-height: 1.23;
    letter-spacing: -.012em;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body {
    font-family: var(--fx-font-body);
    font-size: clamp(1rem, .35vw + .95rem, 1.1rem);
    line-height: 1.77;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body :where(p, ul, ol, blockquote) {
    max-width: 78ch;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body :where(h2, h3) {
    max-width: 78ch;
    text-align: left;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body h2 {
    color: var(--fx-gold-dark);
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body h3 {
    color: var(--fx-dark);
}

/* Tables, cards and interactive controls reuse the same soft design tokens;
 * no broad <table>/<a> overrides and no new !important declarations. */
.fx-main--modern-editorial .fx :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--fx-gold-bright);
    outline-offset: 3px;
}
.fx-main--modern-editorial .fx--divider {
    padding-block: clamp(10px, 2.2vw, 24px);
}


/* ================================================================
 * Editorial components — wave 1 (Hero v1, rich content, key takeaways).
 * Deliberately opt-in via .fx-main--modern-editorial. Shared component styles,
 * production landing pages and parent theme are not changed.
 * ================================================================ */

/* Hero v1: modular split similar to Crypto Regulations reference. */
.fx-main--modern-editorial .fx--hero.fx-variant-v1.fx-theme-dark {
    background:
        radial-gradient(ellipse at 5% 0%, rgba(20, 67, 93, .34), transparent 53%),
        radial-gradient(ellipse at 100% 100%, rgba(124, 87, 40, .20), transparent 45%),
        linear-gradient(115deg, #0b1525 0%, #101c2f 67%, #1c1a1b 100%);
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 > .fx-inner {
    width: min(1160px, 100% - var(--fx-gutter) * 2);
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__layout {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
    align-items: center;
    gap: clamp(30px, 5vw, 78px);
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__content {
    min-width: 0;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__eyebrow {
    font-size: .72rem;
    letter-spacing: .1em;
    margin-bottom: .8rem;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__title {
    max-width: 22ch;
    color: #e7c68a;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -.012em;
    margin-bottom: clamp(13px, 1.6vw, 22px);
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__subheading {
    max-width: 69ch;
    color: rgba(248, 248, 250, .89);
    font-size: clamp(1rem, .38vw + .93rem, 1.12rem);
    line-height: 1.68;
    margin-bottom: 1.3rem;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__bullets {
    gap: .45rem;
    margin-bottom: 1.45rem;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__bullet {
    font-size: .97rem;
    line-height: 1.5;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__panel {
    min-height: 0;
    padding: 5px 0 5px clamp(22px, 2.8vw, 38px);
    background: transparent;
    border: 0;
    border-left: 2px solid rgba(191, 161, 97, .66);
    border-radius: 0;
    box-shadow: none;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__panel-glow {
    display: none;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__tldr-label {
    font-family: var(--fx-font-body);
    font-size: .73rem;
    line-height: 1.4;
    letter-spacing: .09em;
    font-weight: 700;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__tldr-item,
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__fact {
    padding-block: .95rem;
    border-top-color: rgba(255, 255, 255, .14);
    font-size: .98rem;
    line-height: 1.5;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__actions {
    gap: .75rem;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__actions .fx-btn {
    min-height: 44px;
    border-radius: 8px;
    padding: .85em 1.35em;
    font-size: .92rem;
}
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__actions .fx-btn--primary,
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__actions .fx-btn--primary:visited,
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__actions .fx-btn--primary:hover,
.fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__actions .fx-btn--primary:focus {
    background: linear-gradient(135deg, #e9cd94, #d9b46c);
    color: #111b29;
}
/* The older markup contains a decorative aside even when it has no facts.
 * Suppress it visually where :has() is available; PHP/a11y follow-up pending. */
@supports selector(:has(*)) {
    .fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__panel:not(:has(.fx-hero__tldr, .fx-hero__facts)) {
        display: none;
    }
    .fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__layout:not(:has(.fx-hero__tldr, .fx-hero__facts)) {
        grid-template-columns: minmax(0, 1fr);
    }
    .fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__layout:not(:has(.fx-hero__tldr, .fx-hero__facts)) .fx-hero__content {
        max-width: 900px;
    }
}

/* Key takeaways: substantial editorial summary, not a floating narrow tile. */
.fx-main--modern-editorial .fx--key_takeaways .fx-key_takeaways__card {
    width: 100%;
    max-width: 930px;
    margin-inline: auto;
    border-left-width: 3px;
    padding: clamp(25px, 3.5vw, 44px);
    box-shadow: 0 8px 26px rgba(17, 27, 43, .055);
}
.fx-main--modern-editorial .fx--key_takeaways .fx-key_takeaways__title {
    color: var(--fx-dark);
    font-size: clamp(1.28rem, 2.05vw, 1.7rem);
}
.fx-main--modern-editorial .fx--key_takeaways .fx-key_takeaways__text {
    font-size: 1rem;
    line-height: 1.65;
}

/* Rich text: white article surface on the warm editorial canvas, as in
 * Cookies Policy. The article remains readable rather than excessively wide. */
.fx-main--modern-editorial .fx--rich_text.fx-theme-light {
    background: var(--fx-light);
}
/* A single editorial sheet, or one continuous sheet when two compatible
 * light Rich Text sections are consecutive. Content remains in native ACF
 * rows; only visual boundaries change. No effect on dark/gold sections. */

/* Chrome, Firefox and Safari with :has(): join equal-width adjacent light
 * article sections without adding wrappers or touching shared PHP.
 * A standalone Rich Text or one with a different theme/width is unchanged. */
@supports selector(section:has(+ section)) {
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-normal:has(+ .fx--rich_text.fx-theme-light.fx-container-normal),
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-wide:has(+ .fx--rich_text.fx-theme-light.fx-container-wide) {
        padding-bottom: 0;
    }
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-normal + .fx--rich_text.fx-theme-light.fx-container-normal,
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-wide + .fx--rich_text.fx-theme-light.fx-container-wide {
        padding-top: 0;
    }
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-normal:has(+ .fx--rich_text.fx-theme-light.fx-container-normal) > .fx-inner,
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-wide:has(+ .fx--rich_text.fx-theme-light.fx-container-wide) > .fx-inner {
        border-bottom: 0;
        border-radius: var(--fx-radius-lg) var(--fx-radius-lg) 0 0;
        box-shadow: none;
        padding-bottom: 16px;
    }
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-normal + .fx--rich_text.fx-theme-light.fx-container-normal > .fx-inner,
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-wide + .fx--rich_text.fx-theme-light.fx-container-wide > .fx-inner {
        border-top: 0;
        border-radius: 0 0 var(--fx-radius-lg) var(--fx-radius-lg);
        padding-top: 16px;
    }
    /* If the article contains three or more consecutive rows, middle
     * panels have no visible corners or seams. */
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-normal + .fx--rich_text.fx-theme-light.fx-container-normal:has(+ .fx--rich_text.fx-theme-light.fx-container-normal) > .fx-inner,
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-wide + .fx--rich_text.fx-theme-light.fx-container-wide:has(+ .fx--rich_text.fx-theme-light.fx-container-wide) > .fx-inner {
        border-radius: 0;
        border-bottom: 0;
        box-shadow: none;
    }
}
.fx-main--modern-editorial .fx--rich_text .fx-rich {
    max-width: 100%;
    margin-inline: 0;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich__heading {
    color: var(--fx-dark);
    font-size: clamp(1.7rem, 2.8vw, 2.25rem);
    line-height: 1.21;
    margin-bottom: 1.1rem;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body {
    color: var(--fx-text);
    font-size: clamp(1rem, .3vw + .95rem, 1.09rem);
    line-height: 1.76;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body h2 {
    color: var(--fx-dark);
    font-size: clamp(1.58rem, 2.1vw, 1.9rem);
    line-height: 1.3;
    margin-block: 36px 17px;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body h3 {
    color: #785a33;
    font-size: clamp(1.23rem, 1.7vw, 1.45rem);
    line-height: 1.35;
    margin-block: 27px 17px;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body h4 {
    color: var(--fx-dark);
    margin-block: 20px 8px;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body :is(h2, h3, h4):first-child {
    margin-top: 0;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body p {
    margin-bottom: 1.12em;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body :where(p, ul, ol, blockquote) {
    max-width: none;
}

/* RUE_EDITORIAL_B1_TABLES — revised to match the approved light table reference.
 * Pale background, warm gold hairlines, readable text; editorial pages only.
 * No global table selectors, no !important, no data/markup changes.
 */
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table {
    width: 100%;
    max-width: 100%;
    margin-block: 24px 30px;
    border: 1px solid #c69a62;
    border-radius: 9px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: none;
    font-family: var(--fx-font-body);
    font-size: clamp(1rem, .15vw + .97rem, 1.06rem);
    line-height: 1.54;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table :is(th, td) {
    padding: 14px 16px;
    vertical-align: top;
    text-align: left;
    color: #172339;
    background: #fff;
    font-size: 1em;
    line-height: 1.55;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    overflow-wrap: break-word;
    border-right: 1px solid #e7d3b8;
    border-bottom: 1px solid #e7d3b8;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table tr > :last-child {
    border-right: 0;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table tbody tr:last-child > * {
    border-bottom: 0;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table thead th {
    background: #fff;
    color: #142238;
    font-family: var(--fx-font-body);
    font-size: 1em;
    font-weight: 650;
    border-bottom-color: #c69a62;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table tbody tr > :first-child {
    color: #172339;
    font-weight: 600;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table tbody tr:nth-child(even) > * {
    background: #fff;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table tbody tr:hover > * {
    background: #fdfaf6;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table :is(th,td) > p {
    margin: 0;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table :is(th,td) > p + p {
    margin-top: .65em;
}
/* Only a true two-column table may use the reference's near-even columns. */
@supports selector(table:has(thead)) {
    .fx-main--modern-editorial .fx--rich_text .fx-rich-body table:has(thead tr > :nth-child(2):last-child) {
        table-layout: fixed;
    }
    .fx-main--modern-editorial .fx--rich_text .fx-rich-body table:has(thead tr > :nth-child(2):last-child) th:first-child {
        width: 47%;
    }
}
/* Comparison Table: same editorial table language, but preserve its
 * own scroll wrapper, emphasized option and four-column data layout. */
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__scroll {
    border: 1px solid #c69a62;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
}
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__table {
    font-size: clamp(1rem, .15vw + .97rem, 1.06rem);
    line-height: 1.54;
    min-width: 720px;
    border-spacing: 0;
}
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__corner,
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__col {
    background: #fff;
    color: #142238;
    border-bottom: 1px solid #c69a62;
}
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__col {
    padding: 14px 16px;
    font-size: 1em;
    font-weight: 650;
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
}
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__col.is-highlight {
    background: #f9f4eb;
    color: #172339;
    border-bottom-color: #c69a62;
    box-shadow: inset 0 3px 0 #b88e53;
}
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__rowlabel,
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__cell {
    padding: 14px 16px;
    color: #172339;
    font-family: var(--fx-font-body);
    font-size: 1em;
    line-height: 1.55;
    text-align: left;
    border-bottom: 1px solid #e7d3b8;
    white-space: normal;
    overflow-wrap: break-word;
}
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__rowlabel {
    font-weight: 650;
}
/* Shared warm column rules; never alter commercial/default Flex Builder. */
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__table tr > :not(:last-child) {
    border-right: 1px solid #e7d3b8;
}
.fx-main--modern-editorial .fx--rich_text .fx-rich-body table :is(th, td) a {
    overflow-wrap: anywhere;
}
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__cell.is-highlight {
    background: #fcf8f0;
    color: #172339;
    font-weight: 650;
}
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light tbody tr:nth-child(even) :is(.fx-comparison_table__rowlabel, .fx-comparison_table__cell) {
    background: #fff;
}
.fx-main--modern-editorial .fx--comparison_table.fx-theme-light tbody tr:nth-child(even) .fx-comparison_table__cell.is-highlight {
    background: #fcf8f0;
}
@media (max-width: 600px) {
    /* Preserve existing local table scrolling and its own viewport. */
    .fx-main--modern-editorial .fx--rich_text .fx-rich-body table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        font-size: 1rem;
    }
    .fx-main--modern-editorial .fx--rich_text .fx-rich-body table :is(th, td) {
        min-width: 160px;
        padding: 13px 14px;
    }
    .fx-main--modern-editorial .fx--comparison_table.fx-theme-light .fx-comparison_table__table {
        min-width: 720px;
    }
    .fx-main--modern-editorial .fx--comparison_table.fx-theme-light :is(.fx-comparison_table__col, .fx-comparison_table__rowlabel, .fx-comparison_table__cell) {
        padding: 13px 14px;
    }
}

@media (max-width: 900px) {
    .fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }
    .fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__panel {
        min-height: 0;
        margin-top: 4px;
        padding-left: 20px;
    }
}
@media (max-width: 600px) {
    .fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__title {
        font-size: clamp(1.9rem, 7vw, 2.5rem);
        max-width: none;
    }
    .fx-main--modern-editorial .fx--hero.fx-variant-v1 .fx-hero__actions .fx-btn {
        width: 100%;
        justify-content: center;
    }
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light > .fx-inner {
        padding: 24px 20px;
        border-radius: 12px;
    }
    /* Mobile joined sheets: preserve continuous sides and smaller seams. */
    @supports selector(section:has(+ section)) {
        .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-normal:has(+ .fx--rich_text.fx-theme-light.fx-container-normal) > .fx-inner,
        .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-wide:has(+ .fx--rich_text.fx-theme-light.fx-container-wide) > .fx-inner {
            border-radius: 12px 12px 0 0;
            padding-bottom: 12px;
        }
        .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-normal + .fx--rich_text.fx-theme-light.fx-container-normal > .fx-inner,
        .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-wide + .fx--rich_text.fx-theme-light.fx-container-wide > .fx-inner {
            border-radius: 0 0 12px 12px;
            padding-top: 12px;
        }
        .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-normal + .fx--rich_text.fx-theme-light.fx-container-normal:has(+ .fx--rich_text.fx-theme-light.fx-container-normal) > .fx-inner,
        .fx-main--modern-editorial .fx--rich_text.fx-theme-light.fx-container-wide + .fx--rich_text.fx-theme-light.fx-container-wide:has(+ .fx--rich_text.fx-theme-light.fx-container-wide) > .fx-inner {
            border-radius: 0;
        }
    }
    .fx-main--modern-editorial .fx--key_takeaways .fx-key_takeaways__card {
        padding: 24px 20px;
    }
}

@media (max-width: 600px) {
    .fx-main--modern-editorial {
        --fx-gutter: 18px;
        --fx-radius-lg: 14px;
    }
    .fx-main--modern-editorial .fx {
        font-size: 16px;
        line-height: 1.7;
    }
    .fx-main--modern-editorial .fx-space-sm { padding-block: 10px; }
    .fx-main--modern-editorial .fx-space-md { padding-block: 16px; }
    .fx-main--modern-editorial .fx-space-lg { padding-block: 22px; }
    .fx-main--modern-editorial .fx--hero.fx-space-lg { padding-block: 32px 24px; }
    .fx-main--modern-editorial .fx--cta.fx-space-lg { padding-block: 30px; }
}

/* RUE_EDITORIAL_HERO_DATES_STYLES_V1
 * Publication metadata is rendered by Hero only on the first editorial section.
 * Scoped to .fx-main--modern-editorial; does not style commercial Flex Builder pages.
 */
.fx-main--modern-editorial .fx--hero .fx-hero__dates {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 0.7rem;
    row-gap: 0.25rem;
    margin: -0.3rem 0 1.1rem;
    color: rgba(245, 243, 239, 0.84);
    font-family: Inter, sans-serif;
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    line-height: 1.5;
}
.fx-main--modern-editorial .fx--hero .fx-hero__dates-item {
    display: inline-flex;
    gap: 0.36rem;
    align-items: baseline;
}
.fx-main--modern-editorial .fx--hero .fx-hero__dates-label {
    color: var(--fx-gold-bright, #E4BC7C);
    font-weight: 600;
}
.fx-main--modern-editorial .fx--hero .fx-hero__dates-separator {
    color: rgba(245, 243, 239, 0.48);
}
@media (max-width: 600px) {
    .fx-main--modern-editorial .fx--hero .fx-hero__dates {
        row-gap: 0.3rem;
        margin-bottom: 0.9rem;
    }
}


/* === RUE FULL-WIDTH LIGHT EDITORIAL SECTIONS === */
/* Light rich_text sections become full-width page bands while the reading column stays centered. */
.fx-main--modern-editorial .fx--rich_text.fx-theme-light {
    background: #FFFFFF;
    border-top: 1px solid #E4DAC7;
    border-bottom: 1px solid #E4DAC7;
    border-radius: 0;
    box-shadow: none;
}

.fx-main--modern-editorial .fx--rich_text.fx-theme-light + .fx--rich_text.fx-theme-light {
    border-top: 0;
}

.fx-main--modern-editorial .fx--rich_text.fx-theme-light > .fx-inner {
    max-width: min(1280px, calc(100vw - 2 * var(--fx-gutter)));
    margin-inline: auto;
    padding-inline: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.fx-main--modern-editorial .fx--rich_text.fx-theme-light .fx-rich-body {
    max-width: 1160px;
    margin-inline: auto;
}

.fx-main--modern-editorial .fx--rich_text.fx-theme-light .fx-heading,
.fx-main--modern-editorial .fx--rich_text.fx-theme-light .fx-subheading {
    max-width: 1160px;
    margin-inline: auto;
}

@media (max-width: 900px) {
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light > .fx-inner {
        padding-inline: 22px;
    }
}

@media (max-width: 600px) {
    .fx-main--modern-editorial .fx--rich_text.fx-theme-light {
        border-top-width: 1px;
        border-bottom-width: 1px;
    }

    .fx-main--modern-editorial .fx--rich_text.fx-theme-light > .fx-inner {
        padding-inline: 18px;
    }
}


/* Modern Editorial: integrated video component v1. */
.fx-main--modern-editorial .fx--video.fx-theme-light {
    background: var(--fx-light);
}

.fx-main--modern-editorial .fx--video.fx-theme-light > .fx-inner {
    background: var(--fx-white);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: 0 8px 26px rgba(17, 27, 43, .055);
    padding: clamp(22px, 3vw, 40px);
}

.fx-main--modern-editorial .fx--video .fx-video__intro {
    max-width: 920px;
    margin: 0 auto clamp(20px, 3vw, 30px);
    text-align: center;
}

.fx-main--modern-editorial .fx--video .fx-video__heading {
    margin: 0 0 12px;
    color: var(--fx-dark);
    font-family: var(--fx-font-head);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.3;
    text-align: center;
}

.fx-main--modern-editorial .fx--video .fx-video__description {
    margin: 0 auto;
    max-width: 70ch;
    color: var(--fx-text-muted);
    line-height: 1.65;
    text-align: center;
}

@media (max-width: 600px) {
    .fx-main--modern-editorial .fx--video.fx-theme-light > .fx-inner {
        padding: 20px 16px;
    }
}
