/**
 * DX_TIMELINE 게시판 스킨 — timeline.css v1.0.0
 * Copyright © DesignOneX — designonex.com · All Rights Reserved.
 * License: DesignOneX License 1.0 (https://designonex.com/notice/view/1787577858493247)
 * style.css 뒤에 불러와 목록을 세로 시간축으로 바꿉니다. 그림자 없음.
 */

/* ── 목록 틀: 카드 그리드를 세로 시간축으로 ── */
.nb .gl55-grid.dxtl { display: block; padding: 8px 0 8px; }
.dxtl .dxtl-row { display: grid; grid-template-columns: 64px 44px minmax(0, 1fr); align-items: stretch; position: relative; }
.dxtl .dxtl-time { padding-top: 22px; text-align: right; font-size: 12px; font-weight: 800; color: var(--nb-mute); letter-spacing: 0; }
.dxtl .dxtl-rail { position: relative; }
.dxtl .dxtl-rail::before { content: ""; position: absolute; left: 50%; margin-left: -1px; top: 0; bottom: 0; width: 2px; background: var(--nb-line); }
.dxtl .dxtl-row:last-child .dxtl-rail::before { bottom: 50%; }
.dxtl .dxtl-ava { position: absolute; left: 50%; top: 12px; margin-left: -18px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--nb-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 13px; font-weight: 900; color: #20231f; }
.dxtl .dxtl-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dxtl .dxtl-main { position: relative; min-width: 0; padding: 0 0 14px 6px; }

/* 날짜 머리글 */
.dxtl .dxtl-day { display: grid; grid-template-columns: 64px 44px minmax(0, 1fr); align-items: center; padding: 18px 0 12px; }
.dxtl .dxtl-day:first-child { padding-top: 8px; }
.dxtl .dxtl-day-l { display: block; }
.dxtl .dxtl-day-r { position: relative; height: 100%; min-height: 28px; }
.dxtl .dxtl-day-r > span { position: absolute; left: 50%; margin-left: -1px; top: 0; bottom: 0; width: 2px; background: var(--nb-line); }
.dxtl .dxtl-day-t { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.dxtl .dxtl-day-t b { padding: 5px 14px; border-radius: 99px; background: var(--nb-acid); color: #20231f; font-size: 13px; font-weight: 900; }
.dxtl .dxtl-day-t em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--nb-mute); }

/* 카드 */
.dxtl a.dxtl-card { display: flex; flex-direction: column; gap: 9px; padding: 20px 22px; border: 1px solid var(--nb-line); border-radius: 16px; background: var(--nb-card); color: var(--nb-ink); box-shadow: none; transition: border-color .15s; }
.dxtl a.dxtl-card:hover { border-color: var(--nb-ink); }
.dxtl a.dxtl-card.is-cur { border-color: var(--nb-ink); cursor: default; }
.dxtl .dxtl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.dxtl .dxtl-name { font-weight: 800; }
.dxtl .dxtl-cat { padding: 2px 9px; border-radius: 99px; background: var(--nb-hover); border: 1px solid var(--nb-line); font-size: 11px; font-weight: 800; }
.dxtl .dxtl-now { padding: 2px 9px; border-radius: 99px; background: var(--nb-acid); color: #20231f; font-size: 11px; font-weight: 900; }
.dxtl .dxtl-ago { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--nb-mute); white-space: nowrap; }
.dxtl .dxtl-title { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 800; letter-spacing: -.04em; word-break: keep-all; overflow-wrap: anywhere; }
.dxtl .dxtl-title .fa-lock { font-size: 13px; color: var(--nb-mute); }
.dxtl .dxtl-ex { margin: 0; font-size: 14px; line-height: 1.65; color: var(--nb-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dxtl .dxtl-img { display: block; border-radius: 12px; overflow: hidden; background: var(--nb-hover); max-height: 240px; }
.dxtl .dxtl-img img { display: block; width: 100%; height: 100%; max-height: 240px; object-fit: cover; }
.dxtl .dxtl-foot { display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 700; color: var(--nb-mute); }
.dxtl .dxtl-foot .r { margin-left: auto; }
.dxtl .dxtl-foot i { margin-right: 3px; }
.dxtl .dxtl-chk { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; padding: 6px; }
.dxtl .dxtl-chk input { width: 18px; height: 18px; accent-color: var(--nb-btn); }
.dxtl .dxtl-row.nb-live-in .dxtl-card { animation: dxtlIn .6s ease-out; }
@keyframes dxtlIn { from { background: var(--nb-acid); } to { background: var(--nb-card); } }
@media (prefers-reduced-motion: reduce) { .dxtl .dxtl-row.nb-live-in .dxtl-card { animation: none; } }

/* 고정 공지 */
.dxtl-pins { margin: 6px 0 14px; border: 1px solid var(--nb-ink); border-radius: 16px; background: var(--nb-card); overflow: hidden; }
.dxtl-pins-h { display: flex; align-items: center; gap: 8px; padding: 13px 18px 9px; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.nb a.dxtl-pin { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--nb-line); }
.nb a.dxtl-pin:hover { background: var(--nb-hover); }
.dxtl-pin-tag { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--nb-ink); color: var(--nb-bg); font-size: 11px; font-weight: 800; }
.dxtl-pin-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dxtl-pin-t em { font-style: normal; color: var(--nb-mute); font-weight: 700; }
.dxtl-pin-d { flex: none; font-size: 12px; font-weight: 700; color: var(--nb-mute); }

/* 상세 아래 목록: 현재 글 강조 */
.nb-view-list .dxtl .dxtl-title { font-size: 15px; }
.nb-view-list .dxtl .dxtl-ex, .nb-view-list .dxtl .dxtl-img { display: none; }
.nb-view-list .dxtl a.dxtl-card { padding: 14px 18px; gap: 6px; }

/* 다크 모드 : 라임 면은 글자색 고정 */
html body.dark .dxtl .dxtl-ava, html body.dark .dxtl .dxtl-day-t b, html body.dark .dxtl .dxtl-now { color: #20231f !important; }
html body.dark .dxtl-pins { border-color: var(--nb-strong); }
html body.dark .dxtl .dxtl-pin-tag, html body.dark .dxtl-pin-tag { background: #fff; color: #20231f; }
html body.dark .dxtl .dxtl-day-t b { background: var(--nb-acid) !important; }

/* 모바일 */
@media (max-width: 720px) {
  .dxtl .dxtl-row, .dxtl .dxtl-day { grid-template-columns: 36px minmax(0, 1fr); }
  .dxtl .dxtl-time, .dxtl .dxtl-day-l { display: none; }
  .dxtl .dxtl-ava { width: 32px; height: 32px; margin-left: -16px; top: 10px; font-size: 12px; }
  .dxtl .dxtl-main { padding-left: 4px; padding-bottom: 12px; }
  .dxtl a.dxtl-card { padding: 14px 16px 12px; gap: 8px; }
  .dxtl .dxtl-title { font-size: 15px; }
  .dxtl .dxtl-ex { font-size: 13px; }
  .dxtl .dxtl-day-t { padding-left: 4px; }
  .dxtl-pins-h { padding: 12px 14px 8px; }
  .nb a.dxtl-pin { padding: 11px 14px; }
  .dxtl-pin-d { display: none; }
}
