
/* v24.7 — Arabic heritage typography; exact online faces from Google Fonts under OFL.
   Offline: bundled Radi Amiri / Radi Sans / Noto faces maintain legibility and function. */
html.radi-next,html.radi-next[data-theme]{
  --radi-typ-ui:"Tajawal","Radi Sans","Noto Sans Arabic",sans-serif;
  --radi-typ-display:"Katibeh","Radi Amiri","Noto Naskh Arabic",serif;
  --radi-typ-poem:"Radi Amiri","Amiri","Noto Naskh Arabic",serif;
  --radi-typ-poem-head:"Aref Ruqaa","Radi Amiri","Noto Naskh Arabic",serif;
  --radi-typ-decor:"Rakkas","Katibeh","Radi Amiri",serif;
  --ui-font:var(--radi-typ-ui);
  --display-font:var(--radi-typ-display);
  --display:var(--radi-typ-display);
  --text:var(--radi-typ-poem);
}
html.radi-next body,
html.radi-next button,html.radi-next input,html.radi-next textarea,
html.radi-next select,html.radi-next option,html.radi-next .mobile-nav,
html.radi-next .topbar,html.radi-next .sidebar,html.radi-next .command-result-note,
html.radi-next .command-item,html.radi-next .radi-map-directory,
html.radi-next .radi-map-toolbar,html.radi-next .setting-row,
html.radi-next .v23-setting,html.radi-next .filter-chip,
html.radi-next .radi-breadcrumb{font-family:var(--radi-typ-ui)}
/* Katibeh is deliberately kept regular: artificial bold distorts its calligraphic shapes. */
html.radi-next :is(h1,h2,h3,h4,.hero-title,.section-title,.page-title,
 .modal-title,.brand-name,.radi-brand-name,.radi-static-title,
 .footer-signature,.radi-welcome h2,.radi-pathway h3,.radi-hero h1,
 #radiHeroTitle,.astro-node b,.astrolabe-center b){
 font-family:var(--radi-typ-display)!important;font-weight:400!important;
 font-synthesis:none;
}
/* Distinctive handwritten poetry headings, never used for dense body text. */
html.radi-next :is(.reader-head h1,.poem-title,.poem-card h3,
 .reader-poem-title,.poem-heading,.poem-card-title){
 font-family:var(--radi-typ-poem-head)!important;font-weight:700!important;
 font-synthesis:none;line-height:1.9;
}
html.radi-next :is(.verse,.hemistich,.poem-excerpt,.poem-snippet,.verse-body,
 .poem-sheet,.reader-sheet,.verse-card,.sidebar-verse,.quotation-text,
 .poem-footnotes,.notes,.lexicon-entry,.radi-static-verse){
 font-family:var(--poem-font,var(--radi-typ-poem));
}
html.radi-next :is(.description,.summary,.intro,.intro-text,.biography,
 .source-notes,.about-text,.essay-body,.poem-intro,.reader-intro p){
 font-family:var(--radi-typ-poem);font-weight:400;
}
html.radi-next :is(.meta,.small,.eyebrow,.chip,.badge,.pill,.nav,.top-actions){
 font-family:var(--radi-typ-ui);
}
html.radi-next :is(.radi-hero h1,#radiHeroTitle){
 font-size:clamp(54px,8.2vw,102px)!important;
 line-height:1.34!important;letter-spacing:0!important;
 overflow-wrap:normal!important;word-break:normal!important;
 text-wrap:balance;
}
html.radi-next :is(.radi-hero p,.radi-hero .hero-count){line-height:1.85}
html.radi-next .radi-hero p{font-family:var(--radi-typ-ui);font-size:clamp(15px,2vw,19px)}
html.radi-next :is(.radi-pathway h3,.unified-card b,.portal-card b,
 .astro-node b,.index-card h3){line-height:1.65}
html.radi-next :is(.radi-astrolabe-title,.astrolabe-title,.radi-constellation-title){
 font-family:var(--radi-typ-decor)!important;font-weight:400!important;
}
html.radi-next #readerView .hemistich{
 font-family:var(--poem-font,var(--radi-typ-poem))!important;
 line-height:2.05!important;font-synthesis:none;
}
html.radi-next #readerView .poem-sheet{font-feature-settings:"kern" 1,"liga" 1,"calt" 1,"mark" 1,"mkmk" 1}
html.radi-next :is(#radiReaderFontPreview,.radi-font-preview){
 font-family:var(--poem-font,var(--radi-typ-poem));
}
html.radi-next :is(#poemFontSelect,#v23Font){font-size:16px;line-height:1.6}
html.radi-next :is(#poemFontSelect option,#v23Font option){font-size:16px}
@media(max-width:620px){
 html.radi-next :is(.radi-hero h1,#radiHeroTitle){font-size:clamp(52px,14vw,75px)!important;line-height:1.28!important}
 html.radi-next :is(.radi-welcome h2,.section-head h2){line-height:1.55}
 html.radi-next .mobile-nav{font-size:13px}
 html.radi-next :is(.radi-pathway h3,.index-card h3){line-height:1.5}
 html.radi-next #readerView .hemistich{letter-spacing:0;word-spacing:0;line-height:1.95!important}
}
@media print{
 html.radi-next #readerView .hemistich{color:#111!important}
}
/* Offline-only typographic fallback: give headings enough strength without synthetic bolding Katibeh. */
html.radi-next[data-radi-fonts-fallback="true"] :is(.radi-hero h1,#radiHeroTitle,.radi-welcome h2,.radi-pathway h3,.section-head h2,.radi-brand-name){
 font-family:"Noto Naskh Arabic","Radi Amiri",serif!important;font-weight:700!important;
}

