/* 한국사 연대표 — 고유 레이아웃만 (박스/버튼/배경은 style_tools_base.css 통일) */
.wrap{ max-width:100%; padding:0 0 70px; }

.hist-head{ margin-bottom:20px; }
.hist-title{ font-size:38px; font-weight:800; margin:0; letter-spacing:-.02em; }
.hist-sub{ margin:8px 0 0; color:#6b7280; font-size:13px; }

.hist-cats{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.hist-cat{ padding:6px 14px; border:1.5px solid #e5e7eb; background:#fff; font-size:13px; font-weight:600; color:#6b7280; cursor:pointer; }
.hist-cat:hover{ border-color:#9ca3af; color:#111827; }
.hist-cat.active{ background:#111827; color:#fff; border-color:#111827; }

.hist-timeline{ max-width:680px; }
.hist-item{ display:grid; grid-template-columns:90px 24px 1fr; gap:8px; }
.hi-year{ font-size:13px; font-weight:800; color:#2563eb; text-align:right; padding-top:1px; }
.hi-line{ position:relative; display:flex; justify-content:center; }
.hi-line::before{ content:''; position:absolute; top:0; bottom:0; width:2px; background:#e5e7eb; }
.hi-dot{ width:11px; height:11px; border-radius:50%; background:#2563eb; border:2px solid #fff; position:relative; z-index:1; margin-top:3px; }
.hi-body{ padding-bottom:22px; }
.hi-event{ font-size:15px; font-weight:800; color:#111827; }
.hi-era{ font-size:10px; font-weight:700; color:#6b7280; background:#f3f4f6; padding:1px 7px; border-radius:99px; margin-left:4px; vertical-align:middle; }
.hi-desc{ font-size:13px; color:#6b7280; margin-top:3px; line-height:1.55; }
.hist-item:last-child .hi-line::before{ bottom:50%; }

@media (max-width:480px){
  .hist-title{ font-size:30px; }
  .hist-item{ grid-template-columns:70px 20px 1fr; }
  .hi-year{ font-size:12px; }
}
