@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&family=Vazirmatn:wght@100..900&display=swap');


:root {

  --font-fa: "Vazirmatn", sans-serif;
  --font-en: "Manrope", sans-serif;
  --font-code: "JetBrains Mono", monospace;
  --font-persian-code: "JetBrains Mono", "Vazirmatn", monospace;

  --md-text-font: var(--font-fa);
  --md-code-font: var(--font-code);


  --sme-primary: #2563EB;
  --sme-secondary: #2DD4BF;

  --md-primary-fg-color: #2563EB;
  --md-primary-fg-color--light: #3B82F6;
  --md-primary-fg-color--dark: #1D4ED8;

  --md-accent-fg-color: #2DD4BF;
}



/* ===============================
   Theme UI
================================ */


.md-header,
.md-tabs,
.md-sidebar,
.md-nav,
.md-search,
.md-footer {

  font-family: var(--font-fa) !important;

}



/* ===============================
   Default Persian Docs
================================ */


.md-typeset {

  font-family: var(--font-fa) !important;

  direction: rtl;
  text-align: right;

  line-height: 1.95;
  font-size: .82rem;

}



.md-typeset ul,
.md-typeset ol {

  padding-right: 1.5rem;
  padding-left: 0;

}



/* ===============================
   English Documents
   Front matter:

   ---
   direction: ltr
   ---
================================ */


.md-typeset .ltr-docs {

  direction: ltr !important;
  text-align: left !important;

  font-family: var(--font-en) !important;

}



.md-typeset .ltr-docs * {

  font-family: var(--font-en) !important;

}



.md-typeset .ltr-docs h1,
.md-typeset .ltr-docs h2,
.md-typeset .ltr-docs h3,
.md-typeset .ltr-docs h4,
.md-typeset .ltr-docs h5,
.md-typeset .ltr-docs h6 {


  direction: ltr !important;
  text-align: left !important;

  font-weight: 700;

}



.md-typeset .ltr-docs p,
.md-typeset .ltr-docs li,
.md-typeset .ltr-docs blockquote {


  direction: ltr !important;
  text-align: left !important;

}



.md-typeset .ltr-docs ul,
.md-typeset .ltr-docs ol {

  direction: ltr !important;

  padding-left: 1.5rem !important;
  padding-right: 0 !important;

}



.md-typeset .ltr-docs table,
.md-typeset .ltr-docs th,
.md-typeset .ltr-docs td {


  direction: ltr !important;

  text-align: left !important;

  unicode-bidi: plaintext;

}



/* Persian inside English docs */

.md-typeset .ltr-docs .rtl {

  direction: rtl !important;

  text-align: right !important;

  font-family: var(--font-fa) !important;

}



/* ===============================
   Typography
================================ */


.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {

  font-weight: 800;

  letter-spacing: -.02em;

}

.md-typeset h1 .design-preview-link {

  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-inline-start: auto;
  border-radius: .5rem;
  vertical-align: -.25rem;

  transition: background-color 160ms ease, transform 160ms ease;

}

.md-typeset h1:has(.design-preview-link) {

  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

}

.md-typeset h1 .design-preview-link:hover {

  background: color-mix(in srgb, var(--md-primary-fg-color) 12%, transparent);
  transform: translateY(-1px);

}

.md-typeset h1 .design-preview-link:focus-visible {

  outline: 3px solid color-mix(in srgb, var(--md-accent-fg-color) 45%, transparent);
  outline-offset: 2px;

}

.md-typeset h1 .design-preview-icon {

  display: block;
  width: 24px;
  height: 24px;
  margin: 0;

}



.md-typeset p,
.md-typeset li {

  line-height: 1.95;

}



/* ===============================
   Code
================================ */


.md-typeset code,
.md-typeset pre,
.md-typeset kbd {


  direction: ltr !important;

  text-align: left !important;

  font-family: var(--font-code) !important;

}



.md-typeset pre {


  border-radius: 14px;

  font-size: .82rem;

  line-height: 1.75;

}



