/* ==========================================================
   LEEPEEM PLASTIC SURGERY — legacy-chrome.css
   내부 페이지 공통 chrome (헤더 · 푸터 · 사이드CTA) 전용 스타일.

   renew.css / renew-main.css / home-inline.css 의 chrome 규칙만 추출.
   ⚠ 전역 리셋(*, html, body, img, a, ul, button)은 의도적으로 제외 —
     Tailwind 기반 본문 콘텐츠 오염을 막기 위함. chrome 마크업이 의존하는
     리셋(img display:block / ul list-style / a text-decoration)은
     chrome 컨테이너(.site-header / .site-footer / .quick-bar / .mobile-drawer)
     하위로만 스코프한다.
   ========================================================== */

/* ----------------------------------------------------------
   1. 디자인 토큰 (chrome 에서 참조하는 CSS 변수)
   — :root 변수라 Tailwind 와 충돌하지 않음(이름 prefix --color/--font/--space)
   ---------------------------------------------------------- */
:root {
  /* 색 — 브랜드 teal 통일 (DEC-2026-06-10: 기존 오렌지 #FF4902 액센트·네이비 #1c3b5c
     GNB 를 teal 계열로 교체, globals.css·renew.css 와 동일 팔레트) */
  --color-bg: #f7f7f5;
  --color-white: #FFFFFF;
  --color-text: #181818;
  --color-text-muted: #6C6C6C;
  --color-text-light: #999999;
  --color-accent: #0abab5;
  --color-accent-2: #107977;
  --color-accent-text: #0e4c4b; /* 텍스트 전용 딥 teal (renew.css 와 동일, AA·AAA) */
  --color-border: #e5e5e5;
  --color-dark: #181818;

  /* next/font self-host 변수(--font-free / --font-noto-sans-kr)를 첫 후보로 연결 (app/fonts.ts)
     — 2026-06-15 본문·제목 단일 폰트 통일: Freesentation 1순위 */
  --font-serif: var(--font-free),'Freesentation','Pretendard','Noto Sans KR',sans-serif;
  /* 사이트 전역 통일 — 홈(renew.css)·globals.css 와 동일하게 Freesentation 1순위 */
  --font-sans: var(--font-free),'Freesentation','Pretendard','Pretendard Variable',var(--font-noto-sans-kr),'Noto Sans KR',sans-serif;

  --container: 1200px;
  --container-wide: 1400px;
  --header-height: 90px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: clamp(72px, 10vw, 120px);

  --ease: cubic-bezier(.4,0,.2,1);
  --transition: .3s var(--ease);
}

/* ----------------------------------------------------------
   1-b. 본문 배경 톤 — 홈(#f7f7f5 쿨 화이트)과 통일
   body 의 Tailwind bg-background(#fff)를 내부 페이지에 한해 덮어쓴다
   (legacy-chrome.css 는 내부 페이지에만 <link> 로드되므로 홈은 영향 없음).
   유틸리티 클래스(.bg-background, 0,1,0)보다 우선하도록 !important 사용.
   ---------------------------------------------------------- */
body {
  background-color: var(--color-bg) !important;
}

/* ----------------------------------------------------------
   2. chrome 컨테이너 한정 리셋 (전역 누수 차단)
   ---------------------------------------------------------- */
.site-header img,
.site-footer img,
.quick-bar img,
.mobile-drawer img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header a,
.site-footer a,
.quick-bar a,
.mobile-drawer a {
  color: inherit;
  text-decoration: none;
}

.site-header ul,
.site-header ol,
.site-footer ul,
.site-footer ol,
.quick-bar ul,
.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header button,
.mobile-drawer button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ----------------------------------------------------------
   3. 버튼 (mobile-reserv 등 chrome 내부에서 사용)
   ---------------------------------------------------------- */
.mobile-drawer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  border-radius: 0;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.mobile-drawer .btn-accent {
  /* renew.css .btn-accent 와 동일 — 흰 라벨 가독을 위한 딥틸 면(5.2:1) */
  background-color: var(--color-accent-2);
  color: var(--color-white);
  border: 1px solid var(--color-accent-2);
}
.mobile-drawer .btn-accent:hover {
  background-color: #0e4c4b;
  border-color: #0e4c4b;
}

.mobile-drawer .btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.mobile-drawer .btn-outline:hover {
  background-color: var(--color-text);
  color: var(--color-white);
}

/* ----------------------------------------------------------
   4. 헤더 (renew.css §6 1:1)
   ---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: #ffffff;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid rgba(28, 59, 92, 0.10);
}

/* 스크롤 후 약간 더 짙은 톤으로 강조 */
.site-header.is-scrolled {
  background-color: #ffffff;
  border-bottom-color: rgba(28, 59, 92, 0.16);
  box-shadow: 0 1px 0 rgba(28, 59, 92, 0.08);
}

