/* ============================================================
   Utilities — Daily News
   辅助工具类
   ============================================================ */

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visually hidden but focusable */
.visually-hidden-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@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;
  }
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-3);
  }

  .filter-bar__inner {
    gap: var(--space-1);
  }

  .filter-tag {
    padding: 5px 10px;
    font-size: var(--font-size-xs);
  }

  .date-card {
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .date-card__day {
    font-size: var(--font-size-2xl);
  }

  .date-card__meta {
    display: none;
  }

  .card--link {
    padding: var(--space-4);
  }
}