.md-typeset pre code {


  font-family: var(--font-code) !important;

  font-weight: 400;

}



/* Code inside English docs */

.md-typeset .ltr-docs pre,
.md-typeset .ltr-docs pre code {

  direction: ltr !important;

  text-align: left !important;

}



/* Inline code */

.md-typeset code {


  border-radius: 6px;

  font-size: .86em;

}



/* ===============================
   Helpers
================================ */


.md-typeset .ltr {

  direction: ltr !important;

  text-align: left !important;

  unicode-bidi: isolate;

}



.md-typeset .rtl {

  direction: rtl !important;

  text-align: right !important;

  unicode-bidi: isolate;

}



/* ===============================
   Tables
================================ */


.md-typeset table {

  direction: rtl;

  text-align: right;

}



/* ===============================
   Colors
================================ */


.md-header,
.md-tabs {

  background-color: var(--md-primary-fg-color) !important;

}



.md-typeset a {

  color: var(--md-primary-fg-color);

}



.md-nav__link--active {

  color: var(--md-primary-fg-color) !important;

}



.md-nav__link:hover,
.md-typeset a:hover {

  color: var(--md-primary-fg-color--dark) !important;

}



.md-typeset .md-button--primary {

  background-color: var(--md-primary-fg-color);

  border-color: var(--md-primary-fg-color);

  color:white;

}



/* ===============================
   Figma
================================ */


.figma-embed {

  width:100%;

  height:82vh;

  margin:1.5rem 0;

  border:1px solid rgba(148,163,184,.35);

  border-radius:16px;

  overflow:hidden;

  background:white;

}



.figma-embed iframe {

  width:100%;

  height:100%;

  border:0;

}

/* ======================================
   Code blocks must always use JetBrains Mono
====================================== */

.md-typeset .ltr-docs pre,
.md-typeset .ltr-docs pre code,
.md-typeset .ltr-docs .highlight,
.md-typeset .ltr-docs .highlight pre,
.md-typeset .ltr-docs .highlight code,
.md-typeset .ltr-docs .highlight span {

  font-family: var(--font-code) !important;

  font-feature-settings: normal;
  font-variant-ligatures: none;

}


.md-typeset .ltr-docs .highlight {

  direction: ltr !important;
  text-align: left !important;

}


.md-typeset .ltr-docs code {

  font-family: var(--font-code) !important;

}


.md-sidebar .md-nav__link {

  line-height: 1.5;

}

/* Nested items spacing */

.md-sidebar .md-nav__item .md-nav__item {

  margin-top: 0.15rem;

}


/* H2 entries in the secondary table of contents. */

.md-sidebar--secondary .md-nav--secondary > .md-nav__list > .md-nav__item > .md-nav__link {

  font-weight: 700;

}

/* ======================================

   Active navigation item

====================================== */

.md-sidebar .md-nav__link--active {

  font-weight: 800 !important;

}

/* Active parent groups */

.md-sidebar .md-nav__item--active > .md-nav__link {

  font-weight: 800 !important;

}


/* ======================================
   Persian inline code and Mermaid labels
====================================== */

.md-typeset code.persian-inline-code,
.md-typeset .ltr-docs code.persian-inline-code {

  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: isolate;

  font-family: var(--font-fa) !important;
  letter-spacing: 0;

}


.md-typeset .mermaid,
.md-typeset .mermaid *,
.md-typeset .ltr-docs .mermaid,
.md-typeset .ltr-docs .mermaid * {

  font-family: var(--font-fa) !important;

}

/* Keep the diagram canvas LTR, but let every label resolve Persian/English
   direction from its own text. This also covers the fullscreen SVG clone. */
.md-typeset .mermaid :is(.nodeLabel, .edgeLabel, .cluster-label, .label),
.md-typeset .mermaid foreignObject :is(div, span, p),
.mermaid-zoom-dialog__canvas :is(.nodeLabel, .edgeLabel, .cluster-label, .label),
.mermaid-zoom-dialog__canvas foreignObject :is(div, span, p) {

  direction: rtl !important;
  text-align: center !important;
  unicode-bidi: plaintext;

}


