/* Sprint 04 — premium editorial reading and publication discovery. */
:root {
  --ms-editorial-reading: 46rem;
  --ms-editorial-wide: 72rem;
}

.ms-single-editorial > .ms-editorial-article {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
}
.ms-editorial-article > .ms-breadcrumbs {
  max-width: var(--ms-editorial-wide);
  margin-inline: auto;
  color: var(--ms-color-muted);
  font-size: .78rem;
}
.ms-editorial-article > .wp-block-post-title {
  max-width: 62rem;
  margin: 1.25rem 0 1rem;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.4rem, 4.8vw, 4.35rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}
.ms-editorial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1.15rem;
  max-width: var(--ms-editorial-wide);
  margin: 1.35rem 0 0;
  padding-block: .8rem;
  border-block: 1px solid var(--ms-color-line);
  color: var(--ms-color-muted);
  font-size: .78rem;
}
.ms-editorial-meta > * {
  margin: 0;
}
.ms-editorial-meta .ms-editorial-identity {
  color: var(--ms-color-ink);
  font-size: .88rem;
  font-weight: 600;
}
.ms-editorial-meta .wp-block-post-terms a {
  color: inherit;
  text-underline-offset: .18em;
}
.ms-editorial-article > .ms-editorial-featured-image {
  width: 100%;
  max-width: min(var(--ms-editorial-wide), 70rem);
  margin: 1.65rem auto clamp(2.25rem, 5vw, 4rem);
  overflow: hidden;
  background: var(--ms-color-neutral);
}
.ms-editorial-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}
.ms-single-editorial .entry-content {
  min-width: 0;
  font-size: 1.1rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
.ms-single-editorial .entry-content :is(p, ul, ol, blockquote, h2, h3) {
  width: min(100%, var(--ms-editorial-reading));
  max-width: var(--ms-editorial-reading);
  margin-inline: auto;
}
.ms-single-editorial .entry-content p {
  margin-block: 0 1.25rem;
}
.ms-single-editorial .entry-content .ms-editorial-deck {
  margin-block: 0 2rem;
  color: #3f4542;
  font-size: clamp(1.18rem, 1.7vw, 1.38rem);
  line-height: 1.62;
  font-weight: 450;
}
.ms-single-editorial .entry-content h2 {
  margin-block: clamp(2.6rem, 5vw, 4rem) 1rem;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.16;
  text-wrap: pretty;
}
.ms-single-editorial .entry-content h3 {
  margin-block: 2.2rem .75rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
}
.ms-single-editorial .entry-content :is(ul, ol) {
  padding-inline-start: 1.4rem;
  margin-block: 0 1.5rem;
}
.ms-single-editorial .entry-content li {
  padding-inline-start: .25rem;
  margin-block: .45rem;
}
.ms-single-editorial .entry-content blockquote {
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 2px solid var(--ms-color-ink);
  color: var(--ms-color-muted);
}
.ms-single-editorial .entry-content a:not(.ms-button):not(.ms-text-link) {
  text-decoration-thickness: .07em;
  text-underline-offset: .18em;
}
.ms-single-editorial .entry-content > :is(section, aside, .wp-block-group, .wp-block-columns, .wp-block-table, .wp-block-image, figure) {
  max-width: var(--ms-editorial-wide);
  margin-inline: auto;
}
.ms-single-editorial .entry-content .wp-block-table {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.ms-single-editorial .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.55;
}
.ms-single-editorial .entry-content :is(th, td) {
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--ms-color-line);
  text-align: start;
  vertical-align: top;
}
.ms-single-editorial .entry-content th {
  border-top: 1px solid var(--ms-color-line);
  font-weight: 650;
}
.ms-single-editorial .entry-content figure img {
  display: block;
  width: 100%;
  height: auto;
}
.ms-single-editorial .entry-content :is(.ms-market-indicators, .ms-market-charts, .ms-market-chart, .ms-chart) {
  max-width: var(--ms-editorial-wide);
  margin-inline: auto;
}
.ms-single-editorial .entry-content .ms-inline-valuation {
  margin-block: clamp(2.75rem, 6vw, 5rem);
}
.ms-editorial-single-footer {
  max-width: var(--ms-editorial-wide);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
}
.ms-editorial-single-footer .ms-source-block {
  padding-block: 1rem;
  border-block: 1px solid var(--ms-color-line);
}
.ms-editorial-single-footer .ms-sources > summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 650;
}
.ms-editorial-single-footer .ms-sources ul {
  max-width: var(--ms-editorial-reading);
  padding-inline-start: 1.2rem;
  line-height: 1.65;
}
.ms-editorial-single-footer__cta {
  margin-block: 2rem 3rem;
}
.ms-editorial-related {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.ms-editorial-related > .ms-eyebrow {
  margin-bottom: 1rem;
}
.ms-editorial-related .ms-publishing-grid {
  margin-top: 0;
}
.ms-editorial-related .ms-publishing-card__title {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.14;
}
.ms-editorial-related .ms-publishing-card__media,
.ms-editorial-related .ms-publishing-card__media img {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.ms-publishing-index .ms-editorial-publishing-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--ms-color-line);
  background: var(--ms-color-line);
}
.ms-editorial-publishing-grid > .ms-editorial-card {
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  min-width: 0;
  background: var(--ms-color-surface);
}
.ms-editorial-publishing-grid .ms-publishing-card__media,
.ms-editorial-publishing-grid .ms-publishing-card__media img {
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.ms-editorial-publishing-grid .ms-publishing-card__media img {
  transition: none;
}
.ms-editorial-publishing-grid .ms-publishing-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.15rem, 2vw, 1.65rem);
}
.ms-editorial-publishing-grid .ms-kicker {
  margin: 0 0 .6rem;
  font-size: .68rem;
  letter-spacing: .12em;
  line-height: 1.5;
}
.ms-editorial-publishing-grid .ms-publishing-card__title {
  margin: 0 0 .8rem;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.ms-editorial-publishing-grid .ms-publishing-card__title a {
  text-decoration-thickness: .04em;
  text-underline-offset: .12em;
}
.ms-editorial-publishing-grid .ms-publishing-card__body > p:not(.ms-kicker) {
  margin: 0 0 1rem;
  color: var(--ms-color-muted);
  font-size: .94rem;
  line-height: 1.65;
}
.ms-editorial-publishing-grid .ms-publishing-card__body time {
  margin-top: auto;
  padding-top: .85rem;
  color: var(--ms-color-muted);
  font-size: .76rem;
}
.ms-editorial-publishing-grid .ms-editorial-card__byline {
  margin-top: .28rem;
  color: var(--ms-color-muted);
  font-size: .76rem;
}
.ms-editorial-publishing-grid > .ms-editorial-card:first-child {
  grid-column: span 8;
  min-height: 22rem;
}
.ms-editorial-publishing-grid > .ms-editorial-card:first-child .ms-publishing-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, .85fr);
  align-content: center;
  align-items: start;
  column-gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 3.25rem);
  border-top: 2px solid var(--ms-color-ink);
}
.ms-editorial-publishing-grid > .ms-editorial-card:first-child .ms-kicker {
  grid-column: 1 / -1;
}
.ms-editorial-publishing-grid > .ms-editorial-card:first-child .ms-publishing-card__title {
  grid-column: 1;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: 1.04;
}
.ms-editorial-publishing-grid > .ms-editorial-card:first-child .ms-publishing-card__body > p:not(.ms-kicker) {
  grid-column: 2;
  grid-row: 2 / span 3;
  align-self: center;
  margin: 0;
  font-size: 1rem;
}
.ms-editorial-publishing-grid > .ms-editorial-card:first-child .ms-publishing-card__body time,
.ms-editorial-publishing-grid > .ms-editorial-card:first-child .ms-editorial-card__byline {
  grid-column: 1;
}
.ms-editorial-publishing-grid .ms-editorial-card:hover .ms-publishing-card__title a {
  text-decoration: underline;
}
.ms-editorial-publishing-grid .ms-editorial-card:focus-within {
  outline: 2px solid var(--ms-color-ink);
  outline-offset: -3px;
}

