/* Media conditions keep their original values and cascade order:
 * (max-width: 768px)
 * (min-width: 769px) and (max-width: 1439px)
 * (min-width: 769px) and (max-width: 1100px)
 * (min-width: 769px)
 * (min-width: 1600px)
 */
/* Learning challenges and supporting photograph. */
h2.hanging {
  margin-left: -0.35em;
}
.problem-layout {
  display: grid;
  grid-template-columns: var(--lp-grid-share-5) var(--lp-grid-share-7);
  gap: var(--group);
  align-items: center;
}
.problem-copy p {
  margin-top: var(--lp-space-32);
}
.problem-photo {
  width: calc(
    var(--lp-full-size) +
      (
        var(--lp-viewport-width) -
          min(var(--container), var(--lp-viewport-width) - var(--gutter) * 2)
      ) /
      2
  );
  aspect-ratio: 1.3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius) 0 0 var(--radius);
}
.problem {
  overflow: hidden;
}
@media (max-width: 768px) {
  .problem-layout {
    grid-template-columns: var(--lp-grid-unit);
    gap: var(--lp-size-40);
  }
  .problem-copy p {
    margin-top: var(--lp-space-24);
  }
  .problem-photo {
    width: var(--lp-full-size);
    aspect-ratio: 1.25;
    border-radius: var(--radius);
  }
}
#problem {
  --intrinsic: 520px;
}
@media (max-width: 768px) {
  #problem {
    --intrinsic: 544px;
  }
}
body.handwritten-preview #problem {
  position: relative;
  content-visibility: visible;
  contain: none;
  --hw-note-font: "Hand Note", var(--sans);
  --hw-band-gradient: linear-gradient(
    105deg,
    var(--hw-blue) 0%,
    var(--hw-blue) 76%,
    var(--hw-cyan) 100%
  );
  --hw-photo-border: 8px;
  --hw-photo-offset: 12px;
  --hw-note-leading: 1.48;
}

body.handwritten-preview #problem {
  --hw-problem-height: 956px;
  --hw-problem-copy-top: 486px;
  --hw-problem-brush-width: 900px;
  --hw-problem-brush-height: 395px;
  --hw-problem-note-size: 32px;
  min-height: var(--hw-problem-height);
  padding-block: var(--hw-problem-copy-top) var(--hw-space-section-pc);
  overflow: visible;
  background: white;
  isolation: isolate;
}

