
.md-sq-slide-card {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--md-sq-slide-radius);
  box-shadow: var(--md-sq-soft-shadow);
  background: color-mix(in srgb, var(--bs-body-bg) 88%, transparent);
  overflow: hidden;
}

.md-sq-slide-inner {
  min-height: clamp(24rem, 62vh, 42rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.md-sq-category-pill {
  width: fit-content;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .78rem;
}

.md-sq-question-text {
  font-size: clamp(2rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  max-width: 1100px;
}

.md-sq-answer-box {
  max-width: 920px;
  border-radius: 1.25rem;
  background: rgba(var(--bs-primary-rgb), .09);
  border: 1px solid rgba(var(--bs-primary-rgb), .22);
  padding: 1.25rem 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.md-sq-answer-box[hidden] {
  display: none !important;
}

.md-sq-hint-kbd {
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: .5rem .85rem;
  background: color-mix(in srgb, var(--bs-body-bg) 85%, var(--bs-secondary-bg));
}

.md-sq-pagination-wrap {
  border: 1px solid var(--md-sq-pagination-border);
  border-radius: 999px;
  padding: .45rem;
  background: var(--md-sq-pagination-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .08);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.md-sq-page-btn,
.md-sq-page-ellipsis {
  min-width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.md-sq-page-btn {
  border: 0;
  color: var(--bs-body-color);
  background: transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.md-sq-page-btn:hover,
.md-sq-page-btn:focus-visible {
  background: var(--bs-tertiary-bg);
  transform: translateY(-1px);
}

.md-sq-page-btn.active {
  color: #fff;
  background: var(--bs-primary);
  box-shadow: 0 .5rem 1.2rem rgba(var(--bs-primary-rgb), .34);
}

.md-sq-page-ellipsis {
  color: var(--bs-secondary-color);
  user-select: none;
}

.md-sq-nav-pill-btn {
  border-radius: 999px;
  font-weight: 700;
}

.progress {
  height: .55rem;
  border-radius: 999px;
}

@media (max-width: 575.98px) {
  .md-sq-slide-inner {
    min-height: 68vh;
  }

  .md-sq-page-btn,
  .md-sq-page-ellipsis {
    min-width: 2.25rem;
    height: 2.25rem;
    font-size: .9rem;
  }

  .md-sq-pagination-wrap {
    border-radius: 1.25rem;
  }
}