/* MEPA typography. Size tokens are shared with the block editor through theme.json.
   390–1440 CSS px: body 16–17, H1 30–40, H2 25–30, H3 21–23, H4 18–20. */
:root {
 --mepa-font:var(--wp--preset--font-family--systeme, 'Inter', sans-serif);
 --mepa-font-ar:var(--wp--preset--font-family--arabe, 'Beiruti', sans-serif);
 --mepa-text:var(--wp--custom--type--body);
 --mepa-h1:var(--wp--custom--type--h-1);
 --mepa-h2:var(--wp--custom--type--h-2);
 --mepa-h3:var(--wp--custom--type--h-3);
 --mepa-h4:var(--wp--custom--type--h-4);
 --mepa-meta:var(--wp--custom--type--meta);
 --mepa-ui:var(--wp--custom--type--interface);
 --mepa-reading:72ch;
}
body,.editor-styles-wrapper {
 font-family:var(--mepa-font);font-size:var(--mepa-text);font-weight:400;
 line-height:1.65;letter-spacing:normal;
}
:where(h1,h2,h3,h4,h5,h6) {
 font-family:inherit;font-weight:700;line-height:1.25;letter-spacing:normal;
 overflow-wrap:anywhere;text-wrap:pretty;
 margin-block:1.5em .65em;
}
h1,.editor-post-title__input {font-size:var(--mepa-h1)}
h2 {font-size:var(--mepa-h2)}
h3 {font-size:var(--mepa-h3)}
h4 {font-size:var(--mepa-h4)}
h5 {font-size:1.125rem}h6 {font-size:1rem}
:where(p,ul,ol,dl,blockquote) {margin-block:0 1em}
:where(main,.editor-styles-wrapper) :where(p,ul,ol,blockquote) {max-width:var(--mepa-reading)}
:where(main,.editor-styles-wrapper) :where(li)+li {margin-block-start:.4em}
:where(main,.editor-styles-wrapper) :where(h1,h2,h3,h4)+:where(p,ul,ol) {margin-block-start:0}
strong,b {font-weight:700}
button,input,select,textarea {font-family:inherit;font-size:var(--mepa-ui);line-height:1.4}
button,.wp-element-button,.wp-block-button__link,.mepa-download,
.mepa-nav,.mepa-nav .wp-block-navigation-item__content,
.mepa-nav .wp-block-navigation-submenu__toggle,
.mepa-nav .wp-block-navigation__responsive-container-open,
.mepa-nav .wp-block-navigation__responsive-container-close,
.mepa-quick-access .wp-block-button__link,.mepa-home-tile,
.mepa-home-mission>a,.mepa-home-editor-link,.mepa-read,
.wp-block-post-excerpt__more-link,.mepa-portal-links a,.mepa-news-heading>a {
 font-family:inherit;font-size:var(--mepa-ui);font-weight:600;line-height:1.35;
}
/* Same visual rank for every collection card, independent of HTML nesting level. */
.mepa-card :is(h2,h3),.mepa-portal-query .wp-block-post-title,
.mepa-home-mission h3,.mepa-history-card h2,
.wp-block-query .wp-block-post-title {
 font-size:var(--mepa-h3);font-weight:700;line-height:1.3;
}
.mepa-card :is(h2,h3) a,.wp-block-post-title a {font-weight:inherit}
.mepa-news-card :is(h2,h3),.mepa-home-mission h3 {margin-block:0 .65em}
.mepa-brand-title {font-size:var(--mepa-h4);font-weight:700;line-height:1.3}
.mepa-top,.mepa-top-inner,.mepa-brand-kicker,.mepa-brand-sub,
.eyebrow,.source,.mepa-breadcrumb,.mepa-source-note,.mepa-source-compact,
.mepa-category,.mepa-publication-date,.mepa-publication-label,.mepa-event-date,
.mepa-editorial-date,.wp-block-post-date,.wp-block-post-terms,
figcaption,.wp-element-caption,small,
.mepa-minister-role,.mepa-preview-note,.mepa-home-reference,.mepa-home-section-eyebrow,
.mepa-illustration-label,.mepa-chart-description .source,
.mepa-org-reference .eyebrow,.mepa-footer p {
 font-size:var(--mepa-meta);line-height:1.65;
}
.eyebrow,.mepa-brand-kicker,.mepa-home-section-eyebrow {font-weight:600;letter-spacing:.05em}
.mepa-minister-name {font-size:var(--mepa-h4);font-weight:700;line-height:1.35}
.mepa-footer h2 {font-size:var(--mepa-h4);font-weight:700;line-height:1.3}
.mepa-footer h3 {font-size:1.125rem}
.mepa-footer-bottom p {font-size:var(--mepa-meta)}
.mepa-org-chart,.mepa-chart-description,.mepa-chart-text {font-size:var(--mepa-text)}
.mepa-chart-node>details>summary,.mepa-tree summary,.mepa-org-text>summary {
 font-size:var(--mepa-ui);font-weight:600;line-height:1.4;
}
.mepa-chart-description p,.mepa-chart-text p {max-width:var(--mepa-reading)}
.mepa-org-reference p {font-size:var(--mepa-meta)}
.mepa-home-editor-help,.mepa-home-editor-badge {font-size:var(--mepa-meta);line-height:1.65}
/* Tables scroll in their own region; the document itself always reflows. */
.wp-block-table {max-width:100%;overflow-x:auto}
.wp-block-table table {font-size:var(--mepa-ui);line-height:1.5;min-width:0}
.wp-block-table th {font-weight:600}
.wp-block-table :is(td,th) {overflow-wrap:anywhere;padding:.7em}
:where(:lang(ar),[dir=rtl]) {font-family:var(--mepa-font-ar);direction:rtl;text-align:start;letter-spacing:normal}
:where(:lang(ar),[dir=rtl]) :where(h1,h2,h3,h4,h5,h6) {letter-spacing:normal}
@media(max-width:781px) {
 .mepa-top-inner {flex-wrap:wrap;gap:.5rem}
 .mepa-top-inner>div {flex-shrink:0}
 .mepa-brand .wp-block-search {flex-basis:100%;min-width:0}
 .mepa-chart-canvas .mepa-chart-children .mepa-chart-children {margin-inline:.25rem}
}
