@charset "UTF-8";
/* ALNOUR direct-content navigation + RTL correction */
html[dir="rtl"] .public-main,
html[dir="rtl"] .article,
html[dir="rtl"] .reader-article,
html[dir="rtl"] .public-record-card,
html[dir="rtl"] .public-meta-grid{
  direction:rtl!important;
  text-align:right!important;
}
html[dir="rtl"] .reader-article p,
html[dir="rtl"] .reader-article h1,
html[dir="rtl"] .reader-article h2,
html[dir="rtl"] .reader-article h3,
html[dir="rtl"] .public-record-card,
html[dir="rtl"] .public-meta-row{
  text-align:right!important;
}
html[dir="rtl"] .public-meta-row{
  grid-template-columns:minmax(88px,auto) minmax(0,1fr);
}
html[dir="rtl"] .public-meta-row strong{
  direction:auto;
  unicode-bidi:plaintext;
}

/* One modern path: collection -> actual content. No child/category intermediary cards. */
.category-results{display:none!important}
.direct-content-link{
  position:relative;
  min-height:0!important;
  padding:20px 22px!important;
  cursor:pointer;
}
.direct-content-link h2{
  margin:0 0 8px!important;
  padding-inline-end:34px;
}
.direct-content-link::after{
  content:"←";
  position:absolute;
  inset-inline-end:18px;
  top:21px;
  color:#b9944f;
  font-size:20px;
  font-weight:900;
  transition:transform .16s ease;
}
html[dir="ltr"] .direct-content-link::after{content:"→"}
.direct-content-link:hover::after{transform:translateX(-3px)}
html[dir="ltr"] .direct-content-link:hover::after{transform:translateX(3px)}

/* Type/category badges are intentionally suppressed in public browse/content views. */
.content-results .content-type,
.content-results .result-section,
.reader-article>.article-type,
.public-main .category-result>.content-type{
  display:none!important;
}

/* Search stays immediately after the section introduction. */
.listing>.filter{margin-top:14px!important}

/* Compact JSON/source records: content first, metadata second. */
.public-record-card{
  direction:inherit;
  text-align:inherit;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:0!important;
}
.public-meta-grid{
  margin:18px 0;
  border:1px solid rgba(185,148,79,.24);
  border-radius:14px;
  overflow:hidden;
}
.public-meta-row{
  display:grid;
  gap:12px;
  align-items:start;
  padding:10px 12px;
  border-bottom:1px solid #eee5d5;
}
.public-meta-row:last-child{border-bottom:0}
.public-meta-row span{font-size:.76em;color:#6c7a74}
.public-meta-row strong{font-weight:650;overflow-wrap:anywhere}
.record-note{display:none!important}

/* External/source URLs remain readable without changing page direction. */
.public-source-link{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  max-width:100%;
  direction:inherit;
  text-align:start;
}

/* Mobile: direct content cards become compact reader-entry rows, not fixed tall blocks. */
@media(max-width:640px){
  .direct-content-link{
    padding:17px 16px!important;
    border-radius:16px!important;
  }
  .direct-content-link h2{
    padding-inline-end:26px;
    font-size:21px!important;
  }
  .direct-content-link::after{
    inset-inline-end:13px;
    top:17px;
    font-size:18px;
  }
  .result-excerpt{
    margin-bottom:0!important;
    line-height:1.8!important;
  }
}
