/* Publisher 1.7.5: one predictable flow, including posts imported before this update.
   :where() keeps reset specificity below every spacing rule. No card internals reset. */
body.up-editorial .up-prose {
    --up-flow-text: 1.15rem;
    --up-flow-section: 2.75rem;
    --up-flow-media: 2rem;
}
body.up-editorial .up-prose > :where(p,h2,h3,h4,ul,ol,figure,blockquote,.upe-offer,.up-sources-panel,.wp-block-group,.wp-block-columns,.wp-block-buttons) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body.up-editorial .up-prose > * + * { margin-top: var(--up-flow-text) !important; }
body.up-editorial .up-prose > h2 { margin-top: var(--up-flow-section) !important; margin-bottom: 0 !important; }
body.up-editorial .up-prose > h3 { margin-top: 2rem !important; margin-bottom: 0 !important; }
body.up-editorial .up-prose > h4 { margin-top: 1.75rem !important; margin-bottom: 0 !important; }
body.up-editorial .up-prose > :is(h2,h3,h4) + :is(p,ul,ol) { margin-top: .85rem !important; }
/* A section title and its first subtitle form one group, with a deliberate gap. */
body.up-editorial .up-prose > h2 + :is(h3,h4),
body.up-editorial .up-prose > h3 + h4 { margin-top: 1.25rem !important; }
body.up-editorial .up-prose > :is(figure,.wp-block-image,.wp-block-table,blockquote,.wp-block-group,.wp-block-columns,.wp-block-buttons),
body.up-editorial .up-prose > :is(figure,.wp-block-image,.wp-block-table,blockquote,.wp-block-group,.wp-block-columns,.wp-block-buttons) + * {
    margin-top: var(--up-flow-media) !important;
}
body.up-editorial .up-prose > .upe-offer { margin-top: 2.75rem !important; margin-bottom: 0 !important; }
body.up-editorial .up-prose > .upe-offer + * { margin-top: 2.5rem !important; }
body.up-editorial .up-prose > p.upsential-guide-link,
body.up-editorial .up-prose > p.upsential-guide-link + * { margin-top: 1.6rem !important; }
body.up-editorial .up-prose > h2:not(:first-child):not(h2 + h2) { margin-top: var(--up-flow-section) !important; }
body.up-editorial .up-prose > .up-sources-panel { margin-top: var(--up-flow-section) !important; }
body.up-editorial .up-prose > figure.wp-block-image { display: block; margin-left: 0 !important; margin-right: 0 !important; }
body.up-editorial .up-prose > figure.wp-block-image > .upl-credited-image { display: block; width: 100%; }
body.up-editorial .up-prose > figure.wp-block-image :is(img,picture) { display: block; max-width: 100%; height: auto; }
body.up-editorial .up-prose > figure.wp-block-image > figcaption { margin: .75rem 0 0 !important; }
body.up-editorial .up-prose > :is(ul,ol) { padding-inline-start: 1.4em; }
body.up-editorial .up-prose > :is(ul,ol) li + li { margin-top: .45rem !important; }
body.up-editorial .up-prose > :is(ul,ol) :is(ul,ol) { margin-block: .65rem; }
body.up-editorial .up-prose > :first-child { margin-top: 0 !important; }
body.up-editorial .up-prose > :last-child { margin-bottom: 0 !important; }
@media (max-width: 550px) {
    body.up-editorial .up-prose { --up-flow-text: 1rem; --up-flow-section: 2.25rem; --up-flow-media: 1.75rem; }
    body.up-editorial .up-prose > h3 { margin-top: 1.75rem !important; }
    body.up-editorial .up-prose > h4 { margin-top: 1.5rem !important; }
    body.up-editorial .up-prose > h2 + :is(h3,h4),body.up-editorial .up-prose > h3 + h4 { margin-top: 1.1rem !important; }
    body.up-editorial .up-prose > .upe-offer,body.up-editorial .up-prose > .upe-offer + * { margin-top: 2.25rem !important; }
}
/* Exact institutional inline link contract; product buttons and related links stay native. */
body.up-editorial .up-prose a.upub-external-editorial {
    color: #17445e !important;
    font-weight: 650;
    text-decoration-line: none !important;
    text-decoration-color: #ffb825 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: .15em;
}
body.up-editorial .up-prose a.upub-external-editorial:is(:hover,:focus-visible) {
    color: #17445e !important;
    text-decoration-line: underline !important;
    text-decoration-color: #ffb825 !important;
    text-decoration-thickness: 2px !important;
}
body.up-editorial .up-prose a.upub-external-editorial:focus-visible { outline: 2px solid #005e99; outline-offset: 4px; }
