/* Readable problem copy and illustrations shared by both themes. */
html[data-theme] .problem>.section-intro h2 {
  font-size: 52px;
  line-height: 1.15;
}
html[data-theme] .problem>.section-intro .eyebrow {
  font-size: 13px;
  line-height: 1.5;
}
html[data-theme] .problem>.section-intro .section-index {
  font-size: 14px;
}
html[data-theme] .problem .problem-grid {
  gap: 28px;
}
html[data-theme] .problem .problem-panel {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 28px;
}
html[data-theme] .problem .problem-panel-copy {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 20px 16px;
  padding: 12px 0;
}
html[data-theme] .problem .problem-number {
  width: 34px;
  height: 34px;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
}
html[data-theme] .problem .problem-panel h3 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -.035em;
}
html[data-theme] .problem .problem-panel p {
  max-width: 480px;
  font-size: 19px;
  line-height: 1.75;
}
html[data-theme] .problem :is(.cost-stack,.guessing-visual,.handoff-visual) {
  height: auto;
  min-height: 360px;
  padding: 26px;
}

/* Keep the full receipt and the view count visible at the same time. */
html[data-theme] .problem .cost-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  justify-content: normal;
  align-items: center;
  gap: 18px;
}
html[data-theme] .problem .receipt {
  width: 100%;
  min-width: 0;
  padding: 18px;
  transform: rotate(3deg);
}
html[data-theme] .problem .receipt>span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .065em;
}
html[data-theme] .problem .receipt>div {
  gap: 10px;
  margin-top: 15px;
  font-size: 16px;
  line-height: 1.5;
}
html[data-theme] .problem .receipt b {
  flex-shrink: 0;
  font-weight: 600;
}
html[data-theme] .problem .receipt .receipt-total {
  padding-top: 15px;
}
html[data-theme] .problem .receipt small {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
}
html[data-theme] .problem .small-stat {
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
  padding: 18px;
  transform: rotate(-3deg);
}
html[data-theme] .problem .small-stat>span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .065em;
}
html[data-theme] .problem .small-stat strong {
  font-size: 38px;
  line-height: 1.25;
  margin-block: 8px;
}
html[data-theme] .problem .small-stat strong span {
  font-size: 25px;
  margin-left: 3px;
}
html[data-theme] .problem .small-stat small {
  font-size: 14px;
  line-height: 1.6;
}

/* The unanswered questions can wrap without covering the next-video card. */
html[data-theme] .problem .guessing-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  gap: 14px;
}
html[data-theme] .problem .video-outline {
  grid-column: 1 / -1;
  width: min(100%, 300px);
  height: 150px;
  margin-bottom: 6px;
  transform: rotate(-2deg);
}
html[data-theme] .problem .video-outline>span:last-child {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .09em;
  margin-top: 11px;
}
html[data-theme] .problem .play-outline {
  font-size: 50px;
}
html[data-theme] .problem .question-bubble {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 260px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  transform: none;
}
html[data-theme] .problem .question-three {
  grid-column: 1 / -1;
  width: auto;
  min-width: 65%;
}

/* Larger paper notes preserve the missing-handoff idea without obscuring text. */
html[data-theme] .problem .handoff-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: stretch;
  gap: 36px 22px;
}
html[data-theme] .problem .handoff-note {
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
  padding: 18px;
}
html[data-theme] .problem .handoff-insight {
  grid-column: 1;
  grid-row: 1;
  transform: rotate(-3deg);
}
html[data-theme] .problem .handoff-brief {
  grid-column: 2;
  grid-row: 1;
  transform: rotate(3deg);
}
html[data-theme] .problem .handoff-label {
  gap: 7px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .045em;
}
html[data-theme] .problem .handoff-label svg {
  width: 19px;
  height: 19px;
}
html[data-theme] .problem .handoff-insight strong {
  margin-top: 13px;
  font-size: 18px;
  line-height: 1.5;
}
html[data-theme] .problem .handoff-underline {
  margin-top: 12px;
  width: 100px;
  max-width: 80%;
}
html[data-theme] .problem .handoff-empty-line {
  margin-top: 20px;
}
html[data-theme] .problem .handoff-empty-line.short {
  margin-top: 15px;
}
html[data-theme] .problem .handoff-brief small {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
}
html[data-theme] .problem .handoff-route {
  left: 25%;
  right: auto;
  top: auto;
  bottom: 122px;
  width: 50%;
  height: 0;
  border-right: 0;
  border-radius: 0;
  transform: none;
}
html[data-theme] .problem .handoff-gap {
  left: 50%;
  top: auto;
  bottom: 106px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  transform: translateX(-50%);
}
html[data-theme] .problem .handoff-upload {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  max-width: 100%;
  gap: 12px;
  padding: 14px 18px;
  transform: none;
}
html[data-theme] .problem .handoff-upload>span:last-child {
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .045em;
}
html[data-theme] .problem .handoff-upload strong {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.5;
}
html[data-theme] .problem .handoff-play {
  font-size: 34px;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  html[data-theme] .problem>.section-intro h2 {
    font-size: 44px;
  }
  html[data-theme] .problem .problem-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  html[data-theme] .problem .problem-panel-copy {
    max-width: 780px;
    padding: 0;
  }
  html[data-theme] .problem .problem-panel h3 {
    font-size: 34px;
  }
  html[data-theme] .problem .problem-panel h3 br {
    display: none;
  }
  html[data-theme] .problem .problem-panel p {
    max-width: 700px;
  }
  html[data-theme] .problem .cost-stack {
    grid-template-columns: minmax(0, 280px) minmax(0, 260px);
    justify-content: center;
    gap: 28px;
  }
  html[data-theme] .problem .handoff-visual {
    grid-template-columns: minmax(0, 280px) minmax(0, 280px);
    justify-content: center;
  }
}

