/* projects-future.css — additive "future layer" for unit projects.
   Adds: per-step metacognition ("Explain it back"), a portfolio summary
   export, and a teacher-only learning-visible telemetry panel.
   All styles are namespaced .ntf-* so they never collide with page CSS. */

.ntf-reflect {
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid #d7ddea;
  border-left: 4px solid #6b5bd2;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfaff 0%, #f4f2fe 100%);
}
.ntf-reflect__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #4a3fb0;
  margin-bottom: 6px;
}
.ntf-reflect__prompt {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ntf-reflect textarea {
  width: 100%;
  min-height: 60px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #c8cfdd;
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  resize: vertical;
}
.ntf-reflect textarea:focus {
  outline: none;
  border-color: #6b5bd2;
  box-shadow: 0 0 0 3px rgba(107, 91, 210, 0.15);
}
.ntf-reflect__status {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #6b7280;
  min-height: 1em;
}
.ntf-reflect__status.saved {
  color: #17803d;
}

/* Floating portfolio-summary button */
.ntf-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #6b5bd2;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(107, 91, 210, 0.35);
}
.ntf-fab:hover {
  background: #5a4bc0;
}
.ntf-fab:focus-visible {
  outline: 3px solid #b9aff0;
  outline-offset: 2px;
}
@media print {
  .ntf-fab,
  .ntf-teacher {
    display: none !important;
  }
}

/* Teacher-only learning-visible panel */
.ntf-teacher {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9000;
  max-width: 300px;
  padding: 12px 14px;
  border: 1px solid #f0c36d;
  border-radius: 12px;
  background: #fffdf5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  font-size: 0.82rem;
  color: #333;
}
.ntf-teacher__head {
  font-weight: 800;
  color: #8a5a00;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ntf-teacher__close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #8a5a00;
  line-height: 1;
}
.ntf-teacher dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
}
.ntf-teacher dt {
  color: #555;
}
.ntf-teacher dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

/* Body-level es toggle: show the matching language inside our cards.
   The page toggles `.es` on #body; mirror its en/es behavior for our copy. */
.ntf-es-only {
  display: none;
}
#body.es .ntf-en-only {
  display: none;
}
#body.es .ntf-es-only {
  display: inline;
}
