body.legacy-ux-page .wrap {
  max-width: 1036px;
}

body.legacy-ux-page .page-head {
  padding: 72px 0 18px;
}

body.legacy-ux-page .page-head h1 {
  font-size: clamp(2.25rem, 3.2vw, 2.65rem);
  font-weight: 400;
}

body.legacy-ux-page article.detail > #intro > p {
  max-width: none;
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}

body.legacy-ux-page .meta-grid {
  margin: 36px 0 30px;
  padding: 16px 0 18px;
  gap: 20px 32px;
}

body.legacy-ux-page .meta-grid dt {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

body.legacy-ux-page .meta-grid dd {
  font-size: 14px;
  line-height: 1.65;
}

body.legacy-ux-page .bleed {
  margin-top: 0;
}

body.legacy-ux-page article.detail p,
body.legacy-ux-page article.detail ul,
body.legacy-ux-page article.detail ol {
  font-family: var(--sans);
}

body.legacy-ux-page article.detail img {
  border-radius: 0;
}

body.mlh-page .meta-grid {
  margin-bottom: 92px;
}

.mlh-problems .mlh-problem-hero {
  width: 72%;
  margin: 58px auto 84px;
}

.mlh-problems .mlh-problem-hero img {
  display: block;
  width: 100%;
  margin: 0;
}

.mlh-problems > h3 {
  margin: 0 0 64px;
  font-size: 1.35rem;
}

.mlh-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  align-items: start;
}

.mlh-problem-grid article > img {
  display: block;
  width: 42%;
  max-width: 132px;
  margin: 0 auto 48px;
}

.mlh-problem-grid article > div {
  min-height: 196px;
  padding-left: 14px;
  border-left: 1px solid #111;
}

.mlh-problem-grid h4 {
  margin: 0 0 7px;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.35;
}

.mlh-problem-grid p {
  max-width: none;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

/* Nudge Design: restore the staggered editorial composition from the legacy case study. */
@media (min-width: 761px) {
  body.nudge-page #s2 {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
    column-gap: 48px;
    row-gap: 36px;
    align-items: start;
  }

  body.nudge-page #s2 > h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }

  body.nudge-page #s2 > img {
    grid-column: 1;
    grid-row: 2 / span 2;
    width: 100%;
    margin: 0;
  }

  body.nudge-page #s2 > p {
    max-width: none;
    margin: 0;
  }

  body.nudge-page #s2 > p:nth-of-type(1) {
    grid-column: 2;
    grid-row: 2;
  }

  body.nudge-page #s2 > p:nth-of-type(2) {
    grid-column: 1;
    grid-row: 4;
  }

  body.nudge-page #s2 > p:nth-of-type(3) {
    grid-column: 2;
    grid-row: 4;
  }

  body.nudge-page #s2 > p:nth-of-type(4) {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    font-family: var(--body-serif);
    font-size: clamp(1.85rem, 2.9vw, 2.65rem);
    line-height: 1.28;
  }

  body.nudge-page #s2 > p:nth-of-type(5) {
    grid-column: 2;
    grid-row: 5;
  }

  body.nudge-page #s3 .qa,
  body.nudge-page #s5 .split p {
    max-width: none;
  }
}

body.book-page article.detail > .dsec > img {
  display: block;
  width: min(100%, 660px);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1240px) {
  body.legacy-ux-page .side-nav {
    display: block;
  }
}

.mlh-editorial {
  --mlh-gap: clamp(34px, 4.5vw, 68px);
}

.mlh-editorial > h2 {
  margin-top: 82px;
}

.mlh-editorial .mlh-insight,
.mlh-editorial .mlh-design-block {
  margin: 70px 0 132px;
}

.mlh-editorial .mlh-insight > h3,
.mlh-editorial .mlh-design-block > h3 {
  margin: 0 0 54px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.mlh-editorial .mlh-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--mlh-gap);
  align-items: center;
}

.mlh-editorial figure {
  min-width: 0;
  margin: 0;
}

.mlh-editorial figure img,
.mlh-editorial .mlh-solution img,
.mlh-editorial .mlh-final-grid img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}

.mlh-editorial .mlh-copy p,
.mlh-editorial .mlh-design-copy p,
.mlh-editorial figcaption {
  max-width: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

.mlh-editorial .mlh-copy h4,
.mlh-editorial .mlh-design-copy h4 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.4;
}

.mlh-editorial .mlh-copy h4:not(:first-child) {
  margin-top: 34px;
}

.mlh-connect-grid {
  align-items: stretch;
}

.mlh-connect-grid .mlh-copy {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 60px;
}

.mlh-connect-grid blockquote {
  align-self: center;
  font-family: var(--body-serif);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.35;
}

.mlh-quest-visual {
  position: relative;
}

.mlh-quest-card {
  position: absolute;
  left: 30%;
  display: grid;
  width: 46%;
  padding: 10px 14px;
  border: 3px solid #ff4937;
  border-radius: 999px;
  background: #fff;
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(10px, 1vw, 14px);
  line-height: 1.22;
  text-wrap: balance;
  box-sizing: border-box;
}

