@font-face {
  font-family: "Lay Grotesk";
  src: url("/font/LayGrotesk-Regular.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "Lay Grotesk";
  src: url("/font/LayGrotesk-Medium.woff") format("woff");
  font-weight: 500;
}

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-grey-500: #2a2a2a;
  --color-grey-400: #655f5c;
  --color-grey-300: #aca7a0;
  --color-grey-200: #cbc7c3;
  --color-grey-100: #f1efee;
  --color-key: #fc1441;
  --color-accent: #ff5b5b;
  --color-light-grey: #dbdbe3;
  --font-base: "Lay Grotesk", "Inter", "Noto Sans KR", sans-serif;
  /* 1920px 시안 기준 vw 환산. (px / 1920) * 100 */
  --pad-x: 2.6042vw; /* 50 */
  --pad-section: 6.25vw; /* 120 */
  --gap-sm: 1.0417vw; /* 20 */
  --gap-md: 1.25vw; /* 24 */
  --gap-lg: 1.5625vw; /* 30 */
  --gap-xl: 3.3333vw; /* 64 */
  --radius-card: 0.4167vw; /* 8 */
  --radius-pill: 999px;
}

body {
  transition: background-color 0.6s ease;
}

html,
body,
a,
button {
  font-family: var(--font-base);
}

/* ===== 공통 버튼 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn--pill {
  padding: 1.0417vw 2.0833vw; /* 20 40 */
  font-size: 1.25vw; /* 24 */
  line-height: 1.5;
  letter-spacing: 0.02em;
  background: transparent;
  border: 2px solid var(--color-grey-400);
  border-radius: var(--radius-pill);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
/* 배경 반전 — 텍스트/hover 반전 (body.is-bg-dark/light 스코프, 전 페이지 공통 방식).
   hover가 body 스코프 기본값에 우선하도록 hover도 동일 스코프에서 명시. */
body.is-bg-dark .btn--pill {
  color: var(--color-white);
}
body.is-bg-light .btn--pill {
  color: var(--color-black);
}
body.is-bg-dark .btn--pill:hover {
  background: var(--color-white);
  color: var(--color-black);
}
body.is-bg-light .btn--pill:hover {
  background: var(--color-black);
  color: var(--color-white);
}

@media all and (max-width: 1200px) {
  .btn--pill {
    padding: 12px 28px;
    font-size: 16px;
    border-width: 2px;
  }
}

/* ===== 공통 필터 탭 (work / recognition 등에서 공용) ===== */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 1.25vw; /* 24 */
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-tabs__link {
  position: relative;
  display: inline-block;
  font-size: 1.25vw; /* 24 */
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-grey-300);
  text-decoration: none;
  transition: color 0.2s ease;
}
.filter-tabs__link.is-active,
.filter-tabs__link:hover,
.filter-tabs__link:focus-visible {
  color: var(--color-black);
}

/* KR/ENG 언어 토글 — 전 페이지 공통 단일 엘리먼트 */
.lang-button {
  font-size: 1.25vw; /* 24 */
  line-height: 1.5;
  color: var(--color-grey-300);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media all and (max-width: 1200px) {
  .filter-tabs {
    gap: 16px;
  }
  .filter-tabs__link {
    font-size: 14px;
  }
  .lang-button {
    font-size: 13px;
  }
}

.show-default {
  display: block !important;
}

.hide-default {
  display: none !important;
}

@media all and (max-width: 1024px) {
  .show-1024 {
    display: block !important;
  }
  .hide-1024 {
    display: none !important;
  }
}
@media all and (max-width: 768px) {
  .show-768 {
    display: block !important;
  }
  .hide-768 {
    display: none !important;
  }
}
@media all and (max-width: 640px) {
  .show-640 {
    display: block !important;
  }
  .hide-640 {
    display: none !important;
  }

  .btn--pill {
    font-size: 3.053vw;
    padding: 2.036vw 4.071vw;
    border-width: 1px;
  }
  .filter-tabs {
    justify-content: space-between;
    gap: 0;
  }
  .lang-button {
    font-size: 3.562vw;
  }
}
