:root {
  --content-font-scale: 1;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --font-quran-arabic: 'MeQuran', 'quran', serif;
  --c-page: #f3f7f5;
  --c-page-rgb: 243, 247, 245;
  --c-paper: #fffef8;
  --c-paper-rgb: 255, 254, 248;
  --c-chrome: #fffef8;
  --c-chrome-rgb: 255, 254, 248;
  --c-surface: #ffffff;
  --c-surface-rgb: 255, 255, 255;
  --c-mint: #e8f3ec;
  --c-mint-rgb: 232, 243, 236;
  --c-ink: #24342d;
  --c-ink-rgb: 36, 52, 45;
  --c-muted: #5e6b65;
  --c-muted-rgb: 94, 107, 101;
  --c-accent: #075c3f;
  --c-accent-rgb: 7, 92, 63;
  --c-strong: #16835c;
  --c-strong-rgb: 22, 131, 92;
  --c-line: #d2ddd7;
  --c-line-rgb: 210, 221, 215;
  --c-line-warm: #ddd6c7;
  --c-line-warm-rgb: 221, 214, 199;
  --c-danger: #9d2f25;
  --c-danger-rgb: 157, 47, 37;
  --c-danger-wash: color-mix(in srgb, var(--c-danger) 12%, var(--c-surface));
}

body {
  direction: rtl;
}

a {
  text-decoration: none;
}

@font-face {
  font-family: 'quran';
  src: url('font/quran/Al-QuranAlKareem.woff2') format('woff2'),
       url('font/quran/Al-QuranAlKareem.woff') format('woff'),
       url('font/quran/Al-QuranAlKareem.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MeQuran';
  src: url('../fonts/me_quran.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html:not(.mushaf-arabic-fonts-ready) .word-gloss-arabic,
html:not(.mushaf-arabic-fonts-ready) .mushaf-slide-view-ayah-text,
html:not(.mushaf-arabic-fonts-ready) .mushaf-slide-view-ayah-body,
.mushaf-slide-view.is-slide-fitting .mushaf-slide-view-ayah-text,
.mushaf-slide-view.is-slide-fitting .mushaf-slide-view-tooltip-host {
  visibility: hidden;
}

.left {
  float: left;
}

.menu {
  font-size: 18px;
  padding: 0 12px;
  border-bottom: 1px solid var(--c-page);
  z-index: 1;
  position: relative;
  overflow: hidden;
}

.menu .namad {
  display: inline-block;
  line-height: 34px;
}

.menu .namad svg {
  fill: var(--c-ink);
  color: var(--c-ink);
  height: 20px;
  width: 120px;
  margin-top: 3px;
  margin-bottom: 3px;
  display: inline-block;
  vertical-align: middle;
}

.menu .i {
  display: inline-block;
}

.menu .i .im {
  display: inline-block;
}

.menu .i .im a {
  transition: all 0.1s ease-in 0s;
  position: relative;
  color: var(--c-ink);
  display: inline-block;
  line-height: 44px;
  padding: 0 7px;
}

.menu .i .im a:hover:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--c-strong);
  right: 0;
  bottom: 0;
}

.menu .i .im a:hover {
  color: #000;
  background: var(--c-mint);
}

.menu .i.left {
  transition: all 0.1s ease-in 0s;
  margin-left: -32px;
}

.menu .i.icon {
  visibility: hidden;
  cursor: pointer;
  float: left;
  position: relative;
  top: 5px;
  transform: translateX(-200%);
  transition: all 0.1s ease-in 0s;
}

.menu .i.icon svg {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  position: relative;
}

.menu-dd {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .05);
  border-bottom: 1px solid var(--c-page);
  text-align: center;
}

.menu-dd .dd {
  box-shadow: 0 2px 9px rgba(0, 0, 0, .05);
  transition: all 0.1s ease-in 0s;
  background: var(--c-surface);
  cursor: pointer;
  display: inline-block;
  border: 1px solid var(--c-line-warm);
  line-height: 34px;
  border-radius: 5px;
  margin: 4px 5px;
}

.menu-dd svg {
  display: inline-block;
  height: 12px;
  width: 18px;
  vertical-align: middle;
  margin-right: 12px;
  margin-left: 12px;
}

.menu-dd .lbl {
  display: inline-block;
  font-size: 121%;
  text-align: center;
  padding-left: 12px;
  padding-right: 9px;
  line-height: 34px;
}

.menu-dd .dd:hover {
  background: var(--c-mint);
  border: 1px solid var(--c-strong);
}

.menu-dd .dd:hover svg {
  color: var(--c-accent);
}

.md {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  background: rgba(var(--c-ink-rgb), .48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, visibility .14s ease;
}

.md.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.md .rtl {
  direction: rtl;
}

.modal-open {
  overflow: hidden;
}

.surah-dialog {
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

#md-sureh .surah-dialog,
#md-juz .surah-dialog {
  background: var(--c-paper);
}

.surah-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-mint);
}

.surah-dialog-header h2 {
  margin: 0;
  font-size: 1.15em;
}

.surah-dialog-ayah-picker {
  margin: 10px 18px 2px;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-page);
  direction: rtl;
}

.surah-dialog-ayah-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--c-accent);
  font-size: .9em;
  font-weight: bold;
}

.surah-dialog-ayah-picker .mushaf-ayah-slider-value {
  position: static;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  transform: none;
}

.surah-dialog-ayah-control {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.mushaf-juz-progress-control {
  grid-template-columns: minmax(0, 1fr);
}

.surah-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.surah-dialog-close:hover,
.surah-dialog-close:focus {
  background: var(--c-page);
  outline: none;
}

.surah-dialog-close svg {
  width: 24px;
  height: 24px;
}

.surah-search-label {
  padding: 10px 18px 4px;
  color: var(--c-muted);
  font-size: .86em;
}

.surah-search {
  box-sizing: border-box;
  width: calc(100% - 36px);
  min-height: 42px;
  margin: 0 18px 10px;
  padding: 7px 12px;
  border: 1px solid var(--c-line-warm);
  border-radius: 7px;
  font: inherit;
}

.surah-search:focus {
  border-color: var(--c-strong);
  outline: 2px solid rgba(var(--c-strong-rgb), .22);
}

.surah-dialog .sfehrest {
  width: 100%;
  max-width: none;
  padding: 14px 18px 20px;
  overflow-y: auto;
  background: var(--c-paper);
}

.juz-dialog {
  width: min(700px, 100%);
}

.juz-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.juz-list > a {
  display: block;
}

.juz-list > a > div {
  width: auto;
  margin: 0;
}

.page-dialog,
.sources-dialog,
.account-dialog {
  width: min(620px, 100%);
}

.sources-list {
  display: grid;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
}

.sources-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  text-decoration: none;
}

.sources-list a:hover,
.sources-list a:focus-visible {
  border-color: var(--c-muted);
  background: var(--c-page);
  outline: none;
}

.sources-list bdi {
  color: var(--c-strong);
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.account-dialog {
  max-width: 440px;
}

.account-panel {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.account-panel[hidden] {
  display: none;
}

.account-panel p {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.8;
}

.account-google-button {
  min-height: 44px;
}

.account-profile img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.account-profile > div:not(.account-actions) {
  display: grid;
  gap: 3px;
}

.account-profile small {
  direction: ltr;
  color: var(--c-muted);
  font-family: Arial, sans-serif;
}

.account-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.account-actions button {
  min-width: 96px;
  padding: 9px 16px;
  border: 1px solid var(--c-line-warm);
  border-radius: 9px;
  font: inherit;
  cursor: pointer;
}

.account-cancel-button {
  color: var(--c-ink);
  background: var(--c-surface);
}

.account-signout-button {
  border-color: var(--c-danger) !important;
  color: var(--c-surface);
  background: var(--c-danger);
}

.account-status {
  min-height: 1.5em;
  margin: 0;
  padding: 0 24px 18px;
  color: var(--c-danger);
  font-size: .84rem;
  text-align: center;
}

.md-top {
  position: relative;
  padding: 0 30px;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .05);
}

.md-top .icon {
  transition: all 0.1s ease-in 0s;
  position: relative;
  line-height: 50px;
  width: 50px;
  height: 50px;
  display: inline-block;
  cursor: pointer;
  text-align: center;
}

.md-top .icon svg {
  display: inline-block;
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

.md-top .icon:hover {
  background: var(--c-mint);
}

.md-top .icon:hover:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--c-strong);
  right: 0;
  bottom: 0;
}

.home-hero {
  max-width: 900px;
  margin: 50px auto 25px;
  text-align: center;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px auto;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 120px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--c-page);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 1.8em;
  color: #126092;
}

.cnt {
  box-sizing: border-box;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 60px;
  overflow: hidden;
  font-size: 1.3em;
  line-height: 1.5em;
}

.sfehrest {
  padding: 30px;
  background: var(--c-mint);
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sfehrest > a > div {
  margin-left: 3px;
  width: 135px;
  display: inline-block;
  color: var(--c-ink);
}

.sfehrest > a:hover > div,
.sfehrest > .slt > div {
  background: #3a8bbb;
  border-radius: 7px;
  color: #000;
}

.sfehrest > a > div > span:first-child {
  color: var(--c-surface);
  display: inline-block;
  border-radius: 50%;
  background: var(--c-line);
  font-size: 0.92em;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  vertical-align: middle;
  margin-right: 5px;
}

.sfehrest > a > div > span:first-child + span {
  line-height: 38px;
  margin-right: 3px;
  font-size: 1.1em;
  vertical-align: middle;
}

.sfehrest.ayeh {
  text-align: center;
  min-height: 70vh;
}

.sfehrest.ayeh > a > div {
  width: auto;
  margin: 7px 1px;
}

.sfehrest.ayeh > .n > div > span:first-child {
  background: var(--c-line-warm);
}

.sfehrest.ayeh > a:hover > div > span:first-child,
.sfehrest.ayeh > .slt > div > span:first-child {
  background: unset;
}

.sfehrest.ayeh > a > div > span:first-child {
  background: #92c6d7;
  font-size: 1em;
  width: 42px;
  height: 42px;
  line-height: 42px;
}

.sfehrest .o {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 21px;
}

.sfehrest .o span {
  background-image: linear-gradient(to bottom, rgba(var(--c-ink-rgb), 0.6) 50%, rgba(0, 0, 0, 0) 50%);
  background-repeat: repeat-x;
  background-size: 2px 5px;
  background-position: 0 1.3em;
}

.ayah-grid a.n {
  opacity: 0.45;
}

.lt-hadis {
  box-sizing: border-box;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
  font-size: 1.3em;
}

.lt-hadis h1,
.cnt h1 {
  font-size: 1.7em;
  text-align: center;
  word-spacing: -0.05em;
  letter-spacing: -0.005em;
  margin-bottom: 40px;
}

.lt-hadis h2 {
  font-size: 1.5em;
  text-align: center;
  word-spacing: -0.05em;
  letter-spacing: -0.005em;
  margin-top: 40px;
  margin-bottom: 14px;
}

.r-hadis {
  padding: 19px;
}

.r-hadis.odd {
  background: var(--c-page);
}

.ar-hadis,
.ar-hadis p,
.r-ayeh .ar,
.r-ayeh .ar p,
.cnt .ar {
  font-family: quran;
}

.ar-hadis,
.r-ayeh .ar {
  font-size: 1.1em;
}

.fa-hadis,
.r-ayeh .fa {
  font-size: 1.04em;
}

.fa-hadis a {
  background-image: linear-gradient(to bottom, rgba(4, 84, 152, 0.7) 50%, rgba(0, 0, 0, 0) 50%);
  background-repeat: repeat-x;
  background-size: 2px .1em;
  background-position: 0 1.1em;
  color: #0345a8;
}

.r-ayeh {
  position: relative;
  padding: 14px;
  margin: 19px 0;
  border-radius: 7px;
  color: #0d1218;
  background: var(--c-page);
  border: 1px solid var(--c-mint);
  border-right: 4px solid #a5c3d4;
  box-sizing: border-box;
  box-shadow: 0 1px 12px rgba(0, 0, 0, .06), 0 1px 6px rgba(0, 0, 0, .06);
}

.r-ayeh .ar span {
  display: inline-block;
  background: #a5c3d4;
  line-height: 43px;
  width: 36px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.85em;
  font-family: quran;
  height: 36px;
  color: var(--c-surface);
}

.addr {
  color: var(--c-muted);
  margin-bottom: 10px;
}

.addr .num {
  color: var(--c-surface);
  background: #45a5bf;
  border-radius: 50%;
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  margin-left: 8px;
}

.addr .s {
  display: inline-block;
}

.ketab {
  color: var(--c-muted);
  margin-top: 10px;
  font-size: 0.9em;
}

.ketab .o {
  display: inline-block;
}

.ketab .o:before {
  content: '-';
  line-height: 23px;
  margin-left: 5px;
  margin-right: 7px;
}

.source-list {
  margin-top: 8px;
}

.source-list span {
  display: inline-block;
  margin-left: 8px;
}

.empty-message {
  text-align: center;
  color: var(--c-muted);
  margin: 32px auto;
}

.local-footer {
  text-align: center;
  color: var(--c-muted);
  font-size: 0.9em;
  margin: 40px auto;
}

.local-footer a {
  color: var(--c-accent);
  direction: ltr;
  unicode-bidi: embed;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ayah-layout > .menu {
  display: none;
}

.ayah-layout {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--c-page);
}

@media (orientation: landscape) and (pointer: coarse) {
  html:has(body.ayah-layout) {
    height: var(--visible-shell-height, 100svh);
    overflow: hidden;
  }

  .ayah-layout {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: var(--visible-shell-height, 100svh);
    max-height: var(--visible-shell-height, 100svh);
    overflow: hidden;
  }
}

@media (orientation: landscape) and (pointer: coarse) and (max-height: 560px) {
  .ayah-view {
    --mushaf-header-height: 34px;
    --mushaf-chrome-height: 34px;
    --mushaf-footer-height: 16px;
    --mushaf-chrome-stack-gap: 4px;
    --mushaf-chrome-edge: 4px;
    --mushaf-chrome-control: 24px;
  }

  .mushaf-slide-view-ayah-text {
    font-size: clamp(2.05rem, 6.2vmax, 3.05rem);
  }

  html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat,
  html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation {
    padding: 7px;
  }
}

.ayah-page {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  background: var(--c-page);
}

.ayah-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 44px;
  margin-bottom: 2px;
  padding: 2px 12px;
  direction: rtl;
}

.toolbar-menu {
  position: relative;
  display: inline-block;
}

.toolbar-menu.is-open {
  z-index: 90;
}

.toolbar-popover {
  position: absolute;
  top: calc(100% - 3px);
  right: 7px;
  z-index: 120;
  min-width: 245px;
  padding: 7px;
  border: 1px solid #d8e0e5;
  border-radius: 8px;
  background: var(--c-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}

.toolbar-menu.is-open .toolbar-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toolbar-popover button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1.55;
  text-align: start;
}

.toolbar-popover button:hover,
.toolbar-popover button:focus,
.toolbar-popover button.is-active,
.toolbar-popover button[aria-current="page"] {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.settings-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  touch-action: manipulation;
}

.settings-trigger:hover,
.settings-trigger:focus {
  color: var(--c-accent);
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: none;
}

.settings-trigger .view-menu-icon {
  width: calc(var(--mushaf-chrome-control, 22px) * .7);
  height: calc(var(--mushaf-chrome-control, 22px) * .7);
  margin: 0;
}

