/* === Site Navigation === */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav a {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  transition: all 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.site-nav a.active {
  color: var(--bg);
  background: var(--text);
}

.nav-spacer {
  flex: 1;
}

.lang-toggle {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}

.lang-toggle:hover {
  background: var(--accent);
  color: var(--bg);
}

/* === Disclaimer === */
.disclaimer {
  max-width: 750px;
  margin: 1rem auto 0;
  padding: 0.8rem 1.2rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 3px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5d4037;
}

/* === Overview Content === */
.overview-content {
  max-width: 850px;
  padding-top: 1.5rem;
}

/* === Bio Section === */
.bio-section {
  margin-bottom: 3rem;
}

.bio-section h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.bio-text p {
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
}

/* === Timeline === */
.timeline-section {
  margin-bottom: 3rem;
}

.timeline-section h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.timeline-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

/* Era dividers */
.timeline-era {
  position: relative;
  margin: 2rem 0 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  margin-left: -0.5rem;
}

.timeline-event {
  position: relative;
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.timeline-event:hover {
  border-color: var(--accent);
  background: var(--annotation-bg);
}

.timeline-event-header {
  position: relative;
  padding-right: 1.5rem;
}

.timeline-event-header::after {
  content: '▸';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.timeline-event.expanded .timeline-event-header::after {
  transform: rotate(90deg);
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.timeline-year {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.timeline-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

.timeline-source {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-family: "Courier New", monospace;
}

/* Expandable detail panel */
.timeline-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.timeline-event.expanded .timeline-detail {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.timeline-event.expanded {
  border-color: var(--accent);
  background: var(--annotation-bg);
}

.timeline-detail-topics {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.timeline-detail-summary {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.timeline-detail-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  transition: all 0.15s;
}

.timeline-detail-link:hover {
  background: var(--accent);
  color: var(--bg);
}

/* === Tape Summaries Grid === */
.summaries-section h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.summaries-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tape-grid {
  display: grid;
  gap: 1rem;
}

.tape-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1rem 1.2rem;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tape-card:hover {
  border-color: var(--accent);
  background: var(--annotation-bg);
}

.tape-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tape-card-label {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 2px;
  white-space: nowrap;
}

.tape-card-topics {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

.tape-card-summary {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* === Responsive === */
@media (max-width: 600px) {
  .overview-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .site-nav {
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }

  .site-nav a {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}