body.handwritten-preview #problem > .container {
  position: relative;
  z-index: 3;
}
body.handwritten-preview #problem .problem-layout {
  display: block;
}
body.handwritten-preview #problem .problem-copy {
  position: relative;
  max-width: 565px;
}
body.handwritten-preview #problem .problem-copy h2 {
  font-size: var(--hw-h2-pc);
  line-height: 1.6;
  max-width: 565px;
  color: var(--hw-navy);
}
body.handwritten-preview #problem .problem-copy p {
  max-width: 520px;
  max-inline-size: none;
  margin-top: var(--lp-space-32);
  font-size: var(--hw-body-pc);
  line-height: 1.9;
  color: var(--hw-body);
}
body.handwritten-preview #problem .problem-layout > div:last-child {
  position: absolute;
  top: calc(-1 * var(--hw-problem-copy-top));
  right: calc((1280px - 100vw) / 2);
  width: min(66vw, 950px);
  height: var(--hw-problem-height);
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 13%,
    black 37%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 13%,
    black 37%
  );
}
body.handwritten-preview #problem .problem-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 56% center;
  border-radius: 0;
}
body.handwritten-preview #problem .hw-problem-brush {
  position: absolute;
  z-index: 4;
  left: max(16px, calc((100vw - 1440px) / 2 + 20px));
  top: 84px;
  width: var(--hw-problem-brush-width);
  height: var(--hw-problem-brush-height);
  object-fit: contain;
  rotate: -4deg;
  transform-origin: left center;
  pointer-events: none;
}
body.handwritten-preview #problem .hw-problem-note {
  position: absolute;
  z-index: 5;
  right: max(72px, calc((100vw - 1440px) / 2 + 72px));
  top: 77px;
  width: 340px;
  max-inline-size: none;
  font-family: var(--hw-note-font);
  font-size: var(--hw-problem-note-size);
  font-weight: 600;
  line-height: var(--hw-note-leading);
  color: var(--hw-navy);
  rotate: -6deg;
}
body.handwritten-preview #problem .hw-problem-note .hw-note-line {
  display: table;
  position: relative;
}
body.handwritten-preview #problem .hw-problem-note .hw-note-line > span {
  padding: 0 0.12em;
  background: linear-gradient(
    transparent 58%,
    var(--hw-marker) 58%,
    var(--hw-marker) 95%,
    transparent 95%
  );
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
body.handwritten-preview #problem .hw-problem-note .hw-note-arrow {
  display: block;
  position: absolute;
  left: 72px;
  top: 108px;
  width: 105px;
  height: 76px;
  rotate: 45deg;
  color: var(--hw-navy);
}
body.handwritten-preview #problem .hw-story-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -27px;
  height: 90px;
  z-index: 4;
  pointer-events: none;
  background: var(--hw-band-gradient);
  clip-path: polygon(0 0, 100% 32%, 100% 100%, 0 68%);
  filter: drop-shadow(
    0 -5px 8px color-mix(in srgb, var(--hw-cyan) 18%, transparent)
  );
}
@media (min-width: 769px) and (max-width: 1439px) {
  body.handwritten-preview #problem .problem-layout > div:last-child {
    right: -80px;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  body.handwritten-preview #problem {
    --hw-problem-brush-width: 72vw;
    --hw-problem-brush-height: 350px;
    --hw-problem-note-size: 27px;
    --hw-problem-copy-top: 392px;
  }
  body.handwritten-preview #problem .problem-copy {
    max-width: 52%;
  }
  body.handwritten-preview #problem .problem-copy h2 {
    font-size: 42px;
  }
  body.handwritten-preview #problem .hw-problem-note {
    right: 30px;
    width: 280px;
  }
}
@media (max-width: 768px) {
  body.handwritten-preview #problem {
    --hw-photo-border: 6px;
    --hw-photo-offset: 8px;
  }
  body.handwritten-preview #problem {
    --hw-problem-brush-width: calc(100vw - 16px);
    --hw-problem-brush-height: 118px;
    --hw-problem-note-size: 21px;
    min-height: 0;
    padding-block: var(--hw-space-section-sp) 96px;
  }
  body.handwritten-preview #problem > .container {
    z-index: 3;
  }
  body.handwritten-preview #problem .problem-layout {
    display: flex;
    flex-direction: column;
    gap: var(--lp-size-40);
  }
  body.handwritten-preview #problem .problem-copy {
    max-width: none;
    width: 100%;
    order: 2;
  }
  body.handwritten-preview #problem .problem-copy h2 {
    max-width: none;
    font-size: var(--hw-h2-sp);
    line-height: 1.6;
  }
  body.handwritten-preview #problem .problem-copy p {
    max-width: none;
    margin-top: var(--lp-size-40);
    font-size: var(--hw-body-sp);
    line-height: 1.8;
  }
  body.handwritten-preview #problem .problem-layout > div:last-child {
    position: relative;
    order: 1;
    top: auto;
    right: auto;
    margin-inline: calc(50% - 50vw);
    margin-top: var(--lp-space-66);
    z-index: -1;
    -webkit-mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.65) 0%,
      black 18%,
      black 67%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.65) 0%,
      black 18%,
      black 67%,
      transparent 100%
    );
  }
  body.handwritten-preview #problem .problem-photo {
    width: 100%;
    height: 100%;
  }
  body.handwritten-preview #problem .hw-problem-brush {
    left: 8px;
    top: var(--hw-space-section-sp);
    object-fit: contain;
  }
  body.handwritten-preview #problem .hw-problem-note {
    top: 424px;
    right: 22px;
    rotate: -6deg;
  }
  body.handwritten-preview #problem .hw-problem-note .hw-note-arrow {
    top: 62px;
    left: 20px;
    width: 72px;
    height: 48px;
    rotate: 22deg;
  }
  body.handwritten-preview #problem .hw-story-band {
    height: 60px;
    bottom: -20px;
    clip-path: polygon(0 0, 100% 32%, 100% 100%, 0 67%);
  }
}
body.handwritten-preview #problem .problem-layout > div:last-child {
  width: min(66vw, 912px);
  top: calc(-1 * var(--hw-problem-copy-top) + 156px);
  height: calc(var(--hw-problem-height) - 156px);
}
body.handwritten-preview #problem .problem-photo {
  object-position: 0% center;
}
body.handwritten-preview #problem .hw-problem-brush {
  top: 72px;
}
body.handwritten-preview #problem .hw-problem-note {
  top: 36px;
  padding: var(--lp-space-12) var(--lp-space-18) var(--lp-space-14);
  background: white;
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--hw-cyan);
  width: 350px;
}
body.handwritten-preview #problem .hw-problem-note .hw-note-arrow {
  left: 290px;
  top: 112px;
  width: 78px;
  height: 48px;
  rotate: 58deg;
}
@media (max-width: 768px) {
  body.handwritten-preview #problem .problem-layout > div:last-child {
    width: 100vw;
    top: auto;
    height: 445px;
  }
  body.handwritten-preview #problem .problem-photo {
    object-position: 59% center;
  }
  body.handwritten-preview #problem .hw-problem-brush {
    top: 72px;
  }
  body.handwritten-preview #problem .hw-problem-note {
    top: 526px;
    right: 24px;
    width: 258px;
    padding: var(--lp-space-8) var(--lp-space-12) var(--lp-space-10);
    box-shadow: 4px 4px 0 var(--hw-cyan);
  }
  body.handwritten-preview #problem .hw-problem-note .hw-note-arrow {
    left: -50px;
    top: -18px;
    width: 62px;
    height: 32px;
    rotate: -45deg;
  }
  body.handwritten-preview #problem {
    padding-bottom: var(--lp-size-72);
  }
  body.handwritten-preview #problem .problem-copy {
    padding-top: var(--lp-space-30);
  }
  body.handwritten-preview #problem .problem-copy h2.mobile-two-line-heading {
    font-size: clamp(20px, calc((100vw - 64px) / 12.6), 28px);
    line-height: 1.65;
    letter-spacing: 0;
    white-space: nowrap;
    text-wrap: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    margin-inline: 0;
    max-inline-size: 100%;
  }
}
body.handwritten-preview main > section#problem .hw-story-band {
  background: var(--lp-color-blue);
  filter: none;
}
body.handwritten-preview main > section#problem .integrated-problem-lead {
  font-size: 20px;
  line-height: 1.8;
}
@media (min-width: 769px) {
  body.handwritten-preview main > section#problem {
    --hw-problem-height: 760px;
    --hw-problem-copy-top: 280px;
    --hw-problem-brush-width: 560px;
    --hw-problem-brush-height: 235px;
    --hw-problem-note-size: 26px;
    min-height: 760px;
    padding-block: var(--lp-space-280) var(--lp-size-72);
  }
  body.handwritten-preview main > section#problem .problem-copy {
    width: 565px;
    max-width: 565px;
  }
  body.handwritten-preview main > section#problem .problem-copy h2 {
    max-width: 565px;
    font-size: 48px;
    line-height: 1.6;
  }
  body.handwritten-preview main > section#problem .problem-copy p {
    max-width: 520px;
    margin-top: var(--lp-space-32);
  }
  body.handwritten-preview
    main
    > section#problem
    .problem-layout
    > div:last-child {
    width: min(52vw, 660px);
    height: auto;
    aspect-ratio: 6 / 5;
    top: -124px;
    right: -80px;
  }
  body.handwritten-preview main > section#problem .problem-photo {
    width: 100%;
    height: 100%;
    aspect-ratio: 6 / 5;
    object-fit: cover;
    object-position: center;
  }
  body.handwritten-preview main > section#problem .hw-problem-brush {
    top: 36px;
    width: 560px;
    height: 235px;
  }
  body.handwritten-preview main > section#problem .hw-problem-note {
    top: 40px;
    right: max(80px, calc((100vw - 1440px) / 2 + 80px));
    width: 270px;
    padding: var(--lp-space-10) var(--lp-space-14) var(--lp-space-12);
    font-size: 26px;
  }
  body.handwritten-preview
    main
    > section#problem
    .hw-problem-note
    .hw-note-arrow {
    left: 234px;
    top: 82px;
    width: 55px;
    height: 36px;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  body.handwritten-preview main > section#problem {
    padding-block: var(--lp-space-280) var(--lp-size-72);
  }
  body.handwritten-preview main > section#problem .problem-layout {
    display: flex;
    flex-direction: column;
    gap: var(--lp-space-48);
  }
  body.handwritten-preview main > section#problem .problem-copy {
    width: 100%;
    max-width: none;
    order: 2;
  }
  body.handwritten-preview
    main
    > section#problem
    .problem-layout
    > div:last-child {
    position: relative;
    inset: auto;
    order: 1;
    width: min(100%, 660px);
    height: auto;
    margin-left: auto;
  }
  body.handwritten-preview main > section#problem .hw-problem-note {
    top: 194px;
    right: 80px;
  }
}
@media (min-width: 1600px) {
  body.handwritten-preview main > section#problem .integrated-problem-lead {
    font-size: 22px;
  }
}
@media (max-width: 768px) {
  body.handwritten-preview main > section#problem {
    min-height: 0;
    padding-block: var(--lp-size-56) var(--lp-size-72);
  }
  body.handwritten-preview main > section#problem .hw-problem-brush {
    top: 56px;
    width: calc(100vw - 32px);
    height: 110px;
  }
  body.handwritten-preview main > section#problem .problem-layout {
    gap: 132px;
  }
  body.handwritten-preview
    main
    > section#problem
    .problem-layout
    > div:last-child {
    width: min(100vw, 660px);
    height: auto;
    aspect-ratio: 6 / 5;
    margin-inline: calc(50% - min(50vw, 330px));
    margin-top: 156px;
  }
  body.handwritten-preview main > section#problem .problem-photo {
    width: 100%;
    height: 100%;
    aspect-ratio: 6 / 5;
    object-position: center;
  }
  body.handwritten-preview main > section#problem .problem-copy {
    padding-top: 0;
  }
  body.handwritten-preview main > section#problem .problem-copy p {
    margin-top: var(--lp-space-28);
    font-size: 20px;
  }
  body.handwritten-preview main > section#problem .hw-problem-note {
    top: calc(236px + min(100vw, 660px) * 5 / 6);
    right: 24px;
    width: 258px;
    font-size: 21px;
  }
}
@media (min-width: 1600px) {
  body.handwritten-preview main > section#problem .integrated-problem-lead {
    font-size: 22px;
  }
}
.audit-problem-desktop {
  display: contents;
}
.audit-problem-mobile {
  display: none;
}
@media (max-width: 768px) {
  .audit-problem-desktop {
    display: none;
  }
  .audit-problem-mobile {
    display: block;
  }
  body.handwritten-preview #problem #problem-heading {
    font-size: clamp(24px, calc((100vw - 48px) / 11), 28px);
  }
  body.handwritten-preview #problem .audit-problem-line {
    display: block;
    white-space: nowrap;
  }
}
body.handwritten-preview main > section#problem .problem-lead-sentence {
  display: contents;
}
@media (min-width: 769px) {
  body.handwritten-preview
    main
    > section#problem
    .problem-copy
    > p.integrated-problem-lead {
    width: min(600px, calc(100vw - 160px));
    max-width: none;
  }

  body.handwritten-preview main > section#problem .problem-lead-sentence {
    display: block;
    white-space: nowrap;
  }
}