.settings-menu .settings-popover {
  top: calc(100% + 2px);
  right: auto;
  left: 0;
}

.settings-popover {
  box-sizing: border-box;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  padding: 8px;
  border: 1px solid rgba(var(--c-accent-rgb), .14);
  border-radius: 12px;
  background: var(--c-page);
  box-shadow: 0 18px 46px rgba(var(--c-ink-rgb), .18);
  font-size: .88rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.settings-group {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--c-line);
  border-radius: 9px;
  background: rgba(var(--c-surface-rgb), .88);
}

.settings-group--wide {
  grid-column: 1 / -1;
}

.settings-group h2 {
  margin: 0 0 6px;
  color: var(--c-muted);
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .02em;
}

.settings-sources {
  padding: 0;
  border: 0;
  background: transparent;
}

.settings-account {
  padding: 0;
  overflow: hidden;
  border-color: rgba(var(--c-strong-rgb), .22);
  background: linear-gradient(135deg, var(--c-mint), var(--c-paper));
}

.toolbar-popover .settings-account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 6px 9px;
  border: 0;
  border-radius: 11px;
  color: var(--c-accent);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: start;
}

.toolbar-popover .settings-account-button:hover,
.toolbar-popover .settings-account-button:focus-visible {
  background: rgba(var(--c-mint-rgb), .7);
  outline: 3px solid rgba(var(--c-strong-rgb), .12);
}

.settings-account-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--c-surface);
  background: var(--c-strong);
  place-items: center;
}

.settings-account-button:disabled {
  cursor: wait;
  opacity: .55;
}

.settings-account-button[data-state="signed-in"] .account-icon--out,
.settings-account-button .account-icon--in {
  display: none;
}

.settings-account-button[data-state="signed-in"] .account-icon--in {
  display: block;
}

.toolbar-popover .settings-sources-button {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--c-line);
  border-radius: 7px;
  color: var(--c-accent);
  background: var(--c-page);
  font: inherit;
  font-weight: bold;
}

.settings-select,
.recitation-repeat-setting select {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid var(--c-line);
  border-radius: 9px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
}

.settings-select:focus,
.recitation-repeat-setting select:focus {
  border-color: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .12);
}

.slide-backdrop-picker {
  display: grid;
  gap: 4px;
  max-height: 196px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.toolbar-popover .slide-backdrop-option {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
  font-size: .82rem;
  line-height: 1.35;
  text-align: start;
}

.toolbar-popover .slide-backdrop-option:hover,
.toolbar-popover .slide-backdrop-option:focus-visible {
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: none;
}

.toolbar-popover .slide-backdrop-option.is-selected {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  font-weight: 700;
}

.language-code-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.language-code-options button {
  display: grid;
  min-height: 44px;
  padding: 8px 4px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: 0 1px 4px rgba(var(--c-ink-rgb), .04);
  cursor: pointer;
  place-items: center;
  font-family: Tahoma, Arial, sans-serif;
}

.language-code-options button:hover,
.language-code-options button:focus-visible {
  border-color: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .12);
}

.language-code-options button.is-selected {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  box-shadow: inset 0 0 0 1px var(--c-strong);
  font-weight: 700;
}

.language-code {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}

.settings-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toolbar-popover .settings-options button {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--c-line);
  text-align: start;
}

.settings-options span,
.settings-options small {
  display: block;
}

.settings-options span {
  margin-bottom: 4px;
  font-weight: bold;
}

.settings-options small {
  color: var(--c-muted);
  font-size: .76em;
  line-height: 1.5;
}

.tafseer-menu {
  min-width: 220px;
}

.ayah-view {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--c-page);
  direction: rtl;
  --mushaf-header-height: clamp(40px, 6.5dvh, 52px);
  --mushaf-chrome-height: clamp(40px, 6.5dvh, 52px);
  --mushaf-chrome-unit: var(--mushaf-chrome-height);
  --mushaf-footer-height: clamp(18px, 3.2dvh, 26px);
  --mushaf-chrome-stack-gap: clamp(8px, 2.2dvh, 16px);
  --mushaf-chrome-edge: clamp(4px, 1.1dvh, 8px);
  --mushaf-chrome-control: clamp(
    20px,
    min(
      calc(var(--mushaf-header-height) * .72),
      calc((var(--mushaf-page-width, 24rem) - 36px) / 8)
    ),
    38px
  );
  --mushaf-chrome-gap: clamp(2px, calc(var(--mushaf-chrome-control) * .16), 6px);
}

.spa-route-pending .ayah-view {
  visibility: hidden;
}

.ayah-view-track {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  direction: rtl;
}

.single-column-pagination {
  position: relative;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  direction: ltr;
}

.single-column-settings-menu {
  position: absolute;
  top: 4px;
  left: 12px;
  direction: rtl;
}

.single-column-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-line-warm);
  cursor: pointer;
  transition: width .16s ease, border-radius .16s ease, background .16s ease;
}

.single-column-dot:hover,
.single-column-dot:focus {
  background: var(--c-muted);
  outline: 2px solid rgba(var(--c-strong-rgb), .2);
  outline-offset: 3px;
}

.single-column-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--c-strong);
}

.mushaf-stage {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0;
  direction: rtl;
}

.mushaf-stage.is-continuous-scroll {
  display: flex;
  flex-direction: column;
  height: var(--mushaf-viewport-height, auto);
  overflow: hidden;
  overscroll-behavior-y: contain;
}

.mushaf-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

.mushaf-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mushaf-stage-footer,
.column-stage-footer {
  position: relative;
  flex: 0 0 var(--mushaf-footer-height, 22px);
  box-sizing: border-box;
  height: var(--mushaf-footer-height, 22px);
  min-height: var(--mushaf-footer-height, 22px);
  overflow: visible;
  background: var(--c-chrome);
  border-top: 1px solid var(--c-line-warm);
  pointer-events: auto;
}

.mushaf-reading-progress {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
  padding: 0 10px;
  gap: 10px;
  direction: rtl;
}

.mushaf-juz-progress,
.mushaf-audio-progress,
.mushaf-surah-progress {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mushaf-juz-progress {
  flex: 0 0 auto;
  justify-self: start;
  cursor: pointer;
}

.mushaf-progress-square {
  position: relative;
  display: block;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1px;
  appearance: none;
  background: color-mix(in srgb, var(--c-accent) 16%, var(--c-chrome));
  cursor: pointer;
}

.mushaf-progress-square-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0;
  background: var(--c-accent);
}

.mushaf-progress-square.is-filled {
  background: var(--c-accent);
}

.mushaf-progress-square.is-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-accent) 45%, transparent);
}

.mushaf-audio-progress {
  justify-self: center;
  min-width: 0;
  width: 100%;
  max-width: 120px;
  direction: ltr;
}

.mushaf-audio-progress-track {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-accent) 16%, var(--c-chrome));
}

.mushaf-audio-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--c-accent);
}

.mushaf-surah-progress {
  position: relative;
  justify-self: end;
  min-width: 0;
  direction: ltr;
}

.mushaf-surah-progress-value {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font-family: Nasim, Tahoma, sans-serif;
  font-size: .7em;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mushaf-surah-progress-value:hover,
.mushaf-surah-progress-value:focus-visible {
  color: var(--c-accent);
  outline: none;
}

.mushaf-ayah-progress-popover {
  position: absolute;
  z-index: 100;
  right: auto;
  bottom: calc(100% + 8px);
  left: 0;
  box-sizing: border-box;
  width: min(260px, calc(100% - 16px));
  max-height: min(220px, 42%);
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
  box-shadow: 0 12px 28px rgba(var(--c-ink-rgb), .16);
  direction: rtl;
}

.mushaf-ayah-progress-popover[hidden] {
  display: none;
}

.mushaf-ayah-progress-popover .surah-dialog-ayah-title {
  margin-bottom: 8px;
}

.mushaf-ayah-progress-popover .mushaf-ayah-slider-value {
  position: static;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  transform: none;
}

.mushaf-stop-at-popover {
  width: min(440px, calc(100% - 16px));
  max-height: min(560px, 82vh);
  padding: 10px 12px;
  overflow: visible;
  color: var(--c-ink);
  background: var(--c-paper);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  isolation: isolate;
}

.mushaf-stop-at-popover .surah-dialog-ayah-title {
  margin-bottom: 8px;
  color: var(--c-ink);
  font-size: .9em;
}

.mushaf-stop-at-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr);
  gap: 8px;
  direction: rtl;
}

.mushaf-stop-at-scope-title,
.mushaf-stop-at-column-title {
  margin-bottom: 6px;
  color: var(--c-muted);
  font-size: .78em;
}

.mushaf-stop-at-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.mushaf-stop-at-custom-fields {
  display: grid;
  gap: 10px;
}

.mushaf-stop-at-custom-fields[hidden] {
  display: none;
}

.mushaf-stop-at-row {
  display: grid;
  gap: 6px;
}

.mushaf-stop-at-row-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.mushaf-stop-at-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.mushaf-stop-at-time-fields[hidden] {
  display: none;
}

.mushaf-stop-at-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
  font-size: .9em;
}

.mushaf-stop-at-select:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.mushaf-picker-select {
  position: relative;
}

.mushaf-picker-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.mushaf-picker-select-trigger {
  text-align: inherit;
}

.mushaf-picker-select-menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 2px);
  right: 0;
  left: 0;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-paper);
  box-shadow: 0 8px 20px rgba(var(--c-ink-rgb), .12);
}

.mushaf-picker-select-option {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .9em;
  text-align: inherit;
}

.mushaf-picker-select-option.is-selected,
.mushaf-picker-select-option:hover,
.mushaf-picker-select-option:focus-visible {
  color: var(--c-accent);
  background: rgba(var(--c-mint-rgb), .78);
  outline: none;
}

.mushaf-picker-select[hidden] {
  display: none;
}

.mushaf-stop-at-customs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mushaf-stop-at-custom {
  box-sizing: border-box;
  flex: 1 1 0;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: inherit;
  background: var(--c-paper);
  font: inherit;
}

.mushaf-stop-at-custom[hidden] {
  display: none;
}

.mushaf-stop-at-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mushaf-stop-at-option {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  font: inherit;
  font-size: .9em;
  line-height: 1.25;
  text-align: center;
}

.mushaf-stop-at-enable {
  margin-bottom: 8px;
}

.mushaf-stop-at-columns.is-disabled {
  pointer-events: none;
  opacity: .55;
}

.mushaf-stop-at-option.is-selected,
.mushaf-stop-at-option[aria-pressed="true"] {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(var(--c-mint-rgb), .78);
}

.mushaf-stop-at-silence {
  margin-top: 8px;
}

.mushaf-stop-at-silence .mushaf-slide-view-option-switch {
  margin-top: 0;
}

.mushaf-stop-at-silence-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.mushaf-stop-at-silence-modes[hidden] {
  display: none;
}

.mushaf-stop-at-measure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: .82em;
}

.mushaf-stop-at-measure[hidden] {
  display: none;
}

.mushaf-stop-at-measure input {
  box-sizing: border-box;
  width: 4.8em;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: inherit;
  background: var(--c-paper);
  font: inherit;
}

.mushaf-slide-view-options-popover {
  width: min(520px, calc(100% - 16px));
  max-height: min(480px, 72vh);
  color: var(--c-ink);
  background: var(--c-paper);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  direction: inherit;
}

.mushaf-slide-view-option-list,
.mushaf-slide-view-option-kinds {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mushaf-slide-view-option-list {
  margin-bottom: 10px;
}

.mushaf-slide-view-content-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  direction: rtl;
}

.mushaf-slide-view-content-row .mushaf-stop-at-column-title {
  flex: 0 0 auto;
  margin-bottom: 0;
  white-space: nowrap;
}

.mushaf-slide-view-content-choices {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  direction: rtl;
}

.mushaf-slide-view-content-choices .mushaf-stop-at-option {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  padding: 6px 8px;
  font-size: .82em;
  white-space: nowrap;
}

.mushaf-slide-view-option-switch.recitation-continuous-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin-top: 0;
  padding: 6px 8px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.mushaf-juz-progress-title {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.mushaf-juz-progress-ticks {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
  margin-top: 8px;
  direction: ltr;
}

.mushaf-juz-progress-tick {
  box-sizing: border-box;
  min-width: 0;
  padding: 5px 0 3px;
  border: 0;
  border-radius: 5px;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font: 700 .58em/1.15 Nasim, Tahoma, sans-serif;
  white-space: nowrap;
}

.mushaf-juz-progress-tick.is-current {
  color: var(--c-accent);
  background: rgba(var(--c-accent-rgb), .12);
}

.mushaf-pages {
  display: flex;
  direction: rtl;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.mushaf-stage.is-continuous-scroll .mushaf-pages {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: min(100%, var(--mushaf-page-width, 100%));
  margin: 0 auto;
  padding-bottom: var(--mushaf-scroll-end-pad, 67vh);
}

.mushaf-stage-chrome {
  position: sticky;
  z-index: 12;
  top: 0;
  box-sizing: border-box;
  width: min(100%, var(--mushaf-page-width, 100%));
  margin: 0 auto;
  background: var(--c-surface);
}

.mushaf-stage-chrome:empty {
  display: none;
}

.mushaf-app-header {
  position: relative;
  z-index: 80;
  box-sizing: border-box;
  display: grid;
  grid-template-areas: "actions location brand";
  grid-template-columns:
    minmax(0, auto)
    minmax(0, 1fr)
    minmax(0, auto);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 16px);
  height: var(--mushaf-header-height);
  min-height: var(--mushaf-header-height);
  margin: var(--mushaf-chrome-edge) auto 0;
  padding: 0 8px;
  font-size: calc(var(--mushaf-header-height) * .28);
  overflow: visible;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-paper);
  direction: ltr;
}

.mushaf-app-header-actions {
  position: relative;
  z-index: 81;
  grid-area: actions;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--mushaf-chrome-gap, 6px);
  min-width: 0;
  justify-self: start;
}

.mushaf-app-header-actions button,
.mushaf-tooltip-controls button {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}

.mushaf-app-header-actions .recitation-play-button {
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
}

.mushaf-app-header-actions .recitation-icon {
  width: 78%;
  height: 78%;
}

.mushaf-app-header-actions .settings-trigger {
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  border-radius: 50%;
}

.mushaf-app-header-actions .view-menu-icon {
  width: calc(var(--mushaf-chrome-control, 36px) * .52);
  height: calc(var(--mushaf-chrome-control, 36px) * .52);
}

