@font-face {
  font-family: "Noto Sans Arabic Local";
  src: url("NotoSansArabic.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --md-text-font: "Noto Sans Arabic Local";
  --md-primary-fg-color: #0b377c;
  --md-primary-fg-color--light: #225ba8;
  --md-primary-fg-color--dark: #092a61;
  --md-accent-fg-color: #0c64be;
}

[dir="rtl"] body,
[dir="rtl"] .md-typeset {
  font-family: "Noto Sans Arabic Local", "Noto Sans Arabic", Tahoma, sans-serif;
}

[dir="rtl"] .md-typeset {
  font-size: .86rem;
  line-height: 1.95;
}

[dir="rtl"] .md-typeset h1,
[dir="rtl"] .md-typeset h2,
[dir="rtl"] .md-typeset h3 {
  color: #102c54;
  font-weight: 750;
  line-height: 1.5;
}

[dir="rtl"] .md-typeset h1 {
  font-size: 1.9rem;
  margin-bottom: .8rem;
}

[dir="rtl"] .md-typeset h2 {
  font-size: 1.3rem;
  border-bottom: 1px solid #e4ebf3;
  padding-bottom: .35rem;
}

[dir="rtl"] .md-typeset ol,
[dir="rtl"] .md-typeset ul {
  padding-left: 0;
  padding-right: 1.65em;
}

[dir="rtl"] .md-typeset li {
  padding-left: 0;
  padding-right: .15em;
}

[dir="rtl"] .md-typeset ol { list-style-type: arabic-indic; }
[dir="rtl"] .md-typeset li::marker { color: #0b4b9b; font-weight: 700; }
[dir="rtl"] .md-typeset li + li { margin-top: .35em; }

[dir="rtl"] .md-typeset table:not([class]) th {
  background: #eef4fb;
  text-align: right;
}

[dir="rtl"] .md-typeset table:not([class]) td { text-align: right; }

.md-typeset .result-box {
  border: 1px solid #cfdff0;
  border-right: 4px solid #0e5fb3;
  background: #f5f9fd;
  border-radius: .55rem;
  padding: .8rem 1rem;
  margin: 1.2rem 0;
}

.md-typeset .result-box p { margin: 0; }

.md-typeset .home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.7rem;
  background: #f4f8fd;
  border: 1px solid #dce8f5;
  border-radius: .8rem;
  margin-bottom: 1.5rem;
}

.md-typeset .home-intro h1 { margin: 0 0 .3rem; }
.md-typeset .home-intro p { margin: 0; color: #46617e; }
.md-typeset .home-intro img {
  width: 110px;
  max-width: 100%;
  border-radius: .5rem;
  mix-blend-mode: multiply;
}

.md-typeset .topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
}

.md-typeset .topic-grid a {
  display: block;
  min-height: 7rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dbe5f0;
  border-radius: .65rem;
  color: #123b76;
  background: #fff;
  text-decoration: none;
}

.md-typeset .topic-grid a:hover { background: #f4f8fd; border-color: #aac7e8; }
.md-typeset .topic-grid strong { display: block; font-size: 1.05rem; }
.md-typeset .topic-grid span { display: block; color: #536981; font-size: .8rem; line-height: 1.7; }

.md-typeset img { border-radius: .5rem; }
.md-typeset .caption { color: #62748a; font-size: .75rem; text-align: center; }
.md-typeset code { direction: ltr; unicode-bidi: isolate; }

.docs-layout-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 3.2rem;
  z-index: 3;
  padding: .55rem .8rem;
  margin: .25rem 1.5rem .5rem;
  border: 1px solid #dce8f5;
  border-radius: .55rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 10px rgba(16, 44, 84, .06);
}

.docs-layout-controls button {
  border: 1px solid #c7d9ec;
  border-radius: .4rem;
  background: #f7faff;
  color: #113c76;
  padding: .35rem .75rem;
  font: inherit;
  font-size: .72rem;
  line-height: 1.5;
  cursor: pointer;
}

.docs-layout-controls button:hover,
.docs-layout-controls button:focus-visible {
  background: #e8f2fd;
  border-color: #7cace0;
}

.docs-layout-controls button:focus-visible {
  outline: 2px solid #0c64be;
  outline-offset: 2px;
}

@media (min-width: 76.25em) {
  body.docs-hide-primary .md-sidebar--primary,
  body.docs-hide-secondary .md-sidebar--secondary {
    display: none;
  }

  body.docs-hide-primary .md-main__inner,
  body.docs-hide-secondary .md-main__inner {
    max-width: none;
    margin-inline: 1.5rem;
  }

  body.docs-hide-primary .md-content,
  body.docs-hide-secondary .md-content {
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 76.24em) {
  .docs-layout-controls { display: none; }
}

@media (max-width: 600px) {
  .md-typeset .home-intro { grid-template-columns: 1fr; }
  .md-typeset .home-intro img { display: none; }
}
