/* DAY6의 발자취 — 마이데이 민트 다크 테마.
   시리즈 색은 어두운 면(#141715) 위에서 6슬롯 전부 검증했습니다. */

:root {
  color-scheme: dark;

  --page: #0a0c0b;
  --surface: #141715;
  --surface-2: #1d211e;
  --ink: #ffffff;
  --ink-2: #c2c8c4;
  --ink-muted: #8a8f8b;
  --grid: #282c29;
  --line: #39403c;
  --border: rgba(255, 255, 255, 0.10);

  /* 마이데이 민트 — 마크용(--mint)과 텍스트용(--mint-ink)을 나눠 씁니다. */
  --mint: #1ea87f;
  --mint-ink: #5fd8b4;
  --mint-dim: rgba(30, 168, 127, 0.14);

  --s1: #1ea87f;
  --s2: #d95926;
  --s3: #3987e5;
  --s4: #c98500;

  --radius: 14px;
  --wrap: 980px;

  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 상단 바 --------------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 12, 11, 0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand strong { display: block; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-sub { display: block; font-size: 11px; color: var(--ink-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 9px; background: var(--mint); color: #06120d; font-weight: 800; font-size: 16px;
}

.update-badge {
  display: flex; align-items: center; gap: 8px; flex: none;
  font-size: 12px; color: var(--ink-2);
  padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px;
}
.update-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-ink); flex: none; }
.update-badge.stale .dot { background: var(--s4); }

/* --- 히어로 ---------------------------------------------------------------- */

.hero {
  padding: 56px 0 40px; border-bottom: 1px solid var(--border);
  background: radial-gradient(80% 120% at 0% 0%, var(--mint-dim), transparent 62%);
}
.eyebrow { margin: 0 0 18px; font-size: 13px; color: var(--mint-ink); }

.hero-figure { display: flex; align-items: baseline; gap: 10px; }
.hero-num { font-size: clamp(56px, 14vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.hero-unit { font-size: clamp(20px, 4vw, 30px); font-weight: 600; color: var(--mint-ink); }
.hero-caption { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }

.tiles {
  display: grid; gap: 10px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.tile-label { font-size: 12px; color: var(--ink-muted); }
.tile-value { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; }
.tile-value small { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-left: 3px; }
.tile-note { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

/* --- 섹션 ------------------------------------------------------------------ */

.section { padding: 48px 0; border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: 24px; }
.section-sub { margin: 6px 0 0; color: var(--ink-muted); font-size: 13.5px; }

/* --- 칩 필터 --------------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.chip {
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--ink-2);
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--mint); color: #06120d; border-color: var(--mint); font-weight: 600; }

/* --- 타임라인 --------------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
.tl-item { position: relative; padding: 0 0 24px 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-muted); box-shadow: 0 0 0 3px var(--page);
}
.tl-item[data-kind="release"]::before { background: var(--s1); }
.tl-item[data-kind="debut"]::before,
.tl-item[data-kind="project"]::before { background: var(--s2); }
.tl-item[data-kind="lineup"]::before,
.tl-item[data-kind="service"]::before { background: var(--s4); }
.tl-item[data-kind="tour"]::before { background: var(--s3); }

.tl-date { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.tl-title { font-size: 15px; font-weight: 600; margin: 1px 0 0; }
.tl-title a { text-decoration: none; }
.tl-title a:hover { text-decoration: underline; color: var(--mint-ink); }
.tl-detail { font-size: 13px; color: var(--ink-2); margin: 3px 0 0; }
.tl-kind {
  display: inline-block; font-size: 11px; color: var(--ink-muted);
  border: 1px solid var(--border); border-radius: 5px; padding: 0 6px; margin-left: 6px;
  vertical-align: 1px;
}

.more {
  font: inherit; font-size: 13px; cursor: pointer; margin-top: 4px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--ink-2);
}
.more:hover { background: var(--surface-2); }

/* --- 차트 카드 -------------------------------------------------------------- */

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 14px; min-width: 0;
}
.card.wide { grid-column: 1 / -1; }
.card h3 { font-size: 15.5px; }
.card-sub { margin: 5px 0 16px; font-size: 13px; color: var(--ink-muted); }
.card-figure { overflow-x: auto; }
.card-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-2); }
.card-note b { color: var(--ink); font-weight: 600; }

.mark { cursor: default; outline: none; }
.mark:hover, .mark.is-hovered, .mark:focus-visible { opacity: 0.85; }

details.table-view { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
details.table-view summary { font-size: 12px; color: var(--ink-muted); cursor: pointer; }
details.table-view summary:hover { color: var(--mint-ink); }
details.table-view table { width: 100%; margin-top: 10px; font-size: 12.5px; border-collapse: collapse; }
details.table-view td { padding: 4px 0; border-bottom: 1px solid var(--grid); color: var(--ink-2); }
details.table-view td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* --- 툴팁 ------------------------------------------------------------------- */

.tooltip {
  position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none;
  background: #ffffff; color: #0b0b0b;
  border-radius: 9px; padding: 7px 10px; font-size: 12.5px; line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); max-width: 260px;
}
.tooltip b { display: block; font-weight: 700; }
.tooltip span { color: #52514e; }

/* --- 표 -------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.table th {
  text-align: left; font-size: 12px; color: var(--ink-muted); font-weight: 500;
  padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--grid); vertical-align: top; }
.table td:first-child { color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .t-title { font-weight: 600; }
.table .t-sub { color: var(--ink-2); font-size: 12.5px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }

.pill {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 5px;
  border: 1px solid var(--border); color: var(--ink-muted); margin-left: 6px;
}

/* --- 트리비아 --------------------------------------------------------------- */

.trivia { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trivia-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.trivia-card h3 { font-size: 14.5px; margin-bottom: 6px; }
.trivia-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.trivia-card h3 { display: flex; align-items: baseline; gap: 7px; }
.trivia-emoji { font-size: 16px; line-height: 1; }
.trivia-src { margin-top: 10px !important; font-size: 12px !important; color: var(--ink-muted) !important; }
.trivia-src a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; }
.trivia-src a:hover { color: var(--mint-ink); }

/* --- 푸터 ------------------------------------------------------------------- */

.footer { padding: 34px 0 60px; color: var(--ink-muted); font-size: 12.5px; }
.footer p { margin: 0 0 7px; }
.footer strong { color: var(--ink-2); }
.footer-links a { margin-right: 14px; color: var(--ink-2); }
.footer-links a:hover { color: var(--mint-ink); }

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand strong { font-size: 14px; }
  .update-badge { font-size: 11px; padding: 5px 9px; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 38px 0; }
  .card { padding: 16px 14px 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .tl-item, .tile, .card { animation: rise 0.4s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
