/* The student's saved profile is always expanded above the next lesson. */
.karte-profile {
  background: #203d4d;
  color: #fff;
  border-radius: 14px;
  padding: 24px 26px;
  margin: 0 0 18px;
  min-width: 0;
}
.karte-profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.karte-profile .eyebrow { color: #a6d4d0; }
.karte-profile h3 { font-size: 15px; margin: 6px 0 0; }
.karte-profile-heading .btn {
  background: #365565;
  border-color: #7693a2;
  color: #fff;
  min-height: 40px;
  white-space: normal;
}
.karte-profile-heading .btn:hover { background: #456b7c; }
.karte-profile-heading .btn:focus-visible { outline: 2px solid #bfe9e4; outline-offset: 3px; }
.karte-profile-identity { margin-top: 20px; }
.karte-profile .karte-student-number { color: #bed4df; overflow-wrap: anywhere; }
.karte-profile h2 { color: #fff; font-size: 24px; line-height: 1.5; margin: 6px 0 10px; overflow-wrap: anywhere; }
.karte-profile .karte-level { background: #365b69; color: #e5f5f2; }
.karte-profile .karte-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid #537180;
}
.karte-profile .karte-value:first-child { grid-column: 1 / -1; }
.karte-profile .karte-value dt { color: #bed4df; }
.karte-profile .karte-value dd { color: #fff; }
.karte-next {
  background: #fff;
  color: #24334a;
  border: 1px solid #dfe5eb;
  border-left: 4px solid #238481;
}
.karte-next .eyebrow { color: #247874; }
.karte-next small { color: #667b8b; }
.karte-next-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px 24px;
  margin: 20px 0;
}
.karte-next-fields .karte-value { min-width: 0; }
.karte-next-fields .karte-value:last-child { grid-column: 1 / -1; }
.karte-next-fields dt { color: #667b8b; font-size: 12px; margin-bottom: 6px; }
.karte-next-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.karte-next .karte-next-progress, .karte-next .karte-warning { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 900px) {
  .karte-profile { padding: 20px; }
}
@media (max-width: 760px) {
  .karte-next-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .karte-profile { padding: 18px 16px; }
  .karte-profile h2 { font-size: 21px; }
  .karte-profile .karte-info-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .karte-profile-heading > * { min-width: 0; max-width: 100%; }
}
