/* WordPress content, classic block wrappers, and admin toolbar integration. */
.work-placeholder {
  display: block;
  padding: 40px;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}
.wp-case-content {
  display: block;
  max-width: 820px;
  margin: 0 auto 80px;
  font-size: 15px;
  line-height: 2;
}
.wp-case-content p {
  margin: 1.5em 0;
}
.wp-case-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  margin: 2.4em 0 1em;
}
.wp-case-content h3 {
  line-height: 1.4;
  margin: 2em 0 1em;
}
.wp-case-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.wp-case-content figure {
  margin: 2em 0;
}
.wp-case-content figcaption {
  font-size: 12px;
  color: #595959;
}
.wp-case-content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.wp-case-content ul,
.wp-case-content ol {
  padding-left: 1.5em;
}
.wp-case-content iframe {
  max-width: 100%;
}
.wp-case-content .wp-block-embed__wrapper {
  aspect-ratio: 16/9;
}
.wp-case-content .wp-block-embed__wrapper iframe {
  width: 100%;
  height: 100%;
}
.wp-page-content {
  padding-bottom: 50px;
}
body.admin-bar .header {
  top: 0;
}
.case-story {
  counter-reset: case-story;
}
.case-story-section {
  counter-increment: case-story;
}
.case-story-section::before {
  content: counter(case-story, decimal-leading-zero);
  font-size: 12px;
  color: #a63d53;
  font-weight: 700;
  padding-top: 10px;
}
.case-story-section > .case-story-copy {
  margin: 0;
  min-width: 0;
}
.case-story-copy > h2 {
  margin-top: 0;
}
@media (max-width: 760px) {
  body.admin-bar .header {
    top: 46px;
  }
  .case-story-section::before {
    font-size: 10px;
    padding-top: 6px;
  }
}
@media (max-width: 700px) {
  .wp-case-content {
    font-size: 14px;
  }
}

/* The contribution and evidence blocks use ordinary WordPress groups, lists and media. */
.case-contribution {
  padding: 34px 38px;
  margin: 5px 0 42px;
  border: 1px solid #eed9df;
  border-radius: 20px;
  background: #fff5f7;
}
.case-story .case-role-kicker {
  margin: 0 0 17px;
  color: #963a50;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.case-contribution .case-role-heading,
.case-evidence .case-evidence-heading {
  margin: 0 0 20px;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.3;
}
.case-contribution .case-role-intro {
  margin: 0;
  font-size: 15px;
  line-height: 2;
}
.case-role-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #e9cbd3;
  list-style: none;
  font-size: 13px;
  line-height: 1.8;
}
.case-role-list li {
  position: relative;
  padding-left: 21px;
}
.case-role-list li::before {
  content: '';
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a63d53;
}
.case-evidence {
  padding-top: 42px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.case-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.case-evidence-grid > .wp-block-group__inner-container {
  display: contents;
}
.case-evidence-grid--single {
  grid-template-columns: minmax(0, 1fr);
}
.case-evidence-grid figure {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: #fcf6f8;
}
.case-evidence-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: 6px;
}
.case-evidence-grid figcaption {
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.9;
}
.case-evidence-grid--single .case-evidence--portrait {
  width: 100%;
  max-width: 360px;
  justify-self: center;
}
@media (max-width: 760px) {
  .case-contribution {
    margin: 12px 0 26px;
    padding: 26px 23px;
    border-radius: 16px;
  }
  .case-contribution .case-role-intro {
    font-size: 14px;
  }
  .case-role-list {
    font-size: 12px;
  }
  .case-evidence {
    padding-top: 30px;
  }
  .case-evidence-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .case-evidence-grid figure {
    padding: 15px;
  }
}
