/* gonggrid LoL Edition — 순백 매거진 쉘 + 협곡 세이지 액센트 스타일시트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-tint: #F5F7F5;
  --card: #EFF3EE;
  --chart-bg: #F1F4F0;
  --ink: #0F1115;
  --ink-soft: #2C332D;
  --muted: #5A645E;
  --line: #D8E0D9;
  --line-soft: #EAEEEA;
  --teal: #1E7E74;
  --vermilion: #C84B31;
  --gold: #EEB42C;
  --gold-ink: #9A6306;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: 'Pretendard', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 상단 에디토리얼 네비게이션 */
.topbar { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { display: block; flex-shrink: 0; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand-sub { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--teal); text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 10px; }

.nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--gold); }
.nav a.ext { color: var(--teal); font-weight: 700; }

/* 섹션 헤더 & 매거진 룰러 */
.page-head { padding: 40px 0 28px; border-bottom: 1.5px solid var(--ink); }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; color: var(--gold-ink); text-transform: uppercase; margin-bottom: 8px; }
.page-title { font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 10px; line-height: 1.22; }
.page-desc { margin: 0; color: var(--muted); font-size: 1rem; max-width: 760px; }

/* 피처드 배너 (절제된 매거진 톤) */
.featured-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; margin: 28px 0 36px; }
.featured-box { background: var(--surface-tint); border: 1px solid var(--line); border-top: 2.5px solid var(--teal); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.featured-box.gold-top { border-top-color: var(--gold); }
.featured-tag { font-size: 0.76rem; font-weight: 700; color: var(--teal); letter-spacing: 0.06em; margin-bottom: 8px; }
.featured-box.gold-top .featured-tag { color: var(--gold-ink); }
.featured-title { font-size: 1.35rem; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; }
.featured-meta { font-size: 0.92rem; color: var(--muted); margin: 0 0 18px; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; width: fit-content; }
.btn-link:hover { color: var(--teal); }

/* 매치 리스트 */
.section-label { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin: 36px 0 14px; display: flex; align-items: center; justify-content: space-between; }
.match-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 52px; }
.match-card { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; transition: border-color .15s, background-color .15s, transform .15s; display: block; }
.match-card:hover { border-color: var(--teal); background: var(--surface-tint); transform: translateY(-2px); }
.mc-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.stage-pill { font-weight: 800; color: var(--ink); border: 1px solid var(--line); background: var(--card); padding: 2px 9px; font-size: 0.74rem; }
.stage-pill.final { border-color: var(--gold); color: var(--gold-ink); background: #FDF7E6; }
.mc-score { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.mc-teams { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; }
.mc-num { font-size: 1.2rem; font-weight: 800; color: var(--teal); white-space: nowrap; }
.mc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 0.82rem; color: var(--muted); }
.mc-kpis strong { display: block; color: var(--ink); font-size: 0.92rem; margin-top: 2px; }

/* 경기 상세 : 매거진 스탯 스트립 (상단 1.5px 룰러 + 세로 구분선) */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); background: var(--surface); margin: 28px 0 36px; }
.stat-cell { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: none; }
.stat-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.stat-val { font-size: 1.18rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.stat-sub { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* 중앙 정렬 KPI 비교 바 */
.kpi-section { margin: 36px 0 44px; }
.kpi-list { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); padding: 24px 28px; }
.kpi-legend { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; font-weight: 800; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.leg-team { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; display: inline-block; }
.dot.t1 { background: var(--teal); }
.dot.t2 { background: var(--vermilion); }

.kpi-row { margin-bottom: 16px; }
.kpi-row:last-child { margin-bottom: 0; }
.kpi-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; font-size: 0.88rem; margin-bottom: 6px; }
.kpi-v1 { font-weight: 800; color: var(--teal); text-align: left; }
.kpi-name { font-weight: 700; color: var(--ink); text-align: center; padding: 0 12px; }
.kpi-v2 { font-weight: 800; color: var(--vermilion); text-align: right; }
.kpi-bar { display: flex; height: 10px; background: var(--card); overflow: hidden; }
.kpi-fill1 { background: var(--teal); }
.kpi-fill2 { background: var(--vermilion); }

/* 표 스타일 (세트 흐름 · 8강 8팀 리더보드 · 용어 사전) */
.table-wrap { background: var(--surface); border: 1px solid var(--line); overflow-x: auto; margin-bottom: 36px; }
table.ed-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.ed-table th { text-align: left; padding: 12px 16px; border-bottom: 1.5px solid var(--ink); color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; background: var(--card); }
table.ed-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
table.ed-table tr:last-child td { border-bottom: none; }
.win-t1 { color: var(--teal); font-weight: 800; }
.win-t2 { color: var(--vermilion); font-weight: 800; }

/* 차트 2열 갤러리 + 풀폭 피처드 */
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.chart-card { background: var(--surface); border: 1px solid var(--line); padding: 14px; }
.chart-card img { width: 100%; aspect-ratio: 16 / 10.2; object-fit: contain; display: block; background: var(--chart-bg); }
.chart-card.full { margin-bottom: 32px; }
.chart-card.full img { aspect-ratio: auto; max-height: 640px; margin: 0 auto; }
.chart-cap { font-size: 0.84rem; font-weight: 700; color: var(--muted); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }

/* 인사이트 & 아티클 블록 */
.insight-box { background: var(--surface-tint); border: 1px solid var(--line); border-left: 3px solid var(--teal); padding: 22px 26px; margin-bottom: 48px; }
.insight-box h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 800; color: var(--teal); }
.insight-box ul { margin: 0; padding-left: 18px; }
.insight-box li { margin-bottom: 8px; color: var(--ink-soft); }

.article-sec { background: var(--surface); border: 1px solid var(--line); padding: 30px 34px; margin: 24px 0; }
.article-sec h2 { margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.article-sec h3 { margin: 20px 0 8px; font-size: 1.02rem; font-weight: 800; color: var(--teal); }
.article-sec p { margin: 0 0 12px; color: var(--ink-soft); }

/* 푸터 */
.footer { border-top: 1px solid var(--line); background: var(--surface-tint); padding: 28px 0 36px; margin-top: 56px; font-size: 0.84rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 860px) {
  .featured-grid, .match-list, .chart-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .topbar-inner { flex-direction: column; height: auto; padding: 12px 0; align-items: flex-start; }
  .nav { gap: 14px; flex-wrap: wrap; }
}
