/* ph_responsive.css — mobile-first overrides. Base styles in ph_components.css
   already work down to ~360px; these rules handle the structural collapses. */

@media (max-width: 992px) {
  .ph-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .ph-header__menu-btn { display: inline-flex; align-items: center; }

  .ph-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }

  .ph-sidebar.is-open { transform: translateX(0); }

  .ph-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 30;
  }

  .ph-sidebar-backdrop.is-open { display: block; }

  .ph-content { padding: var(--ph-space-4); }

  .ph-metric-grid { grid-template-columns: 1fr; }

  /* Stripe rows already stack cleanly since they're flex; just tighten padding */
  .ph-stripe-row { padding: var(--ph-space-3); }

  /* Any wide data table becomes a scroll region rather than overflowing the page */
  .ph-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  h1 { font-size: 22px; }
  .ph-metric-card__value { font-size: 20px; }
}
