/* ============================================================
   QQ Market Board — Daily Briefing
   ============================================================ */
/* ── 히어로(오늘 동향) — 확대 + 동향 요약 스탯 ── */
.brief-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-8) var(--sp-6); margin-bottom: var(--sp-5);
}
.brief-hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--qq-gold), var(--qq-gold-dim));
}
.brief-hero .date { color: var(--qq-gold); font-weight: 800; font-size: var(--fs-sm); }
.brief-hero h1 { margin: 8px 0 10px; font-size: var(--fs-3xl); letter-spacing: -.6px; line-height: 1.2; }
.brief-hero .lead { margin: 0; color: var(--text-2); font-size: var(--fs-md); max-width: 72ch; line-height: 1.7; }
.bh-stats { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.bh-stat {
  display: flex; flex-direction: column; gap: 2px; min-width: 96px;
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--bg-elev); border: 1px solid var(--border);
}
.bh-stat .k { font-size: var(--fs-2xs); color: var(--text-3); font-weight: 700; }
.bh-stat .v { font-size: var(--fs-xl); font-weight: 800; font-family: var(--ff-num); letter-spacing: -.3px; }

/* ── 섹션 헤딩 보조 라벨 ── */
.section-head-lg .section-sub { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); margin-top: 3px; letter-spacing: 0; }

/* ── 오늘의 핵심 카드(코인·증시·증권) ── */
.brief-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.hl-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); border-top: 3px solid var(--border); }
.hl-card--crypto { border-top-color: var(--qq-gold); }
.hl-card--stock  { border-top-color: var(--up); }
.hl-card--econ   { border-top-color: var(--down); }
.hl-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hl-card__head .e { font-size: 18px; }
.hl-card__head h3 { margin: 0; font-size: var(--fs-md); font-weight: 800; }
.hl-card__head .cnt { margin-left: auto; font-size: var(--fs-2xs); font-weight: 800; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 2px 9px; }
.hl-card__lead { margin: 0 0 10px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.hl-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hl-card__list a { display: grid; grid-template-columns: 42px 1fr; gap: 2px 8px; align-items: start; }
.hl-li__t { font-size: var(--fs-2xs); color: var(--text-3); font-family: var(--ff-num); font-weight: 700; padding-top: 1px; }
.hl-li__x { font-size: var(--fs-sm); color: var(--text); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-li__s { grid-column: 2; font-size: var(--fs-2xs); color: var(--text-3); }
.hl-card__list a:hover .hl-li__x { color: var(--qq-gold); }

/* ── 실시간 주요 이슈 분기 + 시간대별 타임라인 ── */
.brief-realtime { margin-bottom: var(--sp-5); border: 1px solid var(--qq-gold-dim); border-radius: var(--r-md); background: rgba(232,185,35,.05); padding: var(--sp-3) var(--sp-4) var(--sp-2); }
.brief-realtime__head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.brief-realtime__head .cnt { font-size: var(--fs-2xs); font-weight: 800; color: var(--qq-gold); background: var(--bg-elev); border: 1px solid var(--qq-gold-dim); border-radius: var(--r-pill); padding: 2px 9px; }
.tl-group { margin-bottom: var(--sp-5); }
.tl-group .news-group__head { margin-bottom: var(--sp-2); }

.brief-timeline { position: relative; }
.brief-timeline::before { content: ""; position: absolute; left: 62px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-row { position: relative; padding: 9px 0 9px 84px; min-height: 38px; }
.tl-row__time { position: absolute; left: 0; top: 11px; width: 50px; text-align: right; display: flex; flex-direction: column; gap: 1px; font-family: var(--ff-num); white-space: nowrap; }
.tl-row__time .d { font-size: var(--fs-2xs); color: var(--text-3); font-weight: 700; }
.tl-row__time .t { font-size: var(--fs-sm); color: var(--text-2); font-weight: 800; }
.tl-row__node { position: absolute; left: 57px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 3px var(--bg); }
.tl-row--urgent   .tl-row__node { background: var(--up); }
.tl-row--breaking .tl-row__node { background: var(--qq-gold); }
.tl-row--issue    .tl-row__node { background: var(--text-3); }
.tl-row__body { min-width: 0; }
.tl-row__meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tl-row__body .news-item__title { font-size: var(--fs-md); font-weight: 700; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-row__body .news-item__title:hover { color: var(--qq-gold); }
.tl-empty { color: var(--text-3); font-size: var(--fs-sm); padding: 12px 18px; }

/* 시장 상태 카드 */
.mkt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-6); }
.mkt-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); }
.mkt-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mkt-card .nm { font-weight: 800; font-size: var(--fs-sm); }
.mkt-card .hours { color: var(--text-3); font-size: var(--fs-2xs); }
.mkt-card .note { color: var(--text-3); font-size: var(--fs-xs); margin-top: 6px; line-height: 1.5; }
.st-pill { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); font-weight: 800; padding: 3px 9px; border-radius: var(--r-pill); }
.st-open   { color: var(--sig-new); background: rgba(22,199,132,.12); }
.st-pre    { color: var(--qq-gold); background: rgba(232,185,35,.12); }
.st-call   { color: var(--qq-gold); background: rgba(232,185,35,.12); }
.st-closed { color: var(--text-3); background: var(--surface-2); }
.st-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.section-head-lg { font-size: var(--fs-xl); font-weight: 800; margin: var(--sp-6) 0 var(--sp-3); }
.brief-note { color: var(--text-3); font-size: var(--fs-xs); margin-top: var(--sp-4); }

/* ---------- 브리핑 컨트롤: 날짜 스텝퍼 + 슬롯 탭 ---------- */
.brief-controls { margin: 0 0 var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.brief-date { display: flex; align-items: center; gap: 8px; }
.bd-nav {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 18px; font-weight: 800;
}
.bd-nav:hover:not([disabled]) { background: var(--surface-2); color: var(--text); }
.bd-nav[disabled] { opacity: .4; cursor: not-allowed; }
.bd-select {
  height: 34px; padding: 0 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: var(--ff-num); font-size: var(--fs-sm); font-weight: 700; min-width: 150px;
}
.bd-count { margin-left: 6px; font-size: var(--fs-2xs); color: var(--text-3); }

.brief-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.brief-slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px; border-radius: var(--r-md);
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-2);
}
.brief-slot:hover:not([disabled]) { border-color: var(--text-3); color: var(--text); }
.brief-slot .e { font-size: 18px; line-height: 1; }
.brief-slot .l { font-size: var(--fs-2xs); font-weight: 700; }
.brief-slot .tm { font-size: 10px; color: var(--text-3); font-family: var(--ff-num); }
.brief-slot.is-active { border-color: var(--qq-gold); background: rgba(232,185,35,.10); color: var(--text); }
.brief-slot.is-active .tm { color: var(--qq-gold); }
.brief-slot.is-empty { opacity: .45; cursor: not-allowed; }

@media (max-width: 1100px) {
  .mkt-grid { grid-template-columns: repeat(2, 1fr); }
  .brief-highlights { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mkt-grid { grid-template-columns: 1fr; }
  .brief-hero { padding: var(--sp-6) var(--sp-5); }
  .brief-hero h1 { font-size: var(--fs-2xl); }
  .brief-slot .l { font-size: 10px; }
  .bh-stat { flex: 1 1 40%; min-width: 0; }
}
