/**
 * Front page — visual system aligned with /jobb (dark panels, orange accents, FLUX icons).
 */

.home-page--flux-assets {
  --home-bg: #0b0d0f;
  --home-card: #121518;
  --home-border: rgba(255, 255, 255, 0.09);
  --home-muted: rgba(255, 255, 255, 0.68);
  --home-text: #f8fafc;
  --home-accent: #f97316;
  --home-accent-soft: rgba(249, 115, 22, 0.14);
  --home-panel-shadow: 0 24px 60px -44px rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .home-page--flux-assets {
  --home-bg: #f8fafc;
  --home-card: #ffffff;
  --home-border: rgba(15, 23, 42, 0.12);
  --home-muted: #5f6b7a;
  --home-text: #111827;
  --home-accent: #ea580c;
  --home-accent-soft: rgba(234, 88, 12, 0.12);
  --home-panel-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 32px -24px rgba(15, 23, 42, 0.22);
}

.home-page--flux-assets.home-page {
  position: relative;
  isolation: isolate;
}

.home-page--flux-assets.home-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image: var(--home-ambient-image, none);
  background-size: cover;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 28rem);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 28rem);
}

.home-page--flux-assets .home-region-picker,
.home-page--flux-assets .home-municipality-latest,
.home-page--flux-assets .home-most-read,
.home-page--flux-assets .home-weather-traffic,
.home-page--flux-assets .home-sport-section,
.home-page--flux-assets .home-front-page-ad-pool {
  color: var(--home-text);
}

.home-front-page-ad-pool {
  margin-block: clamp(1.35rem, 3vw, 2.25rem);
}

.home-page--flux-assets .home-front-page-ad-pool .ad--content {
  border-color: var(--home-border);
  background: color-mix(in srgb, var(--home-card) 94%, transparent);
  box-shadow: var(--home-panel-shadow);
}

.home-page--flux-assets .home-region-picker__title,
.home-page--flux-assets .home-municipality-latest__head h2,
.home-page--flux-assets .home-most-read__head h2,
.home-page--flux-assets .home-sport-section__title {
  color: var(--home-text);
}

.home-page--flux-assets .home-region-picker__lead {
  color: var(--home-muted);
}

.home-page--flux-assets .region-hub-card {
  border-color: color-mix(in srgb, var(--hub-accent, var(--home-accent)) 42%, var(--home-border) 58%);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--hub-accent, var(--home-accent)) 18%, transparent 82%), transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--home-card) 88%, var(--hub-accent, var(--home-accent)) 12%), var(--home-bg));
  box-shadow: var(--home-panel-shadow);
}

.home-page--flux-assets .region-hub-card__overlay {
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.94) 0%, rgba(8, 12, 20, 0.72) 40%, rgba(8, 12, 20, 0.24) 100%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.12) 0%, rgba(8, 12, 20, 0.78) 100%);
}

@media (min-width: 900px) {
  .home-page--flux-assets .region-hub-card__overlay {
    background:
      linear-gradient(180deg, rgba(8, 12, 20, 0.04) 0%, rgba(8, 12, 20, 0.38) 46%, rgba(8, 12, 20, 0.96) 100%);
  }
}

@media (min-width: 900px) {
  .home-page--flux-assets .region-hub-cards {
    gap: 1.1rem;
  }

  .home-page--flux-assets .region-hub-card {
    --region-hub-card-footer-height: 2.8rem;
    --hub-card-surface:
      radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--hub-accent, var(--home-accent)) 24%, transparent 76%), transparent 30%),
      linear-gradient(180deg, #171a17 0%, #090d0f 100%);
    display: flex;
    flex-direction: column;
    min-height: clamp(13.5rem, 22vw, 16.5rem);
    align-content: stretch;
    align-items: stretch;
    padding: 0;
    border-color: color-mix(in srgb, var(--hub-accent, var(--home-accent)) 72%, rgba(255, 255, 255, 0.12) 28%);
    border-radius: 0.95rem;
    background: var(--hub-card-surface);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--hub-accent, var(--home-accent)) 18%, transparent 82%),
      0 18px 36px -28px rgba(0, 0, 0, 0.95);
  }

  .home-page--flux-assets .region-hub-card__silhouette-stage {
    top: 0;
    right: 0;
    bottom: var(--region-hub-card-footer-height);
    left: 0;
    --hub-silhouette-bg-size: 112% auto;
    --hub-silhouette-bg-pos: center bottom;
    --hub-silhouette-video-y: 0;
    --hub-silhouette-video-active-opacity: 0.78;
  }

  .home-page--flux-assets .region-hub-card__silhouette {
    background-image: var(--hub-silhouette-dark, var(--hub-silhouette-light, var(--hub-silhouette)));
    mix-blend-mode: screen;
    opacity: 0.78;
    transform: none;
    transition: opacity 0.22s ease;
  }

  .home-page--flux-assets .region-hub-card.is-silhouette-video-active .region-hub-card__silhouette {
    opacity: 0;
  }

  /* Flux home always shows dark stills here; video must use dark filters too (not system theme). */
  .home-page--flux-assets .region-hub-card__silhouette-video {
    filter: var(--hub-silhouette-video-filter-dark, invert(1) contrast(1.3) brightness(0.9));
    mix-blend-mode: var(--hub-silhouette-video-blend-dark, lighten);
  }

  .home-page--flux-assets .region-hub-card__overlay {
    top: 0;
    right: 0;
    bottom: var(--region-hub-card-footer-height);
    left: 0;
    height: auto;
    background:
      linear-gradient(180deg, rgba(8, 12, 20, 0.16) 0%, rgba(8, 12, 20, 0.44) 52%, rgba(8, 12, 20, 0.2) 100%),
      radial-gradient(circle at 50% 105%, color-mix(in srgb, var(--hub-accent, var(--home-accent)) 24%, transparent 76%), transparent 56%);
  }

  .home-page--flux-assets .region-hub-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    margin: 0;
    padding: 0.95rem 0.85rem 0.5rem;
    text-align: center;
  }

  .home-page--flux-assets .region-hub-card__footer {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: auto;
  }

  .home-page--flux-assets .region-hub-card__cta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.7rem 1rem;
    border: 0;
    border-top: 1px solid color-mix(in srgb, #fff 24%, var(--hub-accent, var(--home-accent)) 76%);
    border-radius: 0 0 calc(0.95rem - 1px) calc(0.95rem - 1px);
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--hub-accent, var(--home-accent)) 84%, #fff 8%),
        color-mix(in srgb, var(--hub-accent, var(--home-accent)) 70%, #000 30%)
      );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.01em;
  }

  .home-page--flux-assets .region-hub-card:hover .region-hub-card__cta,
  .home-page--flux-assets .region-hub-card:focus-visible .region-hub-card__cta {
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--hub-accent, var(--home-accent)) 90%, #fff 4%),
        color-mix(in srgb, var(--hub-accent, var(--home-accent)) 76%, #000 24%)
      );
  }

  .home-page--flux-assets .region-hub-card__text {
    display: block;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.25;
  }

  .home-page--flux-assets .region-hub-card__name {
    color: #fff;
    font-size: clamp(1.65rem, 2.6vw, 2.05rem);
    font-weight: 950;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }
}

.home-page--flux-assets .home-municipality-latest,
.home-page--flux-assets .home-most-read {
  padding: 1rem;
  border: 1px solid var(--home-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--home-card) 92%, transparent);
  box-shadow: var(--home-panel-shadow);
}

@media (min-width: 900px) {
  .home-page--flux-assets .home-municipality-latest,
  .home-page--flux-assets .home-most-read {
    padding: 1.5rem;
  }
}

.home-section-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.home-section-head__icon-wrap {
  display: inline-flex;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
}

.home-section-head__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  object-fit: contain;
}

/**
 * Section hero headers — editorial typography with a small accent mark.
 */
.home-section-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 0;
  margin: 0 0 0.85rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--region-border) 82%, var(--region-primary) 18%);
}

.home-sport-section > .home-section-hero {
  margin-bottom: 0.85rem;
}

.home-section-hero__content {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
}

.home-section-hero__mark {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0.48rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--region-primary) 10%, var(--region-bg-elevated) 90%);
  color: var(--region-primary);
  box-sizing: border-box;
}

