/* Design Twist — advanced revision challenge card (scoped .ntdt-*). */
.ntdt {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 16px;
}
.ntdt-card {
  border: 2px solid #b45309;
  border-radius: 14px;
  background: #fffbeb;
  color: #451a03;
}
.ntdt-card > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ntdt-card > summary::-webkit-details-marker {
  display: none;
}
.ntdt-card > summary:focus-visible {
  outline: 3px solid #b45309;
  outline-offset: 2px;
  border-radius: 12px;
}
.ntdt-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #b45309;
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
}
.ntdt-tag .ntdt-es {
  display: none;
}
.ntdt-body {
  padding: 4px 18px 18px;
  display: grid;
  gap: 14px;
}
.ntdt-en {
  display: block;
}
.ntdt-es {
  display: block;
  font-size: 0.88em;
  color: #92400e;
  font-style: italic;
}
.ntdt-lead {
  margin: 0;
}
.ntdt-chips {
  display: grid;
  gap: 10px;
}
.ntdt-chip {
  text-align: left;
  border: 1.5px solid #b45309;
  border-radius: 12px;
  background: #fff;
  color: #451a03;
  font: inherit;
  padding: 12px 14px;
  cursor: pointer;
  min-height: 44px;
}
.ntdt-chip b {
  display: block;
  color: #b45309;
  margin-bottom: 4px;
}
/* Selected state uses the darker amber so the #fde68a accents hold ≥4.5:1. */
.ntdt-chip[aria-pressed="true"] {
  background: #92400e;
  color: #fff;
}
.ntdt-chip[aria-pressed="true"] b,
.ntdt-chip[aria-pressed="true"] .ntdt-es {
  color: #fde68a;
}
.ntdt-chip:focus-visible {
  outline: 3px solid #451a03;
  outline-offset: 2px;
}
.ntdt-work {
  display: grid;
  gap: 12px;
}
.ntdt-work label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.ntdt-work textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #d97706;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-size: 1rem;
  min-height: 44px;
  background: #fff;
  color: inherit;
}
.ntdt-work textarea:focus {
  outline: 3px solid #b45309;
  outline-offset: 1px;
}
.ntdt-btn {
  justify-self: start;
  border: 0;
  border-radius: 10px;
  background: #b45309;
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
  min-height: 44px;
}
.ntdt-btn:disabled {
  background: #fbbf24;
  cursor: not-allowed;
}
.ntdt-btn:focus-visible {
  outline: 3px solid #451a03;
  outline-offset: 2px;
}
/* Spanish sublines inside filled controls must not inherit the amber accent
 * (it disappears against the amber background — WCAG AA). */
.ntdt-chip[aria-pressed="true"] .ntdt-es {
  color: #fde68a;
}
.ntdt-btn .ntdt-es {
  color: #fff;
}
.ntdt-status {
  margin: 0;
  font-weight: 700;
  color: #166534;
}
.ntdt-done {
  margin: 0;
  border: 2px solid #86efac;
  background: #f0fdf4;
  border-radius: 12px;
  padding: 12px 14px;
}
@media print {
  .ntdt {
    display: none;
  }
}
