/* LunaLeaf V31: responsive large-screen website layout only.
   Under 700 CSS px, every existing phone/home-screen layout stays unchanged.
   Artwork, icon markup, colors, signup, text-only posts and mobile navigation
   have not been modified. */
@media (min-width:700px) {
  html,body { min-width:0; }
  body { padding:18px 0; }
  .app-shell {
    width:calc(100% - 36px);
    max-width:1180px;
    margin:0 auto;
    border-radius:22px;
    overflow:hidden;
    min-height:calc(100dvh - 36px);
  }
  /* Keep the original LunaLeaf banner artwork, at website proportions. */
  .app-shell > .masthead { border-radius:22px 22px 0 0; }
  .app-shell > .masthead .masthead-art {
    width:100%;
    height:clamp(174px,21vw,236px);
    aspect-ratio:auto;
    object-fit:cover;
    object-position:center;
  }
  .app-shell > .tabs {
    width:min(calc(100% - 72px),840px);
    max-width:840px;
    margin:10px auto 12px;
    padding:8px 10px;
  }
  .app-shell > .tabs .tab { font-size:16px; min-height:48px; }
  .app-shell > .demo-banner {
    margin:0 clamp(22px,3vw,44px) 15px;
    padding:10px 15px;
    font-size:13px;
    gap:16px;
  }
  .app-shell:not(.feed-mode):not(.chat-mode) > main#content {
    padding:12px clamp(22px,3vw,44px) 30px;
    max-width:1180px;
    margin-inline:auto;
  }
  /* The same five gold icons and purple toolbar, now sized to the website. */
  .bottom-nav {
    width:calc(100% - 36px);
    max-width:1180px;
    border-radius:0 0 22px 22px;
    left:50%;
    justify-content:center;
    gap:clamp(18px,4vw,72px);
  }
  .bottom-nav .nav-link,
  .bottom-nav .nav-link[data-view="messages"] {
    flex:0 1 145px;
  }
  /* Keep mobile native feed scrolling, but use roomier web content. */
  .app-shell.feed-mode {
    height:calc(100dvh - 36px);
    min-height:620px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    padding-bottom:0;
  }
  .app-shell.feed-mode > main#content {
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    scroll-snap-type:none;
    padding:0 clamp(22px,3vw,44px) 14px;
    margin-bottom:76px;
    align-content:start;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:15px;
    scrollbar-width:thin;
  }
  .app-shell.feed-mode #content > .sound-toolbar {
    grid-column:1/-1;
    margin:0 0 2px;
    border-radius:12px;
    position:sticky;
    z-index:3;
    top:0;
    padding:10px 14px;
  }
  .app-shell.feed-mode #content > .panel,
  .app-shell.feed-mode #content > .notice,
  .app-shell.feed-mode #content > .empty { grid-column:1/-1; }
  .app-shell.feed-mode #content > .post-card {
    min-height:380px;
    scroll-snap-align:none;
    margin:0;
    transform:none!important;
    will-change:auto!important;
  }
  /* Mobile-only flip animations don't make sense in a web grid. */
  .app-shell.feed-mode #content > .post-card.ll-page-turning::after {
    display:none!important;
  }
  .app-shell.feed-mode #content > article.post-card.ll30-photo-post .ll30-picture-row {
    height:clamp(280px,35dvh,385px);
  }
  .app-shell.feed-mode #content > article.post-card.ll30-photo-post .ll30-caption-col .post-body,
  .app-shell.feed-mode #content > article.post-card.ll30-photo-post .ll30-caption-col .ll30-see-more {
    font-size:14px!important;
  }
  .app-shell.chat-mode { height:calc(100dvh - 36px); }
  .app-shell.chat-mode > main#content { padding:0 clamp(20px,3vw,40px); }
}
@media (min-width:970px) {
  /* Browsing the community looks like a website rather than a narrow phone. */
  .app-shell.feed-mode > main#content { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-shell.feed-mode #content > .post-card {
    min-width:0;
    min-height:430px;
  }
}