/* 헤더 내부 그리드: 좌-로고 / 중-메뉴 / 우-유틸 */
.site-header__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding-inline: var(--space-md);
  display: grid;
  /* [M2-fix] 1fr → minmax(0,1fr): 긴 로케일 메뉴가 min-content 폭으로 트랙을 넘겨
     우측 국기(.lang-flags)를 화면 밖으로 밀어내지 않도록 중앙 트랙 축소 허용 */
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  height: 100%;
}

/* ---- 로고 (좌측 고정) ---- */
.site-header__logo {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header__logo-symbol {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}

.site-header__logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.site-header__logo-en {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0e4c4b;
}

.site-header__logo-sub {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: #0e4c4b;
  opacity: 0.75;
}

@media (max-width: 1024px) {
  .site-header__logo-text { display: none; }
  .site-header__logo-symbol { width: 38px; height: 38px; }
}

/* ---- 중앙 GNB ---- */
.site-header__nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  /* [M2-fix] minmax(0,1fr) 트랙과 함께 동작하도록 축소 허용 */
  min-width: 0;
}

.gnb {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  /* 센터 트랙 전체를 차지하고 남는 폭을 항목 사이에 고르게 분배 — 넓은 화면에서
     메뉴가 중앙에 뭉치지 않고 널찍하게 펼쳐진다. 공간이 부족하면(긴 로케일·좁은 폭)
     분배 여백이 0으로 줄어 기존 압축 동작과 동일. */
  flex: 1;
  justify-content: space-evenly;
}

/* 메가 메뉴 배경 — 네비바(뷰포트) 가로폭 전체로 펼쳐지는 띠 */
.gnb::before {
  content: '';
  position: absolute;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 320px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(28, 59, 92, 0.10);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 90;
  pointer-events: none;
}

/* [GNB-toggle] hover → 클릭 토글. JS(LegacyScripts)가 상위 메뉴 클릭 시
   .gnb 에 .is-menu-open 을 토글한다(다시 누르면 닫혀 페이지가 보임). */
.gnb.is-menu-open::before {
  opacity: 1;
  visibility: visible;
}

.gnb__item {
  position: relative;
}

.gnb__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 14px;
  height: var(--header-height);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #0e4c4b;
  white-space: nowrap;
  transition: color var(--transition);
  position: relative;
}

/* 단일 라벨(한글/로케일 번역) — 영문 보조 라벨(gnb__en) 제거 후 주 라벨로 승격 */
.gnb__kr {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #0e4c4b;
  display: inline-flex;
  align-items: center;
  height: var(--header-height);
  /* [M2-fix] 긴 번역 레이블(ru/mn 등)은 줄바꿈 허용 — 한국어 등 짧은 레이블은 영향 없음 */
  white-space: normal;
  max-width: 8em;
  line-height: 1.2;
  text-align: left;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* [M2-fix] 중간 폭에서 GNB 압축 — 국기/유틸 잘림 방지.
   긴 라벨(ru/mn 등) 보호용이므로, 라벨이 짧은 ko 는 한 단계 완화해 넉넉하게 유지. */
@media (min-width: 1025px) and (max-width: 1680px) {
  .gnb__link {
    padding: 0 8px;
    gap: 5px;
  }
  .gnb__kr { font-size: 14px; }
  :root[lang^="ko"] .gnb__link { padding: 0 12px; }
  :root[lang^="ko"] .gnb__kr { font-size: 15px; }
}

@media (min-width: 1025px) and (max-width: 1520px) {
  .gnb__link { padding: 0 6px; }
  .gnb__kr { font-size: 13px; max-width: 7em; }
  :root[lang^="ko"] .gnb__link { padding: 0 10px; }
  :root[lang^="ko"] .gnb__kr { font-size: 14px; }
}

.gnb__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.gnb__item:hover .gnb__link::after,
.gnb__item.is-active .gnb__link::after {
  transform: scaleX(1);
}

.gnb__item:hover .gnb__kr,
.gnb__item.is-active .gnb__kr {
  color: var(--color-accent-text);
}

/* ---- 드롭다운 (메가 메뉴: 네비 호버 시 전체 동시 노출) ---- */
.gnb__dropdown {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 150px;
  background-color: transparent;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 100;
  border-radius: 0;
}

.gnb.is-menu-open .gnb__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gnb__dropdown--wide {
  width: 150px;
}

.gnb__dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #181818;
  line-height: 1.4;
  transition: color var(--transition), background-color var(--transition);
}