.mushaf-app-header-actions .mushaf-tooltip-repeat,
.mushaf-app-header-actions .mushaf-tooltip-ayah-navigation,
.mushaf-app-header-actions .mushaf-header-focus {
  display: grid;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  padding: calc(var(--mushaf-chrome-control, 36px) * .18);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-app-header-actions .mushaf-tooltip-repeat {
  --repeat-knockout: var(--c-surface);
}

html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .mushaf-tooltip-repeat,
html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .mushaf-tooltip-ayah-navigation,
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .mushaf-tooltip-repeat,
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .mushaf-tooltip-ayah-navigation {
  display: none;
}

.mushaf-app-header-actions .mushaf-tooltip-repeat svg,
.mushaf-app-header-actions .mushaf-tooltip-ayah-navigation svg,
.mushaf-app-header-actions .mushaf-header-focus svg {
  width: calc(var(--mushaf-chrome-control, 36px) * .52);
  height: calc(var(--mushaf-chrome-control, 36px) * .52);
  pointer-events: none;
}

.mushaf-app-header-actions .mushaf-tooltip-repeat svg {
  width: calc(var(--mushaf-chrome-control, 36px) * .62);
  height: calc(var(--mushaf-chrome-control, 36px) * .62);
}

.mushaf-app-header-actions .content-dock-button {
  display: none;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  padding: calc(var(--mushaf-chrome-control, 36px) * .18);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
}

.mushaf-app-header-actions .content-dock-button svg,
.mushaf-app-header-actions .content-fullscreen-button svg,
.mushaf-app-header-actions .content-slide-view-button svg {
  width: calc(var(--mushaf-chrome-control, 36px) * .52);
  height: calc(var(--mushaf-chrome-control, 36px) * .52);
}

.mushaf-app-header-actions .mushaf-header-focus {
  display: none;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  padding: calc(var(--mushaf-chrome-control, 36px) * .18);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-app-header-actions .mushaf-header-focus.is-focus-on {
  color: var(--c-accent);
  border-color: rgba(var(--c-accent-rgb), .42);
  background: rgba(var(--c-mint-rgb), .82);
}

.mushaf-app-header-actions .content-fullscreen-button,
.mushaf-app-header-actions .content-slide-view-button {
  display: inline-grid;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  padding: calc(var(--mushaf-chrome-control, 36px) * .18);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-app-header-actions .content-fullscreen-button:hover,
.mushaf-app-header-actions .content-fullscreen-button:focus-visible,
.mushaf-app-header-actions .content-slide-view-button:hover,
.mushaf-app-header-actions .content-slide-view-button:focus-visible,
.mushaf-app-header-actions .mushaf-tooltip-repeat:hover,
.mushaf-app-header-actions .mushaf-tooltip-repeat:focus-visible,
.mushaf-app-header-actions .mushaf-tooltip-ayah-navigation:hover,
.mushaf-app-header-actions .mushaf-tooltip-ayah-navigation:focus-visible {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-app-header-actions .content-slide-view-button.is-active {
  color: var(--c-accent);
  border-color: rgba(var(--c-accent-rgb), .42);
  background: rgba(var(--c-mint-rgb), .82);
}

.mushaf-app-header-actions .content-fullscreen-button .fullscreen-icon--exit,
.content-fullscreen-button .fullscreen-icon--exit {
  display: none;
}

.mushaf-app-header-actions .content-fullscreen-button.is-active .fullscreen-icon--enter,
.content-fullscreen-button.is-active .fullscreen-icon--enter {
  display: none;
}

.mushaf-app-header-actions .content-fullscreen-button.is-active .fullscreen-icon--exit,
.content-fullscreen-button.is-active .fullscreen-icon--exit {
  display: block;
}

.mushaf-app-header-spacer {
  grid-area: location;
  min-width: 0;
}

.mushaf-app-header-brand {
  position: relative;
  z-index: 1;
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
  min-width: 0;
  max-width: min(48vw, 280px);
  overflow: hidden;
  direction: rtl;
}

.mushaf-app-header-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  color: var(--c-accent);
  line-height: 1.2;
}

.mushaf-app-header-kicker {
  display: none;
  color: var(--c-muted);
  font-size: .62em;
  font-weight: 600;
  letter-spacing: .04em;
}

.mushaf-app-header-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--c-accent);
  font-size: .82em;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mushaf-app-header-mark {
  flex: 0 0 auto;
  width: calc(var(--mushaf-header-height) * .42);
  height: calc(var(--mushaf-header-height) * .42);
  color: var(--c-strong);
}

.mushaf-stage-meta {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  background: var(--c-chrome);
  border-bottom: 1px solid var(--c-line-warm);
}

.mushaf-stage-meta[hidden] {
  display: none;
}

.content-tabs-row > .content-toolbar-actions > .recitation-play-button,
.content-tabs-row > .content-toolbar-actions > .content-settings-menu,
.content-tabs-row > .content-toolbar-actions > .content-fullscreen-button,
.content-tabs-row > .content-toolbar-actions > .content-slide-view-button {
  display: none;
}

.mushaf-stage .mushaf-page > .mushaf-page-meta {
  display: none;
}

.mushaf-stage-meta > .mushaf-page-meta {
  border-bottom: 0;
}

.mushaf-stage.is-continuous-scroll .mushaf-page > .mushaf-page-meta .mushaf-page-arrow {
  display: none;
}

.mushaf-page {
  flex: 1 1 0;
  min-width: 0;
}

.mushaf-stage.is-continuous-scroll .mushaf-page {
  flex: 0 0 auto;
  width: 100%;
}

.mushaf-page-meta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 8px 5px;
  color: var(--c-muted);
  background: var(--c-chrome);
  border-bottom: 1px solid var(--c-line-warm);
  font-size: .8em;
  white-space: nowrap;
  direction: rtl;
}

.mushaf-page-juz {
  min-width: 0;
  justify-self: start;
  text-align: right;
}

.mushaf-juz-trigger {
  min-width: 0;
  padding: 2px 3px;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.mushaf-juz-trigger:hover,
.mushaf-juz-trigger:focus {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-page-navigation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 2px;
}

.mushaf-page-number {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 3px;
  text-align: center;
}

.mushaf-page-trigger {
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.mushaf-page-trigger:hover,
.mushaf-page-trigger:focus-visible {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-page-input {
  box-sizing: border-box;
  width: 3.4ch;
  min-width: 34px;
  padding: 2px 1px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 3px;
  outline: none;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: center;
}

.mushaf-page-input:hover {
  background: var(--c-chrome);
}

.mushaf-page-input:focus {
  border-bottom-color: var(--c-strong);
  background: var(--c-surface);
  box-shadow: 0 0 0 2px rgba(var(--c-strong-rgb), .18);
}

.mushaf-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.mushaf-page-arrow:hover,
.mushaf-page-arrow:focus {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-page-arrow:disabled {
  opacity: .28;
  cursor: default;
}

.mushaf-page-arrow svg {
  width: 19px;
  height: 19px;
  pointer-events: none;
}

.mushaf-page-arrow--next svg {
  transform: rotate(180deg);
}

.mushaf-page-surah {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.mushaf-surah-trigger,
.mushaf-ayah-trigger {
  min-width: 0;
  padding: 2px 3px;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.mushaf-surah-trigger {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mushaf-surah-number {
  font-family: Nasim, Tahoma, sans-serif;
}

.mushaf-surah-trigger:hover,
.mushaf-surah-trigger:focus,
.mushaf-ayah-trigger:hover,
.mushaf-ayah-trigger:focus {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-surah-ayah-separator {
  flex: 0 0 auto;
}

.mushaf-ayah-trigger {
  flex: 0 0 auto;
  min-width: 27px;
  text-align: center;
}

.mushaf-ayah-selector {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: min(520px, calc(100vw - 40px));
  padding: 30px 14px 12px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  direction: ltr;
}

.mushaf-ayah-selector[hidden] {
  display: none;
}

.mushaf-ayah-endpoint {
  min-width: 2ch;
  color: var(--c-muted);
  text-align: center;
}

.mushaf-ayah-slider-control {
  position: relative;
  min-width: 0;
}

.mushaf-ayah-slider-value {
  position: absolute;
  top: -25px;
  min-width: 30px;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--c-surface);
  background: var(--c-strong);
  font-size: .82em;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.mushaf-ayah-slider {
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  accent-color: var(--c-strong);
  cursor: grab;
}

.mushaf-ayah-slider:active {
  cursor: grabbing;
}

.mushaf-ayah-slider:focus {
  outline: 2px solid rgba(var(--c-strong-rgb), .24);
  outline-offset: 3px;
}

.mushaf-canvas {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line-warm);
  border-radius: 5px;
  background: var(--c-paper);
  box-shadow: 0 7px 24px rgba(var(--c-ink-rgb), .12);
}

.mushaf-page-image,
.mushaf-ayah-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.mushaf-page-image {
  z-index: 1;
  object-fit: contain;
}

.mushaf-focus-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  color: rgb(var(--c-paper-rgb));
  pointer-events: none;
}

.mushaf-focus-veil-dim {
  fill: currentColor;
  fill-opacity: .8;
}

.mushaf-ayah-overlay {
  z-index: 3;
  pointer-events: none;
}

.mushaf-ayah-polygon {
  fill: transparent;
  stroke: transparent;
  stroke-width: .8;
  cursor: pointer;
  pointer-events: all;
  transition: fill .12s ease, stroke .12s ease, stroke-width .12s ease;
}

.mushaf-ayah-polygon:hover,
.mushaf-ayah-polygon:focus {
  fill: rgba(245, 198, 66, .12);
  stroke: rgba(var(--c-danger-rgb), .3);
  outline: none;
}

.mushaf-ayah-polygon.is-selected {
  fill: rgba(var(--c-strong-rgb), .16);
  stroke: rgba(var(--c-accent-rgb), .52);
  stroke-width: .9;
}

html.is-mushaf-focus .mushaf-ayah-polygon.is-selected {
  fill: rgba(var(--c-accent-rgb), .12);
  stroke: rgba(var(--c-accent-rgb), .78);
  stroke-width: 1.15;
}

.mushaf-page.has-translation-tooltip .mushaf-canvas {
  overflow: visible;
}

.mushaf-translation-tooltip {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 90%;
  height: auto;
  min-height: 0;
  max-width: none;
  max-height: none;
  --mushaf-chrome-control: clamp(
    18px,
    calc((var(--mushaf-page-width, 24rem) * .9 - 56px) / 8.4),
    31px
  );
  --mushaf-chrome-gap: clamp(2px, calc(var(--mushaf-chrome-control) * .13), 4px);
  padding: 8px 10px 9px;
  border: 1px solid rgba(var(--c-strong-rgb), .22);
  border-radius: 12px;
  color: var(--c-ink);
  background: rgba(var(--c-surface-rgb), .98);
  box-shadow:
    0 12px 30px rgba(var(--c-ink-rgb), .14),
    0 2px 6px rgba(var(--c-ink-rgb), .08);
  font-family: Tahoma, Arial, sans-serif;
  font-size: calc(
    clamp(
      .95rem,
      calc(var(--mushaf-page-width, 24rem) * .038),
      1.8rem
    ) * var(--content-font-scale, 1)
  );
  line-height: 1.65;
  text-align: start;
  transform: translateX(-50%);
  pointer-events: none;
  animation: mushaf-tooltip-in .18s ease-out;
}

.mushaf-tooltip-header button,
.mushaf-tooltip-tabs,
.mushaf-tooltip-body {
  pointer-events: auto;
}

.mushaf-tooltip-header button {
  box-sizing: border-box;
  flex: 0 0 auto;
}

.mushaf-translation-tooltip.is-box-locked {
  max-height: none;
}

.mushaf-translation-tooltip.is-settings-open {
  width: 90%;
}

.mushaf-translation-tooltip::before {
  position: absolute;
  top: -6px;
  left: var(--mushaf-tooltip-arrow-left, 50%);
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(var(--c-strong-rgb), .28);
  border-left: 1px solid rgba(var(--c-strong-rgb), .28);
  background: rgba(var(--c-surface-rgb), .97);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.mushaf-translation-tooltip p {
  margin: 0;
}

.mushaf-tooltip-header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--mushaf-chrome-gap, 8px);
  min-width: 0;
  min-height: var(--mushaf-chrome-control, 31px);
  margin-bottom: 6px;
  direction: ltr;
}

.mushaf-tooltip-header-start,
.mushaf-tooltip-header-end,
.mushaf-tooltip-window-controls,
.mushaf-tooltip-controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--mushaf-chrome-gap, 4px);
  min-width: 0;
}

.mushaf-tooltip-header-start {
  justify-self: start;
}

.mushaf-tooltip-controls {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  justify-self: center;
  direction: ltr;
}

.mushaf-tooltip-header-end,
.mushaf-tooltip-window-controls {
  justify-self: end;
  direction: ltr;
}

.mushaf-tooltip-heading {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 7px;
  direction: rtl;
}

.mushaf-tooltip-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(var(--c-strong-rgb), .12);
  border-radius: 9px;
  background: rgba(var(--c-mint-rgb), .58);
  direction: rtl;
}

.mushaf-tooltip-tab {
  min-width: 0;
  min-height: 30px;
  padding: 4px 3px;
  border: 0;
  border-radius: 7px;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .8em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mushaf-tooltip-tab:hover,
.mushaf-tooltip-tab:focus-visible {
  color: var(--c-accent);
  background: rgba(var(--c-surface-rgb), .62);
  outline: none;
}

.mushaf-tooltip-tab.is-active {
  color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 1px 4px rgba(var(--c-accent-rgb), .12);
  font-weight: 700;
}

.mushaf-tooltip-body {
  flex: 1 1 auto;
  min-height: calc(1.65em * 3);
  max-height: calc(1.65em * 6);
  margin-top: 6px;
  overflow: hidden;
}

.mushaf-tooltip-tab-panel {
  box-sizing: border-box;
  height: auto;
  min-height: calc(1.65em * 3);
  max-height: calc(1.65em * 6);
  padding: 1px 3px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.mushaf-tooltip-tab-panel[hidden] {
  display: none;
}

.mushaf-translation-tooltip.is-box-locked .mushaf-tooltip-tab-panel:not([hidden]) {
  height: auto;
}

.mushaf-tooltip-source-row {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: var(--mushaf-chrome-control, 31px);
  margin: 0 -3px;
  padding: 2px 3px 8px;
  background: var(--c-surface);
  box-shadow: 0 10px 12px -6px var(--c-surface);
  direction: rtl;
}

.mushaf-tooltip-settings {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
  touch-action: manipulation;
}

.mushaf-tooltip-controls {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  gap: var(--mushaf-chrome-gap, 4px);
  direction: ltr;
}

.mushaf-tooltip-repeat,
.mushaf-tooltip-focus,
.mushaf-tooltip-chrome {
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
}

.mushaf-tooltip-controls .mushaf-tooltip-recitation,
.ayah-view .mushaf-tooltip-controls .mushaf-tooltip-recitation.recitation-play-button {
  width: calc(var(--mushaf-chrome-control, 31px) * 1.16);
  height: calc(var(--mushaf-chrome-control, 31px) * 1.16);
}

.mushaf-tooltip-chrome {
  position: relative;
  display: grid;
  box-sizing: border-box;
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-chrome svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mushaf-tooltip-undock {
  flex: 0 0 auto;
}

.mushaf-tooltip-repeat {
  --repeat-knockout: var(--c-surface);
  position: relative;
  display: grid;
  box-sizing: border-box;
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-section-repeat {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}

.mushaf-tooltip-repeat:hover,
.mushaf-tooltip-repeat:focus-visible {
  --repeat-knockout: var(--c-mint);
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-repeat svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mushaf-tooltip-repeat.is-repeat-off {
  opacity: .62;
}

.mushaf-tooltip-repeat-badge {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: auto;
  min-width: 1.2em;
  height: 1.2em;
  margin: 0;
  padding: 0 0.12em;
  border-radius: 999px;
  color: inherit;
  background: var(--repeat-knockout, var(--c-surface));
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  place-items: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.mushaf-tooltip-repeat-badge[hidden] {
  display: none;
}

.mushaf-tooltip-ayah-navigation {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: none;
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-ayah-navigation svg {
  pointer-events: none;
}

.mushaf-tooltip-undock {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-chrome:hover,
.mushaf-tooltip-chrome:focus-visible,
.mushaf-tooltip-undock:hover,
.mushaf-tooltip-undock:focus-visible {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-undock svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-focus {
  position: relative;
  display: grid;
  box-sizing: border-box;
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-focus:hover,
.mushaf-tooltip-focus:focus-visible,
.mushaf-header-focus:hover,
.mushaf-header-focus:focus-visible {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-focus svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-focus.is-focus-on {
  color: var(--c-accent);
  border-color: rgba(var(--c-accent-rgb), .42);
  background: rgba(var(--c-mint-rgb), .85);
}

.mushaf-tooltip-ayah-navigation:hover,
.mushaf-tooltip-ayah-navigation:focus-visible {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-ayah-navigation:disabled {
  cursor: default;
  opacity: .42;
}

.mushaf-tooltip-controls .mushaf-tooltip-recitation.is-loading::after {
  inset: 2px;
  border-width: 2px;
}

.mushaf-tooltip-controls .mushaf-tooltip-recitation .recitation-progress {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-controls .mushaf-tooltip-recitation .recitation-icon {
  width: 78%;
  height: 78%;
}

.mushaf-tooltip-ayah-navigation svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-ayah-navigation.is-next svg {
  transform: rotate(180deg);
}

.mushaf-tooltip-close {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
  padding: calc(var(--mushaf-chrome-control, 31px) * .19);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-close:hover,
.mushaf-tooltip-close:focus-visible {
  color: var(--c-danger);
  border-color: rgba(var(--c-danger-rgb), .3);
  background: var(--c-danger-wash);
  outline: none;
}

.mushaf-tooltip-close svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-settings:hover,
.mushaf-tooltip-settings:focus-visible,
.mushaf-tooltip-settings[aria-expanded="true"] {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-settings svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-source-title {
  flex: 1 1 0;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 5px 2px;
  color: var(--c-muted);
  font-size: .86em;
  font-weight: 500;
  line-height: 1.35;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mushaf-tooltip-source-title[hidden] {
  display: none;
}

.mushaf-tooltip-source-dialog {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px 16px;
  background: rgba(var(--c-ink-rgb), .42);
}

.mushaf-tooltip-source-dialog[hidden] {
  display: none;
}

.mushaf-tooltip-source-dialog-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(92vw, 420px);
  max-height: min(70vh, 520px);
  padding: 14px 14px 10px;
  border: 1px solid rgba(var(--c-strong-rgb), .22);
  border-radius: 14px;
  background: var(--c-surface);
  box-shadow: 0 16px 40px rgba(var(--c-ink-rgb), .18);
  font-size: .95rem;
  line-height: 1.45;
}

.mushaf-tooltip-source-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  direction: rtl;
}

.mushaf-tooltip-source-dialog-title {
  margin: 0;
  color: var(--c-accent);
  font-size: 1em;
  font-weight: 700;
}

.mushaf-tooltip-source-dialog-close {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 5px;
  border: 1px solid rgba(var(--c-strong-rgb), .2);
  border-radius: 9px;
  color: var(--c-danger);
  background: rgba(var(--c-surface-rgb), .72);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-source-dialog-close svg {
  width: 15px;
  height: 15px;
}

.mushaf-tooltip-source-dialog .mushaf-tooltip-options {
  flex: 1 1 auto;
  max-height: none;
}

.mushaf-tooltip-menu {
  margin: 0;
}

.mushaf-tooltip-search {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(var(--c-strong-rgb), .24);
  border-radius: 9px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
}

.mushaf-tooltip-search:focus {
  border-color: rgba(var(--c-strong-rgb), .55);
  outline: 2px solid rgba(var(--c-strong-rgb), .1);
}

.mushaf-tooltip-options {
  display: grid;
  max-height: 123px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mushaf-tooltip-option {
  box-sizing: border-box;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 41px;
  padding: 7px 5px;
  border-bottom: 1px solid rgba(var(--c-strong-rgb), .08);
  cursor: pointer;
}

.mushaf-tooltip-option[hidden] {
  display: none !important;
}

.mushaf-tooltip-option:hover {
  background: rgba(var(--c-mint-rgb), .42);
}

.mushaf-tooltip-option input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--c-strong);
}

.mushaf-tooltip-option bdi {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
  white-space: nowrap;
}

.mushaf-tooltip-panel-content > p {
  margin: 0;
  white-space: pre-line;
}

.mushaf-tooltip-local-commentary,
.mushaf-tooltip-local-commentary.lt-hadis {
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  overflow: visible;
  font-size: 1em;
  white-space: normal;
}

.mushaf-tooltip-local-commentary h1,
.mushaf-tooltip-local-commentary h2 {
  margin: 0 0 8px;
}

.mushaf-tooltip-status {
  display: block;
  margin: 0;
  padding: 12px 8px;
  color: var(--c-muted);
  font-size: .86em;
  text-align: center;
}

.mushaf-tooltip-status.is-error {
  color: var(--c-danger);
}

.mushaf-tooltip-entry {
  padding: 8px 3px 10px;
  border-bottom: 1px solid rgba(var(--c-strong-rgb), .1);
}

.mushaf-tooltip-entry:last-child {
  border-bottom: 0;
}

.mushaf-tooltip-entry h3 {
  margin: 0 0 2px;
  color: var(--c-accent);
  font-size: .86em;
  line-height: 1.45;
}

.mushaf-tooltip-entry small {
  display: block;
  margin-bottom: 4px;
  color: var(--c-muted);
  font-size: .7em;
}

.mushaf-tooltip-entry p {
  margin: 0;
  white-space: pre-line;
}

.mushaf-tooltip-word-gloss {
  padding: 2px 0;
  gap: 5px;
}

.mushaf-tooltip-word-gloss .word-gloss-token {
  min-width: 54px;
  padding: 4px 7px 5px;
  border-radius: 8px;
  box-shadow: none;
}

.mushaf-tooltip-word-gloss .word-gloss-arabic {
  font-size: 1.08em;
}

.mushaf-tooltip-word-gloss .word-gloss-translation {
  max-width: 8em;
  font-size: .72em;
}

.mushaf-tooltip-word-gloss .word-gloss-skeleton {
  width: 62px;
  height: 46px;
}

.mushaf-tooltip-local-commentary .local-translation-box {
  display: none;
}

.mushaf-tooltip-local-commentary .noor-local-hadith + .noor-local-hadith {
  margin-top: 12px;
  padding-top: 12px;
}

.mushaf-tooltip-local-commentary .noor-source-card,
.mushaf-tooltip-hadith .noor-source-card {
  margin: 0 0 8px;
}

.mushaf-tooltip-local-commentary .noor-source-card:last-child,
.mushaf-tooltip-hadith .noor-source-card:last-child {
  margin-bottom: 0;
}

.mushaf-tooltip-local-commentary .noor-source-card-heading,
.mushaf-tooltip-hadith .noor-source-card-heading {
  padding: 8px 10px;
}

.mushaf-tooltip-local-commentary .noor-source-card-body,
.mushaf-tooltip-hadith .noor-source-card-body {
  padding: 8px 10px 10px;
}

.mushaf-tooltip-hadith {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mushaf-tooltip-hadith.has-selection-nav {
  padding-left: 0;
}

.mushaf-orientation-hint {
  position: fixed;
  z-index: 95;
  right: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(88vw, 420px);
  padding: 10px 14px;
  border: 1px solid rgba(var(--c-strong-rgb), .26);
  border-radius: 10px;
  color: var(--c-accent);
  background: rgba(var(--c-paper-rgb), .98);
  box-shadow: 0 8px 26px rgba(var(--c-ink-rgb), .18);
  font-size: .86rem;
  line-height: 1.5;
  text-align: center;
  transform: translateX(50%);
}

.mushaf-tooltip-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.mushaf-tooltip-entry-header h3 {
  min-width: 0;
  margin: 0;
}

.mushaf-tooltip-hadith-toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: flex-end;
  min-height: 29px;
  padding: 2px 0 4px;
  background: rgba(var(--c-surface-rgb), .98);
}

.mushaf-tooltip-hadith-toolbar .noor-translate-button,
.mushaf-tooltip-entry-header .noor-translate-button {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  padding: 5px;
}

@keyframes mushaf-tooltip-in {
  from {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.mushaf-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  background: var(--c-paper);
  font-size: .9em;
  transition: opacity .16s ease, visibility .16s ease;
}

.mushaf-page.is-loaded .mushaf-loading {
  opacity: 0;
  visibility: hidden;
}

.mushaf-error {
  margin: 14px auto;
  padding: 10px 12px;
  border-radius: 5px;
  color: var(--c-danger);
  background: var(--c-danger-wash);
  text-align: center;
}

.app-notice {
  position: fixed;
  z-index: 11000;
  left: 50%;
  bottom: 18px;
  box-sizing: border-box;
  width: min(28rem, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--c-paper);
  background: var(--c-ink);
  box-shadow: 0 10px 28px rgba(var(--c-ink-rgb), .28);
  text-align: center;
  transform: translateX(-50%);
}

.app-notice[hidden] {
  display: none;
}

.tafseer-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  font-size: calc(1em * var(--content-font-scale, 1));
}

.content-ayah-sticky {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px 4px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-paper);
  text-align: center;
}

.content-ayah-sticky[hidden] {
  display: none;
}

.content-ayah-sticky-title {
  margin: 0;
  color: var(--c-accent);
  font-size: .92em;
  font-weight: 700;
  line-height: 1.3;
  direction: rtl;
}

.content-tabs-row {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 50px;
  border-bottom: 2px solid var(--c-line);
  background: var(--c-surface);
  direction: rtl;
}

.content-tabs {
  flex: 0 1 auto;
  display: flex;
  min-height: 50px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.content-tabs::-webkit-scrollbar {
  display: none;
}

.content-toolbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  padding-inline-end: 8px;
  direction: rtl;
}

.content-dock-button {
  display: none;
  box-sizing: border-box;
  width: 38px;
  height: 36px;
  padding: 7px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-strong);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.content-dock-button:hover,
.content-dock-button:focus-visible {
  color: var(--c-accent);
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: none;
}

.content-dock-button svg {
  width: 100%;
  height: 100%;
}

.mushaf-app-header-actions .content-settings-menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  direction: rtl;
}

.recitation-play-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: none;
  cursor: pointer;
}

.account-status-button {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(var(--c-strong-rgb), .46);
  border-radius: 50%;
  color: var(--c-strong);
  background: var(--c-paper);
  cursor: pointer;
  place-items: center;
}

.account-status-button:hover,
.account-status-button:focus-visible {
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: 3px solid rgba(var(--c-strong-rgb), .16);
}

.account-status-button[data-state="signed-in"] {
  color: var(--c-surface);
  background: var(--c-strong);
  box-shadow: 0 2px 8px rgba(var(--c-strong-rgb), .18);
}

.account-status-button:disabled {
  cursor: wait;
  opacity: .5;
}

.account-status-button.is-loading::after {
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(var(--c-strong-rgb), .16);
  border-top-color: var(--c-strong);
  border-radius: 50%;
  content: "";
  animation: recitation-loading-ring .8s linear infinite;
}

.account-icon {
  width: 23px;
  height: 23px;
}

.account-icon--in,
.account-status-button[data-state="signed-in"] .account-icon--out {
  display: none;
}

.account-status-button[data-state="signed-in"] .account-icon--in {
  display: block;
}

.recitation-play-button:hover,
.recitation-play-button:focus-visible {
  border-color: var(--c-strong);
  background: var(--c-mint);
  color: var(--c-accent);
  outline: none;
}

.recitation-play-button:disabled {
  cursor: wait;
  opacity: .48;
}

.recitation-play-button.is-loading:disabled {
  opacity: 1;
}

.recitation-play-button.is-loading:after {
  position: absolute;
  inset: 2px;
  border: 2px solid rgba(var(--c-strong-rgb), .18);
  border-top-color: var(--c-strong);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: recitation-loading-ring .8s linear infinite;
}

.recitation-play-button.is-loading .recitation-icon {
  opacity: .42;
}

@keyframes recitation-loading-ring {
  to {
    transform: rotate(360deg);
  }
}

.recitation-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.recitation-progress-track,
.recitation-progress-value {
  fill: none;
  stroke-width: 2.6;
}

.recitation-progress-track {
  stroke: transparent;
}

.recitation-progress-value {
  stroke: var(--c-accent);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--recitation-progress-offset, 1);
  transition: stroke .14s ease;
}

.recitation-play-button.is-progressing .recitation-progress {
  opacity: 1;
}

.recitation-play-button.is-silencing .recitation-progress-value {
  stroke: var(--c-strong);
}

.recitation-icon {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  pointer-events: none;
}

.recitation-icon--pause {
  display: none;
}

.recitation-play-button.is-playing .recitation-icon--play {
  display: none;
}

.recitation-play-button.is-playing .recitation-icon--pause {
  display: block;
}

.reciter-selector {
  position: relative;
}

.toolbar-popover .reciter-selector-trigger {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 30px 6px 9px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  background: var(--c-surface);
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
  writing-mode: horizontal-tb;
}

.reciter-selector-trigger:before {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: translateY(-70%) rotate(45deg);
}

.reciter-selector-trigger[aria-expanded="true"]:before {
  transform: translateY(-20%) rotate(225deg);
}

.reciter-selector-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(var(--c-ink-rgb), .38);
}

.reciter-selector-popover {
  position: fixed;
  z-index: 10051;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(28rem, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-paper);
  box-shadow: 0 18px 48px rgba(var(--c-ink-rgb), .28);
  transform: translate(-50%, -50%);
}

.reciter-selector-popover[hidden] {
  display: none;
}

.reciter-selector-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid var(--c-mint);
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.reciter-selector-option[hidden] {
  display: none;
}

.reciter-selector-option:last-child {
  border-bottom: 0;
}

.reciter-selector-option.is-selected {
  color: var(--c-accent);
  background: var(--c-mint);
  font-weight: bold;
}

.reciter-selector-search {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  margin-bottom: 5px;
  padding: 5px 8px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
  direction: rtl;
}

.reciter-selector-search:focus {
  border-color: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .13);
}

.reciter-selector-options {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.toolbar-popover .reciter-selector-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 40px;
  border-bottom: 1px solid var(--c-mint);
  border-radius: 0;
}

.toolbar-popover .reciter-selector-option[hidden],
.noor-selector-option[hidden],
[data-surah-option][hidden] {
  display: none;
}

.toolbar-popover .reciter-selector-option:last-child {
  border-bottom: 0;
}

.toolbar-popover .reciter-selector-option.is-selected {
  color: var(--c-accent);
  background: var(--c-mint);
  font-weight: bold;
}

.reciter-selector-option small {
  color: var(--c-muted);
  font-size: .76em;
  font-weight: normal;
}

.toolbar-popover .recitation-continuous-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 5px;
  padding: 5px 8px;
  border: 1px solid var(--c-line);
  border-radius: 7px;
  color: var(--c-ink);
  background: var(--c-surface);
}

.toolbar-popover .settings-binary-toggle {
  width: 100%;
  text-align: start;
}

.recitation-continuous-toggle > small {
  margin-right: auto;
  color: var(--c-muted);
  font-size: .76em;
}

.recitation-switch {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 19px;
  border-radius: 10px;
  background: var(--c-strong);
  transition: background-color .16s ease;
  margin-inline-start: auto;
}

.recitation-switch-knob {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c-surface);
  box-shadow: 0 1px 4px rgba(var(--c-ink-rgb), .28);
  transition: transform .16s ease;
}

.recitation-continuous-toggle[aria-checked="false"] .recitation-switch {
  background: var(--c-line-warm);
}

.recitation-continuous-toggle[aria-checked="false"] .recitation-switch-knob {
  transform: translateX(-15px);
}

.toolbar-popover .recitation-continuous-toggle:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.recitation-repeat-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 5px 8px;
  border: 1px solid var(--c-line);
  border-radius: 5px;
  color: var(--c-ink);
  font-size: .85em;
  font-weight: normal;
}

.recitation-repeat-setting > span {
  flex: 1 1 auto;
}

.recitation-repeat-setting select {
  flex: 0 0 auto;
  width: 64px;
  min-height: 30px;
}

.recitation-repeat-setting select[data-recitation-stop] {
  width: auto;
  min-width: 88px;
  max-width: 52%;
}

.recitation-repeat-setting input[data-recitation-stop-value] {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 72px;
  min-height: 30px;
  padding: 4px 6px;
}

.font-size-stepper {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  direction: ltr;
}

.font-size-stepper-button {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  font: inherit;
  font-size: 1.2em;
  line-height: 1;
  touch-action: manipulation;
}

.font-size-stepper-button:hover,
.font-size-stepper-button:focus-visible {
  border-color: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .12);
}

.font-size-stepper-button:disabled {
  cursor: default;
  opacity: .38;
}

.font-size-stepper-value {
  min-width: 1.6em;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

.page-fit-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: .85em;
  font-weight: normal;
}

.page-fit-setting[hidden] {
  display: none;
}

.page-fit-setting > span {
  flex: 1 1 auto;
}

.page-fit-setting .settings-select {
  flex: 0 1 180px;
  width: auto;
  min-width: 0;
  min-height: 32px;
}

.recitation-status {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 18px;
  margin: 6px 2px 0;
  color: var(--c-muted);
  font-size: .72em;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.recitation-status .api-status-message {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  writing-mode: horizontal-tb;
}

.toolbar-popover .recitation-status .api-retry-button {
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  flex: 0 0 30px;
}

.recitation-status.is-error {
  color: var(--c-danger);
}

.pull-refresh-indicator {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  z-index: 10020;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 13px;
  border: 1px solid rgba(var(--c-accent-rgb), .18);
  border-radius: 22px;
  color: var(--c-accent);
  background: rgba(var(--c-surface-rgb), .96);
  box-shadow: 0 5px 18px rgba(var(--c-ink-rgb), .18);
  font-size: .78em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
  transition: opacity .14s ease, transform .14s ease;
}

.pull-refresh-indicator.is-visible,
.pull-refresh-indicator.is-refreshing {
  opacity: 1;
  transform: translate(
    -50%,
    calc(min(var(--pull-distance, 0px), 72px) - 54px)
  );
}

.pull-refresh-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--c-line);
  border-top-color: var(--c-strong);
  border-radius: 50%;
  transition: transform .16s ease;
}

.pull-refresh-indicator.is-ready .pull-refresh-icon {
  transform: rotate(180deg);
}

.pull-refresh-indicator.is-refreshing .pull-refresh-icon {
  animation: pull-refresh-spin .7s linear infinite;
}

@keyframes pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.content-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .8em;
}

.content-tab.is-active {
  color: var(--c-accent);
  font-weight: bold;
}

.content-tab.is-active:after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--c-strong);
}

.tafseer-tab-panel {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  direction: rtl;
  touch-action: pan-y;
}

.tafseer-tab-panel[hidden] {
  display: none;
}

.tafseer-tab-panel .lt-hadis h1 {
  margin-top: 0;
}

.tafseer-source-row {
  display: flex;
  justify-content: flex-start;
  padding: 0 110px 12px;
  padding-inline-end: 0;
}

.tafseer-source-menu {
  min-width: min(280px, 100%);
}

.tafseer-source-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 5px 12px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.tafseer-source-trigger:hover,
.tafseer-source-trigger:focus {
  color: var(--c-accent);
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: none;
}

.tafseer-source-trigger svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.tafseer-source-menu .toolbar-popover {
  top: calc(100% + 4px);
  right: 0;
}

.local-translation-box {
  background: var(--c-page);
  border-color: #c8e5ef;
  border-right-color: #6eb6cf;
}

.local-translation-label {
  width: max-content;
  margin: -4px 0 8px;
  color: #19627b;
  font-size: .82em;
  font-weight: bold;
}

.noor-resource {
  box-sizing: border-box;
  width: min(100%, 920px);
  margin: 24px auto 48px;
  padding: 0 4px;
  color: var(--c-ink);
  direction: rtl;
}

.content-ayah-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px 15px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  background: var(--c-page);
  font-family: var(--font-quran-arabic);
  font-size: 1.35em;
  line-height: 1.9;
  text-align: center;
  direction: ltr;
}

.content-ayah-heading p {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  direction: rtl;
}

.word-by-word-section {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .word-by-word-section,
html[data-mushaf-view="single-column"] .ayah-view .word-by-word-section {
  display: block;
}

.word-by-word-panel-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  width: min(100%, 820px);
  margin: 0 auto 8px;
  direction: ltr;
}

.word-by-word-panel-heading h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--c-muted);
  font-family: Tahoma, Arial, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  direction: rtl;
}