/* ======================================
   Mermaid canvas and fullscreen viewer
====================================== */

.md-typeset .mermaid-shell {

  position: relative;
  width: 100%;
  margin: 1rem 0 1.5rem;

  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;

}


.md-typeset .mermaid-shell .mermaid {

  direction: ltr !important;
  text-align: left !important;

  margin: 0;
  padding: 1.25rem;
  overflow: auto;

  cursor: zoom-in;

}


.md-typeset .mermaid-shell .mermaid:focus-visible {

  outline: 3px solid #2dd4bf;
  outline-offset: -3px;

}


.md-typeset .mermaid-shell .mermaid svg {

  display: block;
  margin: 0 auto;

}


.mermaid-zoom-trigger,
.mermaid-zoom-dialog__control {

  display: inline-grid;
  place-items: center;

  width: 2.25rem;
  height: 2.25rem;
  padding: 0;

  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;

  font-family: var(--font-en) !important;
  font-size: 1.1rem;
  line-height: 1;

  cursor: pointer;

}


.mermaid-zoom-trigger {

  position: absolute;
  z-index: 2;
  top: .75rem;
  right: .75rem;

  box-shadow: 0 1px 3px rgb(15 23 42 / 16%);

}


.mermaid-zoom-trigger:hover,
.mermaid-zoom-dialog__control:hover {

  border-color: #2563eb;
  color: #1d4ed8;

}


.mermaid-zoom-trigger:focus-visible,
.mermaid-zoom-dialog__control:focus-visible {

  outline: 3px solid #2dd4bf;
  outline-offset: 2px;

}


.mermaid-zoom-dialog__control:disabled {

  opacity: .4;
  cursor: not-allowed;

}


body.mermaid-wide-layout .md-main__inner.md-grid {

  max-width: 100%;

}


body.mermaid-wide-layout .md-content {

  min-width: 0;

}


body.mermaid-wide-layout .md-content__inner {

  max-width: none;

}


body.mermaid-wide-layout .mermaid-wide-page .mermaid svg {

  width: 100% !important;
  min-width: 960px;
  max-width: none !important;
  height: auto !important;

}


.mermaid-zoom-dialog {

  width: calc(100vw - 2rem);
  height: calc(100dvh - 2rem);
  max-width: none;
  max-height: none;
  padding: 0;

  overflow: hidden;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  background: #f8fafc;

}


.mermaid-zoom-dialog::backdrop {

  background: rgb(15 23 42 / 72%);

}


.mermaid-zoom-dialog__panel {

  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;

}


.mermaid-zoom-dialog__toolbar {

  display: flex;
  direction: ltr;
  justify-content: flex-end;
  gap: .5rem;
  padding: .65rem;

  border-bottom: 1px solid #cbd5e1;
  background: #f8fafc;

}


.mermaid-zoom-dialog__close {

  margin-left: .5rem;

}


.mermaid-zoom-dialog__viewport {

  min-width: 0;
  min-height: 0;
  overflow: auto;

  background: #ffffff;

}


.mermaid-zoom-dialog__canvas {

  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 100%;
  min-height: 100%;
  padding: 1.5rem;

  direction: ltr;

}


.mermaid-zoom-dialog__canvas svg {

  display: block;
  flex: none;

  font-family: var(--font-fa) !important;

}


@media screen and (max-width: 44.984375em) {

  body.mermaid-wide-layout .mermaid-wide-page .mermaid svg {

    min-width: 640px;

  }

  .mermaid-zoom-dialog {

    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;

  }

  .mermaid-zoom-dialog__canvas {

    padding: .75rem;

  }

}


@media print {

  .mermaid-zoom-trigger,
  .mermaid-zoom-dialog {

    display: none !important;

  }

}


