/* V5.6 home decision rationale: explain why today's task is the right task. */

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-body {
  grid-template-columns: minmax(260px, 0.7fr) minmax(460px, 1.3fr) !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale {
  display: block !important;
  margin-top: 4px !important;
  padding: 13px 14px !important;
  border: 0 !important;
  border-left: 3px solid var(--v51-blue, #2563eb) !important;
  border-radius: 0 12px 12px 0 !important;
  background: color-mix(in srgb, var(--v51-blue, #2563eb) 8%, var(--v51-card, #ffffff)) !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale-head {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale-head > span {
  padding: 4px 7px !important;
  border-radius: 7px !important;
  color: var(--v51-blue, #2563eb) !important;
  background: color-mix(in srgb, var(--v51-blue, #2563eb) 13%, transparent) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale-head > strong {
  color: var(--v51-text, #0f172a) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale-head > small {
  margin-left: auto !important;
  color: var(--v51-muted, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale ul {
  display: grid !important;
  gap: 6px !important;
  margin: 9px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale li {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 28px !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale li > b {
  display: inline-grid !important;
  place-items: center !important;
  min-height: 24px !important;
  padding: 0 6px !important;
  border-radius: 7px !important;
  color: var(--v51-blue, #2563eb) !important;
  background: var(--v51-card, #ffffff) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale li > em {
  display: block !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--v51-text, #0f172a) !important;
  background: transparent !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 760 !important;
  line-height: 1.4 !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-action-row {
  align-items: center !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-metrics {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-metrics > div {
  display: grid !important;
  gap: 3px !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-metrics strong {
  color: var(--v51-text, #0f172a) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="landing"] #landingV5ExpectedGain {
  color: var(--v51-green, #16a34a) !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale {
  background: color-mix(in srgb, var(--v51-blue, #3b82f6) 12%, #111c2f) !important;
  border-left-color: #60a5fa !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale li > b {
  color: #93c5fd !important;
  background: rgba(15, 23, 42, 0.72) !important;
}

@media (max-width: 980px) {
  html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-body {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale-head {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-rationale-head > small {
    flex-basis: 100% !important;
    margin-left: 0 !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-action-row,
  html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-task-metrics {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="landing"] .landing-primary-action {
    width: 100% !important;
  }
}