.home-section-hero__mark-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.home-section-hero__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.home-section-hero__title {
  margin: 0;
  color: var(--region-text);
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-section-hero--most_read .home-section-hero__title,
.home-section-hero--sport .home-section-hero__title {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.home-section-hero__title-link {
  color: inherit;
  text-decoration: none;
}

.home-section-hero__title-link:hover,
.home-section-hero__title-link:focus-visible {
  color: var(--region-primary);
  text-decoration: underline;
}

.home-section-hero__lead {
  margin: 0;
  color: var(--region-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.home-section-hero__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-top: 0.1rem;
  color: var(--region-primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.home-section-hero__more:hover,
.home-section-hero__more:focus-visible {
  text-decoration: underline;
}

.home-page--flux-assets .home-section-hero {
  border-bottom-color: color-mix(in srgb, var(--home-border) 88%, var(--home-accent) 12%);
}

.home-page--flux-assets .home-section-hero__title {
  color: var(--home-text);
}

.home-page--flux-assets .home-section-hero__lead {
  color: var(--home-muted);
}

.home-page--flux-assets .home-section-hero__more {
  color: var(--home-accent);
}

.home-page--flux-assets .home-section-hero__mark {
  background: color-mix(in srgb, var(--home-accent) 12%, var(--home-card) 88%);
  color: var(--home-accent);
}

[data-theme="light"] .home-page--flux-assets .home-section-hero__mark {
  background: var(--home-accent-soft);
  color: var(--home-accent);
}

@media (min-width: 900px) {
  .home-section-hero__mark {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0.52rem;
  }
}

.sk-home-section-icon--dark {
  display: none;
}

html[data-theme='dark'] .sk-home-section-icon--light,
[data-theme='dark'] .sk-home-section-icon--light {
  display: none;
}

html[data-theme='dark'] .sk-home-section-icon--dark,
[data-theme='dark'] .sk-home-section-icon--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) .sk-home-section-icon--light,
  body:not([data-theme='light']) .sk-home-section-icon--light {
    display: none;
  }

  html:not([data-theme='light']) .sk-home-section-icon--dark,
  body:not([data-theme='light']) .sk-home-section-icon--dark {
    display: block;
  }
}

.home-page--flux-assets .home-municipality-card {
  border-color: var(--home-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.home-page--flux-assets .home-municipality-card__title {
  color: var(--home-text);
}

.home-page--flux-assets .home-municipality-card__date,
.home-page--flux-assets .home-municipality-card__excerpt {
  color: var(--home-muted);
}

.home-page--flux-assets .home-most-read__title {
  color: var(--home-text);
}

.home-page--flux-assets .home-most-read__date {
  color: var(--home-muted);
}

.home-page--flux-assets .home-most-read__rank {
  color: var(--home-accent);
}

/**
 * Light mode refinements — calmer elevation and no double-boxing.
 * The panels are tinted surfaces; the cards inside read as flat white
 * tiles via fill contrast + a hairline border, instead of stacking
 * multiple drop shadows on top of each other.
 */
[data-theme="light"] .home-page--flux-assets .home-municipality-latest,
[data-theme="light"] .home-page--flux-assets .home-most-read {
  border-color: color-mix(in srgb, var(--home-accent) 8%, var(--home-border) 92%);
  background: color-mix(in srgb, var(--region-primary) 4%, #ffffff 96%);
}

[data-theme="light"] .home-page--flux-assets .home-municipality-card {
  border-color: var(--region-border);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

[data-theme="light"] .home-page--flux-assets .home-municipality-card:hover,
[data-theme="light"] .home-page--flux-assets .home-municipality-card:focus-within {
  border-color: color-mix(in srgb, var(--municipality-accent, var(--region-primary)) 38%, var(--region-border) 62%);
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
}

/**
 * The ambient backdrop (home-ambient-bg.webp) is a dark charcoal image meant
 * for dark mode. In light mode it reads as a grey wash bleeding down from the
 * top of the page, so disable it there.
 */
[data-theme="light"] .home-page--flux-assets.home-page::before {
  display: none;
}

/**
 * Light theme: bright card surfaces with --hub-silhouette-light (dark ink lines).
 */
[data-theme="light"] .home-page--flux-assets .region-hub-card,
[data-theme="light"] .region-hub-card {
  color: var(--home-text, var(--region-text));
  border-color: color-mix(in srgb, var(--hub-accent, var(--region-primary)) 30%, var(--region-border) 70%);
  --hub-card-surface:
    radial-gradient(circle at 82% 42%, color-mix(in srgb, var(--hub-accent, var(--region-primary)) 14%, transparent 86%), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--hub-accent, var(--region-primary)) 10%, var(--region-bg-elevated, #fff) 90%), var(--region-bg, #f8fafc));
  background: var(--hub-card-surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .home-page--flux-assets .region-hub-card__silhouette,
[data-theme="light"] .region-hub-card__silhouette {
  background-image: var(--hub-silhouette-light, var(--hub-silhouette));
  mix-blend-mode: normal;
  opacity: 1;
}

[data-theme="light"] .home-page--flux-assets .region-hub-card__overlay,
[data-theme="light"] .region-hub-card__overlay {
  background: none;
}

[data-theme="light"] .region-hub-card__name,
[data-theme="light"] .home-page--flux-assets .region-hub-card__name {
  color: var(--home-text, var(--region-text));
}

@media (min-width: 900px) {
  [data-theme="light"] .home-page--flux-assets .region-hub-card {
    --hub-card-surface:
      radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--hub-accent, var(--home-accent)) 18%, transparent 82%), transparent 52%),
      linear-gradient(180deg, color-mix(in srgb, var(--home-card, #fff) 92%, var(--hub-accent) 8%) 0%, color-mix(in srgb, var(--home-bg, #f8fafc) 88%, var(--hub-accent) 12%) 100%);
    background: var(--hub-card-surface);
    box-shadow: var(--home-panel-shadow, 0 10px 24px rgba(15, 23, 42, 0.08));
  }

  [data-theme="light"] .home-page--flux-assets .region-hub-card__silhouette-stage {
    --hub-silhouette-bg-pos: center bottom;
    --hub-silhouette-video-y: 0;
    --hub-silhouette-video-active-opacity: 1;
  }

  [data-theme="light"] .home-page--flux-assets .region-hub-card__silhouette {
    background-image: var(--hub-silhouette-light, var(--hub-silhouette));
    mix-blend-mode: normal;
    opacity: 1;
    transform: none;
  }

  [data-theme="light"] .home-page--flux-assets .region-hub-card__silhouette-video {
    filter: var(--hub-silhouette-video-filter-light, contrast(1.16) brightness(1.03));
    mix-blend-mode: var(--hub-silhouette-video-blend-light, darken);
  }

  [data-theme="light"] .home-page--flux-assets .region-hub-card__overlay {
    background: none;
  }

  [data-theme="light"] .home-page--flux-assets .region-hub-card__text {
    color: var(--home-muted);
  }

  [data-theme="light"] .region-hub-card {
    --hub-card-surface:
      radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--hub-accent) 18%, transparent 82%), transparent 58%),
      linear-gradient(180deg, color-mix(in srgb, var(--hub-accent) 8%, var(--region-bg-elevated) 92%) 0%, var(--region-bg) 100%);
    background: var(--hub-card-surface);
  }

  [data-theme="light"] .region-hub-card__silhouette {
    opacity: 1;
    transform: none;
  }

  [data-theme="light"] .region-hub-card__overlay {
    background: none;
  }

  [data-theme="light"] .region-hub-card__text {
    color: var(--region-text-muted);
  }
}

/* -------------------------------------------------------------------------- */
/* Homepage hub layout (navigation-first startsida)                             */
/* -------------------------------------------------------------------------- */

.home-page--hub {
  --hub-bg: #ffffff;
  --hub-panel: #f9f9f9;
  --hub-text: #1a1a1a;
  --hub-muted: #5f6b7a;
  --hub-accent: #ff6600;
  --hub-radius: 8px;
  --hub-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -18px rgba(15, 23, 42, 0.2);
}

[data-theme="dark"] .home-page--hub {
  --hub-bg: var(--home-bg, #0b0d0f);
  --hub-panel: var(--home-card, #121518);
  --hub-text: var(--home-text, #f8fafc);
  --hub-muted: var(--home-muted, rgba(255, 255, 255, 0.68));
  --hub-accent: var(--home-accent, #f97316);
}

.home-hub {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin-inline: auto;
  width: calc(100% - 32px);
}

.home-hub__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.home-hub__block--hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

/* Tidningslayout: egen grid, inte gamla huvudspalten med sidostapel. */
@media (min-width: 1025px) {
  .main-wrapper:has(.home-page--hub) {
    max-width: 84rem;
    width: min(100% - clamp(3rem, 5vw, 6rem), 84rem);
    padding-inline: clamp(1rem, 1.5vw, 1.5rem);
    padding-top: clamp(2rem, 2.8vw, 3rem);
    padding-bottom: clamp(1.75rem, 2.4vw, 2.75rem);
    margin-inline: auto;
  }

  .home-page--hub .home-hub {
    max-width: none;
    width: 100%;
    margin-inline: 0;
  }

  .home-hub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "hero rail"
      "municipality rail"
      "local-news rail"
      "theme rail"
      "media rail"
      "admid rail"
      "sport rail"
      "events rail"
      "weather rail";
    align-items: start;
    gap: 1.75rem clamp(2rem, 3vw, 3.25rem);
  }

  .home-hub__main {
    display: contents;
  }

  .home-hub__block--hero {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    grid-area: hero;
  }

  .home-hub__block--municipality {
    grid-area: municipality;
  }

  .home-hub__block--local-news {
    grid-area: local-news;
  }

  .home-hub__block--theme {
    grid-area: theme;
  }

  .home-hub__block--media {
    grid-area: media;
  }

  .home-hub__block--ad-mid {
    grid-area: admid;
  }

  .home-hub__block--sport {
    grid-area: sport;
  }

  .home-hub__block--events {
    grid-area: events;
  }

  .home-hub__block--weather-traffic {
    grid-area: weather;
  }

  .home-hub__rail {
    grid-area: rail;
    justify-self: end;
    position: sticky;
    top: clamp(1rem, 1.8vh, 1.75rem);
    width: 300px;
    min-width: 0;
  }
}

/* Bred skärm: huvudspalten får mer arbetsyta utan att railen lämnar ramen. */
@media (min-width: 1480px) {
  .main-wrapper:has(.home-page--hub) {
    max-width: 86rem;
    width: min(100% - clamp(3.5rem, 7vw, 9rem), 86rem);
    padding-inline: clamp(1.25rem, 2vw, 2rem);
  }

  .home-page--hub .home-hub {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.75rem clamp(2.5rem, 3.2vw, 3.75rem);
    margin-inline: 0;
    width: 100%;
  }

  .home-hub__rail {
    justify-self: end;
  }
}

.home-upcoming-live__ribbon {
  margin: 0;
}

.home-upcoming-live__ribbon .news-teaser--live-broadcast {
  margin-bottom: 0;
}

.home-hub__rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1025px) {
  .home-hub__rail {
    gap: 1rem;
    padding-top: 0.15rem;
  }
}

.home-play-listen {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hub-accent, #ff6600) 26%, rgba(15, 23, 42, 0.14) 74%);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--hub-accent, #ff6600) 20%, transparent 80%), transparent 34%),
    linear-gradient(135deg, #101318 0%, #171b22 56%, #111827 100%);
  box-shadow: var(--hub-shadow);
  color: #fff;
  padding: clamp(1rem, 2.4vw, 1.35rem);
}

.home-play-listen--linked {
  position: relative;
  cursor: pointer;
}

.home-play-listen__cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
}

.home-play-listen--linked .home-play-listen__intro,
.home-play-listen--linked .home-play-listen__list {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.home-play-listen--linked .home-play-listen__more,
.home-play-listen--linked .home-play-listen__play,
.home-play-listen--linked .home-play-listen__open {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.home-play-listen--linked:focus-within {
  outline: 2px solid color-mix(in srgb, var(--hub-accent, #ff6600) 70%, #fff 30%);
  outline-offset: 2px;
}

.home-play-listen__cover-link:focus-visible {
  outline: none;
}

@media (min-width: 860px) {
  .home-play-listen {
    grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.55fr);
    align-items: stretch;
  }
}

.home-play-listen__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.home-play-listen__eyebrow {
  margin: 0;
  color: color-mix(in srgb, var(--hub-accent, #ff6600) 82%, #fff 18%);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-play-listen__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.05;
}

.home-play-listen__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-play-listen__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  background: var(--hub-accent, #ff6600);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.home-play-listen__list {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 700px) {
  .home-play-listen__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-play-listen__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
}

.home-play-listen__item--image {
  background: rgba(11, 18, 32, 0.96);
  border-color: rgba(255, 255, 255, 0.16);
  isolation: isolate;
}

.home-play-listen__item--image::before,
.home-play-listen__item--image::after {
  border-radius: inherit;
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.home-play-listen__item--image::before {
  background-image: var(--home-play-card-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: -2px;
}

.home-play-listen__item--image::after {
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.76) 100%);
  inset: -2px;
}

.home-play-listen__item > * {
  position: relative;
  z-index: 1;
}

.home-play-listen__item-icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8rem;
}

.home-play-listen__item-body {
  min-width: 0;
}

.home-play-listen__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: color-mix(in srgb, var(--hub-accent, #ff6600) 70%, #fff 30%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-play-listen__item-title {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.22;
}

.home-play-listen__item-description {
  display: -webkit-box;
  margin: 0.35rem 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.83rem;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-play-listen__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.home-play-listen__play,
.home-play-listen__open {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.home-play-listen__play {
  border: 0;
  background: #fff;
  color: #111827;
  cursor: pointer;
}

.home-play-listen__open {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

[data-theme="light"] .home-play-listen {
  border-color: color-mix(in srgb, var(--hub-accent, #ff6600) 28%, rgba(15, 23, 42, 0.14) 72%);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--hub-accent, #ff6600) 14%, transparent 86%), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f8fafc 56%, #f1f5f9 100%);
  color: var(--hub-text, #111827);
}

[data-theme="light"] .home-play-listen__title,
[data-theme="light"] .home-play-listen__item-title {
  color: var(--hub-text, #111827);
}

[data-theme="light"] .home-play-listen__lead,
[data-theme="light"] .home-play-listen__item-description {
  color: var(--hub-muted, #5f6b7a);
}

[data-theme="light"] .home-play-listen__item {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .home-play-listen__item--image {
  background: rgba(255, 255, 255, 0.96);
}

[data-theme="light"] .home-play-listen__item--image::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 100%);
}

[data-theme="light"] .home-play-listen__item-icon {
  background: color-mix(in srgb, var(--hub-accent, #ff6600) 12%, #fff 88%);
  color: var(--hub-accent, #ea580c);
}

[data-theme="light"] .home-play-listen__play {
  background: var(--hub-accent, #ea580c);
  color: #fff;
}

[data-theme="light"] .home-play-listen__open {
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--hub-text, #111827);
}

/* Play-översikt: brief först, artiklar i karusell och övrigt innehåll sist. */
.home-play-listen {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.8rem);
  padding: clamp(1rem, 2.6vw, 1.5rem);
}

.home-play-listen__header,
.home-play-listen__group-head {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.home-play-listen__header > div,
.home-play-listen__group-head > div {
  min-width: 0;
}

.home-play-listen__header .home-play-listen__more {
  flex: 0 0 auto;
  margin-top: 0;
}

.home-play-listen__brief {
  align-items: stretch;
  background:
    linear-gradient(115deg, rgba(10, 17, 31, 0.2), rgba(10, 17, 31, 0.84)),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(0, 1.22fr);
  min-height: 190px;
  overflow: hidden;
}

.home-play-listen__brief-image {
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  width: 100%;
}

.home-play-listen__brief-body {
  align-self: center;
  padding: clamp(1rem, 2.4vw, 1.4rem);
}

.home-play-listen__brief-title {
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.12;
  margin: 0.35rem 0 0;
}

.home-play-listen__brief-description {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.55rem 0 0;
}

.home-play-listen__brief-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.home-play-listen__play--primary {
  gap: 0.45rem;
  min-height: 2.4rem;
  padding-inline: 0.85rem;
}

.home-play-listen__group {
  min-width: 0;
}

.home-play-listen__upcoming {
  min-width: 0;
}

.home-play-listen__upcoming-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.home-play-listen__upcoming-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
}

.home-play-listen__upcoming-card:hover,
.home-play-listen__upcoming-card:focus-visible {
  border-color: color-mix(in srgb, var(--hub-accent, #ff6600) 55%, rgba(255, 255, 255, 0.2));
  outline: none;
}

.home-play-listen__upcoming-media {
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--hub-accent, #ff6600) 18%, #0a111f 82%);
  display: block;
  overflow: hidden;
  position: relative;
}

.home-play-listen__upcoming-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-play-listen__upcoming-badge {
  background: var(--hub-accent, #ff6600);
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  left: 10px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  position: absolute;
  text-transform: uppercase;
  top: 10px;
}

.home-play-listen__upcoming-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.home-play-listen__upcoming-kicker {
  color: color-mix(in srgb, var(--hub-accent, #ff6600) 78%, #fff 22%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-play-listen__upcoming-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-play-listen__upcoming-when {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
}

.home-play-listen__group + .home-play-listen__group {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.3rem;
}

.home-play-listen__group-kicker {
  color: color-mix(in srgb, var(--hub-accent, #ff6600) 78%, #fff 22%);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.home-play-listen__group-head h3 {
  color: #fff;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.2;
  margin: 0;
}

.home-play-listen__carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.home-play-listen__carousel-controls button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  height: 2.25rem;
  justify-content: center;
  padding: 0;
  width: 2.25rem;
}

.home-play-listen__carousel-controls button:disabled {
  cursor: default;
  opacity: 0.35;
}

.home-play-listen__carousel {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.15rem 0 0.5rem;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.home-play-listen__card {
  background: rgba(8, 15, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: grid;
  flex: 0 0 min(42%, 245px);
  grid-template-rows: auto 1fr;
  min-height: 245px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
}

.home-play-listen__card-media {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.home-play-listen__card-media--empty {
  aspect-ratio: 16 / 9;
  background:
    url("../images/play/skillingaryd-play-icon.webp") center / min(68px, 36%) no-repeat,
    rgba(8, 15, 28, 0.82);
}

.home-play-listen__card-image {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 0.22s ease;
  width: 100%;
}

.home-play-listen__card-overlay {
  align-items: center;
  background: rgba(7, 11, 18, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 0.65rem;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.18s ease, background 0.18s ease;
  z-index: 2;
}

.home-play-listen__card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.85rem;
}

.home-play-listen__card-title,
.home-play-listen__more-title {
  color: #fff;
  display: -webkit-box;
  font-size: 0.96rem;
  line-height: 1.25;
  margin: 0.32rem 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-play-listen__card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.home-play-listen__play--overlay,
.home-play-listen__open--overlay {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  min-height: 2.35rem;
  padding-inline: 0.85rem;
  transform: translateY(6px) scale(0.96);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.18s ease;
}

.home-play-listen__play--overlay {
  background: var(--hub-accent, #ff6600);
  color: #fff;
  gap: 0.4rem;
}

.home-play-listen__open--overlay {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.home-play-listen__play-mark--compact {
  display: block;
  flex-shrink: 0;
  height: 1.35rem;
  width: 1.35rem;
}

.home-play-listen__play--overlay .sk-play-brand-mark__ring {
  stroke: rgba(255, 255, 255, 0.92);
}

.home-play-listen__more-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.home-play-listen__more-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.home-play-listen__media {
  appearance: none;
  background:
    url("../images/play/skillingaryd-play-icon.webp") center / min(68px, 36%) no-repeat,
    rgba(8, 15, 28, 0.82);
  border: 0;
  cursor: pointer;
  display: block;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.home-play-listen__media--static {
  cursor: default;
}

.home-play-listen__media-image,
.home-play-listen__more-image {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 0.22s ease;
  width: 100%;
}

.home-play-listen__media-overlay {
  align-items: center;
  background: rgba(7, 11, 18, 0.52);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.18s ease, background 0.18s ease;
}

.home-play-listen__play-mark {
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.35));
  transform: scale(0.92);
  transition: transform 0.18s ease;
}

.home-play-listen__more-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 0.8rem;
}

@media (hover: hover) and (pointer: fine) {
  .home-play-listen__card:hover .home-play-listen__card-overlay,
  .home-play-listen__card:focus-within .home-play-listen__card-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .home-play-listen__card:hover .home-play-listen__play--overlay,
  .home-play-listen__card:hover .home-play-listen__open--overlay,
  .home-play-listen__card:focus-within .home-play-listen__play--overlay,
  .home-play-listen__card:focus-within .home-play-listen__open--overlay {
    transform: translateY(0) scale(1);
  }

  .home-play-listen__card:hover .home-play-listen__card-image,
  .home-play-listen__card:focus-within .home-play-listen__card-image {
    transform: scale(1.025);
  }

  .home-play-listen__more-card:hover .home-play-listen__media-overlay,
  .home-play-listen__more-card:focus-within .home-play-listen__media-overlay,
  .home-play-listen__media:hover .home-play-listen__media-overlay,
  .home-play-listen__media:focus-visible .home-play-listen__media-overlay {
    opacity: 1;
  }

  .home-play-listen__more-card:hover .home-play-listen__play-mark,
  .home-play-listen__more-card:focus-within .home-play-listen__play-mark,
  .home-play-listen__media:hover .home-play-listen__play-mark,
  .home-play-listen__media:focus-visible .home-play-listen__play-mark {
    transform: scale(1.04);
  }

  .home-play-listen__more-card:hover .home-play-listen__media-image,
  .home-play-listen__more-card:focus-within .home-play-listen__media-image {
    transform: scale(1.025);
  }
}

@media (hover: none) {
  .home-play-listen__media-overlay {
    background: rgba(7, 11, 18, 0.28);
    opacity: 1;
  }

  /* Telefon: knapparna syns alltid så man slipper förlita sig på hover. */
  .home-play-listen__card-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 11, 18, 0.08) 0%,
      rgba(7, 11, 18, 0.22) 42%,
      rgba(7, 11, 18, 0.62) 100%
    );
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    pointer-events: auto;
    align-items: flex-end;
    padding: 0.55rem;
  }

  .home-play-listen__play--overlay,
  .home-play-listen__open--overlay {
    min-height: 2.1rem;
    padding-inline: 0.7rem;
    transform: none;
  }

  .home-play-listen__play-mark--compact {
    height: 1.2rem;
    width: 1.2rem;
  }
}

@media (max-width: 699px) {
  .home-play-listen__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-play-listen__brief {
    grid-template-columns: 1fr;
  }

  .home-play-listen__brief-image {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .home-play-listen__card {
    flex-basis: min(78vw, 260px);
  }

  .home-play-listen__more-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    scroll-snap-type: x proximity;
  }

  .home-play-listen__more-card {
    flex: 0 0 min(76vw, 250px);
    scroll-snap-align: start;
  }

  .home-play-listen__upcoming-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    scroll-snap-type: x proximity;
  }

  .home-play-listen__upcoming-card {
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
  }
}

[data-theme="light"] .home-play-listen__brief {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .home-play-listen__brief-title,
[data-theme="light"] .home-play-listen__group-head h3,
[data-theme="light"] .home-play-listen__card-title,
[data-theme="light"] .home-play-listen__more-title,
[data-theme="light"] .home-play-listen__upcoming-title {
  color: var(--hub-text, #111827);
}

[data-theme="light"] .home-play-listen__brief-description {
  color: var(--hub-muted, #5f6b7a);
}

[data-theme="light"] .home-play-listen__upcoming-when {
  color: var(--hub-muted, #5f6b7a);
}

[data-theme="light"] .home-play-listen__upcoming-kicker {
  color: var(--hub-accent, #ff6600);
}

[data-theme="light"] .home-play-listen__group + .home-play-listen__group {
  border-top-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .home-play-listen__carousel-controls button {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--hub-text, #111827);
}

[data-theme="light"] .home-play-listen__card,
[data-theme="light"] .home-play-listen__more-card,
[data-theme="light"] .home-play-listen__upcoming-card {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .home-play-listen__media {
  background:
    url("../images/play/skillingaryd-play-icon.webp") center / min(68px, 36%) no-repeat,
    color-mix(in srgb, #f3f4f6 88%, #d1d5db 12%);
}

[data-theme="light"] .home-play-listen__media-overlay {
  background: rgba(15, 23, 42, 0.42);
}

[data-theme="light"] .home-play-listen__card-overlay {
  background: rgba(15, 23, 42, 0.52);
}

[data-theme="light"] .home-play-listen__open--overlay {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #111827;
}

@media (hover: none) {
  [data-theme="light"] .home-play-listen__card-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.06) 0%,
      rgba(15, 23, 42, 0.2) 42%,
      rgba(15, 23, 42, 0.55) 100%
    );
  }
}

.home-hub__block--ad-top,
.home-hub__block--ad-mid {
  margin-block: 0;
}

/* Förstasidesannons-pool: bred yta i huvudspalten. Rekommenderad bild: 1200×300 px. */
.home-hub__block--ad-top .home-front-page-ad-pool,
.home-hub__block--ad-mid .home-front-page-ad-pool {
  margin-block: 0;
}

.home-hub__block--ad-top .home-front-page-ad-pool .sk-banner-frame,
.home-hub__block--ad-mid .home-front-page-ad-pool .sk-banner-frame {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.home-hub__block--ad-top .ad--content,
.home-hub__block--ad-mid .ad--content {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  background: var(--hub-panel, #f9f9f9);
  border-radius: var(--hub-radius, 8px);
  overflow: hidden;
}

/*
 * Wide desktop creatives (e.g. 1024×259) must stay fully visible on phones.
 * cover + fixed height was cropping left/right text and brand.
 */
.home-hub__block--ad-top .ad--content img,
.home-hub__block--ad-mid .ad--content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #111827;
}

@media (min-width: 1025px) {
  .home-hub__block--ad-top .ad--content img,
  .home-hub__block--ad-mid .ad--content img {
    max-height: 250px;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
  }
}


.home-mobile-weather-strip {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: var(--hub-panel, #f9f9f9);
  border-bottom: 1px solid var(--hub-border, rgba(15, 23, 42, 0.08));
  color: var(--hub-text, #1a1a1a);
}

@media (min-width: 1025px) {
  .home-mobile-weather-strip {
    display: none;
  }
}

/* Breaking bar: ljus strip med orange JUST NU-pill (mockup) */
.home-breaking-bar {
  background: color-mix(in srgb, var(--hub-accent, #ff6600) 9%, var(--hub-bg, #fff) 91%);
  border: 1px solid color-mix(in srgb, var(--hub-accent, #ff6600) 28%, transparent 72%);
  border-radius: var(--hub-radius, 8px);
  color: var(--hub-text, #1a1a1a);
}

.home-breaking-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
}

.home-breaking-bar__label {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--hub-accent, #ff6600);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.home-breaking-bar__link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.home-breaking-bar__text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-breaking-bar__more {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hub-accent, #ff6600);
  white-space: nowrap;
}

.home-breaking-bar__dismiss {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--hub-muted, #5f6b7a);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
}

/* Hero split */
.home-hero-split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .home-hero-split {
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(1.15rem, 1.5vw, 1.5rem);
  }

  /* Hjälten fyller alltid hela radhöjden så den dominerar över Senaste nytt */
  .home-hero-split__main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .home-hero-split__slides {
    flex: 1 1 auto;
    display: flex;
  }

  .home-hero-split__slide.is-active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }

  .home-hero-split__slide.is-active .news-teaser--hero-hub,
  .home-hero-split__slide.is-active .news-teaser__link--featured,
  .home-hero-split__slide.is-active .news-teaser__inner--featured {
    height: 100%;
  }

  .home-hero-split__slide.is-active .news-teaser--hero-hub .news-teaser__inner--featured {
    min-height: 0;
  }

  .home-hero-split__aside {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .home-hero-split__aside .home-headlines-list {
    flex: 1 1 auto;
  }
}

@media (min-width: 1025px) {
  .home-hero-split {
    grid-template-columns: minmax(0, 6.5fr) minmax(280px, 3.5fr);
    gap: clamp(1.35rem, 1.8vw, 2rem);
  }

  .home-hub__block--hero {
    min-width: 0;
  }
}

.home-hero-split__slide[hidden] {
  display: none !important;
}

.news-teaser--hero-hub {
  border: 0;
  border-radius: 10px;
  background: #0b0d0f;
  box-shadow: var(--hub-shadow);
  overflow: hidden;
}

.news-teaser--hero-hub .news-teaser__link--featured {
  display: block;
  padding: 0;
}

.news-teaser--hero-hub .news-teaser__team-strip,
.news-teaser--hero-hub .news-teaser__play-header,
.news-teaser--hero-hub .news-teaser__play-button,
.news-teaser--hero-hub .news-teaser__valar-note {
  display: none;
}

.news-teaser--hero-hub .news-teaser__inner--featured {
  display: block;
  position: relative;
  flex-direction: unset;
  gap: 0;
  min-height: clamp(18rem, 30vw, 27rem);
}

@media (min-width: 1025px) {
  .news-teaser--hero-hub .news-teaser__inner--featured {
    min-height: clamp(30rem, 44vw, 36rem);
  }
}

.news-teaser--hero-hub .news-teaser__media--featured {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  border-radius: 10px;
  margin: 0;
}

.news-teaser--hero-hub .news-teaser__media--featured img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-teaser--hero-hub .news-teaser__body--featured {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2vw, 1.35rem);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.88) 100%);
  border-radius: 0 0 10px 10px;
  color: #fff;
}

/* Per-slide region accent (article data-region), not hub-page accent. */
.news-teaser--hero-hub[data-region="varnamo"],
.news-teaser--hero-hub[data-region="skillingaryd"],
.news-teaser--hero-hub[data-region="gnosjo"] {
  --hero-teaser-accent: var(--region-primary);
  --hero-teaser-accent-hover: var(--region-primary-hover);
}

.news-teaser--hero-hub .news-teaser__featured-label {
  position: static;
  display: inline-block;
  background: var(--hero-teaser-accent, var(--region-primary, var(--hub-accent, #ff6600)));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.news-teaser--hero-hub .news-teaser__title--featured {
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  margin: 0.25rem 0 0.4rem;
  max-width: none;
  -webkit-line-clamp: 4;
}

@media (min-width: 640px) {
  .news-teaser--hero-hub .news-teaser__title--featured {
    -webkit-line-clamp: 4;
  }
}

@media (min-width: 1025px) {
  .news-teaser--hero-hub .news-teaser__title--featured {
    font-size: clamp(2.25rem, 3.4vw, 3.15rem);
    line-height: 1.05;
    max-width: min(22em, 100%);
    -webkit-line-clamp: 4;
  }
}

.news-teaser--hero-hub .news-teaser__excerpt--featured {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 0.4rem;
  max-width: 60ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-teaser--hero-hub .news-teaser__meta,
.news-teaser--hero-hub .news-teaser__date,
.news-teaser--hero-hub .news-teaser__comments {
  color: rgba(255, 255, 255, 0.82);
}

/* Mockup: bara kommun-taggen + datum i hjälten. Dölj dubbla badges och kommentarer. */
.news-teaser--hero-hub .news-teaser__badge,
.news-teaser--hero-hub .news-teaser__comments {
  display: none;
}

.news-teaser--hero-hub .news-teaser__body--featured {
  padding-right: clamp(8rem, 16vw, 11rem);
}

@media (max-width: 640px) {
  .news-teaser--hero-hub .news-teaser__body--featured {
    padding-right: clamp(1rem, 2.5vw, 1.5rem);
  }
}

.news-teaser--hero-hub .news-teaser__hero-cta {
  position: absolute;
  right: clamp(1rem, 2.5vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.35rem);
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  background: var(--hero-teaser-accent, var(--region-primary, var(--hub-accent, #ff6600)));
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.news-teaser--hero-hub .news-teaser__link--featured:hover .news-teaser__hero-cta,
.news-teaser--hero-hub .news-teaser__link--featured:focus-visible .news-teaser__hero-cta {
  background: var(--hero-teaser-accent-hover, var(--region-primary-hover, var(--hero-teaser-accent, var(--hub-accent, #ff6600))));
}

@media (max-width: 640px) {
  .news-teaser--hero-hub .news-teaser__hero-cta {
    position: static;
    margin-top: 0.6rem;
  }
}

.home-hero-split__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.home-hero-split__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.2);
  cursor: pointer;
}

.home-hero-split__dot.is-active {
  background: var(--hub-accent, #ff6600);
}

/* Headlines list */
.home-headlines-list {
  background: var(--hub-panel, #f9f9f9);
  border-radius: var(--hub-radius, 8px);
  padding: 1rem;
  box-shadow: var(--hub-shadow);
}

@media (min-width: 1025px) {
  .home-hero-split__aside .home-headlines-list {
    padding: clamp(1.15rem, 1.6vw, 1.35rem);
    border: 1px solid rgba(15, 23, 42, 0.08);
  }
}

.home-headlines-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 1025px) {
  .home-headlines-list__header {
    margin-bottom: 0.9rem;
  }
}

.home-headlines-list__title {
  margin: 0;
  font-size: 1rem;
  color: var(--hub-text, #1a1a1a);
}

.home-headlines-list__more {
  font-size: 0.8125rem;
  color: var(--hub-accent, #ff6600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.home-headlines-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.home-headlines-list__item {
  margin: 0;
  padding: 0;
  border: 0;
}

.home-headlines-list__card {
  align-items: start;
  color: inherit;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  min-width: 0;
  text-decoration: none;
}

.home-headlines-list__card:hover .home-headlines-list__headline,
.home-headlines-list__card:focus-visible .home-headlines-list__headline {
  color: var(--hub-accent, #ff6600);
}

.home-headlines-list__media {
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--hub-muted, #5f6b7a) 18%, transparent);
  border-radius: 0.55rem;
  display: block;
  overflow: hidden;
  width: 100%;
}

.home-headlines-list__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-headlines-list__media--empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hub-accent, #ff6600) 22%, transparent), transparent 62%),
    color-mix(in srgb, var(--hub-muted, #5f6b7a) 16%, transparent);
}

.home-headlines-list__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.home-headlines-list__time {
  font-size: 0.72rem;
  color: var(--hub-muted, #5f6b7a);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-headlines-list__headline {
  color: var(--hub-text, #1a1a1a);
  display: -webkit-box;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.28;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-headlines-list__preview {
  color: var(--hub-muted, #5f6b7a);
  display: -webkit-box;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-headlines-list--compact .home-headlines-list__media {
  border-radius: 0.45rem;
}

.home-headlines-list--compact .home-headlines-list__card {
  gap: 0.6rem;
  grid-template-columns: 3.75rem minmax(0, 1fr);
}

.home-headlines-list--compact .home-headlines-list__headline {
  font-size: 0.86rem;
}

.home-headlines-list--compact .home-headlines-list__preview {
  -webkit-line-clamp: 1;
  font-size: 0.74rem;
}

@media (min-width: 1025px) {
  .home-hero-split__aside .home-headlines-list__items {
    gap: 0.8rem;
  }

  .home-hero-split__aside .home-headlines-list__card {
    gap: 0.8rem;
    grid-template-columns: 5.25rem minmax(0, 1fr);
  }

  .home-hero-split__aside .home-headlines-list__headline {
    font-size: 0.96rem;
  }

  .home-hero-split__aside .home-headlines-list__preview {
    font-size: 0.8rem;
  }
}

.home-hub__block--headlines-mobile {
  display: block;
}

.home-hub__block--headlines-desktop,
.home-hero-split__aside {
  display: none;
}

@media (min-width: 900px) {
  .home-hub__block--headlines-mobile {
    display: none;
  }

  .home-hero-split__aside {
    display: block;
  }
}

/*
 * Cache-safe dual SSR for the home hub.
 * Both mobile and desktop trees are in the HTML; viewport CSS picks one.
 * Do not gate these blocks on wp_is_mobile() when full-page cache is shared.
 */
.home-hub__ssr-mobile {
  display: block;
}

.home-hub__ssr-desktop {
  display: none;
}

.home-hub__rail.home-hub__ssr-desktop {
  display: none;
}

@media (min-width: 1025px) {
  .home-hub__ssr-mobile {
    display: none !important;
  }

  .home-hub__ssr-desktop {
    display: block;
  }

  .home-hub__rail.home-hub__ssr-desktop {
    display: flex;
  }
}

/* Municipality hub: primär konverteringssektion, korten ska kännas som destinationer */
.home-municipality-hub__title {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hub-text, #1a1a1a);
}

@media (min-width: 1025px) {
  .home-municipality-hub__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
  }

  .home-municipality-hub__title {
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    letter-spacing: -0.02em;
    text-transform: none;
  }
}

.home-municipality-hub__lead {
  margin: 0 0 0.75rem;
  color: var(--hub-muted, #5f6b7a);
  font-size: 0.875rem;
}

@media (min-width: 1025px) {
  .home-municipality-hub__lead {
    max-width: 30rem;
    margin-bottom: 1rem;
    font-size: 1rem;
  }
}

.home-municipality-hub__grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .home-municipality-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-municipality-hub__card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 9.5rem;
  padding: 0;
  border-radius: 10px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--hub-accent, #ff6600) 11%, var(--hub-bg, #fff) 89%) 0%,
      var(--hub-bg, #fff) 62%);
  box-shadow: var(--hub-shadow);
  text-decoration: none;
  color: var(--hub-text, #1a1a1a);
  border: 1px solid color-mix(in srgb, var(--hub-accent, #ff6600) 30%, transparent 70%);
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.home-municipality-hub__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 42%);
  gap: 0.5rem;
  align-items: center;
  min-height: 6.5rem;
  overflow: hidden;
  padding: 1.05rem 0.85rem 1.05rem 1.1rem;
}

.home-municipality-hub__silhouette-video {
  display: none;
}

@media (min-width: 1025px) {
  .home-municipality-hub__card {
    --hub-silhouette-media-width: 112%;
    --hub-silhouette-bg-size: 108% auto;
    --hub-silhouette-bg-pos: center bottom;
    --hub-silhouette-video-y: 0;
    --hub-silhouette-video-scale: 1;
    --hub-silhouette-video-scale-x: var(--hub-silhouette-video-scale, 1);
    --hub-silhouette-video-scale-y: var(--hub-silhouette-video-scale, 1);
    --hub-silhouette-video-filter-light: contrast(1.16) brightness(1.03);
    --hub-silhouette-video-filter-dark: invert(1) contrast(1.3) brightness(0.9);
    --hub-silhouette-video-blend-light: darken;
    --hub-silhouette-video-blend-dark: lighten;
    --hub-silhouette-video-active-opacity: 0.82;
    min-height: clamp(15.75rem, 24vw, 18.75rem);
    border-width: 2px;
    border-radius: 1.05rem;
    background:
      radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--hub-accent, #ff6600) 24%, transparent 76%), transparent 54%),
      linear-gradient(180deg, #171a17 0%, #090d0f 100%);
    color: #fff;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--hub-accent, #ff6600) 18%, transparent 82%),
      0 18px 36px -28px rgba(0, 0, 0, 0.95);
  }

  .home-municipality-hub__stage {
    display: block;
    min-height: clamp(12.75rem, 21vw, 15.75rem);
    padding: 0;
  }

  .home-municipality-hub__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.15rem 1rem;
    text-align: center;
  }
}

@media (min-width: 1025px) {
  [data-theme="light"] .home-municipality-hub__card {
    --hub-silhouette-video-active-opacity: 1;
    background:
      radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--hub-accent, #ff6600) 18%, transparent 82%), transparent 58%),
      linear-gradient(180deg, color-mix(in srgb, var(--hub-bg, #fff) 92%, var(--hub-accent, #ff6600) 8%) 0%, color-mix(in srgb, var(--hub-bg, #f8fafc) 88%, var(--hub-accent, #ff6600) 12%) 100%);
    color: var(--hub-text, #1a1a1a);
    box-shadow: var(--hub-shadow);
  }
}

.home-municipality-hub__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.08), 0 16px 36px -18px rgba(15, 23, 42, 0.3);
}

.home-municipality-hub__name {
  display: block;
  font-size: clamp(1.3rem, 1.6vw, 1.55rem);
  font-weight: 800;
  color: var(--hub-accent, #ff6600);
  line-height: 1.1;
}

@media (min-width: 1025px) {
  .home-municipality-hub__name {
    font-size: clamp(1.95rem, 2.7vw, 2.45rem);
    color: #fff;
  }

  [data-theme="light"] .home-municipality-hub__name {
    color: var(--hub-text, #1a1a1a);
  }
}

.home-municipality-hub__stats {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--hub-muted, #5f6b7a);
}

@media (min-width: 1025px) {
  .home-municipality-hub__stats {
    max-width: 14rem;
    margin-top: 0.55rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.94);
    background: color-mix(in srgb, var(--hub-accent, #ff6600) 22%, rgba(8, 12, 20, 0.42) 78%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 16%, transparent 84%);
  }

  [data-theme="light"] .home-municipality-hub__stats {
    color: color-mix(in srgb, var(--hub-text, #1a1a1a) 88%, var(--hub-accent, #ff6600) 12%);
    background: color-mix(in srgb, var(--hub-accent, #ff6600) 12%, var(--hub-bg, #fff) 88%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-accent, #ff6600) 24%, transparent 76%);
  }
}

.home-municipality-hub__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin: 0;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  border-radius: 0;
  background: var(--hub-accent, #ff6600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--hub-accent, #ff6600) 35%, transparent 65%);
}

@media (min-width: 1025px) {
  .home-municipality-hub__cta {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 100%;
    min-height: 3rem;
    padding: 0.72rem 1rem;
    border-radius: 0 0 calc(1.05rem - 2px) calc(1.05rem - 2px);
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--hub-accent, #ff6600) 92%, #fff 8%),
        color-mix(in srgb, var(--hub-accent, #ff6600) 78%, #000 22%)
      );
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

.home-municipality-hub__art {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
}

@media (min-width: 1025px) {
  .home-municipality-hub__art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    opacity: 1;
    pointer-events: none;
    isolation: isolate;
  }

  .home-municipality-hub__art::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(8, 12, 20, 0.08) 0%, rgba(8, 12, 20, 0.28) 42%, rgba(8, 12, 20, 0.72) 100%);
  }

  [data-theme="light"] .home-municipality-hub__art::after {
    background:
      linear-gradient(180deg, transparent 0%, transparent 52%, color-mix(in srgb, var(--hub-accent, #ff6600) 8%, transparent 92%) 100%);
  }
}

.home-municipality-hub__silhouette {
  display: block;
  width: 100%;
  height: clamp(6rem, 11vw, 8rem);
  background-image: var(--hub-silhouette-light, none);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  opacity: 0.95;
}

@media (min-width: 1025px) {
  .home-municipality-hub__silhouette {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hub-silhouette-dark, var(--hub-silhouette-light, none));
    background-size: var(--hub-silhouette-bg-size);
    background-position: var(--hub-silhouette-bg-pos);
    mix-blend-mode: screen;
    opacity: 0.82;
    transition: opacity 0.22s ease;
  }

  [data-theme="light"] .home-municipality-hub__silhouette {
    background-image: var(--hub-silhouette-light, none);
    mix-blend-mode: normal;
    opacity: 1;
  }

  .home-municipality-hub__silhouette-video {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 50%;
    display: block;
    width: var(--hub-silhouette-media-width);
    height: auto;
    max-height: none;
    background: transparent;
    transform: translateX(-50%) translateY(var(--hub-silhouette-video-y))
      scale(
        var(--hub-silhouette-video-scale-x, var(--hub-silhouette-video-scale, 1)),
        var(--hub-silhouette-video-scale-y, var(--hub-silhouette-video-scale, 1))
      );
    transform-origin: center bottom;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    filter: var(--hub-silhouette-video-filter-dark, invert(1) contrast(1.3) brightness(0.9));
    mix-blend-mode: var(--hub-silhouette-video-blend-dark, lighten);
  }

  [data-theme="light"] .home-municipality-hub__silhouette-video {
    filter: var(--hub-silhouette-video-filter-light, contrast(1.16) brightness(1.03));
    mix-blend-mode: var(--hub-silhouette-video-blend-light, darken);
  }

  .home-municipality-hub__card.is-silhouette-video-active .home-municipality-hub__silhouette-video {
    opacity: var(--hub-silhouette-video-active-opacity, 0.82);
  }

  .home-municipality-hub__card.is-silhouette-video-active .home-municipality-hub__silhouette {
    opacity: 0;
  }

  .home-municipality-hub__card--varnamo,
  .home-municipality-hub__card--gnosjo {
    --hub-silhouette-video-scale: 1.035;
  }

  .home-municipality-hub__card--skillingaryd {
    --hub-silhouette-video-filter-dark: invert(1) contrast(1.62) brightness(0.9);
  }
}

[data-theme="dark"] .home-municipality-hub__silhouette {
  background-image: var(--hub-silhouette-dark, var(--hub-silhouette-light, none));
}

/* Mest läst i kompaktläge */
.home-events-section--compact {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-events-section--compact .home-events-section__kicker {
  display: none;
}

.home-events-section--compact .home-events-section__header {
  min-height: 0;
  padding: 0 0 0.75rem;
  border: 0;
  background: none;
  align-items: center;
}

.home-events-section--compact .home-events-section__header::after {
  display: none;
}

.home-events-section--compact .home-events-section__header h2,
.home-events-section--compact .home-events-section__more {
  color: var(--hub-text, #1a1a1a);
  text-shadow: none;
}

.home-events-section--compact .home-events-section__grid {
  grid-template-columns: 1fr;
  padding: 0;
  gap: 0.6rem;
}

.home-events-section--compact .home-events-card {
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.home-events-section--compact .home-events-card__link {
  padding: 0;
}

.home-events-section--compact .home-events-card__body {
  padding: 0;
  gap: 0.2rem;
}

.home-events-section--compact .home-events-card__meta,
.home-events-section--compact .home-events-card__excerpt {
  display: none;
}

.home-events-section--compact .home-events-card__title {
  font-size: 0.9375rem;
  line-height: 1.3;
  margin: 0;
}

.home-events-section--compact .home-events-card__details {
  font-size: 0.8125rem;
  color: var(--hub-muted, #5f6b7a);
}

/* Mest läst i kompaktläge */
.home-most-read--compact .home-most-read__item {
  gap: 0.6rem;
}

.home-most-read--compact .home-most-read__title {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.home-most-read--compact .home-most-read__date {
  font-size: 0.75rem;
}

.home-most-read--compact .home-most-read__list,
.home-sport-section--compact .home-region-placements__grid,
.home-events-section--compact .home-events-section__grid {
  gap: 0.65rem;
}

.home-events-card--compact .home-events-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.home-events-card--compact .home-events-card__media {
  aspect-ratio: 3 / 4;
  max-height: 14rem;
}

.home-events-card--compact .home-events-card__image {
  object-fit: contain;
  object-position: top center;
}

.home-events-card__date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border-radius: 6px;
  background: var(--hub-panel, #f9f9f9);
  color: var(--hub-accent, #ff6600);
  font-weight: 700;
  line-height: 1.1;
}

.home-events-card__date-block-day {
  font-size: 1.125rem;
}

.home-events-card__date-block-mon {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

/* Kompakt Det händer: veckans affischer i carousel */
.home-events-section--posters .home-events-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding-bottom: 0.85rem;
}

.home-events-section--posters .home-events-section__header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.home-events-posters__nav {
  display: inline-flex;
  gap: 0.3rem;
}

.home-events-posters__btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--region-border) 80%, var(--region-primary) 20%);
  background: var(--hub-panel, var(--region-bg));
  color: var(--hub-text, var(--region-text));
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.home-events-posters__btn:hover,
.home-events-posters__btn:focus-visible {
  border-color: color-mix(in srgb, var(--region-primary) 45%, var(--region-border) 55%);
  color: var(--region-primary);
}

.home-events-posters__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.home-events-posters__viewport {
  overflow: hidden;
  border-radius: 0.9rem;
}

.home-events-posters__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

.home-events-posters__track::-webkit-scrollbar {
  display: none;
}

.home-events-posters__slide {
  flex: 0 0 min(72%, 16.5rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--region-border) 88%, var(--region-primary) 12%);
  background: var(--hub-panel, var(--region-bg));
  overflow: hidden;
}

.home-events-posters__slide:hover,
.home-events-posters__slide:focus-visible {
  text-decoration: none;
  color: inherit;
  border-color: color-mix(in srgb, var(--region-primary) 36%, var(--region-border) 64%);
}

.home-events-posters__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center top;
  background: color-mix(in srgb, var(--region-bg) 92%, var(--region-border) 8%);
}

.home-events-posters__caption {
  display: grid;
  gap: 0.25rem;
  padding: 0 0.7rem 0.7rem;
}

.home-events-posters__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--region-primary);
}

.home-events-posters__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hub-text, var(--region-text));
}

@media (min-width: 768px) {
  .home-events-posters__slide {
    flex-basis: min(42%, 14.5rem);
  }
}

/* Mobile icon nav */
.mobile-quick-nav--hub .mobile-quick-nav__item.is-active {
  color: var(--hub-accent, #ff6600);
}

.mobile-quick-nav--hub .mobile-quick-nav__item.is-active .mobile-quick-nav__icon {
  color: var(--hub-accent, #ff6600);
}

.main-wrapper:has(.home-page--hub) .sidebar__events {
  display: none;
}

.home-hub__block--theme:not(:has(.home-valar-spotlight)):not(:has(.home-svamp-spotlight)):not(:has(.article-series-promo)) {
  display: none;
}

.home-theme-spotlight {
  margin: 0;
}

.home-theme-spotlight .article-series-promo-list--home {
  gap: 1rem;
}

.home-municipality-hub__item {
  position: relative;
  min-width: 0;
}

.home-municipality-hub__item .home-municipality-hub__card {
  height: 100%;
}

.home-brief-shortcut {
  margin: 0;
}

.home-brief-shortcut__play {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  border: 1px solid color-mix(in srgb, var(--hub-accent, #ff6600) 32%, #d5dde8 68%);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hub-accent, #ff6600) 12%, #fff 88%) 0%, #fff 62%);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.home-brief-shortcut__play:hover,
.home-brief-shortcut__play:focus-visible {
  border-color: var(--hub-accent, #ff6600);
}

.home-brief-shortcut__mark {
  flex: 0 0 auto;
}

.home-brief-shortcut__copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.home-brief-shortcut__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-accent, #ff6600);
}

.home-brief-shortcut__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-brief-shortcut__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex: 0 0 auto;
  color: var(--hub-muted, #5f6b7a);
  font-size: 0.75rem;
  font-weight: 700;
}

.home-brief-shortcut__action {
  color: var(--hub-text, #1a1a1a);
}

[data-theme="dark"] .home-brief-shortcut__play {
  border-color: color-mix(in srgb, var(--hub-accent, #f97316) 34%, #334155 66%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hub-accent, #f97316) 16%, #121518 84%) 0%, #121518 70%);
}

[data-theme="dark"] .home-brief-shortcut__title,
[data-theme="dark"] .home-brief-shortcut__action {
  color: #f8fafc;
}

.home-valar-spotlight {
  --valar-home-ink: #f7fafc;
  --valar-home-soft: color-mix(in srgb, #fff 78%, transparent);
  overflow: hidden;
  margin: 0;
  padding: 1rem 0.9rem 1.05rem;
  border: 1px solid color-mix(in srgb, #1f4b7a 28%, #9aa8bc 72%);
  background-color: #0f1c2e;
  background-image:
    linear-gradient(
      115deg,
      rgba(10, 18, 30, 0.94) 0%,
      rgba(10, 18, 30, 0.78) 42%,
      rgba(12, 22, 36, 0.66) 100%
    ),
    url("../images/valar-2026/hero-bg.webp");
  background-size: cover;
  background-position: 72% center;
  color: var(--valar-home-ink);
}

.home-valar-spotlight__header {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.home-valar-spotlight__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 76%, #6ea8e0 24%);
}

.home-valar-spotlight__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.45rem, 5vw, 2.05rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-valar-spotlight__lead {
  max-width: 38rem;
  margin: 0.5rem 0 0;
  color: var(--valar-home-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.home-valar-spotlight__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.home-valar-spotlight__cta,
.home-valar-spotlight__podd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  background: #fff;
  color: #122033;
  font-weight: 800;
  text-decoration: none;
}

.home-valar-spotlight__cta--ghost {
  background: transparent;
  border-color: color-mix(in srgb, #fff 48%, transparent);
  color: #fff;
}

.home-valar-spotlight__live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: home-valar-live-pulse 1.6s ease-out infinite;
}

@keyframes home-valar-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  70% {
    box-shadow: 0 0 0 0.45rem rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.home-valar-spotlight__cta:hover,
.home-valar-spotlight__cta:focus-visible,
.home-valar-spotlight__podd:hover .home-valar-spotlight__podd-cta,
.home-valar-spotlight__podd:focus-visible .home-valar-spotlight__podd-cta {
  background: color-mix(in srgb, #fff 88%, #1f4b7a 12%);
}

.home-valar-spotlight__cta--ghost:hover,
.home-valar-spotlight__cta--ghost:focus-visible {
  background: color-mix(in srgb, #fff 14%, transparent);
}

.home-valar-spotlight__news-head,
.home-valar-spotlight__header {
  align-items: start;
}

.home-valar-spotlight__news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.home-valar-spotlight__news-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.home-valar-spotlight__carousel-controls {
  display: none;
  gap: 0.35rem;
}

.home-valar-spotlight__carousel-controls button {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  background: color-mix(in srgb, #041018 28%, transparent);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.home-valar-spotlight__carousel-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-valar-spotlight__carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12.5rem, 72%);
  gap: 0.7rem;
  margin: 0 -0.15rem;
  padding: 0.1rem 0.15rem 0.45rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.home-valar-spotlight__card {
  display: grid;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  background: color-mix(in srgb, #07111d 72%, transparent);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.home-valar-spotlight__card:hover,
.home-valar-spotlight__card:focus-visible {
  border-color: color-mix(in srgb, #fff 34%, transparent);
}

.home-valar-spotlight__card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #122033;
}

.home-valar-spotlight__card-media img,
.home-valar-spotlight__card-media .attachment-medium {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-valar-spotlight__card-media--empty {
  display: grid;
  place-items: center;
  color: color-mix(in srgb, #fff 62%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-valar-spotlight__card-body {
  display: grid;
  gap: 0.28rem;
  padding: 0.7rem 0.75rem 0.8rem;
}

.home-valar-spotlight__card-date {
  color: color-mix(in srgb, #fff 62%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
}

.home-valar-spotlight__card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.home-valar-spotlight__podd {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.7rem;
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
  background: color-mix(in srgb, #041018 34%, transparent);
  color: inherit;
  text-decoration: none;
}

.home-valar-spotlight__podd-media {
  display: block;
  overflow: hidden;
  width: 4.5rem;
  height: 4.5rem;
  background: #122033;
}

.home-valar-spotlight__podd-media--empty {
  background:
    url("../images/play/skillingaryd-play-icon.webp") center / 58% no-repeat,
    #122033;
}

.home-valar-spotlight__podd-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-valar-spotlight__podd-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.home-valar-spotlight__podd-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 70%, #6ea8e0 30%);
}

.home-valar-spotlight__podd-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.home-valar-spotlight__podd-lead {
  display: none;
  color: var(--valar-home-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.home-valar-spotlight__podd-cta {
  display: none;
}

@media (min-width: 720px) {
  .home-valar-spotlight {
    padding: 1.2rem 1.15rem 1.25rem;
  }

  .home-valar-spotlight__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .home-valar-spotlight__actions {
    min-width: 15.5rem;
  }

  .home-valar-spotlight__carousel {
    grid-auto-columns: minmax(14.5rem, 17.5rem);
  }

  .home-valar-spotlight__carousel-controls {
    display: flex;
  }

  .home-valar-spotlight__podd {
    grid-template-columns: 5.25rem minmax(0, 1fr) auto;
    padding: 0.8rem 0.9rem;
  }

  .home-valar-spotlight__podd-media,
  .home-valar-spotlight__podd-media img {
    width: 5.25rem;
    height: 5.25rem;
  }

  .home-valar-spotlight__podd-lead,
  .home-valar-spotlight__podd-cta {
    display: inline-flex;
  }

  .home-valar-spotlight__podd-lead {
    display: block;
  }
}

@media (min-width: 1025px) {
  .home-valar-spotlight {
    padding: 1.35rem 1.25rem 1.4rem;
  }

  .home-valar-spotlight__title {
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  }
}

.home-svamp-spotlight {
  --svamp-home-ink: #f5faf6;
  --svamp-home-soft: color-mix(in srgb, #fff 78%, transparent);
  overflow: hidden;
  margin: 0;
  padding: 1rem 0.9rem 1.05rem;
  border: 1px solid color-mix(in srgb, #1f4a32 28%, #9aab9e 72%);
  background-color: #13261c;
  background-image:
    linear-gradient(
      115deg,
      rgba(12, 28, 20, 0.94) 0%,
      rgba(12, 28, 20, 0.78) 42%,
      rgba(18, 38, 26, 0.66) 100%
    );
  color: var(--svamp-home-ink);
}

.home-svamp-spotlight.has-photo {
  background-image:
    linear-gradient(
      115deg,
      rgba(10, 24, 16, 0.92) 0%,
      rgba(10, 24, 16, 0.74) 42%,
      rgba(12, 28, 20, 0.46) 100%
    ),
    var(--svamp-home-hero);
  background-size: cover;
  background-position: 68% center;
}

.home-svamp-spotlight__header {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.home-svamp-spotlight__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 76%, #8fd4a4 24%);
}

.home-svamp-spotlight__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.45rem, 5vw, 2.05rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-svamp-spotlight__lead {
  max-width: 38rem;
  margin: 0.5rem 0 0;
  color: var(--svamp-home-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.home-svamp-spotlight__status {
  max-width: 40rem;
  margin: 0.6rem 0 0;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid #d4a017;
  background: color-mix(in srgb, #041810 42%, transparent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

.home-svamp-spotlight__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.home-svamp-spotlight__chips li {
  display: grid;
  flex: 1 1 8rem;
  gap: 0.05rem;
  min-width: 0;
  max-width: 13rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  background: color-mix(in srgb, #071d12 62%, transparent);
}

.home-svamp-spotlight__chips strong {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.home-svamp-spotlight__chips span {
  color: var(--svamp-home-soft);
  font-size: 0.7rem;
  line-height: 1.3;
}

.home-svamp-spotlight__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.home-svamp-spotlight__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  background: #d4a017;
  color: #1a1406;
  font-weight: 800;
  text-decoration: none;
}

.home-svamp-spotlight__cta--ghost {
  background: transparent;
  border-color: color-mix(in srgb, #fff 48%, transparent);
  color: #fff;
}

.home-svamp-spotlight__cta:hover,
.home-svamp-spotlight__cta:focus-visible {
  filter: brightness(1.05);
}

.home-svamp-spotlight__cta--ghost:hover,
.home-svamp-spotlight__cta--ghost:focus-visible {
  background: color-mix(in srgb, #fff 14%, transparent);
}

.home-svamp-spotlight__news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.home-svamp-spotlight__news-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.home-svamp-spotlight__carousel-controls {
  display: none;
  gap: 0.35rem;
}

.home-svamp-spotlight__carousel-controls button {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  background: color-mix(in srgb, #041810 28%, transparent);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.home-svamp-spotlight__carousel-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-svamp-spotlight__carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12.5rem, 72%);
  gap: 0.7rem;
  margin: 0 -0.15rem;
  padding: 0.1rem 0.15rem 0.45rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.home-svamp-spotlight__card {
  display: grid;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  background: color-mix(in srgb, #071d12 72%, transparent);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.home-svamp-spotlight__card:hover,
.home-svamp-spotlight__card:focus-visible {
  border-color: color-mix(in srgb, #fff 34%, transparent);
}

.home-svamp-spotlight__card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a3324;
}

.home-svamp-spotlight__card-media img,
.home-svamp-spotlight__card-media .attachment-medium {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-svamp-spotlight__card-media--empty {
  display: grid;
  place-items: center;
  color: color-mix(in srgb, #fff 62%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-svamp-spotlight__card-body {
  display: grid;
  gap: 0.28rem;
  padding: 0.7rem 0.75rem 0.8rem;
}

.home-svamp-spotlight__card-date {
  color: color-mix(in srgb, #fff 62%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
}

.home-svamp-spotlight__card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (min-width: 720px) {
  .home-svamp-spotlight {
    padding: 1.2rem 1.15rem 1.25rem;
  }

  .home-svamp-spotlight__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .home-svamp-spotlight__actions {
    min-width: 15.5rem;
  }

  .home-svamp-spotlight__carousel {
    grid-auto-columns: minmax(14.5rem, 17.5rem);
  }

  .home-svamp-spotlight__carousel-controls {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .home-svamp-spotlight {
    padding: 1.35rem 1.25rem 1.4rem;
  }

  .home-svamp-spotlight__title {
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  }
}

.home-hub__block--municipality {
  display: grid;
  gap: 1.15rem;
}

.home-topic-row {
  min-width: 0;
}

.home-topic-row__head {
  margin-bottom: 0.55rem;
}

.home-topic-row__title {
  margin: 0;
  color: var(--hub-text, #1a1a1a);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-topic-row__grid {
  display: grid;
  grid-auto-columns: minmax(14rem, 78%);
  grid-auto-flow: column;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.home-topic-row__item {
  min-width: 0;
}

.home-topic-row__cluster {
  margin: 0 0 0.35rem;
  color: var(--region-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-topic-row .news-teaser {
  margin: 0;
}

.home-topic-row .news-teaser__link,
.home-topic-row .news-teaser__inner {
  display: flex;
  flex-direction: column;
}

.home-topic-row .news-teaser__media {
  width: 100%;
  max-width: 100%;
}

.home-topic-row .news-teaser__excerpt,
.home-topic-row .news-teaser__play-header,
.home-topic-row .news-teaser__play-button,
.home-topic-row .news-teaser__valar-note {
  display: none;
}

.home-topic-row .news-teaser__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.95rem;
  line-height: 1.28;
}

.home-topic-row .news-teaser__media {
  aspect-ratio: 16 / 10;
}

@media (min-width: 900px) {
  .home-topic-row__title {
    font-size: 1.05rem;
    letter-spacing: -0.015em;
    text-transform: none;
  }

  .home-topic-row__grid {
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
}

/* Startsida B: tätare redaktionell rytm med kommunerna först. */
.news-teaser--hero-hub {
  --hero-teaser-accent: var(--hero-teaser-accent-light, var(--region-primary));
  --hero-teaser-accent-hover: var(--hero-teaser-accent-hover-light, var(--region-primary-hover));
}

[data-theme="dark"] .news-teaser--hero-hub {
  --hero-teaser-accent: var(--hero-teaser-accent-dark, var(--region-primary));
  --hero-teaser-accent-hover: var(--hero-teaser-accent-hover-dark, var(--region-primary-hover));
}

[data-home-hub] .img-skeleton.home-image-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--region-primary) 24%, transparent), transparent 58%),
    var(--home-ambient-image, linear-gradient(145deg, var(--hub-panel, #15191d), var(--hub-bg, #0b0d0f)));
  background-position: center;
  background-size: cover;
}

[data-home-hub] .img-skeleton.home-image-fallback::before {
  content: "Skillingaryd.nu";
  position: relative;
  z-index: 1;
  padding: 0.3rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--region-primary) 54%, transparent);
  border-radius: 0.35rem;
  background: rgba(8, 12, 20, 0.72);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.72rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

[data-home-hub] .img-skeleton.home-image-fallback::after,
[data-home-hub] .img-skeleton.home-image-fallback img {
  display: none;
}

.home-municipality-hub__card {
  --hub-accent: var(--municipality-accent-light, var(--region-primary));
}

.home-municipality-hub {
  width: 100%;
  min-width: 0;
}

[data-theme="dark"] .home-municipality-hub__card {
  --hub-accent: var(--municipality-accent-dark, var(--region-primary));
}

.home-local-news {
  min-width: 0;
  padding: clamp(0.85rem, 2vw, 1.15rem);
  border: 1px solid color-mix(in srgb, var(--region-border) 84%, var(--region-primary) 16%);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--hub-panel, var(--region-bg)) 96%, transparent);
  box-shadow: var(--hub-shadow);
}

.home-local-news__grid {
  display: grid;
  grid-auto-columns: minmax(15rem, 84%);
  grid-auto-flow: column;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.05rem 0 0.35rem;
  scroll-padding-inline: 0.05rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.home-local-news__item {
  --local-news-accent: var(--local-news-accent-light, var(--region-primary));
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--local-news-accent) 34%, var(--region-border) 66%);
  border-radius: 0.8rem;
  background: var(--hub-bg, var(--region-bg));
  box-shadow: 0 10px 24px -22px color-mix(in srgb, var(--local-news-accent) 40%, transparent);
  scroll-snap-align: start;
}

[data-theme="dark"] .home-local-news__item {
  --local-news-accent: var(--local-news-accent-dark, var(--region-primary));
}

.home-local-news__item-head {
  display: flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--local-news-accent) 24%, var(--region-border) 76%);
  background: color-mix(in srgb, var(--local-news-accent) 9%, var(--hub-bg, var(--region-bg)) 91%);
}

.home-local-news__region {
  color: var(--local-news-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.home-local-news__source {
  color: var(--hub-muted, var(--region-text-muted));
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-local-news__item > .news-teaser {
  position: relative;
  display: block;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-local-news__item > .news-teaser > .news-teaser__link {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  flex: none;
  flex-direction: column;
}

.home-local-news__item .news-teaser__inner {
  display: grid;
  width: 100%;
  flex: 1 1 auto;
  grid-template-columns: minmax(7.25rem, 38%) minmax(0, 1fr);
  gap: 0;
}

.home-local-news__item .news-teaser__media {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 8.5rem;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
}

.home-local-news__item .news-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-local-news__item .news-teaser__body {
  min-width: 0;
  padding: 0.7rem;
}

.home-local-news__item .news-teaser__badges {
  gap: 0.25rem;
}

.home-local-news__item .news-teaser__badge--tag,
.home-local-news__item .news-teaser__comments--none {
  display: none;
}

.home-local-news__item .news-teaser__valar-note {
  display: none;
}

.home-local-news__item .news-teaser__title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-local-news__item .news-teaser__excerpt {
  display: none;
}

.home-local-news__item .news-teaser__date {
  font-size: 0.68rem;
}

.home-local-news__item .news-teaser:not(:has(.news-teaser__media)) .news-teaser__inner {
  display: block;
}

.home-local-news__item .news-teaser:not(:has(.news-teaser__media)) .news-teaser__body {
  min-height: 12rem;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--local-news-accent) 16%, transparent), transparent 52%),
    var(--hub-bg, var(--region-bg));
}

.home-local-news__item .news-teaser__play-button {
  right: 0.55rem;
  bottom: 0.55rem;
}

.home-hub__block--media {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.home-hub__media-play,
.home-hub__media-most-read {
  min-width: 0;
}

.home-play-listen--compact {
  gap: 0.8rem;
  padding: clamp(0.9rem, 1.8vw, 1.15rem);
}

.home-play-listen--compact .home-play-listen__header {
  margin-bottom: 0;
}

.home-play-listen--compact .home-play-listen__lead {
  max-width: 36rem;
}

.home-play-listen--compact .home-play-listen__upcoming {
  display: none;
}

.home-play-listen--compact .home-play-listen__brief {
  padding: 0.75rem;
}

.home-play-listen--compact .home-play-listen__brief-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-play-listen--compact .home-play-listen__group + .home-play-listen__group {
  padding-top: 0.8rem;
}

.home-play-listen--compact .home-play-listen__more-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 679px) {
  .home-local-news__item .news-teaser__badges {
    display: none;
  }

  .home-play-listen--compact .home-play-listen__header {
    align-items: center;
  }

  .home-play-listen--compact .home-play-listen__lead {
    display: none;
  }

  .home-play-listen--compact .home-play-listen__brief {
    grid-template-columns: 7.25rem minmax(0, 1fr);
    align-items: stretch;
    gap: 0.7rem;
  }

  .home-play-listen--compact .home-play-listen__brief-image {
    width: 100%;
    height: 100%;
    min-height: 8.5rem;
    object-fit: cover;
  }

  .home-play-listen--compact .home-play-listen__brief-description {
    display: none;
  }

  .home-play-listen--compact .home-play-listen__brief-actions {
    gap: 0.35rem;
  }

  .home-play-listen--compact .home-play-listen__play--primary,
  .home-play-listen--compact .home-play-listen__open {
    padding-inline: 0.65rem;
    font-size: 0.72rem;
  }

  .home-play-listen--compact .home-play-listen__group:last-child {
    display: none;
  }
}

.home-hub__media-most-read .home-most-read {
  height: 100%;
  padding: 0.9rem;
  border: 1px solid var(--home-border, var(--region-border));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--home-card, var(--region-bg)) 96%, transparent);
  box-shadow: var(--hub-shadow);
}

.home-hub__media-most-read .home-section-hero__lead {
  display: none;
}

.home-hub__media-most-read .home-most-read__item {
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 0.55rem;
  padding-block: 0.6rem;
}

.home-hub__media-most-read .home-most-read__date {
  display: none;
}

.home-hub__media-most-read .home-most-read__title {
  font-size: 0.9rem;
  line-height: 1.25;
}

.home-hub__media-most-read .home-most-read__region {
  margin-top: 0.2rem;
}

.home-topic-row {
  padding-top: 0.95rem;
  border-top: 1px solid color-mix(in srgb, var(--region-border) 82%, var(--region-primary) 18%);
}

.home-topic-row__grid {
  scroll-padding-inline: 0.05rem;
  scroll-snap-type: x mandatory;
}

.home-topic-row__item {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--region-border) 82%, var(--region-primary) 18%);
  border-radius: 0.75rem;
  background: var(--hub-panel, var(--region-bg));
  scroll-snap-align: start;
}

.home-topic-row__cluster {
  margin: 0;
  padding: 0.45rem 0.65rem 0;
}

.home-topic-row .news-teaser {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-topic-row .news-teaser__body {
  padding: 0.65rem;
}

@media (min-width: 680px) {
  .home-municipality-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 679px) {
  .home-municipality-hub__grid {
    grid-auto-columns: minmax(12.5rem, 76%);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scroll-padding-inline: 0.05rem;
    scroll-snap-type: x mandatory;
  }

  .home-municipality-hub__item {
    scroll-snap-align: start;
  }

  .home-municipality-hub__card {
    min-height: 8.25rem;
  }

  .home-municipality-hub__stage {
    min-height: 5.6rem;
    padding: 0.8rem 0.65rem 0.8rem 0.85rem;
  }

  .home-municipality-hub__name {
    font-size: 1.15rem;
  }

  .home-municipality-hub__stats {
    font-size: 0.76rem;
  }

  .home-municipality-hub__cta {
    min-height: 2.55rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.76rem;
  }
}

@media (min-width: 900px) {
  .home-local-news__grid {
    grid-auto-columns: unset;
    grid-auto-flow: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .home-local-news__item .news-teaser__inner {
    display: flex;
    height: 100%;
    flex-direction: column;
  }

  .home-local-news__item .news-teaser__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .home-local-news__item .news-teaser__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.75rem;
  }

  .home-local-news__item .news-teaser__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-local-news__item .news-teaser:not(:has(.news-teaser__media)) .news-teaser__body {
    min-height: 18rem;
  }
}

@media (min-width: 1025px) {
  .home-hub__block--municipality {
    gap: 1rem;
  }

  .home-municipality-hub__card {
    min-height: clamp(11.5rem, 15vw, 13rem);
  }

  .home-municipality-hub__stage {
    min-height: clamp(8.5rem, 12vw, 10rem);
  }

  .home-municipality-hub__body {
    padding: 0.85rem 0.75rem;
  }

  .home-municipality-hub__name {
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  }

  .home-municipality-hub__stats {
    max-width: 12rem;
    margin-top: 0.35rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.76rem;
  }

  .home-municipality-hub__cta {
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
  }

  .home-hub__block--media {
    grid-template-columns: minmax(0, 1.6fr) minmax(14.5rem, 0.72fr);
    align-items: stretch;
  }

  .home-play-listen--compact .home-play-listen__brief {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .home-play-listen--compact .home-play-listen__brief-image {
    min-height: 6.75rem;
  }

  .home-play-listen--compact .home-play-listen__carousel {
    grid-auto-columns: minmax(10.5rem, 42%);
  }
}

/* ==========================================================================
   Startsida B, andra passet: kontrast (WCAG AA), sammanhållna ytor, Play-plattor.
   ========================================================================== */

/* Textsäkra accenter. #ff6600 klarar inte 4,5:1 mot vitt som liten text. */
.home-page--hub {
  --hub-accent-text: #bf4a00;
  --hub-accent-solid: #c2410c;
  --hub-on-accent: #ffffff;
}

[data-theme="dark"] .home-page--hub {
  --hub-accent-text: #fb923c;
  --hub-accent-solid: #f97316;
  --hub-on-accent: #0b0d0f;
}

.home-headlines-list__more,
.home-section-hero__more,
.home-page--flux-assets .home-section-hero__more,
.home-play-listen__meta,
.home-play-listen__group-kicker,
.home-play-listen__eyebrow,
[data-theme="light"] .home-play-listen__upcoming-kicker,
.home-topic-row__cluster,
.home-brief-shortcut__kicker {
  color: var(--hub-accent-text, var(--region-primary-text, var(--region-primary)));
}

.home-local-news__region {
  color: color-mix(in srgb, var(--local-news-accent) 78%, #000 22%);
}

[data-theme="dark"] .home-local-news__region {
  color: var(--local-news-accent);
}

.home-play-listen__more,
.home-play-listen__play--overlay,
[data-theme="light"] .home-play-listen__play,
.home-play-listen__play--primary {
  background: var(--hub-accent-solid, var(--region-primary));
  color: var(--hub-on-accent, #fff);
}

[data-theme="dark"] .home-play-listen__play--primary,
[data-theme="dark"] .home-play-listen__play {
  background: #fff;
  color: #111827;
}

.home-play-listen__play--overlay .sk-play-brand-mark__ring {
  stroke: currentColor;
}

/* Kommunkortens knapp: vit text mot Vaggeryds orange når bara 3,5:1. */
.home-municipality-hub__cta {
  background: color-mix(in srgb, var(--hub-accent, #ff6600) 84%, #000 16%);
}

@media (min-width: 1025px) {
  .home-municipality-hub__cta {
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--hub-accent, #ff6600) 86%, #000 14%),
        color-mix(in srgb, var(--hub-accent, #ff6600) 72%, #000 28%)
      );
  }
}

[data-theme="dark"] .home-municipality-hub__cta {
  color: #0b0d0f;
  background: var(--hub-accent, #f97316);
}

/* Karusellpunkter: minst 24 px träffyta (WCAG 2.5.8) men samma lilla prick. */
.home-hero-split__dots {
  gap: 0.1rem;
}

.home-hero-split__dot {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  background: transparent;
}

.home-hero-split__dot::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
  transform: translate(-50%, -50%);
}

[data-theme="dark"] .home-hero-split__dot::before {
  background: rgba(255, 255, 255, 0.28);
}

.home-hero-split__dot.is-active {
  background: transparent;
}

.home-hero-split__dot.is-active::before {
  background: var(--hub-accent, #ff6600);
}

/* Play + Mest läst: en kolumn när mest läst saknas, ingen tom yta. */
@media (min-width: 1025px) {
  .home-hub__block--media.home-hub__block--media-single {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sammanhållen nyhetsyta: samma kortspråk i ämnesrad, lokala nyheter och sport. */
.home-local-news {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-local-news .home-section-hero {
  margin-bottom: 0.85rem;
}

.home-local-news__item,
.home-topic-row__item {
  border-radius: 0.85rem;
  background: var(--hub-panel, var(--region-bg));
  box-shadow: var(--hub-shadow);
}

.home-local-news__item .news-teaser__badges,
.home-topic-row .news-teaser__badge--category,
.home-topic-row .news-teaser__badge--tag,
.home-topic-row .news-teaser__badge--skillingaryd,
.home-topic-row .news-teaser__badge--varnamo,
.home-topic-row .news-teaser__badge--gnosjo,
.home-topic-row .news-teaser__comments,
.home-topic-row .news-teaser__updated,
.home-local-news__item .news-teaser__comments,
.home-local-news__item .news-teaser__updated,
.home-region-placement .news-teaser__badge--category,
.home-region-placement .news-teaser__badge--tag,
.home-region-placement .news-teaser__badge--skillingaryd,
.home-region-placement .news-teaser__badge--varnamo,
.home-region-placement .news-teaser__badge--gnosjo,
.home-region-placement .news-teaser__comments--none {
  display: none;
}

/* Lyftformat (Granskning, Intervju, Nyhetsveckan) ska fortfarande synas i korten. */
.home-local-news__item .news-teaser__badges:has(.news-teaser__badge--editorial) {
  display: flex;
}

.home-local-news__item .news-teaser__badges:has(.news-teaser__badge--editorial) > :not(.news-teaser__badge--editorial) {
  display: none;
}

.home-local-news__item .news-teaser__meta,
.home-topic-row .news-teaser__meta {
  gap: 0.35rem;
}

.home-local-news__item .news-teaser__date,
.home-topic-row .news-teaser__date {
  color: var(--hub-muted, var(--region-text-muted));
  font-size: 0.72rem;
  font-weight: 600;
}

/* Kort utan bild får samma märkta yta som trasiga bilder, så raden håller höjd. */
.home-local-news__item .news-teaser:not(:has(.news-teaser__media)) .news-teaser__body {
  min-height: 0;
  background: transparent;
}

.home-local-news__item .news-teaser:not(:has(.news-teaser__media)) .news-teaser__body::before {
  content: "Skillingaryd.nu";
  display: grid;
  place-items: center;
  width: calc(100% + 1.5rem);
  margin: -0.75rem -0.75rem 0.65rem;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--local-news-accent) 30%, transparent), transparent 62%),
    var(--home-ambient-image, linear-gradient(145deg, var(--hub-panel, #15191d), var(--hub-bg, #0b0d0f)));
  background-position: center;
  background-size: cover;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 899px) {
  .home-local-news__item .news-teaser:not(:has(.news-teaser__media)) .news-teaser__body::before {
    display: none;
  }

  .home-local-news__item .news-teaser:not(:has(.news-teaser__media)) .news-teaser__body {
    min-height: 8.5rem;
  }
}

/* Play, kompakt: en samlad rad med plattor i stället för två grupper. */
.home-play-listen__group-head {
  align-items: end;
}

.home-play-listen__group-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--hub-accent-text, #fb923c);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.home-play-listen__group-more:hover,
.home-play-listen__group-more:focus-visible {
  text-decoration: underline;
}

.home-play-listen__compact-grid {
  display: grid;
  gap: 0.75rem;
  grid-auto-columns: minmax(11.5rem, 68%);
  grid-auto-flow: column;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-padding-inline: 0.1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.home-play-listen__tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.72);
  scroll-snap-align: start;
}

.home-play-listen__tile-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(8, 15, 28, 0.82);
}

.home-play-listen__tile-media--empty {
  background:
    url("../images/play/skillingaryd-play-icon.webp") center / min(64px, 34%) no-repeat,
    rgba(8, 15, 28, 0.82);
}

.home-play-listen__tile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.home-play-listen__tile-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.05), rgba(7, 11, 18, 0.45));
  color: #fff;
  cursor: pointer;
}

.home-play-listen__tile-play-mark {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
  transition: transform 0.18s ease;
}

.home-play-listen__tile:hover .home-play-listen__tile-image,
.home-play-listen__tile:focus-within .home-play-listen__tile-image {
  transform: scale(1.04);
}

.home-play-listen__tile:hover .home-play-listen__tile-play-mark,
.home-play-listen__tile-play:focus-visible .home-play-listen__tile-play-mark {
  transform: scale(1.08);
}

.home-play-listen__tile-duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(7, 11, 18, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.home-play-listen__tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.7rem 0.75rem 0.8rem;
}

.home-play-listen__tile-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-play-listen__tile-link {
  color: inherit;
  text-decoration: none;
}

.home-play-listen__tile-link:hover,
.home-play-listen__tile-link:focus-visible {
  text-decoration: underline;
}

[data-theme="light"] .home-play-listen__tile {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.86);
}

[data-theme="light"] .home-play-listen__tile-title {
  color: var(--hub-text, #111827);
}

@media (min-width: 680px) {
  .home-play-listen__compact-grid {
    grid-auto-columns: unset;
    grid-auto-flow: unset;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
}

@media (min-width: 1025px) {
  .home-play-listen__compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-hub__block--media-single .home-play-listen__compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-hub__block--media:not(.home-hub__block--media-single) .home-play-listen__compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hub__block--media:not(.home-hub__block--media-single) .home-play-listen__tile-title {
    font-size: 0.88rem;
  }
}

/* Mest läst bredvid Play: rubriken ska inte stretcha ut när panelen fyller höjden. */
.home-hub__media-most-read .home-most-read {
  align-content: start;
  grid-template-rows: auto 1fr;
}

.home-hub__media-most-read .home-most-read__list {
  align-self: start;
}
