/* CI — Figma Design › /ci (Desktop 111:10184 · Tablet 123:10924 · Mobile 123:11574)
   견본 색(--c 배경, --t 글자)은 브랜드 원색 그대로 보여 주는 자료라 토큰 대신 값 사용 */
.ci { padding: 0 var(--layout-margin-x) var(--space-128); }

/* 섹션: 왼쪽 설명(480) + 오른쪽 견본 판(Stage) */
.ci-section { display: flex; gap: var(--space-64); padding: var(--space-80) 0; } /* 섹션 사이 선 없음 — 2026-11-24 */
.ci-intro { flex: 0 1 480px; display: flex; flex-direction: column; gap: var(--space-32); }
.ci-intro__over { font-weight: 600; font-size: 16px; line-height: 24px; text-transform: uppercase; color: var(--color-text-secondary); }
.ci-intro__title { margin-top: calc(-1 * var(--space-32)); font-weight: 700; font-size: 24px; line-height: 32px; text-transform: uppercase; color: var(--color-text-strong); }
.ci-intro__text { font-size: 16px; line-height: 24px; color: var(--color-text-secondary); }
.ci-stage {
  flex: 1 1 768px; min-width: 0; display: flex; justify-content: center; align-items: center;
  padding: var(--space-40); background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius-20);
}

