/* ===
 * 팝업 · AI 안내봇 (common/js/widget.js — 위드바톤[AI] 템플릿 이식, 이 사이트 색으로)
 * ===================================================================== */
.ds-pop { position: absolute; left: var(--x); top: var(--y); z-index: 98; width: min(var(--w), calc(100vw - 24px)); background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 70px -20px rgba(1,39,90,.5); }
.ds-pop { cursor: move; } .ds-pop.is-drag { box-shadow: 0 40px 90px -20px rgba(0,0,0,.55); }   /* 페이지와 함께 스크롤 · 마우스로 끌어 옮김 · 헤더(z 100) · 전체 메뉴(99) 아래 층 (261029) */
.ds-pop img { display: block; width: 100%; height: auto; }
.ds-pop-b { padding: 20px 22px; }
.ds-pop-b b { display: block; font-size: 18px; margin-bottom: 6px; }
.ds-pop-b p { color: var(--g7); font-size: 17px; }
.ds-pop-f { display: flex; border-top: 1px solid var(--g1); }
.ds-pop-f button { flex: 1; padding: 12px; font-size: 16px; color: var(--g5); }
.ds-pop-f button + button { border-left: 1px solid var(--g1); font-weight: 700; color: var(--ink); }
.ds-pop-v { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; background: var(--navy-d); }
.ds-pop-t { display: flex; transition: transform .45s var(--ease); }
.ds-pop-s { flex: 0 0 100%; }
.ds-pop-s img { pointer-events: none; }
.ds-pop-s a { display: block; }
.ds-pop-a { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 22px; line-height: 1; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ds-pop-a.prev { left: 10px; }
.ds-pop-a.next { right: 10px; }
.ds-pop-d { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.ds-pop-d i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s; }
.ds-pop-d i.on { width: 22px; background: #fff; }

.bot-fab { position: fixed; right: 24px; bottom: 28px; z-index: 95; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 7px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 18px 40px -14px rgba(1,39,90,.75); font-size: 17px; font-weight: 600; transition: transform .3s var(--ease), opacity .3s, visibility .3s, background .3s; }
.bot-fab:hover { background: var(--sky); transform: translateY(-3px); }
.bot-fab .av { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 16px; font-weight: 800; }
.bot-fab .av::after { content: ""; position: absolute; right: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--navy); }
.bot-fab.hide { opacity: 0; visibility: hidden; transform: scale(.8); }
.bot { position: fixed; right: 24px; bottom: 28px; z-index: 160; display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 64px)); border-radius: 6px; background: #fff; box-shadow: 0 30px 80px -20px rgba(1,39,90,.5); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px) scale(.97); transform-origin: bottom right; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.bot.open { opacity: 1; visibility: visible; transform: none; }
.bot-hd { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--navy); color: #fff; }
.bot-hd .av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 16px; font-weight: 800; }
.bot-hd b { display: block; font-size: 17px; }
.bot-hd small { display: block; font-size: 16px; color: rgba(255,255,255,.72); }
.bot-hd button { margin-left: auto; width: 40px; height: 40px; color: #fff; font-size: 28px; line-height: 1; }
.bot-log { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: auto; padding: 18px; background: var(--tint); }
.bm { max-width: 86%; padding: 12px 16px; border-radius: 4px; font-size: 17px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.bm.b { align-self: flex-start; background: #fff; box-shadow: 0 4px 14px -10px rgba(1,39,90,.4); color: var(--g7); }
.bm.u { align-self: flex-end; background: var(--navy); color: #fff; }
.bm a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.bm b { color: var(--ink); }
.bm.typing { display: flex; gap: 4px; padding: 15px 16px; }
.bm.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--g3); animation: dsBl 1s infinite; }
.bm.typing i:nth-child(2) { animation-delay: .15s; }
.bm.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dsBl { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.bot-sug { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: #fff; }
.bot-sug button { padding: 6px 12px; border: 1px solid var(--g3); border-radius: 2px; font-size: 16px; font-weight: 600; color: var(--navy); transition: border-color .2s; }
.bot-sug button:hover { border-color: var(--navy); }
.bot-in { display: flex; gap: 8px; padding: 12px 14px 8px; background: #fff; }
.bot-in input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--g3); border-radius: var(--r); font: inherit; font-size: 17px; }
.bot-in input:focus { outline: 0; border-color: var(--navy); }
.bot-in button { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--navy); color: #fff; }
.bot-in button svg { width: 20px; height: 20px; }
.bot-note { padding: 0 14px 12px; background: #fff; font-size: 16px; color: var(--g5); text-align: center; }
/* 261116 사용자: 안내봇 창(PC 도 폭 400px)은 좁아 글자 15px — PC 최소 16px 규칙의 예외(사용자 지시) */
.bm, .bot-lead-open, .bot-lead b, .bot-sug button, .bot-lead label { font-size: 15px; }
.bm.lead-ask { padding: 0; background: none; box-shadow: none; }
.bot-lead-open { min-height: 44px; padding: 0 16px; border: 1px solid var(--c1, #da1414); border-radius: 999px; background: #fff; color: var(--c1, #da1414); font-size: 15px; font-weight: 700; }
.bot-lead-open:hover { background: var(--c1, #da1414); color: #fff; }
.bot-lead { display: grid; gap: 8px; margin: 0; }
.bot-lead b { font-size: 15px; }
.bot-lead input[name] { height: 42px; padding: 0 12px; border: 1px solid var(--g3); border-radius: var(--r); font: inherit; font-size: 17px; }
.bot-lead label { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--g5); }
.bot-lead .bot-lead-pv { height: auto; padding: 0 2px; background: none; color: var(--c1, #da1414); font: inherit; font-weight: 700; text-decoration: underline; }
.bot-lead-pt { padding: 10px 12px; background: #f6f6f6; border-radius: var(--r); font-size: 15px; line-height: 1.6; color: var(--g7); }
.bot-lead-pt[hidden] { display: none; }
.bot-lead button { height: 42px; border-radius: var(--r); background: var(--navy); color: #fff; font-weight: 700; }
/* 퀵메뉴(1501px~ 오른쪽 가운데)와 겹치지 않게 아래쪽에 둔다 */
@media (max-width: 760px) {
  .ds-pop { left: 12px !important; right: 12px; top: var(--hb, 80px) !important; width: auto; cursor: auto; }
  .bot-fab { right: 14px; bottom: 74px; height: 52px; padding: 0 7px; }
  .bot-fab .av { width: 40px; height: 40px; }
  .bot-fab .txt { display: none; }
  .bot { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); }
}

/* =====================================================================
 * 게시판 개발 추가분 (261020) — 페이지 번호 처음·끝, 빈 목록, 검색 결과
 * ===================================================================== */
.pg a[aria-disabled] { opacity: .35; pointer-events: none; }
.pg .pg-btn { color: var(--g7); }
.bd-empty { padding: 80px 0; text-align: center; color: var(--g5); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--g3); }
.flt__a { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; font-size: 17px; font-weight: 600; color: var(--g5); border: 1px solid var(--g3); border-radius: 2px; background: #fff; transition: .3s; }
.flt__a:hover { color: var(--ink); border-color: var(--ink); }
.flt__a[aria-current] { color: #fff; background: var(--navy); border-color: var(--navy); }
.art__h { margin-top: 12px; font-size: clamp(30px, 2.6vw, 48px); line-height: 1.3; letter-spacing: -.045em; }
.art__files { display: flex; flex-direction: column; gap: 6px; padding: 20px 0 30px; border-top: 1px solid var(--g3); font-size: 17px; }
.art__files a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.art__files small { color: var(--g5); font-weight: 400; }
.art__none { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--g3); font-size: 17px; color: var(--g5); }
.art__none small { font-size: 16px; padding-top: 2px; }
.edt img { height: auto; }
.edt a { color: var(--navy); text-decoration: underline; }
.edt table { width: 100%; border-collapse: collapse; font-size: 17px; }
.edt th, .edt td { border: 1px solid var(--g3); padding: 10px 12px; }
@media (max-width: 760px) { .art__none { grid-template-columns: 64px 1fr; } }
/* 게시물 보기 보조 — 논문·발표 정보표, 유튜브, 원문 버튼 */
.pinfo { margin-top: 2.4em !important; border-top: 2px solid var(--ink); font-size: 17px; }
.pinfo > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--g3); }
.pinfo dt { font-weight: 700; color: var(--navy); }
.pinfo dd { color: var(--g7); word-break: break-word; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.art__out { text-align: center; }
.art__out .btn { text-decoration: none; color: #fff; }
.edt .src { font-size: 16px; color: var(--g5); }
.pub__en { margin-top: 4px !important; font-size: 16px !important; color: var(--g5); line-height: 1.5; }
@media (max-width: 760px) { .pinfo > div { grid-template-columns: 1fr; gap: 4px; } }

/* =====================================================================
 * 온라인 상담 (261020) — 스토리보드 20~21장
 * ===================================================================== */
.fm-hd { max-width: 960px; margin-left: auto; margin-right: auto; }
.fm-warn { max-width: 960px; margin: 0 auto 40px; padding: 26px 30px; background: var(--tint); border-left: 3px solid var(--sky); font-size: 17px; color: var(--g7); }
.fm-warn > b { display: block; margin-bottom: 8px; font-size: 18px; color: var(--ink); }
.fm-warn li { position: relative; padding-left: 14px; }
.fm-warn li::before { content: ""; position: absolute; left: 0; top: .8em; width: 4px; height: 4px; background: var(--sky); }
.fm-warn strong { color: var(--ink); }
.fm-err, .fm-ok { max-width: 960px; margin: 0 auto 24px; padding: 16px 20px; font-size: 17px; font-weight: 600; border-radius: var(--r); }
.fm-err { background: #fdecec; color: #b42318; }
.fm-ok { background: #e8f1fb; color: var(--navy); }
.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm-tel, .fm-mail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-tel select { width: 110px; }
.fm-tel input { width: 120px !important; }
.fm-mail input { width: 200px !important; }
.fm-mail select { width: 160px; }
.fm-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fm-file input[type="text"] { flex: 1 1 260px; width: auto; }
.fm-file__btn { position: relative; min-height: 52px; padding: 0 22px; cursor: pointer; }
.fm-file__btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fm-file .fm__help { flex-basis: 100%; margin-top: 0; }
.fm-cap { margin-top: 30px; border-top: 2px solid var(--ink); }
.agree__box { max-height: 200px; overflow: auto; padding: 18px 20px; background: #fff; border: 1px solid var(--g3); font-size: 16px; line-height: 1.8; color: var(--g7); }
.agree__rd { display: flex; gap: 24px; margin-top: 18px; font-size: 17px; font-weight: 600; }
.agree__rd label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.agree__rd input { width: 20px; height: 20px; accent-color: var(--navy); }
.qa { max-width: 960px; margin: 0 auto; }
.qa__hd { padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.qa__hd h2 { font-size: clamp(26px, 2.2vw, 40px); letter-spacing: -.04em; line-height: 1.35; }
.qa__hd .art__meta { align-items: center; }
.qa__q, .qa__a { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 34px 0; border-bottom: 1px solid var(--g3); }
.qa__a { padding-left: 30px; background: var(--tint); }
.qa__mk { display: grid; place-items: center; width: 34px; height: 34px; font-size: 17px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 2px; }
.qa__mk--a { color: var(--navy); background: #fff; border: 1px solid var(--navy); }
.qa__tx { font-size: 18px; line-height: 1.85; color: #2b2f36; word-break: break-word; }
.qa__files { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; font-size: 17px; }
.qa__files a { color: var(--navy); text-decoration: underline; }
.qa__files small { color: var(--g5); }
.qa__date { margin-top: 12px; font-size: 16px; color: var(--g5); }
.qa__wait { color: var(--g5); }
.qa-lock { max-width: 520px; margin: 0 auto; padding: 50px 40px; text-align: center; border: 1px solid var(--g3); }
.qa-lock .lock { transform: scale(2); margin: 10px 0 26px; }
.qa-lock h2 { font-size: 24px; letter-spacing: -.03em; }
.qa-lock > p { margin-top: 8px; color: var(--g7); }
.qa-lock .fm-err { margin: 18px 0 0; }
.qa-lock__in { display: flex; gap: 8px; margin-top: 24px; }
.qa-lock__in input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; font: inherit; border: 1px solid var(--g3); border-radius: var(--r); }
.qa-lock__in input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(1,66,145,.12); }
.qa-lock__back { margin-top: 24px; }
@media (max-width: 760px) {
  .fm-warn { padding: 20px; }
  .fm-tel select { width: 90px; }
  .fm-tel input { width: calc(50% - 70px) !important; min-width: 70px; }
  .fm-mail input, .fm-mail select { width: 100% !important; }
  .fm-mail > span { display: none; }
  .qa__q, .qa__a { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .qa__a { padding: 24px 18px; }
  .qa-lock { padding: 36px 20px; }
}
/* 하단 문서 (개인정보처리방침 · 이용약관) — 헤더 아래에서 시작 */
.doc .sec { padding-top: calc(var(--hd) + clamp(60px, 6vw, 110px)); }
.doc__in { max-width: 1040px; }
.doc__body { padding-top: 0; font-size: 18px; }
.doc__body table { margin-top: 1em; }
.doc__body th { background: var(--tint); text-align: left; }
.bot-fab .txt { color: #fff; }   /* 디자인의 .txt(본문 회색)와 이름이 겹침 */
/* AI 버튼 초록 점 — 동그라미 테두리를 따라 돌고, 은은하게 빛남 (261027). 움직임 줄이기 설정이면 멈춤 */
.bot-fab .av { --orb: 22px; }
.bot-fab .av::after { right: auto; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: botOrbit 4s linear infinite, botGlow 2s ease-out infinite; }
@keyframes botOrbit { from { transform: rotate(-45deg) translateX(var(--orb)) rotate(45deg); } to { transform: rotate(315deg) translateX(var(--orb)) rotate(-315deg); } }
@keyframes botGlow { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.65); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (max-width: 760px) { .bot-fab .av { --orb: 20px; } }
@media (prefers-reduced-motion: reduce) { .bot-fab .av::after { animation: none; transform: rotate(-45deg) translateX(var(--orb)) rotate(45deg); } }

/* 휴대폰은 글자 최소 14px (261029) — PC 는 최소 16px. 원래 16px 보다 작던 글자만 max(원래, 14px) 로 */
@media (max-width: 768px) {
  .ds-pop-f button { font-size: 15px; }
  .bot-fab .av { font-size: 15px; }
  .bot-hd .av { font-size: 15px; }
  .bot-hd small { font-size: 15px; }
  .bot-sug button { font-size: 15px; }
  .bot-in input, .bot-lead input[name] { font-size: 16px; }   /* 입력 칸은 16px — 15px 면 아이폰이 누를 때 화면을 확대함 */
  .bot-note { font-size: 15px; }
  .bot-lead label { font-size: 15px; }
  .art__none small { font-size: 15px; }
  .edt .src { font-size: 15px; }
  .pub__en { font-size: 15px !important; }   /* PC 쪽이 !important 라 같이 */
  .agree__box { font-size: 15px; }
  .qa__date { font-size: 15px; }
}
