/* ktapp.kr 커스텀 오버라이드 — 기존 사이트 로고/아이콘 + 가독성 + 모바일 보강 (2026-08-27) */

/* ── 헤더/모바일메뉴 로고: 기존 사이트 이미지 사용 ── */
a.brand > span { display: none !important; }
a.brand::before {
  content: "";
  display: block;
  width: 178px;
  height: 44px;
  background: url(/media/site/common/logo.png) no-repeat left center / contain;
}
.m-header a.brand::before { width: 150px; height: 38px; }

/* ── 네이버 블로그 / 카카오톡 채널 아이콘: 기존 사이트 이미지 사용 ── */
a.ext-link {
  font-size: 0 !important;
  color: transparent !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  background: transparent url(/media/site/home/naver-link.png) center / contain no-repeat !important;
}
a.ext-link.kakao { background-image: url(/media/site/home/kakao-link.png) !important; }

/* ── 가독성 ── */
body { font-size: 16px; }
.post-body { font-size: 1.03rem; }
table.board th, table.board td { padding: .95rem .6rem; }
.page-header h1 { letter-spacing: -0.02em; }
.site-footer .copyright { color: #8a8f98 !important; }

/* ── 모바일 보강 ── */
@media (max-width: 640px) {
  /* 홈 히어로 법령 표 → 카드형 세로 스택 */
  .mv-table table, .mv-table tbody, .mv-table tr, .mv-table td { display: block; width: 100%; }
  .mv-table colgroup { display: none; }
  .mv-table tr {
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
  }
  .mv-table tr:last-child { margin-bottom: 0; }
  .mv-table td {
    border: 0 !important;
    text-align: left !important;
    padding: 10px 16px !important;
    font-size: .95rem !important;
  }
  .mv-table td.ttl {
    background: rgba(255, 255, 255, .14);
    font-weight: 600 !important;
    padding: 12px 16px 10px !important;
  }
  .mv-table td.sub { padding-top: 0 !important; font-weight: 600 !important; color: #ffd766; }
  .mv-table ul { font-size: .85rem !important; }

  /* 게시판 표: 좁은 화면에서 가로 스크롤 허용 */
  table.board { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* CMS(제품소개·관련규정) 내 표도 가로 스크롤 */
  .cms table { display: block; overflow-x: auto; }

  /* 자료실 리스트 세로 스택 */
  .dl-list li { flex-direction: column; align-items: flex-start; }
  .dl-list .btn-sm { align-self: stretch; text-align: center; }

  /* 게시글 메타 줄바꿈 여유 */
  .post-meta { gap: .4rem .9rem; }
}

/* 아주 작은 화면에서 로고 축소 */
@media (max-width: 380px) {
  a.brand::before { width: 140px; height: 36px; }
}

/* ══════════ v2 (2026-08-27) ══════════ */

/* 로그인 버튼 숨김 */
.auth-login { display: none !important; }

/* 주요고객: 기존 사이트(5열, 이미지 폭 100%)와 동일 크기 */
ul.grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }
.logo-cell img { max-height: none !important; width: 100%; }
@media (max-width: 640px) {
  ul.grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* enhance.js 활성 시 Vue 기본 목록 숨김 */
body.enh-hide-board .app-main .board-toolbar,
body.enh-hide-board .app-main table.board,
body.enh-hide-board .app-main .pager { display: none !important; }

#enh-root .enh-count { color: #666; font-size: .9rem; margin-bottom: .8rem; }
#enh-root .enh-loading { padding: 3rem 0; text-align: center; color: #999; }

/* 알림 카드 목록 — 기존 news-list 스타일 재현 */
.enh-news-list { border-top: 2px solid #868686; }
.enh-news-list ul li { display: flex; padding: 20px 0; border-bottom: 1px solid #ddd; }
.enh-news-list .thumb { width: 220px; margin-right: 20px; flex: 0 0 220px; }
.enh-news-list .thumb a { display: block; position: relative; padding-bottom: 65%; overflow: hidden; }
.enh-news-list .thumb a img {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 100%; height: auto !important; min-height: 100%; object-fit: cover;
  transition: .4s ease-in-out;
}
.enh-news-list .thumb a:after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(0, 0, 0, .08);
}
.enh-news-list .thumb .noimg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f5f7fa; color: #9aa3ad; font-size: .85rem;
}
.enh-news-list .info { flex: 1 1 auto; min-width: 0; }
.enh-news-list .tit { color: #333; font-size: 18px; font-weight: 500; line-height: 1.4em; }
.enh-news-list .tit a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enh-news-list .txt {
  margin-top: 10px; color: #767676; font-size: 16px; line-height: 1.5em;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.enh-news-list .date { margin-top: 13px; color: #767676; font-size: 14px; }
.enh-news-list .date .hit { margin-left: 12px; }
.enh-news-list li.none { display: block; width: 100%; padding: 70px 0; text-align: center; color: #767676; }
@media (max-width: 640px) {
  .enh-news-list ul li { flex-direction: column; }
  .enh-news-list .thumb { width: 100%; flex: 0 0 auto; margin: 0 0 12px; }
  .enh-news-list .tit a { white-space: normal; }
}

/* FAQ 카테고리 탭 — 기존 sub5-tab 스타일 재현 */
.enh-tabs { display: flex; justify-content: center; gap: 10px; margin: 10px 0 34px; flex-wrap: wrap; list-style: none; padding: 0; }
.enh-tabs li a {
  font-size: 17px; font-weight: 500; letter-spacing: -.04em; color: #2c2c2c;
  width: 160px; height: 48px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center; background: #f1f1f1;
}
.enh-tabs li.active a, .enh-tabs li a:hover { background: #d31b1d; color: #fff; }
@media (max-width: 640px) {
  .enh-tabs li a { width: calc(50vw - 30px); max-width: 160px; font-size: 15px; height: 42px; }
}

/* FAQ 아코디언 — 기존 faq 스타일 재현 */
.enh-faq { border-top: 2px solid #868686; }
.enh-faq ul { list-style: none; padding: 0; margin: 0; }
.enh-faq ul li { border-bottom: 1px solid #ddd; }
.enh-faq .tit { color: #333; font-size: 16px; font-weight: 500; line-height: 1.5em; letter-spacing: -.02em; }
.enh-faq .tit a { position: relative; display: flex; align-items: center; padding: 12px 60px 12px 12px; }
.enh-faq .tit a:after {
  content: ""; position: absolute; right: 20px; top: 20px; width: 12px; height: 12px;
  border-right: 2px solid #aaa; border-bottom: 2px solid #aaa; transform: rotate(45deg);
}
.enh-faq .q {
  display: inline-block; margin-right: 15px; flex: 0 0 38px; width: 38px; height: 38px;
  text-align: center; color: #fff; font-size: 18px; font-weight: 500; line-height: 38px;
  background: #d31b1d; border-radius: 100%;
}
.enh-faq .cnt { display: none; padding: 23px 30px 23px 63px; color: #505050; line-height: 1.7; }
.enh-faq li.active .tit { background: #f4f4f4; }
.enh-faq li.active .tit a:after { transform: rotate(-135deg); margin-top: 6px; border-color: #555; }
.enh-faq li.active .cnt { display: block; }
.enh-faq li.none { padding: 70px 0; text-align: center; color: #999; border: 0; }
@media (max-width: 640px) {
  .enh-faq .cnt { padding: 16px 14px 18px 14px; }
}

/* ══════════ v3 (2026-08-27) ══════════ */

/* 구 사이트 반응형 클래스: 데스크톱=가로 이미지, 모바일=세로 이미지 (중복 표시 제거) */
.app-main .only-mobile { display: none !important; }
@media (max-width: 768px) {
  .app-main .only-desktop-tablet { display: none !important; }
  .app-main .only-mobile { display: block !important; }
}

/* 관련규정 화면 재구성 */
.cms .paginate { display: none !important; }             /* 구 사이트 잔여 페이지네이션 제거 */
.cms .process-box { text-align: center; margin: .5rem 0 1rem; }
.cms .process-box img { display: inline-block; max-width: 100%; }
.cms h3.doc-tit { margin-top: 2.4rem !important; }
.cms .accordion dl {
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  margin: 0 0 14px;
  overflow: hidden;
  background: #fff;
}
.cms .accordion dt {
  padding: .85rem 1.2rem;
  background: #f5f7fa;
  border-left: 4px solid #0a4d8c;
  font-weight: 600;
  color: #1a2a3a;
}
.cms .accordion dd { margin: 0; padding: .9rem 1.2rem 1rem; }
.cms .accordion dd ul { list-style: none !important; padding-left: 0 !important; margin: 0 !important; }
.cms .accordion dd li { margin: 0; }
.cms .accordion dd li a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (max-width: 640px) {
  .cms .accordion dt { padding: .75rem .9rem; font-size: .95rem; }
  .cms .accordion dd { padding: .7rem .9rem .8rem; }
}

/* enhance.js 페이저 */
.enh-pager { margin-top: 1.5rem; display: flex; gap: .3rem; justify-content: center; }
.enh-pager button { padding: .45rem .75rem; border: 1px solid #d3d8de; background: #fff; border-radius: 4px; font-size: .9rem; }
.enh-pager button.active { background: #0a4d8c; color: #fff; border-color: #0a4d8c; }
