/* ZIMAM 공통 스타일
 * 부트스트랩 5.3 클래스를 기본으로 쓰고, 부트스트랩만으로 어려운 부분을 한 클래스 = 한 스타일로 정의한다.
 * HTML 에서 부트스트랩 클래스와 조합해 사용한다.
 */

/* ── 디자인 토큰 ─────────────────────────────────────── */
:root {
  --mint: #56BEB6;
  --mint-light: #6CC8C1;
  --mint-ink: #1F7A73;
  --mint-tint: #E6F5F3;
  --orange: #EE7638;
  --orange-light: #F28A54;
  --orange-ink: #A3420E;
  --orange-tint: #FDEEE4;
  --yellow: #F7B232;
  --yellow-tint: #FEF4DE;
  --beige: #EDE5BD;
  --beige-ink: #6B5A10;
  --beige-tint: #F8F4E1;
  --off: #FAFAF7;
  --ink: #292929;
  --ink-2: #4A4A4A;
  --ink-3: #767676;
  --gray: #F3F3F3;
  --line: #E5E5E5;
  --f-body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --f-latin: 'Outfit', 'Noto Sans KR', sans-serif;
  --f-story: 'Gowun Batang', 'Noto Sans KR', serif;
  --bs-body-font-family: var(--f-body);
  --bs-body-font-size: 15px;
  --bs-body-line-height: 1.65;
  --bs-body-color: var(--ink);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--ink-3);
  --bs-border-color: var(--line);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 41, 41, 41;
  --bs-link-hover-color: var(--mint-ink);
  --bs-link-hover-color-rgb: 31, 122, 115;
  --bs-focus-ring-color: rgba(86, 190, 182, .35);
}

/* ── 기본 요소 ───────────────────────────────────────── */
body { word-break: keep-all; overflow-wrap: anywhere; }
a { text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: .15625em solid var(--mint-ink); outline-offset: 2px; }