@media (max-width: 60rem) {
  .ms-publishing-index .ms-editorial-publishing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-publishing-index .ms-editorial-publishing-grid > .ms-editorial-card { grid-column: span 1; }
  .ms-publishing-index .ms-editorial-publishing-grid > .ms-editorial-card:first-child { grid-column: 1 / -1; }
  .ms-single-editorial .entry-content { font-size: 1.05rem; }
}
@media (max-width: 42rem) {
  .ms-editorial-article > .wp-block-post-title {
    margin-top: 1rem;
    font-size: clamp(2.1rem, 10vw, 3.15rem);
    line-height: 1.04;
  }
  .ms-editorial-meta { gap: .35rem .8rem; font-size: .73rem; }
  .ms-editorial-article > .ms-editorial-featured-image { margin-block: 1.1rem 2.2rem; }
  .ms-single-editorial .entry-content { font-size: 1rem; line-height: 1.75; }
  .ms-single-editorial .entry-content h2 { margin-top: 2.5rem; font-size: 1.75rem; }
  .ms-single-editorial .entry-content h3 { margin-top: 1.8rem; font-size: 1.3rem; }
  .ms-single-editorial .entry-content :is(th, td) { padding: .6rem .55rem; }
  .ms-publishing-index .ms-editorial-publishing-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-publishing-index .ms-editorial-publishing-grid > .ms-editorial-card,
  .ms-publishing-index .ms-editorial-publishing-grid > .ms-editorial-card:first-child { grid-column: 1; min-height: 0; }
  .ms-editorial-publishing-grid > .ms-editorial-card:first-child .ms-publishing-card__body { display: flex; }
  .ms-editorial-publishing-grid > .ms-editorial-card:first-child .ms-publishing-card__title { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .ms-editorial-publishing-grid > .ms-editorial-card:first-child .ms-publishing-card__body > p:not(.ms-kicker) { margin-bottom: 1rem; }
}

/* Sprint 04C — native localized source and article language controls. */
.ms-single-editorial .entry-content .ms-source-reference,
.ms-editorial-single-footer .ms-sources {
  max-width: var(--ms-editorial-reading);
  margin: 1.25rem auto;
  padding: .9rem 1rem;
  border-block: 1px solid var(--ms-color-line);
  background: var(--ms-color-surface);
}
.ms-single-editorial .entry-content .ms-source-reference > summary,
.ms-editorial-single-footer .ms-sources > summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
  list-style-position: inside;
}
.ms-single-editorial .entry-content .ms-source-reference > summary:focus-visible,
.ms-editorial-single-footer .ms-sources > summary:focus-visible,
.ms-editorial-language-control a:focus-visible {
  outline: 2px solid var(--ms-color-ink);
  outline-offset: 3px;
}
.ms-source-reference > ul,
.ms-source-reference > p,
.ms-editorial-single-footer .ms-sources > ul,
.ms-editorial-single-footer .ms-sources > p {
  max-width: var(--ms-editorial-reading);
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.ms-editorial-language-control { margin-block: 1rem 1.5rem; }
.ms-editorial-language-control .ms-i18n-article-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.ms-editorial-language-control .ms-i18n-article-switch a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .45rem .75rem;
  border: 1px solid var(--ms-color-line);
  color: var(--ms-color-ink);
  text-decoration: none;
}
.ms-editorial-language-control .ms-i18n-article-switch a:hover { background: var(--ms-color-neutral); }
