/* 오늘의 미국증시 — 금융 대시보드 스타일
 * Navy/Blue 기본, OPEN = Green, 중요 일정 = Orange
 * 모바일 우선 · PC 최대폭 1160px · PC 2~3열 그리드
 */

:root {
  --navy-950: #071328;
  --navy-900: #0b1d3a;
  --navy-800: #11284e;
  --navy-700: #1a3a6b;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-soft: #e9f0ff;
  --green: #0f9d58;
  --green-soft: #e3f5ea;
  --orange: #e8710a;
  --orange-soft: #fff1e0;
  --violet: #6d4fd8;
  --red: #d93025;

  --bg: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --text: #0d1b2e;
  --muted: #5c6b82;
  --line: #dfe5ee;

  --on-dark: #ffffff;
  --on-dark-muted: #a9b9d6;
  --on-dark-line: rgba(255, 255, 255, .12);
  --on-dark-fill: rgba(255, 255, 255, .06);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 2px 8px rgba(13, 27, 46, .04);
  --font: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --num: "SF Mono", "Roboto Mono", "Consolas", ui-monospace, var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070f1f;
    --surface: #0f1b31;
    --surface-2: #13223d;
    --text: #e7edf7;
    --muted: #93a3bd;
    --line: #22324f;
    --blue: #6e9bff;
    --blue-600: #8bb0ff;
    --blue-soft: #16264a;
    --green: #34d27b;
    --green-soft: #0f2e22;
    --orange: #ff9b3d;
    --orange-soft: #33220f;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--blue); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ───────── 헤더 ───────── */
.site-header { background: var(--navy-950); color: var(--on-dark); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 10px; min-height: 50px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: var(--on-dark); text-decoration: none; letter-spacing: -0.03em; margin-right: auto; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); display: inline-grid; place-items: center; font-size: 12px; font-weight: 900; }
.header-clock { font-size: 12px; color: var(--on-dark-muted); white-space: nowrap; }
.header-clock strong { color: var(--on-dark); font-family: var(--num); font-variant-numeric: tabular-nums; }

.market-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--on-dark); text-decoration: none;
  background: var(--on-dark-fill); border: 1px solid var(--on-dark-line);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8492a6; flex: none; }
