.ms-featured-image {
  display: grid;
  place-items: center;
  margin: 18px 0;
}

.ms-featured-img {
  display: inline-block;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 720px);
  object-fit: contain;
  aspect-ratio: auto 16 / 9;
  background: var(--ms-surface-soft);
  contain-intrinsic-size: auto 360px;
}

.ms-article-header {
  padding: 20px 0 22px;
  border-top: 1px solid var(--ms-border-soft);
  border-bottom: 1px solid var(--ms-border-soft);
  text-align: center;
}

.ms-article-header h1 {
  max-width: 920px;
  margin: 10px auto 12px;
  color: var(--ms-ink-900);
  font: 800 32px/1.35 var(--ms-font-heading);
  overflow-wrap: anywhere;
}

.ms-post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--ms-ink-500);
  font-size: 13px;
}

.ms-share-row,
.ms-social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ms-share-row {
  justify-content: center;
  margin-top: 14px;
}

.ms-share-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ms-brand-50);
  color: var(--ms-brand-600);
  border: 1px solid var(--ms-brand-100);
  font-size: 12px;
  font-weight: 900;
}

.ms-social-strip { margin: 18px 0; }

.ms-social-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--ms-brand-50);
  color: var(--ms-brand-600);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-suggestion-box,
.ms-related-box {
  margin: 24px 0;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  overflow: hidden;
  background: var(--ms-surface);
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}

.ms-suggestion-box h2,
.ms-related-box h3 {
  margin: 0;
  padding: 12px 18px;
  background: var(--ms-surface-soft);
  color: var(--ms-ink-900);
  font: 800 18px/1.3 var(--ms-font-heading);
}

.ms-suggestion-box a,
.ms-related-box a {
  display: block;
  padding: 12px 18px;
  border-top: 1px solid var(--ms-border-soft);
  color: var(--ms-ink-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-suggestion-box a:hover,
.ms-related-box a:hover {
  background: var(--ms-brand-50);
  color: var(--ms-brand-600);
}

@media (max-width: 560px) {
  .ms-article-header h1 { font-size: 24px; }
}
