/* Child onboarding keeps labels, choices and sign-in help together in both directions. */
.family-form .check-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  cursor: pointer;
}
.family-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--mint-dark, #078c75);
}
.learner-profile-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.learner-profile-form legend { padding-inline: 6px; font-weight: 700; }
.learner-profile-form .form-intro h3 { font-size: 1.2rem; line-height: 1.45; }
.learner-profile-form small,
.learner-profile-form .form-intro p {
  color: #45565e;
  line-height: 1.6;
}
.family-form .password-input__toggle {
  inset-inline-end: 6px;
  width: 44px;
  height: 44px;
  color: #45565e;
}
.family-form .password-input > input { padding-inline-end: 56px !important; }
.learner-next-step,
.learner-created {
  padding: 16px;
  border-radius: 12px;
  background: var(--mint-pale, #dff8ef);
  color: var(--ink, #102332);
  line-height: 1.6;
}
.learner-next-step { margin: 0; }
.learner-created { margin-block: 20px; }
.learner-created h2 { margin: 0 0 8px; font-size: 1.25rem; }
.learner-created p { margin: 8px 0; }
.learner-created .code-value { font-weight: 800; letter-spacing: .08em; }
@media (max-width: 480px) {
  .learner-profile-form fieldset { grid-template-columns: minmax(0, 1fr); }
}

/* Decorative card lettering must never intercept its learning actions. */
.next-mission-card::after {
  pointer-events: none;
}

/* Native dropdown popups need explicit readable colors and a system font. */
.dashboard--admin #workforce-governance select {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #102332;
  background-color: #fffdfa;
}
.dashboard--admin #workforce-governance select option {
  font-family: system-ui, sans-serif;
  color: #102332;
  background-color: #fffdfa;
}

/* Laptop administrators need section names, not an unlabeled icon rail. */
@media (min-width: 781px) and (max-width: 1180px) {
  .dashboard.dashboard--admin {
    grid-template-columns: 196px minmax(0, 1fr);
  }
  .dashboard--admin .sidebar {
    padding-inline: 12px;
  }
  .dashboard--admin .sidebar nav a {
    justify-content: flex-start;
    padding-inline: 10px;
    gap: 10px;
  }
  .dashboard--admin .sidebar nav a span,
  .dashboard--admin .sidebar__logout span {
    display: block;
    white-space: normal;
  }
  .dashboard--admin .sidebar nav a svg {
    flex-shrink: 0;
  }
}

/* Family identifiers must fit their cards, including long email addresses. */
.dashboard--parent #family .family-detail-grid > *,
.dashboard--parent #family .guardian-list > div > * {
  min-width: 0;
}
.dashboard--parent #family .guardian-list em,
.dashboard--parent #family .guardian-list b,
.dashboard--parent #family .family-identity-card dd {
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .dashboard--parent #family > .section-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard--parent #family .guardian-list > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 400px) {
  .dashboard--parent #family .family-identity-card,
  .dashboard--parent #family .guardian-card {
    padding: 16px;
  }
  .dashboard--parent #family .family-identity-card dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .dashboard--parent #family .family-identity-card dd {
    text-align: start;
    justify-self: start;
  }
}
