/* ========================================================================
   reset.css — Modern, minimal side-effect reset
   - 안전한 기본값으로 브라우저 기본 스타일 차이를 제거합니다.
   - 디자인 시스템/프로젝트 스타일은 이 파일 아래에서 작성하세요.
   ======================================================================== */

/* 박스 모델 통일 */
*, *::before, *::after {
  box-sizing: border-box;
}
    :root{ color-scheme: light; }
    html, body{ background:#fff; }
    

/* 기본값 정리 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 2;
  /* 지원 브라우저에서 다크/라이트 둘 다 허용 */
  color-scheme: light dark;
}

/* 문서 기본 */
body {
  margin: 0;
  min-height: 100svh; /* 모바일 환경 안전 뷰포트 */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 공통 마진 제거 (타이포그래피는 프로젝트 CSS에서) */
p, h1, h2, h3, h4, h5, h6,
figure, blockquote, dl, dd {
  margin: 0;
}

/* 리스트 기본 여백 제거 (역할 기반 리스트는 스타일 제거) */
ul, ol {
  margin: 0;
  padding: 0;
}
ul[role="list"], ol[role="list"] {
  list-style: none;
}

/* 링크 기본값 */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 미디어 요소는 컨테이너에 맞춤 */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 폼 요소: 폰트 상속 + 기본 스타일 최소화 */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}
button, [type="button"], [type="submit"], [type="reset"] {
  appearance: button;
  -webkit-appearance: button;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
textarea {
  resize: vertical;
}
::placeholder {
  color: inherit;
  opacity: .6;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  padding: 0;
}

/* 테이블 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th, td {
  padding: 0;
}

/* 수평선 최소화 */
hr {
  height: 0;
  border: 0;
  border-top: 1px solid currentColor;
  opacity: .2;
  margin: 0;
}

/* details/summary 일관성 */
details {
  display: block;
}
summary {
  cursor: pointer;
}

/* 코드 계열 폰트 */
pre, code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .95em;
}

/* 위첨자/아래첨자 정렬 보정 */
sub, sup {
  position: relative;
  vertical-align: baseline;
  line-height: 0;
}
sup { top: -.5em; }
sub { bottom: -.25em; }

/* 숨김 접근성 */
[hidden] {
  display: none !important;
}

/* 포커스: 마우스 포커스 링 제거, 키보드 포커스는 유지 */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 3px solid Highlight;
  outline-offset: 2px;
}
/* 고대비 모드 대응 */
@media (forced-colors: active) {
  :focus-visible {
    outline: 2px solid CanvasText;
  }
}

/* 모션 최소화 환경 존중 */
@media (prefers-reduced-motion: reduce) {
  *:not([data-allow-motion]) {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
