/* Solstice Showcase v0.14: responsive corrections only.
   Keep the typography.css submitted by the project owner unchanged. */
@media (max-width: 900px) {
  :root { --section-gap: clamp(42px, 6.5vw, 70px); }

  /* Desktop parallax creates a gap between the CTA and the hero screenshot on phones. */
  .hero {
    min-height: 0;
    padding: calc(var(--header-h) + 58px) 0 58px;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center 72%;
    transform: none !important;
    opacity: 1 !important;
  }
  .hero-copy {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    transform: none !important;
    opacity: 1 !important;
  }
  .hero-product-shell {
    position: relative;
    z-index: 4;
    top: auto;
    left: auto;
    width: calc(100% - 32px);
    margin: 30px auto 0;
    transform: none !important;
  }
  .hero-copy h1 { font-size: clamp(2.5rem, 8.9vw, 4.8rem); line-height: 1.04; }
  .hero-copy .text-link { margin-top: 16px; }
  .product-reveal {
    padding-top: 52px;
    padding-bottom: 58px;
  }
  .reveal-heading { margin-bottom: 26px; }
  .reveal-heading h2 { font-size: clamp(2.4rem, 7vw, 3.8rem); }

  /* Mobile moderation is a stacked document, not a pinned desktop animation. */
  .story-moderation { min-height: 0; padding: 60px 0 56px; }
  .moderation-heading { padding-bottom: 28px; text-align: left; }
  #moderation-title {
    max-width: 100%;
    font-size: clamp(2.45rem, 7.3vw, 3.5rem);
    line-height: 1.09;
    letter-spacing: -.055em;
    overflow-wrap: break-word;
  }
  .moderation-pin { min-height: 0 !important; }
  .moderation-stage {
    position: static;
    height: auto;
    min-height: 0;
    display: grid;
    align-items: stretch;
    gap: 42px;
    margin: 0 auto;
  }
  .moderation-stage .moderation-card,
  .moderation-stage .moderation-card.is-current,
  .moderation-stage .moderation-card.is-past {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
    transition: none;
  }
  .moderation-stage .moderation-card .product-window {
    order: 1;
    width: 100%;
    flex: 0 0 auto;
    overflow: hidden;
  }
  .moderation-stage .moderation-card .moderation-caption {
    order: 2;
    width: 100%;
    grid-row: auto;
  }
  .moderation-caption h3 { font-size: clamp(1.4rem, 4.8vw, 1.95rem); }
  .moderation-followup { margin-top: 54px; gap: 24px; }

  /* A percentage basis in a max-content track can produce enormous slides. */
  .moderation-escalation { width: 100%; min-width: 0; }
  .moderation-escalation-viewport { width: 100%; max-width: 100%; overflow: hidden; }
  .moderation-escalation-track {
    align-items: flex-start;
    width: max-content;
    max-width: none;
    gap: 14px;
  }
  .moderation-escalation-slide,
  .moderation-escalation-slide.is-active,
  .moderation-escalation-slide.is-next {
    width: calc(100vw - 32px);
    flex: 0 0 calc(100vw - 32px);
    min-width: 0;
  }
  .moderation-mini-window,
  .moderation-mini-window img {
    display: block;
    width: 100%;
    height: auto;
  }
  .moderation-mini-window img { aspect-ratio: 740/730; object-fit: contain; }
  .moderation-escalation-controls { margin-top: 10px; }

  /* One column: the messaging and profile sections should read consecutively. */
  .messaging-section,
  .profile-section { padding: 56px 0; }
  .messaging-sticky { padding: 0; }
  .messaging-layout { gap: 25px; }
  .messaging-viewport { padding: 0; }
  .messaging-track { gap: 20px; }
  .profile-grid { gap: 26px; }
  .admin-section { padding-top: 58px; padding-bottom: 58px; }
  .admin-window { margin-top: 32px; }
  .admin-secondary,
  .admin-users,
  .admin-customization { margin-top: 36px; }

  /* Closing sections should adapt to their content, not fill full screens. */
  .skins-section { padding-top: 64px; padding-bottom: 48px; }
  .skins-gallery-heading { margin-bottom: 28px; }
  .skins-gallery-controls { min-height: 0; padding-bottom: 0; }
  .manifesto-section {
    min-height: 0;
    padding: 64px 0 66px;
    align-items: flex-start;
  }
  .manifesto-copy h2 { font-size: clamp(2.6rem, 9vw, 4.8rem); line-height: 1.12; margin-bottom: 22px; }
  .manifesto-orbit { max-height: 75%; }
  .security-section { padding-top: 58px; padding-bottom: 70px; }
  .security-grid { gap: 30px; }
}

@media (max-width: 620px) {
  .hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 48px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 10.5vw, 3.2rem); overflow-wrap: break-word; }
  .hero-product-shell { margin-top: 24px; }
  #moderation-title { font-size: clamp(2.35rem, 9vw, 2.9rem); }
  .moderation-heading > p:last-child { font-size: .95rem; }
  .story-sticky { padding-top: 50px; padding-bottom: 50px; }
  #features .story-step h2 { font-size: clamp(2.3rem, 9.6vw, 3.1rem); }
  .moderation-escalation-controls { justify-content: space-between; }
  .messaging-section,
  .profile-section { padding-block: 44px; }
  .feature-section { padding-block: 48px; }
  .skins-section { padding-block: 50px 38px; }
  .skins-gallery-controls { min-height: 0; display: grid; gap: 8px; }
  .skins-gallery-arrows { margin-top: 8px; }
  .manifesto-section { padding-block: 66px 54px; }
  .manifesto-copy h2 { font-size: clamp(2.55rem, 10.8vw, 3.3rem); }
  .security-section { padding-block: 46px 58px; }
  .admin-section { padding-block: 50px; }
}

/* An optional tap-to-enlarge control for the original desktop capture. */
.mobile-image-zoomable { position: relative; }
.mobile-image-zoom-button { display: none; }
@media (max-width: 900px) {
  .mobile-image-zoomable > img,
  .mobile-image-zoomable picture { cursor: zoom-in; }
  .mobile-image-zoomable .mobile-image-zoom-button {
    position: absolute;
    z-index: 8;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid rgba(255,184,77,.65);
    border-radius: 999px;
    color: #f2f2f0;
    background: rgba(7,12,18,.93);
    font-size: .78rem;
    font-weight: 650;
    cursor: zoom-in;
  }
}
.showcase-lightbox {
  width: min(96vw, 1200px);
  max-width: none;
  height: min(94dvh, 960px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  color: #f2f2f0;
  background: #080d15;
  box-shadow: 0 32px 90px rgba(0,0,0,.75);
}
.showcase-lightbox::backdrop { background: rgba(0,0,0,.88); }
.showcase-lightbox[open] { display: flex; flex-direction: column; }
.showcase-lightbox-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #f2f2f0;
  background: #111925;
  font-size: .88rem;
}
.showcase-lightbox-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: #f2f2f0;
  background: rgba(255,255,255,.06);
}
.showcase-lightbox-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill:none; }
.showcase-lightbox-scroller { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.showcase-lightbox-scroller img { display: block; width: max(900px, 100%); max-width: none; height: auto; }
.showcase-lightbox-hint { padding: 8px 14px; margin: 0; background: #111925; font-size: .74rem; }

@media (max-width: 767px) {
  .moderation-escalation-stack {
    padding-top: 0;
  }

  .moderation-escalation-hotspots,
  .moderation-escalation-tooltip {
    display: none;
  }

  .moderation-escalation-mobile-list {
    display: grid;
    gap: 12px;
  }
}
