/* Step 194 — clear on-page social profiles instead of an unexplained footer jump. */
.article-share-panel.share-icon-strip .article-socials-toggle {
  margin-left:auto;
  padding:8px 12px;
  border:1px solid #d9dde4;
  border-radius:7px;
  background:#fff;
  color:#c51f3f;
  font:600 13px/1.1 var(--st190-sans,Arial,sans-serif);
  letter-spacing:0;
  text-transform:none;
  cursor:pointer;
}
.article-share-panel.share-icon-strip .article-socials-toggle[aria-expanded="true"] {
  border-color:#c51f3f;
  background:#fff5f7;
}
.article-share-panel.share-icon-strip .article-social-profiles {
  flex:0 0 100%;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px;
  border:1px solid #e2e5ea;
  border-radius:9px;
  background:#f8f9fb;
}
.article-share-panel.share-icon-strip .article-social-profiles[hidden] { display:none !important; }
.article-share-panel.share-icon-strip .article-social-profiles a {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:0 12px;
  border:1px solid #d8dde5;
  border-radius:7px;
  background:#fff;
  color:#202733 !important;
  font:600 13px/1 var(--st190-sans,Arial,sans-serif);
  text-decoration:none !important;
}
.article-share-panel.share-icon-strip .article-social-profiles a:hover { border-color:#c51f3f; color:#c51f3f !important; }
.article-share-panel.share-icon-strip .article-social-profiles a > span { color:#c51f3f; font-weight:700; }

/* Footer profiles stay readable on the dark portal footer. */
.site-footer .footer-social-column h4,
body.portal-dark .site-footer .footer-social-column h4 { color:#fff !important; }
.site-footer .footer-socials a,
body.portal-dark .site-footer .footer-socials a {
  border-color:rgba(255,255,255,.48) !important;
  background:rgba(255,255,255,.08) !important;
  color:#fff !important;
}
.site-footer .footer-socials a:hover,
body.portal-dark .site-footer .footer-socials a:hover {
  border-color:#fff !important;
  background:rgba(255,255,255,.16) !important;
}

@media(max-width:640px) {
  /* Older share styles turn the whole panel into one horizontal strip on phones.
     Restore a stable grid so the profile links cannot collapse letter-by-letter. */
  .article-share-panel.share-icon-strip {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:10px !important;
    overflow:visible !important;
    padding:0 0 10px !important;
  }
  .article-share-panel.share-icon-strip .share-panel-title {
    position:static !important;
    grid-column:1 / -1 !important;
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
  }
  .article-share-panel.share-icon-strip .article-socials-toggle { margin-left:0; }
  .article-share-panel.share-icon-strip .article-social-profiles {
    grid-column:1 / -1 !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:auto !important;
    min-width:0 !important;
    padding:8px !important;
  }
  .article-share-panel.share-icon-strip .article-social-profiles[hidden] { display:none !important; }
  .article-share-panel.share-icon-strip .article-social-profiles a {
    display:flex !important;
    min-width:0 !important;
    width:auto !important;
    padding:0 8px !important;
    justify-content:center;
    white-space:nowrap !important;
  }
  .article-share-panel.share-icon-strip .ss-btn {
    position:relative !important;
    flex:none !important;
    width:100% !important;
    min-width:0 !important;
  }
}

@media(max-width:370px) {
  .article-share-panel.share-icon-strip .article-social-profiles {
    grid-template-columns:1fr !important;
  }
}