.word-by-word {
  display: flex;
  direction: rtl;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
}

.word-by-word[hidden] {
  display: none;
}

.word-by-word--panel {
  width: min(100%, 820px);
  margin: 0 auto 22px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--c-paper), var(--c-page));
  box-shadow: 0 4px 16px rgba(var(--c-accent-rgb), .06);
}

.word-gloss-token {
  display: inline-grid;
  min-width: 64px;
  padding: 7px 9px 8px;
  border: 1px solid rgba(var(--c-strong-rgb), .12);
  border-radius: 10px;
  background: rgba(var(--c-surface-rgb), .9);
  box-shadow: 0 1px 4px rgba(var(--c-ink-rgb), .04);
  text-align: center;
  place-items: center;
}

.word-gloss-arabic {
  color: var(--c-ink);
  font-family: var(--font-quran-arabic);
  font-size: 1.22rem;
  line-height: 1.65;
}

.word-gloss-translation {
  max-width: 150px;
  color: var(--c-muted);
  font-family: Tahoma, Arial, sans-serif;
  font-size: .76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}

.word-gloss-skeleton {
  width: clamp(62px, 12%, 104px);
  height: 58px;
  border-radius: 10px;
  background:
    linear-gradient(100deg, transparent 30%, rgba(var(--c-surface-rgb), .82) 48%, transparent 66%),
    var(--c-mint);
  background-size: 220% 100%;
  animation: word-gloss-shimmer 1.15s ease-in-out infinite;
}

