@charset "utf-8";

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color System */
:root {
  --black: #333333;
  --white: #ffffff;
  --gray: #666666;
  --gray-light: #dddddd;
  --gray-bg: #f9fafb;
  --primary: #2d6cdf;
  --primary-dark: #1e4fab;
  --primary-deep: #0a2a66;
}

/* Base */
body {
  font-family: 'Helvetica Neue', 'Nanum Gothic', sans-serif;
  font-size: 16px;
  line-height: 1;
  color: var(--black);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

strong, b {
  font-weight: bold;
}

em, i {
  font-style: italic;
}

ol, ul {
  list-style: none;
}

/* Headings */
h1, h2, h3, h4 {
  font-size:16px;
  font-weight: bold;
}

/* Tables */
table {
  width: 100%;
  background-color: var(--white);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* Header */
#header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-deep);
}

#header h1 a {
  display: flex;
  font-size: 20px;
  font-weight: bold;
  color: var(--white);
}

/* gnb 내부 정렬: PC 기준 (기존 스타일 반영) */
#gnb .gnb {
  display: flex;
  gap: 20px;
}

#gnb .gnb ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

#gnb .gnb ul li {
  list-style: none;
}

#gnb .gnb ul li a {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: bold;
  color: var(--white);
}

#gnb .gnb ul li a:hover {
  text-decoration: underline;
}

/* 햄버거 아이콘 */
#gnb .hamburger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 23px;
  height: 18px;
  cursor: pointer;
  z-index: 9999;
  position: relative;
}

#gnb .hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.35s;
}

/* 햄버거 애니메이션 */
#hamburger {
  display: none;
}

#hamburger:checked + .hamburger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#hamburger:checked + .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

#hamburger:checked + .hamburger-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 메뉴 아이콘 */
.rs-icon {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  margin-right: 4px;
  fill: var(--white); /* 헤더가 어두우면 흰색이 잘 보임 */
}

/* Main */
#main {
  min-height: 70vh;
}

#main .entry {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
}

#main .entry p {
  margin-bottom: 1.5em;
}

#main .entry a:hover{
  text-decoration:underline;
}

#main .entry h2{
    /* margin-top: 2.2em; */
    /* margin-bottom: 0.2em; */
    font-size: 20px;
}

#main .entry h3{
    /* margin-top: 2.1em; */
    /* margin-bottom: 1.1em; */
    font-size: 18px;
}

#main .entry ol, #main .entry ul{margin-top: 0.4em;margin-bottom: 1.5em;padding-left:1.25em;}

#main .entry  ol{list-style: decimal inside}

#main .entry  ul{list-style: disc inside;}

#main .entry table:not(#rs-table):not(#sector-table) {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4em;
  margin-bottom: 1.5em;
}

#main .entry table:not(#rs-table):not(#sector-table) th,
#main .entry table:not(#rs-table):not(#sector-table) td {
  border: 1px solid var(--gray-light);
  padding: 10px 12px;
  text-align: left;
}

#main .entry table:not(#rs-table):not(#sector-table) th {
  background-color: var(--gray-bg);
  font-weight: bold;
  color: var(--black);
}

#main .entry table:not(#rs-table):not(#sector-table) tr:nth-child(even) {
  background-color: #fafafa;
}

/* Footer */
#footer {
  background: var(--primary-deep);
  text-align: center;
  font-size: 14px;
  color: var(--white);
}

/* Custom Table Font Sizes for RS */
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter{font-size:14px}
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate{font-size:14px}

#rs-table td,
#rs-table th {
  font-size: 13px;
}

#sector-table td,
#sector-table th {
  font-size: 13px;
}

/* DataTables 상단 컨트롤을 flex로 정렬 */
.dataTables_wrapper .top {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 10px;
}

/* 검색창이 너무 커지지 않도록 제한 */
.dataTables_wrapper .dataTables_filter input {
  max-width: 130px;
  width: 100%;
  box-sizing: border-box;
}

.dataTables_wrapper .dataTables_length select{margin-right:4px}

/* 줄바꿈 방지 */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  white-space: nowrap;
}

/* 검색창 input 여백 강제 조정 */
.dataTables_wrapper .dataTables_filter {
  margin-top: 0 !important;
}

/* Responsive */
@media(max-width: 768px){
	#header .container{justify-content: space-between;}
	
	#gnb .gnb {
    display: flex;
    flex-direction: column;
    background: var(--primary-deep);
    position: fixed;
    top: 0;
    right: -80%;
    width: 45%;
    height: 100vh;
    padding: 3em 1.5em;
    transition: right 0.3s ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  #hamburger:checked ~ .gnb {
    right: 0;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
  }

  #gnb .hamburger-icon {
    display: flex;
    position: fixed;
    top: 16px;
    right: 15px;
  }

  #gnb .gnb ul {
    flex-direction: column;
    gap: 12px;
  }

  #gnb .gnb ul li a {
    padding: 12px 0;
  }
}