/* ==========================================================================
   About > 연혁 (Figma 1:5014) — page body only
   Hero/stage: sp-common.css + sp-hero.js. Timeline is rendered from history_api.php.
   ========================================================================== */

/* ---------- Timeline body (1:5077) ---------- */
.hist-body {
  padding: clamp(72px, 7.292vw, 140px) 0;
}
.hist-eras {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 3.646vw, 70px);
}
.hist-status {
  padding: 48px 0;
  text-align: center;
  font-size: 16px;
  color: #64748b;
}
.hist-status--error { color: #b91c1c; }

/* Neutralize the legacy global `section {padding:100px 0}` and
   `section:not(.hero)… > * {max-width/padding-inline/margin:auto}` rules from style.css */
.history-page .hist-eras > .hist-era { padding: 0; }
.history-page .hist-eras > .hist-era > .hist-era-side,
.history-page .hist-eras > .hist-era > .hist-era-main {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
@media (min-width: 1025px) {
  .history-page .hist-eras > .hist-era > .hist-era-side { width: auto; }
}

/* Era row: 600 side column + 139 gap + timeline */
.hist-era {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 7.24vw, 139px);
  scroll-margin-top: 120px;
}
.hist-era-side {
  flex: 0 0 clamp(320px, 31.25vw, 600px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.083vw, 40px);
}
.hist-era-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #111;
  white-space: nowrap;
}
.hist-era-year {
  font-family: var(--sp-font-en);
  font-weight: 600;
  font-size: clamp(40px, 3.646vw, 70px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.hist-era-dash {
  font-weight: 600;
  font-size: clamp(30px, 2.604vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.hist-era-media {
  aspect-ratio: 600 / 400;
  border-radius: 20px;
  overflow: hidden;
  background: #a6a6a6;
}
.hist-era-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hist-era-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hist-era-title {
  font-weight: 600;
  font-size: clamp(24px, 1.771vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #111;
}
.hist-era-intro {
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #333;
  word-break: keep-all;
}

/* Timeline items: 31px marker + 80px gap, marker shows on the active item only */
.hist-era-main {
  flex: 1 1 0;
  min-width: 0;
  padding-top: clamp(0px, 6.979vw, 134px);
}
.hist-list {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 2.604vw, 50px);
  list-style: none;
}
.hist-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 4.167vw, 80px);
}
.hist-item-mark {
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  margin-top: 4px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hist-item-mark img { width: 31px; height: 31px; }
.hist-item.is-active .hist-item-mark { opacity: 1; transform: none; }
.hist-item-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.hist-item-date {
  font-weight: 500;
  font-size: clamp(18px, 1.042vw, 20px);
  line-height: 1.8;
  letter-spacing: -0.03em;
  color: #111;
}
.hist-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hist-item-title {
  font-weight: 600;
  font-size: clamp(17px, 1.042vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #111;
}
.hist-item-desc {
  font-size: clamp(15px, 0.833vw, 16px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #666;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hist-era-side { flex-basis: 40%; }
}
@media (max-width: 1024px) {
  .hist-era { flex-direction: column; gap: 40px; }
  .hist-era-side { flex-basis: auto; width: 100%; }
  .hist-era-media { aspect-ratio: 16 / 9; }
  .hist-era-main { width: 100%; padding-top: 0; }
}
@media (max-width: 768px) {
  .hist-item { gap: 16px; }
  .hist-item-mark,
  .hist-item-mark img { width: 24px; height: 24px; }
  .hist-item-mark { margin-top: 5px; }
}
@media (max-width: 600px) {
  .hist-era-media { aspect-ratio: 600 / 400; border-radius: 14px; }
  .hist-era-range { white-space: normal; }
  .hist-item-body { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hist-item-mark { transition: none; }
}

/* Scene B dim strength (Figma), read by sp-hero.js */
.history-page .sp-stage { --sp-stage-dim: 0.6; }
