/* Topic accents inspired by the energy scale. Dark text for readability. */
.vm-topic-card { --topic:#417463; --topic-ink:#285448; border-radius:6px; border:1px solid var(--line); border-top:4px solid var(--topic); box-shadow:none; overflow:hidden; }
.vm-topic-card[data-topic="bostadsmarknaden"] {--topic:#14754D;--topic-ink:#155E41}
.vm-topic-card[data-topic="energi"] {--topic:#42A345;--topic-ink:#246B31}
.vm-topic-card[data-topic="ekonomi"] {--topic:#407DA7;--topic-ink:#285D85}
.vm-topic-card[data-topic="renovering"] {--topic:#D75B38;--topic-ink:#A43923}
.vm-topic-card[data-topic="uppvarmning"] {--topic:#E58B2B;--topic-ink:#94500D}
.vm-topic-card[data-topic="solceller"] {--topic:#E2BE24;--topic-ink:#786006}
.vm-topic-card[data-topic="batterilagring"] {--topic:#9AB83E;--topic-ink:#566D16}
.vm-topic-card[data-topic="smarta-hem"] {--topic:#32A4A8;--topic-ink:#176B70}
.vm-topic-card .article-card-link {height:100%;display:flex;flex-direction:column}
.vm-topic-card img {width:100%;height:auto;aspect-ratio:16/9;display:block;object-fit:contain;border:0;border-radius:0;background:var(--surface-2)}
.vm-topic-card img[hidden], .article-hero[hidden] {display:none!important}
.vm-topic-card .article-card-body {flex:1;display:flex;flex-direction:column;gap:8px;padding:15px 16px 16px;min-width:0}
.vm-topic-card .eyebrow {color:var(--topic-ink);font-weight:750;letter-spacing:.065em;font-size:.72rem}
.vm-topic-card h3 {font-size:1.24rem;line-height:1.25;margin:2px 0 0}
.vm-topic-card .article-card-body p {display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:.91rem;line-height:1.5;margin:0}
.vm-topic-card .vm-article-date {margin-top:auto;padding-top:5px;font-size:.8rem}
.vm-topic-card:hover {border-color:var(--topic);box-shadow:0 3px 12px #142b2112}
.vm-topic-card .article-card-link:hover h3 {text-decoration:underline;text-decoration-color:var(--topic);text-underline-offset:3px}
html[data-theme="dark"] .vm-topic-card .eyebrow {color:var(--topic)}
.vm-photo-credit {margin:5px 0 0}
/* Footer: keep every legal link and language setting, reduce vertical footprint. */
.site-footer {padding:22px 0 0}
.site-footer .footer-grid {grid-template-columns:1.4fr 1fr 1.25fr auto;gap:18px;align-items:start}
.site-footer .footer-grid > div:first-child p {margin:0 0 6px}
.site-footer .footer-bottom {margin-top:14px;padding-top:10px;padding-bottom:12px;line-height:1.5;font-size:.75rem}
.site-footer .footer-prefs .inline-form {margin:0;gap:5px}
@media(max-width:950px){.site-footer .footer-grid {grid-template-columns:1fr 1fr;gap:14px}}
@media(max-width:600px){
  .article-grid {gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .vm-topic-card .article-card-body {padding:10px 11px 12px;gap:5px}
  .vm-topic-card h3 {font-size:1.05rem;line-height:1.25;overflow-wrap:anywhere}
  .vm-topic-card .article-card-body p {font-size:.84rem;-webkit-line-clamp:3}
  .vm-topic-card .eyebrow {font-size:.65rem;overflow-wrap:anywhere}
  .site-footer {margin-top:16px;padding:16px 0 0}
  .site-footer .footer-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
  .site-footer .footer-grid > div:first-child {grid-column:1/-1}
  .site-footer .footer-brand {font-size:1rem;gap:6px;margin:0 0 3px}
  .site-footer .footer-brand img {width:22px;height:22px}
  .site-footer .footer-grid > div:first-child p {font-size:.79rem;line-height:1.4;margin:0 0 3px}
  .site-footer .footer-grid nav {gap:1px;min-width:0;font-size:.79rem;line-height:1.3}
  .site-footer .footer-grid nav strong {margin-bottom:2px}
  .site-footer .footer-grid nav a {padding:5px 0;overflow-wrap:anywhere}
  .site-footer .footer-prefs {grid-column:1/-1;gap:0}
  .site-footer .footer-prefs .inline-form {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .site-footer .footer-prefs label {margin:0;font-size:.8rem}
  .site-footer .footer-prefs select {font-size:.8rem;min-height:32px}
  .site-footer .footer-bottom {margin-top:8px;padding-top:8px;padding-bottom:10px;font-size:.7rem;overflow-wrap:anywhere}
}
@media(max-width:370px){.article-grid {grid-template-columns:1fr}}
