/*
 * IslamBook
 * Copyright (c) 2026 Dr. Ahmed Gouda. All rights reserved.
 *
 * Email: webmaster@islambook.com
 * Website: www.islambook.com
 */
html.site-no-popover body#top > .theme-menu[popover] { display:none; }
html.site-no-popover #quran-division-popover:not([hidden]) { position:fixed; display:block; z-index:1100; }
html.site-no-popover .reader-select-popup:not([popover]):not([hidden]),
html.site-no-popover .quran-favorite-menu:not([popover]):not([hidden]),
html.site-no-popover .recite-menu:not([popover]):not([hidden]) { display:flex; flex-direction:column; }
html.site-legacy-mq .visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
@media (max-width:900px) {
 html.site-legacy-mq .page-layout--sidebars { grid-template-columns:minmax(0,1fr); }
 html.site-legacy-mq .page-layout--start { grid-template-areas:'content' 'start'; }
 html.site-legacy-mq .page-layout--end { grid-template-areas:'content' 'end'; }
 html.site-legacy-mq .page-layout--both { grid-template-areas:'content' 'start' 'end'; }
}
@media (max-width:767.98px) {
 html.site-legacy-mq .quran-controls-body .quran-browse { grid-template-columns:minmax(0,1fr); gap:12px; }
 html.site-legacy-mq .quran-ayah-menu-row { width:auto; }
 html.site-legacy-mq .quran-controls-partitions, html.site-legacy-mq .quran-controls-companions { grid-template-columns:minmax(0,1fr); gap:12px; }
 html.site-legacy-mq .quran-controls-companions label { flex-wrap:wrap; }
 html.site-legacy-mq .quran-controls-companions .reader-select { min-width:160px; }
 html.site-legacy-mq .quran-controls-body .reader-select-trigger { font-size:14px; }
 html.site-legacy-mq .quran-controls-body .quran-live-settings { grid-template-columns:minmax(0,1fr); }
 html.site-legacy-mq .quran-controls-heading { padding:14px; }
 html.site-legacy-mq .quran-controls-heading h2 { font-size:18px; }
 html.site-legacy-mq .quran-controls-reading { grid-template-columns:minmax(0,1fr); }
 html.site-legacy-mq .quran-controls-reading label { width:100%; }
 html.site-legacy-mq .quran-controls-reading .reader-select { flex:1; width:0; }
 html.site-legacy-mq .quran-control-step { min-width:42px; flex-basis:42px; }
 html.site-legacy-mq .quran-controls-partitions label { display:grid; grid-template-columns:minmax(0,1fr); gap:5px; }
 html.site-legacy-mq .quran-tajweed-key { gap:4px 9px; font-size:10px; }
}
@media (max-width:700px) {
 html.site-legacy-mq .container { width:calc(100% - 36px); }
 html.site-legacy-mq #top-area-container .header-inner { flex-wrap:wrap; }
 html.site-legacy-mq #top-area-container .main-nav { flex:1 0 100%; order:3; }
 html.site-legacy-mq #top-area-container .feature-nav { flex-wrap:wrap; gap:6px; }
 html.site-legacy-mq #top-area-container .feature-nav > li { flex:0 0 auto; }
 html.site-legacy-mq.js #top-area-container .main-nav { display:none; }
 html.site-legacy-mq.js #top-area-container.menu-open .main-nav { display:block; }
 html.site-legacy-mq.js #top-area-container .menu-toggle:not([hidden]) { display:inline-flex; }
}@media (max-width:767.98px) {
 html.site-legacy-mq .rr-hadith-hero-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:575.98px) {
 html.site-legacy-mq .rr-hadith-hero-stats { gap:.35rem; }
 html.site-legacy-mq .rr-hadith-hero-stat { flex-wrap:wrap; gap:.3rem; padding:.5rem; }
 html.site-legacy-mq .rr-hadith-hero-stat-icon { width:28px; height:28px; border-radius:8px; font-size:.8rem; }
 html.site-legacy-mq .rr-hadith-hero-stat dt { font-size:.72rem; }
 html.site-legacy-mq .rr-hadith-hero-stat dd { font-size:1rem; }
 html.site-legacy-mq .rr-hadith-hero-stat-totals > .rr-hadith-hero-stat-icon { display:none; }
 html.site-legacy-mq .rr-hadith-hero-stat-totals > div { width:100%; }
 html.site-legacy-mq .rr-hadith-hero-stat-total { gap:.25rem; }
 html.site-legacy-mq .rr-hadith-hero-stat-total dd { font-size:.9rem; }
}
