/* Explore V1 grid + section chrome — shared with explore.html and locker.html (Overview #exploreV1Section).
   Sourced from explore.html; .explorePageWrap > .section also applies to #profileView > #exploreV1Section for Locker. */

    /* Rails: space apart like separate modes, not one stacked column */
    .explorePageWrap > .section,
    #profileView > #exploreV1Section{
      margin-bottom: 0;
      border: none;
      border-radius: 0;
      box-shadow: none;
      background: transparent;
      overflow: visible;
    }
    .explorePageWrap > .section + .section{ margin-top: 44px; }
    @media (min-width: 720px){
      .explorePageWrap > .section + .section{ margin-top: 56px; }
    }
    /* Lantern home: one section + one scroller pattern per row. */
    .sectionHd{ font-weight: 900; font-size: 26px; margin-bottom: 4px; letter-spacing: .2px; padding: 14px var(--lantern-pad-x) 0; }
    .sectionSub{ color: var(--muted); font-size: 22px; font-weight: 800; margin-top: -2px; margin-bottom: 12px; padding: 0 var(--lantern-pad-x); line-height: 1.35; }
    .sectionSubLane{ font-size: 20px; font-weight: 800; margin-bottom: 8px; margin-top: 0; padding: 4px var(--lantern-pad-x) 0; line-height: 1.35; color: var(--muted); }
    .sectionSubLane--spaced{ margin-top: 18px; }
    /* Horizontal scrollers + rail card chrome: lantern-cards.css (.wrap.lanternContent .lanternScroller) */
    .sectionPlaceholder{ color: var(--muted); font-size: 22px; padding: 32px 20px; text-align: center; line-height: 1.4; }
    .emptyState{ text-align: center; padding: 32px 20px; }
    .emptyStateIcon{ font-size: 48px; margin-bottom: 14px; opacity: .6; }
    .emptyStateTitle{ font-weight: 900; font-size: 26px; margin-bottom: 8px; }
    .emptyStateHint{ color: var(--muted); font-size: 22px; line-height: 1.45; }
    .exploreEmptyState .launchBtn{ margin-top: 14px; cursor: pointer; font-family: inherit; }

    .exploreSessionHint{ display: none; padding: 10px var(--lantern-pad-x) 6px; margin: 0; font-size: 20px; font-weight: 800; color: var(--muted); line-height: 1.35; }
    .exploreSessionHint.is-visible{ display: block; }
    html.lantern-explore-v1 #exploreSessionHint{
      display: none !important;
    }
    /* Temporary: locked Explore card shell (#exploreContentRoot only; renderExploreCards) */
    #exploreContentRoot{
      --explore-grid-cols: 5;
      display: grid;
      grid-template-columns: repeat(var(--explore-grid-cols), 420px);
      gap: 12px;
      align-items: start;
      justify-content: start;
      width: 100%;
      max-width: calc(var(--explore-grid-cols) * 420px + (var(--explore-grid-cols) - 1) * 12px);
      margin-left: auto;
      margin-right: auto;
      box-sizing: border-box;
    }
    #exploreContentRoot .exploreCard{
      aspect-ratio: 1 / 1;
      width: 420px;
      max-width: 420px;
      margin: 0;
      display: flex;
      flex-direction: column;
      background: transparent;
      border: none;
      outline: none;
      box-shadow: none;
      border-radius: var(--r);
      overflow: hidden;
      color: var(--ink);
      transition: background-color 0.8s ease;
    }
    #exploreContentRoot .exploreCard:hover{
      background: #0f2744;
      transform: none;
      box-shadow: none;
      border-color: transparent;
    }
    #exploreContentRoot .exploreCardMedia{
      position: relative;
      flex: 2 1 0;
      min-height: 0;
      padding: 12px 12px 0;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
    }
    #exploreContentRoot .exploreCardBadge{
      position: absolute;
      z-index: 1;
      top: 12px;
      left: 12px;
      margin: 0;
      padding: 4px 8px;
      font-size: 14px;
      font-weight: 800;
      line-height: 1;
      border-radius: 8px;
      background: rgba(0,0,0,.55);
      color: #fff;
      max-width: calc(100% - 24px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      pointer-events: none;
    }
    #exploreContentRoot .exploreCardMedia img{
      flex: 1 1 auto;
      min-height: 0;
      width: 100%;
      display: block;
      object-fit: cover;
      border-radius: 12px;
    }
    #exploreContentRoot .exploreCardBody{
      flex: 1 1 0;
      min-height: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 0;
      padding: 10px 12px 14px;
      font-size: 22px;
    }
    #exploreContentRoot .exploreCardTitle{
      flex: 0 1 auto;
      min-height: 0;
      font-weight: 850;
      font-size: 24px;
      line-height: 1.2;
      margin: 0;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      max-height: calc(2 * 1.2em);
      overflow: hidden;
      word-break: break-word;
    }
    #exploreContentRoot .exploreCardMeta{
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 8px;
      min-width: 0;
      flex-shrink: 0;
      margin-top: auto;
      padding-top: 6px;
    }
    #exploreContentRoot .exploreCardAvatarSlot{
      width: 32px;
      height: 32px;
      flex-shrink: 0;
      flex-grow: 0;
      border-radius: 50%;
      overflow: hidden;
      background: rgba(255,255,255,.1);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    #exploreContentRoot .exploreCardAvatar{
      width: 100%;
      height: 100%;
      min-width: 100%;
      min-height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 0;
    }
    #exploreContentRoot .exploreCardMetaLine{
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 750;
    }
    #exploreContentRoot .exploreCardName{
      font-weight: inherit;
    }
    #exploreContentRoot .exploreCardMetaSep{
      font-weight: inherit;
    }
    #exploreContentRoot .exploreCardDate{
      font-size: 20px;
      color: var(--muted);
      font-weight: 750;
    }
    #exploreContentRoot .exploreContentEmpty{
      grid-column: 1 / -1;
      padding: 24px 16px;
      text-align: center;
      color: var(--muted);
      font-size: 22px;
    }
    /* --- Explore V1 only: hide legacy multi-rail rows (merged / old HTML / GAS includes). Do not remove nodes. --- */
    html.lantern-explore-v1 .explorePageWrap > .section:not(#exploreV1Section),
    html.lantern-explore-v1 #classAccessContentWrap > .section:not(#exploreV1Section){
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      min-height: 0 !important;
      max-height: 0 !important;
      overflow: hidden !important;
      margin: 0 !important;
      padding: 0 !important;
      border: none !important;
      pointer-events: none !important;
    }
    html.lantern-explore-v1 #justInSection,
    html.lantern-explore-v1 #bestSection,
    html.lantern-explore-v1 #youCanDoSection,
    html.lantern-explore-v1 #schoolSmartsSection,
    html.lantern-explore-v1 #recentSection,
    html.lantern-explore-v1 #happeningSection,
    html.lantern-explore-v1 #gamesMoreSection{
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      overflow: hidden !important;
      margin: 0 !important;
      padding: 0 !important;
      pointer-events: none !important;
    }
    html.lantern-explore-v1 #exploreV1Section{
      display: block !important;
      visibility: visible !important;
      height: auto !important;
      max-height: none !important;
      overflow: visible !important;
      pointer-events: auto !important;
    }
