/* skin/default/style.css — 디자인몽 기본 스킨 */
:root {
  --c-primary: #1d4ed8;
  --c-primary-dark: #1e40af;
  --c-text: #1f2937;
  --c-muted: #6b7280;
  --c-border: #e5e7eb;
  --c-bg: #ffffff;
  --c-bg-alt: #f8fafc;
  --radius: 12px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.dm-body {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.dm-container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.dm-narrow { max-width: 720px; }

/* 헤더 */
.dm-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--c-border); }
.dm-header__inner { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 6px 0; }
.dm-logo { font-size: 20px; font-weight: 800; color: var(--c-text); white-space: nowrap; flex-shrink: 0; }
.dm-nav { flex: 1; min-width: 0; }
.dm-nav ul { list-style: none; margin: 0; padding: 0; }
.dm-nav > ul { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.dm-nav li { position: relative; }
.dm-nav a { display: block; padding: 7px 10px; color: var(--c-text); font-weight: 600; font-size: 15px; border-radius: 8px; white-space: nowrap; }
.dm-nav a:hover { background: var(--c-bg-alt); text-decoration: none; }
.dm-nav a.dm-active { color: var(--c-primary); background: var(--c-bg-alt); font-weight: 700; }
/* 2depth 드롭다운 */
.dm-nav li ul { position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid var(--c-border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 60; }
.dm-nav li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.dm-nav li ul a { font-weight: 500; }
.dm-nav li.has-sub > a::after { content: " ▾"; font-size: 11px; color: var(--c-muted); }
.dm-nav__parent { cursor: default; }
/* 3depth 플라이아웃 */
.dm-nav li ul li ul { top: -7px; left: 100%; }
.dm-nav li ul li.has-sub > a::after { content: " ›"; }
.dm-header__tel { font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.dm-nav-toggle { display: none; font-size: 22px; background: none; border: 0; cursor: pointer; }

/* 히어로 */
.dm-hero { background: linear-gradient(135deg, #eff6ff, #f8fafc); padding: 80px 0; text-align: center; }
.dm-hero__eyebrow { color: var(--c-primary); font-weight: 700; letter-spacing: .04em; margin: 0 0 12px; }
.dm-hero__title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin: 0 0 16px; }
.dm-hero__lead { color: var(--c-muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.dm-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 섹션 */
.dm-section { padding: 64px 0; }
.dm-section--alt { background: var(--c-bg-alt); }
.dm-section__title { font-size: 28px; font-weight: 800; margin: 0 0 28px; text-align: center; }
.dm-page-head { border-bottom: 2px solid var(--c-border); padding-bottom: 16px; margin-bottom: 28px; }
.dm-page-title { font-size: 32px; font-weight: 800; margin: 0 0 24px; }

/* 콘텐츠 (AI 생성 HTML) */
.dm-content h2 { font-size: 24px; font-weight: 800; margin: 32px 0 12px; }
.dm-content h3 { font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
.dm-content p { margin: 0 0 14px; color: #374151; }
.dm-content ul { margin: 0 0 16px; padding-left: 22px; }
.dm-content li { margin: 6px 0; }

/* 카드 */
.dm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.dm-card { display: block; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; transition: .15s; color: var(--c-text); }
.dm-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-2px); text-decoration: none; }
.dm-card h3 { margin: 0 0 8px; font-size: 18px; }
.dm-card p { margin: 0; color: var(--c-muted); font-size: 14px; }

/* 버튼 */
.dm-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; border: 1px solid var(--c-border); background: #fff; font-weight: 700; cursor: pointer; color: var(--c-text); }
.dm-btn:hover { text-decoration: none; background: var(--c-bg-alt); }
.dm-btn--primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.dm-btn--primary:hover { background: var(--c-primary-dark); }

/* 폼 */
.dm-form { margin-top: 24px; }
.dm-field { margin-bottom: 18px; }
.dm-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.dm-field input, .dm-field textarea, .dm-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 10px; font-size: 15px; font-family: inherit;
}
.dm-field input:focus, .dm-field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.dm-field--check label { font-weight: 400; display: flex; align-items: center; gap: 8px; }
.dm-field--check input { width: auto; }
.dm-form__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* 정보 리스트 / 지도 */
.dm-info-list { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--c-border); }
.dm-info-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.dm-info-list strong { width: 100px; flex-shrink: 0; }
.dm-map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); }

/* 알림 */
.dm-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.dm-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* 게시판 */
.dm-board-list { width: 100%; border-collapse: collapse; margin-top: 12px; }
.dm-board-list th, .dm-board-list td { padding: 12px 10px; border-bottom: 1px solid var(--c-border); font-size: 14px; text-align: center; }
.dm-board-list th { background: var(--c-bg-alt); font-weight: 700; }
.dm-board-list__subject { text-align: left; }
.dm-empty { color: var(--c-muted); padding: 40px 0; }
.dm-view__subject { font-size: 22px; margin: 0 0 8px; }
.dm-view__meta { color: var(--c-muted); font-size: 13px; margin: 0 0 20px; }
.dm-view__content { min-height: 120px; padding: 20px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); margin-bottom: 20px; }
.dm-view__content img { max-width: 100%; height: auto; }

/* 이전/다음글 */
.dm-prevnext { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--c-border); }
.dm-prevnext li { display: flex; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.dm-prevnext span { width: 64px; flex-shrink: 0; color: var(--c-muted); font-weight: 700; }
.dm-prevnext em { color: var(--c-muted); font-style: normal; }
/* 공지 / 댓글수 */
.dm-board-list__notice { background: #fffdf5; }
.dm-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 700; }
.dm-cmt-n { color: var(--c-primary); font-weight: 700; font-size: 13px; }

/* 첨부파일 */
.dm-filelist { list-style: none; padding: 14px 16px; margin: 0 0 16px; background: var(--c-bg-alt); border-radius: 10px; }
.dm-filelist li { padding: 4px 0; font-size: 14px; }
.dm-filelist small { color: var(--c-muted); margin-left: 6px; }

/* 댓글 */
.dm-comments { margin: 24px 0; }
.dm-comments__head { font-size: 16px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--c-border); }
.dm-comments__list { list-style: none; padding: 0; margin: 0 0 20px; }
.dm-comment { padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.dm-comment__meta { font-size: 13px; margin-bottom: 6px; }
.dm-comment__meta span { color: var(--c-muted); margin-left: 8px; }
.dm-comment__body { font-size: 14px; }
.dm-comment__act { margin-top: 6px; }
.dm-comment__edit { margin-top: 10px; }
.dm-comment__edit textarea, .dm-comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 8px; font-family: inherit; font-size: 14px; }
.dm-comment-form { margin-top: 12px; background: var(--c-bg-alt); padding: 16px; border-radius: 10px; }
.dm-writer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: 10px; font-size: 14px; }
.dm-writer b { font-weight: 700; }
.dm-writer span { color: var(--c-muted); }
.dm-writer em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--c-primary); background: rgba(29,78,216,.08); padding: 3px 10px; border-radius: 20px; }
.dm-comment-form__row { display: flex; gap: 8px; margin-bottom: 8px; }
.dm-comment-form__row input { flex: 1; padding: 9px 12px; border: 1px solid var(--c-border); border-radius: 8px; }
.dm-link { background: none; border: 0; color: var(--c-muted); font-size: 13px; cursor: pointer; padding: 0 6px; }
.dm-link:hover { color: var(--c-text); }
.dm-link--danger:hover { color: #dc2626; }

/* 갤러리형 게시판 */
.dm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 12px; }
.dm-gallery__item { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.dm-gallery__item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.dm-gallery__thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--c-bg-alt) center/cover no-repeat; }
.dm-gallery__noimg { color: var(--c-muted); font-size: 13px; }
.dm-gallery__title { padding: 12px 14px 4px; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-gallery__date { padding: 0 14px 14px; color: var(--c-muted); font-size: 12px; }

/* 페이지네이션 */
.dm-pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; }
.dm-pagination a { padding: 8px 13px; border: 1px solid var(--c-border); border-radius: 8px; color: var(--c-text); }
.dm-pagination a.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* 푸터 */
/* 한 페이지 구성 — 앵커 스크롤 섹션 */
html { scroll-behavior: smooth; }
.dm-onepage-sec { scroll-margin-top: 84px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--c-border); }
.dm-onepage-sec:first-of-type { margin-top: 28px; }
.dm-onepage-sec__title { font-size: 26px; font-weight: 800; margin: 0 0 16px; }