.word-gloss-retry {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--c-strong);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.word-gloss-retry:hover,
.word-gloss-retry:focus-visible {
  color: var(--c-surface);
  background: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .14);
}

.word-gloss-retry svg {
  width: 100%;
  height: 100%;
}

.word-by-word--tooltip {
  max-height: min(180px, 25vh);
  margin-top: 10px;
  padding-top: 0;
  overflow-y: auto;
  gap: 5px;
  overscroll-behavior: contain;
}

.word-gloss-tooltip-title {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  color: var(--c-muted);
  font-family: Tahoma, Arial, sans-serif;
  font-size: .64rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.word-gloss-tooltip-title::before,
.word-gloss-tooltip-title::after {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(var(--c-strong-rgb), .22)
  );
  content: "";
}

.word-gloss-tooltip-title::after {
  background: linear-gradient(
    to left,
    transparent,
    rgba(var(--c-strong-rgb), .22)
  );
}

.word-by-word--tooltip .word-gloss-token {
  min-width: 54px;
  padding: 4px 7px 5px;
  border-radius: 8px;
  box-shadow: none;
}

.word-by-word--tooltip .word-gloss-arabic {
  font-size: 1rem;
}

.word-by-word--tooltip .word-gloss-translation {
  max-width: 120px;
  font-size: .66rem;
}

.word-by-word--tooltip .word-gloss-skeleton {
  width: 62px;
  height: 46px;
}

@keyframes word-gloss-shimmer {
  to {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-gloss-skeleton {
    animation: none;
  }
}

.content-ayah-source {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  color: var(--c-muted);
  font-family: Tahoma, sans-serif;
  font-size: .58em;
  line-height: 1.4;
  text-decoration: none;
  direction: rtl;
}

.content-ayah-source:hover,
.content-ayah-source:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
  outline: none;
}

.content-ayah-navigation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-surface);
  cursor: pointer;
  touch-action: manipulation;
}

.content-ayah-navigation--previous {
  grid-column: 3;
  grid-row: 1;
}

.content-ayah-navigation--next {
  grid-column: 1;
  grid-row: 1;
}

.content-ayah-navigation:hover,
.content-ayah-navigation:focus-visible {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: 3px solid rgba(var(--c-strong-rgb), .14);
}

.content-ayah-navigation:disabled {
  cursor: default;
  opacity: .28;
}

.content-ayah-navigation svg {
  width: 27px;
  height: 27px;
}

@media screen and (max-width: 620px) {
  .content-ayah-heading {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .content-ayah-navigation {
    width: 52px;
    height: 52px;
  }
}

.noor-resource--commentary {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.noor-selector {
  position: relative;
  z-index: 12;
  width: min(100%, 560px);
  margin: 0 auto 8px;
}

.noor-selector-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: 0 2px 10px rgba(var(--c-ink-rgb), .06);
  cursor: pointer;
  font: inherit;
  text-align: start;
  touch-action: manipulation;
}

.noor-selector-trigger:hover,
.noor-selector-trigger:focus-visible {
  border-color: var(--c-strong);
  outline: 2px solid rgba(var(--c-strong-rgb), .16);
  outline-offset: 1px;
}

.noor-selector-title {
  font-weight: bold;
}

.noor-selector-count {
  flex: 0 0 auto;
  color: var(--c-muted);
  font-size: .78em;
}

.noor-selector-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  box-sizing: border-box;
  max-height: min(62vh, 520px);
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: 9px;
  background: var(--c-surface);
  box-shadow: 0 14px 40px rgba(var(--c-ink-rgb), .2);
}

.noor-selector-popover[hidden],
.noor-selector-option[hidden],
.noor-metadata[hidden] {
  display: none;
}

.noor-selector-search {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 7px 11px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink);
  background: var(--c-paper);
  font: inherit;
  font-size: .88em;
  text-align: start;
}

.noor-selector-search:focus {
  border-color: var(--c-strong);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--c-strong-rgb), .12);
}

.noor-selector-options {
  max-height: min(50vh, 410px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.noor-selector-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: .84em;
  line-height: 1.65;
}

.noor-selector-option:hover {
  background: var(--c-mint);
}

.noor-selector-option.is-selected {
  background: var(--c-page);
}

.noor-selector-option.is-selection-boundary {
  margin-bottom: 10px;
  padding-bottom: 18px;
}

.noor-selector-option.is-selection-boundary:after {
  content: '';
  position: absolute;
  right: 8%;
  bottom: 4px;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent,
    var(--c-muted) 18%,
    var(--c-muted) 82%,
    transparent
  );
}

.noor-selector-option input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 4px 0 0;
  accent-color: var(--c-strong);
}

.noor-selector-option-label {
  display: block;
  min-width: 0;
  unicode-bidi: isolate;
}

.noor-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 0;
  margin: 8px auto;
  color: var(--c-muted);
  font-size: .82em;
  text-align: center;
}

.noor-status.is-error {
  color: var(--c-danger);
}

.api-retry-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--c-strong);
  background: var(--c-surface);
  cursor: pointer;
}

.api-retry-button:hover,
.api-retry-button:focus-visible {
  background: var(--c-mint);
  outline: none;
}

.api-retry-button svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.noor-empty {
  margin: 28px auto;
  padding: 18px;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  color: var(--c-muted);
  background: var(--c-paper);
  font-size: .9em;
  text-align: center;
}

.noor-resource-heading {
  margin: 8px auto 24px;
  color: var(--c-ink);
  font-size: 1em;
  text-align: center;
}

[data-noor-controls]:empty {
  display: none;
}

[data-noor-resource="hadith"] {
  margin-top: 12px;
}

.noor-source-group {
  margin: 30px 0 42px;
  scroll-margin-top: 18px;
}

.noor-source-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 4px 18px;
  padding: 11px 14px;
  border: 1px solid rgba(var(--c-strong-rgb), .2);
  border-radius: 13px;
  color: var(--c-accent);
  background: linear-gradient(135deg, var(--c-mint), var(--c-mint));
  box-shadow:
    0 6px 18px rgba(var(--c-ink-rgb), .08),
    inset 3px 0 0 rgba(var(--c-strong-rgb), .34);
  font-size: 1em;
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.noor-source-heading::-webkit-details-marker {
  display: none;
}

.noor-source-heading:before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.noor-source-group:not([open]) > .noor-source-heading {
  margin-bottom: 0;
}

.noor-source-group:not([open]) > .noor-source-heading:before {
  transform: rotate(135deg) translateY(-1px);
}

.noor-source-language,
.noor-source-name {
  unicode-bidi: isolate;
}

.noor-source-heading .noor-entry-info {
  margin-right: 2px;
}

.noor-local-info .noor-metadata {
  font-weight: normal;
}

.noor-metadata-value[href] {
  color: var(--c-accent);
  direction: ltr;
  unicode-bidi: isolate;
}

.noor-entry {
  position: relative;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: 9px;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: 0 2px 12px rgba(var(--c-ink-rgb), .055);
}

.noor-hadith-entry.noor-entry,
.noor-source-card.noor-entry {
  padding: 0;
  scroll-margin-top: 12px;
  background: var(--c-surface);
}

.noor-local-commentary[hidden] {
  display: none;
}

.noor-source-card-heading,
.noor-hadith-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--c-line-warm);
  color: var(--c-ink);
  background: var(--c-paper);
  cursor: pointer;
  list-style: none;
  direction: rtl;
  border-radius: 8px 8px 0 0;
}

.noor-source-card-heading::-webkit-details-marker,
.noor-source-card-heading::marker,
.noor-hadith-heading::-webkit-details-marker,
.noor-hadith-heading::marker {
  display: none;
  content: "";
}

.noor-source-card-copy,
.noor-hadith-heading-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
}

.noor-source-card-title,
.noor-hadith-index {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-accent);
  font-size: .95em;
  font-weight: 700;
  line-height: 1.45;
}

.noor-source-card-title:before,
.noor-hadith-index:before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform .16s ease;
}

.noor-source-card:not([open]) > .noor-source-card-heading .noor-source-card-title:before,
.noor-hadith-entry:not([open]) .noor-hadith-index:before {
  transform: rotate(135deg) translateY(-1px);
}

.noor-source-card:not([open]) > .noor-source-card-heading,
.noor-hadith-entry:not([open]) .noor-hadith-heading {
  border-bottom: 0;
  border-radius: 8px;
}

.noor-source-card-meta,
.noor-hadith-meta {
  margin-top: 3px;
  color: var(--c-muted);
  font-size: .82em;
  font-weight: 400;
  line-height: 1.55;
}

.noor-source-card-heading .noor-entry-actions,
.noor-hadith-heading .noor-entry-actions {
  margin-top: 1px;
}

.noor-source-card-body,
.noor-hadith-body {
  padding: 14px 18px 16px;
  background: var(--c-surface);
}

.noor-source-card-body .ar-hadis {
  margin: 0 0 10px;
}

.noor-source-card-body .fa-hadis {
  margin: 0;
}

