/* public/css/base.css — 초기화와 기본 글자. 터치 TV(마우스 올림 없음)·키오스크를 기본으로 본다. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* 스크롤은 본문(main)이나 화면이 정한 영역만 한다 */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x pan-y; /* 키오스크: 두 번 탭·핀치로 페이지가 확대되지 않게(지도는 자기 영역에서 따로 받는다) */
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: inherit;
  cursor: pointer;
  user-select: none;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 0.3rem solid var(--blue);
  outline-offset: 0.2rem;
}

[hidden] {
  display: none !important;
}

.num {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
