/* ========== Historian Study Theme ========== */
:root {
  --hist-bg: #0d1117;
  --hist-card: #161b22;
  --hist-accent: #c9a227;
  --hist-text: #e6edf3;
  --hist-muted: #8b949e;
  --hist-radius: 16px;
  --hist-transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#historian-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hist-radius);
  padding: 24px;
  box-shadow: 0 0 40px rgba(0,0,0,0.2);
  color: var(--hist-text);
  animation: fadeIn 0.6s ease forwards;
}

#historian-container section {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--hist-transition) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hist-heading {
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 12px;
  color: var(--hist-accent);
}

.hist-text-muted {
  color: var(--hist-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

button.hist-btn {
  background: var(--hist-accent);
  color: black;
  font-weight: 600;
  border: none;
  border-radius: var(--hist-radius);
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button.hist-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,162,39,0.3);
}

.hist-section {
  background: var(--hist-card);
  border-radius: var(--hist-radius);
  padding: 16px 24px;
  margin: 16px 0;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.hist-fade {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hist-fade.hidden {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

body.hist-focus-mode {
  overflow-y: auto;
  background: var(--hist-bg);
  transition: background 0.5s ease;
}
