/* ============================================================
   ECE 495 flashcards UI
   ============================================================ */

.bd-article .fc-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 6px 0 16px;
  background: #f8fbff;
  border: 1px solid var(--tps-rule, #d8e2ec);
  border-radius: 8px;
  flex-wrap: wrap;
}

.bd-article .fc-modes {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--tps-rule, #d8e2ec);
  border-radius: 5px;
  overflow: hidden;
}
.bd-article .fc-mode {
  padding: 5px 14px;
  background: #fff;
  color: #5b6573;
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.bd-article .fc-mode + .fc-mode { border-left: 1px solid var(--tps-rule, #d8e2ec); }
.bd-article .fc-mode:hover { background: #eef3fb; }
.bd-article .fc-mode.active {
  background: #00205B;
  color: #fff;
}

.bd-article .fc-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #3b4651;
  flex: 1;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.bd-article .fc-counter {
  font-weight: 600;
  color: #00205B;
  white-space: nowrap;
}
.bd-article .fc-bar {
  flex: 1;
  height: 6px;
  background: #e4eefa;
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
  max-width: 240px;
}
.bd-article .fc-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1d7a4d 0%, #14a8c8 100%);
  transition: width 0.2s ease;
}
.bd-article .fc-review-count {
  color: #b35900;
  font-weight: 600;
  white-space: nowrap;
}

.bd-article .fc-actions {
  display: flex;
  gap: 6px;
}
.bd-article .fc-actions button {
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--tps-rule, #d8e2ec);
  color: #1f6098;
  border-radius: 4px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.bd-article .fc-actions button:hover {
  background: #eef3fb;
  border-color: #1f6098;
}

/* ------------------------------------------------------------
   Study mode — single large card centred in the article column
   ------------------------------------------------------------ */
.bd-article .fc-study {
  background: #fff;
  border: 1px solid var(--tps-rule, #d8e2ec);
  border-radius: 10px;
  padding: 28px 28px 22px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 60vh;
}
.bd-article .fc-study[data-state="know"]   { border-left: 6px solid #1d7a4d; }
.bd-article .fc-study[data-state="review"] { border-left: 6px solid #b35900; }

.bd-article .fc-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.bd-article .fc-question {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: #00205B;
  line-height: 1.4;
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}
.bd-article .fc-question strong { font-weight: 700; }
.bd-article .fc-answer {
  font-size: 16px;
  color: #15202b;
  line-height: 1.6;
  max-width: 64ch;
  margin: 0 auto;
  padding: 16px 20px;
  background: #f8fbff;
  border-left: 4px solid #1f6098;
  border-radius: 0 6px 6px 0;
}
.bd-article .fc-answer p:last-child { margin-bottom: 0; }

.bd-article .fc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid var(--tps-rule, #d8e2ec);
}
.bd-article .fc-controls button {
  min-height: 44px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--tps-rule, #d8e2ec);
  color: #1f6098;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.bd-article .fc-controls button:hover {
  background: #eef3fb;
  border-color: #1f6098;
}
.bd-article .fc-controls .fc-reveal {
  background: #00205B;
  color: #fff;
  border-color: #00205B;
  flex: 0 1 220px;
}
.bd-article .fc-controls .fc-reveal:hover {
  background: #1f6098;
  border-color: #1f6098;
}
.bd-article .fc-controls .fc-know {
  background: #1d7a4d;
  color: #fff;
  border-color: #1d7a4d;
}
.bd-article .fc-controls .fc-know:hover {
  background: #155f3a;
  border-color: #155f3a;
}
.bd-article .fc-controls .fc-review {
  background: #b35900;
  color: #fff;
  border-color: #b35900;
}
.bd-article .fc-controls .fc-review:hover {
  background: #8c4500;
  border-color: #8c4500;
}