/* ── 배경색 ─────────────────────────────────────────── */
.bg-mint { background-color: var(--mint) !important; }
.bg-mint-tint { background-color: var(--mint-tint) !important; }
.bg-orange { background-color: var(--orange) !important; }
.bg-orange-tint { background-color: var(--orange-tint) !important; }
.bg-yellow { background-color: var(--yellow) !important; }
.bg-yellow-tint { background-color: var(--yellow-tint) !important; }
.bg-beige-tint { background-color: var(--beige-tint) !important; }
.bg-off { background-color: var(--off) !important; }
.bg-ink { background-color: var(--ink) !important; }
.bg-gray { background-color: var(--gray) !important; }
/* 브랜드 톤 (BRAND_TONE) */
.bg-tone-beige { background-color: #F7F2DC !important; }
.bg-tone-peach { background-color: #FCEBDF !important; }
.bg-tone-mint { background-color: #E2F3F1 !important; }
.bg-tone-yellow { background-color: #FDF1D3 !important; }
.bg-tone-gray { background-color: #F3F3F3 !important; }
.bg-hero-fade { background-image: linear-gradient(180deg, var(--beige-tint) 0%, #fff 100%); }

/* ── 글자색 ─────────────────────────────────────────── */
.text-ink { color: var(--ink) !important; }
.text-ink-2 { color: var(--ink-2) !important; }
.text-ink-3 { color: var(--ink-3) !important; }
.text-mint { color: var(--mint) !important; }
.text-mint-ink { color: var(--mint-ink) !important; }
.text-orange { color: var(--orange) !important; }
.text-orange-ink { color: var(--orange-ink) !important; }
.text-beige-ink { color: var(--beige-ink) !important; }
.text-light-gray { color: #E8E8E3 !important; }

/* ── 테두리 ─────────────────────────────────────────── */
.border-mint { border-color: var(--mint) !important; }
.border-ink { border-color: var(--ink) !important; }
.border-orange { border-color: var(--orange) !important; }
.border-beige { border-color: var(--beige) !important; }
.border-gray-mid { border-color: #CFCFCB !important; }
.border-transparent { border-color: transparent !important; }
.border-mint-soft { border-color: #CDEAE6 !important; }

/* ── 마우스 올림 ─────────────────────────────────────── */
.hover-bg-mint-light:hover { background-color: var(--mint-light) !important; }
.hover-bg-orange-light:hover { background-color: var(--orange-light) !important; }
.hover-bg-gray:hover { background-color: var(--gray) !important; }
.hover-bg-mint-tint:hover { background-color: var(--mint-tint) !important; }
.hover-bg-white:hover { background-color: #fff !important; }
.hover-bg-ink-06:hover { background-color: rgba(41, 41, 41, .06) !important; }
.hover-border-ink:hover { border-color: var(--ink) !important; }
.hover-border-mint:hover { border-color: var(--mint) !important; }
.hover-text-mint-ink:hover { color: var(--mint-ink) !important; }
.hover-text-ink:hover { color: var(--ink) !important; }
.hover-underline:hover { text-decoration: underline !important; }
.hover-shadow:hover { box-shadow: 0 10px 24px rgba(41, 41, 41, .08) !important; }
.hover-lift:hover { transform: translateY(-2px); }
.hover-zoom:hover .zoom-target { transform: scale(1.03); }
.transition { transition: all .18s ease; }
/* 상위 요소에 마우스를 올리거나 포커스가 들어오면 하위 메뉴 표시 (헤더 메뉴) */
.hover-reveal:hover > .reveal-target { display: flex !important; }
.hover-reveal:focus-within > .reveal-target { display: flex !important; }
.hover-reveal:hover > .reveal-bar { border-color: var(--mint) !important; }

/* ── 글꼴 ───────────────────────────────────────────── */
.ff-latin {font-family: var(--f-latin), sans-serif !important; }
.ff-story {font-family: var(--f-story), sans-serif !important; }
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-16 { font-size: 16px !important; }
.fs-17 { font-size: 17px !important; }
.fs-18 { font-size: 18px !important; }
.fs-20 { font-size: 20px !important; }
.fs-24 { font-size: 24px !important; }
.fs-hero { font-size: clamp(30px, 4.4vw, 46px) !important; }
.fs-h1 { font-size: clamp(28px, 4vw, 40px) !important; }
.fs-h2 { font-size: clamp(22px, 2.6vw, 28px) !important; }
.fs-64 { font-size: 64px !important; }
.ls-wide { letter-spacing: .14em !important; }
.ls-08 { letter-spacing: .08em !important; }
.ls-04 { letter-spacing: .04em !important; }
.ls-tight { letter-spacing: -.025em !important; }
.lh-13 { line-height: 1.3 !important; }
.lh-17 { line-height: 1.7 !important; }
.lh-185 { line-height: 1.85 !important; }
.tnum { font-variant-numeric: tabular-nums; }
.text-pre-line { white-space: pre-line !important; }
.underline-offset-3 { text-underline-offset: 3px; }

/* ── 크기 ───────────────────────────────────────────── */
.mw-wrap { max-width: 1248px !important; }
.mw-narrow { max-width: 848px !important; }
.mw-form { max-width: 520px !important; }
.mw-auth { max-width: 440px !important; }
.mw-62ch { max-width: 62ch !important; }
.mw-200 { max-width: 200px !important; }
.mnw-0 { min-width: 0 !important; }
.mnw-200 { min-width: 200px !important; }
.mnw-720 { min-width: 720px !important; }
.w-18 { width: 18px !important; }
.h-18 { height: 18px !important; }
.w-24 { width: 24px !important; }
.h-24 { height: 24px !important; }
.w-28 { width: 28px !important; }
.h-28 { height: 28px !important; }
.w-40 { width: 40px !important; }
.h-40 { height: 40px !important; }
.w-56 { width: 56px !important; }
.h-56 { height: 56px !important; }
.w-64 { width: 64px !important; }
.h-64 { height: 64px !important; }
.w-72 { width: 72px !important; }
.h-72 { height: 72px !important; }
.w-88 { width: 88px !important; }
.h-88 { height: 88px !important; }
.w-140 { width: 140px !important; }
.w-logo { width: 154px !important; }
.h-logo { height: 56px !important; }
.h-38 { height: 38px !important; }
.h-52 { height: 52px !important; }
.mnh-60vh { min-height: 60vh !important; }
.mxh-420 { max-height: 420px !important; }
.object-pos-40 { object-position: center 40% !important; }

/* ── 여백·배치 ───────────────────────────────────────── */
.py-6 { padding-block: 4rem !important; }
.py-7 { padding-block: 5rem !important; }
.mb-n1px { margin-bottom: -1px !important; }
.top-100 { top: 100% !important; }
.z-1030 { z-index: 1030 !important; }
.z-1 { z-index: 1 !important; }
.sticky-top-80 { top: 120px !important; }
.scroll-x-hidden-bar { scrollbar-width: none; }
.white-space-nowrap { white-space: nowrap !important; }
.cursor-pointer { cursor: pointer !important; }
.flex-1 { flex: 1 1 0 !important; }
.grid { display: grid !important; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.justify-items-center { justify-items: center !important; }
.grid-column-full { grid-column: 1 / -1 !important; }
.radius-16 { border-radius: 16px !important; }
.shadow-soft { box-shadow: 0 12px 28px rgba(41, 41, 41, .08) !important; }
.shadow-hero { box-shadow: 0 24px 48px rgba(41, 41, 41, .12) !important; }
.opacity-55 { opacity: .55 !important; }
.opacity-85 { opacity: .85 !important; }

/* ── 탭 (부트스트랩 nav-underline 과 함께) ──────────────── */
.nav-mint .nav-link.active { border-bottom-color: var(--mint) !important; }
.nav-muted { --bs-nav-link-color: var(--ink-3); }
.nav-hover-ink { --bs-nav-link-hover-color: var(--ink); }

/* ── SNS 아이콘 (공식 색상 SVG) ──────────────────────── */
.sns-instagram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop stop-color='%23feda75'/%3E%3Cstop offset='.35' stop-color='%23fa7e1e'/%3E%3Cstop offset='.65' stop-color='%23d62976'/%3E%3Cstop offset='1' stop-color='%234f5bd5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='1' y='1' width='30' height='30' rx='8' fill='url(%23g)'/%3E%3Crect x='7' y='7' width='18' height='18' rx='5' fill='none' stroke='white' stroke-width='2.4'/%3E%3Ccircle cx='16' cy='16' r='4.4' fill='none' stroke='white' stroke-width='2.4'/%3E%3Ccircle cx='22' cy='10' r='1.6' fill='white'/%3E%3C/svg%3E"); }
.sns-youtube { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='1' y='6' width='30' height='20' rx='6' fill='%23ff0033'/%3E%3Cpath d='M13 11l9 5-9 5z' fill='white'/%3E%3C/svg%3E"); }
.sns-blog { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='1' y='1' width='30' height='30' rx='6' fill='%2303c75a'/%3E%3Cpath d='M8 7h5.2l5.8 8.2V7h5v18h-5.1L13 16.8V25H8z' fill='white'/%3E%3C/svg%3E"); }
.bg-contain { background-size: contain !important; }
.bg-no-repeat { background-repeat: no-repeat !important; }
.bg-center { background-position: center !important; }

/* ── CK에디터 본문 출력 ──────────────────────────────── */
.editor-content img { max-width: 100%; }
.editor-content figure { margin-inline: 0; }
.ck-editor__editable_inline { min-height: 360px; }

/* ── 모바일 ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .py-6 { padding-block: 2.75rem !important; }
  .w-logo { width: 120px !important; }
  .h-logo { height: 44px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .transition { transition: none !important; }
}