.noor-source-card-body .noor-entry-content + .noor-entry-content,
.noor-source-card-body .noor-commentary-placeholder + .noor-entry-content {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-paper);
}

.noor-local-commentary > .noor-source-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 18px 16px;
  overflow: visible;
}

.noor-local-hadith {
  color: var(--c-ink);
}

.noor-local-hadith + .noor-local-hadith {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0;
  position: relative;
}

.noor-local-hadith + .noor-local-hadith::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent,
    var(--c-line) 18%,
    var(--c-line) 82%,
    transparent
  );
}

.noor-local-hadith-arabic {
  margin: 0 0 8px;
  color: inherit;
  font-size: inherit;
  line-height: 1.8;
}

.noor-local-hadith-index {
  color: inherit;
  font-weight: inherit;
}

.noor-local-hadith-arabic .ar-hadis {
  margin: 0;
  color: inherit;
  font-size: 1.1em;
}

.noor-local-hadith .fa-hadis {
  color: inherit;
}

.noor-local-hadith-source {
  display: block;
  margin: 8px 0 0;
  color: var(--c-muted);
  font-size: .86em;
  line-height: 1.65;
}

.noor-local-commentary > .noor-source-card-body > .noor-source-card {
  margin: 0;
}

.noor-sticky-chrome {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px 0 6px;
  background: var(--c-paper);
}

.noor-sticky-chrome .noor-selector {
  width: 100%;
  max-width: none;
  margin: 0;
}

.noor-selection-nav {
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 80%;
  max-width: 80%;
  height: auto;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  pointer-events: auto;
}

.noor-selection-nav::-webkit-scrollbar {
  height: 4px;
}

.noor-selection-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--c-muted-rgb), .35);
}

.noor-resource.has-selection-nav {
  padding-left: 0;
}

.noor-source-scroll-pad {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 0;
  pointer-events: none;
  visibility: hidden;
}

.noor-selection-rail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  box-sizing: border-box;
  width: max-content;
  min-width: 100%;
  max-height: none;
  padding: 2px 0;
  overflow: visible;
  transform: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  direction: ltr;
  pointer-events: auto;
}

.noor-selection-jump {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 1.35em;
  height: auto;
  min-height: 0;
  padding: 0 2px;
  border: 0;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font: 700 .78em/1.2 Nasim, sans-serif;
}

.noor-selection-jump.is-current,
.noor-selection-jump[aria-current="true"] {
  color: var(--c-danger);
  font-size: .95em;
  transform: scale(1.16);
}

@media (pointer: coarse) {
  .noor-selection-jump {
    min-width: 1.6em;
    min-height: 28px;
    font-size: .84em;
  }

  .noor-selection-jump.is-current,
  .noor-selection-jump[aria-current="true"] {
    font-size: 1.02em;
  }
}

.noor-entry[dir="ltr"] {
  text-align: left;
}

.noor-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.noor-entry-title {
  margin: 0;
  color: var(--c-ink);
  font-size: .95em;
  line-height: 1.6;
}

.noor-entry-info {
  position: relative;
  flex: 0 0 auto;
}

.noor-entry-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.noor-entry-actions[hidden],
.noor-translate-button[hidden] {
  display: none;
}

.noor-entry-actions .noor-entry-info {
  display: inline-flex;
}

.noor-translate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-surface);
  cursor: pointer;
}

.noor-translate-button:hover,
.noor-translate-button:focus {
  color: var(--c-accent);
  background: var(--c-page);
  outline: none;
}

.noor-translate-button svg {
  width: 18px;
  height: 18px;
}

.noor-translate-button.is-loading svg {
  animation: noor-translate-spin .8s linear infinite;
}

.noor-translate-button.is-translated {
  color: var(--c-surface);
  background: var(--c-muted);
}

@keyframes noor-translate-spin {
  to {
    transform: rotate(360deg);
  }
}

.noor-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--c-muted);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-page);
  cursor: pointer;
  font: 700 15px/1 Georgia, serif;
}

.noor-info-button:hover,
.noor-info-button:focus-visible {
  color: var(--c-surface);
  background: var(--c-strong);
  outline: none;
}

.noor-metadata {
  position: absolute;
  z-index: 20;
  top: 32px;
  left: 0;
  box-sizing: border-box;
  width: min(360px, 80vw);
  padding: 11px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: 0 12px 32px rgba(var(--c-ink-rgb), .2);
  direction: rtl;
  font-size: .78em;
  text-align: right;
}

.noor-entry[dir="ltr"] .noor-metadata {
  right: 0;
  left: auto;
}

.noor-metadata-row {
  display: grid;
  grid-template-columns: minmax(80px, .7fr) minmax(0, 1.5fr);
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--c-mint);
}

.noor-metadata-row:last-child {
  border-bottom: 0;
}

.noor-metadata-label {
  color: var(--c-muted);
}

.noor-metadata-value {
  overflow-wrap: anywhere;
}

.noor-reference {
  margin-bottom: 9px;
  color: var(--c-muted);
  font-size: .78em;
}

.noor-entry-content {
  color: var(--c-ink);
  font-size: 1em;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

[data-noor-resource="translation"] .noor-entry-content,
[data-noor-resource="commentary"] .noor-entry-content {
  font-size: 1.3em;
}

.noor-entry-content[dir="rtl"] {
  text-align: right;
}

.noor-entry-content[dir="ltr"] {
  text-align: left;
}

.noor-retry {
  display: block;
  margin: 20px auto;
  padding: 8px 18px;
  border: 1px solid var(--c-strong);
  border-radius: 6px;
  color: var(--c-accent);
  background: var(--c-mint);
  cursor: pointer;
  font: inherit;
}

@media screen and (max-width: 620px) {
  .noor-resource {
    margin-top: 16px;
    margin-bottom: 32px;
    padding: 0;
  }

  .noor-resource.has-selection-nav {
    padding-left: 0;
  }

  .noor-selector-popover {
    position: fixed;
    z-index: 80;
    top: 15vh;
    right: 12px;
    bottom: auto;
    left: 12px;
    max-height: 70vh;
  }

  .noor-selector-options {
    max-height: calc(70vh - 78px);
  }

  .noor-entry {
    padding: 13px;
  }

  .noor-hadith-entry.noor-entry,
  .noor-source-card.noor-entry {
    padding: 0;
  }

  .noor-metadata {
    position: fixed;
    top: 20vh;
    right: 16px !important;
    left: 16px !important;
    width: auto;
    max-height: 60vh;
    overflow-y: auto;
  }
}

@media screen and (min-width: 981px) {
  .ayah-view[data-ayah-view="two-column"] .mushaf-page-meta,
  html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-meta {
    min-height: var(--two-column-section-height);
    margin-bottom: 0;
    padding: 0 8px;
    border-bottom: 1px solid var(--c-line-warm);
  }
}

.ayah-view .lt-hadis {
  max-width: none;
  margin: 0 auto;
}

.ayah-view .mushaf-page:not(.is-selected-page):not(.is-continuous-page) {
  display: none;
}

.mushaf-continuous-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px;
  color: var(--c-muted);
  font-size: .82em;
  text-align: center;
}

.mushaf-continuous-loader[hidden] {
  display: none;
}

.mushaf-continuous-loader button {
  padding: 7px 13px;
  border: 1px solid var(--c-strong);
  border-radius: 5px;
  color: var(--c-accent);
  background: var(--c-mint);
  cursor: pointer;
  font: inherit;
}

.ayah-view[data-ayah-view="single-column"] .ayah-view-track,
html[data-mushaf-view="single-column"] .ayah-view .ayah-view-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  overflow-x: clip;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  direction: ltr;
  transition: height .2s ease;
}

