/* Homepage project selector. Native disclosures work without JavaScript. */
.problem-selector {
  color: var(--ink, #102750);
  background: linear-gradient(125deg, #edf3ff 0%, #f7faff 62%, #fff9df 100%);
  padding-block: clamp(48px, 6vw, 80px);
}
.problem-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: 28px;
}
.problem-selector .eyebrow { margin-bottom: 16px; color: #375581; }
.problem-selector h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.18;
  text-wrap: balance;
}
.problem-intro { max-width: 440px; margin: 0; color: var(--muted, #526584); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.problem-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #cddaf0;
  border-radius: 18px;
  box-shadow: 0 4px 18px #10275005;
  transition: transform .24s ease, background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.problem-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 108px;
  padding: 24px;
  list-style: none;
  cursor: pointer;
  border-radius: 18px;
}
.problem-card > summary::-webkit-details-marker { display: none; }
.problem-card > summary::marker { content: ""; }
.problem-title {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.problem-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #102750;
  background: #f8e891;
  transition: transform .24s ease, background-color .24s ease;
}
.problem-toggle svg { display: block; width: 22px; height: 22px; }
.problem-card[open] { background: #e6efff; border-color: #9db9ec; }
.problem-card[open] .problem-toggle { transform: rotate(45deg); background: #f7db4c; }
.problem-card > summary:focus-visible {
  outline: 3px solid #2459dc;
  outline-offset: 4px;
}
.problem-body { padding: 0 24px 24px; }
.problem-body > p { margin: 0 0 18px; font-size: 1rem; line-height: 1.65; }
.problem-body .problem-input {
  padding-top: 16px;
  border-top: 1px solid #bfcee7;
  color: #405677;
  font-size: .9375rem;
}
.problem-input strong {
  display: block;
  color: #102750;
  font-weight: 600;
  margin-bottom: 5px;
}
.problem-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 18px;
  color: #fff;
  background: #102750;
  border: 1px solid #102750;
  border-radius: 9px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.problem-link:is(:hover, :focus-visible) { background: #2459dc; border-color: #2459dc; }
.problem-link:focus-visible { outline: 3px solid #2459dc; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .problem-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: #89abe6;
    background: #edf3ff;
    box-shadow: 0 12px 30px #10275012;
  }
  .problem-card[open]:hover { background: #e6efff; }
}
@supports selector(details::details-content) and (interpolate-size: allow-keywords) {
  .problem-card::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    interpolate-size: allow-keywords;
    transition: block-size .24s ease, opacity .2s ease, content-visibility .24s allow-discrete;
  }
  .problem-card[open]::details-content { block-size: auto; opacity: 1; }
}
@media (max-width: 760px) {
  .problem-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .problem-grid { grid-template-columns: 1fr; gap: 12px; }
  .problem-card > summary { min-height: 96px; padding: 20px; gap: 16px; }
  .problem-body { padding: 0 20px 20px; }
  .problem-selector h2 { font-size: clamp(1.625rem, 6.5vw, 2rem); }
  .problem-intro { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .problem-card, .problem-toggle, .problem-link, .problem-card::details-content { transition: none !important; }
  .problem-card:hover { transform: none; }
}
