/* Keep useful content above the fold without shrinking readable text or tap targets. */
.content { padding-top: 18px; }
.home-welcome { margin-bottom: 18px; }
.home-course-section { margin-bottom: 22px; }
.home-updates { margin-bottom: 16px; }
.home-update-heading { min-height: 46px; padding: 10px 14px; gap: 10px; }
.home-update-heading .eyebrow { line-height: 1.35; }
.home-update-heading h2 { margin: 2px 0 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.25; }
.home-course-card { display: flex; flex-direction: column; }
.home-course-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; }
.home-course-body h3 { margin: 0; line-height: 1.3; }
.home-course-body p { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-height: 1.45; }
.home-course-button { align-self: flex-start; margin-top: auto; }
.home-notice-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-height: 1.5; }
.feature-modal-head { padding: 15px 19px; }
.feature-content { padding: 18px 19px 24px; }
.feature-card { padding: 15px; }
.community-loading { display: flex; align-items: center; gap: 9px; min-height: 56px; color: var(--muted, #70647E); font-size: 13px; }
.community-loading::before { width: 16px; height: 16px; border: 2px solid var(--border, #E4D4FA); border-top-color: var(--primary, #7627C8); border-radius: 50%; content: ''; animation: community-spin .8s linear infinite; }
.community-feed-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; padding: 11px 13px; border: 1px solid var(--border, #E4D4FA); border-radius: 12px; background: var(--surface-soft, #F1E8FF); color: var(--text, #21152F); font-size: 12px; }
.community-feed-error p { margin: 0; line-height: 1.45; }
@keyframes community-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .content { padding-top: 12px; }
  .home-welcome { margin-bottom: 14px; }
  .home-course-section { margin-bottom: 18px; }
  .home-updates { margin-bottom: 13px; }
  .home-update-heading { min-height: 44px; padding: 9px 12px; }
  .feature-modal-head { padding: 13px 15px; }
  .feature-content { padding: 14px 13px calc(82px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .community-loading::before { animation-duration: 2.5s; }
}
