/* História — Módulo 1 (tema bordô / âmbar) */
@import url("../../ciencias/biologia/modulo-1/modulo.css");
@import url("../../css/lesson-modules.css");

.lesson--hist {
  --hist-burgundy: #6d2c2c;
  --hist-burgundy-dark: #4a1f1f;
  --hist-gold: #c9a227;
  --hist-cream: #faf6f0;
  --lesson-teal: var(--hist-burgundy);
  --lesson-teal-soft: rgba(109, 44, 44, 0.1);
}

[data-theme="dark"] .lesson--hist {
  --lesson-teal-soft: rgba(201, 162, 39, 0.12);
  --hist-cream: rgba(250, 246, 240, 0.06);
}

.lesson--hist.lesson--book {
  --book-pink: var(--hist-burgundy);
  --book-teal: var(--hist-gold);
  --book-breadcrumb-teal: var(--hist-burgundy);
}

.lesson--hist.lesson--book .lesson-meta {
  color: var(--hist-burgundy) !important;
}

.lesson--hist .lesson-badge {
  background: var(--hist-burgundy) !important;
  box-shadow: 0 2px 10px rgba(109, 44, 44, 0.35);
}

.lesson--hist .lesson-cover-strip__mod {
  box-shadow: 0 2px 12px rgba(74, 31, 31, 0.35);
}

.lesson--hist .lesson-cover-strip__sector {
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.35);
}

.lesson--hist h1 {
  border-bottom-color: var(--hist-burgundy);
}

.lesson--hist .lesson-toc {
  border-left-color: var(--hist-burgundy);
}

.lesson--hist .lesson-toc a:hover {
  color: var(--hist-burgundy);
}

.lesson--hist.doc-main {
  position: relative;
  padding-right: 2.85rem;
}

.hist-subject-rail {
  position: absolute;
  right: 0;
  top: 0.5rem;
  width: 2.4rem;
  min-height: 11rem;
  max-height: calc(100% - 1rem);
  padding: 1rem 0.35rem;
  background: linear-gradient(
    180deg,
    var(--hist-burgundy) 0%,
    var(--hist-burgundy-dark) 100%
  );
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 4px 16px rgba(109, 44, 44, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  z-index: 1;
}

.hist-glossary {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--hist-gold) 8%, var(--surface));
}

.hist-glossary h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--hist-burgundy);
}

.hist-glossary p {
  margin: 0;
  font-size: 0.95rem;
}

.hist-quote {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--hist-gold);
  background: var(--hist-cream);
  font-size: 0.95rem;
  font-style: italic;
}

[data-theme="dark"] .hist-quote {
  background: rgba(201, 162, 39, 0.08);
}
