/* New desktop composition. Everything below 981px keeps the published layout. */
@media (min-width: 981px) {
  .home .snow-surface,
  .home .snow-surface[data-home-message] { --photo-height: 300px; }
  .home .main-photo > img {
    --hero-top-trim: clamp(0px, calc(17.4375vw - 150px), 35px);
    object-position: 45% calc(50% - var(--hero-top-trim));
  }
  .home .image-tools {
    margin-top: -86px;
    background: transparent;
  }
  .home .image-tools-inner { max-width: 560px; }
  .home .image-tools .home-trail-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    overflow: hidden;
    border: 1px solid #c7d6dd;
    border-radius: 13px;
    background: #f8fafb;
    box-shadow: 0 5px 18px #18334106;
    text-align: center;
  }
  .home .image-tools .home-trail-card .home-map-entry { grid-column: auto; grid-row: auto; width: 100%; margin: 0; padding: 0; min-width: 0; }
  .home .image-tools .home-trail-card .home-map-link {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    max-width: none;
    height: 100%;
    position: relative;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f8fafb;
  }
  .home .image-tools .home-trail-card .home-map-link:hover { background: #fff; }
  .home .image-tools .home-trail-card .home-map-link:focus-visible { outline-offset: -5px; }
  .home .image-tools .home-trail-card .trail-mini-map { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .home .image-tools .home-trail-card .home-map-copy { padding: 11px 18px 12px; text-align: center; }
  .home .image-tools .home-trail-card .home-map-copy strong { font-size: 14px; padding-inline: 20px; }
  .home .image-tools .home-trail-card .home-map-copy strong::after { content: '→'; position: absolute; right: 19px; }
  .home .image-tools .home-trail-card .home-map-copy small { font-size: 10px; margin-top: 3px; }
  .home .home-trail-card-copy {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 12px 18px;
    border-left: 1px solid #dbe4e8;
    background: #f8fafb;
    color: var(--ink);
  }
  .home .image-tools-inner > a.trail-status { grid-row: 1; margin: 0; justify-content: center; color: var(--ink); font-size: 24px; text-align: center; transform: none; }
  .home .image-tools .hero-actions-wrap { grid-row: 3; }
  .home .home-desktop-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    padding-block: 18px 36px;
  }
  .home .home-desktop-layout #nyheter {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 0;
    min-width: 0;
  }
  .home .home-desktop-layout #news-heading { font-size: 34px; }
  .home .home-desktop-layout .section-heading { justify-content: center; align-items: center; gap: 0; text-align: center; }
  .home .home-desktop-layout > .social-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; width: 100%; margin: 0; }
  .home .home-desktop-layout .social-links .text-link { display: inline-flex; align-items: center; min-height: 38px; margin: 0; font-size: 12px; font-weight: 600; gap: 9px; }
  .home .home-desktop-layout .social-links .news-more-top { font-size: 12px; font-weight: 600; }
  .home .home-desktop-layout .social-links .desktop-facebook-follow { display: none; }
  .home .home-desktop-layout .social-links .external-icon { display: none; }
  .home .home-desktop-layout .social-brand-icon { display: block; flex: none; width: 20px; height: 20px; }
  .home .home-desktop-layout .social-brand-facebook { color: #1877f2; }
  .home .home-desktop-layout .social-brand-instagram { color: #b63b7d; }
  .home .home-desktop-layout .facebook-intro { font-size: 12px; margin-bottom: 18px; text-align: center; }
  .home .home-desktop-layout .rsf-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .home .home-desktop-layout [data-rsf-news] > .rsf-news-card:nth-of-type(n+3) { display: none; }
  .home .home-desktop-layout .rsf-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 266px;
    gap: 0;
    padding: 18px;
    border-radius: 12px;
  }
  .home .home-desktop-layout .rsf-news-card:has(.rsf-news-media) {
    min-height: 266px;
    padding-left: 258px;
  }
  .home .home-desktop-layout .rsf-news-card > .rsf-news-media {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 220px;
    height: 230px;
    margin: 0;
  }
  .home .home-desktop-layout .rsf-news-header { margin: 0 0 12px; gap: 8px; }
  .home .home-desktop-layout .rsf-news-avatar { width: 32px; height: 32px; }
  .home .home-desktop-layout .rsf-news-author { font-size: 12px; line-height: 1.4; }
  .home .home-desktop-layout .rsf-news-date { font-size: 11px; margin-top: 2px; }
  .home .home-desktop-layout .rsf-news-facebook { width: 18px; height: 18px; }
  .home .home-desktop-layout .rsf-news-message {
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 4;
    margin: 0;
  }
  .home .home-desktop-layout .rsf-news-caption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    margin: 10px 0 0;
  }
  .home .home-desktop-layout .rsf-news-shared { font-size: 11px; margin: 10px 0 0; }
  .home .home-desktop-layout .rsf-news-read { font-size: 12px; min-height: 36px; padding-top: 8px; margin: 12px 0 0; }
  .home .home-desktop-layout .rsf-news-shared-preview { padding: 20px; gap: 14px; font-size: 12px; }
  .home .home-desktop-layout .rsf-news-shared-preview svg { width: 34px; height: 34px; }
  .home .home-desktop-layout .rsf-news-play { width: 44px; height: 44px; }
  .home .home-desktop-layout .rsf-news-play svg { width: 19px; height: 19px; }
  .home .home-desktop-layout .feed-footer { display: none; }
  .home .home-desktop-layout .feed-footer .text-link { font-size: 11px; min-height: 40px; }
  .home .home-desktop-layout .trail-quicklinks { display: none; }
  .home .home-desktop-support { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; min-width: 0; }
  .home .home-desktop-message { width: 100%; }
  .home .home-desktop-message:empty { display: none; }
  .home .image-tools .home-desktop-message .board-home-message {
    display: block;
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    border: 0;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    overflow-wrap: anywhere;
  }
  .home .image-tools .home-desktop-message .board-home-message::before {
    content: none;
    display: none;
  }
  .home .image-tools .home-desktop-message .board-home-message strong { display: block; font-size: 16px; line-height: 1.45; }
  .home .image-tools .home-desktop-message .board-home-message p { margin: 7px 0 8px; font-size: 13px; line-height: 1.55; white-space: pre-line; color: #455e6c; }
  .home .image-tools .home-desktop-message .board-home-message time { display: block; font-size: 10px; color: #637985; }
  .home .image-tools .home-trail-card:not(:has(.board-home-message)) { width: 440px; max-width: 100%; grid-template-columns: 1fr; }
  .home .home-trail-card:not(:has(.board-home-message)) .home-trail-card-copy { display: none; }
  .home .image-tools .home-trail-card:not(:has(.board-home-message)) .home-map-link { grid-template-columns: 160px minmax(0, 1fr); align-items: center; }
  .home .image-tools .home-trail-card:not(:has(.board-home-message)) .home-map-copy { padding: 12px 16px; }
  .home .image-tools .home-trail-card:not(:has(.board-home-message)) .home-map-copy strong { font-size: 14px; }
  .home .home-desktop-support .sponsor-simple-section,
  .home .home-desktop-support .grasrot-section { width: 100%; margin: 0; }
  .home .home-desktop-support .sponsor-simple-section {
    display: flex;
    align-items: center;
    min-height: 266px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .65);
    mix-blend-mode: normal;
  }
  .home .home-desktop-support .sponsor-simple { width: 100%; padding: 0; }
  .home .home-desktop-support .sponsor-simple-link { padding-inline: 12px; }
  .home .home-desktop-support .sponsor-simple-image { max-width: 460px; aspect-ratio: 400 / 130; }
  .home .home-desktop-support .sponsor-simple-title { font-size: 11px; margin-top: 11px; }
  .home .home-desktop-support .grasrot-section { display: flex; padding: 0; }
  .home .home-desktop-support .grasrot-panel { width: 100%; grid-template-columns: 1fr; gap: 18px; min-height: 266px; padding: 23px 25px; border-radius: 12px; }
  .home .home-desktop-support #grasrot-title { font-size: 22px; margin-block: 10px 8px; }
  .home .home-desktop-support .grasrot-copy p { font-size: 12px; line-height: 1.65; }
  .home .home-desktop-support .grasrot-action { align-items: flex-start; gap: 7px; }
  .home .home-desktop-support .grasrot-cta { font-size: 12px; min-height: 44px; padding: 11px 16px; }
  .home .home-desktop-support .grasrot-org { font-size: 9px; }
}
@media (min-width: 981px) and (max-width: 1100px) {
  .home .home-desktop-layout { column-gap: 18px; }
  .home .home-desktop-layout .section-heading { flex-wrap: wrap; }
  .home .home-desktop-layout .rsf-news-card:has(.rsf-news-media) { padding-left: 214px; }
  .home .home-desktop-layout .rsf-news-card > .rsf-news-media { width: 180px; }
}