@media (max-width: 600px) {
  html[data-theme] .problem>.section-intro h2 {
    font-size: 36px;
  }
  html[data-theme] .problem>.section-intro .eyebrow {
    font-size: 12px;
  }
  html[data-theme] .problem .problem-panel {
    padding: 22px 18px 18px;
    gap: 24px;
  }
  html[data-theme] .problem .problem-panel-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  html[data-theme] .problem .problem-number {
    grid-column: 1;
    width: 34px;
    height: 34px;
    margin-top: 0;
    font-size: 13px;
  }
  html[data-theme] .problem .problem-panel h3 {
    grid-column: 1;
    font-size: 28px;
    line-height: 1.25;
  }
  html[data-theme] .problem .problem-panel p {
    grid-column: 1;
    font-size: 18px;
    line-height: 1.7;
  }
  html[data-theme] .problem :is(.cost-stack,.guessing-visual,.handoff-visual) {
    min-height: 0;
    padding: 22px 18px;
  }
  html[data-theme] .problem .cost-stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  html[data-theme] .problem :is(.receipt,.small-stat) {
    width: 100%;
    max-width: 320px;
    padding: 18px;
    justify-self: center;
    transform: none;
  }
  html[data-theme] .problem .small-stat strong {
    font-size: 40px;
  }
  html[data-theme] .problem .guessing-visual {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  html[data-theme] .problem .video-outline {
    width: 100%;
    max-width: 300px;
    height: 145px;
    transform: none;
  }
  html[data-theme] .problem .question-bubble {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    max-width: 300px;
    font-size: 15px;
    padding: 12px;
  }
  html[data-theme] .problem .handoff-visual {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: center;
    gap: 16px;
  }
  html[data-theme] .problem .handoff-note {
    width: 100%;
    max-width: 320px;
    padding: 16px;
    transform: none;
  }
  html[data-theme] .problem .handoff-insight {
    grid-column: 1;
    grid-row: 1;
  }
  html[data-theme] .problem .handoff-brief {
    grid-column: 1;
    grid-row: 3;
  }
  html[data-theme] .problem .handoff-route {
    display: none;
  }
  html[data-theme] .problem .handoff-gap {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: 30px;
    height: 30px;
    font-size: 19px;
    margin-block: -3px;
    transform: none;
  }
  html[data-theme] .problem .handoff-upload {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    max-width: 320px;
    gap: 10px;
    padding: 14px 16px;
  }
  html[data-theme] .problem .handoff-upload strong {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  html[data-theme] .problem>.section-intro h2 {
    font-size: 34px;
  }
  html[data-theme] .problem .problem-panel {
    padding: 20px 14px 14px;
  }
  html[data-theme] .problem :is(.cost-stack,.guessing-visual,.handoff-visual) {
    padding: 18px 12px;
  }
  html[data-theme] .problem :is(.receipt,.small-stat,.handoff-note) {
    padding: 14px;
  }
  html[data-theme] .problem .small-stat strong {
    font-size: 38px;
  }
  html[data-theme] .problem .handoff-upload {
    padding: 13px;
  }
}
