/* Minimal reset */

/* 브라우저 자동 어둡게(force-dark) 이중 처리 방지 — 선언이 없으면 기기 다크 모드에서 말풍선 대비·헤더 그라데이션이 뭉개진다.
   (v4.6.0) 기본은 어둡게, 밝게 테마일 땐 theme.css 가 color-scheme: light 로 바꾼다. */
:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, form, fieldset, legend, button, input, select, textarea {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ul {
  list-style: none;
}

/* (v4.8.5) 화면 크롬의 글자 위에서 I-빔(텍스트 커서)이 뜨지 않게 — cursor 는 상속이라 body 한 곳이면 된다.
   버튼 · 링크 · 손잡이처럼 직접 cursor 를 지정한 요소와 input/textarea(브라우저 기본 text)는 그대로. 글자 선택(user-select)은 건드리지 않는다. */
body {
  cursor: default;
}

/* 상세 내용 = 읽고 드래그해 복사하는 글: 소식 팝업 카드 · 트윗 시트 번역 · 타임테이블 팝업 · 하단 디스클레이머 */
.ntc-card__tt, .ntc-card__body, .tt-pop__body, .fdisc__list,
.tws-ko__txt, .tws-ko__q {
  cursor: auto;
}

/* 터치 기기: 화면 크롬 글자를 길게 눌러도 선택되지 않게(폭이 아니라 입력 방식 기준 — PC 마우스는 그대로 드래그 선택).
   위 cursor 와 같은 상세 내용 목록 + 입력창만 선택을 남긴다(iOS 는 상속된 none 이면 입력창 타이핑이 막힌다). */
@media (pointer: coarse) {
  body {
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
  }
  .ntc-card__tt, .ntc-card__body, .tt-pop__body, .fdisc__list,
  .tws-ko__txt, .tws-ko__q, input, textarea {
    -webkit-user-select: text; user-select: text;
    -webkit-touch-callout: default;
  }
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
