/* 1.9.2 — readable line endings, paired telephone fields and complete media. */
body.ajrfed-design-on .ajrfed-v191-prose,
body.ajrfed-design-on .ajrfed-v191-hero-intro,
body.ajrfed-design-on .ajrfed-v190-prose :is(p,li),
body.ajrfed-design-on .entry-content :is(p,li),
body.ajrfed-design-on .ajrfed-v192-editorial :is(p,li) {
    text-align: justify !important;
    text-align-last: start !important;
    text-justify: inter-word;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    text-wrap: wrap !important;
    word-break: normal !important;
    overflow-wrap: break-word;
    hyphens: manual;
}
/* Headings, cards, short labels and the last/forced line must never be stretched. */
body.ajrfed-design-on :is(h1,h2,h3,h4,h5,h6),
body.ajrfed-design-on :is(.ajrfed-news-card,.ajrfed-publication-card,.ajrfed-v180-card,.ajrfed-publication-services,.ajrfed-book-authors) :is(p,li,h2,h3,h4),
body.ajrfed-design-on :is(.ajrfed-field-hint,.ajrfed-v192-media-help,.ajrfed-v192-media-error,.ajrfed-v191-upload-hint,.ajrfed-contribution-pages) {
    text-align: start !important;
    text-align-last: start !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    text-wrap: wrap !important;
    overflow-wrap: anywhere;
}
/* Preserve the existing centered site identity and menu/button layout. */
body.ajrfed-design-on :is(.site-title,.site-title a,.ajrfed-institution-subtitle,.ajrfed-brand-subtitle),
body.ajrfed-design-on .main-header-menu .menu-link {
    text-align: center !important;
    text-align-last: auto !important;
    word-spacing: normal !important;
}
body.ajrfed-design-on .ajrfed-v192-editorial {
    font-family: "Noto Kufi Arabic",Tahoma,Arial,sans-serif !important;
    color: inherit;
    line-height: 2.15;
}
html[lang^="en"] body.ajrfed-design-on .ajrfed-v192-editorial {font-family: system-ui,-apple-system,"Segoe UI",Arial,sans-serif !important;line-height:1.85;}
body.ajrfed-design-on .ajrfed-v192-editorial :is(p,li) {font-size:clamp(15px,1.1vw,18px) !important;line-height:2.15 !important;color:inherit !important;}
body.ajrfed-design-on ul.ajrfed-v192-list {list-style:none !important;margin:18px 0 !important;padding:0 !important;}
body.ajrfed-design-on ul.ajrfed-v192-list > li {position:relative;padding-inline-start:23px !important;margin:0 0 14px !important;}
body.ajrfed-design-on ul.ajrfed-v192-list > li::before {content:"";position:absolute;inset-inline-start:0;top:.88em;width:7px;height:7px;border-radius:2px;background:#D6B45C;transform:rotate(45deg);}
body.ajrfed-design-on .ajrfed-v192-list > li::marker {content:"";}
body.ajrfed-design-on .ajrfed-v192-publication-services article {display:block;}
body.ajrfed-design-on .ajrfed-v192-publication-services p::before {content:"";display:inline-block;width:7px;height:7px;background:#6B2A90;border-radius:2px;margin-inline-end:10px;vertical-align:middle;}
/* Native controls are not overlays: no transparent layer may block the play button. */
body.ajrfed-design-on .ajrfed-v192-media-player {position:relative;clear:both;width:100%;min-width:0;margin:22px 0;isolation:isolate;}
body.ajrfed-design-on .ajrfed-v192-media-player::before,
body.ajrfed-design-on .ajrfed-v192-media-player::after {display:none !important;}
body.ajrfed-design-on :is(video,audio).ajrfed-v192-native-media {display:block !important;width:100% !important;max-width:100% !important;height:auto !important;min-height:0 !important;max-height:80vh;object-fit:contain !important;opacity:1 !important;filter:none !important;pointer-events:auto !important;position:relative;z-index:1;}
body.ajrfed-design-on video.ajrfed-v192-native-media {background:#131019;border-radius:14px;aspect-ratio:16/9;}
body.ajrfed-design-on .ajrfed-v192-media-help {margin:8px 0 !important;font-size:13px !important;line-height:1.8 !important;}
body.ajrfed-design-on .ajrfed-v192-media-error {padding:10px 14px;background:#fff5ed;color:#7e3416;border:1px solid #e3bc9c;border-radius:10px;font-size:14px !important;}
body.ajrfed-design-on .ajrfed-v192-embed {position:relative;aspect-ratio:16/9;width:100%;margin-top:20px;background:#131019;border-radius:12px;overflow:hidden;}
body.ajrfed-design-on .ajrfed-v192-embed iframe {position:absolute;inset:0;width:100%;height:100%;border:0;}
body.ajrfed-design-on :is(.ajrfed-v190-article-gallery,.ajrfed-news-gallery) {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
body.ajrfed-design-on :is(.ajrfed-v190-article-gallery,.ajrfed-news-gallery) figure {margin:0 !important;min-width:0;}
body.ajrfed-design-on :is(.ajrfed-v190-article-gallery,.ajrfed-news-gallery) img {display:block;width:100% !important;height:auto !important;max-height:640px;min-height:0 !important;object-fit:contain !important;filter:none !important;opacity:1 !important;}
body.ajrfed-design-on :is(.ajrfed-v190-article-gallery,.ajrfed-news-gallery) figcaption {font-size:13px;line-height:1.9;text-align:start !important;margin-top:7px;}
body.ajrfed-design-on .ajrfed-v192-article-media {width:100%;min-width:0;}
/* One visual fieldset, two real fields: country code belongs to this number. */
body.ajrfed-design-on fieldset.ajrfed-v192-phone {border:1px solid #dfd3e8;border-radius:15px;background:#faf8fc;padding:18px;margin:0;min-width:0;}
body.ajrfed-design-on .ajrfed-v192-phone legend {font-size:14px;font-weight:700;padding-inline:8px;width:auto;}
body.ajrfed-design-on .ajrfed-v192-phone-row {display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.35fr);gap:12px;align-items:end;}
body.ajrfed-design-on .ajrfed-v192-phone-row > div {min-width:0;}
body.ajrfed-design-on .ajrfed-v192-phone-row :is(label,input,select) {width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
body.ajrfed-design-on .ajrfed-v192-phone-row label {display:block;text-align:start !important;font-size:13px;line-height:1.7;margin-bottom:8px;}
html[lang^="ar"] body.ajrfed-design-on .ajrfed-v192-phone-row label {direction:rtl;}
body.ajrfed-design-on .ajrfed-v192-phone-row :is(input,select) {direction:ltr !important;text-align:left !important;font-family:inherit;font-size:14px;min-height:49px;}
body.ajrfed-design-on .ajrfed-v192-phone output {display:block;width:max-content;max-width:100%;margin-top:10px;padding:8px 12px;border-radius:10px;background:#eee5f4;color:#49215f;font:600 15px/1.6 system-ui,sans-serif;overflow-wrap:anywhere;}
body.ajrfed-design-on .ajrfed-v192-phone output:empty {display:none;}
body.ajrfed-design-on .ajrfed-field-hint {font-size:13px !important;line-height:1.95 !important;margin:10px 0 0 !important;}
body.ajrfed-design-on .ajrfed-v192-support-upload {margin-top:18px;}
body.ajrfed-design-on .ajrfed-v192-authors article {display:block;padding:15px 0;border-bottom:1px solid #e5ddea;}
body.ajrfed-design-on .ajrfed-v192-authors article:last-child {border-bottom:0;}
body.ajrfed-design-on .ajrfed-v192-authors :is(b,span,p) {line-height:1.9;overflow-wrap:anywhere;}
body.ajrfed-design-on .ajrfed-v192-authors article > span {display:block;}
body.ajrfed-design-on .ajrfed-contribution-title {margin:7px 0 !important;font-size:13px !important;}
body.ajrfed-design-on .ajrfed-contribution-pages {color:#652689;font-size:12px !important;}
@media(max-width:767px){
    body.ajrfed-design-on .entry-content :is(p,li),
    body.ajrfed-design-on .ajrfed-v191-prose,
    body.ajrfed-design-on .ajrfed-v191-hero-intro,
    body.ajrfed-design-on .ajrfed-v192-editorial :is(p,li) {text-align:start !important;text-align-last:start !important;word-spacing:normal !important;text-wrap:wrap !important;}
    body.ajrfed-design-on :is(.ajrfed-v190-article-gallery,.ajrfed-news-gallery) {grid-template-columns:1fr;}
    body.ajrfed-design-on .ajrfed-v192-phone-row {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;}
    body.ajrfed-design-on fieldset.ajrfed-v192-phone {padding:14px 10px;}
    body.ajrfed-design-on .ajrfed-v192-editorial :is(p,li) {font-size:15px !important;line-height:2.1 !important;}
}
@media(prefers-reduced-motion:reduce){body.ajrfed-design-on .ajrfed-v192-media-player{scroll-behavior:auto;}}
/* Match the specificity of the earlier #content rule instead of relying on source order alone. */
body.ajrfed-design-on.ajrfed-v191 #content :is(h1,h2,h3,h4,h5,h6).ajrfed-v191-prose,
body.ajrfed-design-on.ajrfed-v191 #content :is(.ajrfed-news-card,.ajrfed-publication-card,.ajrfed-v180-card,.ajrfed-publication-services,.ajrfed-book-authors) .ajrfed-v191-prose,
body.ajrfed-design-on.ajrfed-v191 #content .ajrfed-v192-list li.ajrfed-v191-prose {
    text-align:start !important; text-align-last:start !important;
    word-spacing:normal !important; text-wrap:wrap !important;
}
@media(max-width:767px){
 body.ajrfed-design-on.ajrfed-v191 #content .ajrfed-v191-prose,
 body.ajrfed-design-on.ajrfed-v191 #content .ajrfed-v191-hero-intro,
 body.ajrfed-design-on.ajrfed-v191 #content .entry-content :is(p,li) {
    text-align:start !important; text-align-last:start !important;
    word-spacing:normal !important; text-wrap:wrap !important;
 }
}
body.ajrfed-design-on .ajrfed-v192-phone-row :is(input[type="tel"],select) {height:54px !important; min-height:54px !important; padding-block:10px !important;}
