/* Shared pills: colour from the central PHP palette; normal link underlines remain elsewhere. */
body #page .mfsa-ui-term-pill,
body #page .mfsa-ui-term-pill:visited,
body #page .mfsa-ui-term-pill:hover,
body #page .mfsa-ui-term-pill:focus {
    display: inline-block;
    background-color: var(--mfsa-pill-bg, #00685e) !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: var(--mfsa-ui-font-min, 16pt);
    line-height: 1.5;
    font-weight: 700;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
}
body #page .mfsa-ui-term-pill * { color: inherit !important; text-decoration: none !important; }
body #page a.mfsa-ui-term-pill:hover { box-shadow: 0 0 0 2px currentColor; }
body #page a.mfsa-ui-term-pill:focus-visible { outline: 3px solid #004d44 !important; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
body #page .mfsa-rp-meta, body #page .mfsa-rp-meta a,
body #page .mfsa-meta-date, body #page .mfsa-table-meta { color: #475569 !important; }
body #page .mfsa-rp-action a { color: #00685e !important; }
body .mfsa-banner-crumbs .ast-breadcrumbs-wrapper,
body .mfsa-banner-crumbs .ast-breadcrumbs-wrapper *,
body .mfsa-breadcrumb-wrap .breadcrumbs,
body .mfsa-breadcrumb-wrap .breadcrumbs *,
body .ast-breadcrumbs-wrapper, body .ast-breadcrumbs-wrapper *,
body #breadcrumbs, body #breadcrumbs *, body .rank-math-breadcrumb, body .rank-math-breadcrumb *,
body .yoast-breadcrumb, body .yoast-breadcrumb * { font-size: var(--mfsa-ui-font-min, 16pt) !important; line-height: 1.5 !important; }
body.single-report .mfsa-report-content-heading { font-size: 1.5rem; line-height: 1.4; font-weight: 700; color: #334155; padding: 0; margin: 0 0 1rem; border: 0; background: none; box-shadow: none; }
@media (forced-colors: active) {
    body #page .mfsa-ui-term-pill { background: Canvas !important; color: CanvasText !important; border-color: CanvasText; }
    body #page a.mfsa-ui-term-pill:focus-visible { outline-color: Highlight !important; }
}
/* Preserve the existing toolbar's high-contrast mode. */
body.pojo-a11y-high-contrast #page .mfsa-ui-term-pill,
body.pojo-a11y-high-contrast #page .mfsa-ui-term-pill:visited,
body.pojo-a11y-high-contrast #page .mfsa-ui-term-pill:hover,
body.pojo-a11y-high-contrast #page .mfsa-ui-term-pill:focus { background: #ffff00 !important; color: #000 !important; border-color: #fff; }
body.pojo-a11y-high-contrast #page .mfsa-rp-meta,
body.pojo-a11y-high-contrast #page .mfsa-rp-meta a,
body.pojo-a11y-high-contrast #page .mfsa-meta-date,
body.pojo-a11y-high-contrast #page .mfsa-table-meta,
body.pojo-a11y-high-contrast.single-report .mfsa-report-content-heading { color: #fff !important; }
body.pojo-a11y-high-contrast #page .mfsa-rp-action a { color: #ffff00 !important; }
body.pojo-a11y-high-contrast #page a.mfsa-ui-term-pill:focus-visible { outline-color: #fff !important; }

/* Keep the report description visibly distinct from paragraph text. */
body.single-report #page #content .mfsa-cpt-body h2.mfsa-report-content-heading {
    font-size: 1.5rem !important; font-weight: 700 !important; line-height: 1.4 !important;
    margin: 0 0 1.25rem !important; padding: 0 !important; border: 0 !important;
    background: transparent !important; box-shadow: none !important;
}
body.single-report h2.mfsa-report-content-heading * { font-size: inherit !important; font-weight: inherit !important; }
