/* page-history — 큰사람커넥트 홈페이지 (2026-11-15 PHP 퍼블리싱 전환) */

.era-nav.c-page-history {
  top: var(--header-h);
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
}

.era-nav.c-page-history ul.c-page-history {
  white-space: nowrap;
  gap: 8px;
  margin: 0 auto;
  padding-block: 12px;
  display: flex;
  overflow-x: auto;
}

.era-nav.c-page-history a.c-page-history {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  min-height: 44px;
  color: var(--color-text);
  align-items: center;
  gap: .5rem;
  padding: 0 1.25rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.en-no.c-page-history {
  color: var(--color-primary);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.era.c-page-history {
  scroll-margin-top: calc(var(--header-h) + 72px);
}

.era.c-page-history+.era.c-page-history {
  border-top: 1px solid var(--color-border);
}

.era-grid.c-page-history {
  gap: 32px;
  display: grid;
}

.era-media.c-page-history {
  aspect-ratio: 4/3;
  background: var(--color-bg-soft);
  border-radius: 20px;
  width: min(100%,360px);
  position: relative;
  overflow: hidden;
}

.era-media.c-page-history>.era-layer,
.era-plate.c-page-history {
  opacity: 0;
  transition: opacity .5s;
  position: absolute;
  inset: 0;
}

.era-media.c-page-history>.is-on {
  opacity: 1;
}

@media (prefers-reduced-motion:reduce) {
  .era-media.c-page-history>.era-layer,
  .era-plate.c-page-history {
    transition: none;
  }
}

.era-media.c-page-history .era-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.era-plate.c-page-history {
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-radius: inherit;
  background: var(--color-logo-plate);
  place-items: center;
  width: 100%;
  height: 100%;
  display: grid;
}

.era-plate.c-page-history .era-logo {
  width: min(60%,320px);
  height: auto;
}

.era-tag.c-page-history {
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-navy) 78%, transparent);
  color: var(--color-on-navy);
  padding: 6px 14px;
  font-size: .9375rem;
  font-weight: 800;
  position: absolute;
  bottom: 16px;
  left: 16px;
}

.years.c-page-history {
  gap: clamp(48px,2rem + 3vw,96px);
  margin: 0;
  padding: 0;
  display: grid;
}

.yb-y.c-page-history {
  background: var(--gradient-text-blue);
  color: #0000;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background-clip: text;
  margin-bottom: clamp(16px,.8rem + 1.2vw,32px);
  font-size: clamp(3rem,2.4rem + 2vw,4rem);
  font-weight: 800;
  line-height: 1;
}

@supports not (background-clip:text) {
  .yb-y.c-page-history {
    color: var(--color-primary);
    background: 0 0;
  }
}

.yb-list.c-page-history {
  gap: 22px;
  margin: 0;
  display: grid;
}

.mrow.c-page-history {
  grid-template-columns: 36px minmax(0,1fr);
  gap: 14px 16px;
  display: grid;
}

.mm.c-page-history {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.6;
}

.ev.c-page-history {
  color: var(--color-text-sub);
  word-break: keep-all;
  grid-column: 2;
  margin: 0;
  font-size: clamp(.9375rem,.88rem + .25vw,1.125rem);
  line-height: 1.6;
}

.ev.c-page-history.key {
  color: var(--color-text);
  font-weight: 700;
}

@media (width>=600px) {
  .era-media.c-page-history {
    border-radius: 22px;
  }

  .mrow.c-page-history {
    grid-template-columns: 48px minmax(0,1fr);
    column-gap: 24px;
  }
}

@media (width>=1280px) {
  .era-grid.c-page-history {
    grid-template-columns: 400px minmax(0,1fr);
    align-items: start;
    gap: 72px;
  }

  .era-media.c-page-history {
    top: calc(var(--header-h) + 96px);
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    width: 100%;
    position: sticky;
  }

  .era-tag.c-page-history {
    font-size: 1.0625rem;
    bottom: 24px;
    left: 24px;
  }

  .years.c-page-history {
    padding-left: 16px;
  }
}

/* ───── 2026-11-17 태블릿 · 모바일: 연도에 맞는 사진이 계속 보이게 ─────
   태블릿(600~1279): PC 와 같은 2단(왼쪽 고정 사진 + 오른쪽 연혁), 크기만 한 단계 작게
   모바일(<600): 사진을 작은 가로 배너로 메뉴 바로 아래에 고정, 목록은 배너 아래로 흐려지며 들어감 */
.era.c-page-history {
  --era-nav-h: 69px; /* 연대 바로가기 띠 높이 (12 + 44 + 12 + 선 1) */
}

@media (width < 600px) {
  .era-grid.c-page-history {
    gap: 24px;
  }

  .era-media.c-page-history {
    position: sticky;
    top: calc(var(--header-h) + var(--era-nav-h) + 8px);
    z-index: 4;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: visible;
    box-shadow: 0 12px 28px -18px color-mix(in srgb, var(--color-navy) 45%, transparent);
  }

  .era-media.c-page-history > .era-layer,
  .era-plate.c-page-history {
    border-radius: inherit;
    overflow: hidden;
  }

  /* 배너 위 · 아래 흰 띠: 목록이 배너 밑으로 흐려지며 들어가는 효과 */
  .era-media.c-page-history::before,
  .era-media.c-page-history::after {
    content: "";
    position: absolute;
    left: -16px;
    right: -16px;
    pointer-events: none;
  }

  .era-media.c-page-history::before {
    bottom: 100%;
    height: 8px;
    background: var(--color-bg);
  }

  .era-media.c-page-history::after {
    top: 100%;
    z-index: -1;
    height: 40px;
    background: linear-gradient(var(--color-bg), color-mix(in srgb, var(--color-bg) 0%, transparent));
  }

  .era-plate.c-page-history .era-logo {
    width: min(46%, 180px);
  }

  .era-tag.c-page-history {
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: .8125rem;
  }

  .years.c-page-history {
    gap: 40px;
  }

  .yb-y.c-page-history {
    margin-bottom: 12px;
    font-size: 2.25rem;
  }
}

@media (600px <= width < 1280px) {
  .era-grid.c-page-history {
    grid-template-columns: clamp(220px, 30vw, 320px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 4vw, 48px);
  }

  .era-media.c-page-history {
    position: sticky;
    top: calc(var(--header-h) + var(--era-nav-h) + 24px);
    width: 100%;
    aspect-ratio: 1;
  }

  .era-tag.c-page-history {
    bottom: 14px;
    left: 14px;
    padding: 5px 12px;
    font-size: .875rem;
  }

  .years.c-page-history {
    gap: clamp(40px, 2rem + 2vw, 64px);
  }

  .yb-y.c-page-history {
    margin-bottom: 14px;
    font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  }

  .yb-list.c-page-history {
    gap: 16px;
  }

  .mrow.c-page-history {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
  }

  .mm.c-page-history {
    font-size: .9375rem;
  }

  .ev.c-page-history {
    font-size: .9375rem;
  }
}
