/* QURANICALLY CANONICAL VISUAL SYSTEM • version 2
 * One grid, one header, one footer, one typographic rhythm across disciplines.
 * Page families may change accent and editorial artwork; geometry may not drift.
 * Loaded last by every public page. No runtime restyling or header flash.
 */
:root {
 --qst-frame:clamp(32px,6.5vw,104px);
 --qst-max:1280px;
 --qst-black:#1e1c1e;
 --qst-plum:#35202e;
 --qst-gold:#a88050;
 --qst-surface:#fffdfa;
 --qst-paper:#fbfaf7;
 --qst-border:#e8e0d4;
 --qst-text:#4e4949;
 --qst-shadow:0 12px 32px rgba(39,31,33,.065);
}
html{scroll-behavior:smooth;scroll-padding-top:25px}
body[data-qst-page]{background:var(--qst-paper);color:var(--qst-black);font-family:Manrope,'DM Sans',sans-serif;line-height:1.6;min-width:0}
body[data-qst-page] *,body[data-qst-page] *::before,body[data-qst-page] *::after{box-sizing:border-box}
body[data-qst-page] img,body[data-qst-page] svg{max-width:100%}
body[data-qst-page] main,body[data-qst-page] main>section,
body[data-qst-page] .results,body[data-qst-page] .reading-main{min-width:0}
body[data-qst-page] .shell,body[data-qst-page] .container,
body[data-qst-page] .qst-header .qst-top,body[data-qst-page] .qst-header .qst-links{
 width:min(calc(100% - var(--qst-frame)),var(--qst-max))!important;
 max-width:var(--qst-max)!important;
 margin-inline:auto!important;padding-inline:0!important;
}
body[data-qst-page] h1,body[data-qst-page] h2,body[data-qst-page] h3{color:var(--qst-black)}
body[data-qst-page] input,body[data-qst-page] button{font-family:Manrope,'DM Sans',sans-serif}
body[data-qst-page] a:focus-visible,body[data-qst-page] button:focus-visible,
body[data-qst-page] input:focus-visible,body[data-qst-page] select:focus-visible{
 outline:2px solid #a88050;outline-offset:3px;
}
/* Unified header: no extra band, no old design painted first. */
body[data-qst-page] > .top-line,body[data-qst-page] > .brand-rule{display:none!important}
body[data-qst-page] > header.qst-header{
 top:0!important;margin:0!important;position:relative!important;
 background:#fffdfa!important;border-top:0!important;
 border-bottom:1px solid var(--qst-border)!important;box-shadow:none!important;
 color:var(--qst-black)!important;
}
body[data-qst-page] .qst-header .qst-top{height:66px!important;min-height:66px!important;gap:16px}
body[data-qst-page] .qst-header .qst-nav{background:#fffdfa!important;border-top:1px solid #f0e9df!important}
body[data-qst-page] .qst-header .qst-links{min-height:43px!important;gap:clamp(14px,1.65vw,26px)!important;flex-wrap:nowrap!important}
body[data-qst-page] .qst-header .qst-links a{
 padding:12px 0 10px!important;line-height:1.35!important;font-size:11.5px!important;
 font-weight:700!important;letter-spacing:0!important;
}
body[data-qst-page] .qst-header .qst-brand strong{font-size:15px!important;color:#202024!important}
body[data-qst-page] .qst-header .qst-brand small{font-size:9px!important;letter-spacing:.09em!important}
body[data-qst-page] .qst-header .qst-brand img{width:39px!important;height:39px!important}
body[data-qst-page] .qst-header .qst-edition{font-size:9px!important;letter-spacing:.075em!important}
body[data-qst-page] .qst-header .qst-utility{min-width:0}
body[data-qst-page] .qst-header .qst-utility a{font-size:11px!important}
body[data-qst-page] .qst-header a[aria-current=page]{color:var(--qst-black)!important;border-bottom-color:var(--qst-gold)!important}
/* Consistent footer: one composition for index, reader and guidance. */
body[data-qst-page] .qst-site-footer{
 background:#181a1d;color:#ebe9e5!important;
 border-top:3px solid #b89563;padding:0!important;margin:0!important;
 font-family:Manrope,'DM Sans',sans-serif;
}
body[data-qst-page] .qst-footer-grid{
 padding-block:38px 30px!important;display:grid!important;
 grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr))!important;
 gap:clamp(20px,3.2vw,48px)!important;align-items:start!important;
}
body[data-qst-page] .qst-site-footer a{color:#dbd7d1!important;text-decoration:none!important}
body[data-qst-page] .qst-site-footer a:hover{color:#e3bc82!important}
body[data-qst-page] .qst-footer-identity{display:inline-flex!important;align-items:center;gap:12px;font-size:15px;font-weight:800;letter-spacing:.08em;color:#fff!important}
body[data-qst-page] .qst-footer-identity img{width:38px;height:38px;flex-shrink:0}
body[data-qst-page] .qst-footer-identity small{display:block;font-size:8px;font-weight:650;letter-spacing:.11em;color:#baaeb0}
body[data-qst-page] .qst-footer-intro p{font-size:12px!important;color:#bdb8b2!important;line-height:1.75;max-width:355px;margin:15px 0!important}
body[data-qst-page] .qst-footer-integrity{display:block;color:#d0ab75!important;font-size:9px!important;font-weight:800;letter-spacing:.09em}
body[data-qst-page] .qst-footer-group{display:grid;gap:9px;align-content:start}
body[data-qst-page] .qst-footer-group h2{color:#dabf99!important;font:750 10px/1.5 Manrope,sans-serif!important;letter-spacing:.12em;text-transform:uppercase;margin:3px 0 4px}
body[data-qst-page] .qst-footer-group a{font-size:12px!important;line-height:1.55}
body[data-qst-page] .qst-footer-group p{font-size:11px!important;line-height:1.7!important;color:#b5aea8!important;margin:4px 0}
body[data-qst-page] .qst-footer-bottom{
 border-top:1px solid #414247;padding-block:14px 18px!important;
 display:flex;justify-content:space-between;gap:12px;color:#aea9a7;font-size:10px!important;
}
/* Base page typography: black headings, comfortable reading lengths. */
body[data-qst-page] .overline,body[data-qst-page] .qst-eyebrow,body[data-qst-page] .side-label{
 font-size:10px!important;letter-spacing:.11em!important;
}
body[data-qst-page] .qa-part p,body[data-qst-page] .article-section p{max-width:76ch}
/* ENCYLOPEDIA: search and actual information share the first viewport. */
body[data-qst-page=encyclopedia] .breadcrumbs{padding-block:13px!important;min-height:42px!important}
body[data-qst-page=encyclopedia] .qst-search-home{
 padding:clamp(25px,3vw,43px) 0 clamp(24px,2.7vw,38px)!important;
 min-height:0!important;margin-top:0!important;
}
body[data-qst-page=encyclopedia] .qst-search-home h1{
 font-size:clamp(34px,3.7vw,52px)!important;line-height:1.08!important;
 margin:7px 0 11px!important;letter-spacing:-.035em!important;
}
body[data-qst-page=encyclopedia] .qst-lede{
 font-size:13px!important;line-height:1.65!important;max-width:660px!important;
 margin:0 auto 19px!important;
}
body[data-qst-page=encyclopedia] .qst-main-search{
 max-width:900px!important;min-height:60px!important;height:auto!important;
 padding:5px 6px 5px 17px!important;border-radius:12px!important;
 box-shadow:var(--qst-shadow)!important;margin:0 auto!important;
}
body[data-qst-page=encyclopedia] .qst-main-search input{min-width:0;font-size:13px!important}
body[data-qst-page=encyclopedia] .qst-main-search button{min-height:45px!important;background:#2a1e2a!important;font-weight:750}
body[data-qst-page=encyclopedia] .qst-search-hints{margin-top:12px!important;gap:7px!important}
body[data-qst-page=encyclopedia] .qst-search-hints button{
 background:#fff!important;border:1px solid #e2d7cb!important;
 border-radius:999px!important;padding:6px 12px!important;
 font-size:11px!important;line-height:1.5!important;
}
body[data-qst-page=encyclopedia] .qst-integrity{font-size:11px!important;line-height:1.6!important;margin:13px auto 0!important;max-width:740px!important}
body[data-qst-page=encyclopedia] .reference-work{padding-top:18px!important;gap:28px!important;grid-template-columns:205px minmax(0,1fr) 206px!important}
body[data-qst-page=encyclopedia] .results h2{font-size:clamp(23px,2.3vw,32px)!important;color:var(--qst-black)!important}
body[data-qst-page=encyclopedia] .entry-row{
 position:relative;background:#fff;border:1px solid var(--qst-border)!important;
 border-radius:12px;padding:20px 22px!important;margin:0 0 12px;
 box-shadow:0 6px 25px rgba(36,26,22,.025);min-width:0;
}
body[data-qst-page=encyclopedia] .entry-row:hover{border-color:#c8ad8c!important;box-shadow:var(--qst-shadow);transform:translateY(-1px)}
body[data-qst-page=encyclopedia] .entry-row h3{font-size:clamp(18px,1.7vw,22px)!important;line-height:1.28!important}
body[data-qst-page=encyclopedia] .entry-row .description{font-size:12px!important;line-height:1.72!important}
body[data-qst-page=encyclopedia] .entry-row .entry-side{min-width:0}
body[data-qst-page=encyclopedia] .entry-row .entry-arabic{font-size:20px!important}
body[data-qst-page=encyclopedia] .entry-row .entry-domain{color:#805b44!important}
body[data-qst-page=encyclopedia] .subject-controls button.active{border-left-color:#987149!important}
body[data-qst-page=encyclopedia] .inline-answer{border-radius:12px!important;box-shadow:var(--qst-shadow)}
body[data-qst-page=encyclopedia] .article-shell{gap:clamp(22px,3vw,38px)!important}
body[data-qst-page=encyclopedia] .article-intro h1{font-size:clamp(31px,3vw,45px)!important;line-height:1.16!important}
body[data-qst-page=encyclopedia] .article-body{min-width:0}
body[data-qst-page=encyclopedia] .article-toc{top:22px}
/* Distinct discipline identity without altering shared structural dimensions. */
body[data-qst-page=encyclopedia]:has(.subject-controls [data-domain=quranic_themes].active){--qst-discipline:#177769}
body[data-qst-page=encyclopedia]:has(.subject-controls [data-domain=sunnah].active){--qst-discipline:#3b6581}
body[data-qst-page=encyclopedia]:has(.subject-controls [data-domain=seerah].active){--qst-discipline:#b1814a}
body[data-qst-page=encyclopedia]:has(.subject-controls [data-domain=prophetic_medicine].active){--qst-discipline:#a45c45}
body[data-qst-page=encyclopedia]:has(.subject-controls [data-domain=living_guidance].active){--qst-discipline:#7f4e71}
body[data-qst-page=encyclopedia] .subjects .subject-controls button.active{border-left-color:var(--qst-discipline,#8b6147)!important}
body[data-qst-page=encyclopedia] .results-head h2{border-left:3px solid var(--qst-discipline,#a88050);padding-left:13px}
/* GUIDANCE: an editorial and interactive pathway, not a 600px splash. */
body[data-qst-page=guidance] .hero{min-height:0!important;overflow:hidden}
body[data-qst-page=guidance] .hero-grid{
 min-height:0!important;grid-template-columns:minmax(0,1.45fr) minmax(190px,.55fr)!important;
 gap:clamp(20px,4vw,55px)!important;padding:35px 0 38px!important;
}
body[data-qst-page=guidance] .hero h1{
 font-size:clamp(37px,3.8vw,54px)!important;line-height:1.11!important;
 margin:13px 0!important;letter-spacing:-.037em!important;
}
body[data-qst-page=guidance] .hero-desc{
 font-size:13px!important;line-height:1.75!important;max-width:650px!important;
 margin:0 0 17px!important;
}
body[data-qst-page=guidance] .search-wrap{max-width:710px!important;min-height:57px;padding:5px 6px 5px 14px!important}
body[data-qst-page=guidance] .search-wrap button{min-height:44px;padding:10px 18px!important}
body[data-qst-page=guidance] .suggestions{margin-top:11px!important;gap:7px}
body[data-qst-page=guidance] .hero-right{min-height:225px!important}
body[data-qst-page=guidance] .hero-art{inset:-20px -10px!important}
body[data-qst-page=guidance] .hero-art svg{max-width:275px!important}
body[data-qst-page=guidance] .hero-revelation{
 min-height:225px!important;max-width:265px!important;
 padding:22px 18px!important;gap:6px!important;
 border-radius:130px 130px 12px 12px!important;
 box-shadow:0 15px 44px rgba(28,14,23,.15)!important;
}
body[data-qst-page=guidance] .hero-revelation .ar-ornament{font-size:clamp(23px,2.4vw,34px)!important}
body[data-qst-page=guidance] .hero-revelation p{font-size:11px!important;line-height:1.6}
body[data-qst-page=guidance] .ribbon{background:#314d54!important}
body[data-qst-page=guidance] .ribbon-inner{min-height:53px!important}
body[data-qst-page=guidance] .ribbon-left strong{font-size:16px!important}
body[data-qst-page=guidance] .guide-intro{padding-top:34px!important;padding-bottom:55px!important}
body[data-qst-page=guidance] .introduction h2{font-size:clamp(27px,2.8vw,40px)!important}
/* READER: the Quran, not a second Living Guidance page, owns this viewport. */
body[data-qst-page=reader] .full-qreader{background:#fffdfa}
body[data-qst-page=reader] .qrHero{background:linear-gradient(116deg,#183b36,#174c46 63%,#3c6557)!important}
body[data-qst-page=reader] .qrHeroGrid{
 padding:30px 0 30px!important;
 grid-template-columns:minmax(0,1.5fr) minmax(160px,.5fr)!important;
 gap:clamp(18px,3vw,45px)!important;
}
body[data-qst-page=reader] .qrHero h1{
 color:#fff!important;font-size:clamp(37px,3.5vw,51px)!important;
 margin:10px 0!important;line-height:1.13!important;
}
body[data-qst-page=reader] .qrHero p{font-size:13px!important;line-height:1.7!important}
body[data-qst-page=reader] .qrArt{min-height:145px!important}
body[data-qst-page=reader] .qrArt span{font-size:clamp(28px,3vw,43px)!important}
body[data-qst-page=reader] .qrBody{padding-top:28px!important}
body[data-qst-page=reader] .qrReaderHead h2{font-size:clamp(25px,2.5vw,36px)!important}
body[data-qst-page=reader] .qrAyah,.full-qreader .qrAyah{min-width:0}
body[data-qst-page=reader] .qrArabic{line-height:2.1!important}
/* Tablet: two-column knowledge layout, no dead empty rail. */
@media(max-width:1120px){
 body[data-qst-page=encyclopedia] .reference-work{grid-template-columns:185px minmax(0,1fr)!important;gap:23px!important}
 body[data-qst-page=encyclopedia] .reference-rail{display:none!important}
 body[data-qst-page=encyclopedia] .article-shell{grid-template-columns:165px minmax(0,1fr)!important}
 body[data-qst-page=encyclopedia] .article-aside{display:none!important}
}
/* Mobile: direct answer/actions and readable content before decorative chrome. */
@media(max-width:800px){
 :root{--qst-frame:32px}
 body[data-qst-page] .qst-header .qst-top{height:64px!important;min-height:64px!important}
 body[data-qst-page] .qst-header .qst-links{
  min-height:39px!important;overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:none;gap:15px!important;scroll-snap-type:x proximity!important;
 }
 body[data-qst-page] .qst-header .qst-links::-webkit-scrollbar{display:none}
 body[data-qst-page] .qst-header .qst-links a{font-size:11px!important;padding:10px 0 9px!important;scroll-snap-align:start!important}
 body[data-qst-page] .qst-header .qst-brand small{font-size:7.5px!important}
 body[data-qst-page] .qst-header .qst-edition{display:none!important}
 body[data-qst-page] .qst-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 20px!important;padding-block:29px 25px!important}
 body[data-qst-page] .qst-footer-intro{grid-column:1/-1}
 body[data-qst-page] .qst-footer-bottom{display:grid;gap:5px}
 body[data-qst-page=encyclopedia] .qst-search-home{padding:24px 0 24px!important}
 body[data-qst-page=encyclopedia] .qst-search-home h1{font-size:clamp(31px,7.8vw,41px)!important}
 body[data-qst-page=encyclopedia] .qst-lede{font-size:12.5px!important;margin-bottom:16px!important}
 body[data-qst-page=encyclopedia] .qst-main-search{min-height:56px!important;gap:7px!important}
 body[data-qst-page=encyclopedia] .qst-main-search button{min-height:43px!important;padding:9px 12px!important}
 body[data-qst-page=encyclopedia] .qst-search-hints{justify-content:flex-start!important;gap:6px!important}
 body[data-qst-page=encyclopedia] .qst-search-hints button{padding:5px 9px!important;font-size:10px!important}
 body[data-qst-page=encyclopedia] .qst-integrity{font-size:10px!important}
 body[data-qst-page=encyclopedia] .reference-work{display:block!important;padding-top:12px!important}
 body[data-qst-page=encyclopedia] .subjects{position:relative!important;padding-bottom:12px!important}
 body[data-qst-page=encyclopedia] .subject-controls{overflow-x:auto;max-width:100%!important}
 body[data-qst-page=encyclopedia] .entry-row{padding:17px 15px!important;gap:12px!important}
 body[data-qst-page=encyclopedia] .entry-row .entry-side{max-width:115px}
 body[data-qst-page=encyclopedia] .entry-row h3{font-size:18px!important}
 body[data-qst-page=encyclopedia] .entry-row .description{font-size:12px!important}
 body[data-qst-page=encyclopedia] .article-shell{display:block!important}
 body[data-qst-page=encyclopedia] .article-toc{position:static!important}
 body[data-qst-page=guidance] .hero-grid{display:block!important;padding:19px 0 17px!important}
 body[data-qst-page=guidance] .hero h1{font-size:clamp(33px,8.5vw,42px)!important}
 body[data-qst-page=guidance] .hero-right{display:none!important}
 body[data-qst-page=guidance] .search-wrap button{padding:10px 12px!important}
 body[data-qst-page=guidance] .ribbon-inner{min-height:48px!important}
 body[data-qst-page=guidance] .ribbon-points{display:none!important}
 body[data-qst-page=guidance] .guide-intro{padding-top:26px!important}
 body[data-qst-page=guidance] .introduction h2{font-size:30px!important}
 body[data-qst-page=reader] .qrHeroGrid{display:block!important;padding:26px 0!important}
 body[data-qst-page=reader] .qrHero h1{font-size:clamp(32px,8vw,40px)!important}
 body[data-qst-page=reader] .qrHero p{font-size:12px!important}
 body[data-qst-page=reader] .qrArt{display:none!important}
 body[data-qst-page=reader] .qrBody{padding-top:21px!important}
}
@media(max-width:390px){
 body[data-qst-page=encyclopedia] .qst-main-search{padding-left:9px!important}
 body[data-qst-page=encyclopedia] .qst-main-search input{font-size:11px!important;min-width:0!important}
 body[data-qst-page=encyclopedia] .qst-main-search button{font-size:11px!important;padding:8px 10px!important}
 body[data-qst-page=encyclopedia] .entry-row{grid-template-columns:minmax(0,1fr)!important}
 body[data-qst-page=encyclopedia] .entry-row .entry-side{max-width:none;display:flex;justify-content:space-between;gap:8px!important;align-items:center}
 body[data-qst-page=encyclopedia] .entry-row .entry-arabic{font-size:16px!important}
 body[data-qst-page=guidance] .search-wrap input{font-size:11px!important;min-width:0!important}
 body[data-qst-page=guidance] .search-wrap button{font-size:11px!important}
}
/* Preserve print fidelity and native audio controls */
@media print{body[data-qst-page] .qst-site-footer{display:none!important}}

/* Contextual actions do not invade the one canonical header. */
body[data-qst-page=guidance] .qst-collection-cta{margin-top:14px}
body[data-qst-page=guidance] .qst-collection-cta button{
 border:1px solid #d3ba9e;background:rgba(255,255,255,.82);color:#37212f;
 border-radius:999px;padding:9px 14px;cursor:pointer;
 font:750 11px/1.4 Manrope,sans-serif;box-shadow:none;
}
body[data-qst-page=guidance] .qst-collection-cta button span{
 display:inline-grid;place-items:center;margin-left:8px;width:22px;height:22px;
 background:#35202e;color:#fff;border-radius:50%;font-size:10px;
}
body[data-qst-page=guidance] .qst-collection-cta button:hover{background:#fff}

/* Visual audit fixes: colored legacy band and dark-on-dark headings were
   inherited, not part of the unified identity. */
body[data-qst-page=guidance] > .top-rule{display:none!important}
body[data-qst-page=encyclopedia] .reference-rail .focus-card h3,
body[data-qst-page=encyclopedia] .reference-rail .focus-card b{
 color:#fff3dc!important;
}
body[data-qst-page=encyclopedia] .reference-rail .focus-card p,
body[data-qst-page=encyclopedia] .reference-rail .focus-card .side-label{
 color:#ddbfaa!important;
}
body[data-qst-page=encyclopedia] .reference-rail .focus-card a{color:#efc68e!important}
body[data-qst-page=encyclopedia] .methodology-section h2,
body[data-qst-page=encyclopedia] .methodology-section h3{color:var(--qst-black)!important}
/* Let the verse itself, not 400px of playback chrome, reach the Reader's
   initial viewport. Keep all native recitation and word-study controls. */
body[data-qst-page=reader] .qrHeroActions{margin-top:13px!important}
body[data-qst-page=reader] .qrReaderHead{margin-bottom:16px!important}
body[data-qst-page=reader] .qrControlPanel{
 padding:15px 18px!important;margin-bottom:23px!important;
}
body[data-qst-page=reader] .qrControlTop{gap:12px!important}
body[data-qst-page=reader] .qrInputGroup{gap:4px!important}
body[data-qst-page=reader] .qrControlBottom{
 margin-top:10px!important;gap:10px!important;
}
body[data-qst-page=reader] .qrAudioBar{
 margin-top:11px!important;padding:8px 11px!important;
}
body[data-qst-page=reader] .qrMicro{margin-top:6px!important}
body[data-qst-page=reader] .qrAyah{padding:19px 14px 22px!important}

/* PROPHETIC MEDICINE — canonical geometry with its own botanical editorial voice. */
body[data-qst-page=tibb] > .edge{display:none!important}
body[data-qst-page=tibb] .hero{
 min-height:0!important;background:radial-gradient(circle at 90% 42%,#ebd7b8 0,transparent 37%),linear-gradient(115deg,#fffaf0,#f5e9d6)!important;
 border-bottom:1px solid #e9dccd;
}
body[data-qst-page=tibb] .hero-layout{
 min-height:0!important;padding:36px 0!important;
 display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(200px,.55fr)!important;
 gap:clamp(24px,4vw,60px)!important;
}
body[data-qst-page=tibb] .herocopy{padding:0!important}
body[data-qst-page=tibb] .hero h1{
 font-size:clamp(36px,3.85vw,54px)!important;line-height:1.12!important;
 margin:11px 0 15px!important;letter-spacing:-.04em!important;
 color:var(--qst-black)!important;
}
body[data-qst-page=tibb] .hero h1 em{color:#955b42!important}
body[data-qst-page=tibb] .hero .lead{
 font-size:13px!important;line-height:1.75!important;
 max-width:680px!important;margin-bottom:17px!important;
}
body[data-qst-page=tibb] .searchbox{
 max-width:730px!important;min-height:58px!important;
 padding:5px 6px 5px 15px!important;
 border-radius:11px!important;box-shadow:var(--qst-shadow)!important;
}
body[data-qst-page=tibb] .searchbox button{min-height:44px!important}
body[data-qst-page=tibb] .quick{margin:12px 0 0!important;font-size:10px!important}
body[data-qst-page=tibb] .quick button{border-radius:999px!important}
body[data-qst-page=tibb] .heroart{padding:0!important;min-width:0}
body[data-qst-page=tibb] .orb{
 width:min(100%,220px)!important;border-width:6px!important;
 box-shadow:0 14px 40px rgba(61,34,35,.1)!important;
}
body[data-qst-page=tibb] .heroart .arabic{font-size:23px!important;margin:6px 0 0!important;line-height:1.6!important}
body[data-qst-page=tibb] .heroart .artcaption{font-size:10px!important;line-height:1.5!important}
body[data-qst-page=tibb] .sectionlead h2{font-size:clamp(26px,2.8vw,40px)!important;color:var(--qst-black)!important}
body[data-qst-page=tibb] .entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
body[data-qst-page=tibb] .entry{
 min-height:0!important;padding:22px!important;
 background:#fff!important;box-shadow:var(--qst-shadow)!important;
}
body[data-qst-page=tibb] .entry h3{font-size:clamp(19px,1.6vw,24px)!important;color:var(--qst-black)!important}
body[data-qst-page=tibb] .med-icon{border-radius:14px!important;background:#f4e8d9!important}
body[data-qst-page=tibb] .entry:hover{transform:translateY(-2px)!important;border-color:#bc9775!important}
body[data-qst-page=tibb] .detail-panel{max-width:min(100%,900px)}
@media(max-width:1100px){
 body[data-qst-page=tibb] .entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:800px){
 body[data-qst-page=tibb] .hero-layout{display:block!important;padding:26px 0!important}
 body[data-qst-page=tibb] .herocopy{padding:0!important}
 body[data-qst-page=tibb] .hero h1{font-size:clamp(31px,8vw,42px)!important}
 body[data-qst-page=tibb] .hero .lead{font-size:12px!important;line-height:1.65!important}
 body[data-qst-page=tibb] .heroart{display:none!important}
 body[data-qst-page=tibb] .searchbox{padding-left:10px!important;gap:6px!important}
 body[data-qst-page=tibb] .searchbox input{min-width:0!important;font-size:12px!important}
 body[data-qst-page=tibb] .searchbox button{padding:9px 11px!important;font-size:11px!important}
 body[data-qst-page=tibb] .entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body[data-qst-page=tibb] .entry{padding:18px!important}
}
@media(max-width:520px){
 body[data-qst-page=tibb] .entry-grid{grid-template-columns:minmax(0,1fr)!important}
 body[data-qst-page=tibb] .entry{min-height:0!important}
}

/* Footer geometry lock: older Reader/Guidance styles used generic
   `footer span`, `footer a` and `footer p` selectors. Eliminate inherited
   cross-page variations at tablet widths without hiding or truncating text. */
body[data-qst-page] .qst-site-footer .qst-footer-identity>span{
 display:block!important;font:800 15px/1.32 Manrope,sans-serif!important;
 letter-spacing:.08em!important;color:#fff!important;margin:0!important;
}
body[data-qst-page] .qst-site-footer .qst-footer-identity small{
 display:block!important;font:700 8px/1.5 Manrope,sans-serif!important;
 letter-spacing:.11em!important;color:#baaeb0!important;margin:0!important;
}
body[data-qst-page] .qst-site-footer .qst-footer-intro>p{
 font:400 12px/1.75 Manrope,sans-serif!important;
 color:#bdb8b2!important;margin:15px 0!important;
}
body[data-qst-page] .qst-site-footer .qst-footer-integrity{
 font:800 9px/1.6 Manrope,sans-serif!important;
 letter-spacing:.09em!important;color:#d0ab75!important;margin:0!important;
}
body[data-qst-page] .qst-site-footer .qst-footer-group>a{
 display:block!important;font:500 12px/1.55 Manrope,sans-serif!important;
 color:#dbd7d1!important;margin:0!important;padding:0!important;
}
body[data-qst-page] .qst-site-footer .qst-footer-group>p{
 font:400 11px/1.7 Manrope,sans-serif!important;color:#b5aea8!important;margin:4px 0!important;
}
body[data-qst-page] .qst-site-footer .qst-footer-bottom>span{
 font:500 10px/1.5 Manrope,sans-serif!important;color:#aea9a7!important;
 letter-spacing:0!important;margin:0!important;
}


/* QST DISTINCT DISCIPLINE EXPERIENCES
   No generic A–Z clone: the primary subject journeys and their records are
   rendered from the existing Admin-managed encyclopedia API. Shared shell is untouched. */
.qst-discipline-experience[hidden]{display:none!important}
html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .qst-search-home{display:none!important}
html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .breadcrumbs{padding-block:10px!important}
html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .reference-rail{display:none!important}
html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .reference-work{
 display:grid!important;grid-template-columns:193px minmax(0,1fr)!important;
 gap:clamp(20px,2.5vw,37px)!important;padding-top:22px!important
}
html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .alphabet{display:none!important}
html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .results-head{margin-bottom:18px}
html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .results-head .overline{color:#8d7159}
html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .results h2{font-size:clamp(24px,2.3vw,33px)!important}
.qst-discipline-experience{margin-top:6px!important}
.qst-discipline-hero{
 --disc-bg:#153e36;--disc-fg:#f6f4e9;--disc-line:rgba(255,255,255,.24);--disc-accent:#e5c792;
 border:1px solid var(--disc-line);border-radius:17px;overflow:hidden;
 display:grid;grid-template-columns:minmax(0,1.17fr) minmax(230px,.83fr);
 align-items:stretch;background:var(--disc-bg);color:var(--disc-fg);
 box-shadow:0 16px 36px rgba(27,31,26,.09);
}
.qst-discipline-copy{padding:clamp(25px,3.4vw,48px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
.qst-discipline-copy .qst-discipline-kicker{margin:0 0 12px;color:var(--disc-accent);letter-spacing:.18em;font-size:10px;font-weight:800}
.qst-discipline-copy h2{
 color:var(--disc-fg)!important;font:500 clamp(29px,3vw,43px)/1.14 'Playfair Display',Georgia,serif!important;
 max-width:690px;letter-spacing:-.033em;margin:0 0 13px!important;
}
.qst-discipline-copy>p:not(.qst-discipline-kicker){margin:0 0 15px;color:var(--disc-fg);opacity:.9;font-size:12px;line-height:1.78;max-width:68ch}
.qst-discipline-cta{
 display:inline-flex;align-items:center;gap:9px;border:1px solid var(--disc-line);
 padding:10px 14px;border-radius:7px;color:var(--disc-accent)!important;
 font-size:11px;font-weight:800;text-decoration:none;transition:background .18s;
}
.qst-discipline-cta:hover{background:rgba(255,255,255,.12)}
.qst-discipline-cta svg{width:14px;height:14px}
.qst-discipline-art{
 padding:22px;min-height:226px;display:flex;flex-direction:column;gap:18px;
 align-items:center;justify-content:center;text-align:center;
 border-left:1px solid var(--disc-line);
 background:radial-gradient(ellipse at 65% 36%,rgba(255,255,255,.14),transparent 55%),linear-gradient(115deg,transparent,rgba(0,0,0,.14));
 position:relative;overflow:hidden;
}
.qst-discipline-art:before{content:"";position:absolute;inset:20px;border:1px solid var(--disc-line);border-radius:110px 110px 9px 9px;opacity:.55;pointer-events:none}
.qst-discipline-art span{font:400 clamp(23px,2.5vw,37px)/1.8 'Amiri',serif;color:var(--disc-accent);max-width:100%;position:relative}
.qst-discipline-art small{font:750 10px/1.6 Manrope,sans-serif;letter-spacing:.14em;color:var(--disc-fg);opacity:.8;position:relative}
.qst-discipline-form{
 grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;
 gap:10px 17px;padding:14px clamp(20px,3vw,44px);
 background:rgba(0,0,0,.20);border-top:1px solid var(--disc-line);
}
.qst-discipline-form>label{color:var(--disc-accent);font-size:10px;font-weight:800;letter-spacing:.075em;flex:none}
.qst-discipline-search-slot{flex:1 1 420px;min-width:0}
.qst-discipline-search-slot .qst-main-search{
 width:100%!important;max-width:none!important;margin:0!important;
 min-height:49px!important;background:#fff!important;border:1px solid #ded9ce!important;
 border-radius:8px!important;box-shadow:none!important;
}
.qst-discipline-search-slot .qst-main-search input{font-size:13px!important}
.qst-discipline-search-slot .qst-main-search button{background:#33202d!important;color:#fff!important}
.qst-discipline-prompts{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.qst-discipline-prompts button{border:1px solid var(--disc-line);background:transparent;color:var(--disc-fg);font-size:10px;font-weight:650;padding:7px 10px;border-radius:20px;cursor:pointer}
.qst-discipline-prompts button:hover{background:rgba(255,255,255,.14)}
html[data-qst-discipline=sunnah] .qst-discipline-hero{--disc-bg:#28222b;--disc-accent:#e5c498}
html[data-qst-discipline=seerah] .qst-discipline-hero{--disc-bg:#55412e;--disc-accent:#f0d0a0}
html[data-qst-discipline=prophetic_medicine] .qst-discipline-hero{--disc-bg:#264437;--disc-accent:#e9d5a4}
html[data-qst-discipline=living_guidance] .qst-discipline-hero{--disc-bg:#343c55;--disc-accent:#f2d2b6}
html[data-qst-discipline=sunnah] .qst-discipline-art:before{border-radius:8px}
html[data-qst-discipline=seerah] .qst-discipline-art:before{border-radius:50%}
html[data-qst-discipline=living_guidance] .qst-discipline-art:before{border-radius:24px}
.qst-learning-intro{color:#73675d;font-size:12px;line-height:1.7;padding:0 0 12px;margin:0}
.qst-learning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.qst-learning-card{
 display:flex;flex-direction:column;gap:0;min-width:0;padding:22px 22px 18px;
 background:#fff;border:1px solid #e7e1d8;border-radius:11px;position:relative;
}
.qst-learning-head{display:flex;justify-content:space-between;gap:8px;align-items:center;
 color:#996d39;font-size:9px;font-weight:850;letter-spacing:.11em}
.qst-learning-head small{color:#a7a09a;font-size:10px}
.qst-learning-card h3{margin:10px 0 7px!important;color:#322932!important;
 font:500 clamp(18px,1.6vw,23px)/1.24 'Playfair Display',Georgia,serif!important;letter-spacing:-.025em}
.qst-learning-card h3 a:hover{color:#85592c}
.qst-learning-arabic{font:400 21px/1.7 Amiri,serif;color:#a88050;margin:3px 0 7px;min-height:0}
.qst-learning-summary{font-size:12px;line-height:1.72;color:#665d58;margin:5px 0 17px;
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.qst-learning-foot{margin-top:auto;padding-top:13px;border-top:1px solid #eee8df;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.qst-learning-foot>span{font-size:10px;color:#746a62;display:flex;align-items:flex-start;gap:5px;overflow-wrap:anywhere;min-width:0;flex:1 1 100%}
.qst-learning-foot>span svg{width:13px;height:13px;flex:none}
.qst-learning-foot small{font-size:10px;color:#8b8378}
.qst-learning-foot>a{margin-left:auto;display:inline-flex;gap:5px;align-items:center;
 color:#3d6d74;font-size:11px;font-weight:800;white-space:nowrap}
.qst-learning-foot>a svg{width:13px;height:13px}
html[data-qst-discipline=sunnah] .qst-learning-grid{grid-template-columns:1fr}
html[data-qst-discipline=sunnah] .qst-learning-card{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.52fr);column-gap:22px;
 border-radius:3px;border-left:4px solid #ad8556;
}
html[data-qst-discipline=sunnah] .qst-learning-head{grid-column:1/-1}
html[data-qst-discipline=sunnah] .qst-learning-card h3,
html[data-qst-discipline=sunnah] .qst-learning-summary{grid-column:1}
html[data-qst-discipline=sunnah] .qst-learning-arabic{grid-column:2;grid-row:2/4;align-self:center;text-align:center;border-left:1px solid #eee4dc;padding:16px}
html[data-qst-discipline=sunnah] .qst-learning-foot{grid-column:1/-1}
html[data-qst-discipline=quranic_themes] .qst-learning-card{border-top:3px solid #2b7667}
html[data-qst-discipline=prophetic_medicine] .qst-learning-card{border-top:3px solid #8d9b76}
html[data-qst-discipline=living_guidance] .qst-learning-card{border-top:3px solid #7585ae}
.qst-seerah-journey{position:relative;padding:0 0 0 20px;border-left:1px solid #c4b096}
.qst-seerah-stage{position:relative;margin-bottom:22px}
.qst-seerah-stage:before{content:"";position:absolute;left:-26px;top:13px;width:11px;height:11px;border-radius:50%;background:#a98150;border:3px solid #faf8f3;box-shadow:0 0 0 1px #a98150}
.qst-seerah-stage>header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.qst-seerah-stage>header b{font:700 12px Georgia,serif;color:#8c704c}
.qst-seerah-stage>header h3{font:500 24px/1.3 'Playfair Display',Georgia,serif;color:#42342c;margin:0}
.qst-seerah-studies{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.qst-seerah-studies .qst-learning-card{border-radius:7px}
.qst-seerah-caveat{font-size:11px;color:#8e806f;line-height:1.65}
.qst-learning-empty{padding:20px;background:#fff8ed;border:1px solid #eadbc2;border-radius:8px;color:#66594c;font-size:12px}
@media(max-width:950px){
 html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .reference-work{grid-template-columns:1fr!important}
 html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page=encyclopedia] .subjects{
  position:static!important;display:none!important
 }
 .qst-discipline-hero{grid-template-columns:minmax(0,1fr) minmax(180px,.7fr)}
}
@media(max-width:690px){
 .qst-discipline-hero{grid-template-columns:minmax(0,1fr)}
 .qst-discipline-copy{padding:24px 21px 17px}
 .qst-discipline-copy h2{font-size:clamp(28px,7.2vw,37px)!important}
 .qst-discipline-art{min-height:100px;max-height:130px;border-left:0;border-top:1px solid var(--disc-line);padding:10px 18px;gap:1px}
 .qst-discipline-art:before{display:none}
 .qst-discipline-art span{font-size:27px;line-height:1.4}
 .qst-discipline-art small{font-size:8px}
 .qst-discipline-form{padding:13px 15px}
 .qst-discipline-form>label{flex-basis:100%}
 .qst-discipline-search-slot{flex-basis:100%}
 .qst-discipline-prompts{margin-left:0}
 .qst-learning-grid{grid-template-columns:minmax(0,1fr)}
 html[data-qst-discipline=sunnah] .qst-learning-card{display:flex}
 html[data-qst-discipline=sunnah] .qst-learning-arabic{border-left:0;border-top:1px solid #f0ebe4;padding:10px 0 4px;text-align:right}
 .qst-learning-card{padding:17px}
 .qst-seerah-journey{padding-left:15px}
 .qst-seerah-stage:before{left:-21px}
}
@media(prefers-reduced-motion:reduce){.qst-discipline-cta{transition:none}}

/* Native specialist categories remain visually coherent with sidebar controls. */
body[data-qst-page=encyclopedia] .subject-controls .qst-subject-native{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 text-decoration:none;color:#5b5550;font:700 11px/1.45 Manrope,sans-serif;
 padding:10px;border-left:3px solid transparent;
}
body[data-qst-page=encyclopedia] .subject-controls .qst-subject-native:hover{
 background:#f5efe6;color:#35202e;border-left-color:#a88050;
}
body[data-qst-page=encyclopedia] .subject-controls .qst-subject-native b{
 font-size:10px;color:#a18473;font-weight:700;
}

/* Practical Prophetic Medicine — first actionable content, separate from historical source reports. */
body[data-qst-page=tibb] .tibb-practical{
 margin:18px 0 24px;padding:clamp(20px,3vw,29px);
 background:#fffaf0;border:1px solid #d9bd83;border-left:5px solid #9a7848;
 border-radius:10px;box-shadow:0 9px 20px rgba(35,33,25,.05);
}
body[data-qst-page=tibb] .tibb-practical h3{
 font:600 clamp(23px,2.4vw,31px)/1.25 'Playfair Display',Georgia,serif!important;
 margin:8px 0 10px!important;
}
body[data-qst-page=tibb] .tibb-practical h4{
 font:800 12px/1.6 Manrope,sans-serif!important;
 margin:18px 0 5px;color:#2f4b3d!important;
}
body[data-qst-page=tibb] .tibb-practical p{
 font-size:13px!important;line-height:1.8!important;color:#453f37!important;margin:0 0 9px!important;
}
body[data-qst-page=tibb] .tibb-practical .minor{font-size:11px!important;color:#75695c!important}
body[data-qst-page=tibb] .tibb-practical-review{
 display:inline-flex;background:#efe8d8;border-radius:6px;
 padding:7px 10px;margin-bottom:5px;color:#73553d;font-size:10px;font-weight:700;line-height:1.5;
}
body[data-qst-page=tibb] .tibb-practical-references{
 display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;
 border-top:1px solid #e4d4ae;margin:18px 0 13px;padding:12px 0 0;
}
body[data-qst-page=tibb] .tibb-practical-references strong{
 width:100%;font-size:11px;color:#3f392e;
}
body[data-qst-page=tibb] .tibb-practical-references a{
 display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800;
 color:#1a5e5a;text-decoration:underline;text-underline-offset:3px;
}
body[data-qst-page=tibb] .tibb-practical-references svg{width:13px;height:13px}
body[data-qst-page=tibb] .tibb-practical-pending{background:#fcfaf6;border-color:#e5ddd1}
@media(max-width:580px){
 body[data-qst-page=tibb] .tibb-practical{padding:17px}
 body[data-qst-page=tibb] .tibb-practical-review{display:block}
}

/* Canonical lived-knowledge pedagogy: one evidence-backed component, four distinct meanings. */
.qst-lived-knowledge{
 --learn-color:#297363;--learn-bg:#f6faf7;
 margin:16px 0 26px;padding:clamp(19px,3vw,33px);
 background:var(--learn-bg);border:1px solid #d5e1d7;border-top:4px solid var(--learn-color);
 border-radius:13px;color:#253c36;
}
.qst-lived-knowledge .qst-lived-kicker{font:800 10px/1.4 Manrope,sans-serif;letter-spacing:.13em;color:var(--learn-color);margin:0 0 10px}
.qst-lived-knowledge>h2{font:500 clamp(23px,2.4vw,31px)/1.19 'Playfair Display',Georgia,serif!important;color:#273a32!important;margin:0 0 14px!important}
.qst-lived-review{font:600 11px/1.7 Manrope,sans-serif;color:#7e6450;background:#fff9ed;border-left:3px solid #bd9d62;padding:9px 11px;margin:0 0 19px!important}
.qst-lived-step{display:grid;grid-template-columns:28px minmax(0,1fr);gap:13px;border-bottom:1px solid #dce6df;padding:14px 0}
.qst-lived-index{font:800 10px/1.5 Manrope,sans-serif;color:var(--learn-color)}
.qst-lived-step h3{font:800 13px/1.4 Manrope,sans-serif!important;margin:0 0 6px!important;color:#204b41!important}
.qst-lived-step p,.qst-lived-differences{font:400 12px/1.85 Manrope,sans-serif!important;color:#3c4f49!important;margin:0!important}
.qst-lived-differences{padding:15px 0;border-bottom:1px solid #dce6df}
.qst-lived-citation{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin-top:18px;font:600 11px/1.7 Manrope,sans-serif}
.qst-lived-citation a{color:var(--learn-color);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.qst-lived-citation small{color:#6e7670}
.qst-lived-empty{background:#faf8f3;border:1px solid #e9e1d5}
html[data-qst-discipline=sunnah] .qst-lived-knowledge{--learn-color:#725748;--learn-bg:#fbf8f3}
html[data-qst-discipline=seerah] .qst-lived-knowledge{--learn-color:#967043;--learn-bg:#fffaf0}
html[data-qst-discipline=living_guidance] .qst-lived-knowledge{--learn-color:#586897;--learn-bg:#f7f8fd}
body[data-qst-page=encyclopedia] #articleLearningGuide[hidden]{display:none!important}
body[data-qst-page=encyclopedia] .qa-body .qst-lived-knowledge,
body[data-qst-page=encyclopedia] .qa-chapters .qst-lived-knowledge{margin-top:12px}
@media(max-width:580px){.qst-lived-step{grid-template-columns:21px minmax(0,1fr);gap:8px}.qst-lived-knowledge{padding:18px}}

/* The Qur'an Reader offers actual verse-linked studies, never presumed Tafsir. */
body[data-qst-page=reader] .qrLearning{
 display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;
 background:#f3f8f3;border:1px solid #d4e1d5;border-left:4px solid #26836d;
 border-radius:11px;padding:23px;margin:0 0 27px;
}
body[data-qst-page=reader] .qrLearning h3{font:500 clamp(21px,2.2vw,28px)/1.25 'Playfair Display',Georgia,serif!important;color:#214b3f!important;margin:6px 0 6px!important}
body[data-qst-page=reader] .qrLearning p{font:400 12px/1.75 Manrope,sans-serif;color:#50645c;margin:0}
body[data-qst-page=reader] .qrLearningForm{display:flex;align-items:end;gap:9px;flex-wrap:wrap}
body[data-qst-page=reader] .qrLearningForm label{font-size:11px;font-weight:800;color:#346551}
body[data-qst-page=reader] .qrLearningForm input{width:85px;min-width:0;min-height:40px;padding:7px;background:#fff;border:1px solid #bdd3c2;border-radius:6px}
body[data-qst-page=reader] .qrLearningForm button{min-height:40px;background:#276c59;color:#fff;border:0;border-radius:6px;padding:8px 13px;font:800 11px Manrope,sans-serif;cursor:pointer}
body[data-qst-page=reader] .qrLearningResults{grid-column:1/-1;min-width:0;font-size:12px;color:#426451}
body[data-qst-page=reader] .qrLearningItem{background:#fff;border:1px solid #d6e5db;border-radius:7px;padding:15px;margin:9px 0}
body[data-qst-page=reader] .qrLearningItem h4{font:600 16px/1.4 Georgia,serif;color:#286b55;margin:0 0 7px}
body[data-qst-page=reader] .qrLearningItem a{color:#186450;text-decoration:underline;text-underline-offset:3px}
body[data-qst-page=reader] .qrLearningItem small{color:#806b50;font-size:10px}
@media(max-width:720px){body[data-qst-page=reader] .qrLearning{grid-template-columns:1fr;padding:16px}body[data-qst-page=reader] .qrLearningResults{grid-column:1}}


/* BUGFIX — full-width source answers after a discipline-specific query.
   Previous !important two-column discipline grid survived after the sidebar
   was hidden by .qst-has-query, putting .results into a 193px first column.
   Only the active answer-query layout is reset; browsing layout stays distinct. */
body[data-qst-page="encyclopedia"].qst-has-query #indexView .reference-work,
html[data-qst-discipline]:not([data-qst-discipline=""]) body[data-qst-page="encyclopedia"].qst-has-query #indexView .reference-work {
 display:block!important;
 grid-template-columns:minmax(0,1fr)!important;
 width:min(calc(100% - 44px),1320px)!important;
 max-width:1320px!important;
 margin-inline:auto!important;
 padding-top:clamp(14px,2.2vw,27px)!important;
}
body[data-qst-page="encyclopedia"].qst-has-query #indexView .reference-work>.subjects,
body[data-qst-page="encyclopedia"].qst-has-query #indexView .reference-work>.reference-rail{
 display:none!important;
}
body[data-qst-page="encyclopedia"].qst-has-query #indexView .reference-work>.results{
 display:block!important;
 grid-column:1/-1!important;
 width:100%!important;
 min-width:0!important;
 max-width:none!important;
}
body[data-qst-page="encyclopedia"].qst-has-query #indexView .inline-answer{
 width:100%!important;
 max-width:min(100%,1040px)!important;
 margin-inline:auto!important;
 padding:clamp(18px,2.8vw,36px)!important;
 overflow-wrap:anywhere;
}
body[data-qst-page="encyclopedia"].qst-has-query #indexView .results-head,
body[data-qst-page="encyclopedia"].qst-has-query #indexView #results,
body[data-qst-page="encyclopedia"].qst-has-query #indexView #federatedResults{
 max-width:min(100%,1040px);margin-inline:auto;
}
@media(max-width:690px){
 body[data-qst-page="encyclopedia"].qst-has-query #indexView .reference-work{
  width:calc(100% - 30px)!important;
 }
 body[data-qst-page="encyclopedia"].qst-has-query #indexView .inline-answer{
  padding:17px!important;
 }
}


/* Prophetic Medicine: live, discipline-scoped source answer appears ABOVE the
   small browsable ingredient catalogue. No empty 8-item dead-end for questions. */
body[data-qst-page=tibb] .tibb-answer-shell[hidden]{display:none!important}
body[data-qst-page=tibb] .tibb-answer-shell{
 padding:clamp(20px,3vw,42px) 0 0;
}
body[data-qst-page=tibb] .tibb-answer-shell .inline-answer{
 max-width:min(100%,1050px);width:100%;margin:0 auto;
 border-radius:13px;border-top:4px solid #957647;
 box-shadow:0 18px 42px rgba(39,28,22,.08);
 overflow-wrap:anywhere;
}
body[data-qst-page=tibb] .tibb-answer-shell .qa-part p{
 font-size:13px;line-height:1.86;max-width:78ch;
}
body[data-qst-page=tibb] .tibb-answer-shell .qa-summary{
 font-size:clamp(15px,1.5vw,18px);
 line-height:1.82;max-width:78ch;
}
body[data-qst-page=tibb] .tibb-answer-shell .qa-bibliography li{
 min-width:0;
}
@media(max-width:690px){
 body[data-qst-page=tibb] .tibb-answer-shell{padding-top:18px}
 body[data-qst-page=tibb] .tibb-answer-shell .inline-answer{padding:18px}
}