.gnb__dropdown-link:hover {
  color: var(--color-accent-text);
  background-color: rgba(45, 147, 137, 0.14);
}

/* ---- 우측 유틸 ---- */
.site-header__util {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

/* 국기 */
.lang-flags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #181818;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

/* 현재 보고 있는 언어 — hover 와 동일한 teal 링을 상시 노출 */
.lang-flag.is-active {
  box-shadow: 0 0 0 2px var(--color-accent);
}

.lang-flag .fi {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: block;
}

.lang-flag:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* ---- 모바일 햄버거 ---- */
.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  /* 44×44 최소 터치 타깃 (WCAG 2.5.5) — 시각 크기는 padding 으로 기존과 유사하게 유지 */
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}

.header-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #0e4c4b;
  transition: background-color var(--transition), transform var(--transition), opacity var(--transition);
}

.header-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- 모바일 드로어 ---- */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

/* [N1-fix] 접근성용 명시적 닫기 버튼 — 평소엔 시각적으로 숨기고(sr-only 패턴)
   키보드 포커스 시에만 44×44 정식 버튼으로 노출. (시각적 닫기는 헤더 햄버거 X 토글) */
.mobile-drawer__close {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mobile-drawer__close:focus-visible {
  top: 8px;
  right: 8px;
  left: auto;
  width: 44px;
  height: 44px;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #0e4c4b;
  background-color: #fff;
  border: 1px solid rgba(28, 59, 92, 0.35);
  border-radius: 4px;
  z-index: 5;
}

.mobile-gnb {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.mobile-gnb__item {
  border-bottom: 1px solid var(--color-border);
}

.mobile-gnb__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.mobile-gnb__link .toggle-icon {
  font-size: 18px;
  color: var(--color-text-light);
  transition: transform var(--transition);
  line-height: 1;
}

.mobile-gnb__item.is-open .toggle-icon {
  transform: rotate(45deg);
}

.mobile-gnb__sub {
  display: none;
  padding: 4px 0 12px 16px;
}

.mobile-gnb__item.is-open .mobile-gnb__sub {
  display: block;
}

.mobile-gnb__sub a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.mobile-gnb__sub a:hover {
  color: var(--color-accent-text);
}

.mobile-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid var(--color-border);
}

.mobile-lang a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.mobile-lang a img {
  width: 16px;
  border: 1px solid #181818;
}

.mobile-lang a.is-active {
  border-color: var(--color-accent-text);
  color: var(--color-accent-text);
  font-weight: 700;
}

.mobile-reserv {
  padding: var(--space-md);
}

.mobile-reserv .btn-accent {
  width: 100%;
  justify-content: center;
}

/* ----------------------------------------------------------
   5. 푸터 (renew-main.css §F 1:1 — 실제 렌더 마크업 기준)
   ---------------------------------------------------------- */
.site-footer {
  /* [FOOTER-dark-sync] 홈이 renew-main.css §F 에서 딥 틸 다크 푸터로 바뀐 뒤
     이쪽 라이트 민트 포크가 stale 상태였음 → 홈 [FOOTER-dark] 값으로 재동기화.
     (chrome/renew 포크 구조는 유지 — 색상 토큰만 홈과 일치시킴) */
  background: linear-gradient(120deg, #0f3a34 0%, #123f38 52%, #0a2b27 100%);
  color: rgba(236, 246, 244, 0.85);
  text-shadow: none;
  padding: var(--space-lg) 0 var(--space-md);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.site-footer__logo {
  /* [M5-fix] 심볼 + 2단 텍스트(LEEPEEM / PLASTIC SURGERY) 가로 배치 — renew-main.css 와 동일 구조 */
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: var(--space-md);
}

.site-footer__logo img {
  height: 36px;
  width: auto;
  /* 다크 푸터 위 심볼 흰색화 — 홈 .site-footer__logo-symbol 과 동일 처리 */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* [M5-fix] 브랜드명 2단 적층 규칙 — renew-main.css(홈 전용)에만 있어
   legacy-chrome 페이지에서 'LEEPEEMPLASTIC SURGERY' 로 붙어 보이던 결함 복원. */
.site-footer__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
  color: #fff;
}

.site-footer__logo-en {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer__logo-sub {
  font-size: 10px;
  letter-spacing: 0.26em;
  opacity: 0.82;
}

.site-footer__info {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
}

.site-footer__nav-title {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a5dcd4;
  margin-bottom: var(--space-sm);
  display: block;
}

.site-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
}

.site-footer__nav li a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__nav li a:hover {
  color: #ffffff;
}

.site-footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.site-footer__copy {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.62);
}

.site-footer__legal {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__legal li a {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__legal li a:hover {
  color: #ffffff;
}

/* ----------------------------------------------------------
   6. 사이드 빠른상담 바 (home-inline.css 1:1)
   ---------------------------------------------------------- */
.quick-bar {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  /* 내부 페이지 히어로(틸/민트) 위에서도 홈처럼 또렷한 다크 글래스로 보이도록
     불투명도·테두리·그림자를 home-inline 대비 강화 (배경색 비침 방지). */
  background: rgba(15, 17, 18, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  width: 94px;
}

.quick-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 8px;
  text-decoration: none;
  /* 다크 글래스 위 0.82 백색은 실측 약 4:1 — 0.95 로 올려 13px AA(4.5:1) 충족 */
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
  position: relative;
}

/* 항목 사이 얇은 구분선 */
.quick-bar__item + .quick-bar__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.quick-bar__item:hover {
  color: #0abab5;
  background-color: rgba(255, 255, 255, 0.04);
}

/* 위 `.quick-bar a { color: inherit }` 리셋(특이도 0,1,1)이 앵커 항목(전화상담·
   오시는길) 색을 본문색(#181818)으로 덮어써 다크 바 위에서 묻히던 문제 해결 —
   더 높은 특이도(.quick-bar .quick-bar__item)로 항목 색을 명시한다. */
.quick-bar .quick-bar__item {
  color: rgba(255, 255, 255, 0.95);
}
.quick-bar .quick-bar__item:hover {
  color: #49fffc; /* 다크 위 소면적 포인트 — #0abab5(6.7:1)보다 또렷한 시안(14:1) */
}

.quick-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: inherit;
}
.quick-bar__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.quick-bar__icon--lg { width: 44px; height: 44px; }
.quick-bar__icon--lg svg { width: 37px; height: 37px; }

/* ----------------------------------------------------------
   7. 반응형 (chrome 한정 — renew.css / renew-main.css 발췌)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  .site-header__nav,
  .lang-flags {
    display: none;
  }

  .header-hamburger {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* 모바일: 우측 세로 바 → 하단 가로 고정 바 (전화·예약·카톡·위챗·길찾·인스타 6칸, 블로그 숨김) */
  .quick-bar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    flex-direction: row;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: rgba(15, 17, 18, 0.94);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  }
  .quick-bar__item {
    flex: 1 1 0;
    min-width: 0;
    gap: 5px;
    padding: 9px 2px 8px;
    font-size: clamp(9px, 2.7vw, 11px);
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  /* 항목 구분선: 가로선 → 세로선 */
  .quick-bar__item + .quick-bar__item::before {
    top: 11px;
    bottom: 11px;
    left: 0;
    right: auto;
    height: auto;
    width: 1px;
  }
  .quick-bar__icon { width: 26px; height: 26px; }
  .quick-bar__icon svg { width: 22px; height: 22px; }
  .quick-bar__icon--lg { width: 28px; height: 28px; }
  .quick-bar__icon--lg svg { width: 24px; height: 24px; }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .site-footer__legal {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  /* 푸터 QUICK LINKS — 모바일에서 13개 인라인 링크가 밀집·터치타깃 미달 →
     2열 그리드 + 행별 패딩으로 탭 영역(약 38px)과 행간 확보 */
  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .site-footer__nav li a {
    display: inline-block;
    padding: 8px 0;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }
}

/* 로케일별 비라틴 글리프 폰트(CJK·태국·키릴) — layout 이 <html> 에 해당 폰트 변수만 부착.
   하위/chrome 페이지에서도 --font-sans/--font-serif 토큰을 lang 으로 교체. (홈은 renew.css)
   라틴 글자는 Freesentation 유지 — 글리프 단위 폴백. */
:root[lang^="zh"]{ --font-sans: var(--font-free),var(--font-noto-sc),'Noto Sans SC',sans-serif; --font-serif: var(--font-free),var(--font-noto-sc),'Noto Sans SC',sans-serif; }
:root[lang^="ja"]{ --font-sans: var(--font-free),var(--font-noto-jp),'Noto Sans JP',sans-serif; --font-serif: var(--font-free),var(--font-noto-jp),'Noto Sans JP',sans-serif; }
:root[lang^="th"]{ --font-sans: var(--font-free),var(--font-noto-thai),'Noto Sans Thai',sans-serif; --font-serif: var(--font-free),var(--font-noto-thai),'Noto Sans Thai',sans-serif; }
:root[lang^="ru"],:root[lang^="mn"]{ --font-sans: var(--font-free),var(--font-noto-cyrillic),'Noto Sans',sans-serif; --font-serif: var(--font-free),var(--font-noto-cyrillic),'Noto Sans',sans-serif; }
