/**
 * EPSER Child — Global Typography Standards (Rev 3)
 *
 * Requirements (2026-11-03):
 *   1. Header navigation text: exactly 16px (unchanged).
 *   2. Minimum font size across the entire website: 16.5px.
 *      No visible text, anywhere, may be smaller than 16.5px.
 *   3. Original font families (Inter / Source Serif 4) are preserved.
 *   4. Headings keep the parent clamps; only sub-16.5px text is raised.
 *      No layout, spacing, or dimension properties are changed here.
 *
 * Method: selector-for-selector overrides (this file loads after the parent
 * main.css and the child style.css), plus a zero-specificity safety net for
 * text elements that have no font-size of their own (block editor output,
 * spans, small, figcaption, etc.).
 */

/* === 1. Header navigation — exactly 16px === */
.nav,
.nav > a,
.nav > li > a,
.nav > li > a:not(.button),
.nav .sub-menu a,
.nav .sub-menu a:not(.button),
.nav-dropdown > a,
.nav-dropdown .dropdown-menu a,
.dropdown-menu a {
    font-size: 16px;
}
.nav { font-weight: 500; }

/* === 2. Global minimum 16.5px === */

/* Base paragraph (parent: 1.04rem = 16.6px) */
p { font-size: 16.5px; }
body { font-size: 16.5px; }

/* Safety net: any text element without an explicit size is at least 16.5px.
   :where() keeps specificity at zero, so every explicit rule still wins
   (larger headings, nav 18px, etc.). Headings and SVG are excluded so their
   natural/parent sizes are untouched. */
:where(body) :where(p, li, a, span, small, strong, em, b, i, label, input, select, textarea, button, td, th, dt, dd, figcaption, cite, code, time, blockquote, address, div) {
    font-size: max(16.5px, 1em);
}
:where(body) ::placeholder { font-size: max(16.5px, 1em); }

/* Block editor preset sizes that fall below the minimum */
.has-small-font-size,
.has-x-small-font-size,
.has-extra-small-font-size,
.has-tiny-font-size,
.wp-element-caption,
.wp-block-image figcaption,
.wp-block-table figcaption,
.wp-block-embed figcaption,
.wp-block-quote cite,
.wp-block-pullquote cite {
    font-size: 16.5px;
}

/* Site header */
.affiliation { font-size: 12px; }
.brand strong { font-size: 16.5px; }
.brand small { font-size: 16.5px; }

/* Buttons, labels, links */
.button,
.button-small,
.button-outline,
.button-dark,
.button-secondary {
    font-size: 16.5px;
}
.eyebrow { font-size: 16.5px; }
.text-link,
.card-link {
    font-size: 16.5px;
}
.photo-credit { font-size: 16.5px; }
.pending-label { font-size: 16.5px; }
label { font-size: 16.5px; }
.label { font-size: 16.5px; }
.result-note { font-size: 16.5px; }
.on-page strong,
.on-page a {
    font-size: 16.5px;
}
.detail-aside a:not(.button) { font-size: 16.5px; }
.notice { font-size: 16.5px; }

/* Cards, placeholders and metadata */
.research-card p { font-size: 16.5px; }
.project-card p:not(.tag) { font-size: 16.5px; }
.news-card p:not(.tag) { font-size: 16.5px; }
.person p:not(.tag) { font-size: 16.5px; }
.resource-item p { font-size: 16.5px; }
.side-note { font-size: 16.5px; }
.project-visual { font-size: 16.5px; }
.portrait { font-size: 16.5px; }
.feature-image > span,
.project-banner span {
    font-size: 16.5px;
}
.contact-details dt { font-size: 16.5px; }
.contact-details dd { font-size: 16.5px; }
.facts dt { font-size: 16.5px; }
.facts dd { font-size: 16.5px; }
.prose p,
.prose li {
    font-size: 16.5px;
}
.prose blockquote small { font-size: 16.5px; }
.page-hero figcaption { font-size: 16.5px; }
.wp-caption-text { font-size: 16.5px; }
.content-empty { font-size: 16.5px; }

/* Footer */
.footer-grid h3 { font-size: 16.5px; }
.footer-grid p { font-size: 16.5px; }
.footer-grid a { font-size: 16.5px; }
.footer-bottom { font-size: 16.5px; }

/* Orphan placeholders */
.news-image { font-size: 16.5px; }
.logo-placeholder { font-size: 16.5px; }
.form-note { font-size: 16.5px; }
.success { font-size: 16.5px; }
.file-icon { font-size: 16.5px; }
.swatch span { font-size: 16.5px; }
.swatch code { font-size: 16.5px; }
.sitemap-grid a { font-size: 16.5px; }
.flow { font-size: 16.5px; }
.flow strong { font-size: 16.5px; }
.flow span { font-size: 16.5px; }
.tag { font-size: 16.5px; }
.tags span { font-size: 16.5px; }

/* Inline links list */
.inline-links { font-size: 16.5px; }
.link-list a { font-size: 16.5px; }
.external-link p { font-size: 16.5px; }
.publications-link { font-size: 16.5px; }

/* Publication content (parent cards) */
.publication p { font-size: 16.5px; }
.publication a { font-size: 16.5px; }
.publication-year { font-size: 16.5px; }
