/* Responsive — Phase 0 §2.8. Phone-first single column is the base;
   this file only carries the breakpoints. Loaded last so it wins
   ties, mirroring the old Phase B block at the end of styles.css. */

/* Tablets: column stays centered; sheets become centered modals. */
@media (min-width: 768px) {
  .sheet-backdrop { align-items: center; padding: var(--sp-5); }
  .sheet {
    max-width: var(--sheet-max);
    border-bottom: 1px solid var(--border);
    border-radius: var(--r-xl);
    max-height: calc(100dvh - var(--sp-10));
  }
}

/* Desktop: feed column centered at --content-max with the optional
   right rail (places near you + Good Ear tier). The tab bar stays
   bottom, capped and centered — one navigation model everywhere. */
@media (min-width: 1100px) {
  .shell {
    max-width: calc(var(--content-max) + var(--rail-w) + var(--sp-6));
    display: grid;
    grid-template-columns: minmax(0, var(--content-max)) var(--rail-w);
    gap: var(--sp-6);
    justify-content: center;
    align-items: start;
  }
  .rail { display: block; padding-top: var(--sp-2); position: sticky; top: var(--sp-4); }
  .topbar { max-width: calc(var(--content-max) + var(--rail-w) + var(--sp-6)); }
}

/* Text scaling: at large system text the tab labels wrap instead of
   truncating, and card meta rows already wrap (feed.css). */
.tab-btn .tab-label { white-space: normal; text-align: center; line-height: 1.15; }
