/*
Theme Name: MoneyByte v4
Theme URI: https://moneybitee.com
Author: MoneyByte
Author URI: https://www.youtube.com/@Moneybitee2
Description: 머니바이트 v4 디자인 시스템 — Bloomberg/Stratechery 스타일의 다크 매거진 워드프레스 테마. 코발트(#1354D4) + 골드(#E8A020) 시그니처.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moneybyte-v4
Tags: dark, blog, magazine, custom-colors, custom-menu, featured-images, threaded-comments
*/
/* ===================================================================
   머니바이트 (MoneyByte) — Tistory Skin v4 (2026-05-27)
   Design: Dark Magazine (Bloomberg/Stratechery inspired)
   Brand: #1354D4 cobalt + #E8A020 gold (MoneyByte v3.2 시그니처)

   v4 변경 사항 (28-case + Opus 25번 reference 통합):
   - 베이스: #0a0a0d → #080C18 (Opus 25번 푸르스름한 다크)
   - 액센트: #ff7d00 오렌지 → #1354D4 코발트 (MoneyByte v3.2 일치)
   - 신규 보조 액센트: #E8A020 골드 (Premium 라벨, divider, section-num)
   - 카테고리 A1 팔레트: 매크로 #fcb854 (톤다운) / 반도체 #3182F6 / 첨단기술 #10b981 / 반려동물 #ec4899
   - 폰트 4계열 확장: + IBM Plex Sans KR 300 (lead/deck) + Inter (숫자) + Plus Jakarta Sans (브랜드 영문)
   - 데이터 viz 6색 팔레트 추가 (Opus 통합)
   =================================================================== */

/* ---------- 1. Design Tokens (v4) ---------- */
:root {
  /* Surfaces — Opus 25번 베이스 채택 */
  --bg: #080C18;
  --bg-elevated: #0F1428;
  --bg-elevated-hover: #161B33;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.07);
  --overlay: rgba(8, 12, 24, 0.85);

  /* Borders */
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(19, 84, 212, 0.4);

  /* Text — Opus 25번 흰색 채택 */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.86);
  --text-tertiary: rgba(255, 255, 255, 0.46);
  --text-muted: rgba(255, 255, 255, 0.30);
  --text-on-accent: #080C18;

  /* Brand — 코발트 (MoneyByte v3.2 시그니처) */
  --accent: #1354D4;
  --accent-hover: #1E63E0;
  --accent-soft: rgba(19, 84, 212, 0.12);
  --accent-glow: rgba(19, 84, 212, 0.6);

  /* Gold — Premium 보조 액센트 (Opus 25번) */
  --gold: #E8A020;
  --gold-soft: rgba(232, 160, 32, 0.12);
  --gold-glow: rgba(232, 160, 32, 0.4);

  /* Categories — A1 팔레트 (28-case 확정) */
  --cat-macro: #fcb854;   /* amber-peach (톤다운, 코랄 같은 은은함) */
  --cat-semi:  #3182F6;   /* toss blue */
  --cat-tech:  #10b981;   /* emerald */
  --cat-pet:   #ec4899;   /* hot pink */
  --cat-default: #a8a8b3;

  /* Semantic — Opus 25/26번 통합 */
  --success: #0E9E7A;
  --positive: #0E9E7A;
  --negative: #C4547A;
  --warning: #F58C50;
  --warn:    #F58C50;
  --danger:  #E85C3C;
  --safe:    #0E9E7A;
  --info:    #1354D4;

  /* Data Viz Palette — 25/19/20번 통합 (차트, 그래프, SWOT) */
  --dv-1: #1354D4;   /* 코발트 메인 */
  --dv-2: #7040C0;   /* 바이올렛 */
  --dv-3: #C4547A;   /* 크림슨 */
  --dv-4: #0E9E7A;   /* 에메랄드 */
  --dv-5: #E8A020;   /* 골드 */
  --dv-6: #4B38C0;   /* 인디고 */

  /* Spacing (8px scale) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Typography — v4 5계열 */
  --font-sans: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Pretendard Variable', 'Pretendard', sans-serif;            /* 헤드라인 */
  --font-body: 'Noto Sans KR', 'Pretendard Variable', 'Pretendard', sans-serif; /* 본문 (가독성 ↑) */
  --font-sub: 'IBM Plex Sans KR', 'Noto Sans KR', sans-serif;                /* lead/deck Light 300 (사용자 검증) */
  --font-num: 'Inter', 'Pretendard Variable', sans-serif;                     /* 숫자 */
  --font-label: 'Plus Jakarta Sans', 'Inter', sans-serif;                     /* 브랜드/영문 라벨 */
  --font-mono: 'JetBrains Mono', 'D2Coding', ui-monospace, monospace;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 40px;
  --text-5xl: 56px;
  --text-6xl: 72px;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.55;
  --lh-relaxed: 1.75;

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 720px;
  --header-h: 64px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 32px rgba(19, 84, 212, 0.15);

  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base);
}

