.article-cover-video {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 3rem;
  background: #000000;
}

.figure-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Three-camera rollouts are very wide (4.5:1), so they break out of the text column. */
.article .bleed-figure {
  position: relative;
  left: 50%;
  /* The blog shell's content width: 1120px less its 36px side padding. */
  width: min(100vw - 72px, 1048px);
  transform: translateX(-50%);
}

.article .bleed-figure figcaption {
  width: min(100%, 45rem);
  margin-right: auto;
  margin-left: auto;
}

.verdict {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: 0.1rem 0.85rem 0.15rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--title-font);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
  text-transform: uppercase;
}

.article .verdict--yes {
  color: #0047ab;
}

.article .verdict--no {
  color: var(--muted);
}

.article .end-note p + p {
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .article .bleed-figure {
    width: calc(100vw - 44px);
  }
}

@media (max-width: 510px) {
  /* At phone width a 4.5:1 strip is too short to read, so it scrolls sideways instead. */
  .bleed-figure .figure-frame {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .article .bleed-figure video {
    width: 54rem;
    max-width: none;
  }
}

/* Beside the sidebar table of contents, wide rollouts extend right only, clear of the sidebar. */
@media (min-width: 1001px) {
  .article-layout .article .bleed-figure {
    left: 0;
    /* The 680px column, the 24px gap and the right-hand grid column: (shell - 728px) / 2. */
    width: calc(340px + min(100vw - 72px, 1048px) / 2);
    transform: none;
  }

  .article-layout .article .bleed-figure figcaption {
    width: auto;
    max-width: 680px;
    margin-left: 0;
  }
}

/* Table of contents: the four model subsections nest under Model comparison and open while it is being read. */
.article-toc .toc-group {
  display: none;
}

.article-toc .toc-group.is-open {
  display: grid;
}

.article-toc nav a.toc-sub {
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 27px;
  font-size: 11.5px;
}

.article h3[id] {
  scroll-margin-top: 32px;
}

.article h3:focus {
  outline: none;
}

/* The sidebar can be closed beside the article too, not only above it. */
.article-toc[data-collapsible] summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.article-toc[data-collapsible] summary::after {
  content: '+';
}

.article-toc[data-collapsible][open] summary::after {
  content: '−';
}

.article-toc[data-collapsible]:not([open]) summary {
  margin-bottom: 0;
}

.article-toc nav a[data-parent-current] {
  color: #365845;
}

/* Above the article the list is opened before Model comparison is reached, so the subsections always show. */
@media (max-width: 1000px) {
  .article-toc .toc-group {
    display: grid;
  }
}
