/* Shared Sid's Trials examples modal — used on homeschool-interest + landing-lab (and any page with egg-xplore-examples.js). */

body.landing.landing--slim .hs-xplore-examples-modal.hs-xplore-examples-modal--dialog,
body.page-parents-new .hs-xplore-examples-modal.hs-xplore-examples-modal--dialog,
body.page-learn-homeschool-interest .hs-xplore-examples-modal.hs-xplore-examples-modal--dialog,
body.page-landing-lab .hs-xplore-examples-modal.hs-xplore-examples-modal--dialog,
body.page-learn-parents-how-it-works .hs-xplore-examples-modal.hs-xplore-examples-modal--dialog,
body.page-course-starter .hs-xplore-examples-modal.hs-xplore-examples-modal--dialog,
.hs-xplore-examples-modal.hs-xplore-examples-modal--dialog {
  position: fixed;
  inset: 0;
  z-index: 12190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  margin: 0;
  border: none;
  background: transparent;
  overscroll-behavior: contain;
}

.hs-xplore-examples-modal--dialog[hidden] {
  display: none !important;
}

.hs-xplore-examples-modal--dialog:not([hidden]) {
  display: flex;
}

.hs-xplore-examples-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(30, 22, 51, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.hs-xplore-examples-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(96vw, 980px);
  max-height: min(92vh, 900px);
  margin: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

body.hs-xplore-examples-modal-open {
  overflow: hidden;
}

.hs-xplore-examples-btn,
.parents-xplore-challenge-example__examples-btn {
  white-space: nowrap;
}

.hs-xplore-examples-modal__skills {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.hs-xplore-examples-modal__intro {
  display: grid;
  grid-template-columns: minmax(9.5rem, 12.5rem) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  margin: 0 0 1.25rem;
  padding: clamp(0.95rem, 2vw, 1.1rem);
  border: 1px solid rgba(91, 33, 182, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(250, 248, 255, 0.96) 0%, rgba(243, 237, 255, 0.72) 100%);
}

.hs-xplore-examples-modal__intro[hidden] {
  display: none !important;
}

.hs-xplore-examples-modal__app-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b21b6;
}

.hs-xplore-examples-modal__app-link {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
}

.hs-xplore-examples-modal__app-logo {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(91, 33, 182, 0.08);
}

.hs-xplore-examples-modal__app-logo img {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.hs-xplore-examples-modal__app-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #2e1065;
}

.hs-xplore-examples-modal__app[hidden] {
  display: none !important;
}

.hs-xplore-examples-modal .hs-xplore-example-card {
  position: relative;
  isolation: isolate;
}

.hs-xplore-examples-modal .eg-community-card__media,
.hs-xplore-examples-modal .eg-community-card__media--inline,
.hs-xplore-examples-modal .eg-community-card__media--audio,
.hs-xplore-examples-modal .eg-community-card__media--video {
  position: relative;
  overflow: hidden;
}

.hs-xplore-examples-modal .eg-community-card__media-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.hs-xplore-examples-modal .eg-community-card__media-badge:hover {
  background: rgba(17, 24, 39, 0.88);
}

.hs-xplore-examples-modal__head {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .hs-xplore-examples-modal__intro {
    grid-template-columns: 1fr;
  }
}

.hs-xplore-examples-modal__skills-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b21b6;
}

.hs-xplore-examples-modal__skills-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hs-xplore-examples-modal__skills-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1f2937;
}

.hs-xplore-examples-modal__skills-list li::before {
  content: "✅";
  font-size: 1.15rem;
  line-height: 1.2;
}

.hs-xplore-examples-modal__skills[hidden] {
  display: none !important;
}

.hs-xplore-examples-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(91, 33, 182, 0.12);
}

.hs-xplore-examples-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #2e1065;
}

.hs-xplore-examples-modal__lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #6b7280;
  max-width: 42rem;
}

.hs-xplore-examples-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(91, 33, 182, 0.08);
  color: #4c1d95;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.hs-xplore-examples-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.1rem 1.25rem;
}

.hs-xplore-examples-modal__status {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: #6b7280;
}

.hs-xplore-examples-week {
  margin: 0 0 1.75rem;
}

.hs-xplore-examples-week__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.85rem;
}

.hs-xplore-examples-week__grid.eg-community__grid {
  margin: 0;
}

.hs-xplore-examples-modal__end {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #6b7280;
  text-align: center;
}

.hs-xplore-examples-modal__end[hidden] {
  display: none !important;
}

.hs-xplore-examples-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12200;
}

.hs-xplore-examples-week__empty {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.hs-xplore-example {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(91, 33, 182, 0.14);
  border-radius: 12px;
  background: #faf8ff;
}

.hs-xplore-example__head {
  margin: 0;
}

.hs-xplore-example__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #2e1065;
}

.hs-xplore-example__description {
  font-size: 0.86rem;
  line-height: 1.4;
  color: #374151;
}

.hs-xplore-example__media {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.hs-xplore-example__image {
  display: block;
  width: 100%;
  height: auto;
}

.hs-xplore-example__media--pixel-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.hs-xplore-example__media--pixel-art .hs-xplore-example__image {
  width: auto;
  max-width: none;
}

.hs-xplore-example__stream,
.hs-xplore-example__video {
  display: block;
  width: 100%;
  min-height: 10rem;
  border: none;
  background: #0f172a;
}

.hs-xplore-example__html {
  padding: 0.85rem;
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.08), rgba(236, 72, 153, 0.06));
}

.hs-xplore-example__html-label {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b21b6;
}

.hs-xplore-example__html-open {
  width: 100%;
  text-align: center;
}

.hs-xplore-example__html-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: #6b7280;
}

.hs-xplore-examples-modal__loader {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0 1rem;
}

.hs-xplore-examples-modal__loader-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #7c3aed;
  animation: hs-xplore-loader-bounce 0.9s ease-in-out infinite;
}

.hs-xplore-examples-modal__loader-dot:nth-child(2) {
  animation-delay: 0.12s;
}

.hs-xplore-examples-modal__loader-dot:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes hs-xplore-loader-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.hs-xplore-examples-modal[hidden] {
  display: none !important;
}

body.page-learn-homeschool-interest .hs-xplore-examples-btn,
body.page-landing-lab .parents-xplore-challenge-example__examples-btn,
body.page-learn-parents-how-it-works .parents-xplore-challenge-example__examples-btn {
  font-size: 0.86rem;
  padding: 0.45rem 0.75rem;
}

body.page-course-starter .parents-xplore-challenge-example__examples-btn {
  font-size: 0.86rem;
  padding: 0.45rem 0.75rem;
}

@media (max-width: 640px) {
  .hs-xplore-examples-modal__panel {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
}