/* 회원 폼 (로그인/회원가입/마이페이지) */
.dm-auth { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.dm-auth label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: #374151; }
.dm-auth input { padding: 11px 13px; border: 1px solid var(--c-border); border-radius: 8px; font-size: 15px; }
.dm-auth button { margin-top: 6px; }
.dm-auth__err { max-width: 460px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.dm-auth__ok { max-width: 460px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.dm-auth__alt { margin-top: 16px; color: var(--c-muted); font-size: 14px; }
.dm-auth__step { margin: 8px 0 14px; font-size: 17px; font-weight: 800; }
.dm-auth .dm-inline { display: flex; gap: 8px; align-items: center; }
.dm-auth .dm-inline input { flex: 1; }
.dm-auth .dm-inline .dm-btn { padding: 9px 14px; white-space: nowrap; }
.dm-help { font-weight: 400; color: var(--c-muted); font-size: 12px; }
.dm-check { font-size: 13px; min-height: 16px; display: inline-block; margin-top: 2px; }
.dm-check.ok { color: #16a34a; } .dm-check.err { color: #dc2626; }
.dm-strength { font-size: 13px; margin-top: 2px; display: inline-block; }
.dm-req { color: #dc2626; font-size: 12px; } .dm-opt { color: var(--c-muted); font-size: 12px; }
.dm-auth label.dm-agree { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; margin: 8px 0; }
.dm-auth label.dm-agree.dm-agree--all { font-size: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-border); margin-bottom: 4px; }
.dm-auth input[type=checkbox], .dm-auth input[type=radio] { width: auto; padding: 0; flex: none; }
.dm-social { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 4px; }
.dm-social__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 1px solid transparent; }
.dm-social__btn:hover { text-decoration: none; opacity: .92; }
.dm-social__btn--kakao { background: #FEE500; color: #191600; }
.dm-social__btn--naver { background: #03C75A; color: #fff; }
.dm-social__btn--google { background: #fff; color: #1f2937; border-color: var(--c-border); }
.dm-social__divider { text-align: center; color: var(--c-muted); font-size: 13px; margin: 18px 0 8px; }
.dm-terms { max-height: 120px; overflow-y: auto; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #4b5563; margin: 6px 0; }

/* 회원 인증 페이지 — 가운데 카드형 레이아웃 */
.dm-page-auth .dm-section { padding: 48px 0 72px; }
.dm-page-auth .dm-section > .dm-container { max-width: 460px; }
.dm-page-auth .dm-page-title { text-align: center; font-size: 26px; margin: 0 0 4px; }
.dm-page-auth .dm-auth { background: #fff; border: 1px solid var(--c-border); border-radius: 16px; padding: 30px 28px; box-shadow: 0 12px 32px rgba(15, 23, 42, .06); margin-top: 18px; }
.dm-page-auth .dm-auth__alt { text-align: center; }
.dm-steps { display: flex; gap: 8px; justify-content: center; margin: 6px 0 20px; }
.dm-steps span { font-size: 13px; color: var(--c-muted); padding: 6px 14px; border-radius: 999px; background: var(--c-bg-alt); }
.dm-steps .dm-steps__on { background: var(--c-primary); color: #fff; font-weight: 700; }
/* 푸터 회원 링크 */
.dm-footer__member { margin: 14px 0 4px; }
.dm-footer__member a { color: #cbd5e1; font-weight: 600; font-size: 14px; }
.dm-footer__member a:hover { color: #fff; }
.dm-footer__sep { color: #4b5563; margin: 0 8px; }

/* 홈 하단 첨부 이미지 */
.dm-home-imgs .dm-container { display: flex; flex-direction: column; gap: 16px; }
.dm-home-imgs img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* 홈 카테고리 계층(세분화) 그리드 */
.dm-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.dm-catgroup { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 18px 20px; }
.dm-catgroup__head { display: block; font-size: 17px; font-weight: 800; color: var(--c-text); padding-bottom: 10px; border-bottom: 1px solid var(--c-border); margin-bottom: 10px; }
.dm-catgroup__head:hover { color: var(--c-primary, #4338ca); text-decoration: none; }
.dm-catgroup__sub, .dm-catgroup__sub2 { list-style: none; margin: 0; padding: 0; }
.dm-catgroup__sub > li { margin: 6px 0; }
.dm-catgroup__sub > li > a { color: #374151; font-weight: 600; }
.dm-catgroup__sub2 { margin: 4px 0 8px 12px; padding-left: 10px; border-left: 1px dashed var(--c-border); }
.dm-catgroup__sub2 > li { margin: 3px 0; }
.dm-catgroup__sub2 > li > a { color: #6b7280; font-size: 14px; font-weight: 500; }

.dm-footer { background: #111827; color: #9ca3af; padding: 40px 0; margin-top: 40px; }
.dm-footer__name { color: #fff; font-weight: 800; font-size: 18px; margin: 0 0 10px; }
.dm-footer__info { margin: 4px 0; font-size: 14px; }
.dm-footer__copy { margin: 16px 0 0; font-size: 13px; color: #6b7280; }
.dm-footer__admin { margin: 12px 0 0; }
.dm-admin-btn { display: inline-block; padding: 6px 14px; border: 1px solid #374151; border-radius: 6px; color: #9ca3af; font-size: 13px; text-decoration: none; transition: background .15s, color .15s; }
.dm-admin-btn:hover { background: #374151; color: #fff; }

/* 반응형 */
@media (max-width: 768px) {
  .dm-nav-toggle { display: block; }
  .dm-nav { display: none; width: 100%; }
  body.nav-open .dm-nav { display: block; }
  .dm-header__inner { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .dm-nav > ul { flex-direction: column; gap: 0; }
  /* 모바일: 드롭다운 대신 들여쓰기로 펼쳐 표시 */
  .dm-nav li ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .dm-nav li.has-sub > a::after, .dm-nav li ul li.has-sub > a::after { content: ""; }
  .dm-header__tel { order: -1; margin-left: auto; }
}

/* ============================================================
   게시판 리디자인 (목록·검색·상세·댓글·첨부) — 정돈된 한국형 보드 UI
   ============================================================ */
.dm-board { --bd: #e8ebf0; --ink: #20242c; --sub: #8a909c; }
.dm-page-title { letter-spacing: -.02em; }

/* 검색바 */
.dm-search { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 4px 0 14px; }
.dm-search select, .dm-search input[type=text] {
  height: 42px; padding: 0 14px; border: 1px solid var(--c-border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.dm-search input[type=text] { min-width: 200px; }
.dm-search select:focus, .dm-search input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.dm-search .dm-btn { height: 42px; padding: 0 20px; display: inline-flex; align-items: center; }

/* 목록 상단 바 (총건수 / 정렬) */
.dm-listbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; padding: 0 2px; font-size: 13px; color: var(--c-muted); }
.dm-listbar__total { font-weight: 600; }
.dm-listbar__total strong, .dm-listbar__total b { color: var(--c-primary); }
.dm-listbar__sort a { color: var(--c-muted); padding: 4px 8px; border-radius: 7px; }
.dm-listbar__sort a.on { color: var(--c-primary); background: rgba(29,78,216,.08); font-weight: 700; }
.dm-listbar__sort a:hover { text-decoration: none; background: var(--c-bg-alt); }

/* 목록 테이블 — 가벼운 행 구분선, 넉넉한 행 높이 */
.dm-board-list { border-top: 2px solid var(--ink, #20242c); }
.dm-board-list thead th { background: transparent; color: var(--c-muted); font-weight: 600; font-size: 13px; padding: 12px 10px; border-bottom: 1px solid var(--c-border); }
.dm-board-list td { padding: 15px 10px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
.dm-board-list tbody tr { transition: background .12s; }
.dm-board-list tbody tr:hover { background: #fafbfc; }
.dm-board-list__subject { text-align: left; }
.dm-board-list__subject a { color: #20242c; font-weight: 600; }
.dm-board-list__subject a:hover { color: var(--c-primary); text-decoration: none; }
.dm-board-list__notice { background: linear-gradient(0deg, #fff8ee, #fffdf8); }
.dm-board-list__notice:hover { background: #fff6e6; }
.dm-badge { background: #f97316; box-shadow: 0 1px 2px rgba(249,115,22,.3); letter-spacing: -.02em; }
.dm-cmt-n { color: var(--c-primary); background: rgba(29,78,216,.08); padding: 1px 7px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* 상세 보기 */
.dm-view { border-top: 2px solid #20242c; padding-top: 24px; }
.dm-view__subject { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.dm-view__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--c-border); }
.dm-view__content { border: 0; padding: 28px 2px 32px; font-size: 16px; line-height: 1.85; min-height: 140px; }

/* 첨부 — 카드형 칩 목록 */
.dm-filelist { padding: 4px; background: transparent; display: flex; flex-direction: column; gap: 8px; }
.dm-filelist li { display: flex; align-items: center; gap: 4px; padding: 11px 14px; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: 10px; font-size: 14px; }
.dm-filelist a { font-weight: 600; }

/* 이전·다음글 */
.dm-prevnext { border-top: 1px solid var(--c-border); }
.dm-prevnext li { align-items: center; }
.dm-prevnext span { font-size: 12px; color: var(--c-muted); font-weight: 700; }
.dm-prevnext a:hover { color: var(--c-primary); }

/* 댓글 */
.dm-comments__head { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.dm-comments__head::before { content: "💬 "; }
.dm-comment { display: block; padding: 16px 0; }
.dm-comment__meta b { font-weight: 700; color: #20242c; }
.dm-comment__body { line-height: 1.7; margin-top: 2px; }
.dm-comment-form { border: 1px solid var(--c-border); background: #fcfcfd; border-radius: 14px; padding: 16px; }
.dm-comment-form textarea:focus, .dm-comment__edit textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }

/* 버튼 톤 정리 — 더 단단하고 차분하게 */
.dm-btn { border-radius: 10px; font-size: 14px; padding: 11px 20px; transition: background .12s, border-color .12s, transform .04s; }
.dm-btn:active { transform: translateY(1px); }
.dm-btn--danger { background: #fff; border-color: #f3c9c9; color: #d64545; }
.dm-btn--danger:hover { background: #fdf1f1; }

/* 페이지네이션 — 동그란 현재 페이지 */
.dm-pagination a, .dm-pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; }
.dm-pagination .on, .dm-pagination .current, .dm-pagination strong { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* 갤러리 — 살짝 더 부드럽게 */
.dm-gallery__item { border-radius: 14px; }
/* 관리자 일괄삭제 툴바 / 체크박스 */
.dm-btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.dm-bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 10px; background: #f1f5f9; border: 1px solid var(--c-border); border-radius: 10px; font-size: 14px; }
.dm-bulkbar label { display: flex; align-items: center; gap: 7px; font-weight: 600; cursor: pointer; }
.dm-bulkbar__sp { flex: 1; }
.dm-board-list td input[type=checkbox], .dm-bulkbar input[type=checkbox] { width: 17px; height: 17px; }
.dm-gallery__cell { position: relative; }
.dm-gallery__chk { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255,255,255,.9); border-radius: 6px; padding: 3px; line-height: 0; box-shadow: 0 1px 4px rgba(0,0,0,.15); cursor: pointer; }
.dm-gallery__chk input { width: 18px; height: 18px; display: block; cursor: pointer; }
.dm-gallery__thumb { aspect-ratio: 1 / 1; }

/* 게시판 모바일 대응 */
@media (max-width: 640px) {
  .dm-section { padding: 36px 0; }
  .dm-board-list thead { display: none; }
  .dm-board-list, .dm-board-list tbody, .dm-board-list tr, .dm-board-list td { display: block; width: 100%; }
  .dm-board-list tr { padding: 14px 4px; border-bottom: 1px solid var(--c-border); position: relative; }
  .dm-board-list td { border: 0; padding: 2px 4px; text-align: left; }
  .dm-board-list__subject a { font-size: 16px; }
  .dm-board-list td:first-child { position: absolute; right: 4px; top: 14px; color: var(--c-muted); font-size: 12px; padding: 0; }
  .dm-board-list td:nth-child(n+3):not(.dm-board-list__subject) { display: inline-block; width: auto; color: var(--c-muted); font-size: 12px; margin-right: 12px; }
  .dm-search { justify-content: stretch; }
  .dm-search input[type=text] { flex: 1; min-width: 0; }
  .dm-view__subject { font-size: 20px; }
}
