.solution-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  width: fit-content;
  max-width: 100%;
  padding: .7em 1em;
  border: 1px solid currentColor;
  border-radius: 5px;
  color: inherit;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s, background-color .18s;
}

.problem-stage .solution-button:hover,
.problem-stage .solution-button:focus-visible {
  background: #121212;
  border-color: #121212;
  color: #fff;
}

.problem-stage:is([data-selected="0"], [data-selected="2"]) .solution-button:hover,
.problem-stage:is([data-selected="0"], [data-selected="2"]) .solution-button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #121212;
}

.problem-copy .solution-button {
  display: flex;
  margin-top: 12px;
}

.problem-card-entry {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  gap: 10px;
}

.problem-card-link {
  display: block;
  padding: 4px 2px;
  color: #121212;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.problem-card-link:hover {
  color: #61309a;
}

.problem-solution {
  padding: 30px 0 4px;
}

.problem-solution .solution-button {
  padding: .85em 1.2em;
  border-color: #121212;
  background: #121212;
  color: #fff;
  font-size: clamp(16px, 2vw, 20px);
}

.problem-solution .solution-button:hover,
.problem-solution .solution-button:focus-visible {
  background: #fff;
  color: #121212;
}

@media (prefers-reduced-motion: reduce) {
  .solution-button { transition: none; }
}

.problem-guide {
  max-width: 740px;
  margin-top: clamp(30px, 5vw, 58px);
  padding-top: 24px;
  border-top: 1px solid #e5e5df;
}

.problem-guide h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.problem-guide p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
}

.problem-guide a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.problem-help {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px clamp(24px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  margin-top: clamp(24px, 4vw, 44px);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 8px 8px;
  background: #f7f7f5;
}

.problem-help h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 0 0 16px;
}

.problem-help p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
}

.problem-help-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: 470px;
  align-self: center;
  justify-self: center;
  mix-blend-mode: multiply;
}

.problem-help .problem-help-case {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #deded9;
}

.problem-help-case a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 760px) {
  .problem-help { grid-template-columns: 1fr; }
}
