/* Shared presentation rules used by live decks, Play preview, and editors. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap");

.sl-rich-text {
  font-family: inherit;
}

:where(
  html:lang(ar),
  html:lang(hi),
  html:lang(ur),
  html:lang(fa),
  [data-slide-lang-root]:lang(ar),
  [data-slide-lang-root]:lang(hi),
  [data-slide-lang-root]:lang(ur),
  [data-slide-lang-root]:lang(fa)
) {
  font-family: "Noto Sans Arabic", "Inter Tight", "Inter", system-ui, sans-serif;
}

:where(
  html:lang(ar),
  html:lang(hi),
  html:lang(ur),
  html:lang(fa),
  [data-slide-lang-root]:lang(ar),
  [data-slide-lang-root]:lang(hi),
  [data-slide-lang-root]:lang(ur),
  [data-slide-lang-root]:lang(fa)
) .sl-rich-text {
  font-family: "Noto Sans Arabic", "Inter Tight", "Inter", system-ui, sans-serif;
}

:where(
  html[dir="rtl"],
  [data-slide-lang-root][dir="rtl"]
) {
  direction: rtl;
}

:where(html[dir="rtl"], [data-slide-lang-root][dir="rtl"]) .sl-opinions,
:where(html[dir="rtl"], [data-slide-lang-root][dir="rtl"]) .sl-feedback.sl-score {
  direction: ltr;
}

:where(html[dir="rtl"], [data-slide-lang-root][dir="rtl"]) .sl-feedback.sl-score .sl-counting {
  direction: rtl;
}

.sl-welcome-supporting-text,
.sl-welcome-supporting-text * {
  color: #333;
}

.sl-preview-field-ref {
  display: inline-block;
  padding: 0.05em 0.35em;
  border: 1px solid rgba(112, 89, 231, 0.3);
  border-radius: 0.35em;
  color: #5941cf;
  background: rgba(112, 89, 231, 0.08);
  font: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.sl-title .sl-title-unbold {
  font-style: normal !important;
  font-weight: 400 !important;
}

.sl-title .sl-title-unbold strong,
.sl-title .sl-title-unbold b {
  font-weight: 400 !important;
}

.deck-language-selector {
  position: absolute;
  top: 0;
  right: 24px;
  z-index: 30;
  color: rgba(0, 0, 0, 0.65);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.deck-language-selector > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 23px 0 6px;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  list-style: none;
  line-height: 1;
  white-space: nowrap;
}

.deck-language-selector > summary::-webkit-details-marker {
  display: none;
}

.deck-language-selector > summary:hover .deck-language-selector__current {
  color: #7059e7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.deck-language-selector[open] > summary .deck-language-selector__current {
  color: #7059e7;
}

.deck-language-selector > summary:focus-visible {
  outline: 2px solid #7059e7;
  outline-offset: 2px;
}

.deck-language-selector__current {
  color: inherit;
  font-weight: 500;
  transition: color 180ms ease-out;
}

.deck-language-selector > summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease-out;
}

.deck-language-selector[open] > summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.deck-language-selector > nav {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-height: calc(100svh - 96px);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 30, 30, 0.14);
}

.deck-language-selector__link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 7px;
  color: rgba(0, 0, 0, 0.7);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.deck-language-selector__link:hover,
.deck-language-selector__link:focus-visible,
.deck-language-selector__link.is-active {
  color: #000000;
  background: #f1efff;
}

.deck-language-selector__link:focus-visible {
  outline: 2px solid #7059e7;
  outline-offset: -2px;
}

.deck-language-selector__link.is-active::after {
  content: "\2713";
  margin-inline-start: auto;
  padding-inline-start: 16px;
  color: #7059e7;
  font-weight: 700;
}

@media (max-width: 768px) {
  .deck-language-selector {
    right: 16px;
  }
}

@media (min-width: 768px) {
  .deck-language-selector {
    right: 24px;
    font-size: 16px;
  }

  .deck-language-selector > summary {
    min-height: 48px;
    padding: 0 26px 0 8px;
  }

  .deck-language-selector > summary::after {
    right: 8px;
    width: 8px;
    height: 8px;
    border-width: 0 1.75px 1.75px 0;
  }

  .deck-language-selector > nav {
    top: 48px;
    min-width: 220px;
    padding: 8px;
    border-radius: 14px;
  }

  .deck-language-selector__link {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .deck-language-selector {
    font-size: 18px;
  }

  .deck-language-selector > summary {
    min-height: 52px;
    padding: 0 29px 0 9px;
  }

  .deck-language-selector > summary::after {
    right: 9px;
    width: 9px;
    height: 9px;
    border-width: 0 2px 2px 0;
  }

  .deck-language-selector > nav {
    top: 52px;
    min-width: 240px;
  }

  .deck-language-selector__link {
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck-language-selector__current,
  .deck-language-selector > summary::after {
    transition: none;
  }
}

/* Image orientation is derived during rendering when dimensions are available;
   legacy images are classified on load using the same orientation classes. */
@media (min-width: 600px) {
  .sl-statement:has(.sl-attachment--portrait) .sl-attachment-info {
    flex: 3;
  }

  .sl-statement:has(.sl-attachment--portrait) .sl-attachment {
    flex: 2;
  }

  html[data-display-mode="fullscreen"] .sl-statement:has(.sl-attachment--portrait) .sl-attachment-info,
  html[data-display-mode="fullscreen"] .sl-statement:has(.sl-attachment--portrait) .sl-attachment {
    flex: 1;
  }

  .sl-attachment-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
  }
}

@media (max-width: 599px) {
  .sl-attachment > figure {
    width: 100%;
    height: auto;
  }

  .sl-attachment-image {
    height: auto;
    max-height: 280px;
  }

  .sl-attachment--portrait .sl-attachment-image {
    width: auto;
    object-fit: contain;
  }

  .sl-attachment--landscape .sl-attachment-image,
  .sl-attachment--square .sl-attachment-image {
    width: 100%;
    object-fit: cover;
  }
}