.mlh-quest-card b {
  margin-bottom: 3px;
}

.mlh-quest-card-top {
  top: 14%;
}

.mlh-quest-card-bottom {
  top: 65%;
}

.mlh-quest-effects {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 38px;
  padding: 9% 0 7%;
}

.mlh-support-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
}

.mlh-solution {
  position: relative;
  min-height: 760px;
}

.mlh-solution-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 72% !important;
}

.mlh-solution blockquote {
  position: absolute;
  z-index: 2;
  top: 34px;
  right: 0;
  width: 62%;
  padding: 30px 34px 36px;
  background: #ff4432;
  color: #fff;
  font-family: var(--body-serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.35;
}

.mlh-solution-family {
  position: absolute;
  z-index: 3;
  top: 408px;
  right: 0;
  display: grid;
  width: 25%;
  gap: 18px;
}

.mlh-solution-family span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: url("assets/optimized/mlh_di_7.webp?v=20260821-original");
  background-repeat: no-repeat;
  background-size: 200% 100%;
}

.mlh-solution-family span:first-child {
  background-position: left center;
}

.mlh-solution-family span:last-child {
  background-position: right center;
}

.mlh-solution::after {
  content: "";
  position: absolute;
  top: 468px;
  right: 19%;
  width: 23%;
  border-top: 7px dotted #ff4428;
  transform: rotate(7deg);
  transform-origin: right center;
}

.mlh-solution > p {
  position: absolute;
  right: 29%;
  bottom: 0;
  width: 46%;
  max-width: none;
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.mlh-design .mlh-design-block {
  margin-bottom: 150px;
}

.mlh-concept-main {
  width: 71%;
  margin-left: auto !important;
}

.mlh-editorial figcaption {
  display: block;
  margin-top: 8px;
}

.mlh-editorial figcaption b,
.mlh-editorial figcaption span {
  display: block;
}

.mlh-editorial figcaption span {
  margin-top: 8px;
}

.mlh-concept-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 7%;
  align-items: start;
  margin-top: 80px;
}

.mlh-design-row {
  display: grid;
  grid-template-columns: minmax(220px, .32fr) minmax(0, .68fr);
  gap: 5%;
  align-items: start;
}

.mlh-design-row .mlh-design-copy h3 {
  margin: 0 0 34px;
}

.mlh-final-grid {
  display: grid;
  grid-template-columns: 33.15% 66.85%;
  align-items: end;
  gap: 0;
  overflow: hidden;
}

.mlh-final-map {
  align-self: end;
  transform: none;
}

.mlh-final-collage {
  grid-column: 2;
  align-self: end;
}

@media (max-width: 760px) {
  .mlh-problems .mlh-problem-hero {
    width: 100%;
    margin: 34px auto 54px;
  }

  .mlh-problems > h3 {
    margin-bottom: 38px;
  }

  .mlh-problem-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .mlh-problem-grid article {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 20px;
    align-items: start;
  }

  .mlh-problem-grid article > img {
    width: 100%;
    margin: 0;
  }

  .mlh-problem-grid article > div {
    min-height: 0;
  }

  .mlh-quest-card {
    left: 29%;
    width: 47%;
    padding: 6px 8px;
    border-width: 2px;
    font-size: 9px;
  }

  body.legacy-ux-page .page-head {
    padding: 42px 0 16px;
  }

  body.legacy-ux-page .meta-grid {
    margin-bottom: 56px;
  }

  .mlh-editorial .mlh-insight,
  .mlh-editorial .mlh-design-block {
    margin: 52px 0 86px;
  }

  .mlh-editorial .mlh-insight > h3,
  .mlh-editorial .mlh-design-block > h3 {
    margin-bottom: 28px;
  }

  .mlh-editorial .mlh-two-col,
  .mlh-concept-pair,
  .mlh-design-row,
  .mlh-final-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  .mlh-connect-grid .mlh-copy {
    gap: 28px;
  }

  .mlh-connect-grid blockquote {
    font-size: 2rem;
  }

  .mlh-quest-effects {
    padding: 0;
  }

  .mlh-solution {
    display: grid;
    min-height: 0;
    gap: 22px;
  }

  .mlh-solution-photo,
  .mlh-solution blockquote,
  .mlh-solution > p {
    position: static;
    width: 100% !important;
  }

  .mlh-solution-family {
    position: static;
    grid-template-columns: 1fr 1fr;
    width: min(360px, 100%);
    margin-left: auto;
  }

  .mlh-solution blockquote {
    padding: 24px;
    font-size: 2rem;
  }

  .mlh-solution::after {
    content: none;
  }

  .mlh-concept-main {
    width: 100%;
  }

  .mlh-final-map {
    transform: none;
  }

  .mlh-final-collage {
    grid-column: 1;
  }
}