a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- 3. Layout Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--s-9);
}

.section--tight {
  padding-block: var(--s-7);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: rgba(8, 12, 24, 0.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

/* Logo image (Tistory 파일 업로드 후 src 교체) */
.site-logo__img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--r-sm);
  display: block;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--text-on-accent);
  border-radius: var(--r-sm);
  font-weight: 900;
  font-size: var(--text-lg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.site-nav__link {
  padding: var(--s-2) var(--s-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}

.site-nav__link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.site-nav__link--active {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.icon-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}

.mobile-menu-btn {
  display: none;
}

/* Search form (헤더 안 토글 — data-open 으로 show/hide) */
.search-form {
  display: none;
  margin: 0 0 var(--s-3);
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  gap: var(--s-2);
}

.search-form[data-open="true"] {
  display: flex;
}

.search-form input {
  flex: 1;
  padding: var(--s-2) var(--s-4);
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
}

.search-form input::placeholder {
  color: var(--text-tertiary);
}

.search-form button {
  padding: var(--s-2) var(--s-4);
  font-size: var(--text-sm);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.mobile-drawer[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--s-7) var(--s-5);
  gap: var(--s-3);
}
.mobile-drawer__close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
}
.mobile-drawer__link {
  font-size: var(--text-2xl);
  font-weight: 700;
  padding: var(--s-3) 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

/* ---------- 5. Hero (video + featured) ---------- */
.hero {
  padding-block: var(--s-8) var(--s-9);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(19, 84, 212, 0.18), transparent 60%),
    radial-gradient(600px 500px at 90% 30%, rgba(232, 160, 32, 0.08), transparent 70%);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: var(--lh-tight);
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: var(--lh-relaxed);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-6);
  margin-top: var(--s-7);
}

.hero__video {
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}

.hero__video iframe,
.hero__video video {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero__video__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.hero__featured {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.featured-card {
  display: flex;
  align-items: stretch;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-base);
}

.featured-card:hover {
  background: var(--bg-elevated-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.featured-card__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-tertiary);
  line-height: 1;
  min-width: 28px;
}

.featured-card__body {
  flex: 1;
  min-width: 0;
}

.featured-card__cat {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-2);
}

