/* =====================================================
   Updates / Offers — Public Styles
   Uses the shared design tokens from home.css.
   ===================================================== */

.updates-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.updates-page__header { text-align: center; margin-bottom: 30px; }
.updates-page__header h1 { font-size: 30px; margin: 0 0 6px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.updates-page__header p { color: var(--on-surface-muted); margin: 0; }

.updates-empty { text-align: center; color: var(--on-surface-muted); padding: 30px 0; }

.updates-list { display: flex; flex-direction: column; gap: 14px; }

.update-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--on-surface);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.update-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.update-card.is-expired { opacity: 0.6; }

.update-card__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--on-surface-muted); }
.update-card h2 { font-size: 17px; margin: 6px 0 4px; font-weight: 600; }
.update-card__expiry { font-size: 12px; color: var(--primary); font-weight: 600; }

.update-card__badge {
  display: inline-block; background: var(--background); color: var(--on-surface-muted);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill);
}

.updates-page--single { max-width: 640px; }
.update-post h1 { font-size: 26px; margin: 10px 0 4px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.update-post time { font-size: 13px; color: var(--on-surface-muted); }
.update-post__expiry { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 6px; }
.update-post__content { font-size: 15px; line-height: 1.7; margin-top: 20px; }
.update-post__content img { max-width: 100%; border-radius: 6px; }
.update-post__content h1, .update-post__content h2, .update-post__content h3 { margin: 24px 0 10px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.update-post__content p { margin: 0 0 14px; }
