/* main02 — 메인 시안 02 (슬로건 중앙형) · 노드 233:21708 / 상태 224:21467
   공통(슬라이드·오버레이·블러·법적 고지)은 _shared/family/main.css. 여기는 중앙 카피·좌우 화살표·유리 탭만. */

.m2 {
  --m2-fs-eyebrow: clamp(12px, calc(11.49px + 0.131vw), 14px);   /* 시안 14 · 자간 6 */
  --m2-fs-title:   clamp(34px, calc(21.25px + 3.268vw), 84px);   /* 시안 84 · 하한 34 */
  --m2-fs-sub:     clamp(16px, calc(14.47px + 0.392vw), 22px);   /* 시안 22 */
}

/* ── 중앙 카피 — 시안 Center Copy: 화면 중앙(-0.5) · 하단 빈 간격 46 포함 프레임이 중앙 ── */
.m2-copy {
  position: absolute;
  z-index: 4;
  left: 0; right: 0;
  top: 50%;
  translate: 0 -50%;
  padding-bottom: clamp(24px, 2.4vw, 46px);
  text-align: center;
}
.m2-copy__eyebrow {
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--m2-fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.43em;              /* 6px @14 */
  line-height: 1.25;
}
.m2-copy__title {
  margin: clamp(12px, 1.15vw, 22px) 0 0;
  font-family: var(--font-latin);
  font-size: var(--m2-fs-title);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.0298em;           /* -2.5px @84 */
}
.m2-copy__sub {
  margin: clamp(12px, 1.15vw, 22px) 0 0;
  font-size: var(--m2-fs-sub);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.6px;
}

/* ── 좌우 화살표 — 시안: 56 원형 · 좌우 80 · 세로 중앙(432~488) ── */
.m2-arrows { position: static; }
.m2-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  translate: 0 -50%;
  width: 56px; height: 56px;
  padding: 0;
  border-radius: 50%;
}
.m2-arrow img { width: 100%; height: 100%; }
.m2-arrow--prev { left: clamp(16px, 4.17vw, 80px); }
.m2-arrow--next { right: clamp(16px, 4.17vw, 80px); }

/* ── 유리 탭 — 시안 SlideTabs (glass): 1520×124 · 하단 60 · r16 · blur 15 · 흰 12% · 테두리 22% ── */
.m2-tabs {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  bottom: 60px;
  display: flex;
  height: 124px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(15px);
          backdrop-filter: blur(15px);
}
.m2-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 32px 28px 26px 36px;
  text-align: left;
  color: #ffffff;
}
.m2-tab + .m2-tab { border-left: 1px solid rgba(255,255,255,.16); }
.m2-tab__title { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; line-height: 1.2; }
.m2-tab__num  { font-family: var(--font-latin); font-size: 14px; font-weight: 600; letter-spacing: 1px; color: rgba(255,255,255,.55); }
.m2-tab__name { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.8); }
.m2-tab__desc { font-size: 14px; line-height: 1.25; color: rgba(255,255,255,.55); }
.m2-tab__track {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: rgba(255,255,255,0);
}
.m2-tab__fill {
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
}
/* 활성 탭 — 시안 Tab 03 (Active): 배경 흰 10% · 번호/제목 흰색 Bold · 설명 78% · 트랙 20% */
.m2-tab.is-active { background: rgba(255,255,255,.1); }
.m2-tab.is-active .m2-tab__num  { color: #ffffff; }
.m2-tab.is-active .m2-tab__name { color: #ffffff; font-weight: 700; }
.m2-tab.is-active .m2-tab__desc { color: rgba(255,255,255,.78); }
.m2-tab.is-active .m2-tab__track { background: rgba(255,255,255,.2); }
.m2-tab:not(.is-active) .m2-tab__fill { visibility: hidden; }
.m2.is-ready .m2-tab { transition: background-color var(--dur) var(--ease); }

/* ── 낮은 데스크톱 창 — 중앙 카피와 탭이 닿지 않게 카피를 조금 올림 ── */
@media (min-width: 840px) and (max-height: 760px) {
  .m2-copy { top: 44%; }
}

/* ── expanded (840~1199) — 탭 4칸 유지, 안쪽 여백만 축소 ── */
@media (max-width: 1199.98px) {
  .m2-tab { padding: 26px 18px 22px 22px; }
  .m2-tab__title { gap: 10px; white-space: normal; }
}

/* ── compact·medium (<840) — 겹침 유지, 흐름 배치
   헤더(64) → 카피(세로 중앙) → 화살표(탭 위 우측) → 탭 2×2 → 고지 ── */
@media (max-width: 839.98px) {
  .m2 {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--chrome-h-mobile);
  }
  .m2-copy, .m2-tabs, .m2 .mh-legal {
    position: relative;
    top: auto; bottom: auto; left: auto; right: auto;
    translate: none;
  }
  .m2-copy { margin-block: auto; padding-block: 24px; }
  .m2-arrows {
    position: relative;
    z-index: 6;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: min(var(--mh-rail), calc(100% - var(--gutter) * 2));
    margin: 0 auto 12px;
  }
  .m2-arrow { position: static; translate: none; width: 44px; height: 44px; }
  .m2-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    border-radius: 12px;
  }
  .m2-tab { padding: 18px 14px 16px 16px; gap: 6px; }
  .m2-tab + .m2-tab { border-left: 0; }
  .m2-tab:nth-child(even) { border-left: 1px solid rgba(255,255,255,.16); }
  .m2-tab:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
  .m2-tab__title { gap: 8px; }
  .m2-tab__name { font-size: 15px; }
  .m2-tab__desc { font-size: 13px; line-height: 1.4; }
  .m2 .mh-legal { margin-top: 4px; padding-bottom: 6px; }
}
.m2-nowrap { white-space: nowrap; }
