/* Shared role defaults. Font sizes themselves are WordPress named presets. */
.marginum-article-list > li { margin-bottom: 20px; }
.marginum-article-list > li:last-child { margin-bottom: 0; }
.marginum-article-list > li::marker { color: var(--marginum-tone-ff0000,#ff0000); }
:is(.entry-content, .editor-styles-wrapper) a.txt-link {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
}
.editor-styles-wrapper :is(p, li) a { color: inherit; text-decoration: none; }
.editor-styles-wrapper :is(p, li) a:is(:hover, :focus-visible) { color: var(--marginum-tone-ff0000,#ff0000); }
.has-s-font-size { --marginum-current-line: var(--marginum-text-s-line); }
.has-m-font-size { --marginum-current-line: var(--marginum-text-m-line); }
/* The featured news copy follows the source's wide-screen body scale.
   Keep the native M choice and its shared customer control authoritative. */
@media (min-width: 1800px) {
    :is(.entry-content, .editor-styles-wrapper) .marginum-news-featured-copy {
        --wp--preset--font-size--m: calc(var(--marginum-text-m-size) * 25 / 22);
    }
}
.has-l-font-size { --marginum-current-line: var(--marginum-text-l-line); }
.has-eyebrow-font-size { --marginum-current-line: var(--marginum-text-eyebrow-line); }
.has-card-font-size { --marginum-current-line: var(--marginum-text-card-line); }
.has-person-font-size { --marginum-current-line: var(--marginum-text-person-line); }
.has-publication-title-font-size { --marginum-current-line: var(--marginum-text-publication-title-line); }
.has-body-feature-font-size { --marginum-current-line: var(--marginum-text-body-feature-line); }
.has-subheading-font-size { --marginum-current-line: var(--marginum-text-subheading-line); }
.has-xl-font-size { --marginum-current-line: var(--marginum-text-xl-line); }
.has-section-large-font-size { --marginum-current-line: var(--marginum-text-section-large-line); }
.has-feature-heading-font-size { --marginum-current-line: var(--marginum-text-feature-heading-line); }
.has-statement-font-size { --marginum-current-line: var(--marginum-text-statement-line); }
.has-xxl-font-size { --marginum-current-line: var(--marginum-text-xxl-line); }
.has-display-font-size { --marginum-current-line: var(--marginum-text-display-line); }
.has-image-hero-font-size { --marginum-current-line: var(--marginum-text-image-hero-line); }
.has-article-title-font-size { --marginum-current-line: var(--marginum-text-article-title-line); }
.has-article-lead-font-size { --marginum-current-line: var(--marginum-text-article-lead-line); }
.has-article-quote-font-size { --marginum-current-line: var(--marginum-text-article-quote-line); }
.has-quote-font-size { --marginum-current-line: var(--marginum-text-quote-line); }
.has-caption-font-size { --marginum-current-line: var(--marginum-text-caption-line); }
.has-timeline-font-size { --marginum-current-line: var(--marginum-text-timeline-line); }
.has-button-font-size { --marginum-current-line: var(--marginum-text-button-line); }
/* Named defaults follow the same precedence as WordPress font-size presets.
   An explicit line-height chosen by the editor remains authoritative. */
:is(.entry-content, .editor-styles-wrapper) :is(.has-s-font-size, .has-m-font-size, .has-l-font-size, .has-eyebrow-font-size, .has-card-font-size, .has-subheading-font-size, .has-xl-font-size, .has-section-large-font-size, .has-feature-heading-font-size, .has-statement-font-size, .has-xxl-font-size, .has-display-font-size, .has-image-hero-font-size, .has-article-title-font-size, .has-article-lead-font-size, .has-article-quote-font-size, .has-person-font-size, .has-publication-title-font-size, .has-body-feature-font-size, .has-quote-font-size, .has-caption-font-size, .has-timeline-font-size, .has-button-font-size):not([style*="line-height"]) {
    line-height: var(--marginum-current-line) !important;
    font-family: var(--marginum-text-family) !important;
}
:is(.entry-content, .editor-styles-wrapper, .marginum-global-footer) :is(strong, b) {
    font-weight: max(var(--marginum-emphasis-weight, 600), var(--marginum-current-weight, 400));
}
/* Source inline emphasis uses the shared lead size and the body line box.
   Resolve the body line-height in pixels: inheriting a unitless factor would
   enlarge it again with the emphasized font. No separate customer setting. */
:is(.entry-content, .editor-styles-wrapper) strong.big-txt {
    font-size: var(--marginum-text-body-feature-size);
    line-height: calc(var(--marginum-text-m-size) * var(--marginum-text-m-line));
}
.wp-block-post-excerpt[class*="has-"] > p,
.wp-block-button[class*="has-"] > .wp-block-button__link {
    font-size: inherit !important;
    line-height: inherit !important;
}
/* The featured archive link is the same scalable body-link variant in the
   editor and front end, not another customer font-size choice. */
:is(.entry-content, .editor-styles-wrapper) .marginum-news-featured-copy > .marginum-news-link.is-style-marginum-text-button {
    font-size: calc(var(--marginum-text-m-size) * 1.15) !important;
    line-height: calc(var(--marginum-text-m-size) * var(--marginum-text-m-line)) !important;
    font-weight: 800;
}
:is(.entry-content, .editor-styles-wrapper) figcaption {
    font-size: var(--wp--preset--font-size--caption);
    line-height: var(--marginum-text-caption-line);
    font-family: var(--marginum-text-family);
}
/* The source has both wide and narrow article figures. This native Image
   style exposes the narrow variant in the editor without changing all media. */
:is(.entry-content, .editor-styles-wrapper) figure.marginum-article-figure {
    --marginum-article-figure-max: 1200px;
    max-width: var(--marginum-article-figure-max);
    margin-inline: auto;
}
:is(.entry-content, .editor-styles-wrapper) figure.is-style-marginum-figure-narrow {
    --marginum-article-figure-max: 833.3333px;
    max-width: var(--marginum-article-figure-max);
    margin-inline: auto;
}
.editor-styles-wrapper figure.marginum-article-figure figcaption {
    font-size: var(--wp--preset--font-size--article-caption);
    line-height: var(--marginum-text-article-caption-line);
    text-align: start;
}
/* An explicit editor-visible component variant keeps the shared contact
   content synchronised while preserving the original Investors scale. */
.is-style-marginum-contact-compact {
    width: 100%;
    margin: 0;
}
:is(.entry-content, .editor-styles-wrapper) .is-style-marginum-contact-compact :is(.has-section-large-font-size, .is-style-marginum-text-section-large.has-xl-font-size):not([style*="font-weight"]) {
    font-size: var(--wp--preset--font-size--xl) !important;
    font-weight: var(--marginum-text-xl-weight, 400) !important;
    --marginum-current-weight: var(--marginum-text-xl-weight, 400);
    line-height: var(--marginum-text-xl-line) !important;
}
