/* ── Responsive breakpoints ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .brand-name {
    font-size: var(--fs-lead);
  }
  .card-header {
    padding: 10px 12px;
  }
  .photo-grid {
    gap: 4px;
  }
  /* The bell is not at the header's right edge, so a panel hung off it
     would run past the left of a phone screen: pin it to the viewport's
     gutters instead, just under the sticky header. */
  .notif-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--chrome-top) + var(--space-1));
    width: auto;
    max-width: none;
    /* Clear of the bottom tab bar too. */
    max-height: calc(100vh - var(--chrome-h) - var(--space-4));
  }
}

@media (max-width: 374px) {
  .brand-name {
    font-size: var(--fs-body);
  }
  .you-month {
    padding: 8px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* The universal selector above does not reach the view-transition
     pseudo-elements, which live outside the document tree. Belt and braces:
     `with_view_transition` already skips the API entirely under this
     preference, so this only matters if that check is ever bypassed. */
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.01ms !important;
  }
}
