@font-face {
  font-family: "Saner Uthman Arabic Calm Screen";
  src: url("SanerUthmanArabicCalmScreen-Regular.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saner Uthman Arabic Calm Screen Subtle Reading";
  src: url("SanerUthmanArabicCalmScreenSubtleReading-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saner Uthman Arabic Reading Text 18";
  src: url("SanerUthmanArabicReadingText18-Regular-SlightThickLightBracketsTrial.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UthmanTNB";
  src: url("SanerUthmanArabicReading-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UthmanTNB";
  src: url("SanerUthmanArabicReading-Regular.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UthmanTNB";
  src: url("SanerUthmanArabicReading-Regular.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UthmanTN ScreenText EnglishClarity SafeMarks";
  src: url("SanerUthmanArabicReading-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UthmanTN ScreenText EnglishClarity SafeMarks";
  src: url("SanerUthmanArabicReading-Regular.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UthmanTN ScreenText EnglishClarity SafeMarks";
  src: url("SanerUthmanArabicReading-Regular.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Uthman Author ExtraBold";
  src: url("uthman_author_extrabold_markfix.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AhlHadith Scholar Comment Text";
  src: url("AhlHadithBodyNaturalThickMarkLift160JoinSafeKafLamalefBoldMetrics-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KufiExt";
  src: url("KufiExt-Text18-Trial-C.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KufiExt Title WideTall";
  src: url("KufiExt-TitleWideTall-Trial-A.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KufiExt SiteName Short";
  src: url("KufiExt-SiteNameShort-Hamza-Trial-C.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page-bg: #fff;
  --ink: #2f2f2f;
  --deep-ink: #1f1a14;
  --muted: #727272;
  --soft: #f5f5f3;
  --rule: rgba(66, 48, 30, 0.13);
  --accent: #d0021b;
  --measure: min(600px, calc(100% - 40px));
  --reading: "Saner Uthman Arabic Reading Text 18", "Saner Uthman Arabic Calm Screen", serif;
  --source: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", serif;
  --author: "Uthman Author ExtraBold", "Saner Uthman Arabic Calm Screen", serif;
  --kufi: "KufiExt", serif;
  --display: "KufiExt Title WideTall", "KufiExt", serif;
}

* {
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 58px;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--reading);
  direction: rtl;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  border-block-end: 1px solid #e2e2e2;
  background: #fff;
}

.site-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-block-size: 48px;
  padding-inline: clamp(14px, 5vw, 72px);
  direction: ltr;
}

.site-name {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #121212;
  font-family: "KufiExt SiteName Short", "KufiExt", serif;
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  transform: translateY(1px) scaleX(.94);
}

.site-header-context {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-inline-size: min(660px, calc(100vw - 100px));
  direction: rtl;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.site-header-context a {
  min-inline-size: 0;
  color: #201b16;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  text-overflow: ellipsis;
  overflow: hidden;
}

.site-header-context__title {
  font-family: var(--author);
  font-size: 13.5px !important;
}

.site-header-context__divider {
  inline-size: 1px;
  block-size: 14px;
  flex: 0 0 1px;
  background: #d6d6d5;
}

body.header-context-active .site-name {
  opacity: 0;
  visibility: hidden;
}

body.header-context-active .site-header-context {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-menu-button {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #201b16;
  cursor: pointer;
}

.site-menu-button svg {
  inline-size: 30px;
  block-size: 21px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
}

.site-menu {
  position: fixed;
  inset-block-start: 49px;
  inset-inline-start: clamp(14px, 5vw, 72px);
  z-index: 60;
  inline-size: min(280px, calc(100vw - 28px));
  padding: 8px 18px;
  border: 1px solid #deddd9;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 26, 20, .09);
}

.site-menu[hidden] {
  display: none;
}

.site-menu a {
  display: block;
  padding: 12px 0;
  border-block-end: 1px solid #eceae6;
  font-size: 14px;
  text-decoration: none;
}

.site-menu a:last-child {
  border-block-end: 0;
}

.hadith-content {
  inline-size: var(--measure);
  margin-inline: auto;
  padding-block: 56px 22px;
}

.page-title-block {
  text-align: center;
}

.page-title-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: var(--author);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.page-title-preline {
  margin: 0;
  color: #363636;
  font-family: var(--author);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
  word-spacing: .04em;
}

.page-title-preline-divider {
  inline-size: 72px;
  block-size: 1px;
  margin: 10px auto 29px;
  background: #ebebeb;
}

.page-title-main {
  margin: 0;
  color: var(--deep-ink);
  font-family: var(--display);
  font-size: clamp(26px, 4.35vw, 34px);
  font-weight: 400;
  line-height: 1.65;
  word-spacing: .04em;
  text-align: center;
  text-wrap: balance;
}

.audio-strip-block--quote-footer {
  inline-size: 100%;
  margin: 52px 0 22px;
  border-block-end: 1px solid #ebebeb;
}

.audio-strip-divider {
  inline-size: 100%;
  block-size: 1px;
  margin: 0;
  background: #dfdfdf;
}

.audio-strip,
.css-b8gc4a {
  inline-size: 100%;
  min-block-size: 84px;
  block-size: 84px;
}

.audio-strip {
  display: flex;
  align-items: center;
  direction: rtl;
}

.css-b8gc4a {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  column-gap: 10px;
  direction: rtl;
}

.css-79elbk {
  display: contents;
}

.css-1xny6fl {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  inline-size: 40px;
  block-size: 84px;
  flex: 0 0 40px;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.css-1xny6fl:disabled {
  cursor: default;
}

.css-1xny6fl svg,
.audio-action-img {
  display: block;
  inline-size: 32px;
  block-size: 32px;
}

.play-text {
  order: 2;
  flex: 1 1 0;
  min-inline-size: 0;
  color: #363636;
  font-family: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", "UthmanTNB", serif;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.narrator-hover-hint {
  order: 3;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  color: #363636;
  font-family: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", "UthmanTNB", serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.narrator-hover-hint-text {
  line-height: 1.35;
  padding-block: 2px;
}

.narrator-hover-hint-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 32px;
  block-size: 32px;
  flex: 0 0 32px;
  border: 1.5px solid #e0dfdf;
  border-radius: 50%;
  background: #fff;
  color: #57524c;
  font-family: "Uthman Author ExtraBold", "UthmanTNB", serif;
  font-size: 12px;
  font-weight: 800;
}

.narrator-hover-hint-letter {
  display: inline-block;
  line-height: 1;
  transform: translateY(-.17em);
}

.narrator-hover-hint-icon {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  overflow: visible;
}

.narrator-hover-hint-mark--icon {
  border: 0;
  background: transparent;
}

.audio-actions-wrap {
  order: 4;
  display: inline-flex;
  align-items: center;
  flex: 0 0 32px;
  margin-inline-start: 10px;
}

.audio-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 32px;
  block-size: 84px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #57524c;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.audio-action-link:hover,
.audio-action-link:focus-visible {
  color: #2f2f2f;
  outline: none;
}

#playPauseButton > svg,
.play-text,
.audio-action-img,
.narrator-hover-hint {
  transform: translateY(-6px);
}

.article-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-block: 50px 32px;
  padding-block: 17px;
  border-block: 1px solid #e6e6e6;
  font-family: var(--source);
  font-size: 13px;
  line-height: 1.6;
}

.article-navigation a {
  text-decoration: none;
}

.article-navigation a:hover,
.article-navigation a:focus-visible {
  color: #61605e;
}

.primary-hadith-card {
  margin: 0;
}

.primary-hadith-byline {
  margin: 0 0 26px;
  padding: 0 0 12px;
  border-block-end: 1px solid #ebebeb;
}

.primary-hadith-byline-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--author);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.primary-hadith-byline-note {
  margin: 5px 0 0;
  color: #121212;
  font-family: var(--reading);
  font-size: 12px;
  font-weight: 500;
  line-height: 2;
  word-spacing: .12em;
}

.primary-hadith-text {
  margin: 0;
  color: #303030;
  font-family: var(--reading);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 2.2;
  word-spacing: .04em;
}

.takhrij-section {
  margin-block: 38px 42px;
}

.takhrij-judgment-title,
.primary-reference-title {
  inline-size: fit-content;
  margin: 0 0 8px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--rule);
  color: #2f2f2f;
  font-family: var(--author);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.takhrij-judgment-text {
  margin: 0;
  color: #303030;
  font-family: var(--reading);
  font-size: 15.1px;
  font-weight: 500;
  line-height: 2.2;
  word-spacing: .04em;
}

.takhrij-investigations-title {
  margin: 30px 0 10px;
  color: #3f3a34;
  font-family: var(--author);
  font-size: 14.2px;
  font-weight: 800;
  line-height: 1.6;
}

.takhrij-variants {
  border-block: 1px solid var(--rule);
}

.takhrij-variant {
  margin: 0;
}

.takhrij-variant + .takhrij-variant {
  border-block-start: 1px solid var(--rule);
}

.takhrij-variant-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-block-size: 52px;
  padding-block: 12px;
  color: #3f3a34;
  cursor: pointer;
  list-style: none;
}

.takhrij-variant-summary::-webkit-details-marker,
.primary-reference-more-summary::-webkit-details-marker {
  display: none;
}

.takhrij-variant-summary::marker,
.primary-reference-more-summary::marker {
  content: "";
}

.takhrij-variant-summary:focus-visible,
.primary-reference-more-summary:focus-visible {
  outline: 1px solid #8d8984;
  outline-offset: 4px;
}

.takhrij-variant-title {
  min-inline-size: 0;
  margin: 0;
  color: #3f3a34;
  font-family: var(--author);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.takhrij-variant-status {
  color: #85817c;
  font-family: var(--source);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.takhrij-disclosure-mark {
  display: inline-grid;
  place-items: center;
  color: #85817c;
  font-family: serif;
  font-size: 11px;
  line-height: 1;
  transition: transform 140ms ease;
}

.takhrij-variant[open] > .takhrij-variant-summary .takhrij-disclosure-mark,
.primary-reference-more[open] > .primary-reference-more-summary .takhrij-disclosure-mark {
  transform: rotate(180deg);
}

.takhrij-variant-body {
  padding: 2px 0 22px;
}

.takhrij-variant-text,
.takhrij-critic-text {
  margin: 0;
  color: #46413c;
  font-family: var(--reading);
  font-size: 14.4px;
  font-weight: 500;
  line-height: 2.15;
  word-spacing: .04em;
}

.takhrij-critic-text {
  margin-block-start: 12px;
  color: #5f5a54;
}

.takhrij-source-clarification {
  margin: 12px 0 0;
  padding-inline-start: 12px;
  border-inline-start: 2px solid rgba(66, 48, 30, .13);
  color: #69635c;
  font-family: var(--source);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.9;
  word-spacing: .04em;
}

.takhrij-row-references {
  margin-block-start: 20px;
  padding-block-start: 12px;
  border-block-start: 1px solid rgba(66, 48, 30, .11);
}

.takhrij-row-references-title {
  margin: 0 0 5px;
  color: #625d57;
  font-family: var(--author);
  font-size: 11.8px;
  font-weight: 800;
  line-height: 1.5;
}

.takhrij-row-reference {
  margin: 0;
  color: #85817c;
  font-family: var(--source);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
  word-spacing: .04em;
}

.takhrij-row-reference + .takhrij-row-reference {
  margin-block-start: 6px;
}

.primary-reference {
  margin-block-start: 26px;
}

.primary-reference-title {
  padding-block-start: 0;
  border-block-start: 0;
}

.primary-reference-source {
  margin: 0;
  color: #727272;
  font-family: var(--source);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.85;
  word-spacing: .04em;
}

.primary-reference-source + .primary-reference-source {
  margin-block-start: 10px;
}

.primary-reference-more {
  margin-block-start: 14px;
  border-block: 1px solid var(--rule);
}

.primary-reference-more-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding-block: 9px;
  color: #55504b;
  cursor: pointer;
  font-family: var(--source);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
}

.primary-reference-more-open {
  display: none;
}

.primary-reference-more[open] .primary-reference-more-closed {
  display: none;
}

.primary-reference-more[open] .primary-reference-more-open {
  display: inline;
}

.primary-reference-more-body {
  padding-block: 2px 12px;
}

.primary-reference-more-body > .primary-reference-source:first-child {
  margin-block-start: 8px;
}

.takhrij-label {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  min-block-size: 42px;
  margin: 20px auto 0;
  padding: 7px 0;
  border: 1px solid #326891;
  border-radius: 3px;
  background: #567b95;
  color: #fff;
  font-family: var(--author);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  word-spacing: .05em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color .3s ease;
}

.takhrij-label:hover,
.takhrij-label:focus-visible {
  border-color: #326891;
  background: #326891;
  color: #fff;
  outline: none;
}

body.takhrij-modal-open {
  overflow: hidden;
}

.takhrij-modal[hidden] {
  display: none !important;
}

.takhrij-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: stretch;
  direction: rtl;
  pointer-events: none;
}

.takhrij-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.takhrij-graph-modal-panel {
  position: relative;
  inline-size: 100vw;
  block-size: 100vh;
  block-size: 100dvh;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: scale(.992);
  visibility: hidden;
  transition:
    transform 300ms cubic-bezier(.22, .61, .36, 1),
    opacity 300ms cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear 300ms;
}

.takhrij-modal.is-open {
  pointer-events: auto;
}

.takhrij-modal.is-open .takhrij-modal-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.takhrij-modal.is-open .takhrij-graph-modal-panel {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  visibility: visible;
  transition:
    transform 450ms cubic-bezier(.22, .61, .36, 1),
    opacity 450ms cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear 0s;
}

.takhrij-graph-modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  left: auto;
  z-index: 40;
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #2f2a23;
  font-family: var(--first-hadith-ui, "Saner Uthman Arabic Calm Screen", "UthmanTNB", serif);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.takhrij-graph-modal-close:hover,
.takhrij-graph-modal-close:focus-visible {
  color: #1f5f46;
  background: #fff;
  outline: none;
}

.takhrij-graph-shell {
  --graph-line: #d8d8d8;
  --graph-node-font: "Uthman Author ExtraBold", "Saner Uthman Arabic Calm Screen", serif;
  --tkg-line-active: #888;
  --tkg-arrow-head-active: #555;
  --tkg-selected: #5b5b5b;
  --tkg-link-accent: #0645ad;
  --tkg-link-hover: #042f70;
  --tkg-drawer-open-dur: .6s;
  --tkg-drawer-close-dur: .78s;
  position: relative;
  display: flex;
  flex-direction: column;
  inline-size: 100%;
  block-size: 100%;
  overflow: hidden;
  background: #fff;
  color: #2b251c;
  direction: rtl;
}

.takhrij-graph-strip {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  inline-size: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-block-end: 1px solid #ece8df;
  background: #fff;
  scrollbar-width: none;
}

.takhrij-graph-strip::-webkit-scrollbar {
  display: none;
}

.takhrij-graph-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  inline-size: max-content;
  min-inline-size: 100%;
  min-block-size: 42px;
  padding: 6px 58px;
  color: #4e473f;
  font-family: var(--reading);
  font-size: 14px;
  line-height: 1.65;
  white-space: nowrap;
}

.takhrij-graph-strip-title {
  color: #2f2a23;
  font-family: var(--author);
  font-weight: 800;
}

.takhrij-graph-strip-divider {
  inline-size: 1px;
  block-size: 14px;
  flex: 0 0 1px;
  background: #d9d2c8;
}

.takhrij-graph-strip-context {
  color: #5d554c;
}

.takhrij-graph-scroll {
  flex: 1 1 auto;
  min-block-size: 0;
  overflow: auto;
  direction: ltr;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.takhrij-graph-canvas {
  position: relative;
  inline-size: max-content;
  min-inline-size: 100%;
  min-block-size: 100%;
  padding: 42px 26px 28px;
  background: #fff;
  direction: ltr;
}

.takhrij-graph-context-block {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-start: 34px;
  z-index: 2;
  max-inline-size: min(390px, 34vw);
  direction: rtl;
  text-align: right;
}

.takhrij-graph-context-title,
.takhrij-graph-context-note {
  margin: 0;
  color: #2f2a23;
  font-family: var(--reading);
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

.takhrij-graph-context-note {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  color: #746d64;
  font-family: var(--source);
  font-size: 12.5px;
  line-height: 1.85;
}

.takhrij-graph-context-guide {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  column-gap: 7px;
  row-gap: 12px;
  margin-block-start: 6px;
  direction: rtl;
}

.takhrij-graph-context-hint-text {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  color: #625b52;
  font-family: var(--source);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
}

.takhrij-graph-context-hint-mark {
  grid-column: 1;
  grid-row: 2;
  display: inline-grid;
  place-items: center;
  inline-size: 22px;
  block-size: 22px;
  border: 1px solid #d8d2ca;
  border-radius: 50%;
  color: #5f574e;
  font-family: var(--author);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.takhrij-graph-stage {
  inline-size: max-content;
  min-inline-size: 0;
  margin: 150px auto 0;
  direction: ltr;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
}

.takhrij-graph-stage.is-ready {
  opacity: 1;
  visibility: visible;
}

.takhrij-graph-loading,
.takhrij-graph-error {
  position: absolute;
  inset-block-start: 100px;
  inset-inline: 20px;
  margin: 0;
  color: #766f65;
  font-family: var(--source);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  direction: rtl;
}

.takhrij-graph-loading[hidden],
.takhrij-graph-error[hidden] {
  display: none;
}

.takhrij-graph-stage svg {
  display: block;
  block-size: auto;
  max-inline-size: none !important;
  margin: 0 auto;
  overflow: visible;
  background: transparent !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.takhrij-graph-stage .nodeLabel,
.takhrij-graph-stage .edgeLabel,
.takhrij-graph-stage foreignObject,
.takhrij-graph-stage span {
  font-family: var(--graph-node-font) !important;
  direction: rtl;
  unicode-bidi: plaintext;
  line-height: 1.45;
}

.takhrij-graph-stage .nodeLabel {
  font-size: 14.5px !important;
  font-weight: 800;
  pointer-events: none;
}

.takhrij-graph-stage .edgeLabel {
  color: #6e675f !important;
  font-size: 12px !important;
}

.takhrij-graph-stage .node rect,
.takhrij-graph-stage .node polygon,
.takhrij-graph-stage .node circle,
.takhrij-graph-stage .node ellipse,
.takhrij-graph-stage .node path {
  stroke: var(--graph-line) !important;
  stroke-width: 1.35px !important;
}

.takhrij-graph-stage .edgePath .path,
.takhrij-graph-stage path.flowchart-link,
.takhrij-graph-stage .flowchart-link {
  stroke: var(--graph-line) !important;
  stroke-width: 1.65px !important;
}

.takhrij-graph-stage svg marker path,
.takhrij-graph-stage svg marker polygon {
  fill: #8f8f8f !important;
  stroke: #8f8f8f !important;
}

.takhrij-graph-modal-panel.is-drawer-open .takhrij-graph-modal-close {
  display: none;
}

.takhrij-graph-stage .node {
  cursor: pointer;
  transition: opacity 180ms ease, filter 180ms ease;
}

.takhrij-graph-stage .node rect,
.takhrij-graph-stage .node polygon,
.takhrij-graph-stage .node circle,
.takhrij-graph-stage .node ellipse,
.takhrij-graph-stage .node path {
  transition: stroke 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.takhrij-graph-stage .edgePath,
.takhrij-graph-stage .flowchart-link {
  pointer-events: none;
  transition: opacity 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.takhrij-graph-stage svg marker#takhrij-arrow-highlight path,
.takhrij-graph-stage svg marker#takhrij-arrow-highlight polygon {
  fill: var(--tkg-arrow-head-active) !important;
  stroke: var(--tkg-arrow-head-active) !important;
}

.takhrij-graph-stage.has-selection .node:not(.is-path):not(.is-selected) {
  opacity: .26;
  filter: grayscale(.35);
}

.takhrij-graph-stage.has-selection .edgePath:not(.is-path),
.takhrij-graph-stage.has-selection .flowchart-link:not(.is-path) {
  opacity: .14;
}

.takhrij-graph-stage .node.is-path rect,
.takhrij-graph-stage .node.is-path polygon,
.takhrij-graph-stage .node.is-path circle,
.takhrij-graph-stage .node.is-path ellipse,
.takhrij-graph-stage .node.is-path path {
  stroke: var(--tkg-line-active) !important;
  stroke-width: 2.75px !important;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, .14));
}

.takhrij-graph-stage .node.is-selected rect,
.takhrij-graph-stage .node.is-selected polygon,
.takhrij-graph-stage .node.is-selected circle,
.takhrij-graph-stage .node.is-selected ellipse,
.takhrij-graph-stage .node.is-selected path {
  stroke: var(--tkg-selected) !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .2));
}

.takhrij-graph-stage .edgePath.is-path .path,
.takhrij-graph-stage .edgePath.is-path path.flowchart-link,
.takhrij-graph-stage .flowchart-link.is-path {
  stroke: var(--tkg-line-active) !important;
  stroke-width: 3.75px !important;
  opacity: 1 !important;
}

.takhrij-graph-node-hint {
  position: absolute;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-inline-size: min(260px, calc(100vw - 28px));
  margin: 0;
  padding: 5px 10px 6px;
  border: 1px solid #d6dee5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(25, 35, 45, .09);
  color: var(--tkg-link-accent);
  direction: rtl;
  font-family: var(--source);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-50%) translateY(-3px) scale(.98);
  transform-origin: center top;
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.takhrij-graph-node-hint::before {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 1;
  inline-size: 0;
  block-size: 0;
  border-inline: 7px solid transparent;
  border-block-end: 8px solid #d6dee5;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
  transition: border-block-end-color 120ms ease;
}

.takhrij-graph-node-hint::after {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 2;
  inline-size: 0;
  block-size: 0;
  border-inline: 6px solid transparent;
  border-block-end: 6px solid #fff;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
  transition: border-block-end-color 120ms ease;
}

.takhrij-graph-node-hint.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.takhrij-graph-node-hint:hover,
.takhrij-graph-node-hint:focus-visible {
  border-color: #b9cad8;
  background: #f7fbff;
  color: var(--tkg-link-hover);
  outline: none;
  box-shadow: 0 0 0 2px rgba(6, 69, 173, .16), 0 2px 8px rgba(25, 35, 45, .08);
}

.takhrij-graph-node-hint:hover::before,
.takhrij-graph-node-hint:focus-visible::before {
  border-block-end-color: #b9cad8;
}

.takhrij-graph-node-hint:hover::after,
.takhrij-graph-node-hint:focus-visible::after {
  border-block-end-color: #f7fbff;
}

.takhrij-graph-drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--tkg-drawer-close-dur) cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear var(--tkg-drawer-close-dur);
}

.takhrij-graph-drawer-backdrop[hidden],
.takhrij-graph-drawer[hidden] {
  display: none !important;
}

.takhrij-graph-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--tkg-drawer-open-dur) cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear 0s;
}

.takhrij-graph-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 31;
  display: flex;
  flex-direction: column;
  inline-size: 420px;
  max-inline-size: 100%;
  block-size: 100%;
  border-left: 1px solid #e9e5dd;
  background: #fff;
  box-shadow: -22px 0 44px rgba(0, 0, 0, .16);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(110%, 0, 0);
  transition:
    transform var(--tkg-drawer-close-dur) cubic-bezier(.22, .61, .36, 1),
    opacity var(--tkg-drawer-close-dur) cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear var(--tkg-drawer-close-dur);
  pointer-events: none;
  direction: rtl;
  text-align: right;
  will-change: transform;
}

.takhrij-graph-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition:
    transform var(--tkg-drawer-open-dur) cubic-bezier(.22, .61, .36, 1),
    opacity var(--tkg-drawer-open-dur) cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear 0s;
  pointer-events: auto;
}

.takhrij-graph-shell.drawer-open .takhrij-graph-scroll {
  overflow: hidden;
}

.takhrij-graph-drawer-head {
  position: relative;
  flex: 0 0 auto;
  padding: 20px 24px 14px;
  background: #fff;
}

.takhrij-graph-drawer-head::after {
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 14px;
  block-size: 1px;
  background: #eee9e1;
  content: "";
}

.takhrij-graph-drawer-title {
  margin: 0;
  padding: 0 0 0 28px;
  color: #363636;
  font-family: var(--author);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  text-rendering: optimizeLegibility;
}

.takhrij-graph-drawer-subtitle {
  margin: 4px 0 0;
  color: #8d857b;
  font-family: var(--source);
  font-size: 12.5px;
  line-height: 1.55;
}

.takhrij-graph-drawer-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  inline-size: 16px;
  block-size: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f2a23;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.takhrij-graph-drawer-close::before,
.takhrij-graph-drawer-close::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 2px;
  inline-size: 9px;
  block-size: 1.15px;
  background: currentColor;
  content: "";
  transform-origin: left center;
}

.takhrij-graph-drawer-close::before {
  transform: translateY(-50%) rotate(-36.9deg);
}

.takhrij-graph-drawer-close::after {
  transform: translateY(-50%) rotate(36.9deg);
}

.takhrij-graph-drawer-close:hover,
.takhrij-graph-drawer-close:focus-visible {
  color: #1f5f46;
  outline: none;
}

.takhrij-graph-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 24px 30px;
  color: #342e26;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.takhrij-graph-scroll::-webkit-scrollbar,
.takhrij-graph-drawer-body::-webkit-scrollbar {
  display: none;
  inline-size: 0;
  block-size: 0;
}

.takhrij-graph-narration {
  margin: 0 0 22px;
  padding: 0 0 20px;
  border-block-end: 1px solid #eee9e1;
}

.takhrij-graph-narration:last-child {
  margin-block-end: 0;
  border-block-end: 0;
}

.takhrij-graph-author {
  margin: 0;
  color: #2d2518;
  font-family: var(--author);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.takhrij-graph-book {
  margin: 1px 0 10px;
  color: #928a80;
  font-family: var(--source);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
}

.takhrij-graph-text {
  margin: 0;
  color: #3f3931;
  font-family: "Saner Uthman Arabic Reading Text 18", "UthmanTN ScreenText EnglishClarity SafeMarks", "UthmanTNB", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 2.2;
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  user-select: text;
}

.takhrij-graph-note {
  margin: 12px 0 0;
  padding-block-start: 10px;
  border-block-start: 1px solid #eee9e1;
  color: #776f65;
  font-family: var(--source);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  user-select: text;
}

.takhrij-graph-reference {
  margin: 12px 0 0;
  color: #81796f;
  font-family: var(--source);
  font-size: 12.75px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  user-select: text;
}

@media (max-width: 760px) {
  .takhrij-graph-node-hint {
    position: fixed;
    inset-block-start: auto !important;
    inset-block-end: calc(18px + env(safe-area-inset-bottom, 0px));
    left: 50% !important;
    max-inline-size: calc(100vw - 32px);
    padding: 8px 14px 9px;
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(25, 35, 45, .14);
    transform-origin: center bottom;
  }

  .takhrij-graph-node-hint::before,
  .takhrij-graph-node-hint::after {
    display: none;
  }

  .takhrij-graph-drawer {
    inset: 0;
    right: 0;
    left: 0;
    inline-size: 100%;
    max-inline-size: none;
    border-left: 0;
    box-shadow: -18px 0 38px rgba(0, 0, 0, .16);
    transform: translate3d(100%, 0, 0);
  }

  .takhrij-graph-drawer.is-open {
    transform: translate3d(0, 0, 0);
  }

  .takhrij-graph-drawer-head {
    padding: 18px 18px 12px;
  }

  .takhrij-graph-drawer-head::after {
    right: 18px;
  }

  .takhrij-graph-drawer-title {
    font-size: 20px;
  }

  .takhrij-graph-drawer-body {
    padding: 16px 18px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .takhrij-graph-modal-panel,
  .takhrij-graph-drawer,
  .takhrij-graph-drawer-backdrop,
  .takhrij-graph-node-hint {
    transition-duration: 1ms !important;
  }
}

.fiqh-intro-divider {
  block-size: 1px;
  margin-block: 42px 26px;
  background: #292929;
}

.fiqh-heading {
  margin: 0 0 16px;
  color: #17130e;
  font-family: "KufiExt Title WideTall", "KufiExt", "UthmanTNB", serif;
  font-size: clamp(14.5px, 1.45vw, 17px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-decoration: none;
  text-rendering: optimizeLegibility;
}

.fiqh-source {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-block: 18px 42px;
}

.fiqh-logo {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-family: var(--author);
  font-size: 18px;
}

.fiqh-logo svg {
  display: block;
  inline-size: 38px;
  block-size: 38px;
}

.fiqh-source p {
  margin: 0;
}

.fiqh-source-main {
  font-family: "Uthman Author ExtraBold", "UthmanTNB", serif;
  font-size: 12.5px;
  font-synthesis: none;
  font-weight: 800;
  line-height: 1.5;
}

.fiqh-source .fiqh-source-sub {
  margin-block-start: 6px;
  color: #79736b;
  font-family: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", "UthmanTNB", serif;
  font-size: 11.5px;
  font-synthesis: none;
  font-weight: 500;
  line-height: 1.5;
}

.topic-section {
  scroll-margin-top: 62px;
}

.topic-section + .topic-section {
  margin-block-start: 6px;
}

.topic-divider {
  inline-size: 100%;
  block-size: 1px;
  margin-block: 26px 14px;
  background: rgba(66, 48, 30, .11);
}

.topic-title {
  margin: 0 0 20px;
  color: #2b2926;
  font-family: var(--reading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.commentary-row {
  margin: 0;
}

.commentary-text {
  margin: 0;
  color: #303030;
  font-family: var(--reading);
  font-size: 16px;
  font-weight: 500;
  line-height: 2.2;
  word-spacing: .04em;
}

.commentary-paragraph-break {
  block-size: .45em;
  display: block;
}

.quote-speaker {
  color: #3f3a34;
  font-family: var(--author);
  font-size: .93em;
  font-weight: 800;
}

.source-note {
  position: static;
  box-sizing: border-box;
  inline-size: min(75%, 500px);
  max-inline-size: 100%;
  margin-block: 12px 24px;
  margin-inline-start: 0;
  margin-inline-end: auto;
  padding-block: 0;
  padding-inline-start: 14px;
  padding-inline-end: 0;
  border-inline-start: 2px solid rgba(66, 48, 30, .13);
  direction: rtl;
  text-align: start;
  transform: none;
}

.fiqh-body > .topic-section:last-child,
.fiqh-body > .topic-section:last-child .commentary-row:last-child > .source-note {
  margin-block-end: 0;
}

.source-note p {
  margin: 0;
}

.source-author {
  color: #45413c;
  font-family: "Saner Uthman Arabic Calm Screen Subtle Reading", "Saner Uthman Arabic Calm Screen", "Saner Uthman Arabic Reading Text 18", "UthmanTN ScreenText EnglishClarity SafeMarks", "UthmanTNB", serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
}

.source-author > span {
  display: inline-block;
  color: #77716a;
  direction: rtl;
  font-weight: 500;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.source-reference {
  margin-block-start: 3px !important;
  color: #77716a;
  font-family: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", "UthmanTNB", serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: break-word;
  word-spacing: .03em;
  text-wrap: wrap;
}

.comment-divider {
  inline-size: 118px;
  block-size: 1px;
  margin: 24px 0 24px auto;
  background: rgba(66, 48, 30, .10);
}

.article-closing,
.article-discovery,
.site-footer {
  --closing-heading: "Uthman Author ExtraBold", "UthmanTNB", serif;
}

.article-closing {
  inline-size: var(--measure);
  margin: 0 auto;
  color: #242424;
  direction: rtl;
  text-align: start;
}

.article-end-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 5px;
  padding-block: 16px 18px;
  color: #55524e;
  font-family: var(--source);
  font-size: 12.5px;
  line-height: 1.75;
}

.article-end-topics-label {
  color: #282828;
  font-family: var(--closing-heading);
  font-weight: 800;
}

.article-end-topics a {
  color: #3b3b3b;
  text-decoration: underline;
  text-decoration-color: rgba(40, 95, 135, .48);
  text-underline-offset: 3px;
}

.article-end-topics a:hover,
.article-end-topics a:focus-visible {
  color: #285f87;
}

.article-end-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block: 8px 38px;
}

.article-end-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 40px;
  margin: 0;
  border: 1px solid #dededc;
  background: #fff;
  color: #222;
  font-family: var(--source);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.article-end-action:hover,
.article-end-action:focus-visible {
  border-color: #a8a8a5;
  background: #f7f7f5;
  outline: none;
}

.article-end-action--primary {
  gap: 8px;
  min-inline-size: 126px;
  padding-inline: 10px 15px;
  border-radius: 999px;
  font-weight: 700;
}

.article-end-share-icon {
  inline-size: 23px;
  block-size: 23px;
  flex: 0 0 23px;
  color: #57524c;
}

.article-end-action-status {
  min-inline-size: 90px;
  color: #73716d;
  font-family: var(--source);
  font-size: 11px;
  line-height: 1.5;
}

.article-end-action-status:empty {
  display: none;
}

.article-coverage {
  padding-block-start: 21px;
  border-block-start: 2px solid #1f1f1f;
}

.article-coverage-title {
  margin: 0;
  padding-block-end: 15px;
  border-block-end: 1px solid #dededc;
  color: #171717;
  font-family: var(--closing-heading);
  font-size: clamp(24px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

.article-coverage-title .quran-bracket {
  font-family: "UthmanTNB", serif;
  font-weight: 400;
  font-synthesis: none;
}

.ayah-number {
  display: inline-grid;
  font-family: "UthmanTNB", serif;
  font-synthesis: none;
  inline-size: 1.2em;
  line-height: 1;
  place-items: center;
  vertical-align: -0.12em;
}

.ayah-number__mark,
.ayah-number__digit {
  grid-area: 1 / 1;
  line-height: 1;
}

.ayah-number__mark {
  font-size: 1.18em;
}

.ayah-number__digit {
  font-size: 0.34em;
  transform: translateY(-0.02em);
}

.article-coverage-list {
  margin: 0;
  padding: 17px 0 0;
  list-style: none;
}

.article-coverage-list li {
  position: relative;
  margin-block: 0 16px;
  padding-inline-start: 17px;
  color: #3e3e3c;
  font-size: 16.5px;
  line-height: 1.65;
}

.article-coverage-list li:last-child {
  margin-block-end: 0;
}

.article-coverage-list li::before {
  content: "";
  position: absolute;
  inset-block-start: .78em;
  inset-inline-start: 4px;
  inline-size: 4px;
  block-size: 4px;
  border-radius: 50%;
  background: #343434;
}

.article-coverage-list strong {
  color: #30302e;
  font-family: var(--closing-heading);
  font-weight: 800;
}

.article-discovery {
  inline-size: min(1120px, calc(100% - 48px));
  margin: 70px auto 0;
  padding-block-start: 14px;
  border-block-start: 2px solid #202020;
  color: #242424;
  direction: rtl;
}

.discovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 34px;
}

.reading-paths-header {
  padding-block: 0 22px;
}

.discovery-section-title,
.discovery-popular-title,
.reading-card-category,
.reading-card-title,
.site-footer-brand {
  font-family: var(--closing-heading);
}

.discovery-section-title,
.discovery-popular-title {
  margin: 0;
  color: #222;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.reading-paths-intro {
  margin: 12px 0 0;
  color: #454543;
  font-size: 20px;
  line-height: 1.75;
}

.reading-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reading-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-block-size: 238px;
  min-inline-size: 0;
  padding: 18px 18px 16px;
  border: 1px solid #d9d7d3;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.reading-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 0;
  block-size: 25%;
  background: #f1f1ef;
  opacity: 0;
  transition: opacity 150ms ease;
}

.reading-card:hover::after,
.reading-card:focus-visible::after {
  opacity: 1;
}

.reading-card:focus-visible {
  outline: 1px solid #777;
  outline-offset: 3px;
}

.reading-card > span {
  position: relative;
  z-index: 1;
}

.reading-card-category {
  color: #55524e;
  font-size: 11px;
  font-weight: 800;
}

.reading-card-summary {
  margin: 18px 0 28px;
  color: #3e3e3c;
  font-size: 16.5px;
  line-height: 1.8;
}

.reading-card-footer {
  display: block;
  margin-block-start: auto;
  padding-block-start: 14px;
  border-block-start: 1px solid #d9d7d3;
}

.reading-card-title {
  display: block;
  color: #222;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.reading-card-meta {
  display: block;
  margin-block-start: 2px;
  color: #7c7872;
  font-family: var(--source);
  font-size: 10.5px;
}

.discovery-popular {
  padding-block-start: 1px;
}

.discovery-popular-title {
  padding-block-end: 11px;
  border-block-end: 1px solid #d9d7d3;
}

.discovery-popular-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.discovery-popular-list li + li {
  border-block-start: 1px solid #dededc;
}

.discovery-popular-list a {
  display: block;
  padding-block: 13px 14px;
  color: inherit;
  text-decoration: none;
}

.discovery-popular-list a:hover,
.discovery-popular-list a:focus-visible {
  color: #285f87;
}

.discovery-popular-text {
  font-family: var(--closing-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.site-footer {
  margin-block-start: 64px;
  padding: 28px 24px 34px;
  border-block-start: 1px solid #dededc;
  color: #6f6b66;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  inline-size: min(1120px, 100%);
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
}

.site-footer-brand {
  color: #222;
  font-size: 16px;
  font-weight: 800;
}

.site-footer-note {
  font-family: var(--source);
  font-size: 11.5px;
  line-height: 1.7;
}

.site-footer-top-link {
  color: #444;
  font-family: var(--source);
  font-size: 11.5px;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .discovery-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .discovery-popular {
    margin-block-start: 30px;
  }
}

@media (max-width: 760px) {
  .article-discovery {
    inline-size: calc(100% - 40px);
    margin-block-start: 58px;
  }

  .reading-paths-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --measure: min(600px, calc(100% - 40px));
  }

  .site-topbar {
    padding-inline: 14px;
  }

  .site-menu-button {
    inline-size: 36px;
  }

  .site-header-context {
    max-inline-size: calc(100vw - 82px);
    gap: 10px;
  }

  .site-header-context a {
    font-size: 11.5px;
  }

  .site-header-context__title {
    font-size: 12px !important;
  }

  .hadith-content {
    padding-block-start: 42px;
  }

  .page-title-preline {
    font-size: 14px;
  }

  .page-title-main {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.75;
  }

  .takhrij-variant-summary {
    gap: 8px;
    min-block-size: 50px;
    padding-block: 11px;
  }

  .takhrij-variant-title {
    font-size: 12.8px;
  }

  .takhrij-variant-status {
    font-size: 10.8px;
  }

  .audio-strip-block--quote-footer {
    margin-block: 35px 22px;
  }

  .audio-strip-divider {
    display: block;
  }

  .audio-strip,
  .css-b8gc4a {
    display: flex;
    align-items: center;
    flex-flow: row nowrap;
  }

  .audio-strip .css-b8gc4a > .css-79elbk {
    display: flex;
    align-items: center;
    flex: 0 0 100%;
    inline-size: 100%;
    min-inline-size: 0;
    block-size: 84px;
    gap: 8px;
  }

  .css-1xny6fl {
    order: initial;
    flex: 0 0 40px;
    inline-size: 40px;
  }

  .play-text {
    order: initial;
    flex: 1 1 auto;
    inline-size: auto;
    min-inline-size: 0;
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
  }

  .audio-strip .css-79elbk .audio-actions-wrap {
    order: initial;
    flex: 0 0 auto;
    margin: 0;
  }

  .narrator-hover-hint {
    display: none;
  }

  .article-navigation {
    margin-block: 34px 28px;
    gap: 12px;
    font-size: 12px;
  }

  .primary-hadith-byline-note {
    font-size: 11.5px;
  }

  .primary-hadith-text,
  .commentary-text {
    font-size: 17px;
    line-height: 2.15;
  }

  .takhrij-judgment-text {
    font-size: 15.6px;
    line-height: 2.15;
  }

  .topic-title {
    font-size: 16.5px;
  }

  .source-note {
    inline-size: 100%;
    margin-block: 12px 22px;
    padding-inline-start: 12px;
  }

  .takhrij-graph-modal-panel {
    opacity: .985;
    transform: translate3d(100%, 0, 0);
  }

  .takhrij-modal.is-open .takhrij-graph-modal-panel {
    transform: translate3d(0, 0, 0);
  }

  .takhrij-graph-modal-close {
    top: 7px;
    right: 8px;
    left: auto;
  }

  .takhrij-graph-strip-inner {
    gap: 8px;
    min-block-size: 44px;
    padding: 7px 52px;
    font-size: 13px;
  }

  .takhrij-graph-canvas {
    padding: 40px 14px 20px;
  }

  .takhrij-graph-context-block {
    inset-block-start: 14px;
    inset-inline-start: 14px;
    max-inline-size: min(300px, 72vw);
  }

  .takhrij-graph-context-title {
    font-size: 14px;
    line-height: 2;
  }

  .takhrij-graph-context-note {
    font-size: 12px;
  }

  .takhrij-graph-stage {
    margin-block-start: 175px;
  }
}

/*
 * Responsive parity with the first hadith.
 * The opening typography follows the same compact scale, while the audio,
 * share, and narrator controls become the same two-row stack on small screens.
 */
@media (max-width: 640px) {
  .full-hadith-page .page-title-main {
    font-size: clamp(23px, 6.4vw, 28px);
    line-height: 1.8;
  }

  .full-hadith-page .primary-hadith-text,
  .full-hadith-page .commentary-text {
    font-size: 16.4px;
    line-height: 2.2;
  }

  .full-hadith-page .primary-hadith-text {
    word-spacing: .05em;
  }

  .full-hadith-page .source-author {
    font-family:
      "Saner Uthman Arabic Reading Text 18",
      "UthmanTN ScreenText EnglishClarity SafeMarks",
      "UthmanTNB",
      serif;
  }

  .full-hadith-page .takhrij-judgment-text {
    font-size: 15px;
    line-height: 2.2;
  }

  .full-hadith-page .audio-strip-block--quote-footer .audio-strip-divider {
    display: none;
  }

  .full-hadith-page .audio-strip,
  .full-hadith-page .css-b8gc4a {
    min-block-size: 112px;
    block-size: 112px;
  }

  .full-hadith-page .css-b8gc4a,
  .full-hadith-page .css-b8gc4a.is-player-active {
    display: grid;
    grid-template-columns: 40px auto minmax(0, 1fr);
    grid-template-rows: 40px 32px;
    align-content: center;
    align-items: center;
    column-gap: 8px;
    row-gap: 14px;
  }

  .full-hadith-page .audio-strip .css-b8gc4a > .css-79elbk,
  .full-hadith-page .css-b8gc4a.is-player-active .css-79elbk {
    display: contents !important;
  }

  .full-hadith-page .css-1xny6fl,
  .full-hadith-page .css-b8gc4a.is-player-active .css-1xny6fl {
    grid-column: 1;
    grid-row: 1;
    inline-size: 40px;
    block-size: 40px;
  }

  .full-hadith-page .play-text {
    grid-column: 2 / -1;
    grid-row: 1;
    min-inline-size: 0;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  .full-hadith-page .audio-strip .css-79elbk .audio-actions-wrap,
  .full-hadith-page .css-b8gc4a.is-player-active .audio-actions-wrap {
    grid-column: 1;
    grid-row: 2;
    inline-size: 32px;
    block-size: 32px;
    margin: 0;
  }

  .full-hadith-page .audio-action-link.audio-action-link--share {
    inline-size: 32px;
    min-inline-size: 32px;
    block-size: 32px;
  }

  .full-hadith-page .narrator-hover-hint,
  .full-hadith-page .css-b8gc4a.is-player-active .narrator-hover-hint {
    display: inline-flex !important;
    grid-column: 2 / -1;
    grid-row: 2;
    min-inline-size: 0;
    margin: 0;
    gap: 8px;
    white-space: nowrap;
  }

  .full-hadith-page .narrator-hover-hint-text {
    min-inline-size: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .full-hadith-page .css-b8gc4a.is-player-active #currentTime {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .full-hadith-page .css-b8gc4a.is-player-active .audio-track-group {
    grid-column: 3;
    grid-row: 1;
    inline-size: max-content;
    max-inline-size: 100%;
    justify-self: start;
  }

  .full-hadith-page .css-b8gc4a.is-player-active .css-1qgbylr[type="range"] {
    flex: 0 1 clamp(110px, 36vw, 180px);
    inline-size: clamp(110px, 36vw, 180px);
    max-inline-size: 180px;
    min-inline-size: 110px;
  }

  .full-hadith-page .css-b8gc4a.is-player-active #remainingTime {
    margin: 0;
  }

  .full-hadith-page #playPauseButton > svg,
  .full-hadith-page .play-text,
  .full-hadith-page .audio-action-img,
  .full-hadith-page #currentTime,
  .full-hadith-page #remainingTime,
  .full-hadith-page #audioRange,
  .full-hadith-page .narrator-hover-hint {
    transform: none;
  }
}

@media (max-width: 428px) {
  .full-hadith-page .primary-hadith-text,
  .full-hadith-page .commentary-text {
    font-size: 15px;
  }

  .full-hadith-page .takhrij-judgment-text,
  .full-hadith-page .takhrij-variant-text {
    font-size: 13.6px;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 640px) and (hover: none) and (pointer: coarse) {
    .full-hadith-page {
      --reading:
        "Saner Uthman Arabic Reading Text 18",
        "UthmanTN ScreenText EnglishClarity SafeMarks",
        "UthmanTNB",
        serif;
    }
  }
}

/*
 * Typography parity with the first hadith.
 *
 * Display headings use the Kufi face, editorial labels use Uthman Author,
 * reading passages use Saner Uthman Reading Text 18, and interface metadata
 * uses Saner Uthman Calm Screen. The article title keeps its independently
 * chosen responsive size.
 */
.full-hadith-page {
  --first-hadith-display:
    "KufiExt Title WideTall",
    "KufiExt",
    "UthmanTNB",
    serif;
  --first-hadith-reading:
    "Saner Uthman Arabic Reading Text 18",
    "UthmanTN ScreenText EnglishClarity SafeMarks",
    "UthmanTNB",
    serif;
  --first-hadith-ui:
    "Saner Uthman Arabic Calm Screen",
    "UthmanTNB",
    serif;
  --first-hadith-author:
    "Uthman Author ExtraBold",
    "UthmanTNB",
    serif;
  --reading: var(--first-hadith-reading);
  --author: var(--first-hadith-author);
  --display: var(--first-hadith-display);
}

.full-hadith-page .site-header-context__title,
.full-hadith-page .page-title-kicker,
.full-hadith-page .page-title-preline,
.full-hadith-page .primary-hadith-byline-title,
.full-hadith-page .takhrij-judgment-title,
.full-hadith-page .takhrij-investigations-title,
.full-hadith-page .takhrij-variant-title,
.full-hadith-page .takhrij-row-references-title,
.full-hadith-page .primary-reference-title,
.full-hadith-page .takhrij-label,
.full-hadith-page .article-end-topics-label,
.full-hadith-page .article-coverage-title,
.full-hadith-page .article-coverage-list strong,
.full-hadith-page .discovery-section-title,
.full-hadith-page .discovery-popular-title,
.full-hadith-page .reading-card-category,
.full-hadith-page .reading-card-title,
.full-hadith-page .site-footer-brand {
  font-family: var(--first-hadith-author);
}

.full-hadith-page .site-header-context__current,
.full-hadith-page .site-menu,
.full-hadith-page .article-end-topics,
.full-hadith-page .article-end-action,
.full-hadith-page .article-end-action-status,
.full-hadith-page .reading-card-meta,
.full-hadith-page .site-footer,
.full-hadith-page .site-footer-note,
.full-hadith-page .site-footer-top-link,
.full-hadith-page .takhrij-variant-status {
  font-family: var(--first-hadith-ui);
}

.full-hadith-page .page-title-main,
.full-hadith-page .fiqh-heading {
  font-family: var(--first-hadith-display);
}

.full-hadith-page .primary-hadith-byline-note,
.full-hadith-page .primary-hadith-text,
.full-hadith-page .takhrij-judgment-text,
.full-hadith-page .takhrij-variant-text,
.full-hadith-page .takhrij-critic-text,
.full-hadith-page .commentary-text,
.full-hadith-page .source-author,
.full-hadith-page .article-closing,
.full-hadith-page .article-coverage-list li,
.full-hadith-page .article-discovery,
.full-hadith-page .reading-paths-intro,
.full-hadith-page .reading-card-summary {
  font-family: var(--first-hadith-reading);
}

.full-hadith-page .page-title-kicker {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.55;
  word-spacing: .04em;
}

.full-hadith-page .page-title-preline {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
  word-spacing: .04em;
}

.full-hadith-page .page-title-main {
  font-weight: 400;
  line-height: 1.56;
  word-spacing: .04em;
}

.full-hadith-page .primary-hadith-byline-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.full-hadith-page .primary-hadith-byline-note {
  font-size: 12px;
  font-weight: 500;
  line-height: 2;
  word-spacing: .2em;
}

.full-hadith-page .primary-hadith-text {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 2.2;
  word-spacing: .05em;
}

.full-hadith-page .takhrij-judgment-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.full-hadith-page .primary-reference-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.full-hadith-page .takhrij-judgment-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 2.2;
  word-spacing: .05em;
}

.full-hadith-page .fiqh-heading {
  font-size: clamp(14.5px, 1.45vw, 17px);
  font-weight: 400;
  line-height: 1.35;
}

.full-hadith-page .topic-title {
  color: #2b2926;
  font-family: var(--first-hadith-author);
  font-size: clamp(16.5px, 1.55vw, 18px);
  font-weight: 800;
  font-synthesis: none;
  line-height: 1.55;
}

.full-hadith-page .commentary-text {
  font-size: 16.4px;
  font-weight: 500;
  line-height: 2.2;
  word-spacing: .05em;
}

.full-hadith-page .quote-speaker {
  font-family: inherit;
  font-size: .88em;
  font-weight: inherit;
  line-height: 1.58;
}

.full-hadith-page .source-author {
  color: #45413c;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
}

.full-hadith-page .source-reference {
  color: #77716a;
  font-family:
    "AhlHadith Scholar Comment Text",
    "Saner Uthman Arabic Calm Screen",
    "UthmanTNB",
    serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
  word-spacing: .03em;
}

.full-hadith-page .article-coverage-list li {
  font-size: 16.5px;
  line-height: 1.65;
}

.full-hadith-page .reading-paths-intro {
  font-size: 20px;
  line-height: 1.75;
}

.full-hadith-page .reading-card-summary {
  font-size: 16.5px;
  line-height: 1.8;
}

.full-hadith-page .reading-card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.full-hadith-page .discovery-popular-text {
  font-family: var(--first-hadith-author);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.full-hadith-page .site-footer-brand {
  font-size: 16px;
  font-weight: 800;
}

.full-hadith-page .site-footer-note,
.full-hadith-page .site-footer-top-link {
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .full-hadith-page .page-title-preline {
    font-size: 14px;
    line-height: 1.8;
  }

  .full-hadith-page .page-title-main {
    line-height: 1.8;
  }

  .full-hadith-page .primary-hadith-byline-note {
    font-size: 11.5px;
  }

  .full-hadith-page .primary-hadith-text,
  .full-hadith-page .commentary-text {
    font-size: 16.4px;
    line-height: 2.2;
  }
}

@media (max-width: 520px) {
  .full-hadith-page .article-coverage-title {
    font-size: 22px;
  }

  .full-hadith-page .article-coverage-list li {
    font-size: 15.5px;
  }

  .full-hadith-page .topic-title {
    font-size: 16.5px;
  }

  .full-hadith-page .reading-paths-intro {
    font-size: 18px;
  }
}

@media (max-width: 428px) {
  .full-hadith-page .primary-hadith-text,
  .full-hadith-page .commentary-text {
    font-size: 15px;
  }

  .full-hadith-page .takhrij-judgment-text,
  .full-hadith-page .takhrij-variant-text {
    font-size: 13.6px;
  }
}

@media print {
  .site-header,
  .site-menu,
  .article-navigation,
  .audio-strip-block,
  .takhrij-label,
  .takhrij-modal,
  .article-closing,
  .article-discovery,
  .site-footer {
    display: none !important;
  }

  .hadith-content {
    inline-size: 100%;
    padding: 0;
  }

  .takhrij-variant-body,
  .primary-reference-more-body {
    display: block !important;
  }
}
