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

@font-face {
  font-family: "AhlHadith Card Menu Text";
  src: url("SanerUthmanArabicReadingText18-Medium-SlightThickTrial.woff2") format("woff2");
  font-weight: 600;
  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;
}

body.narrator-cards-enabled {
  --narrator-panel-width: 420px;
  --narrator-panel-gutter: 40px;
  --narrator-panel-soft: #f9f9f9;
  --narrator-panel-rule: #e6e6e6;
  --narrator-panel-rule-mid: #cbcbcb;
  --narrator-panel-muted: #5e6673;
}

html.narrator-panel-open,
body.narrator-panel-open {
  overflow: hidden;
}

.narrator-link,
.narrator-link--button {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.narrator-link--button {
  appearance: none;
  background: none;
  border: 0;
  display: inline;
  font: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-align: inherit;
  vertical-align: baseline;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.narrator-link:hover,
.narrator-link:focus-visible,
.narrator-link--button:hover,
.narrator-link--button:focus-visible {
  color: inherit;
  outline: none;
}

.narrator-panel-scrim {
  appearance: none;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  cursor: default;
  inset: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 300ms ease;
  z-index: 1200;
}

.narrator-panel-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.narrator-profile-panel {
  background: #fff;
  block-size: 100dvh;
  box-shadow: -12px 0 38px rgba(0, 0, 0, 0.12);
  color: #17130e;
  direction: rtl;
  inline-size: min(var(--narrator-panel-width), 100vw);
  inset-block-start: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  transform: translate3d(104%, 0, 0);
  transition: transform 420ms cubic-bezier(.22, .61, .36, 1), opacity 220ms ease;
  z-index: 1201;
}

.narrator-profile-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.narrator-profile-panel [hidden] {
  display: none !important;
}

.narrator-profile-panel__scroll {
  block-size: 100%;
  display: flex;
  flex-direction: column;
  min-block-size: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.narrator-profile-panel__scroll::-webkit-scrollbar {
  display: none;
}

.narrator-profile-panel__header {
  padding: calc(30px + env(safe-area-inset-top, 0px)) var(--narrator-panel-gutter) 12px;
}

.narrator-profile-panel__header-main {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  column-gap: 14px;
}

.narrator-profile-panel__title {
  color: #111;
  font-family: "KufiExt Title Short", "KufiExt", "UthmanTNB", serif;
  font-size: 22px;
  font-weight: 400;
  grid-column: 1;
  grid-row: 1;
  line-height: 1.6;
  margin: 0;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.narrator-profile-panel__dates {
  font-family: "UthmanTNB", serif;
  font-size: 15px;
  font-weight: 400;
  white-space: normal;
}

.narrator-profile-panel__subtitle {
  color: var(--narrator-panel-muted);
  font-family: "Uthman Author ExtraBold", "Saner Uthman Arabic Calm Screen", serif;
  font-size: 12px;
  font-weight: 800;
  grid-column: 1;
  grid-row: 2;
  line-height: 1.55;
  margin: 7px 0 0;
}

.narrator-profile-panel__close {
  appearance: none;
  background: none;
  border: 0;
  box-shadow: none;
  color: #383838;
  cursor: pointer;
  grid-column: 2;
  grid-row: 1 / span 2;
  inline-size: 16px;
  block-size: 28px;
  padding: 0;
  position: relative;
  place-self: center;
}

.narrator-profile-panel__close:focus,
.narrator-profile-panel__close:focus-visible {
  border: 0;
  box-shadow: none;
  outline: none;
}

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

.narrator-profile-panel__close::before {
  transform: translateY(-50%) rotate(-36.9deg);
}

.narrator-profile-panel__close::after {
  transform: translateY(-50%) rotate(36.9deg);
}

.narrator-rail {
  position: relative;
  border-block-end: 0;
  background: #fff;
  overflow: hidden;
}

.narrator-main-rail {
  display: block !important;
  flex: 0 0 auto;
  min-block-size: 46px;
  visibility: visible;
}

.narrator-main-rail .narrator-rail__inner {
  min-block-size: 46px;
}

.narrator-rail::after {
  position: absolute;
  z-index: 0;
  inset-inline: var(--narrator-panel-gutter);
  inset-block-end: 0;
  block-size: 1px;
  background: var(--narrator-panel-rule);
  content: "";
  pointer-events: none;
}

.narrator-rail__inner {
  position: relative;
  z-index: 1;
  align-items: center;
  display: flex;
  gap: 22px;
  margin-inline: var(--narrator-panel-gutter);
  overflow-x: auto;
  padding-inline: 0;
  scrollbar-width: none;
}

.narrator-rail__inner::-webkit-scrollbar {
  display: none;
}

.narrator-tab,
.narrator-subtab,
.narrator-scholar-tab {
  appearance: none;
  background: none;
  border: 0;
  color: #25211d;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: "AhlHadith Card Menu Text", "Saner Uthman Arabic Calm Screen", "Saner Uthman Arabic Reading Text 18", serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  padding: 12px 0 11px;
  position: relative;
  white-space: nowrap;
}

.narrator-tab.is-active::after,
.narrator-subtab.is-active::after,
.narrator-scholar-tab.is-active::after {
  background: #17130e;
  block-size: 2px;
  content: "";
  inset-block-end: 0;
  inset-inline: 0;
  position: absolute;
}

.narrator-rail__label {
  color: #403b36;
  flex: 0 0 auto;
  font-family: "AhlHadith Card Menu Text", "Saner Uthman Arabic Calm Screen", "Saner Uthman Arabic Reading Text 18", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  padding-block: 12px;
  white-space: nowrap;
}

.narrator-rail__label--critics {
  font-family: "Saner Uthman Arabic Calm Screen", serif;
}

.narrator-rail__separator {
  background: #aaa;
  block-size: 14px;
  flex: 0 0 1px;
  inline-size: 1px;
}

.narrator-scholar-rail .narrator-rail__label::after {
  display: none !important;
  content: none !important;
}

.narrator-content {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-block-size: 0;
}

.narrator-content > [data-narrator-view]:not([hidden]) {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.narrator-content [data-narrator-subview]:not([hidden]),
.narrator-content .narrator-scholar-view:not([hidden]) {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.narrator-table,
.narrator-name-table,
.narrator-quote-box {
  background: var(--narrator-panel-soft);
  border-radius: 6px;
  margin: 40px var(--narrator-panel-gutter) 30px;
}

.narrator-table {
  overflow: hidden;
}

.narrator-field-row {
  border-block-end: 1px solid var(--narrator-panel-rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: 24px;
}

.narrator-field-row:last-child {
  border-block-end: 0;
}

.narrator-field-row.is-full {
  grid-template-columns: minmax(0, 1fr);
}

.narrator-field {
  align-items: baseline;
  display: grid;
  gap: 10px;
  grid-template-columns: max-content minmax(0, 1fr);
  padding: 14px 12px 14px 0;
}

.narrator-field__term {
  font-family: "KufiExt", serif;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}

.narrator-field__definition {
  color: #000;
  font-family: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  min-inline-size: 0;
  overflow-wrap: break-word;
}

.narrator-name-table {
  padding-inline: 24px;
}

.narrator-name-table__title {
  border-block-end: 1px solid var(--narrator-panel-rule-mid);
  color: #555;
  font-family: "KufiExt", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.75;
  padding: 18px 0 9px;
}

.narrator-name-row {
  border-block-end: 1px solid var(--narrator-panel-rule);
  color: #000;
  font-family: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  padding: 18px 0;
}

.narrator-name-row:last-child {
  border-block-end: 0;
}

.narrator-name-note {
  color: #777;
  display: block;
  font-size: 13px;
  line-height: 1.75;
  margin-block-start: 3px;
}

.narrator-source-note {
  border-inline-start: 2px solid var(--narrator-panel-rule-mid);
  color: #777;
  font-family: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", serif;
  font-size: 12.4px;
  font-weight: 500;
  line-height: 1.9;
  margin: 18px var(--narrator-panel-gutter) 28px;
  padding-inline-start: 12px;
  word-spacing: .04em;
}

.narrator-source-note p {
  margin: 0;
}

.narrator-source-note p + p {
  margin-block-start: 7px;
}

.narrator-source-note strong {
  color: #4d4d4d;
  font-family: "Uthman Author ExtraBold", "Saner Uthman Arabic Calm Screen", serif;
  font-size: 13px;
  font-weight: 700;
}

.narrator-scholar-rail {
  margin-block-start: 0;
}

.narrator-quote-box {
  padding: 0 24px 14px;
}

.narrator-quote {
  border-block-end: 1px solid #e2e2e2;
  margin: 0;
  padding: 28px 0 26px;
}

.narrator-quote:last-child {
  border-block-end: 0;
}

.narrator-quote__author {
  color: #45413c;
  font-family: "Uthman Author ExtraBold", "Saner Uthman Arabic Calm Screen", serif;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.75;
  margin: 0 0 8px;
}

.narrator-quote__text {
  color: #000;
  font-family: "Saner Uthman Arabic Reading Text 18", "UthmanTN ScreenText EnglishClarity SafeMarks", "UthmanTNB", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 2.2;
  margin: 0;
  text-align: right;
  word-spacing: .04em;
}

.narrator-quote__reference {
  color: #777;
  font-family: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", "UthmanTNB", serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.85;
  margin: 14px 0 0;
  white-space: normal;
  word-spacing: .04em;
}

.narrator-quote__note {
  color: #5d5a55;
  font-family: "Saner Uthman Arabic Calm Screen", serif;
  font-size: 13.5px;
  line-height: 1.85;
  margin: 9px 0 0;
}

.narrator-quote-isnad {
  border-block-start: 1px solid var(--narrator-panel-rule);
  margin-block-start: 10px;
  padding-block-start: 9px;
}

.narrator-quote-isnad summary {
  align-items: center;
  color: #55514c;
  cursor: pointer;
  display: inline-flex;
  font-family: "Uthman Author ExtraBold", "Saner Uthman Arabic Calm Screen", serif;
  font-size: 11.5px;
  font-weight: 600;
  gap: 7px;
  line-height: 1.75;
  list-style: none;
}

.narrator-quote-isnad summary::-webkit-details-marker {
  display: none;
}

.narrator-quote-isnad summary::after {
  color: #8a8782;
  content: "▾";
  font-family: ui-serif, Georgia, serif;
  font-size: 12px;
  font-weight: 400;
}

.narrator-quote-isnad[open] summary::after {
  content: "▴";
}

.narrator-quote-isnad__body {
  color: #57534e;
  font-family: "AhlHadith Scholar Comment Text", "Saner Uthman Arabic Calm Screen", serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 2;
  margin-block-start: 8px;
  word-spacing: .04em;
}

.narrator-quote-isnad__body p {
  margin: 0;
}

.narrator-quote-isnad__body p + p {
  border-block-start: 1px solid var(--narrator-panel-rule);
  margin-block-start: 10px;
  padding-block-start: 10px;
}

.narrator-proof-group {
  margin: 40px var(--narrator-panel-gutter) 24px;
}

.narrator-proof-group + .narrator-proof-group {
  margin-block-start: 0;
}

.narrator-proof-group__title {
  background: var(--narrator-panel-soft);
  border-block: 1px solid var(--narrator-panel-rule);
  border-radius: 3px;
  color: #3e3934;
  font-family: "Uthman Author ExtraBold", "Saner Uthman Arabic Calm Screen", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
  margin: 0 0 0;
  padding: 9px 14px;
}

.narrator-proof-group .narrator-quote-box {
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding-inline: 24px;
}

.narrator-panel-tail {
  font-size: 14px;
  margin-block: auto 14px;
  margin-inline: 0;
  padding-block-start: 20px;
}

.narrator-panel-tail::before {
  background: #fff;
  border-block-end: 1px solid #bebebe;
  border-block-start: 2px solid #bebebe;
  content: "";
  display: block;
  height: 1px;
  margin: 8px var(--narrator-panel-gutter) 12px;
}

.narrator-panel-tail__title {
  border-block-end: 1px solid var(--narrator-panel-rule-mid);
  font-family: "KufiExt", serif;
  font-size: 16px;
  font-weight: 800;
  margin: 0 var(--narrator-panel-gutter) 6px;
  padding-block-end: 8px;
}

.narrator-panel-tail__item {
  border-block-end: 1px solid var(--narrator-panel-rule-mid);
  line-height: 1.75;
  margin-inline: var(--narrator-panel-gutter);
  padding: 14px 0;
}

.narrator-panel-tail__item:last-child {
  border-block-end: 0;
}

@media (max-width: 640px) {
  body.narrator-cards-enabled {
    --narrator-panel-gutter: 26px;
  }

  .narrator-profile-panel {
    inline-size: 100vw;
  }

  .narrator-profile-panel__header {
    padding-block-start: calc(36px + env(safe-area-inset-top, 0px));
  }

  .narrator-profile-panel__title {
    font-size: 21px;
  }

  .narrator-rail__inner {
    gap: 20px;
  }

  .narrator-table,
  .narrator-name-table,
  .narrator-quote-box {
    margin-block-start: 32px;
  }

  .narrator-field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .narrator-field {
    border-block-end: 1px solid var(--narrator-panel-rule);
  }

  .narrator-field-row:last-child .narrator-field:last-child,
  .narrator-field-row .narrator-field:last-child {
    border-block-end: 0;
  }

  .narrator-quote-box {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .narrator-panel-scrim,
  .narrator-profile-panel {
    transition: none;
  }
}
