/* Shared mobile header sizing. Keep both stores reachable on small phones. */
@media (max-width: 520px) {
  .phone-caption, .bedtime-tool { min-width: 0; overflow-wrap: anywhere; }
  .sound-center-teaser .btn { max-width: 100%; white-space: normal; justify-content: center; }
  nav { padding: 10px 16px; gap: 8px; }
  nav .nav-wordmark { font-size: 18px; }
  nav .nav-actions { gap: 5px; }
  nav .btn { font-size: 12px; white-space: nowrap; min-height: 44px; min-width: 44px; justify-content: center; }
  nav .nav-wordmark { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
  nav .nav-actions .btn-primary { min-width: 44px !important; padding: 8px 10px; }
  nav .nav-actions .btn-ghost:first-of-type { padding: 8px 6px; }
}
@media (max-width: 360px) {
  nav { padding: 10px 12px; gap: 6px; }
  nav .nav-actions { gap: 4px; }
  nav .nav-actions .btn-primary { padding: 8px 6px; }
  nav .nav-actions .btn-ghost:first-of-type { padding: 8px 4px; }
}
nav a:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }

/* Related-page sidebars follow the article when the layout becomes a column. */
@media (max-width: 768px) {
  .page-wrapper > .sidebar {
    order: 2; margin-top: 40px; margin-bottom: 0;
    padding-top: 24px; padding-bottom: 0;
    border-top: 1px solid var(--border); border-bottom: none;
  }
}
.site-footer .sf-grid a { color: var(--text-secondary, #9A98B2); }
.site-footer .sf-grid a:hover { color: var(--text-primary, #F4F3FB); }
.site-footer a:focus-visible { outline: 2px solid var(--text-primary, #F4F3FB); outline-offset: 3px; }
