/* Problem Map knowledge page */

body.problem-map-root {
  --pm-navy: #10233f;
  --pm-ink: #202020;
  --pm-muted: #6b7280;
  --pm-teal: #2a6f7e;
  --pm-bg: #f6f8fa;
  --pm-surface: #ffffff;
  --pm-surface-soft: #eef3f5;
  --pm-border: rgba(16, 35, 63, 0.12);
  --pm-radius: 8px;
  --pm-shadow: 0 10px 22px rgba(0, 0, 0, 0.045);

  background: var(--pm-bg);
  color: var(--pm-ink);
}

body.problem-map-root main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px 56px;
}

.problem-map-hero {
  padding: 72px 28px 58px;
  border-radius: 0 0 var(--pm-radius) var(--pm-radius);
  background:
    linear-gradient(135deg, rgba(16, 35, 63, 0.96) 0%, rgba(42, 111, 126, 0.92) 100%),
    var(--pm-navy);
  color: #fff;
}

.problem-map-kicker {
  margin: 0 0 10px;
  color: var(--pm-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.problem-map-hero .problem-map-kicker {
  color: #bfe8ed;
}

.problem-map-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.problem-map-hero p:last-child {
  max-width: 820px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.65;
}

.problem-map-intro,
.problem-section {
  margin-top: 24px;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  background: var(--pm-surface);
  box-shadow: var(--pm-shadow);
}

.problem-map-intro {
  padding: 28px;
  border-left: 4px solid var(--pm-teal);
}

.problem-map-intro h2,
.problem-section__header h2 {
  margin: 0;
  color: var(--pm-navy);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.problem-map-intro p {
  max-width: 900px;
  margin: 14px 0 0;
  color: rgba(32, 32, 32, 0.78);
  font-size: 1.04rem;
  line-height: 1.72;
}

.problem-section {
  padding: 28px;
}

.problem-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pm-border);
}

.problem-section__header .problem-map-kicker {
  margin-bottom: 8px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.problem-card {
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  background: #fff;
  overflow: hidden;
}

.problem-card[open] {
  background: linear-gradient(180deg, #fff 0%, var(--pm-surface-soft) 100%);
}

.problem-card summary {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 52px 18px 18px;
  color: var(--pm-navy);
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.problem-card summary::-webkit-details-marker {
  display: none;
}

.problem-card summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(42, 111, 126, 0.25);
  border-radius: 50%;
  color: var(--pm-teal);
  font-size: 1.1rem;
  line-height: 1;
}

.problem-card[open] summary::after {
  content: "-";
}

.problem-card summary:hover {
  background: rgba(42, 111, 126, 0.06);
}

.problem-card__body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(16, 35, 63, 0.08);
}

.problem-card__body p {
  margin: 14px 0 0;
  color: rgba(32, 32, 32, 0.78);
  line-height: 1.65;
}

.problem-card__related {
  font-size: 0.96rem;
  font-weight: 700;
}

.problem-card__related a {
  color: var(--pm-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 780px) {
  body.problem-map-root main {
    padding-inline: 12px;
  }

  .problem-map-hero,
  .problem-map-intro,
  .problem-section {
    padding: 22px;
  }

  .problem-map-hero {
    padding-top: 54px;
    padding-bottom: 44px;
  }

  .problem-section__header {
    display: block;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-card summary {
    min-height: 64px;
    padding-right: 48px;
  }
}
