/* Forgetting curve widget (forgetting-curve-chart.js). Scoped to .fc-widget. */
.fc-widget {
  margin: 2rem 0;
  padding: 1.25rem 1.25rem 1rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(27, 58, 37, 0.06);
}
.fc-widget .fc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1B3A25;
  margin: 0 0 0.25rem;
}
.fc-widget .fc-sub {
  font-size: 0.95rem;
  color: #475569;
  margin: 0 0 0.75rem;
}
.fc-widget svg.fc-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.fc-widget .fc-grid { stroke: #E2E8F0; stroke-width: 1; }
.fc-widget .fc-tick { fill: #64748B; font-size: 12px; font-family: Inter, system-ui, sans-serif; }
.fc-widget .fc-axis { fill: #475569; font-size: 12px; font-weight: 600; font-family: Inter, system-ui, sans-serif; }
.fc-widget .fc-legend { fill: #334155; font-size: 12px; font-family: Inter, system-ui, sans-serif; }
.fc-widget .fc-area { fill: rgba(27, 58, 37, 0.08); stroke: none; }
.fc-widget .fc-base { fill: none; stroke: #94A3B8; stroke-width: 2; stroke-dasharray: 5 4; }
.fc-widget .fc-live { fill: none; stroke: #1B3A25; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.fc-widget .fc-mark-line { stroke: #B8942E; stroke-width: 1.5; stroke-dasharray: 2 3; }
.fc-widget .fc-mark { fill: #B8942E; stroke: #FFFFFF; stroke-width: 2; }

.fc-widget .fc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: #334155;
}
.fc-widget .fc-key { display: inline-flex; align-items: center; gap: 0.4rem; }
.fc-widget .fc-key::before { content: ""; display: inline-block; width: 22px; height: 0; }
.fc-widget .fc-key-live::before { border-top: 3px solid #1B3A25; }
.fc-widget .fc-key-base::before { border-top: 2px dashed #94A3B8; }
.fc-widget .fc-key-mark::before { width: 10px; height: 10px; border-radius: 50%; background: #B8942E; }

.fc-widget .fc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0.5rem;
}
.fc-widget .fc-controls[hidden] { display: none; }
.fc-widget .fc-btn,
.fc-widget .fc-reset {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.6rem 0.9rem;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.fc-widget .fc-btn {
  background: #FFFFFF;
  color: #1B3A25;
  border: 1.5px solid #1B3A25;
}
.fc-widget .fc-btn:hover { background: rgba(27, 58, 37, 0.06); }
.fc-widget .fc-btn[aria-pressed="true"] {
  background: #1B3A25;
  color: #FFFFFF;
}
.fc-widget .fc-btn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.fc-widget .fc-reset {
  background: transparent;
  color: #475569;
  border: 1.5px solid #CBD5E1;
}
.fc-widget .fc-reset:disabled { opacity: 0.45; cursor: default; }
.fc-widget .fc-btn:focus-visible,
.fc-widget .fc-reset:focus-visible { outline: 3px solid #B8942E; outline-offset: 2px; }

.fc-widget .fc-readout {
  font-size: 0.95rem;
  color: #1E293B;
  margin: 0.5rem 0 0.25rem;
}
.fc-widget .fc-readout strong { color: #1B3A25; }
.fc-widget figcaption.fc-note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #64748B;
  margin-top: 0.5rem;
  border-top: 1px solid #F1F5F9;
  padding-top: 0.6rem;
}
@media (max-width: 520px) {
  .fc-widget { padding: 1rem 0.75rem 0.85rem; }
  .fc-widget .fc-btn, .fc-widget .fc-reset { font-size: 0.85rem; padding: 0.55rem 0.75rem; }
}