.state-regular .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: pulse 2s infinite; }
.state-pre .dot { background: #fbbf24; }
.state-after .dot { background: #a78bfa; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .state-regular .dot { animation: none; } }

.site-nav { background: var(--navy-900); border-top: 1px solid var(--on-dark-line); }
.nav-scroll { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { flex: none; padding: 9px 11px; font-size: 13.5px; color: var(--on-dark-muted); text-decoration: none; font-weight: 600; }
.nav-scroll a:hover { color: var(--on-dark); }
.nav-scroll a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -2px 0 #3b82f6; }

/* ───────── 본문 공통 ───────── */
main { padding-top: 12px; padding-bottom: 40px; }
.content { max-width: 820px; }
.content--wide { max-width: none; }
h1 { font-size: 22px; line-height: 1.35; margin: 8px 0 6px; }
h2 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 14px 0 4px; }
.lead { color: var(--muted); margin: 0 0 14px; }
.sub { color: var(--muted); font-size: 12.5px; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; padding: 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }

/* 카드 */
.card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin: 0 0 12px; box-shadow: var(--shadow); min-width: 0;
}
.grid > .card, .grid > .panel { margin: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.panel-head a { font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.answer { margin: 0 0 8px; }
.next { margin: 0; font-size: 14px; }

/* 그리드: 모바일 1열 → PC 12칸 */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 칩·배지 */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip-open { background: var(--green-soft); color: var(--green); }
.chip-imp { background: var(--orange-soft); color: var(--orange); }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.badge { display: inline-block; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); vertical-align: middle; margin-left: 4px; font-weight: 600; }
.empty { color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0; font-size: 13px; }

/* ───────── 히어로 (네이비 대시보드 상단) ───────── */
.hero {
  background: radial-gradient(120% 140% at 100% 0%, #1e4fa8 0%, transparent 55%), linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--on-dark); border-radius: 18px; padding: 16px; margin: 4px 0 12px;
  display: grid; gap: 14px;
}
.hero h1 { color: var(--on-dark); margin-top: 0; font-size: 20px; }
.hero .lead { color: var(--on-dark-muted); margin-bottom: 0; }
.hero .lead strong { color: var(--on-dark); }
.hero a { color: #9cc0ff; }
.hero .breadcrumb ol, .hero .breadcrumb a { color: var(--on-dark-muted); }

.state-box { background: var(--on-dark-fill); border: 1px solid var(--on-dark-line); border-radius: 14px; padding: 12px 14px; }
.state-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.state-name { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.state-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--on-dark); }
.state-regular .state-tag { background: #16a34a; }
.state-pre .state-tag { background: #b45309; }
.state-after .state-tag { background: #5b21b6; }
.state-detail { color: var(--on-dark-muted); font-size: 13px; margin: 4px 0 8px; }
.count-label { font-size: 12px; color: var(--on-dark-muted); }
.count-big { display: block; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.count-at { font-size: 12px; color: var(--on-dark-muted); }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--on-dark-fill); border: 1px solid var(--on-dark-line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.kpi-label { display: block; font-size: 12px; color: var(--on-dark-muted); }
.kpi-value { display: block; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.kpi-sub { display: block; font-size: 11.5px; color: var(--on-dark-muted); }
.kpi--accent { background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .35); }
.kpi--warn { background: rgba(232, 113, 10, .16); border-color: rgba(255, 155, 61, .4); }

.recheck-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--on-dark-muted); }
.recheck-strip .rc { background: var(--on-dark-fill); border: 1px solid var(--on-dark-line); border-radius: 8px; padding: 5px 8px; color: var(--on-dark); }
.recheck-strip .rc b { font-family: var(--num); }

/* ───────── 타임라인 (오늘 밤 일정) ───────── */
.timeline { list-style: none; margin: 4px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 8px 0 8px 10px; border-bottom: 1px solid var(--line); position: relative; }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--line); }
.timeline time { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; }
.timeline .tl-body .sub { display: block; }
.timeline .tl-market::before { background: var(--navy-700); }
.timeline .tl-event::before { background: var(--orange); }
.timeline .tl-event time { color: var(--orange); }
.timeline .tl-event .tl-body > a, .timeline .tl-event .tl-title { font-weight: 700; }
.timeline .tl-earnings::before { background: var(--violet); }
.timeline .is-done { opacity: .45; }
.timeline .is-next { background: var(--blue-soft); border-radius: 8px; }
.timeline .is-next::after { content: "다음"; position: absolute; right: 8px; top: 9px; font-size: 11px; font-weight: 800; color: var(--blue); }

/* ───────── D-day ───────── */
.dday-list { list-style: none; margin: 0; padding: 0; }
.dday-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.dday-list li:last-child .dday-row { border-bottom: 0; }
.dday-row .dday-name { font-weight: 700; }
.dday-row .sub { display: block; }
.dday-num { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--navy-700); }
@media (prefers-color-scheme: dark) { .dday-num { color: var(--blue-600); } }
.dday-row.is-imp .dday-num { color: var(--orange); }
.dday-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.dday-tile { display: block; text-decoration: none; color: var(--text); background: var(--orange-soft); border-radius: 12px; padding: 10px; min-width: 0; }
.dday-tile .dday-num { display: block; color: var(--orange); font-size: 26px; line-height: 1.1; }
.dday-tile .t { display: block; font-size: 12px; font-weight: 700; }
.dday-tile .sub { display: block; font-size: 11.5px; }

/* 기존 D-day 그리드 partial (다른 페이지용) */
.dday-grid { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dday { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; height: 100%; }
a.dday:hover { border-color: var(--blue); }
.dday-label { font-size: 12.5px; color: var(--muted); }
.dday .dday-num { font-size: 22px; }
.dday .sub { font-size: 11.5px; }

/* ───────── 표 ───────── */
.table-wrap { overflow-x: auto; margin: 4px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 12px; color: var(--muted); padding-bottom: 4px; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12px; color: var(--muted); font-weight: 700; background: var(--surface-2); }
tbody th, td:first-child { white-space: nowrap; }
tbody tr:hover { background: var(--surface-2); }
.row-closed td, .row-closed th { color: var(--muted); }
.row-past { opacity: .5; }
.t-num { font-family: var(--num); font-weight: 700; }
.hours-table td, .hours-table th { white-space: nowrap; }
.hours-table .is-current { background: var(--blue-soft); font-weight: 800; color: var(--text); }
.hours-table thead .is-current { color: var(--blue); }

/* ───────── 거래시간 답변 카드 (hours) ───────── */
.answer-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 12px; }
.answer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.answer-card h2 { font-size: 16px; }
.big-time { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; }
.big-time .v { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy-700); line-height: 1.1; }
@media (prefers-color-scheme: dark) { .big-time .v { color: var(--blue-600); } }
.big-time .alt { font-size: 12.5px; color: var(--muted); }
.answer-card p { margin: 6px 0 0; font-size: 14px; }

.notice { border-left: 4px solid var(--orange); background: var(--orange-soft); }
.notice .num { color: var(--orange); font-weight: 800; }

/* ───────── 링크 타일 (자주 찾는 정보) ───────── */
.link-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.link-tiles a { display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.link-tiles a:hover { border-color: var(--blue); color: var(--blue); }
.link-tiles .sub { display: block; font-weight: 400; margin-top: 2px; }

/* 기존 partial용 */
.status-card { border-left: 4px solid #8492a6; }
.status-card.state-pre { border-left-color: #f59e0b; }
.status-card.state-regular { border-left-color: var(--green); }
.status-card.state-after { border-left-color: var(--violet); }
.recheck { border-left: 4px solid var(--blue); }
.recheck ul { margin: 0 0 6px; padding-left: 18px; }
.countdown { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 800; }
.filing-list { margin: 0; padding: 0; list-style: none; }
.filing-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.filing-list li:last-child { border-bottom: 0; }
.faq-item h3 { margin-top: 12px; }
.faq-item p { margin: 0; font-size: 14px; }
.related ul { margin: 0; padding-left: 18px; }
.related li { margin: 5px 0; }
.related { margin: 16px 0 8px; }
.link-list { padding-left: 20px; }
.meta { font-size: 12px; color: var(--muted); margin: 8px 0 16px; }

/* 광고: 높이를 미리 잡아 CLS 방지 */
.ad-slot { margin: 12px 0; min-height: 100px; }
.ad-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }

/* ───────── 푸터 ───────── */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 22px 0 30px; font-size: 12.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.footer-links a { color: var(--on-dark-muted); }
.footer-brand { color: var(--on-dark); font-weight: 800; margin: 0 0 6px; }
.disclaimer, .copy { margin: 6px 0; }

/* ───────── 태블릿 ───────── */
@media (min-width: 640px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .link-tiles { grid-template-columns: repeat(3, 1fr); }
  .answer-grid { grid-template-columns: 1fr 1fr; }
  .dday-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ───────── PC ───────── */
@media (min-width: 960px) {
  body { font-size: 15px; }
  .wrap { padding: 0 24px; }
  h1 { font-size: 26px; }
  .hero { grid-template-columns: 1.15fr 1fr; padding: 22px 24px; gap: 20px; align-items: start; }
  .hero h1 { font-size: 25px; }
  .hero-side { display: grid; gap: 10px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(12, 1fr); gap: 14px; margin-bottom: 14px; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }
  .answer-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .link-tiles { grid-template-columns: repeat(4, 1fr); }
  .card, .panel { padding: 16px 18px; }
  .count-big { font-size: 36px; }
}

.market-pill .sub { color: var(--on-dark-muted); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; }
.market-pill.state-regular { background: rgba(22, 163, 74, .22); border-color: rgba(34, 197, 94, .5); }
.market-pill.state-regular .sub { color: #86efac; }
@media (max-width: 380px) { .header-clock { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero .eyebrow { color: var(--on-dark-muted); margin: 0 0 4px; }
.hero-state { margin-top: 12px; }
.nowrap { white-space: nowrap; }

/* ───────── 홈 화면 추가 / 즐겨찾기 ───────── */
.save-btn {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font: 700 12px/1 var(--font); color: #071328; background: #fbbf24;
  border: 0; border-radius: 999px; padding: 7px 11px; cursor: pointer; white-space: nowrap;
}
.save-btn[hidden] { display: none; }
.save-btn:hover { background: #fcd34d; }
.save-sheet {
  border: 0; border-radius: 18px; padding: 18px; width: min(420px, calc(100% - 24px));
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.save-sheet::backdrop { background: rgba(7, 19, 40, .55); }
@media (max-width: 640px) {
  .save-sheet { margin: auto auto 12px; }
  .header-clock { display: none; }
}
.sheet-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.sheet-head img { border-radius: 10px; flex: none; }
.sheet-head strong { display: block; font-size: 16px; }
.sheet-body ol { margin: 0 0 8px; padding-left: 20px; }
.sheet-body li { margin: 6px 0; }
.sheet-tip { margin: 0 0 8px; }
.kbd { display: inline-block; font-family: var(--num); font-size: 12px; font-weight: 700; padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); }
.sheet-install { width: 100%; font: 800 15px/1 var(--font); color: #fff; background: var(--blue); border: 0; border-radius: 12px; padding: 13px; margin-bottom: 10px; cursor: pointer; }
.sheet-close { width: 100%; font: 700 14px/1 var(--font); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px; margin-top: 4px; cursor: pointer; }

/* 좁은 휴대폰 헤더 정리 */
.brand { white-space: nowrap; min-width: 0; }
.brand-mark { flex: none; }
@media (max-width: 430px) {
  .header-row { gap: 6px; }
  .brand { font-size: 15px; gap: 6px; }
  .market-pill { padding: 4px 8px; }
  .market-pill .sub { display: none; }
  .save-btn { padding: 7px 9px; }
}
@media (max-width: 350px) {
  .save-btn .save-text { display: none; }
}

/* ───────── 전광판 (히어로 장 상태) ───────── */
.board {
  --lamp: #ef4444; --glow: #ffb020;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #05080f 0%, #0a1222 100%);
  border: 1px solid #1f2b44; border-radius: 16px; padding: 14px 16px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.35);
  color: #e8eefc;
}
/* LED 도트 질감 */
.board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 4px 4px;
}
.board > * { position: relative; }
.board.state-regular { --lamp: #22c55e; --glow: #4ade80; }
.board.state-pre { --lamp: #f59e0b; }
.board.state-after { --lamp: #a78bfa; --glow: #c4b5fd; }

.board-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed #24324f; }
.board-ex { font: 800 11px/1 var(--num); letter-spacing: .18em; color: #7f8fb0; }
.board-lamp { display: inline-flex; align-items: center; gap: 7px; font: 800 11px/1 var(--num); letter-spacing: .14em; color: var(--lamp); }
.board-lamp i { width: 9px; height: 9px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px var(--lamp), 0 0 2px #fff inset; }
.board.state-regular .board-lamp i { animation: lamp 1.6s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: .35; box-shadow: none; } }

.board-cap { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #7f8fb0; }
.board-state { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin: 2px 0; }
.board-detail { display: block; font-size: 12.5px; color: #9aa9c7; margin-bottom: 12px; }

/* 플립 카운트다운 */
.flip { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 4px; flex-wrap: nowrap; }
.flip-g { display: inline-grid; grid-template-columns: auto auto; column-gap: 3px; justify-items: center; }
.flip-g[hidden] { display: none; }
.flip-g em { grid-column: 1 / -1; font-style: normal; font-size: 10.5px; font-weight: 700; color: #6f7fa1; margin-top: 4px; letter-spacing: .06em; }
.flip-d {
  position: relative; display: inline-block; width: 30px; text-align: center;
  font: 800 34px/52px var(--num); font-variant-numeric: tabular-nums;
  color: var(--glow); text-shadow: 0 0 10px color-mix(in srgb, var(--glow) 55%, transparent), 0 0 1px var(--glow);
  background: linear-gradient(180deg, #141c2e 0%, #10172a 49%, #0b1222 51%, #0e1628 100%);
  border: 1px solid #22304d; border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 0 #04070d;
}
/* 가운데 분할선 (플립 보드 느낌) */
.flip-d::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.65); box-shadow: 0 1px 0 rgba(255,255,255,.04); }
.flip-d.tick { animation: flipin .38s cubic-bezier(.3,.7,.4,1); }
@keyframes flipin { 0% { transform: perspective(200px) rotateX(-70deg); filter: brightness(1.6); } 100% { transform: none; filter: none; } }
.flip-sep { font: 800 30px/52px var(--num); color: var(--glow); opacity: .7; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) {
  .flip-d.tick, .flip-sep, .board-lamp i { animation: none !important; }
}
.board-at { font-size: 12px; color: #7f8fb0; margin-bottom: 14px; }
.board-at time { color: #c8d4ee; font-weight: 700; }

/* 세션 진행 바 */
.track { margin-top: 2px; }
.track-bar { position: relative; display: flex; height: 8px; border-radius: 999px; overflow: visible; background: #111a2c; }
.seg { display: block; height: 100%; }
.seg-pre { background: linear-gradient(90deg, #6b4a12, #b77a12); border-radius: 999px 0 0 999px; }
.seg-reg { background: linear-gradient(90deg, #0f7a3d, #22c55e); }
.seg-after { background: linear-gradient(90deg, #4c3a99, #7c64e0); border-radius: 0 999px 999px 0; }
.track-now { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2), 0 0 12px rgba(255,255,255,.7); transition: left 1s linear; }
.track-labels { position: relative; height: 30px; margin-top: 6px; font: 700 11px/1.15 var(--num); color: #9aa9c7; }
.track-labels span { position: absolute; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.track-labels span:first-child { transform: none; text-align: left; }
.track-labels span:last-child { transform: translateX(-100%); text-align: right; }
.track-labels small { display: block; font: 600 10px/1.2 var(--font); color: #6f7fa1; }

@media (min-width: 960px) {
  .flip-d { width: 36px; font-size: 40px; line-height: 60px; }
  .flip-sep { font-size: 34px; line-height: 60px; }
  .board-state { font-size: 28px; }
}
@media (max-width: 360px) {
  .flip { gap: 4px; }
  .flip-d { width: 26px; font-size: 28px; line-height: 44px; }
  .flip-sep { font-size: 24px; line-height: 44px; }
}

/* ───────── 가이드·체크리스트 ───────── */
.check-list { margin: 6px 0 8px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 5px 0 5px 22px; font-size: 14px; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.guide-cards a { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-decoration: none; }
.guide-cards a:hover { border-color: var(--blue); }
.guide-cards .gc-step { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy-800); color: #fff; font: 800 13px/1 var(--num); }
.guide-cards strong { font-size: 15px; }
.guide-cards .sub { grid-column: 2; }
@media (min-width: 640px) { .guide-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .guide-cards { grid-template-columns: repeat(5, 1fr); } .guide-cards a { grid-template-columns: 1fr; row-gap: 6px; } .guide-cards .gc-step { grid-row: auto; } .guide-cards .sub { grid-column: 1; } }

/* 글(가이드) 페이지 */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); }
.article h1 { margin-top: 4px; }
.article h2 { font-size: 19px; margin: 28px 0 8px; padding-top: 4px; }
.article h3 { font-size: 16px; margin: 18px 0 6px; }
.article p, .article li { font-size: 15.5px; line-height: 1.75; }
.article ol, .article ul { padding-left: 20px; }
.article .lead { font-size: 16px; color: var(--text); background: var(--blue-soft); border-radius: 10px; padding: 12px 14px; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }
.toc strong { display: block; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc a { text-decoration: none; }
.callout { border-left: 4px solid var(--orange); background: var(--orange-soft); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 12px 0; font-size: 14.5px; }
.callout-blue { border-left-color: var(--blue); background: var(--blue-soft); }
.steps { counter-reset: st; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: st; position: relative; padding: 12px 12px 12px 54px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.steps > li::before { content: counter(st); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 9px; background: var(--navy-800); color: #fff; display: grid; place-items: center; font: 800 14px/1 var(--num); }
.steps > li strong:first-child { display: block; font-size: 16px; margin-bottom: 2px; }
@media (min-width: 960px) { .article { padding: 26px 32px; } }

/* 계산기 */
.calc { display: grid; gap: 12px; }
.calc label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 700; }
.calc input, .calc select { font: 600 16px/1.2 var(--font); padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); width: 100%; }
.calc input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.calc .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-result { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; border-radius: 14px; padding: 16px; }
.calc-result .big { display: block; font: 800 34px/1.1 var(--num); letter-spacing: -0.03em; margin: 4px 0; }
.calc-result dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 10px 0 0; font-size: 14px; color: #c8d4ee; }
.calc-result dd { margin: 0; text-align: right; font-family: var(--num); color: #fff; font-weight: 700; }
.calc-btn { font: 800 15px/1 var(--font); color: #fff; background: var(--blue); border: 0; border-radius: 12px; padding: 13px; cursor: pointer; }
.calc-result .eyebrow { color: #a9b9d6; }

/* ───────── 메뉴: PC는 가로 한 줄, 모바일은 네모 버튼 격자 ───────── */
.nav-ico { display: none; }
@media (max-width: 767px) {
  /* 메뉴가 두세 줄이 되므로 모바일에서는 헤더를 고정하지 않는다 (본문 가림 방지) */
  .site-header { position: static; }
  .site-nav { padding: 10px 0 12px; }
  .nav-scroll {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    overflow: visible;
  }
  .nav-scroll a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 62px; padding: 8px 4px; border-radius: 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    color: #d6e0f5; font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center;
    word-break: keep-all;
  }
  .nav-scroll a:active { background: rgba(255, 255, 255, .14); }
  .nav-scroll a[aria-current="page"] {
    box-shadow: none; color: #fff;
    background: #2563eb; border-color: #3b82f6;
  }
  .nav-ico {
    display: block; width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9;
  }
}
/* 아주 좁은 화면: 3칸 → 세 줄 */
@media (max-width: 359px) {
  .nav-scroll { grid-template-columns: repeat(3, 1fr); }
}
