/* @theme light-ivory-theme */

/* =========================================
   Light Ivory Marp Theme - Minimalist
   =========================================

   [사용법]
   마크다운 frontmatter에서:
   ---
   marp: true
   theme: light-ivory-theme
   ---

   [사용 가능한 슬라이드 클래스] <!-- _class: 클래스명 -->
   - title-slide : 타이틀 슬라이드 (아이보리 배경, 중앙 정렬)
   - balanced    : 수직 중앙 정렬
   - value-slide : 상단 설명 + 하단 3열 카드 구조
   - roadmap-slide : 단계별 로드맵 (화살표 포함)

   [레이아웃 클래스]
   - .col-2 : 2열 그리드
   - .col-3 : 3열 그리드
   - .layout-sidebar-left : 좌측 사이드바 (3.5:6.5)

   [박스/카드 클래스]
   - .card         : 기본 흰색 카드 (그림자)
   - .card-step    : 단계별 카드 (step-badge와 함께 사용)
   - .card-country : 상단 컬러 보더 카드
   - .paradigm-box : 좌측 녹색 보더 박스
   - .box-point    : 강조 포인트 박스 (연녹색 배경)
   - .compare-box  : 비교 카드 (.active로 강조)

   [기타 클래스]
   - .step-badge   : 단계 뱃지 (Step 01, Step 02...)
   - .box-tag      : 태그 뱃지 (.accent로 녹색)
   - .formula-display : 수식/강조 표시 영역
   - ul.check-list : 체크 리스트

   [테마 특징]
   - 밝은 아이보리 배경 (#FDFCFA)
   - 토프/그레이지 포인트 컬러 (#9A9385)
   - 모던하고 차분한 단색 조합
   - 심플한 전체 화면 구조
   - 장시간 문서 열람 시 눈의 피로 최소화

   ========================================= */

/* -----------------------------------------
   1. 기본 설정 (Ivory & Minimalist Theme)
   ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --bg-main: #FDFCFA;       /* 밝은 아이보리 배경 */
  --bg-card: #FFFFFF;       /* 카드용 화이트 */
  --text-main: #3D3D3D;     /* 메인 텍스트 (차콜) */
  --text-dim: #8A8A8A;      /* 보조 텍스트 (그레이) */
  --accent: #9A9385;        /* 포인트 컬러 1 (토프/그레이지) */
  --accent-dark: #6B665C;   /* 포인트 컬러 2 (다크 토프) */
  --accent-light: #E8E6E1;  /* 연한 그레이지 */
  --border-light: #EDEBE8;

  --font-main: 'Noto Sans KR', sans-serif;
  --font-head: 'Poppins', sans-serif;
}

section {
  font-family: var(--font-main);
  padding: 50px 70px;
  font-size: 20px;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* 하단 라인 제거 - 심플한 전체 화면 구조 */

/* -----------------------------------------
   2. 타이포그래피 (High Readability)
   ----------------------------------------- */
h1, h2, h3, h4 { color: var(--accent-dark); font-family: var(--font-head); margin-top: 0; }
h1 { font-size: 50px; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 40px; font-weight: 700; border-left: 8px solid var(--accent); padding-left: 20px; margin-bottom: 25px; }
h3 { font-size: 28px; font-weight: 600; color: var(--accent); margin-bottom: 15px; }
h4 { font-size: 22px; font-weight: 600; color: var(--text-main); margin-bottom: 10px; }
strong { color: var(--accent-dark); font-weight: 700; }

/* -----------------------------------------
   3. 레이아웃 시스템
   ----------------------------------------- */
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.col-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.layout-sidebar-left { display: grid; grid-template-columns: 3.5fr 6.5fr; gap: 40px; align-items: start; }

section.balanced { justify-content: center; }

/* value-slide */
section.value-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}
section.value-slide h2 { margin: 0; }
section.value-slide .col-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
section.value-slide .col-3 .card {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 25px;
  font-size: 0.9em;
}
section.value-slide .col-3 .card strong {
  font-size: 1.2em;
  margin-bottom: 15px;
  display: block;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

/* -----------------------------------------
   4. 박스 스타일 (Modern White Card)
   ----------------------------------------- */
.card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border-light);
  height: fit-content;
}

.paradigm-box {
  border-left: 10px solid var(--accent);
  padding: 25px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border-light);
  border-left-width: 10px;
}

.box-point {
  border-left: 10px solid var(--accent);
  padding: 20px 25px;
  background: var(--accent-light);
  border-radius: 4px 12px 12px 4px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.card-country {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-top: 5px solid;
  height: 100%;
}

/* 비교 박스 */
.compare-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 25px 20px;
  position: relative;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.compare-box.active {
  border: 2px solid var(--accent);
  background-color: #FFFDF8;
  box-shadow: 0 10px 25px rgba(139, 115, 85, 0.12);
}

.box-tag {
  background: var(--accent-dark);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 15px;
}
.box-tag.accent { background: var(--accent); color: white; }

.formula-display {
  background: var(--accent-light);
  border-radius: 8px;
  color: var(--accent-dark);
  padding: 10px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 15px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* 단계별 로드맵 카드 */
.card-step {
  background: var(--bg-card);
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card-step h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--accent-dark); }
.card-step .step-badge {
  background: var(--accent-dark); color: white; padding: 4px 16px;
  border-radius: 20px; font-size: 0.75rem; font-weight: bold;
  display: inline-block; margin-bottom: 15px;
}

/* roadmap-slide 전용 */
section.roadmap-slide .col-3 {
  align-items: stretch;
  height: auto;
}
section.roadmap-slide .col-3 .card-step:not(:last-child)::after {
  content: '▶';
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  font-size: 24px;
  z-index: 10;
}

/* -----------------------------------------
   5. 리스트 & 표
   ----------------------------------------- */
ul.check-list { list-style: none; padding: 0; }
ul.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text-main); }
ul.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  font-size: 18px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

th {
  background-color: var(--accent-dark);
  color: white !important;
  font-weight: 600;
  padding: 18px;
  border-bottom: none;
}

td {
  padding: 15px;
  border-bottom: 1px solid var(--border-light);
  background-color: white;
}

tr:nth-child(even) td { background-color: #FAF8F5; }

/* -----------------------------------------
   6. 타이틀 슬라이드
   ----------------------------------------- */
section.title-slide {
  background-color: var(--bg-main);
  justify-content: center;
  align-items: center;
  text-align: center;
}
section.title-slide h1 { font-size: 64px; color: var(--accent-dark); margin-bottom: 10px; }