/* ======================================
   PDF fullscreen viewer
====================================== */

.md-typeset a.pdf-viewer-link::after {

  content: "↗";
  display: inline-block;
  margin-inline-start: .3em;

  color: var(--md-accent-fg-color);
  font-family: var(--font-en) !important;
  font-size: .85em;
  line-height: 1;

}


.pdf-viewer {

  width: calc(100vw - 1.5rem);
  height: calc(100dvh - 1.5rem);
  max-width: none;
  max-height: none;
  padding: 0;

  overflow: hidden;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  background: #f8fafc;

}


.pdf-viewer::backdrop {

  background: rgb(15 23 42 / 72%);

}


.pdf-viewer__panel {

  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;

}


.pdf-viewer__toolbar {

  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: .6rem .75rem;

  border-bottom: 1px solid #cbd5e1;
  background: #f8fafc;

  font-family: var(--font-fa);

}


.pdf-viewer__title {

  min-width: 0;
  overflow: hidden;

  color: #0f172a;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;

}


.pdf-viewer__actions {

  display: flex;
  direction: ltr;
  flex: none;
  gap: .5rem;

}


.pdf-viewer__control {

  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;

  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;

  font-family: var(--font-en) !important;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;

}


.pdf-viewer__control:hover {

  border-color: #2563eb;
  color: #1d4ed8;

}


.pdf-viewer__control:focus-visible {

  outline: 3px solid #2dd4bf;
  outline-offset: 2px;

}


.pdf-viewer__body {

  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;

  background: #e2e8f0;

}


.pdf-viewer__loading {

  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  color: #334155;
  font-family: var(--font-fa);

}


.pdf-viewer__frame {

  position: relative;
  z-index: 1;

  display: block;
  width: 100%;
  height: 100%;

  border: 0;
  background: #ffffff;

}


.pdf-viewer--loaded .pdf-viewer__loading {

  display: none;

}


@media screen and (max-width: 44.984375em) {

  .pdf-viewer {

    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;

  }

  .pdf-viewer__toolbar {

    gap: .5rem;
    min-height: 3.25rem;
    padding: .5rem;

  }

  .pdf-viewer__title {

    font-size: .75rem;

  }

}


@media print {

  .pdf-viewer {

    display: none !important;

  }

}


/* Code fences containing Persian use Vazirmatn for Persian glyphs. */

.md-typeset code.persian-code-block,
.md-typeset code.persian-code-block *,
.md-typeset .ltr-docs code.persian-code-block,
.md-typeset .ltr-docs code.persian-code-block * {

  font-family: var(--font-persian-code) !important;
  letter-spacing: 0;

}


/* Plain-text fences that are mostly Persian read as normal RTL prose. */

.md-typeset .persian-text-block pre,
.md-typeset .persian-text-block pre code,
.md-typeset .persian-text-block pre code *,
.md-typeset .ltr-docs .persian-text-block pre,
.md-typeset .ltr-docs .persian-text-block pre code,
.md-typeset .ltr-docs .persian-text-block pre code * {

  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext;

  font-family: var(--font-fa) !important;
  letter-spacing: 0;
  line-height: 2;

}


/* Markdown and YAML fences keep Latin code monospace with Persian fallback. */

.md-typeset .language-md pre code,
.md-typeset .language-md pre code *,
.md-typeset .language-markdown pre code,
.md-typeset .language-markdown pre code *,
.md-typeset .ltr-docs .language-md pre code,
.md-typeset .ltr-docs .language-md pre code *,
.md-typeset .ltr-docs .language-markdown pre code,
.md-typeset .ltr-docs .language-markdown pre code *,
.md-typeset .language-yaml pre code,
.md-typeset .language-yaml pre code *,
.md-typeset .language-yml pre code,
.md-typeset .language-yml pre code *,
.md-typeset .ltr-docs .language-yaml pre code,
.md-typeset .ltr-docs .language-yaml pre code *,
.md-typeset .ltr-docs .language-yml pre code,
.md-typeset .ltr-docs .language-yml pre code * {

  font-family: var(--font-persian-code) !important;

}


