/*────────────────────────────────────────
  1. Reset
────────────────────────────────────────*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 1rem = 16px */
}


/*────────────────────────────────────────
  2. Custom Font (iA Writer Quattro S - CDN)
────────────────────────────────────────*/
@font-face {
  font-family: 'iAWriterQuattroSRegular';
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  /* GitHub jsDelivr CDN 주소로 직접 연결 */
  src: url('https://cdn.jsdelivr.net/gh/iaolo/iA-Fonts@master/iAWriterQuattro/Webfonts/iAWriterQuattroS-Regular.woff2') format('woff2');
}

/*────────────────────────────────────────
  3. Base Text Styles
────────────────────────────────────────*/
body {
  /* 폰트 이름은 그대로 쓰시면 됩니다 */
  font-family: 'iAWriterQuattroSRegular', sans-serif; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  padding: 0.5rem;
}
/*────────────────────────────────────────
  3. Base Text Styles
────────────────────────────────────────*/
body {
  font-family: 'iAWriterQuattroSRegular', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  padding: 0.5rem;   /* 전체 페이지 여백 */
}

a {
  color: black;
  text-decoration: none;
  cursor: url('image/question-mark-cursor.png'), pointer;
}

a:hover {
  background-color: black;
  color: white; 
}

/*────────────────────────────────────────
  4. Header Styles
────────────────────────────────────────*/
.site-header {
  display: flex;
  padding: 0.5rem 0.5rem;       /* 상하 1rem, 좌우 2rem */
}

.header-left,
.header-right {
  display: block;
  width: 100%;
}

.header-left {
  text-align: left;
}

.header-right {
  text-align: right;
}

/*────────────────────────────────────────
  5. Headline Styles
────────────────────────────────────────*/
h1, .page-title {
  margin: 1rem 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: keep-all;
  line-height: 1.2;
  font-size: 4rem;
}

/*────────────────────────────────────────
  6. Table Styles
────────────────────────────────────────*/
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px dashed #ddd;
}

th {
  cursor: pointer;
  color: blue;
  position: relative;
}

th .arrow-up,
th .arrow-down {
  display: none;
  position: absolute;
  right: 5px;
}

th.sorted-asc .arrow-up,
th.sorted-desc .arrow-down {
  display: inline-block;
}

/*────────────────────────────────────────
  7. Responsive (≤768px)
────────────────────────────────────────*/
@media (max-width: 768px) {
  html {
    font-size: 60%;         /* 1rem ≈ 12px */
  }

  .site-header {
    padding: 0.5rem 1rem;
  }

  h1, .page-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  body, th, td {
    font-size: 0.8rem;
    padding: 4px;
  }

  th, td {
    word-wrap: break-word;
    min-width: 4rem;
  }

  /* 테이블 셀 폰트 및 패딩 */
  #dataTable th,
  #dataTable td {
    font-size: 0.8rem;
    padding: 6px;
  }
}

/*────────────────────────────────────────
   8. PC에서 title/role 칸 폭 조정
────────────────────────────────────────*/
@media (min-width: 769px) {
  #dataTable {
    table-layout: fixed;
  }

  #dataTable th:nth-child(2),
  #dataTable td:nth-child(2) {
    width: 40%;
  }

  #dataTable th:nth-child(5),
  #dataTable td:nth-child(5) {
    width: 15%;
    white-space: nowrap;
  }
}

/*────────────────────────────────────────
  9. Divider Styles (연한 라인, 좁은 간격, 텍스트 보호)
────────────────────────────────────────*/

.divider-row td {
  padding: 0 !important;
  border: none !important;
  height: 40px;            /* 좁은 간격 유지 */
  vertical-align: middle;
}

.divider-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 실제 선 (::before) */
.divider-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;             /* 얇은 두께 */
  background-color: #ccc;  /* [수정] 검정(#000) -> 연한 회색(#ccc) */
  z-index: 0;
}

/* 텍스트 스타일 */
.divider-content span {
  position: relative;
  z-index: 1;
  background-color: #fff;  /* 선 가림용 배경 */
  padding: 0 20px;
  
  font-family: 'iAWriterQuattroSRegular', sans-serif;
  font-weight: normal;
  font-size: 0.85rem;
  color: #666;             /* [수정] 텍스트도 완전 검정에서 진한 회색으로 부드럽게 */
}