.ayah-view[data-ayah-view="single-column"] .ayah-view-track::-webkit-scrollbar,
html[data-mushaf-view="single-column"] .ayah-view .ayah-view-track::-webkit-scrollbar {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .content-pane,
html[data-mushaf-view="single-column"] .ayah-view .content-pane {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  direction: rtl;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-pages,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-pages,
.ayah-view[data-ayah-view="single-column"] .mushaf-stage-chrome,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-chrome {
  width: min(100%, var(--mushaf-page-width, 570px));
  margin: 0 auto;
}

@media screen and (max-width: 980px) {
  .mushaf-stage {
    padding-right: 0;
    padding-left: 0;
  }

  .tafseer-tab-panel {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media screen and (max-width: 620px) {
  .ayah-page {
    padding-right: 0;
    padding-left: 0;
  }

  .mushaf-app-header {
    grid-template-areas: "actions location brand";
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: stretch;
    gap: 7px;
    width: calc(100% - 8px);
    max-width: calc(100vw - 8px);
    height: var(--mushaf-header-height);
    min-height: var(--mushaf-header-height);
    margin-top: var(--mushaf-chrome-edge);
    padding: 0 5px;
  }

  .mushaf-app-header-copy {
    display: flex;
    max-width: 100%;
  }

  .mushaf-app-header-brand {
    max-width: min(52vw, 240px);
    gap: 4px;
  }

  .mushaf-app-header-kicker {
    display: none;
  }

  .mushaf-app-header-title {
    display: block;
  }

  .mushaf-app-header-actions {
    gap: var(--mushaf-chrome-gap, 4px);
  }

  .mushaf-app-header-actions .content-dock-button {
    display: none !important;
  }

  .mushaf-app-header .toolbar-popover {
    position: fixed;
    z-index: 120;
    top: 46px;
    right: 12px;
    left: 12px;
    width: auto;
    min-width: 0;
    max-height: calc(100dvh - 56px);
  }

  .mushaf-pages {
    gap: 10px;
  }

  .settings-options {
    grid-template-columns: 1fr;
  }

  .content-tab {
    padding-right: 8px;
    padding-left: 8px;
  }

  .tafseer-source-row {
    padding-right: 0;
  }
}

@media screen and (max-width: 380px) {
  .mushaf-app-header-copy {
    line-height: 1.1;
  }

  .mushaf-app-header-mark {
    width: 1.3em;
    height: 1.3em;
  }
}

.ayah-view[data-ayah-view="single-column"] .content-tabs,
html[data-mushaf-view="single-column"] .ayah-view .content-tabs {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .content-tabs-row,
html[data-mushaf-view="single-column"] .ayah-view .content-tabs-row,
.ayah-view[data-ayah-view="single-column"] .column-stage-footer,
html[data-mushaf-view="single-column"] .ayah-view .column-stage-footer,
.ayah-view[data-ayah-view="single-column"] .column-resizer,
html[data-mushaf-view="single-column"] .ayah-view .column-resizer {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .content-ayah-sticky,
html[data-mushaf-view="single-column"] .ayah-view .content-ayah-sticky {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .tafseer-pane,
html[data-mushaf-view="single-column"] .ayah-view .tafseer-pane {
  display: contents;
}

.ayah-view[data-ayah-view="single-column"],
html[data-mushaf-view="single-column"] .ayah-view {
  --mushaf-chrome-font: clamp(
    .72rem,
    calc(var(--mushaf-chrome-unit) * .32),
    1.05rem
  );
  --mushaf-footer-height: clamp(22px, 3.8dvh, 30px);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header {
  grid-template-areas: "actions location brand";
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  width: min(calc(100% - 8px), var(--mushaf-page-width, 570px));
  height: var(--mushaf-header-height);
  min-height: var(--mushaf-header-height);
  padding: 0 6px;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions {
  gap: var(--mushaf-chrome-gap, 5px);
  justify-self: start;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-brand,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-brand {
  width: auto;
  max-width: min(48vw, 220px);
  justify-self: end;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-copy,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-copy {
  max-width: 100%;
  overflow: hidden;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-kicker,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-kicker {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-title,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-title {
  display: block;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta {
  min-height: 0;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-page-meta,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-page-meta {
  height: var(--mushaf-chrome-height);
  min-height: var(--mushaf-chrome-height);
  padding: 0 2px;
  font-size: var(--mushaf-chrome-font);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-page-arrow,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-page-arrow {
  width: var(--mushaf-chrome-height);
  height: var(--mushaf-chrome-height);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-page-arrow svg,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-page-arrow svg {
  width: calc(var(--mushaf-chrome-height) * .43);
  height: calc(var(--mushaf-chrome-height) * .43);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-juz-trigger,
.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-page-trigger,
.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-surah-trigger,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-juz-trigger,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-page-trigger,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-surah-trigger {
  min-height: var(--mushaf-chrome-height);
  padding-right: 6px;
  padding-left: 6px;
}

html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .recitation-play-button,
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .recitation-play-button,
html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-tooltip-undock],
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-undock],
html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-app-fullscreen],
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-app-fullscreen],
html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-slide-view],
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-slide-view] {
  display: none !important;
}

html[data-single-column-chrome="parked"] .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions,
html[data-single-column-chrome="parked"][data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions {
  gap: var(--mushaf-chrome-gap, 3px);
}

html[data-single-column-chrome="parked"] .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-tooltip-undock],
html[data-single-column-chrome="parked"][data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-undock] {
  display: inline-grid !important;
}

html[data-single-column-chrome="parked"] .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-brand,
html[data-single-column-chrome="parked"][data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-brand {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .recitation-icon,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .recitation-icon {
  width: 78%;
  height: 78%;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .settings-trigger,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .settings-trigger {
  width: var(--mushaf-chrome-control);
  height: var(--mushaf-chrome-control);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .view-menu-icon,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .view-menu-icon {
  width: calc(var(--mushaf-chrome-control) * .52);
  height: calc(var(--mushaf-chrome-control) * .52);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-tooltip-undock] svg,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-undock] svg,
.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-app-fullscreen] svg,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-app-fullscreen] svg,
.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-slide-view] svg,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-slide-view] svg {
  width: calc(var(--mushaf-chrome-control) * .52);
  height: calc(var(--mushaf-chrome-control) * .52);
}

.ayah-view .mushaf-app-header-actions .settings-menu {
  position: relative;
  z-index: 90;
}

.ayah-view .mushaf-app-header-actions .settings-menu .settings-popover {
  right: auto;
  left: 0;
  z-index: 120;
}

.chrome-help-tip {
  position: fixed;
  z-index: 10040;
  max-width: min(240px, calc(100vw - 16px));
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--c-paper);
  background: var(--c-ink);
  box-shadow: 0 6px 18px rgba(var(--c-ink-rgb), .28);
  font-size: .75rem;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
}

.chrome-help-tip[hidden] {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .ayah-view-track,
html[data-mushaf-view="single-column"] .ayah-view .ayah-view-track {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  margin-top: calc(var(--mushaf-chrome-edge) + var(--mushaf-chrome-height));
  padding: 0 4px;
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--c-page);
  direction: rtl;
  touch-action: pan-y;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage {
  grid-column: 1;
  width: min(100%, var(--mushaf-page-width, 570px));
  max-width: 100%;
  margin: 0 auto;
  padding-top: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--c-paper);
}

.ayah-view[data-ayah-view="single-column"] > .mushaf-stage-meta,
html[data-mushaf-view="single-column"] .ayah-view > .mushaf-stage-meta {
  position: absolute;
  z-index: 21;
  top: calc(var(--mushaf-app-header-offset, var(--mushaf-header-height)) + var(--mushaf-chrome-edge));
  left: 50%;
  box-sizing: border-box;
  width: min(calc(100% - 8px), var(--mushaf-page-width, 570px));
  border: 1px solid var(--c-line);
  transform: translateX(-50%);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta {
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.ayah-view[data-ayah-view="two-column"],
html[data-mushaf-view="two-column"] .ayah-view {
  --two-column-card-gap: var(--mushaf-chrome-edge);
  --two-column-section-height: clamp(
    30px,
    calc(var(--mushaf-page-width, 24rem) * .092),
    50px
  );
  --two-column-chrome-font: clamp(
    .58rem,
    calc(var(--mushaf-page-width, 24rem) * .038),
    .92rem
  );
  overflow: hidden;
}

.ayah-view[data-ayah-view="two-column"] > .mushaf-app-header,
html[data-mushaf-view="two-column"] .ayah-view > .mushaf-app-header {
  flex: 0 0 auto;
  width: calc(100% - 16px);
  padding-right: 8px;
  padding-left: 8px;
  z-index: 80;
}

.column-resizer {
  display: none;
  position: absolute;
  z-index: 50;
  top: calc(
    var(--mushaf-app-header-offset, var(--mushaf-header-height)) +
    var(--two-column-card-gap, var(--mushaf-chrome-edge))
  );
  right: calc(8px + var(--mushaf-column-width, 50%) - 14px);
  bottom: var(--two-column-track-bottom, 10px);
  width: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
  pointer-events: auto;
}

.column-resizer:before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: rgba(var(--c-strong-rgb), .28);
  transform: translateX(-50%);
  transition: background .15s ease, width .15s ease;
}

.ayah-view[data-ayah-view="two-column"] .column-resizer,
html[data-mushaf-view="two-column"] .ayah-view .column-resizer {
  display: block;
}

.column-resizer:hover:before,
.column-resizer.is-active:before,
.ayah-view.is-column-resizing .column-resizer:before {
  width: 4px;
  background: rgba(var(--c-strong-rgb), .7);
}

html.is-column-resizing,
html.is-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

@media (pointer: coarse) {
  .column-resizer {
    width: 24px;
  }
}

.page-resizer {
  display: none;
  position: absolute;
  z-index: 50;
  width: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.page-resizer:before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: rgba(var(--c-strong-rgb), .28);
  transform: translateX(-50%);
  transition: background .15s ease, width .15s ease;
}

html[data-workspace="desktop"] .ayah-view[data-ayah-view="single-column"] .page-resizer,
html[data-workspace="desktop"][data-mushaf-view="single-column"] .ayah-view .page-resizer {
  display: block;
}

.page-resizer:hover:before,
.page-resizer.is-active:before,
.ayah-view.is-page-resizing .page-resizer:before {
  width: 4px;
  background: rgba(var(--c-strong-rgb), .7);
}

.ayah-view[data-ayah-view="two-column"] .ayah-view-headings,
html[data-mushaf-view="two-column"] .ayah-view .ayah-view-headings {
  position: absolute;
  z-index: 20;
  top: calc(
    var(--mushaf-app-header-offset, var(--mushaf-header-height)) +
    var(--two-column-card-gap)
  );
  left: 8px;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  width: calc(100% - var(--mushaf-column-width, 50%) - 26px);
  height: var(--two-column-section-height);
}

.ayah-view[data-ayah-view="two-column"] .content-tabs-row,
html[data-mushaf-view="two-column"] .ayah-view .content-tabs-row {
  position: relative;
  z-index: 20;
  top: auto;
  left: auto;
  box-sizing: border-box;
  align-items: stretch;
  width: 100%;
  height: var(--two-column-section-height);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 14px 14px 0 0;
  background: var(--c-chrome);
  font-size: var(--two-column-chrome-font);
}

.ayah-view[data-ayah-view="two-column"] .content-tabs,
html[data-mushaf-view="two-column"] .ayah-view .content-tabs {
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.content-column-close {
  display: none;
  box-sizing: border-box;
  width: calc(var(--mushaf-chrome-control, 36px) * .85);
  height: calc(var(--mushaf-chrome-control, 36px) * .85);
  padding: 4px;
  border: 0;
  border-radius: 50%;
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.content-column-close svg {
  width: 70%;
  height: 70%;
}

html[data-workspace="desktop"][data-mushaf-view="two-column"] .content-column-close,
.ayah-view[data-ayah-view="two-column"][data-workspace="desktop"] .content-column-close {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 6px;
  display: inline-grid;
  transform: translateY(-50%);
}

html[data-workspace="desktop"][data-mushaf-view="two-column"] .content-tabs,
.ayah-view[data-ayah-view="two-column"][data-workspace="desktop"] .content-tabs {
  padding-left: 34px;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-app-header-actions [data-tooltip-dock],
html[data-mushaf-view="two-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-dock],
.ayah-view[data-ayah-view="two-column"] .mushaf-app-header-actions [data-mushaf-focus],
html[data-mushaf-view="two-column"] .ayah-view .mushaf-app-header-actions [data-mushaf-focus] {
  display: inline-grid;
}

.ayah-view[data-ayah-view="two-column"] [data-tooltip-undock],
html[data-mushaf-view="two-column"] .ayah-view [data-tooltip-undock] {
  display: none;
}

.ayah-view[data-ayah-view="two-column"] .content-tab,
html[data-mushaf-view="two-column"] .ayah-view .content-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding-top: 0;
  padding-right: 6px;
  padding-bottom: 0;
  padding-left: 6px;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--c-chrome);
  font-size: min(
    var(--two-column-chrome-font),
    calc(var(--two-column-section-height) * .42)
  );
}

.ayah-view[data-ayah-view="two-column"] .content-tab > span,
html[data-mushaf-view="two-column"] .ayah-view .content-tab > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ayah-view[data-ayah-view="two-column"] .content-tab.is-active:after,
html[data-mushaf-view="two-column"] .ayah-view .content-tab.is-active:after {
  bottom: 0;
  height: 2px;
}

.ayah-view[data-ayah-view="two-column"] .ayah-view-track,
html[data-mushaf-view="two-column"] .ayah-view .ayah-view-track {
  position: absolute;
  z-index: 1;
  top: calc(
    var(--mushaf-app-header-offset, var(--mushaf-header-height)) +
    var(--two-column-card-gap) +
    var(--two-column-section-height)
  );
  right: 0;
  bottom: var(--two-column-track-bottom, max(8px, var(--safe-area-bottom, 0px)));
  left: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--mushaf-column-width, minmax(0, 1fr)) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  margin-top: 0;
  padding: 0 8px;
  overflow: hidden;
  background: var(--c-page);
  direction: rtl;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage,
.ayah-view[data-ayah-view="two-column"] .mushaf-stage.is-continuous-scroll,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage.is-continuous-scroll {
  grid-column: 1;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding-top: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--c-paper);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage-chrome,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-chrome {
  width: 100%;
}

.ayah-view[data-ayah-view="two-column"] > .mushaf-stage-meta,
html[data-mushaf-view="two-column"] .ayah-view > .mushaf-stage-meta {
  position: absolute;
  z-index: 21;
  top: calc(
    var(--mushaf-app-header-offset, var(--mushaf-header-height)) +
    var(--two-column-card-gap)
  );
  right: 8px;
  box-sizing: border-box;
  width: var(--mushaf-column-width, calc(50% - 13px));
  height: var(--two-column-section-height);
  min-height: var(--two-column-section-height);
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 14px 14px 0 0;
  background: var(--c-chrome);
}

.ayah-view[data-ayah-view="two-column"] [data-content-tab="hadith"] [data-content-ayah-heading],
html[data-mushaf-view="two-column"] .ayah-view [data-content-tab="hadith"] [data-content-ayah-heading],
.ayah-view[data-ayah-view="two-column"] .word-by-word-panel-heading,
html[data-mushaf-view="two-column"] .ayah-view .word-by-word-panel-heading {
  display: none;
}

.ayah-view[data-ayah-view="two-column"] .content-ayah-sticky,
html[data-mushaf-view="two-column"] .ayah-view .content-ayah-sticky {
  position: relative;
  z-index: 11;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 10px 3px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-paper);
  font-size: var(--two-column-chrome-font);
}

.ayah-view[data-ayah-view="two-column"] .tafseer-pane,
html[data-mushaf-view="two-column"] .ayah-view .tafseer-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--c-paper);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage-footer,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-footer {
  position: relative;
  z-index: 8;
  display: block;
  flex: 0 0 var(--mushaf-footer-height);
  box-sizing: border-box;
  width: 100%;
  height: var(--mushaf-footer-height);
  min-height: var(--mushaf-footer-height);
  overflow: visible;
  border-top: 1px solid var(--c-line-warm);
  border-radius: 0 0 13px 13px;
  background: var(--c-chrome);
  box-shadow: none;
  pointer-events: auto;
}

.ayah-view[data-ayah-view="two-column"] .column-stage-footer,
html[data-mushaf-view="two-column"] .ayah-view .column-stage-footer {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 100%;
  height: var(--mushaf-footer-height);
  min-height: var(--mushaf-footer-height);
  overflow: visible;
  border-top: 1px solid var(--c-line-warm);
  border-bottom: 0;
  border-radius: 0 0 13px 13px;
  background: var(--c-chrome);
  box-shadow: none;
  pointer-events: auto;
}

.ayah-view[data-ayah-view="two-column"] .tafseer-tab-panel,
html[data-mushaf-view="two-column"] .ayah-view .tafseer-tab-panel {
  flex: 1 1 0;
  min-height: 0;
  padding: 0 8px var(--mushaf-footer-height);
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-gutter: auto;
}

.ayah-view[data-ayah-view="two-column"] .noor-resource,
.ayah-view[data-ayah-view="two-column"] .noor-selector,
.ayah-view[data-ayah-view="two-column"] .word-by-word--panel,
.ayah-view[data-ayah-view="two-column"] .word-by-word-panel-heading,
.ayah-view[data-ayah-view="two-column"] .lt-hadis,
html[data-mushaf-view="two-column"] .ayah-view .noor-resource,
html[data-mushaf-view="two-column"] .ayah-view .noor-selector,
html[data-mushaf-view="two-column"] .ayah-view .word-by-word--panel,
html[data-mushaf-view="two-column"] .ayah-view .word-by-word-panel-heading,
html[data-mushaf-view="two-column"] .ayah-view .lt-hadis {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.ayah-view[data-ayah-view="two-column"] .noor-resource,
.ayah-view[data-ayah-view="two-column"] .noor-selector,
html[data-mushaf-view="two-column"] .ayah-view .noor-resource,
html[data-mushaf-view="two-column"] .ayah-view .noor-selector {
  padding-right: 0;
  padding-left: 0;
}

.ayah-view[data-ayah-view="two-column"] .noor-local-commentary > .noor-source-card-body,
html[data-mushaf-view="two-column"] .ayah-view .noor-local-commentary > .noor-source-card-body {
  padding: 14px 18px 16px;
}

.ayah-view[data-ayah-view="two-column"] .noor-resource.has-selection-nav,
html[data-mushaf-view="two-column"] .ayah-view .noor-resource.has-selection-nav {
  padding-left: 0;
}

.ayah-view[data-ayah-view="two-column"] .tafseer-tab-panel,
html[data-mushaf-view="two-column"] .ayah-view .tafseer-tab-panel {
  scrollbar-width: none;
}

.ayah-view[data-ayah-view="two-column"] .tafseer-tab-panel::-webkit-scrollbar,
html[data-mushaf-view="two-column"] .ayah-view .tafseer-tab-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-page-meta,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-meta {
  height: var(--two-column-section-height);
  min-height: var(--two-column-section-height);
  margin-bottom: 0;
  padding: 0 6px;
  border-bottom: 1px solid var(--c-line-warm);
  font-size: var(--two-column-chrome-font);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-juz-trigger,
.ayah-view[data-ayah-view="two-column"] .mushaf-surah-trigger,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-juz-trigger,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-surah-trigger {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-page-arrow,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-arrow {
  width: calc(var(--two-column-section-height) * .72);
  height: calc(var(--two-column-section-height) * .72);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-page-arrow svg,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-arrow svg {
  width: calc(var(--two-column-section-height) * .38);
  height: calc(var(--two-column-section-height) * .38);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage-meta > .mushaf-page-meta,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-meta > .mushaf-page-meta {
  border-bottom: 0;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage-meta,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-meta {
  min-height: 0;
}

.word-by-word-content-pane .word-by-word-section {
  display: block;
}

html[dir="ltr"] body,
html[dir="ltr"] .md .rtl,
html[dir="ltr"] .ayah-toolbar,
html[dir="ltr"] .ayah-view,
html[dir="ltr"] .ayah-view-track,
html[dir="ltr"] .content-tabs-row,
html[dir="ltr"] .content-toolbar-actions,
html[dir="ltr"] .toolbar-popover,
html[dir="ltr"] .single-column-settings-menu,
html[dir="ltr"] .tafseer-tab-panel,
html[dir="ltr"] .noor-resource {
  direction: ltr;
}

html[dir="ltr"] .settings-menu .settings-popover {
  right: 0;
  left: auto;
}

html[dir="ltr"] .mushaf-app-header-actions .settings-menu .settings-popover {
  right: auto;
  left: 0;
}

html[dir="ltr"] .mushaf-app-header-brand {
  direction: ltr;
}

html[dir="ltr"] .mushaf-app-header {
  grid-template-areas: "brand location actions";
}

html[dir="ltr"] .mushaf-app-header-actions {
  justify-self: end;
}

html[dir="ltr"] .mushaf-app-header-brand {
  justify-self: start;
}

html[dir="ltr"] .mushaf-app-header-actions .settings-menu .settings-popover {
  right: 0;
  left: auto;
}

html[dir="ltr"] .ayah-view[data-ayah-view="single-column"] .mushaf-app-header,
html[dir="ltr"][data-mushaf-view="single-column"] .ayah-view .mushaf-app-header {
  grid-template-areas: "brand location actions";
}

html[dir="ltr"] .ayah-view[data-ayah-view="single-column"] .settings-menu .settings-popover,
html[dir="ltr"][data-mushaf-view="single-column"] .ayah-view .settings-menu .settings-popover {
  right: 0;
  left: auto;
}

html[dir="ltr"] .reciter-selector-trigger {
  padding-right: 12px;
  padding-left: 34px;
}

html[dir="ltr"] .reciter-selector-trigger:before {
  right: auto;
  left: 14px;
}

html[dir="ltr"] .ayah-view[data-ayah-view="single-column"] .content-pane,
html[dir="ltr"][data-mushaf-view="single-column"] .ayah-view .content-pane {
  direction: ltr;
}

html[dir="ltr"] .mushaf-stage,
html[dir="ltr"] .mushaf-pages,
html[dir="ltr"] .mushaf-page-meta,
html[dir="ltr"] .content-ayah-heading p,
html[dir="ltr"] .content-ayah-source,
html[dir="ltr"] .fa,
html[dir="ltr"] .ar,
html[dir="ltr"] [lang="fa"],
html[dir="ltr"] [lang="ar"],
html[dir="ltr"] [dir="rtl"] {
  direction: rtl;
}

html[dir="ltr"] .ayah-view[data-ayah-view="two-column"] .ayah-view-track,
html[dir="ltr"][data-mushaf-view="two-column"] .ayah-view .ayah-view-track {
  direction: rtl;
}

html[data-mushaf-view="single-column"] .ayah-view .content-tabs {
  display: none;
}

html[data-mushaf-view="single-column"] .ayah-view .content-dock-button {
  display: none;
}

html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-undock] {
  display: none !important;
}

html[data-mushaf-view="single-column"] .ayah-view .content-tabs-row {
  display: none;
}

html[data-mushaf-view="single-column"] .ayah-view .ayah-view-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

html[data-mushaf-view="single-column"] .ayah-view .tafseer-tab-panel {
  display: none !important;
}

@media screen and (max-width: 620px) {
  .mushaf-app-header {
    grid-template-areas: "actions location brand";
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: stretch;
    width: calc(100% - 8px);
    max-width: calc(100vw - 8px);
  }

  html[dir="ltr"] .mushaf-app-header {
    grid-template-areas: "brand location actions";
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  }

  html[dir="ltr"] .mushaf-app-header .toolbar-popover {
    right: 12px;
    left: 12px;
  }
}

html[data-slide-view="open"] {
  overflow: hidden;
}

html[data-slide-view="open"] body {
  overflow: hidden;
}

.mushaf-slide-view {
  --slide-icon: 60px;
  --slide-play: 80px;
  --slide-icon-gap: 10px;
  --slide-icon-fill: var(--c-paper);
  --slide-icon-ink: var(--c-ink);
  --slide-icon-line: var(--c-line);
  --slide-chrome-height: 112px;
  --slide-translation-height: 180px;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: env(safe-area-inset-top, 0px) 0 0;
  overflow: hidden;
  color: var(--c-ink);
  background: var(--c-paper);
  touch-action: pan-y;
}

.mushaf-slide-view[hidden] {
  display: none;
}

.mushaf-slide-view-videos,
.mushaf-slide-view-video,
.mushaf-slide-view-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mushaf-slide-view-videos {
  z-index: 0;
  display: none;
  overflow: hidden;
  background: #070b09;
}

.mushaf-slide-view-video {
  z-index: 0;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.45, 0, 0.2, 1);
}

.mushaf-slide-view-video.is-on {
  z-index: 1;
  opacity: 1;
}

.mushaf-slide-view-scrim {
  z-index: 1;
  display: none;
}

.mushaf-slide-view-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 0;
  padding: 38px 0 32px;
  overflow: hidden;
}

.mushaf-slide-view-top {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 27px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 0;
  direction: ltr;
  pointer-events: none;
}

.mushaf-slide-view-top > * {
  pointer-events: auto;
}

.mushaf-slide-view-close {
  position: static;
  z-index: 5;
  display: grid;
  box-sizing: border-box;
  width: 27px;
  height: 27px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  cursor: pointer;
  justify-self: center;
  place-items: center;
}

.mushaf-slide-view-close:hover,
.mushaf-slide-view-close:focus,
.mushaf-slide-view-close:focus-visible,
.mushaf-slide-view-close:active {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .5);
  outline: none;
}

.mushaf-slide-view-close svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: inherit;
}

.mushaf-slide-view-surah,
.mushaf-slide-view-juz,
.mushaf-slide-view-page {
  position: static;
  z-index: 3;
  max-width: 100%;
  overflow: hidden;
  color: var(--c-accent);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mushaf-slide-view-surah {
  justify-self: start;
  text-align: left;
}

.mushaf-slide-view-page {
  position: absolute;
  right: auto;
  bottom: 9px;
  left: 50%;
  z-index: 5;
  text-align: center;
  padding: 2px 6px;
  transform: translateX(-50%);
}

.mushaf-slide-view-juz {
  justify-self: end;
  text-align: right;
}

.mushaf-slide-view-ayah {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 0;
  padding: 12px 5% 18px;
  overflow: hidden;
}

.mushaf-slide-view-ayah-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  width: 90%;
  max-width: 90%;
  overflow: visible;
  color: var(--c-ink);
  font-family: var(--font-quran-arabic);
  font-size: clamp(1.7rem, 5.2vh, 3.6rem);
  line-height: 2.12;
  text-align: center;
  padding: .18em .2em .42em;
}

.mushaf-slide-view-ayah-body {
  display: block;
  width: 100%;
  overflow: visible;
  font-family: var(--font-quran-arabic);
  line-height: inherit;
  padding: .06em .08em .28em;
}

.mushaf-slide-view-ayah-mark {
  display: block;
  width: 100%;
  margin: .22em 0 0;
  overflow: visible;
  color: var(--c-accent);
  font-family: var(--font-quran-arabic);
  font-size: .78em;
  font-weight: 400;
  line-height: 1.9;
  text-align: center;
  white-space: nowrap;
  padding: .28em .45em .48em;
}

.mushaf-slide-view-divider {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  width: min(86%, 36rem);
  height: auto;
  margin: 8px auto 0;
  background: none;
  direction: ltr;
}

.mushaf-slide-view-divider-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 12px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(var(--c-line-rgb), .9) 36%,
    rgba(var(--c-ink-rgb), .28)
  );
}

.mushaf-slide-view-divider-line:last-child {
  background: linear-gradient(
    to left,
    transparent,
    rgba(var(--c-line-rgb), .9) 36%,
    rgba(var(--c-ink-rgb), .28)
  );
}

.mushaf-slide-view-divider-label {
  flex: 0 0 auto;
  color: var(--c-muted);
  font-family: Tahoma, Arial, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

.mushaf-slide-view-tooltip-host {
  box-sizing: border-box;
  flex: 0 0 var(--slide-translation-height, 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 22px 5% 10px;
  overflow: hidden;
}

.mushaf-slide-view-chrome {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--slide-chrome-height, 112px);
  padding: 0 0 var(--safe-area-bottom, env(safe-area-inset-bottom, 0px));
  overflow: visible;
}

.mushaf-slide-view-controls {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 90%;
  max-width: 90%;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
}

html[data-slide-view-tabs="hidden"] .mushaf-slide-view-tooltip-host,
html[data-slide-view-tabs="hidden"] .mushaf-slide-view-divider {
  display: none;
}

html[data-slide-view="open"][data-slide-view-tab="word-gloss"] .mushaf-slide-view-ayah,
html[data-slide-view="open"][data-slide-view-tab="word-gloss"] .mushaf-slide-view-divider {
  display: none;
}

html[data-slide-view="open"][data-slide-view-tab="word-gloss"] .mushaf-slide-view-tooltip-host {
  flex: 1 1 auto;
}

html[data-slide-view-corners="hidden"] .mushaf-slide-view-surah,
html[data-slide-view-corners="hidden"] .mushaf-slide-view-juz,
html[data-slide-view-corners="hidden"] .mushaf-slide-view .mushaf-reading-progress {
  display: none;
}

html[data-slide-view-tabs="hidden"] .mushaf-slide-view-ayah {
  flex: 1 1 auto;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-reading-progress {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  height: auto;
  padding: 0;
  gap: 8px;
  background: transparent;
  direction: rtl;
  pointer-events: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-reading-progress > * {
  pointer-events: auto;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-audio-progress {
  visibility: hidden;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-surah-progress-value {
  color: var(--c-ink);
  font-size: clamp(1rem, 2.8vh, 1.25rem);
  font-weight: 700;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-progress-square {
  width: clamp(7px, 1.2vh + 4px, 11px);
  height: clamp(7px, 1.2vh + 4px, 11px);
  border-radius: 2px;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-juz-progress {
  gap: 2px;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-juz-progress .mushaf-progress-square {
  width: 5px;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-translation-tooltip {
  position: relative;
  inset: auto;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 90%;
  max-width: 90%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--c-paper);
  box-shadow: none;
  transform: none;
  animation: none;
  pointer-events: auto;
  font-size: clamp(1.05rem, 3.6vh, calc(1.05rem * 1.5 * var(--content-font-scale, 1)));
  text-align: center;
  letter-spacing: normal;
  word-spacing: normal;
  justify-content: flex-start;
}

@media (orientation: landscape) {
  html[data-slide-view="open"] .mushaf-slide-view .mushaf-translation-tooltip {
    font-size: clamp(1.4rem, 3.5vw, calc(1.55rem * 1.5 * var(--content-font-scale, 1)));
  }
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-translation-tooltip::before {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-header {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-window-controls {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-tabs,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-source-row,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-settings {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-tab-panel]:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: auto;
  touch-action: manipulation;
}

html[data-slide-view="open"] .mushaf-slide-view-tooltip-host,
html[data-slide-view="open"] .mushaf-slide-view-tooltip-host *,
html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-tab-panel]:not([hidden]) {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-slide-view="open"] .mushaf-slide-view-tooltip-host::-webkit-scrollbar,
html[data-slide-view="open"] .mushaf-slide-view-tooltip-host *::-webkit-scrollbar,
html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-tab-panel]:not([hidden])::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-source-content],
html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-source-content] p,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-panel-content,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-panel-content > p {
  text-align: center;
  text-align-last: auto;
  letter-spacing: normal;
  word-spacing: normal;
}

html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-tab-panel][hidden] {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss .word-gloss-arabic,
html[data-slide-view="open"] .mushaf-slide-view .word-gloss-arabic {
  font-size: 1.22em;
  line-height: 1.65;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss .word-gloss-translation,
html[data-slide-view="open"] .mushaf-slide-view .word-gloss-translation {
  display: block;
  font-size: .76em;
  line-height: 1.4;
}

html[data-slide-view="open"] .mushaf-slide-view .word-gloss-tooltip-title {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .word-gloss-token,
html[data-slide-view="open"] .mushaf-slide-view .word-gloss-skeleton {
  display: inline-grid;
  background: none;
  border-color: transparent;
  box-shadow: none;
  min-width: 3.1em;
  padding: .22em .32em .28em;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .word-gloss-arabic,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .word-gloss-translation,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .word-gloss-tooltip-title {
  color: #fff;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-body,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-tab-panel {
  min-height: 0;
  max-height: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-body {
  order: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 0;
  overflow: hidden;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-panel-content,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss,
html[data-slide-view="open"] .mushaf-slide-view .word-by-word--tooltip,
html[data-slide-view="open"] .mushaf-slide-view [data-noor-results] {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  margin-block: auto;
  overflow: visible;
}

html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-source-content],
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-panel-content {
  max-height: 100%;
  overflow: hidden;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss,
html[data-slide-view="open"] .mushaf-slide-view .word-by-word--tooltip {
  flex: 1 1 auto;
  align-content: center;
  justify-content: center;
  gap: .22em .55em;
  width: 100%;
  max-height: 100%;
  margin-block: 0;
  overflow: hidden;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-slide-view-controls .mushaf-tooltip-controls {
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  height: auto;
  gap: var(--slide-icon-gap, 10px);
  padding: 0;
  overflow: visible;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation--previous {
  order: 1;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls [data-slide-view-tabs] {
  order: 2;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation {
  order: 3;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-section-repeat {
  order: 4;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation--next {
  order: 5;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-chrome,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-undock,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls [data-app-fullscreen],
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls [data-slide-view] {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation {
  --repeat-knockout: var(--slide-icon-fill, var(--c-paper));
  flex: 0 0 var(--slide-icon, 60px);
  width: var(--slide-icon, 60px);
  height: var(--slide-icon, 60px);
  max-width: var(--slide-icon, 60px);
  max-height: var(--slide-icon, 60px);
  aspect-ratio: 1;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--slide-icon-line, var(--c-line));
  border-radius: 50%;
  color: var(--slide-icon-ink, var(--c-ink));
  background: var(--slide-icon-fill, var(--c-paper));
  opacity: 1;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat.is-repeat-off,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls [data-slide-view-tabs].is-tabs-hidden {
  --repeat-knockout: var(--slide-icon-fill, var(--c-paper));
  color: var(--slide-icon-ink, var(--c-ink));
  background: var(--slide-icon-fill, var(--c-paper));
  border-color: var(--slide-icon-line, var(--c-line));
  opacity: .62;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation.recitation-play-button {
  flex: 0 0 var(--slide-play, 80px);
  align-self: center;
  width: var(--slide-play, 80px);
  height: var(--slide-play, 80px);
  max-width: var(--slide-play, 80px);
  max-height: var(--slide-play, 80px);
  aspect-ratio: 1;
  background: var(--slide-icon-fill, var(--c-paper));
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation .recitation-progress {
  width: 100%;
  height: 100%;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation .recitation-icon {
  z-index: 1;
  width: 78%;
  height: 78%;
}

html[data-slide-view="open"] .mushaf-slide-view .slide-tabs-icon {
  width: 52%;
  height: 52%;
}

html[data-slide-view="open"] .mushaf-slide-view .slide-tabs-icon--show {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view [data-slide-view-tabs].is-tabs-hidden .slide-tabs-icon--hide {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view [data-slide-view-tabs].is-tabs-hidden .slide-tabs-icon--show {
  display: block;
}

html[data-slide-view="open"] .mushaf-slide-view button,
html[data-slide-view="open"] .mushaf-slide-view [role="button"] {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls :is(
  .mushaf-tooltip-repeat,
  .mushaf-tooltip-ayah-navigation,
  .mushaf-tooltip-recitation,
  .recitation-play-button
):is(:hover, :focus, :focus-visible, :active) {
  --repeat-knockout: var(--slide-icon-fill, var(--c-paper));
  color: var(--slide-icon-ink, var(--c-ink));
  background: var(--slide-icon-fill, var(--c-paper));
  border-color: var(--slide-icon-line, var(--c-line));
  filter: none;
  outline: none;
  box-shadow: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-repeat-badge {
  width: auto;
  min-width: 1.25em;
  height: 1.25em;
  padding: 0 0.14em;
  border-radius: 999px;
  color: inherit;
  background: var(--repeat-knockout, var(--c-surface));
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view {
  --slide-icon-fill: rgba(0, 0, 0, .5);
  --slide-icon-ink: #fff;
  --slide-icon-line: rgba(255, 255, 255, .22);
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view {
  color: #fff;
  background: #070b09;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-videos {
  display: block;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-chrome {
  position: relative;
  z-index: 3;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 8px 14px 10px;
  padding: 40px 12px 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 34px 28px 36px 24px;
  background: rgba(0, 0, 0, .5);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-ayah-text,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-ayah-body,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-ayah-mark,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-surah,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-page,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-juz,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-surah-progress-value,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-translation-tooltip,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-tooltip-body,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view [data-tooltip-source-content] {
  color: #fff;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-divider {
  background: none;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-divider-line {
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, .28) 36%,
    rgba(255, 255, 255, .78)
  );
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-divider-line:last-child {
  background: linear-gradient(
    to left,
    transparent,
    rgba(255, 255, 255, .28) 36%,
    rgba(255, 255, 255, .78)
  );
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-divider-label {
  color: #fff;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-translation-tooltip {
  background: transparent;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-surah,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-page,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-juz {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-card {
  margin: 8px 14px 10px;
  padding: 40px 12px 34px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 34px 28px 36px 24px;
  background: rgba(0, 0, 0, .5);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-ayah-text,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-ayah-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-ayah-mark,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-divider-label,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-translation-tooltip,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view [data-tooltip-source-content],
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry h3,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry small,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry p,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-entry-content,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-heading,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-title,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-meta,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-local-commentary,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-status {
  color: #fff;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-translation-tooltip,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-heading,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-hadith-toolbar {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view [data-tooltip-tab-panel="tafseer"],
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry p,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-entry-content,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-copy {
  text-align: justify;
  text-align-last: center;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry-header,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry h3,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-title,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-heading {
  justify-content: center;
  text-align: center;
  text-align-last: center;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-divider {
  background: none;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-divider-line {
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, .28) 36%,
    rgba(255, 255, 255, .78)
  );
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-divider-line:last-child {
  background: linear-gradient(
    to left,
    transparent,
    rgba(255, 255, 255, .28) 36%,
    rgba(255, 255, 255, .78)
  );
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry {
  border-bottom-color: rgba(255, 255, 255, .18);
}
