/* Explore StudyTickApp: contained feature discovery, never a replacement navigation bar. */
.st-explore-lobby-action{grid-column:1/-1;width:100%;max-width:1200px;display:flex;align-items:center;justify-content:flex-end;margin:8px auto 0}
.st-explore-open,.st-explore-feature-link,.st-explore-room-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;min-height:42px;border:1px solid var(--sc-accent-strong,#36806b);background:var(--sc-accent-soft,#e8f4ed);color:var(--sc-link,#16634d);border-radius:12px;padding:9px 15px;font-weight:650;font-size:.91rem;text-decoration:none;white-space:nowrap}
.st-explore-open{min-height:34px;padding:6px 12px;font-size:.82rem;font-weight:600;background:transparent;border-color:var(--sc-border,#cddcd3);border-radius:9px}
.st-explore-open:hover,.st-explore-feature-link:hover,.st-explore-room-trigger:hover{filter:brightness(.96)}
.st-explore-open:focus-visible,.st-explore-room-trigger:focus-visible,.st-explore-feature-link:focus-visible,.st-explore-close:focus-visible,.st-explore-search:focus-visible{outline:3px solid var(--sc-accent-strong,#2f8164);outline-offset:3px}
.st-explore-icon{font-family:system-ui,sans-serif;display:grid;place-items:center;border-radius:10px;background:var(--sc-accent-soft,#e6f3ed);color:var(--sc-link,#20654f);width:40px;height:40px;flex:none;font-size:1.2rem}
.st-explore-room-trigger-row{display:flex;justify-content:flex-end;margin-top:9px;margin-bottom:10px}
.st-explore-room-trigger{background:transparent;border-color:var(--sc-border,#cddcd3)}
.st-explore-post{border:1px solid var(--sc-border,#d6e4de);border-radius:11px;padding:10px 14px;margin:12px 0;background:var(--sc-subtle,#f8faf9);font-size:.91rem}
.st-explore-post a{color:var(--sc-link,#226f54);background:transparent;border:0;text-decoration:underline;cursor:pointer;font-weight:650}
.st-explore-dialog{width:min(840px,calc(100vw - 24px));max-width:840px;max-height:min(86dvh,850px);margin:auto;padding:0;border:1px solid var(--sc-border,#d6e4de);border-radius:20px;background:var(--sc-card-bg,#fff);color:var(--sc-text,#24332d);box-shadow:0 18px 60px #0003;overflow:hidden}
.st-explore-dialog::backdrop{background:rgba(17,35,29,.52)}
.st-explore-dialog-inner{display:flex;flex-direction:column;max-height:min(86dvh,850px)}
.st-explore-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 23px 10px}
.st-explore-dialog-head h2{font-family:"Playfair Display",Georgia,serif;font-size:clamp(1.35rem,3vw,1.7rem);margin:0 0 6px}
.st-explore-dialog-head p{color:var(--sc-muted,#64726c);margin:0;font-size:.92rem;line-height:1.5}
.st-explore-close{flex:none;display:grid;place-items:center;font-size:24px;line-height:1;width:40px;height:40px;border-radius:12px;border:1px solid var(--sc-border,#d6e4de);background:transparent;color:inherit;cursor:pointer}
.st-explore-search-wrap{padding:12px 23px 14px}
.st-explore-search{box-sizing:border-box;width:100%;min-height:46px;border-radius:12px;border:1px solid var(--sc-border,#b9c9c0);padding:11px 15px;font:inherit;color:inherit;background:var(--sc-subtle,#fafcfb)}
.st-explore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow-y:auto;overscroll-behavior:contain;padding:2px 23px 24px}
.st-explore-feature{min-width:0;display:flex;gap:12px;align-items:flex-start;min-height:112px;padding:15px;border-radius:13px;border:1px solid var(--sc-border,#d9e3dd);background:var(--sc-subtle,#fbfcfb)}
.st-explore-feature-body{flex:1;min-width:0}
.st-explore-feature h3{font-size:1rem;margin:0 0 4px}
.st-explore-feature p{font-size:.86rem;color:var(--sc-muted,#65746d);line-height:1.42;margin:0 0 10px}
.st-explore-feature-link{font-size:.79rem;min-height:32px;padding:6px 12px}
.st-explore-note{font-size:.74rem;color:var(--sc-muted,#65746d);display:inline-block;margin-inline-start:9px}
.st-explore-empty{grid-column:1/-1;padding:24px;text-align:center;color:var(--sc-muted,#65746d)}
.st-explore-dialog[open]{display:block}
html[dir="rtl"] .st-explore-dialog{text-align:start}
@media(max-width:630px){.st-explore-lobby-action{margin-top:6px}.st-explore-dialog{width:100%;max-width:none;max-height:88dvh;border-radius:18px 18px 0 0;margin:auto 0 0}.st-explore-dialog-inner{max-height:88dvh}.st-explore-grid{grid-template-columns:1fr;padding:2px 15px 20px}.st-explore-dialog-head{padding:18px 15px 8px}.st-explore-search-wrap{padding:9px 15px 13px}.st-explore-feature{min-height:0}}
@media(prefers-reduced-motion:reduce){.st-explore-lobby-action *, .st-explore-dialog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
body.low-stimulation .st-explore-dialog{box-shadow:none!important;background:var(--sc-card-bg,#fff)}

/* Keep the Group Timer itself distraction-free on phones and tablets.
   Older cached builds injected a second global navigation rail/sidebar,
   and the former Explore preview used three redundant feature tiles. */
.group-timer-page :is(#stGroupNavRail,#stGroupNavSidebar,#stGroupSharedNav,
  .st-group-nav-rail,.st-group-nav-sidebar){display:none!important}
.group-timer-page #stExploreLobby{
  grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;
  min-width:0;width:100%;max-width:1200px;margin:8px auto 0;
  padding:0!important;border:0!important;box-shadow:none!important;
  background:transparent!important;
}
.group-timer-page #stExploreLobby :is(#stExplorePreview,#stExplorePreviewTitle,
  #stExplorePreviewSubtitle,.st-explore-preview,.st-explore-intro > div,
  .st-explore-preview-item){display:none!important}
.group-timer-page #stExploreLobby .st-explore-intro{display:contents}
.group-timer-page #stExplorePreviewButton{
  flex:0 0 auto;width:auto;max-width:100%;min-width:0;
  min-height:36px;padding:7px 12px;border-radius:10px;
  font-size:.82rem;white-space:nowrap;
}
@media(max-width:1024px){
  .group-timer-page #stExploreLobby{margin:6px 0 9px}
  .group-timer-page #stExplorePreviewButton{
    min-height:36px;padding:7px 11px;font-size:.8rem;
  }
}
@media(max-width:360px){
  .group-timer-page #stExplorePreviewButton{padding:7px 9px;font-size:.76rem}
}

/* Explicit page-specific fallback even if an older mobile-ready.js remains cached. */
body.group-timer-page :is(#stMobileNav,.st-mobile-nav,#stMobileMore,.st-mobile-more){display:none!important}
@media(max-width:1024px){
 body.group-timer-page.st-mobile-ready{padding-bottom:env(safe-area-inset-bottom)!important}
}

/* Mobile Explore bottom sheet: protect card layout from global study/timer styles. */
@media(max-width:700px){
  body.group-timer-page .st-explore-dialog{
    box-sizing:border-box;width:100%;max-width:100%;height:min(88dvh,760px);
    max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px);
    inset:auto 0 0 0;margin:auto 0 0;
    padding:0;overflow:hidden;position:fixed;
    border-radius:20px 20px 0 0;
  }
  body.group-timer-page .st-explore-dialog-inner{
    box-sizing:border-box;display:flex;flex-direction:column;
    height:100%;max-height:100%;min-height:0;overflow:hidden;
  }
  body.group-timer-page .st-explore-dialog-head{
    flex:0 0 auto;display:flex;align-items:flex-start;gap:12px;
    padding:16px 16px 8px;
  }
  body.group-timer-page .st-explore-dialog-head>div{flex:1 1 auto;min-width:0}
  body.group-timer-page .st-explore-dialog-head h2{
    font-size:clamp(1.25rem,5vw,1.55rem);line-height:1.2;margin:0 0 5px;
  }
  body.group-timer-page .st-explore-dialog-head p{
    font-size:.85rem;line-height:1.4;margin:0;
  }
  body.group-timer-page .st-explore-close{
    flex:0 0 42px;width:42px;height:42px;min-height:42px;
  }
  body.group-timer-page .st-explore-search-wrap{
    flex:0 0 auto;padding:10px 16px 12px;
  }
  body.group-timer-page .st-explore-search{
    width:100%;min-height:44px;margin:0;padding:10px 12px;
  }
  body.group-timer-page #stExploreResults{
    box-sizing:border-box;display:flex;flex-direction:column;gap:10px;
    flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
    padding:4px 16px calc(24px + env(safe-area-inset-bottom,0px));
    -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  }
  body.group-timer-page #stExploreResults .st-explore-feature{
    box-sizing:border-box;display:flex;flex-direction:row;align-items:flex-start;
    gap:12px;flex:0 0 auto;width:100%;height:auto;min-height:0;
    margin:0;padding:13px;border-radius:13px;overflow:visible;
  }
  body.group-timer-page #stExploreResults .st-explore-icon{
    flex:0 0 38px;width:38px;height:38px;
  }
  body.group-timer-page #stExploreResults .st-explore-feature-body{
    display:flex;flex-direction:column;align-items:flex-start;
    flex:1 1 auto;min-width:0;gap:0;
  }
  body.group-timer-page #stExploreResults .st-explore-feature h3{
    display:block;position:static;width:auto;height:auto;margin:0 0 4px;
    font-size:1rem;line-height:1.35;white-space:normal;
  }
  body.group-timer-page #stExploreResults .st-explore-feature p{
    display:block;position:static;margin:0 0 10px;
    font-size:.84rem;line-height:1.45;white-space:normal;
  }
  body.group-timer-page #stExploreResults .st-explore-feature-link{
    display:inline-flex;position:static;flex:0 0 auto;
    width:auto;height:auto;min-height:38px;margin:0;
    padding:7px 13px;font-size:.82rem;line-height:1.3;
    white-space:normal;text-align:center;
  }
  body.group-timer-page #stExploreResults .st-explore-note{
    display:block;position:static;margin:7px 0 0;
    line-height:1.4;white-space:normal;
  }
}