/* ======================================
   Page comments
====================================== */

.remark42-comments {

  margin-top: 3.5rem;
  padding-top: 1.5rem;

  border-top: 1px solid var(--md-default-fg-color--lightest);

}


.remark42-comments > h2 {

  margin-top: 0;
  margin-bottom: .35rem;

  font-family: var(--font-fa);

}


.remark42-comments__intro,
.remark42-comments__status {

  color: var(--md-default-fg-color--light);
  font-family: var(--font-fa);

}


.remark42-comments__intro {

  margin-top: 0;
  margin-bottom: 1.25rem;

}


.remark42-comments__status {

  padding: 1rem;

  border: 1px dashed var(--md-default-fg-color--lightest);
  border-radius: 6px;
  text-align: center;

}


.remark42-comments__status--error {

  border-color: #dc2626;
  color: #b91c1c;

}


#remark42 {

  min-height: 7rem;

}


#remark42 iframe {

  display: block;
  width: 100% !important;

}


@media print {

  .remark42-comments {

    display: none !important;

  }

}


/* ======================================
   Latest comments activity feed
====================================== */

.md-header__comments {

  position: relative;

}


.md-header__comments--active {

  color: var(--sme-secondary);

}


.md-header__comments--active::after {

  position: absolute;
  inset-inline-end: .3rem;
  inset-block-end: .3rem;

  width: .35rem;
  height: .35rem;

  border: 2px solid var(--md-primary-fg-color);
  border-radius: 50%;
  background: var(--sme-secondary);

  content: "";

}


.latest-comments {

  --latest-comments-border: var(--md-default-fg-color--lightest);

  width: 100%;
  min-height: 18rem;
  scroll-margin-top: 5rem;

}


.latest-comments__toolbar {

  display: flex;
  align-items: center;
  min-height: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;

  border-bottom: 1px solid var(--latest-comments-border);

}


.latest-comments__summary {

  margin: 0 !important;

  color: var(--md-default-fg-color--light);
  font-size: .75rem;
  font-weight: 600;

}


.latest-comments__status {

  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 11rem;
  padding: 1.25rem;

  border: 1px dashed var(--latest-comments-border);
  border-radius: 8px;
  color: var(--md-default-fg-color--light);
  text-align: center;

}


.latest-comments__status[hidden] {

  display: none;

}


.latest-comments__spinner {

  width: 1.15rem;
  height: 1.15rem;
  flex: none;

  border: 2px solid var(--latest-comments-border);
  border-top-color: var(--sme-secondary);
  border-radius: 50%;

  animation: latest-comments-spin .8s linear infinite;

}


@keyframes latest-comments-spin {

  to {

    transform: rotate(1turn);

  }

}


.latest-comments__retry {

  min-height: 2.15rem;
  padding: .35rem .75rem;

  border: 1px solid var(--md-accent-fg-color);
  border-radius: 6px;
  background: transparent;
  color: var(--md-accent-fg-color);

  font-family: var(--font-fa);
  font-weight: 700;

  cursor: pointer;

}


.latest-comments__list {

  display: grid;
  gap: .85rem;

}


.latest-comment {

  overflow: hidden;

  border: 1px solid var(--latest-comments-border);
  border-radius: 8px;
  background: var(--md-default-bg-color);

  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);

}


.latest-comment__header {

  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.4rem;
  padding: .7rem .85rem;

  border-bottom: 1px solid var(--latest-comments-border);
  background: color-mix(in srgb, var(--md-default-fg-color) 3%, transparent);

}


.latest-comment__avatar {

  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  overflow: hidden;

  border: 1px solid color-mix(in srgb, var(--sme-secondary) 55%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--sme-secondary) 14%, var(--md-default-bg-color));
  color: var(--md-default-fg-color);

  font-family: var(--font-en);
  font-size: .65rem;
  font-weight: 800;

}


