/* Shared history page desktop styles */
.history-hero {
  padding: 60px 5% 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.history-hero-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.history-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}

.history-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.8;
  margin: 0;
}

.history-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 5% 100px;
}

#history-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.history-item:hover {
  border-color: rgba(200,164,90,0.2);
}

.history-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg2);
  padding: 20px 22px;
  border: none;
  cursor: pointer;
  text-align: start;
  color: var(--text);
  font-family: inherit;
  transition: background 0.3s;
}

.history-toggle:hover,
.history-toggle[aria-expanded="true"] {
  background: var(--bg3);
}

.history-toggle-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.history-index {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.5;
  min-width: 32px;
  font-family: 'Cairo', sans-serif;
}

.history-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-title {
  font-size: 1rem;
  font-weight: 700;
}

.history-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.history-toggle-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.history-period {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.history-chevron {
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.history-content {
  padding: 24px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.history-text {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.history-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-highlight {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,164,90,0.2);
  color: var(--gold-light);
}

.history-figures-block {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-figures-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 800;
}

.history-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-figure-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200,164,90,0.18);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.22s var(--ease);
}

.history-figure-chip:hover,
.history-figure-chip.active {
  background: rgba(200,164,90,0.14);
  border-color: rgba(200,164,90,0.4);
  color: var(--gold-light);
}

.history-figure-panel {
  border: 1px solid rgba(200,164,90,0.18);
  background: rgba(255,255,255,0.025);
  border-radius: 12px;
  padding: 14px 16px;
}

.history-figure-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.history-figure-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-light);
}

.history-figure-meta {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.history-figure-description {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.88rem;
  margin: 0;
}

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .nav-top {
  flex-direction: row;
}

html[dir="ltr"] .nav-bottom {
  justify-content: flex-start;
}

html[dir="ltr"] .nav-links {
  flex-direction: row;
}
