/* ═══════════════════════════════════════════════════════════════
   /archive/ 페이지 고유 스타일

   설계 의도:
   - 세로 시간축(왼쪽) + 발행판 카드(오른쪽) 타임라인 뷰
   - 월 헤더가 축 위에 크게 걸림 (신문 지면 구획 감각)
   - 오늘은 검정 배경 카드로 극적 강조
   ═══════════════════════════════════════════════════════════════ */

/* ── 탭 (Editions / MOO:Q / Methodology) ── */
.arch-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ink);
  margin: 24px 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.arch-tabs::-webkit-scrollbar { display: none; }
.arch-tab {
  padding: 12px 22px 14px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--meta);
  letter-spacing: -0.005em;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.arch-tab:hover { color: var(--ink); }
.arch-tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold-deep);
  font-weight: 800;
}
.arch-tab .at-count {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--meta);
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.arch-tab.active .at-count { color: var(--gold-deep); }

/* ── 필터·검색 바 ── */
.arch-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 28px;
  background-color: var(--sheet-bg);
  border: 1px solid var(--divider-gd);
  align-items: center;
}
.af-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background-color: var(--page-bg);
  border: 1px solid var(--divider);
  min-width: 0;
}
.af-search::before {
  content: '⌕';
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 18px;
  line-height: 1;
}
.af-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  min-width: 0;
}
.af-search input::placeholder { color: var(--meta); }

.af-range { display: flex; gap: 6px; flex-wrap: wrap; }
.af-chip {
  padding: 7px 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  background-color: var(--page-bg);
  border: 1px solid var(--divider-gd);
  transition: all .15s;
  cursor: pointer;
  white-space: nowrap;
}
.af-chip:hover { border-color: var(--gold); color: var(--ink); }
.af-chip.active {
  background-color: var(--ink);
  color: var(--sheet-bg);
  border-color: var(--ink);
  font-weight: 700;
}

/* ── 타임라인 컨테이너 ── */
.timeline { position: relative; padding-left: 0; }
.timeline-empty {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--meta);
  padding: 40px 0;
}

/* 월 헤더 (축 위에 크게) */
.tl-month {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  align-items: baseline;
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 0;
  position: relative;
}
.tl-month:first-child { padding-top: 8px; }
.tlm-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}
.tlm-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.tlm-title .tlm-count {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-group { position: relative; padding: 8px 0 12px; }
.tl-group::before {
  content: '';
  position: absolute;
  left: 89px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--divider-gd);
}

.tl-item {
  display: grid;
  grid-template-columns: 80px 20px 1fr;
  gap: 12px;
  padding: 18px 0;
  position: relative;
  align-items: start;
}

.tl-date { text-align: right; padding-top: 6px; }
.tl-date .tld-day {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
.tl-date .tld-dow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.14em;
  margin-top: 4px;
  text-transform: uppercase;
}

.tl-node {
  display: flex;
  justify-content: center;
  padding-top: 14px;
  position: relative;
  z-index: 2;
}
.tl-node::before {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--sheet-bg);
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  display: block;
}

.tl-card {
  display: block;
  padding: 20px 24px 18px;
  background-color: var(--sheet-bg);
  border-left: 3px solid var(--gold);
  transition: background-color .15s, border-left-color .15s;
  min-width: 0;
}
.tl-card:hover {
  background-color: var(--cream-hi);
  border-left-color: var(--gold-deep);
}

.tlc-flag {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--divider-gd);
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tlc-flag .tlc-flag-r {
  font-family: var(--sans);
  font-style: normal;
  color: var(--meta);
  letter-spacing: 0.05em;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: none;
}

.tlc-headline {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 10px;
}

.tlc-deck {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.tlc-deck b { color: var(--ink); font-weight: 700; }

.tlc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tlc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tlc-tag {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  background-color: var(--page-bg);
  border: 1px solid var(--divider-gd);
}

.tlc-more {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tl-card:hover .tlc-more { color: var(--gold); }

/* 오늘 카드 (검정 배경 강조) */
.tl-item.tl-today .tl-node::before {
  background-color: var(--gold-deep);
  border-color: var(--ink);
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 3px var(--cream-hi);
}
.tl-item.tl-today .tl-date .tld-day { color: var(--gold-deep); }
.tl-item.tl-today .tl-card {
  background-color: var(--ink);
  border-left-color: var(--gold);
  color: var(--sheet-bg);
}
.tl-item.tl-today .tl-card:hover { background-color: var(--ink-deep); }
.tl-item.tl-today .tlc-flag {
  color: var(--gold);
  border-bottom-color: rgba(184,145,43,0.3);
}
.tl-item.tl-today .tlc-flag .tlc-flag-r { color: var(--cream-hi); opacity: 0.65; }
.tl-item.tl-today .tlc-headline { color: var(--sheet-bg); }
.tl-item.tl-today .tlc-deck { color: var(--cream-hi); opacity: 0.85; }
.tl-item.tl-today .tlc-deck b { color: var(--gold); }
.tl-item.tl-today .tlc-tag {
  background-color: rgba(242,230,197,0.08);
  color: var(--cream-hi);
  border-color: rgba(242,230,197,0.2);
}
.tl-item.tl-today .tlc-more { color: var(--gold); }

.tl-item.tl-past { opacity: 0.92; }

/* ── 반응형 ── */
@media (max-width: 720px) {
  .arch-filter {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .af-range { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .af-range::-webkit-scrollbar { display: none; }

  .tl-month { grid-template-columns: 1fr; gap: 6px; padding: 24px 0 14px; }
  .tlm-tag { font-size: 10px; }

  .tl-group::before { left: 15px; }
  .tl-item {
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 14px 0;
  }
  .tl-date {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding-top: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .tl-date .tld-day { font-size: 20px; }
  .tl-date .tld-dow { font-size: 9.5px; margin-top: 0; }
  .tl-node {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 4px;
    justify-content: flex-start;
    padding-left: 10px;
  }
  .tl-card {
    grid-column: 2;
    grid-row: 2;
    padding: 14px 16px;
  }
  .tlc-headline { font-size: 16px; }
  .tlc-deck { font-size: 13px; }
}
