:root{--ahke-urdu:var(--ahm-urdu-font,"AHM Urdu","Noto Nastaliq Urdu",serif);--ahke-primary:#6f32c9;--ahke-soft:#faf7ff;--ahke-border:#e8dcf2;--ahke-gold:#c89b35;--ahke-text:#201b26;--ahke-muted:#7b7480}.ahke-wrap{width:min(1080px,calc(100% - 32px));margin:72px auto 55px;color:var(--ahke-text);font-family:Roboto,Arial,sans-serif}.ahke-kicker{display:block;color:var(--ahke-primary);font-size:10px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase}.ahke-archive-hero{text-align:center;padding:10px 20px 24px}.ahke-archive-hero h1{font-family:var(--ahke-urdu);font-size:42px;line-height:1.8;margin:4px 0;color:#4d207f}.ahke-archive-hero p{font-family:var(--ahke-urdu);font-size:16px;color:var(--ahke-muted);margin:0}.ahke-masnoon-filters,.ahke-category-search{border:1px solid var(--ahke-border);background:#fff;border-radius:14px;padding:12px;margin:0 0 20px}.ahke-searchline,.ahke-category-search{display:flex;gap:8px}.ahke-searchline input,.ahke-category-search input{flex:1;height:46px;border:1px solid var(--ahke-border);border-radius:9px;padding:0 14px;font-family:var(--ahke-urdu);font-size:15px}.ahke-searchline button,.ahke-category-search button{border:0;border-radius:7px;background:var(--ahke-primary);color:#fff;padding:0 22px;font-family:var(--ahke-urdu);font-size:14px}.ahke-filterline{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.ahke-term-select{height:42px;border:1px solid var(--ahke-border);border-radius:8px;background:#fff;padding:0 12px;font-family:var(--ahke-urdu);direction:rtl;text-align:right}.ahke-library-panel{border:1px solid var(--ahke-border);border-radius:16px;padding:18px;background:#fff;box-shadow:0 14px 34px rgba(55,25,85,.04)}.ahke-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}.ahke-count{font-family:var(--ahke-urdu);direction:rtl;background:var(--ahke-soft);color:var(--ahke-primary);padding:7px 12px;border-radius:999px;font-size:12px}.ahke-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ahke-card{position:relative;min-height:168px;border:1px solid #e6ded3;border-radius:15px;background:linear-gradient(135deg,#fff 70%,#fffaf0);padding:17px 18px;display:grid;grid-template-columns:36px 1fr 20px;gap:12px;overflow:hidden}.ahke-card:hover{box-shadow:0 10px 25px rgba(55,25,85,.07);transform:translateY(-1px)}.ahke-card-open{position:absolute;inset:0;z-index:1}.ahke-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff6df;border:1px solid #efd7a0;color:var(--ahke-gold)}.ahke-card-body{min-width:0;height:100%;display:flex;flex-direction:column;text-align:right;direction:rtl}.ahke-card-cat{font-family:var(--ahke-urdu);color:var(--ahke-primary);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ahke-card h2{font-family:var(--ahke-urdu);font-size:20px;line-height:1.9;font-weight:600;margin:5px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3.8em;max-height:3.8em}.ahke-meta{font-family:var(--ahke-urdu);font-size:11px;color:var(--ahke-muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ahke-audio{position:relative;z-index:3;direction:ltr;width:100%;height:30px;margin-top:auto}.ahke-arrow{align-self:center;color:var(--ahke-gold);font-size:20px}.ahke-pages{display:flex;justify-content:center;margin:24px 0 2px}.ahke-pages .nav-links{display:flex;gap:7px;align-items:center}.ahke-pages .page-numbers{display:grid;place-items:center;min-width:34px;height:34px;border:1px solid var(--ahke-border);border-radius:7px;text-decoration:none;color:#4b3c55}.ahke-pages .current{background:#55208c;color:#fff;border-color:#55208c}.ahke-single-hero{text-align:center;padding:12px 20px 18px}.ahke-single-hero h1{font-family:var(--ahke-urdu);font-size:40px;line-height:1.9;color:#4d207f;margin:4px 0 10px}.ahke-chips{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.ahke-chips a,.ahke-chips span{font-family:var(--ahke-urdu);text-decoration:none;color:#6a4a16;background:#fff8e8;border:1px solid #ead39c;border-radius:999px;padding:5px 10px;font-size:11px}.ahke-toolbar{display:flex;justify-content:space-between;border:1px solid var(--ahke-border);padding:8px 10px;margin-bottom:16px;background:#fff}.ahke-toolbar>div{display:flex;gap:7px}.ahke-toolbar button,.ahke-toolbar a{border:1px solid var(--ahke-border);background:#fff;color:#3f3547;border-radius:7px;padding:7px 11px;text-decoration:none;cursor:pointer}.ahke-reader-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px;align-items:start}.ahke-reading-card{position:relative;min-height:320px;border:1px solid #e6ded3;border-radius:15px;background:#fff;padding:34px;box-shadow:0 14px 35px rgba(55,25,85,.05)}.ahke-reading-card h2{font-family:var(--ahke-urdu);font-size:30px;line-height:2;text-align:center;margin:0 0 20px}.ahke-player{padding:16px;background:var(--ahke-soft);border-radius:14px;margin:0 0 22px;direction:ltr}.ahke-player audio{width:100%}.ahke-player small{display:block;text-align:right;color:var(--ahke-muted);margin-top:4px}.ahke-content,.ahke-urdu{font-family:var(--ahke-urdu);font-size:19px;line-height:2.2;text-align:right;direction:rtl}.ahke-related{border:1px solid #ead39c;background:#fffaf0;border-radius:15px;padding:20px}.ahke-related h3{color:#966b18;margin:0 0 12px}.ahke-related a{font-family:var(--ahke-urdu);display:flex;justify-content:space-between;gap:10px;color:#241e28;text-decoration:none;padding:11px 0;border-bottom:1px solid #eadfc8;line-height:1.8}.ahke-related a:last-child{border:0}.ahke-related a span{color:var(--ahke-gold)}.ahke-engagement{text-align:center;border-top:1px solid var(--ahke-border);margin-top:28px;padding-top:16px}.ahke-navigation{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:26px}.ahke-navigation>div:last-child{text-align:right}.ahke-navigation a{display:inline-flex;flex-direction:column;border:1px solid var(--ahke-border);border-radius:10px;padding:10px 14px;text-decoration:none;color:var(--ahke-text);max-width:260px}.ahke-navigation small{text-transform:uppercase;color:var(--ahke-muted);font-size:9px;letter-spacing:1px}.ahke-navigation span{font-family:var(--ahke-urdu);line-height:1.8}.ahke-empty{grid-column:1/-1;text-align:center;padding:50px;font-family:var(--ahke-urdu)}@media(max-width:780px){.ahke-wrap{width:calc(100% - 20px);margin-top:30px}.ahke-archive-hero h1,.ahke-single-hero h1{font-size:30px}.ahke-filterline,.ahke-grid,.ahke-reader-grid{grid-template-columns:1fr}.ahke-library-panel{padding:12px}.ahke-card{min-height:160px}.ahke-reader-grid{gap:16px}.ahke-reading-card{padding:22px}.ahke-related{order:2}.ahke-navigation{gap:8px}.ahke-searchline button,.ahke-category-search button{padding:0 13px}}@media print{.ahke-toolbar,.ahke-related,.ahke-engagement,.ahke-navigation,header,footer{display:none!important}.ahke-wrap{margin:0;width:100%}.ahke-reader-grid{display:block}.ahke-reading-card{box-shadow:none;border:0}}
/* v1.0.6: scalable directory archive + Nastaliq-safe category cards */
.ahke-directory{border:1px solid var(--ahke-border);border-radius:16px;padding:18px 22px;background:#fff;box-shadow:0 14px 34px rgba(55,25,85,.04)}
.ahke-category-block{padding:16px 0 20px;border-bottom:1px solid #ece5f2}.ahke-category-block:last-child{border-bottom:0;padding-bottom:4px}
.ahke-category-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:8px}.ahke-category-head h2{font-family:var(--ahke-urdu);font-size:25px;line-height:2;margin:0;color:#241e28;font-weight:600}.ahke-category-total{font-family:var(--ahke-urdu);font-size:11px;color:var(--ahke-primary);background:var(--ahke-soft);padding:5px 10px;border-radius:999px;white-space:nowrap}
.ahke-question-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.ahke-question-link{font-family:var(--ahke-urdu);font-size:16px;line-height:2.15;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid #f1edf4;color:#1682b7;text-decoration:none}.ahke-question-link span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ahke-question-link b{font-family:Arial,sans-serif;color:var(--ahke-primary);font-weight:400;flex:0 0 auto}.ahke-question-link:hover{background:#fcfaff;color:var(--ahke-primary)}.ahke-more-wrap{text-align:left;margin-top:9px}.ahke-more{display:inline-block;font-family:var(--ahke-urdu);font-size:13px;line-height:1.7;color:#fff!important;background:var(--ahke-primary);border-radius:5px;padding:5px 13px;text-decoration:none!important}
/* Never crop Nastaliq glyphs: reserve a real three-line text box. */
.ahke-card{min-height:210px}.ahke-card h2{font-family:var(--ahke-urdu);font-size:18px;line-height:2.25;font-weight:600;margin:5px 0 2px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:6.75em;max-height:6.75em;padding-top:.12em;padding-bottom:.12em}.ahke-card-cat{line-height:2}.ahke-meta{line-height:2;margin-top:1px}.ahke-audio{margin-top:auto;flex:0 0 30px}
@media(max-width:780px){.ahke-directory{padding:12px}.ahke-question-list{grid-template-columns:1fr}.ahke-category-head h2{font-size:21px}.ahke-question-link{font-size:15px}.ahke-card{min-height:205px}}
/* v1.0.7 final polish */
.ahke-kicker-link{text-decoration:none!important;width:max-content;max-width:100%;margin-left:auto;margin-right:auto}.ahke-kicker-link:hover{color:#4d207f}
.ahke-question-link{font-size:18px;position:relative;justify-content:flex-start}.ahke-question-link span{order:1;flex:1;text-align:right}.ahke-question-link b{order:2;width:18px;text-align:center;line-height:1;align-self:center}
.ahke-reading-card{--ahke-reader-scale:1}.ahke-reading-card h2{font-size:calc(30px * var(--ahke-reader-scale))}.ahke-reading-card .ahke-content,.ahke-reading-card .ahke-urdu{font-size:calc(19px * var(--ahke-reader-scale))}.ahke-reading-card h2,.ahke-reading-card .ahke-content,.ahke-reading-card .ahke-urdu{transition:font-size .15s ease}
.ahke-views{margin-bottom:8px;color:var(--ahke-muted);font-size:13px}
@media(max-width:780px){.ahke-question-link{font-size:16px}}

/* v1.0.10 definitive question-row alignment.
   Fixed 22px arrow column + flexible Urdu title column.
   DOM order is arrow first, title second, so neither RTL bidi nor flex order can wrap the arrow. */
.ahke-question-list .ahke-question-link{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  grid-template-areas:"arrow title"!important;
  align-items:center!important;
  column-gap:8px!important;
  direction:ltr!important;
  min-width:0!important;
  min-height:58px!important;
  padding:7px 10px!important;
  font-family:var(--ahke-urdu)!important;
  font-size:20px!important;
  line-height:2.2!important;
}
.ahke-question-list .ahke-question-link b{
  grid-area:arrow!important;
  display:block!important;
  width:22px!important;
  min-width:22px!important;
  margin:0!important;
  padding:0!important;
  direction:ltr!important;
  text-align:center!important;
  justify-self:center!important;
  align-self:center!important;
  font-family:Arial,sans-serif!important;
  font-size:19px!important;
  font-weight:400!important;
  line-height:1!important;
  color:var(--ahke-primary)!important;
}
.ahke-question-list .ahke-question-link span{
  grid-area:title!important;
  display:block!important;
  min-width:0!important;
  width:100%!important;
  direction:rtl!important;
  unicode-bidi:plaintext!important;
  text-align:right!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-family:var(--ahke-urdu)!important;
}
.ahke-category-question-list{margin-top:4px}
.ahke-category-question-list .ahke-question-link{border-bottom:1px solid #f1edf4}
.ahke-views{font-size:13px;color:var(--ahke-muted);margin-bottom:10px}
@media(max-width:780px){.ahke-question-list .ahke-question-link{font-size:18px!important;min-height:54px!important}}

/* v1.0.11 — explicit semantic language marks override automatic/default direction and font. */
.alahazrat-lang-ur,.ahke-content .alahazrat-lang-ur,.ahke-content .alahazrat-lang-ur *{font-family:var(--ahke-urdu)!important;direction:rtl!important;unicode-bidi:isolate;text-align:right}
.alahazrat-lang-ar,.ahke-content .alahazrat-lang-ar,.ahke-content .alahazrat-lang-ar *{font-family:var(--ahm-arabic-font,"Noto Naskh Arabic",serif)!important;direction:rtl!important;unicode-bidi:isolate;text-align:right}
.alahazrat-lang-en,.ahke-content .alahazrat-lang-en,.ahke-content .alahazrat-lang-en *{font-family:Roboto,Arial,sans-serif!important;direction:ltr!important;unicode-bidi:isolate;text-align:left}
