/* Keep the article on one editorial grid from the byline to the next story. */
.mm-edition.post-template-default .main > article.content {
  --layout--gap: clamp(20px, 2.35vw, 36px);
  --edition-post-column-gap: clamp(24px, 3.35vw, 64px);
  width: 100%;
  padding-block-start: clamp(16px, 1.65vw, 28px);
}
.mm-edition:is(.post-template-classic, .post-template-image) .content > .post-media {
  max-width: 100%;
}
.mm-edition.post-template-default .content > :is(.edition-post-hero, .mm-breadcrumbs, .mm-breadcrumbs-wrap, .post-content-grid, .section-read-next) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}
.mm-edition.post-template-default.template-narrow .main > article.content {
  --container--width: 820px;
}
.mm-edition.post-template-default .mm-breadcrumbs-wrap > .mm-breadcrumbs {
  width: 100%;
  margin-inline: 0;
}
.mm-edition .edition-post-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 1.5vw, 24px) var(--edition-post-column-gap);
  padding-block-start: clamp(15px, 1.5vw, 24px);
  border-block-start: 1px solid var(--edition-rule);
}
.mm-edition .edition-post-hero > .post-media {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}
.mm-edition .edition-post-hero > .mm-breadcrumbs-wrap {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
}
.mm-edition.post-template-default .edition-post-hero > .post-header.container-wide {
  display: flex;
  flex-flow: column nowrap;
  align-items: start;
  gap: clamp(8px, 1.2vw, 18px);
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.mm-edition .edition-post-hero > .post-header.container-wide::before {
  content: none;
}
.mm-edition.post-template-default .post-header .post-header-info {
  flex: none;
  width: 100%;
  min-height: 0;
  padding: 0;
  row-gap: clamp(8px, .7vw, 12px);
}
.mm-edition.post-template-default .post-header .edition-post-section {
  margin: 0;
  color: var(--edition-muted);
  text-decoration: none;
}
.mm-edition.post-template-default .post-header .edition-post-section:hover {
  color: var(--edition-ink);
  text-decoration: underline;
}
.mm-edition.post-template-default .post-header h1 {
  margin: 0;
  overflow-wrap: anywhere;
}
.mm-edition.post-template-default .post-header .post-meta {
  position: static;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.mm-edition.post-template-default .post-header .post-meta-author-image {
  position: static;
  vertical-align: middle;
}
.mm-edition.post-template-default .post-header-buttons {
  align-self: flex-start;
}
.mm-edition.post-template-default .post-header-buttons .button {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding-inline: 0 10px;
  background: transparent;
  box-shadow: none;
  color: var(--edition-ink);
}
.mm-edition.post-template-default .post-header-buttons .button:is(:hover, :focus-visible, [aria-expanded="true"]) {
  text-decoration: underline;
  text-underline-offset: .22em;
}
.mm-edition.post-template .post-media:not(:has(.post-featured-video)) > .post-featured-image figcaption {
  position: static;
  inset: auto;
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  color: var(--edition-muted);
  font: 450 .78rem/1.45 Geist, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.mm-edition.post-template .post-featured-image figcaption a { color: inherit; }
.mm-edition.post-template-default .edition-post-hero .post-featured-image > picture {
  background: var(--edition-surface);
}
.mm-edition.post-template-default .edition-post-hero .post-media:not(:has(.post-featured-video)) .post-featured-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(110vw, 560px);
  aspect-ratio: auto;
  object-fit: cover;
}
@media (min-width: 900px) {
  .mm-edition .edition-post-hero--media,
  .mm-edition .edition-post-hero:has(.post-featured-video) {
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
    align-items: center;
  }
  .mm-edition.post-template-default .edition-post-hero .post-media:not(:has(.post-featured-video)) .post-featured-image img {
    max-height: clamp(300px, 31vw, 560px);
  }
  .mm-edition .edition-post-hero:not(.edition-post-hero--media):not(:has(.post-featured-video)) .post-header-info {
    max-width: 65rem;
  }
}
/* Pictures inside the article retain the photographer's full composition. */
.mm-edition.post-template-default .post-content .mm-story figure:not(.mm-gallery figure) img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.mm-edition.post-template-default .post-content-wrapper > .post-content {
  width: 100%;
  max-width: var(--container--width);
  margin-inline: 0 auto;
  padding-block-start: 24px;
}
.mm-edition.post-template-default .post-content-grid > :is(.post-tags, .post-sidebar),
.mm-edition.post-template-default .post-content-wrapper > :is(.post-card-author, .toc-content) {
  margin-inline: 0 auto;
}
.mm-edition.post-template-default .post-content-grid > .post-content-wrapper {
  min-width: 0;
}
.mm-edition.post-template-default .post-content > :is(.kg-image-card, .kg-gallery-card, .kg-video-card, table, .responsive-table):is(.kg-width-wide, .kg-width-full) {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}
.mm-edition.post-template-default .post-content > :is(.mm-story, .mm-auto, .mm-news):nth-child(1 of :not(style, script, link)) {
  margin-block-start: 0;
}
/* The article about the Ukrainian-Qatari Business Council establishes the reading style. */
.mm-edition.post-template-default .post-content {
  --edition-body-type: 1.0625rem;
  --edition-paragraph-gap: 16px;
  --edition-heading-gap: 28px;
}
.mm-edition.post-template-default .post-content > :is(.mm-news, .mm-story, .mm-auto) {
  color: inherit;
  font-size: var(--edition-body-type);
  line-height: 1.7;
}
.mm-edition.post-template-default .post-content > p,
.mm-edition.post-template-default .post-content :is(.mm-news, .mm-story, .mm-auto) > section > p,
.mm-edition.post-template-default .post-content :is(.mm-news, .mm-story, .mm-auto) > p:not(.mm-source, .mm-news-source, .mm-auto-source) {
  font-size: var(--edition-body-type);
  line-height: 1.7;
  margin-block: 0 var(--edition-paragraph-gap);
}
.mm-edition.post-template-default .post-content :is(.mm-lead, .mm-news-lead, .mm-auto-lead),
.mm-edition.post-template-default .post-content > :is(p, blockquote:not(.kg-blockquote-alt)):nth-child(1 of :not(style, script, link)):not(:empty) {
  border-inline-start: 3px solid var(--color-accent, #4f46e5);
  padding: 8px 0 8px 18px;
  margin-block: 0 var(--edition-paragraph-gap);
  font-size: var(--edition-body-type);
  line-height: 1.7;
  font-weight: 400;
}
.mm-edition.post-template-default .post-content :is(.mm-news, .mm-story, .mm-auto) > section {
  margin-block: var(--edition-heading-gap) 0;
}
.mm-edition.post-template-default .post-content > h2,
.mm-edition.post-template-default .post-content :is(.mm-news, .mm-story, .mm-auto) > h2 {
  margin-block: var(--edition-heading-gap) 14px;
}
.mm-edition.post-template-default .post-content :is(.mm-news, .mm-story, .mm-auto) > section > h2 {
  margin-block: 0 14px;
}
/* The older automotive posts also receive an !important site-wide footer style. */
body.mm-edition.post-template-default .post-content .mm-auto > .mm-auto-lead {
  border-inline-start-color: var(--color-accent, #4f46e5);
  border-radius: 0;
  background: transparent;
  padding: 8px 0 8px 18px !important;
  margin: 0 0 var(--edition-paragraph-gap) !important;
}
body.mm-edition.post-template-default .post-content .mm-auto > .mm-auto-lead + p {
  margin: 0 0 var(--edition-paragraph-gap) !important;
  line-height: 1.7;
}
body.mm-edition.post-template-default .post-content .mm-auto > h2 {
  margin: var(--edition-heading-gap) 0 14px !important;
}
.mm-edition.post-template-default .post-tags ul {
  flex-wrap: wrap;
  gap: 5px 16px;
}
.mm-edition.post-template-default .post-tags li a {
  padding-inline: 0;
  border: 0;
  background: transparent;
  color: var(--edition-muted);
  text-decoration: underline;
  text-decoration-color: var(--edition-rule);
  text-underline-offset: .24em;
}
@media (min-width: 1024px) {
  .mm-edition.post-template-default .content > .post-content-grid {
    --container--width: clamp(820px, 64vw, 920px);
  }
  .mm-edition.post-template-default.post-has-sidebar .content > .post-content-grid {
    /* Follow the cover columns while keeping enough room for prose on smaller desktops. */
    --reading-min: min(38rem, calc(100% - var(--edition-post-column-gap) - var(--post--sidebar--width)));
    grid-template-columns: minmax(var(--reading-min), 48fr) minmax(0, 52fr);
    column-gap: var(--edition-post-column-gap);
  }
  .mm-edition.post-template-default.post-has-sidebar .post-content-grid > .post-sidebar {
    width: min(100%, var(--post--sidebar--width));
  }
  .mm-edition.post-template-default:not(.post-has-sidebar) .post-content-grid > .post-content-wrapper {
    width: 100%;
    max-width: var(--container--width);
    margin-inline: 0 auto;
  }
  .mm-edition.post-template-default:not(.post-has-sidebar) .content > .post-content-grid {
    container-type: inline-size;
  }
  .mm-edition.post-template-default:not(.post-has-sidebar) .post-content > :is(.kg-image-card, .kg-gallery-card, .kg-video-card):is(.kg-width-wide, .kg-width-full) {
    width: 100cqi;
    max-width: none;
  }
  .mm-edition.post-template-default:not(.post-has-sidebar) .post-content > :is(.kg-image-card, .kg-gallery-card, .kg-video-card).kg-width-wide {
    max-width: var(--container-wide--width);
  }
  .mm-edition.post-template-default.post-has-sidebar .post-content-grid:has(.post-tags ul > li:only-child) > :is(.post-content-wrapper, .post-sidebar) {
    grid-row: 1;
  }
}

/* Authored reference and related-reading cards inside an article. */
.mm-edition .post-content > :is(.edition-article-resource, .edition-article-related) {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container--width);
  min-width: 0;
  margin: clamp(28px, 4vw, 50px) auto;
  padding: clamp(20px, 2.5vw, 34px) 0;
  border-block: 1px solid var(--edition-rule);
  color: var(--edition-ink);
  text-align: start;
  container-type: inline-size;
}
.mm-edition .post-content .edition-article-resource__eyebrow,
.mm-edition .post-content .edition-article-related__label {
  display: block;
  color: var(--edition-muted);
  font: 620 .78rem/1.35 Geist, system-ui, sans-serif;
  letter-spacing: .035em;
}
.mm-edition .post-content .edition-article-resource > h2,
.mm-edition .post-content .edition-article-related > h2 {
  margin: 0 0 .65em;
  font: 600 clamp(1.4rem, 1rem + 1.5cqi, 1.95rem)/1.18 var(--edition-display);
  color: var(--edition-ink);
  text-align: start;
  letter-spacing: -.022em;
  overflow-wrap: anywhere;
}
.mm-edition .post-content .edition-article-resource__eyebrow + h2 { margin-top: .35em; }
.mm-edition .post-content .edition-article-resource p {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: start;
}
.mm-edition .post-content .edition-article-resource__facts {
  display: grid;
  gap: 16px clamp(18px, 4cqi, 32px);
  margin: 22px 0;
}
.mm-edition .post-content .edition-article-resource__facts h3,
.mm-edition .post-content .edition-article-resource__topics h3 {
  margin: 0 0 .35em;
  color: var(--edition-ink);
  font: 630 1.03rem/1.35 Geist, system-ui, sans-serif;
}
.mm-edition .post-content .edition-article-resource__facts p,
.mm-edition .post-content .edition-article-resource__topics li {
  font-size: .97em;
  line-height: 1.56;
}
.mm-edition .post-content .edition-article-resource__topics ul {
  display: block;
  margin: .6em 0 1.1em;
  padding-inline-start: 1.25em;
  list-style: disc outside;
}
.mm-edition .post-content .edition-article-resource__topics li {
  display: list-item;
  margin: .25em 0;
  padding: 0;
  list-style: inherit;
}
.mm-edition .post-content .edition-article-resource__topics li::before { content: none; }
.mm-edition .post-content .edition-article-resource__topics li::marker { color: var(--edition-muted); }
.mm-edition .post-content .edition-article-resource__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin-top: .6em;
}
.mm-edition .post-content .edition-article-resource__actions a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--edition-ink);
  font: 600 .94rem/1.4 Geist, system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: .23em;
  text-decoration-thickness: 1px;
}
.mm-edition .post-content .edition-article-resource__actions a:hover { text-decoration-thickness: 2px; }
.mm-edition .post-content .edition-article-resource__actions svg {
  display: block;
  width: 1em;
  height: 1em;
}
.mm-edition .post-content .edition-article-resource__source p {
  margin: .35rem 0 0;
  color: var(--edition-muted);
  font: 460 .84rem/1.5 Geist, system-ui, sans-serif;
}
.mm-edition .post-content .edition-article-related__list {
  display: grid;
  gap: 0 clamp(18px, 4cqi, 32px);
}
.mm-edition .post-content .edition-article-related__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 0;
  border-block-start: 1px solid var(--edition-rule);
  color: var(--edition-ink);
  text-decoration: none;
}
.mm-edition .post-content .edition-article-related__item h3 {
  margin: .25em 0;
  font: 600 1.17rem/1.28 var(--edition-display);
  color: inherit;
}
.mm-edition .post-content .edition-article-related__item p {
  margin: .4em 0 0;
  color: var(--edition-muted);
  font: 440 .94rem/1.5 Geist, system-ui, sans-serif;
}
.mm-edition .post-content .edition-article-related__arrow { color: var(--edition-muted); }
.mm-edition .post-content .edition-article-related__item:is(:hover,:focus-visible) h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
@container (min-width: 38rem) {
  .mm-edition .post-content :is(.edition-article-resource__facts, .edition-article-related__list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
