/* Article detail layout shared by every editorial frontend. */
.post-main {
  min-width: 0;
}

.post-main > .post-cover {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(34px, 4vw, 54px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.post-content > .post-video {
  margin-top: clamp(34px, 4vw, 54px);
}

.post-main > .post-cover img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin-inline: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

.post-main > .post-cover figcaption {
  max-width: 820px;
  margin: 10px auto 0;
  text-align: center;
}

@media (min-width: 901px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 350px);
    align-items: start;
  }

  .post-aside {
    min-width: 0;
    align-self: start;
  }
}

@media (max-width: 900px) {
  .post-main > .post-cover {
    margin-bottom: 34px;
  }
}

@media (max-width: 620px) {
  .post-main > .post-cover {
    margin-bottom: 26px;
  }
}

/* Shared rollover and keyboard-focus language for all editorial themes. */
:where(
  .site-nav a,
  .site-search-link,
  .button,
  .text-link,
  .news-read-link,
  .mini-head > a,
  .section-heading a,
  .breadcrumb a,
  .card-arrow,
  .article-card,
  .news-brief,
  .radio-date-row,
  .airplay-list a,
  .social-pill,
  .press-actions a,
  .pagination a,
  .week-offset-nav a,
  .chart-week-nav a,
  .period-tabs a,
  .post-tags a,
  .spc-hero-link,
  .spc-live-card,
  .spc-rank-row,
  .promo-v2-route,
  .promo-v2-text-link,
  .promoter-support-links a
) {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    text-decoration-color 180ms ease;
}

:where(
  .news-lead h1,
  .news-lead h2,
  .news-brief h2,
  .article-card h2,
  .pm-side-feature h2,
  .pm-side-story h2
) a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.13em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

:where(.post-content, .prose, .release-copy) :where(p, li, figcaption) > a:not(.button) {
  color: color-mix(in srgb, var(--primary) 72%, #111 28%);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

:where(
  .site-nav a,
  .site-search-link,
  .button,
  .text-link,
  .news-read-link,
  .mini-head > a,
  .section-heading a,
  .breadcrumb a,
  .radio-date-row,
  .airplay-list a,
  .social-pill,
  .press-actions a,
  .pagination a,
  .week-offset-nav a,
  .chart-week-nav a,
  .period-tabs a,
  .post-tags a,
  .spc-hero-link,
  .spc-live-card,
  .spc-rank-row,
  .promo-v2-route,
  .promo-v2-text-link,
  .promoter-support-links a
):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 78%, #fff 22%);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  :where(
    .news-lead h1,
    .news-lead h2,
    .news-brief h2,
    .article-card h2,
    .pm-side-feature h2,
    .pm-side-story h2
  ) a:hover {
    text-decoration-color: var(--primary);
  }

  :where(.text-link, .news-read-link, .mini-head > a, .section-heading a, .promo-v2-text-link):hover {
    filter: brightness(0.8) saturate(1.15);
  }

  :where(.text-link, .news-read-link, .mini-head > a, .section-heading a, .promo-v2-text-link):hover .ui-icon,
  :where(.text-link, .news-read-link, .mini-head > a, .section-heading a, .promo-v2-text-link):hover .card-arrow {
    transform: translateX(4px);
  }

  :where(.article-card, .news-brief):hover {
    border-color: color-mix(in srgb, var(--primary) 58%, var(--line) 42%);
    box-shadow: 0 18px 42px rgba(var(--primary-rgb), 0.16);
    transform: translateY(-4px);
  }

  :where(.article-card, .news-brief):hover .card-arrow,
  :where(.article-card, .news-brief):hover .news-brief-arrow {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    transform: translateX(3px);
  }

  :where(.radio-date-row, .airplay-list a, .spc-live-card, .spc-rank-row):hover {
    border-color: var(--primary);
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.15);
    transform: translateX(4px);
  }

  :where(.radio-date-row, .airplay-list a, .spc-live-card, .spc-rank-row):hover .card-arrow,
  :where(.radio-date-row, .airplay-list a, .spc-live-card, .spc-rank-row):hover > b:last-child {
    background: var(--primary);
    color: #fff;
    transform: translateX(2px);
  }

  :where(.social-pill, .press-actions a, .pagination a, .week-offset-nav a, .chart-week-nav a, .period-tabs a, .post-tags a, .promoter-support-links a):hover {
    border-color: var(--primary);
    background-color: color-mix(in srgb, var(--primary) 10%, #fff 90%);
    box-shadow: 0 9px 22px rgba(var(--primary-rgb), 0.13);
    transform: translateY(-2px);
  }

  :where(.button, .site-search-link):hover {
    transform: translateY(-2px);
  }

  .site-logo:hover img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.015);
  }

  .site-logo img {
    transition: filter 180ms ease, transform 180ms ease;
  }

  .site-spcmusic :where(.article-card, .news-brief, .radio-date-row, .spc-live-card, .spc-rank-row):hover {
    border-color: #111312;
    box-shadow: 0 8px 0 rgba(189, 235, 45, 0.76);
    transform: translate(-2px, -2px);
  }

  .site-diecidomande :where(.article-card, .news-brief, .radio-date-row):hover {
    border-color: #07182a;
    box-shadow: 6px 6px 0 rgba(32, 154, 243, 0.48);
    transform: translate(-2px, -2px);
  }

  .site-musicaemergenti :where(.article-card, .news-brief, .radio-date-row):hover {
    border-color: #0f8f87;
    box-shadow: 0 17px 38px rgba(6, 20, 77, 0.16);
  }

  .site-artistimusica :where(.article-card, .news-brief, .radio-date-row):hover {
    border-color: #0d725c;
    box-shadow: 0 16px 34px rgba(13, 114, 92, 0.2);
  }

  .site-promozionemusicale :where(.article-card, .news-brief, .radio-date-row):hover {
    border-color: #09265f;
    box-shadow: 0 7px 0 rgba(231, 25, 9, 0.24);
  }

  .site-promozioneartistica :where(.article-card, .news-brief, .radio-date-row):hover {
    border-color: #e9b234;
    box-shadow: 0 0 0 2px rgba(233, 178, 52, 0.32), 0 18px 40px rgba(2, 27, 25, 0.24);
  }

  .site-promotermusicale :where(.article-card, .radio-date-row, .promoter-support-links a):hover {
    border-color: #151515;
    box-shadow: 3px 3px 0 #151515;
    filter: none;
    transform: translate(2px, 2px);
  }

  .site-promotermusicale :where(.text-link, .news-read-link, .mini-head > a, .section-heading a, .promo-v2-text-link):hover {
    color: #8d2719;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.site-logo img, .ui-icon, .card-arrow) {
    transition-duration: 0.01ms !important;
  }
}