.featured-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 6. Category Filter ---------- */
.category-filter {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  overflow-x: auto;
  padding-block: var(--s-4);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.category-filter::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex-shrink: 0;
  padding: var(--s-2) var(--s-4);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.category-chip:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.category-chip[aria-selected="true"] {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
  font-weight: 600;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

.section-heading__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-heading__meta {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ---------- 7. Post Grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-base);
}

.post-card:hover {
  background: var(--bg-elevated-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}

.post-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 2px var(--s-2);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-tag[data-cat="매크로"]    { background: rgba(252,184,84,0.12); color: var(--cat-macro); }
.cat-tag[data-cat="반도체"]    { background: rgba(49,130,246,0.12); color: var(--cat-semi); }
.cat-tag[data-cat="첨단기술"]   { background: rgba(16,185,129,0.12); color: var(--cat-tech); }
.cat-tag[data-cat="국내 첨단 기술"] { background: rgba(16,185,129,0.12); color: var(--cat-tech); }
.cat-tag[data-cat="반려동물"]   { background: rgba(236,72,153,0.12); color: var(--cat-pet); }

.post-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Load more */
.load-more {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: var(--s-7) auto 0;
  padding: var(--s-4) var(--s-5);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--t-base);
}

.load-more:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

/* ---------- 8. Subscribe ---------- */
.subscribe {
  padding-block: var(--s-9);
  background:
    radial-gradient(800px 300px at 50% 100%, rgba(19, 84, 212, 0.08), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.subscribe__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.subscribe__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, var(--text-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-3);
}

.subscribe__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-6);
}

.subscribe__form {
  display: flex;
  gap: var(--s-2);
  max-width: 480px;
  margin-inline: auto;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  transition: border-color var(--t-base);
}

.subscribe__form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.subscribe__form input {
  flex: 1;
  padding: var(--s-3) var(--s-4);
  background: transparent;
  border: 0;
  outline: none;
  font-size: var(--text-base);
}

.subscribe__form input::placeholder {
  color: var(--text-tertiary);
}

.btn-primary {
  padding: var(--s-3) var(--s-5);
  background: var(--accent);
  color: var(--text-on-accent);
  border: 0;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all var(--t-fast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.subscribe__hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--s-3);
}

/* ---------- 9. Footer ---------- */
.site-footer {
  padding-block: var(--s-7);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.site-footer__links {
  display: flex;
  gap: var(--s-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.site-footer__copyright {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.site-footer__social {
  display: flex;
  gap: var(--s-2);
}

.site-footer__social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.site-footer__social a:hover {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}

/* ===================================================================
   Article / Post Page
   =================================================================== */
.article {
  padding-block: var(--s-7) var(--s-9);
}

.article__header {
  max-width: var(--container-narrow);
  margin-inline: auto;
  margin-bottom: var(--s-7);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--s-4);
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, var(--text-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--s-4);
}

.article__excerpt {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  padding-left: var(--s-4);
  border-left: 3px solid var(--accent);
}

.article__hero {
  max-width: var(--container-max);
  margin-inline: auto;
  margin-bottom: var(--s-7);
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.article__body {
  max-width: var(--container-narrow);
  margin-inline: auto;
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
}

.article__body > * + * {
  margin-top: var(--s-5);
}

.article__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: var(--s-8);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}

.article__body h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-top: var(--s-7);
  margin-bottom: var(--s-2);
  color: var(--text-primary);
  position: relative;
  padding-left: var(--s-3);
}
.article__body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  bottom: 0.2em;
  width: 3px;
  background: var(--accent);
  border-radius: var(--r-pill);
}

.article__body p {
  color: var(--text-primary);
}

.article__body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-border);
  transition: all var(--t-fast);
}

.article__body a:hover {
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}

.article__body ul,
.article__body ol {
  padding-left: var(--s-5);
}

.article__body li {
  margin-bottom: var(--s-2);
}

.article__body img {
  border-radius: var(--r-md);
  margin-block: var(--s-5);
}

.article__body hr {
  margin-block: var(--s-7);
  border: 0;
  border-top: 1px solid var(--border);
}

/* Article components */
.callout {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-left: 4px solid var(--accent);
}

.callout--info { border-left-color: var(--info); }
.callout--warning { border-left-color: var(--warning); }
.callout--success { border-left-color: var(--success); }
.callout--danger { border-left-color: var(--danger); }

.callout__icon {
  flex-shrink: 0;
  font-size: var(--text-2xl);
}

.callout__body {
  flex: 1;
}

