@media (max-width: 800px) {
  .history-hero {
    padding: 28px 5% 22px;
  }

  .history-period {
    display: none;
  }

  .history-container {
    max-width: none;
    padding: 22px 0 72px;
    overflow: hidden;
    position: relative;
  }

  .history-container::before {
    content: "› اسحب للتنقّل بين الحقب ‹";
    width: fit-content;
    max-width: calc(100vw - 10vw);
    margin: 0 5vw 14px;
    padding: 7px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200,164,90,0.24);
    border-radius: 999px;
    background: rgba(200,164,90,0.08);
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    animation: historySwipeHint 1.8s ease-in-out 3;
  }

  html[dir="ltr"] .history-container::before {
    content: "‹ Swipe between eras ›";
  }

  @keyframes historySwipeHint {
    0%, 100% {
      transform: translateX(0);
      opacity: 0.72;
    }
    45% {
      transform: translateX(-10px);
      opacity: 1;
    }
    75% {
      transform: translateX(7px);
      opacity: 0.9;
    }
  }

  #history-list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 5vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 5vw 12px;
  }

  #history-list::-webkit-scrollbar {
    display: none;
  }

  .history-index-intro {
    display: none;
  }

  .history-era-card {
    flex: 0 0 86vw;
    width: 86vw;
    max-width: 86vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .history-era-group,
  .history-era-grid {
    display: contents;
  }

  .history-era-group-title {
    display: none;
  }

  .history-item,
  .history-era-card {
    transform: none;
  }

  .history-item:hover,
  .history-era-card:hover {
    transform: none;
  }

  .history-era-card {
    min-height: 0;
    height: auto;
  }

  .history-era-card-main {
    padding: 18px;
    gap: 12px;
  }

  .history-era-card-head {
    grid-template-columns: auto 1fr;
    gap: 11px;
  }

  .history-index {
    min-width: 26px;
    font-size: 1.18rem;
  }

  .history-title {
    font-size: 1rem;
    line-height: 1.45;
  }

  .history-subtitle {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .history-text {
    font-size: 0.86rem;
    line-height: 1.75;
  }

  .history-highlights {
    gap: 6px;
  }

  .history-highlight {
    font-size: 0.74rem;
    padding: 4px 10px;
  }

  .history-figures-block {
    padding: 0 18px 14px;
    gap: 8px;
  }

  .history-figures {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .history-figures::-webkit-scrollbar {
    display: none;
  }

  .history-figure-chip {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 11px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .history-era-link-wrap {
    padding: 0 18px 18px;
  }

  .history-era-link {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 0.8rem;
  }

  .history-related-sheets-tags {
    gap: 6px;
  }

  .history-related-sheet-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}
