/* DoorForce Academy */
.df-ac-shell { padding: 0 0 32px; }
.df-ac-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.df-ac-tab {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  color: #0f172a;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.df-ac-tab.is-active {
  background: #0b1f3a;
  color: #fff;
  border-color: #0b1f3a;
}
.df-ac-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0b1f3a 0%, #123056 55%, #8b1538 140%);
  color: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.df-ac-eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; opacity: 0.85; margin: 0 0 6px; }
.df-ac-hero h2 { margin: 0 0 6px; font-size: 1.45rem; }
.df-ac-hero-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.df-ac-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
  max-width: 360px;
}
.df-ac-card .df-ac-progress-bar { background: #e2e8f0; }
.df-ac-progress-bar span {
  display: block;
  height: 100%;
  background: #e11d48;
  border-radius: 999px;
}
.df-ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.df-ac-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}
.df-ac-card h3 { margin: 0 0 8px; font-size: 1rem; color: #0f172a; }
.df-ac-list { list-style: none; padding: 0; margin: 0; }
.df-ac-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.df-ac-list li:last-child { border-bottom: none; }
.df-ac-link {
  background: none;
  border: none;
  color: #0b1f3a;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  padding: 0;
  text-decoration: underline;
}
.df-ac-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}
.df-ac-empty, .df-ac-muted { color: #64748b; }
.df-ac-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.df-ac-toolbar .input-field { flex: 1; min-width: 200px; }
.df-ac-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.df-ac-metric {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.df-ac-metric span { display: block; color: #64748b; font-size: 0.8rem; }
.df-ac-metric strong { font-size: 1.35rem; color: #0b1f3a; }
.df-ac-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.df-ac-table th, .df-ac-table td { text-align: left; padding: 8px; border-bottom: 1px solid #e2e8f0; }
.df-ac-lesson { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-top: 10px; }
.df-ac-article p { line-height: 1.55; color: #1e293b; }
.df-ac-video-placeholder {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  padding: 18px;
  color: #475569;
  margin: 12px 0;
}
.df-ac-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.df-ac-faq { margin: 10px 0; padding: 10px; background: #f8fafc; border-radius: 8px; }
.df-ac-lesson-list { padding-left: 18px; }
.df-ac-lesson-list li { margin: 8px 0; }
.df-ac-check { display: block; margin: 6px 0; cursor: pointer; }
.df-ac-q { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; margin: 12px 0; }
.df-ac-quiz-score { padding: 12px; border-radius: 8px; margin: 12px 0; font-weight: 600; }
.df-ac-quiz-score.is-pass { background: #ecfdf5; color: #065f46; }
.df-ac-quiz-score.is-fail { background: #fff1f2; color: #9f1239; }
.df-ac-cert-card { text-align: center; }
.df-ac-cert-logo { max-height: 48px; margin-bottom: 8px; }
.df-ac-disclaimer { font-size: 0.78rem; color: #64748b; }
.df-ac-practice-banner {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Contextual help */
.df-ac-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  border: 1px solid rgba(11, 31, 58, 0.2);
  background: #fff;
  color: #0b1f3a;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 650;
  font-size: 0.82rem;
  cursor: pointer;
}
.df-ac-help-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  z-index: 12000;
  justify-content: flex-end;
}
.df-ac-help-drawer.is-open { display: flex; }
.df-ac-help-panel {
  width: min(440px, 100%);
  background: #fff;
  height: 100%;
  overflow: auto;
  padding: 16px;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
}
.df-ac-help-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }

/* Tours */
.df-ac-tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 13000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}
.df-ac-tour-overlay.is-open { display: flex; }
.df-ac-tour-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  width: min(480px, 100%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  outline: none;
}
.df-ac-tour-progress { font-size: 0.78rem; color: #64748b; margin-bottom: 6px; }
.df-ac-tour-note { font-size: 0.78rem; color: #9a3412; }
.df-ac-tour-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.df-ac-tour-highlight {
  outline: 3px solid #e11d48 !important;
  outline-offset: 3px;
  position: relative;
  z-index: 13001;
}

@media (max-width: 720px) {
  .df-ac-help-btn span { display: none; }
  .df-ac-hero { padding: 16px; }
}

/* Teron branding + Ask Teron */
.df-teron-fab,
.df-jarvis-fab {
  background: linear-gradient(135deg, #0a2342, #bf0a30) !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}
.df-chat-message.user {
  background: rgba(191, 10, 48, 0.12) !important;
  border-color: rgba(191, 10, 48, 0.35) !important;
}
.df-ac-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 35, 66, 0.25);
  background: #0a2342;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.df-ac-help-btn:hover { background: #bf0a30; border-color: #bf0a30; }