.latest-comment__avatar img {

  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

}


.latest-comment__identity {

  display: grid;
  min-width: 0;
  gap: .05rem;

}


.latest-comment__author {

  overflow: hidden;

  color: var(--md-default-fg-color);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;

}


.latest-comment__time {

  color: var(--md-default-fg-color--light);
  font-size: .65rem;

}


.latest-comment__reply {

  margin-inline-start: auto;
  padding: .12rem .45rem;

  border: 1px solid color-mix(in srgb, var(--sme-secondary) 55%, transparent);
  border-radius: 999px;
  color: var(--md-default-fg-color--light);

  font-size: .62rem;
  font-weight: 700;

}


.latest-comment__body {

  padding: .85rem;

  color: var(--md-default-fg-color);
  direction: rtl;
  text-align: right;

}


.latest-comment__body > :first-child {

  margin-top: 0;

}


.latest-comment__body > :last-child {

  margin-bottom: 0;

}


.latest-comment__body h1,
.latest-comment__body h2,
.latest-comment__body h3,
.latest-comment__body h4,
.latest-comment__body h5,
.latest-comment__body h6 {

  margin: .8rem 0 .35rem;

  font-size: .88rem;
  letter-spacing: 0;

}


.latest-comment__body pre,
.latest-comment__body code {

  direction: ltr;
  text-align: left;

}


.latest-comment__body img {

  display: block;
  max-width: 100%;
  max-height: 24rem;
  margin: .75rem auto;
  object-fit: contain;

  border-radius: 6px;

}


.latest-comment__footer {

  display: flex;
  justify-content: flex-start;
  padding: .55rem .85rem;

  border-top: 1px solid var(--latest-comments-border);

}


.latest-comment__page-link {

  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: .4rem;

  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;

}


.latest-comment__page-link::after {

  flex: none;

  font-family: var(--font-en);
  content: "←";

}


.latest-comments__pagination {

  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 3rem;
  margin-top: 1.25rem;

}


.latest-comments__pagination[hidden] {

  display: none;

}


.latest-comments__page-control,
.latest-comments__page-number {

  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;

  border: 1px solid var(--latest-comments-border);
  border-radius: 6px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);

  font-family: var(--font-fa);
  font-size: .72rem;
  line-height: 1;

  cursor: pointer;

}


.latest-comments__page-control {

  font-family: var(--font-en);
  font-size: 1.35rem;

}


.latest-comments__page-control:hover,
.latest-comments__page-number:hover {

  border-color: var(--md-accent-fg-color);
  color: var(--md-accent-fg-color);

}


.latest-comments__page-control:focus-visible,
.latest-comments__page-number:focus-visible,
.latest-comments__retry:focus-visible {

  outline: 3px solid color-mix(in srgb, var(--sme-secondary) 65%, transparent);
  outline-offset: 2px;

}


.latest-comments__page-control:disabled {

  opacity: .35;
  cursor: not-allowed;

}


.latest-comments__page-number--active {

  border-color: var(--md-primary-fg-color);
  background: var(--md-primary-fg-color);
  color: #ffffff;
  font-weight: 800;

}


.latest-comments__page-ellipsis {

  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 2.2rem;

  color: var(--md-default-fg-color--light);

}


@media screen and (max-width: 44.984375em) {

  .latest-comment__header,
  .latest-comment__body,
  .latest-comment__footer {

    padding-inline: .65rem;

  }

  .latest-comments__pagination {

    gap: .2rem;

  }

  .latest-comments__page-control,
  .latest-comments__page-number {

    width: 2rem;
    height: 2rem;

  }

  .latest-comments__page-ellipsis {

    width: .75rem;

  }

}


@media (prefers-reduced-motion: reduce) {

  .latest-comments__spinner {

    animation-duration: 1.6s;

  }

}


@media print {

  .md-header__comments,
  .latest-comments__pagination {

    display: none !important;

  }

}
