/* Shared layout for the published Thinking articles. */
#main > .wrap:has(> .article-body) {
  --thinking-column: 760px;
  --thinking-figure-space: clamp(26px, 4vw, 42px);
}

#main .article-heading {
  max-width: var(--thinking-column);
  padding-bottom: clamp(22px, 3vw, 32px);
}

#main .article-heading h1 {
  margin-bottom: 18px;
  text-wrap: balance;
}

#main .article-body :is(.spin-story, .spin-live-body) {
  max-width: var(--thinking-column);
  margin-inline: auto;
  overflow-wrap: break-word;
}

#main .article-body .spin-story > :is(p, ul, ol),
#main .article-body .spin-live-body p[data-ricos-paragraph]:not(li p) {
  margin: 0 0 22px !important;
}

#main .article-body .spin-story > h2,
#main .article-body .spin-live-body h2[data-ricos-heading] {
  margin: clamp(32px, 4.6vw, 48px) 0 14px !important;
}

#main .article-body .spin-story > :is(h3, h4),
#main .article-body .spin-live-body :is(h3, h4)[data-ricos-heading] {
  margin-inline: 0 !important;
  margin-bottom: 12px !important;
}

#main .article-body .spin-story > figure {
  width: 100%;
  box-sizing: border-box;
  margin: var(--thinking-figure-space) auto;
}

#main .article-body .spin-story > figure:first-child,
#main .article-body .spin-story > .article-lead-art {
  margin-top: 0;
}

#main .article-body .spin-story > figure > :is(img, picture, video),
#main .article-body .spin-story > figure > picture > img,
#main .article-body .spin-story .spin-amazon-gallery figure > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none;
  margin: 0 !important;
}

#main .article-body :is(.spin-story, .spin-live-body) figure > figcaption {
  margin: 9px 0 0 !important;
  padding: 0;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #565f5b !important;
  text-align: left;
}

#main .article-body .spin-story :is(.diagram, .spin-house, .spin-framework, .ev-map, .ca-board, .spin-process, .spin-touchpoints) > figcaption {
  border-top: 1px solid #bacdca;
  padding-top: 11px;
  margin-top: 16px !important;
}

#main .article-body .spin-story > .spin-framework {
  padding: clamp(18px, 3.5vw, 32px);
}

#main .spin-story .spin-framework .sf-row {
  padding: clamp(13px, 2vw, 18px) 0;
  gap: clamp(10px, 2vw, 18px);
}

#main .spin-story .spin-framework .sf-row p {
  margin: 0;
}

@media (max-width: 650px) {
  #main > .wrap:has(> .article-body) {
    --thinking-figure-space: 25px;
    box-sizing: border-box;
    width: 100%;
    padding-inline: clamp(18px, 5vw, 32px);
  }

  #main .article-heading {
    padding-bottom: 22px;
  }

  #main .article-heading h1 {
    font-size: clamp(30px, 7.5vw, 40px);
    margin: 22px 0 14px;
  }

  #main .article-body .spin-story > :is(p, ul, ol),
  #main .article-body .spin-live-body p[data-ricos-paragraph]:not(li p) {
    margin-bottom: 20px !important;
  }
}