.callout__title {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--s-2);
  color: var(--accent);
}

.callout--info .callout__title { color: var(--info); }
.callout--warning .callout__title { color: var(--warning); }
.callout--success .callout__title { color: var(--success); }
.callout--danger .callout__title { color: var(--danger); }

.callout__body p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0;
}

/* Glossary card (legacy compat — for posts that have this) */
.glossary-card {
  display: block;
  padding: var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  border-radius: var(--r-md);
}

.glossary-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--info);
  margin: 0 0 var(--s-3);
}

.glossary-card > div {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.blockquote-style {
  margin: 0;
  padding: var(--s-5) var(--s-6);
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
}

.blockquote-style cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  font-style: normal;
  color: var(--text-tertiary);
}

.blockquote-style cite::before {
  content: "— ";
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3);
  margin: var(--s-6) 0;
}

.kpi-card {
  padding: var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: left;
}

.kpi-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-2);
}

.kpi-card__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.kpi-card__delta {
  margin-top: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.kpi-card__delta--up { color: var(--success); }
.kpi-card__delta--down { color: var(--danger); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
  margin: var(--s-6) 0;
}

.data-table thead th {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-strong);
}

.data-table tbody td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
  background: var(--bg-elevated);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.chart-wrap {
  margin: var(--s-6) 0;
  padding: var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.chart-wrap__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--s-4);
}

.chart-wrap__caption {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--s-3);
  line-height: var(--lh-relaxed);
}

/* Video embed */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: var(--s-6) 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA at article end */
.article__cta {
  max-width: var(--container-narrow);
  margin: var(--s-9) auto 0;
  padding: var(--s-7);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(19, 84, 212, 0.1), transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  text-align: center;
}

.article__cta__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-3);
}

.article__cta__desc {
  color: var(--text-secondary);
  margin-bottom: var(--s-5);
}

.article__cta__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: var(--s-3) var(--s-5);
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: all var(--t-fast);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent);
}

/* Related posts */
.related-posts {
  max-width: var(--container-max);
  margin: var(--s-9) auto 0;
  padding-inline: var(--s-5);
}

.related-posts__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-5);
}

/* ===================================================================
   v4 신규 컴포넌트 (2026-05-27 — 28-case 학습 + Opus 25번 기준 통합)
   각 컴포넌트는 글 HTML에서 클래스로 사용. 인라인 <style> 불필요.
   =================================================================== */

/* ---------- v4.1 Full-screen Hero (메인 페이지 표지) ---------- */
.hero-fullscreen {
  min-height: 100vh;
  padding: var(--s-7) var(--s-5);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(19, 84, 212, 0.22), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(232, 160, 32, 0.10), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.hero-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-fullscreen__inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-fullscreen__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-fullscreen__brand {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.hero-fullscreen__brand .by {
  color: #FFFFFF;   /* 흰색 — 다크 배경에서 가장 잘 보임 */
}

.hero-fullscreen__brand .premium {
  margin-left: 16px;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--gold), #FFE665);
  color: #0A0A0A;
  border-radius: var(--r-pill);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 800;
}

.hero-fullscreen__meta {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.16em;
}

.hero-fullscreen__center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 120px 0;
}

.hero-fullscreen__kicker {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.32em;
  font-weight: 700;
}

.hero-fullscreen__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-top: 28px;
  max-width: 1000px;
}

.hero-fullscreen__title .hl {
  /* 밝은 코발트 그라데이션 — 어두운 배경에서도 또렷하게 */
  background: linear-gradient(135deg, #4B85F0 0%, #6FA0F8 50%, #88B0FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(75, 133, 240, 0.4);
}

/* Edge tagline (날카로운 차별화 한 줄 — 골드 강조) */
.hero-fullscreen__edge {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  line-height: 1.5;
}

.hero-fullscreen__deck {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: 24px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: 36px;
  max-width: 740px;
}

.hero-fullscreen__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: var(--s-7);
  border-top: 1px solid var(--border);
}

