@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css");
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/bold/style.css");
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/fill/style.css");

@layer defaults, theme, base, components, utilities;

@layer base {
    :root {
        --font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
        --font-eng: 'Inter', sans-serif;
        --font-noto: 'Noto Sans KR', sans-serif;
        --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }


    body {
        font-family: var(--font-family);
        color: #1d1d1f;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
}

/* Lenis 스무스 스크롤 기본 스타일 */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* JIT에서 제공하지 않는 효과 속성 */

.floating-field>label {
  transition: top 0.16s ease, color 0.16s ease, font-size 0.16s ease, transform 0.16s ease;
}

.floating-field>input {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

/* 포커스·입력값·자동완성에서 같은 플로팅 상태를 사용한다. */
.floating-field:focus-within>input,
.floating-field.has-value>input,
.floating-field>input:is(:autofill, :-webkit-autofill, [placeholder]:not(:placeholder-shown)) {
  padding-top: 22px;
  padding-bottom: 6px;
}

.floating-field:focus-within>label,
.floating-field.has-value>label,
.floating-field>input:is(:autofill, :-webkit-autofill, [placeholder]:not(:placeholder-shown))~label {
  top: 8px;
  color: #5f6368;
  font-size: var(--text-xs-size, var(--naknes-text-xs, 13px));
  transform: translateY(0);
}

/* 공통 툴팁: data-text에 표시할 문구를 지정한다. */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 1000;
  padding: 10px;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}

.tooltip:hover::after,
.tooltip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

i.ph {
  vertical-align: middle;
}
