/* 홈페이지 공통 — 게시판·비용안내 표. 모든 템플릿이 싣는다. 색은 --hp-accent (템플릿이 정한다). 2026-11-23 템플릿1 theme.css 에서 옮김 */
/* ══ 게시판 — 공통 디자인 (2026-11-09 개편: 목록·갤러리·글보기·글쓰기·비밀번호) ══
   새 이름(hp-)만 쓴다 → 옛 기관 skin CSS 와 겹치지 않는다. 강조색은 --hp-accent (기관 헤더와 같은 색) */
.hp-bd { --hp-line:#e3e7ec; --hp-line2:#cfd6de; --hp-ink:#222; --hp-sub:#6b7480; --hp-bg:#f6f8fa;
  color:var(--hp-ink); font-size:15px; line-height:1.6; margin:0 0 50px; }
.hp-bd *, .hp-bd *:before, .hp-bd *:after { box-sizing:border-box; }
.hp-bd a { color:inherit; text-decoration:none; }
.hp-muted { color:var(--hp-sub); font-size:13px; }

/* 머리: 제목 · 전체 건수 */
.hp-bd-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; padding:0 0 14px; margin:0 0 0; border-bottom:2px solid var(--hp-ink); }
.hp-bd-title { margin:0; font-size:24px; font-weight:700; letter-spacing:-0.5px; color:var(--hp-ink); }
.hp-bd-title small { font-size:16px; font-weight:500; color:var(--hp-sub); margin-left:6px; }
.hp-bd-total { color:var(--hp-sub); font-size:14px; white-space:nowrap; }
.hp-bd-total strong { color:var(--hp-accent,#19b5fe); }

/* 분류 */
.hp-bd-cate { display:flex; flex-wrap:wrap; gap:6px; padding:16px 0 4px; }
.hp-bd-cate a { padding:6px 14px; border:1px solid var(--hp-line2); border-radius:18px; font-size:14px; color:var(--hp-sub); background:#fff; }
.hp-bd-cate a:hover { border-color:var(--hp-accent,#19b5fe); color:var(--hp-accent,#19b5fe); }
.hp-bd-cate a.on { background:var(--hp-accent,#19b5fe); border-color:var(--hp-accent,#19b5fe); color:#fff; }
.hp-bd-catelabel { display:inline-block; margin-right:6px; padding:1px 8px; border-radius:3px; background:var(--hp-bg); color:var(--hp-sub); font-size:12px; vertical-align:2px; }

/* 꼬리표 */
.hp-badge { display:inline-block; margin-left:4px; padding:0 6px; border:1px solid var(--hp-line2); border-radius:3px; font-size:11px; line-height:18px; color:var(--hp-sub); vertical-align:2px; white-space:nowrap; }
.hp-badge-notice { margin:0; border-color:var(--hp-accent,#19b5fe); background:var(--hp-accent,#19b5fe); color:#fff; font-weight:600; }
.hp-badge-hot { border-color:#f2b3ad; color:#d6453a; }
.hp-cmt { color:var(--hp-accent,#19b5fe); font-size:13px; font-weight:600; margin-left:4px; }

/* 목록 */
.hp-list { width:100%; border-collapse:collapse; table-layout:fixed; margin:0; background:#fff; }
.hp-list col.c-num { width:80px; } .hp-list col.c-name { width:120px; } .hp-list col.c-date { width:110px; } .hp-list col.c-hit { width:80px; }
.hp-list th { padding:14px 8px; border-bottom:1px solid var(--hp-line2); background:#fff; color:var(--hp-sub); font-size:14px; font-weight:600; text-align:center; }
.hp-list td { padding:16px 8px; border-bottom:1px solid var(--hp-line); text-align:center; color:var(--hp-sub); font-size:14px; vertical-align:middle; }
.hp-list td.c-subject { text-align:left; padding-left:14px; }
.hp-list td.c-subject a { display:block; color:var(--hp-ink); font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hp-list td.c-subject a:hover .hp-subject-text { color:var(--hp-accent,#19b5fe); text-decoration:underline; text-underline-offset:3px; }
.hp-list tbody tr:hover td { background:#fafbfc; }
.hp-list tr.is-notice td { background:var(--hp-bg); }
.hp-list tr.is-notice td.c-subject a { font-weight:600; }
.hp-reply { color:var(--hp-sub); margin-right:4px; }
.hp-list-mmeta { display:none; }
.hp-bd-empty { padding:70px 0 !important; text-align:center; color:var(--hp-sub); }

/* 갤러리 */
.hp-gall { display:grid; grid-template-columns:repeat(var(--hp-gall-cols,4), minmax(0,1fr)); gap:28px 20px; margin:0; padding:24px 0 6px; list-style:none; }
.hp-gall-item { margin:0; padding:0; list-style:none; }
.hp-gall-link { display:block; }
.hp-gall-thumb { position:relative; display:block; aspect-ratio:var(--hp-gall-ratio, 4 / 3); overflow:hidden; border-radius:6px; background:var(--hp-bg); border:1px solid var(--hp-line); }
.hp-gall-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s; }
.hp-gall-link:hover .hp-gall-thumb img { transform:scale(1.04); }
.hp-gall-noimg { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#a3abb5; font-size:13px; }
.hp-gall-thumb .hp-badge-notice { position:absolute; left:10px; top:10px; }
.hp-gall-body { display:block; padding:12px 2px 0; }
.hp-gall-subject { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:15px; font-weight:600; line-height:1.45; min-height:2.9em; color:var(--hp-ink); }
.hp-gall-link:hover .hp-gall-subject { color:var(--hp-accent,#19b5fe); }
.hp-gall-meta { display:flex; flex-wrap:wrap; gap:0 10px; margin-top:6px; color:var(--hp-sub); font-size:13px; }
.hp-gall-meta span + span:before { content:""; display:inline-block; width:1px; height:10px; margin-right:10px; background:var(--hp-line2); vertical-align:0; }

/* 단추 */
.hp-btn { display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 18px; border:1px solid var(--hp-line2); border-radius:4px; background:#fff; color:#333 !important; font-size:14px; font-weight:500; line-height:1; cursor:pointer; text-decoration:none !important; vertical-align:middle; white-space:nowrap; transition:background .15s, border-color .15s; }
.hp-btn:hover { background:var(--hp-bg); border-color:#aeb7c2; }
.hp-btn-primary { background:var(--hp-accent,#19b5fe); border-color:var(--hp-accent,#19b5fe); color:#fff !important; }
.hp-btn-primary:hover { background:var(--hp-accent,#19b5fe); border-color:var(--hp-accent,#19b5fe); filter:brightness(0.92); }
.hp-btn-danger { color:#d6453a !important; border-color:#f0c4c0; }
.hp-btn-xs { height:26px; padding:0 9px; font-size:12px; }
.hp-bd-actions, .hp-view-actions, .hp-form-foot { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:20px 0 0; }
.hp-bd-actions > div, .hp-view-actions > div { display:flex; gap:6px; flex-wrap:wrap; }

/* 쪽 번호 (g5_paging 마크업) */
.hp-bd .pg_wrap { float:none; clear:both; display:block; margin:28px 0 0; padding:0; text-align:center; }
.hp-bd .pg { display:inline-flex; flex-wrap:wrap; justify-content:center; gap:4px; }
.hp-bd .pg_page, .hp-bd .pg_current { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 10px; border:1px solid var(--hp-line); border-radius:4px; background:#fff; color:#555; font-size:14px; line-height:1; text-decoration:none; }
.hp-bd .pg_page:hover { border-color:var(--hp-accent,#19b5fe); color:var(--hp-accent,#19b5fe); background:#fff; }
.hp-bd .pg_current { background:var(--hp-accent,#19b5fe); border-color:var(--hp-accent,#19b5fe); color:#fff; font-weight:700; }
.hp-bd .pg_start, .hp-bd .pg_prev, .hp-bd .pg_next, .hp-bd .pg_end { font-size:13px; color:var(--hp-sub); }

/* 검색 */
.hp-bd-search { display:flex; justify-content:center; align-items:center; gap:6px; margin:26px 0 0; padding:22px 16px; background:var(--hp-bg); border-radius:6px; }
.hp-bd-search select, .hp-bd-search input[type=search] { height:40px; border:1px solid var(--hp-line2); border-radius:4px; background:#fff; padding:0 10px; font-size:14px; color:var(--hp-ink); margin:0; }
.hp-bd-search select { width:120px; }
.hp-bd-search input[type=search] { width:280px; max-width:100%; }
.hp-bd-search input:focus, .hp-bd-search select:focus { outline:none; border-color:var(--hp-accent,#19b5fe); box-shadow:0 0 0 3px rgba(25,181,254,.15); }

/* 글보기 */
.hp-view-head { padding:0 0 18px; border-bottom:1px solid var(--hp-line2); border-top:2px solid var(--hp-ink); padding-top:22px; }
.hp-view-board { margin:0 0 6px; color:var(--hp-accent,#19b5fe); font-size:14px; font-weight:600; }
.hp-view-title { margin:0; font-size:24px; font-weight:700; line-height:1.4; letter-spacing:-0.5px; color:var(--hp-ink); word-break:keep-all; overflow-wrap:anywhere; }
.hp-view-meta { display:flex; flex-wrap:wrap; gap:4px 20px; margin-top:12px; color:var(--hp-sub); font-size:14px; }
.hp-view-meta em { font-style:normal; color:#9aa3ad; margin-right:6px; }
.hp-view-attach { display:flex; flex-direction:column; gap:6px; padding:14px 0; border-bottom:1px solid var(--hp-line); }
.hp-attach { display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:4px; background:var(--hp-bg); font-size:14px; overflow:hidden; }
.hp-attach:hover strong { color:var(--hp-accent,#19b5fe); text-decoration:underline; }
.hp-attach strong { font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.hp-attach-ico { flex:0 0 auto; padding:1px 7px; border-radius:3px; background:#fff; border:1px solid var(--hp-line2); font-size:11px; color:var(--hp-sub); }
.hp-attach-info { flex:0 0 auto; margin-left:auto; color:var(--hp-sub); font-size:12px; }
.hp-view-body { padding:30px 0 40px; border-bottom:1px solid var(--hp-line2); min-height:160px; }
.hp-view-imgs { display:flex; flex-direction:column; align-items:center; gap:14px; margin:0 0 24px; }
.hp-view-imgs img { display:block; height:auto; border-radius:4px; }
.hp-view-con { font-size:16px; line-height:1.85; word-break:keep-all; overflow-wrap:anywhere; }
.hp-view-con img { max-width:100%; height:auto; }
.hp-view-con table { max-width:100%; }
.hp-view-nav { margin:24px 0 0; border-top:1px solid var(--hp-line2); }
.hp-view-nav a { display:flex; align-items:center; gap:16px; padding:14px 10px; border-bottom:1px solid var(--hp-line); font-size:14px; }
.hp-view-nav a:hover span { color:var(--hp-accent,#19b5fe); text-decoration:underline; }
.hp-view-nav em { flex:0 0 60px; font-style:normal; font-weight:600; color:var(--hp-sub); }
.hp-view-nav span { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hp-view-nav time { flex:0 0 auto; color:#9aa3ad; font-size:13px; }

/* 댓글 */
.hp-cmts { margin:40px 0 0; }
.hp-cmts-title { margin:0 0 10px; font-size:17px; font-weight:700; }
.hp-cmts-title strong { color:var(--hp-accent,#19b5fe); }
.hp-cmt-item { padding:14px 0; border-top:1px solid var(--hp-line); }
.hp-cmt-item header { display:flex; align-items:center; gap:10px; font-size:14px; }
.hp-cmt-item header time { color:#9aa3ad; font-size:13px; }
.hp-cmt-item header .hp-btn { margin-left:auto; }
.hp-cmt-body { margin-top:6px; font-size:15px; }
.hp-cmt-body p { margin:0; }
.hp-cmts-empty { padding:20px 0; border-top:1px solid var(--hp-line); margin:0; }
.hp-cmt-form { margin-top:14px; padding:16px; border:1px solid var(--hp-line2); border-radius:6px; background:#fff; }
.hp-cmt-form textarea { width:100%; border:1px solid var(--hp-line2); border-radius:4px; padding:10px 12px; font-size:15px; resize:vertical; }
.hp-cmt-guest { display:flex; flex-wrap:wrap; gap:8px 16px; margin-bottom:10px; font-size:14px; color:var(--hp-sub); }
.hp-cmt-guest input { height:36px; width:160px; margin-left:6px; border:1px solid var(--hp-line2); border-radius:4px; padding:0 10px; }
.hp-cmt-form-foot { display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.hp-check { display:inline-flex; align-items:center; gap:6px; margin:0 14px 0 0; font-weight:400; font-size:14px; color:#444; cursor:pointer; }
.hp-check input { margin:0; }

/* 글쓰기 */
.hp-form { border-top:1px solid var(--hp-line2); }
.hp-form-row { display:grid; grid-template-columns:140px minmax(0,1fr); align-items:center; border-bottom:1px solid var(--hp-line); }
.hp-form-row > label, .hp-form-row > .hp-form-label { margin:0; padding:14px 16px; align-self:stretch; display:flex; align-items:center; background:var(--hp-bg); font-size:14px; font-weight:600; color:#444; }
.hp-form-row > div { padding:10px 14px; min-width:0; }
.hp-form-2 { grid-template-columns:140px minmax(0,1fr) 140px minmax(0,1fr); }
.hp-req { color:#d6453a; font-weight:700; }
.hp-form input[type=text], .hp-form input[type=password], .hp-form input[type=url], .hp-form select, .hp-form textarea { width:100%; max-width:100%; height:40px; border:1px solid var(--hp-line2); border-radius:4px; padding:0 12px; font-size:15px; background:#fff; color:var(--hp-ink); }
.hp-form textarea { height:auto; min-height:320px; padding:12px; line-height:1.7; resize:vertical; }
.hp-form select { width:auto; min-width:180px; }
.hp-form input:focus, .hp-form select:focus, .hp-form textarea:focus, .hp-cmt-form textarea:focus, .hp-cmt-guest input:focus { outline:none; border-color:var(--hp-accent,#19b5fe); box-shadow:0 0 0 3px rgba(25,181,254,.15); }
.hp-form input[type=file] { font-size:14px; }
.hp-form .hp-muted { margin:6px 0 0; }
.hp-form-foot { justify-content:center; margin-top:28px; }
.hp-form-foot .hp-btn { min-width:120px; height:46px; font-size:15px; }

/* 비밀번호 확인 */
.hp-pw { max-width:420px; margin:40px auto; padding:36px 32px; border:1px solid var(--hp-line2); border-radius:8px; text-align:center; background:#fff; }
.hp-pw h1 { margin:0 0 10px; font-size:22px; font-weight:700; }
.hp-pw p { color:var(--hp-sub); font-size:14px; margin:0 0 20px; }
.hp-pw form { display:flex; gap:6px; margin-bottom:14px; }
.hp-pw input[type=password] { flex:1; height:42px; border:1px solid var(--hp-line2); border-radius:4px; padding:0 12px; font-size:15px; }

/* 휴대폰 (767px 이하) */
@media (max-width: 767px) {
  .hp-bd { font-size:14px; }
  .hp-bd-title, .hp-view-title { font-size:20px; }
  .hp-list thead, .hp-list col, .hp-list td.c-num, .hp-list td.c-name, .hp-list td.c-date, .hp-list td.c-hit { display:none; }
  .hp-list, .hp-list tbody, .hp-list tr, .hp-list td.c-subject { display:block; width:100%; }
  .hp-list td.c-subject { padding:14px 4px; }
  .hp-list td.c-subject a { white-space:normal; }
  .hp-list tr.is-notice td.c-subject a:before { content:"공지"; display:inline-block; margin-right:6px; padding:0 6px; border-radius:3px; background:var(--hp-accent,#19b5fe); color:#fff; font-size:11px; line-height:18px; vertical-align:2px; }
  .hp-list-mmeta { display:block; margin-top:4px; color:var(--hp-sub); font-size:12px; }
  .hp-gall { grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px 12px; }
  .hp-gall-subject { font-size:14px; }
  .hp-gall-meta span:nth-child(1), .hp-gall-meta span:nth-child(3) { display:none; }
  .hp-gall-meta span + span:before { display:none; }
  .hp-bd-search { flex-wrap:wrap; padding:14px; }
  .hp-bd-search select { width:100px; } .hp-bd-search input[type=search] { flex:1; width:auto; min-width:0; }
  .hp-form-row, .hp-form-2 { grid-template-columns:1fr; }
  .hp-form-row > label, .hp-form-row > .hp-form-label { padding:10px 12px 0; background:none; }
  .hp-view-nav time, .hp-attach-info { display:none; }
}
@media (min-width: 768px) and (max-width: 991px) { .hp-gall { grid-template-columns:repeat(3, minmax(0,1fr)); } }

/* 비용안내 자동 표 (ECM 연동, 2026-11-09) — 기관 옛 표 모양(nuri_organi_table)을 그대로 쓰고 여백·줄바꿈만 덧붙인다 */
.hp-cost { margin:0 0 40px; }
.hp-cost h5 small, .hp-cost h6 small { font-size:13px; color:#888; font-weight:400; }
.hp-cost h6 { margin-top:24px; }
.hp-cost-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.hp-cost-table { min-width:520px; margin-bottom:8px; }
.hp-cost-table td, .hp-cost-table th { white-space:nowrap; vertical-align:middle !important; }
.hp-cost-table td.right { text-align:right; }
.hp-cost-table td.center { text-align:center; }
.hp-cost-table tr.hp-cost-sum td { background:#f6f9fb; }
.hp-cost-np { margin:6px 0; color:#555; font-size:14px; }
.hp-cost-note { margin-top:14px; color:#888; font-size:13px; line-height:1.6; }