.hero-fullscreen__byline {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.hero-fullscreen__byline strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-fullscreen__stats {
  display: flex;
  gap: var(--s-7);
}

.hero-fullscreen__stat .lb {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.hero-fullscreen__stat .v {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

.hero-fullscreen__stat .v.pos { color: var(--positive); }
.hero-fullscreen__stat .v.gold { color: var(--gold); }
.hero-fullscreen__stat .v.neg { color: var(--negative); }

/* ---------- v4.2 Huge Stat Feature (128px 숫자 강조) ---------- */
.stat-feature {
  margin-top: var(--s-7);
  padding: 56px;
  background: linear-gradient(135deg, rgba(19, 84, 212, 0.10), rgba(232, 160, 32, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
}

.stat-feature__label {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-weight: 700;
}

.stat-feature__big {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 128px);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: 14px;
  letter-spacing: -0.05em;
}

.stat-feature__desc {
  font-family: var(--font-sub);
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 520px;
  font-weight: 300;
}

/* ---------- v4.3 Section Number (골드 라벨) ---------- */
.section-num {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-top: var(--s-8);
  text-transform: uppercase;
}

/* ---------- v4.4 Gold Divider Line ---------- */
.divider-line {
  display: block;
  margin: var(--s-9) auto;
  width: 80px;
  height: 1px;
  background: var(--gold);
  border: 0;
}

/* ---------- v4.5 Scenario Trio (Base / Adverse / Severe) ---------- */
.scenarios {
  margin: var(--s-7) 0;
}

.scenarios__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
}

.scenario-row {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  gap: 20px;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-top: 14px;
  align-items: center;
}

.scenario-row__badge {
  padding: 8px 14px;
  text-align: center;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--r-sm);
  letter-spacing: 0.06em;
  background: var(--surface);
  border: 1px solid;
}

.scenario-row__badge--base { border-color: var(--safe); color: var(--safe); }
.scenario-row__badge--adv { border-color: var(--warn); color: var(--warn); }
.scenario-row__badge--sev { border-color: var(--danger); color: var(--danger); }

.scenario-row__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.scenario-row__desc {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.6;
}

.scenario-row__prob {
  text-align: right;
}

.scenario-row__prob .lb {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.scenario-row__prob .v {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 24px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.scenario-row__prob .v--base { color: var(--safe); }
.scenario-row__prob .v--adv { color: var(--warn); }
.scenario-row__prob .v--sev { color: var(--danger); }

/* ---------- v4.6 Risk Indicator Grid (9개 — 위험 레벨 색 코딩) ---------- */
.risk-indicators {
  margin: var(--s-7) 0;
}

.risk-indicators__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-5);
}

.risk-indicators__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.risk-card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.risk-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.risk-card__name {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.risk-card__level {
  padding: 2px 10px;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 4px;
  color: #FFFFFF;
}

.risk-card__level--danger { background: var(--danger); }
.risk-card__level--warn { background: var(--warn); }
.risk-card__level--safe { background: var(--safe); }

.risk-card__value {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  margin-top: 14px;
}

.risk-card__value--danger { color: var(--danger); }
.risk-card__value--warn { color: var(--warn); }
.risk-card__value--safe { color: var(--safe); }

.risk-card__change {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.risk-card__desc {
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 12px;
  line-height: 1.6;
  font-weight: 300;
}

/* ---------- v4.7 Action Needed (필요한 조치 카드) ---------- */
.action-needed {
  margin: var(--s-7) 0;
  padding: var(--s-6);
  background: linear-gradient(135deg, rgba(232, 92, 60, 0.18), rgba(196, 84, 122, 0.10));
  border-left: 6px solid var(--danger);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.action-needed__label {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--danger);
  letter-spacing: 0.2em;
  font-weight: 800;
}

.action-needed__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  margin-top: 8px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.action-needed__list {
  list-style: none;
  margin-top: var(--s-4);
  padding: 0;
}

.action-needed__list li {
  font-family: var(--font-sub);
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0 8px 22px;
  position: relative;
  line-height: 1.6;
  font-weight: 300;
}

.action-needed__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 2px;
  background: var(--danger);
}

.action-needed__list li strong {
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ---------- v4.8 SWOT Pentagon (오각형 SWOT — Opus 26번) ---------- */
.swot-pentagon {
  margin: var(--s-7) 0;
  padding: var(--s-7);
  background: linear-gradient(135deg, rgba(19, 84, 212, 0.10), rgba(232, 160, 32, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.swot-pentagon__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

.swot-pentagon__sub {
  font-family: var(--font-sub);
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-weight: 300;
}

.swot-pentagon__grid {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

.swot-pentagon__svg svg {
  width: 100%;
  height: auto;
  max-width: 380px;
  display: block;
  margin: 0 auto;
}

.swot-pentagon__legend .item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.swot-pentagon__legend .item:last-child { border-bottom: none; }

.swot-pentagon__legend .item__name {
  font-size: 14px;
  font-weight: 600;
}

.swot-pentagon__legend .item__score {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.swot-pentagon__legend .item--danger .item__score { color: var(--danger); }
.swot-pentagon__legend .item--warn .item__score { color: var(--warn); }
.swot-pentagon__legend .item--safe .item__score { color: var(--safe); }

/* ---------- v4.9 Timeline Natural (Sonnet 26번 — 20px 동그라미 + 1px 세로선) ---------- */
.timeline-natural {
  margin: var(--s-7) 0;
}

.timeline-natural__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-5);
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::before { display: none; }

.timeline-item__dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.timeline-item__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-item__date {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline-item__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.timeline-item__body {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

.timeline-item__body strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- v4.10 Contagion Diagram (전염 다이어그램 — Sonnet 26번) ---------- */
.contagion {
  margin: var(--s-7) 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-6);
}

.contagion__source {
  text-align: center;
  margin-bottom: var(--s-5);
}

.contagion__source-box {
  display: inline-block;
  background: rgba(19, 84, 212, 0.1);
  border: 2px solid var(--accent);
  padding: 14px 24px;
}

.contagion__source-label {
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contagion__source-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.contagion__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contagion__row {
  display: flex;
  align-items: center;
  gap: 0;
}

.contagion__node {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 16px 14px;
  text-align: center;
}

.contagion__node-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contagion__node-sub {
  font-family: var(--font-sub);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.4;
  font-weight: 300;
}

.contagion__node--danger { border-color: var(--danger); }
.contagion__node--warn { border-color: var(--warn); }
.contagion__node--positive { border-color: var(--positive); }

.contagion__arrow {
  font-family: var(--font-num);
  color: var(--accent);
  font-size: 1rem;
  padding: 0 8px;
  flex-shrink: 0;
}

/* ---------- v4.11 Author Card + Disclaimer (Opus 19번) ---------- */
.author-card {
  margin-top: var(--s-7);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  gap: 18px;
  align-items: center;
}

.author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 24px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.author-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
}

.author-card__role {
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 300;
}

.author-card__bio {
  font-family: var(--font-sub);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.5;
  font-weight: 300;
}

.disclaimer {
  margin-top: var(--s-4);
  padding: 14px 18px;
  background: rgba(232, 160, 32, 0.08);
  border-left: 3px solid var(--gold);
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
  font-weight: 300;
}

.disclaimer strong {
  color: var(--gold);
}

/* ---------- v4.12 Perspective Header (View 01 — Opus 19번) ---------- */
.perspective-header {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.025em;
  margin-top: var(--s-8);
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.perspective-header__num {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.14em;
  flex-shrink: 0;
}

/* ---------- v4.13 Contrast Box (대비 주장 강조 — Opus 19번) ---------- */
.contrast-box {
  margin-top: var(--s-6);
  padding: 28px;
  background: linear-gradient(135deg, rgba(19, 84, 212, 0.12), rgba(232, 160, 32, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.contrast-box__label {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-weight: 700;
}

.contrast-box__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
  margin-top: 10px;
  letter-spacing: -0.02em;
}

/* ---------- v4.14 Closing Argument (결론 — Opus 19번) ---------- */
.closing-argument {
  margin-top: var(--s-9);
  padding: var(--s-6);
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}

.closing-argument__label {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 800;
}

.closing-argument__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  margin-top: 14px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.closing-argument__body {
  font-family: var(--font-sub);
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 18px;
  line-height: 1.7;
  font-weight: 300;
}

.closing-argument__body strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- v4.15 Chart Commentary (차트 직후 결론 — Opus 20번) ---------- */
.chart-commentary {
  margin: var(--s-6) 0;
  padding: var(--s-5);
  background: var(--accent-soft);
  border-radius: var(--r-sm);
}

.chart-commentary__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

.chart-commentary__list {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
}

.chart-commentary__list li {
  font-family: var(--font-sub);
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.7;
  font-weight: 300;
}

.chart-commentary__list li strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- v4.16 First Letter Accent (첫 글자 색 변경 — Opus 13번) ---------- */
.first-letter-accent::first-letter {
  color: var(--accent);
  font-weight: 900;
}

/* ---------- v4.17 Highlight (어두운 글자 + 옐로 배경) ---------- */
.highlight {
  background: var(--gold);
  color: #1a1305;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

/* ---------- v4 Responsive — 신규 컴포넌트 ---------- */
@media (max-width: 1024px) {
  .swot-pentagon__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .risk-indicators__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-fullscreen__center { padding: 60px 0; }
  .hero-fullscreen__title { font-size: clamp(36px, 9vw, 60px); }
  .hero-fullscreen__deck { font-size: 18px; }
  .hero-fullscreen__stats { gap: var(--s-4); flex-wrap: wrap; }
  .stat-feature { padding: var(--s-5); }
  .scenario-row { grid-template-columns: 1fr; }
  .scenario-row__prob { text-align: left; }
  .risk-indicators__grid { grid-template-columns: 1fr; }
  .contagion__row { flex-wrap: wrap; gap: 12px; }
  .contagion__arrow { display: none; }
  .perspective-header { font-size: 22px; flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* ===================================================================
   Reading progress bar
   =================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 50ms linear;
}

/* ===================================================================
   Responsive — Mobile First adjustments
   =================================================================== */
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__featured {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hero__featured::-webkit-scrollbar { display: none; }

  .hero__featured .featured-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
    --s-9: 64px;
  }

  .container {
    padding-inline: var(--s-4);
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .hero {
    padding-block: var(--s-6) var(--s-7);
  }

  .hero__title {
    font-size: clamp(28px, 7vw, var(--text-4xl));
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .subscribe__form {
    flex-direction: column;
    border-radius: var(--r-md);
    padding: var(--s-2);
  }

  .subscribe__form input {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
  }

  .article__title {
    font-size: clamp(24px, 6vw, var(--text-3xl));
  }

  .article__body {
    font-size: var(--text-base);
  }

  .article__body h2 {
    font-size: var(--text-2xl);
    margin-top: var(--s-7);
  }

  .article__cta {
    padding: var(--s-5);
  }
}

@media (max-width: 480px) {
  .featured-card {
    padding: var(--s-3);
  }
  .featured-card__num {
    font-size: var(--text-2xl);
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================================================================
   Utility classes
   =================================================================== */
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.font-display { font-family: var(--font-display); }
.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;
}

/* Tistory-specific overrides — kill the auto-enhancer if it injects */
[data-glossary-enhanced="true"]:not(.glossary-card-explicit) {
  /* if a future enhancer tries to wrap the whole body, neutralize it */
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  padding: 0 !important;
}

