/* STEP196: narrow fixes to the article, consent panel and heading typeface. */

/* Keep the lead image complete, including any text placed near its edges. */
.clean-article-cover img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

/* A single heading family, preserving each section's existing font sizes. */
.site-main :is(h1,h2,h3,h4,h5,h6),
.site-footer :is(h1,h2,h3,h4,h5,h6),
.site-drawer :is(h1,h2,h3,h4,h5,h6),
main :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--st190-serif, "Source Serif 4", Georgia, serif) !important;
}

/* On desktop, social profiles occupy their own grid row instead of overlaying shares. */
@media (min-width: 641px) {
  .article-share-panel.share-icon-strip .article-social-profiles {
    position: static !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transform: none !important;
    z-index: auto !important;
  }
}

/* Consent controls remain clickable above other page elements. */
.cookie-banner:not([hidden]) { pointer-events: auto; }
.cookie-banner .cookie-banner-actions,
.cookie-banner .cookie-preferences { position: relative; z-index: 1; }
.cookie-banner #cookieSettingsBtn { pointer-events: auto; }
.cookie-banner .cookie-preferences[hidden] { display: none !important; }