/* 견본 칸 */
.ci-swatch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-28); }
.ci-swatch figcaption { font-weight: 600; font-size: 14px; line-height: 1.6; text-transform: uppercase; color: #c5c5c5; }
.ci-swatch--light { background: #ffffff; }
.ci-swatch--dark { background: #0b0b0b; box-shadow: inset 0 0 0 1px #565656; }
.ci-logos { display: flex; flex-direction: column; width: 100%; max-width: 660px; }
.ci-logos .ci-swatch { padding: 96px var(--space-24); }
.ci-logos img { width: 260px; }
.ci-emblems { display: flex; width: 100%; max-width: 660px; }
.ci-emblems .ci-swatch { flex: 1; min-height: 750px; gap: var(--space-80); padding: var(--space-128) var(--space-24); }
.ci-emblems img { width: 180px; }
.ci-doubles { display: flex; width: 100%; max-width: 700px; }
.ci-doubles .ci-swatch { flex: 1; min-height: 750px; gap: var(--space-40); padding: 0 var(--space-24); }
.ci-doubles img { width: 150px; }

/* 색상 */
.ci-colors { display: flex; flex-direction: column; gap: var(--space-12); width: 100%; max-width: 680px; }
.ci-colors__row--secondary { margin-bottom: 0; }
.ci-colors__row--primary { margin-bottom: calc(var(--space-28) - var(--space-12)); }
.ci-label { font-weight: 600; font-size: 18px; line-height: 18px; text-transform: uppercase; color: #c5c5c5; }
.ci-label--center { text-align: center; }
.ci-colors__row { display: flex; }
.ci-color { flex: 1; display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-40) var(--space-20); background: var(--c); color: var(--t); }
.ci-colors__row--primary .ci-color { padding-block: var(--space-60); }
.ci-color--outlined { box-shadow: inset 0 0 0 1px #565656; }
.ci-color__name { font-weight: 600; font-size: 20px; line-height: 24px; }
.ci-color__val { font-size: 12px; line-height: 16px; text-transform: uppercase; }

/* 색상 변형 예시 */
.ci-spectrum { display: flex; flex-direction: column; gap: var(--space-24); padding: var(--space-80) 0; }
.ci-examples { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: calc(var(--space-96) - var(--space-24)); }
.ci-example { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-20); padding: var(--space-80) var(--space-24); background: var(--c); }
.ci-example--outlined { box-shadow: inset 0 0 0 1px #565656; }
.ci-example img { width: 180px; }
.ci-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: var(--space-8); margin-top: calc(var(--space-18) - var(--space-24)); }
.ci-scale li { position: relative; height: 124px; background: var(--c); display: flex; align-items: center; justify-content: center; }
.ci-scale span { position: absolute; top: 8px; left: 8px; font-weight: 600; font-size: 12px; line-height: 16px; color: #ffffff; }
.ci-scale img { width: 84px; }

/* 사용 안내 */
.ci-usage {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-48);
  padding: var(--space-200) var(--space-160); text-align: center;
  background: var(--color-bg-surface); border-radius: var(--radius-20); box-shadow: inset 0 0 0 1px var(--color-border-brand);
}
.ci-usage img { width: 240px; }
.ci-usage__text { max-width: 990px; margin-top: calc(var(--space-32) - var(--space-48)); font-size: 20px; line-height: 36px; color: var(--color-text-strong); }

/* ───────── Tablet: 설명 위, 견본 판 아래(가운데 280 폭 세로 쌓기) ───────── */
@media (max-width: 1199.98px) {
  .ci { padding-bottom: var(--space-96); }
  .ci-section { flex-direction: column; gap: var(--space-24); padding: var(--space-64) 0; }
  .ci-intro { flex: none; max-width: 320px; gap: var(--space-18); }
  .ci-intro__over { font-size: 14px; line-height: 1.6; }
  .ci-intro__title { margin-top: calc(-1 * var(--space-18)); }
  .ci-intro__text { font-size: 12px; line-height: 16px; }
  .ci-stage { flex: none; padding: var(--space-24); }
  .ci-logos, .ci-emblems, .ci-doubles, .ci-colors { max-width: 280px; }
  .ci-logos .ci-swatch { padding: var(--space-80) var(--space-40); gap: var(--space-12); }
  .ci-logos img { width: 200px; }
  .ci-emblems, .ci-doubles { flex-direction: column; }
  .ci-emblems .ci-swatch { min-height: 0; gap: var(--space-20); padding: var(--space-60) var(--space-24); }
  .ci-emblems img { width: 100px; }
  .ci-doubles .ci-swatch { min-height: 0; gap: var(--space-20); padding: var(--space-48) var(--space-24); }
  .ci-doubles img { width: 120px; }
  .ci-label { font-size: 12px; line-height: 12px; }
  .ci-colors { gap: var(--space-4); }
  .ci-colors__row--primary { margin-bottom: calc(var(--space-12) - var(--space-4)); }
  .ci-color, .ci-colors__row--primary .ci-color { padding: var(--space-20) var(--space-12); }
  .ci-color__name { font-size: 14px; line-height: 20px; }
  .ci-color__val { font-size: 10px; line-height: 14px; }
  .ci-spectrum { gap: var(--space-8); padding: 0 0 var(--space-64); border-top: 0; }
  .ci-label--center { text-align: left; font-size: 12px; line-height: 20px; }
  .ci-examples { margin-bottom: calc(var(--space-20) - var(--space-8)); }
  .ci-example { padding: var(--space-40) var(--space-24); min-height: 248px; }
  .ci-example img { width: 114px; }
  .ci-scale { margin-top: 0; margin-bottom: var(--space-16); }
  .ci-scale li { height: 64px; }
  .ci-scale span { display: none; }
  .ci-scale img { width: 48px; }
  .ci-usage { padding: var(--space-160) var(--space-80); gap: var(--space-40); }
  .ci-usage img { width: 180px; }
  .ci-usage__text { margin-top: calc(var(--space-32) - var(--space-40)); font-size: 16px; line-height: 22px; }
}

/* ───────── Mobile ───────── */
@media (max-width: 767.98px) {
  .ci { padding-bottom: 72px; }
  .ci-section { padding: var(--space-48) 0; }
  .ci-intro { max-width: none; gap: var(--space-8); }
  .ci-intro__over { font-size: 10px; line-height: 16px; }
  .ci-intro__title { margin-top: calc(-1 * var(--space-8)); font-size: 12px; line-height: 20px; }
  .ci-intro__text { line-height: 15px; }
  .ci-logos, .ci-emblems, .ci-doubles, .ci-colors { max-width: none; }
  .ci-logos .ci-swatch { padding: var(--space-40) var(--space-24); gap: var(--space-8); }
  .ci-logos img { width: 180px; }
  .ci-emblems .ci-swatch, .ci-doubles .ci-swatch { padding: var(--space-20); gap: var(--space-8); }
  .ci-emblems img { width: 42px; }
  .ci-doubles img { width: 72px; }
  .ci-swatch figcaption { font-size: 10px; line-height: 16px; }
  .ci-label { font-size: 10px; line-height: 16px; }
  .ci-colors__row { flex-direction: column; }
  .ci-spectrum { gap: var(--space-4); padding-bottom: var(--space-48); }
  .ci-label--center { font-size: 10px; line-height: 16px; }
  .ci-examples { margin-bottom: calc(var(--space-12) - var(--space-4)); }
  .ci-example { min-height: 0; padding: var(--space-18) var(--space-24); gap: var(--space-4); }
  .ci-example img { width: 60px; }
  .ci-scale { gap: 4px; margin-bottom: var(--space-8); }
  .ci-scale li { height: 28px; }
  .ci-scale img { display: none; }
  .ci-usage { padding: var(--space-40) var(--space-32); gap: var(--space-24); }
  .ci-usage img { width: 160px; }
  .ci-usage__text { margin-top: calc(var(--space-18) - var(--space-24)); font-size: 12px; line-height: 20px; }
}

/* Figma 높이 맞춤 (데스크톱): 글자 상자 높이·고정 높이 블록 */
@media (min-width: 1200px) {
  .ci-logos figcaption { line-height: 12px; }
  .ci-label:not(.ci-label--center) { line-height: 24.4px; }
  .ci-colors__row--primary .ci-color { min-height: 232px; }
  .ci-colors__row--secondary .ci-color { min-height: 192px; }
  .ci-usage { min-height: 738px; justify-content: center; padding-block: var(--space-48); }
}
