/* Clickable objective cards and their mapped pain-point subset table. */
.objective-trigger {
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1), border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.objective-trigger:hover,
.objective-trigger:focus-visible,
.objective-trigger.is-active {
  border-color: #4f8e77;
  background: #f5faf6;
  box-shadow: 0 15px 30px rgba(0, 67, 57, .12);
  outline: none;
  transform: translateY(-3px);
}

.objective-trigger.is-active { box-shadow: inset 0 4px #087a67, 0 15px 30px rgba(0, 67, 57, .12); }

.objective-trigger-hint {
  display: block;
  margin-top: 17px;
  color: #087a67;
  font: 700 11px/1.35 "DM Sans", "Noto Sans Thai", sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.objective-subset-panel {
  width: min(100%, 1600px);
  margin: clamp(18px, 2.5vw, 34px) auto 0;
  border: 1px solid #b9d3c3;
  background: #fbfcf8;
  box-shadow: 0 18px 36px rgba(0, 67, 57, .1);
}

.objective-subset-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(19px, 2vw, 29px) clamp(20px, 2.7vw, 40px);
  border-top: 5px solid #087a67;
  border-bottom: 1px solid #d5e2da;
}

.objective-subset-kicker {
  margin: 0 0 6px;
  color: #087a67;
  font: 700 10px/1.35 "DM Sans", "Noto Sans Thai", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.objective-subset-head h3 {
  margin: 0;
  color: #103e34;
  font: 700 clamp(22px, 2vw, 34px)/1.15 "DM Sans", "Noto Sans Thai", sans-serif;
  letter-spacing: -.045em;
}

.objective-subset-head p:last-child {
  margin: 8px 0 0;
  color: #527064;
  font: 500 clamp(13px, 1vw, 15px)/1.55 "Noto Sans Thai", "DM Sans", sans-serif;
}

.objective-subset-close {
  flex: 0 0 auto;
  border: 1px solid #97bbaa;
  padding: 9px 13px;
  color: #075e4f;
  background: #f5faf6;
  font: 700 11px/1 "DM Sans", "Noto Sans Thai", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.objective-subset-close:hover,
.objective-subset-close:focus-visible {
  border-color: #087a67;
  color: #fbfcf8;
  background: #087a67;
  outline: none;
}

.objective-subset-scroll {
  max-height: min(62vh, 750px);
  overflow: auto;
  overscroll-behavior: contain;
}

.objective-subset-table { min-width: 1280px; }
.objective-subset-table tbody tr { cursor: default; }
.objective-subset-table tbody tr:hover { background: #f5faf6; }

@media (max-width: 760px) {
  .objective-subset-head { align-items: stretch; flex-direction: column; gap: 14px; padding: 20px; }
  .objective-subset-close { align-self: flex-start; }
  .objective-subset-scroll { max-height: none; }
}

/* Keep table highlights readable inside the light subset panel. */
.objective-subset-panel mark.term.core { color: #005b4c; }
.objective-subset-panel mark.term.value { color: #245d3f; }
.objective-subset-panel mark.term.risk { color: #9b4033; }
