/* =========================================================
   SE Global Reset
   Tailwind Preflight 기반 + Gnuboard 기본 스타일 초기화
========================================================= */

/* -----------------------------------------
   Box sizing
----------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

*::before,
*::after {
  --tw-content: "";
}

/* -----------------------------------------
   Document
----------------------------------------- */

html {
  width: 100%;
  min-height: 100%;

  line-height: 1.5;

  font-family:
    "Pretendard",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-feature-settings: normal;
  font-variation-settings: normal;

  tab-size: 4;

  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;

  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;

  color: #111827;
  background-color: #ffffff;

  font-family: inherit;
  font-size: 16px;
  line-height: inherit;

  word-break: keep-all;
  overflow-wrap: break-word;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -----------------------------------------
   Typography
----------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;

  color: inherit;

  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

p,
blockquote,
figure,
pre {
  margin: 0;
  padding: 0;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

sub,
sup {
  position: relative;

  font-size: 75%;
  line-height: 0;

  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

abbr:where([title]) {
  text-decoration: underline dotted;
}

code,
kbd,
samp,
pre {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 1em;
}

/* -----------------------------------------
   Links
----------------------------------------- */

a {
  color: inherit;
  background-color: transparent;
  text-decoration: none;
}

a:hover,
a:focus,
a:active,
a:visited {
  color: inherit;
  text-decoration: none;
}

/* -----------------------------------------
   Lists
----------------------------------------- */

ol,
ul,
menu {
  margin: 0;
  padding: 0;

  list-style: none;
}

/* -----------------------------------------
   Definition lists
----------------------------------------- */

dl,
dt,
dd {
  margin: 0;
  padding: 0;
}

/* -----------------------------------------
   Horizontal rule
----------------------------------------- */

hr {
  height: 0;
  margin: 0;

  color: inherit;

  border-top-width: 1px;
}

/* -----------------------------------------
   Tables
----------------------------------------- */

table {
  border-collapse: collapse;
  border-spacing: 0;
  border-color: inherit;

  text-indent: 0;
}

caption,
th,
td {
  padding: 0;
}

th {
  font-weight: inherit;
  text-align: inherit;
}

/* -----------------------------------------
   Forms
----------------------------------------- */

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  padding: 0;

  color: inherit;
  background-color: transparent;

  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  appearance: button;
  -webkit-appearance: button;

  border: 0;
  background-color: transparent;
  background-image: none;

  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: default;
}

input,
textarea,
select,
button {
  border-radius: 0;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;

  border: 0;
}

legend {
  padding: 0;
}

progress {
  vertical-align: baseline;
}

summary {
  display: list-item;
}

[type="search"] {
  appearance: textfield;
  -webkit-appearance: textfield;

  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

::-webkit-file-upload-button {
  appearance: button;
  -webkit-appearance: button;

  font: inherit;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

/* -----------------------------------------
   Media
----------------------------------------- */

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;

  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

img {
  border-style: none;
}

svg {
  overflow: visible;
}

/* -----------------------------------------
   Interactive elements
----------------------------------------- */

button,
[role="button"] {
  cursor: pointer;
}

dialog {
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* -----------------------------------------
   Accessibility
----------------------------------------- */

:focus-visible {
  outline: 2px solid #023da5;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Gnuboard Reset
========================================================= */

/* 그누보드 기본 콘텐츠 폭과 여백 방어 */
#hd,
#hd_wrapper,
#wrapper,
#container,
#container_wr,
#ft,
#ft_wr {
  box-sizing: border-box;
}

/* 그누보드가 삽입하는 링크 색상 제거 */
#hd a,
#hd a:visited,
#wrapper a,
#wrapper a:visited,
#container a,
#container a:visited,
#ft a,
#ft a:visited {
  color: inherit;
  text-decoration: none;
}

/* 제목과 문단의 기본 여백 제거 */
#hd h1,
#hd h2,
#hd h3,
#hd h4,
#hd h5,
#hd h6,
#hd p,
#wrapper h1,
#wrapper h2,
#wrapper h3,
#wrapper h4,
#wrapper h5,
#wrapper h6,
#wrapper p,
#container h1,
#container h2,
#container h3,
#container h4,
#container h5,
#container h6,
#container p,
#ft h1,
#ft h2,
#ft h3,
#ft h4,
#ft h5,
#ft h6,
#ft p {
  margin: 0;
  padding: 0;
}

/* 그누보드 이미지 스타일 방어 */
#hd img,
#wrapper img,
#container img,
#ft img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 그누보드 목록 기본 스타일 방어 */
#hd ul,
#hd ol,
#wrapper ul,
#wrapper ol,
#container ul,
#container ol,
#ft ul,
#ft ol {
  margin: 0;
  padding: 0;

  list-style: none;
}

/* 그누보드 버튼 스타일 방어 */
#hd button,
#wrapper button,
#container button,
#ft button {
  color: inherit;
  background: transparent;

  font: inherit;
}

/* 그누보드가 사용하는 float 이후 레이아웃 방어 */
.clearfix::after,
.clr::after {
  content: "";
  display: block;
  clear: both;
}

/* 화면 밖 제목 등 접근성 요소 */
.sound_only,
.sr-only {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;

  overflow: hidden !important;

  border: 0 !important;

  white-space: nowrap !important;

  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
}

/* 그누보드 스킵 내비게이션 */
#skip_to_container {
  position: relative;
  z-index: 99999;
}

#skip_to_container a {
  position: absolute;
  top: -100px;
  left: 0;

  padding: 10px 16px;

  background: #111827;
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;
}

#skip_to_container a:focus {
  top: 0;
}

/* =========================================================
   Project Base Protection
========================================================= */

#se-global,
.site-wrap {
  width: 100%;
  min-height: 100%;
}

main {
  display: block;
}

section {
  display: block;
}

picture {
  display: block;
}

iframe {
  border: 0;
}