

/* ==========================================================================
   [RESET] 브라우저 기본 스타일 초기화 및 일관된 렌더링 기반 설정
   ========================================================================== */

/* 1. Box Sizing 통일 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. 기본 여백 초기화 */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
figcaption,
blockquote,
dl,
dt,
dd,
ul,
ol,
li,
fieldset,
legend {
  margin: 0;
  padding: 0;
}

/* 3. HTML5 시맨틱 요소 기본 표시 정리 */
main,
header,
footer,
nav,
section,
article,
aside,
figure,
figcaption {
  display: block;
}

/* 4. 목록 및 텍스트 요소 초기화 */
ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* 5. 링크 기본 스타일 정리 */
a {
  color: inherit;
  text-decoration: none;
}

/* 6. 이미지 및 미디어 요소 반응형 처리 */
img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 7. 버튼 및 폼 입력 요소 기본 스타일 정리 */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background-color: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
}

fieldset {
  border: 0;
  min-width: 0;
}

/* 8. HTML hidden 속성 보장 (모달·슬라이드 컨트롤 등의 display 덮어쓰기 방지) */
[hidden] {
  display: none !important;
}