/* Facebook-style cards, with real counters supplied by the server. */
@media (min-width:981px) {
  .home .home-desktop-layout .rsf-news-card,
  .home .home-desktop-layout .rsf-news-card:has(.rsf-news-media) {
    height: clamp(500px, 39vw, 580px);
    min-height: 500px;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: #fff;
  }
  .home .home-desktop-layout .rsf-news-header { flex: none; margin-bottom: 14px; }
  .home .home-desktop-layout .rsf-news-content { display:flex; flex:1; flex-direction:column; min-height:0; }
  .home .home-desktop-layout .rsf-news-message { flex:none; margin-bottom:12px; -webkit-line-clamp:4; }
  .home .home-desktop-layout .rsf-news-message a { color:#1769ff; font-size:inherit; text-decoration:none; overflow-wrap:anywhere; }
  .home .home-desktop-layout .rsf-news-content .rsf-news-media {
    position:relative; display:flex; flex:1; min-height:0; width:100%; height:auto; margin:0;
    align-items:center; justify-content:center; background:#fff; border-radius:0; box-shadow:none;
  }
  .home .home-desktop-layout .rsf-news-media>img { width:100%; height:100%; min-height:0; object-fit:contain; }
  .home .home-desktop-layout .rsf-news-play { width:58px; height:58px; }
  .home .home-desktop-layout .rsf-news-shared-card { display:flex; flex:1; flex-direction:column; min-height:0; border:1px solid #c9d7de; border-radius:8px; padding:14px 12px; }
  .home .home-desktop-layout .rsf-news-shared-card .rsf-news-shared { order:-1; display:block; font-weight:700; font-size:13px; line-height:1.4; margin-bottom:12px; }
  .home .home-desktop-layout .rsf-news-caption { display:none; }
  .home .home-desktop-layout .rsf-news-engagement { display:flex; flex:none; align-items:center; gap:16px; min-height:38px; border-top:1px solid #d4dfe5; padding-top:10px; margin-top:14px; font-size:13px; color:#56616a; }
  .home .home-desktop-layout .rsf-news-counter { display:inline-flex; align-items:center; gap:5px; min-height:28px; }
  .home .home-desktop-layout .rsf-news-engagement svg { width:20px; height:20px; flex:none; }
  .home .home-desktop-layout .rsf-news-share { display:flex; align-items:center; justify-content:center; min-width:30px; min-height:28px; margin-left:auto; }
}

/* Follow links stay readable without pushing the mobile news feed down. */
.mobile-follow-intro { display:none; }
@media (max-width:980px) {
  .home #nyheter > .section-heading { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-bottom:10px; }
  .home #nyheter .social-links { display:flex; flex-wrap:wrap; gap:0 16px; margin:0; align-items:center; }
  .home #nyheter .social-links .mobile-follow-intro { display:block; font-size:12px; color:var(--muted); }
  .home #nyheter .social-links .follow-prefix { display:none; }
  .home #nyheter .social-links .text-link { min-height:44px; margin:0; font-size:12px; gap:6px; }
  .home #nyheter .social-links .external-icon { width:14px; height:14px; }
  .home .rsf-news-card { background:#fff; }
  .home .rsf-news-content { display:flex; flex:1; min-width:0; flex-direction:column; }
  .home .rsf-news-content .rsf-news-media { margin-top:0; background:#fff; }
  .home .rsf-news-message { -webkit-line-clamp:4; }
  .home .rsf-news-shared-card { display:flex; flex-direction:column; min-width:0; border:1px solid #d4dfe5; border-radius:8px; padding:12px; }
  .home .rsf-news-shared-card .rsf-news-shared { font-weight:700; line-height:1.4; margin-bottom:10px; }
  .home .rsf-news-shared-card .rsf-news-media { height:auto; aspect-ratio:4/3; }
  .home .rsf-news-engagement { display:flex; flex:none; align-items:center; gap:18px; border-top:1px solid #d4dfe5; margin-top:14px; padding-top:6px; color:#56616a; font-size:13px; }
  .home .rsf-news-counter { display:inline-flex; align-items:center; gap:6px; min-height:44px; }
  .home .rsf-news-engagement svg { width:21px; height:21px; flex:none; }
  .home .rsf-news-share { display:flex; align-items:center; justify-content:center; width:44px; min-height:44px; margin-left:auto; }
  .home .rsf-news-open { display:inline-flex; align-items:center; min-height:44px; font-weight:700; }
}
