/* 자동 생성 파일 — 고치지 말 것. 원본: src/app/globals.css · 생성: scripts/gen-static-css.mjs */
/* 스타 칼럼용 프리미엄 폰트 — 본문 Pretendard, 제목 Noto Serif KR */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@500;600;700&display=swap");

:root {
  --background: #ffffff;
  --foreground: #2f2f2f;
  --brand: #5432cb; /* 디자인스타 브랜드 보라 */
  --brand-dark: #3f2599;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-brand: var(--brand);
  --color-brand-dark: var(--brand-dark);
  --font-sans: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

/* 원본 사이트는 라이트 테마 고정 — 다크모드 미적용 */
body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 게시판 본문(워드프레스에서 옮겨온 HTML) 기본 가독성 */
.post-body {
  line-height: 1.8;
  word-break: keep-all;
}
.post-body img {
  max-width: 100%;
  height: auto;
  margin: 0.5rem 0;
  border-radius: 6px;
}
.post-body p {
  margin: 0.75rem 0;
}
.post-body a {
  color: var(--brand);
  text-decoration: underline;
}

/* ── 원본 테마 CSS 와의 충돌 보정 (동적 페이지 콘텐츠 영역) ──
   원본 WordPress 테마의 비계층 CSS 가 Tailwind 유틸을 덮어써서,
   .ds-main 안에서 핵심 유틸을 특정도+!important 로 다시 세운다. */
.ds-main .bg-brand { background-color: var(--brand) !important; }
.ds-main .bg-brand-dark { background-color: var(--brand-dark) !important; }
.ds-main .text-white { color: #fff !important; }
.ds-main .text-brand { color: var(--brand) !important; }
.ds-main .text-gray-400 { color: #9ca3af !important; }
.ds-main .text-gray-500 { color: #6b7280 !important; }
.ds-main .text-gray-700 { color: #374151 !important; }
.ds-main .text-red-600 { color: #dc2626 !important; }

/* 관리자 등 일반 표(게시판 KBoard 표는 제외) */
.ds-main table:not(.kboard-list table) { width: 100%; }
.ds-main .rounded-lg,
.ds-main .rounded-xl,
.ds-main .rounded-2xl { border-radius: 12px; }
.ds-main a.bg-brand,
.ds-main button.bg-brand { color: #fff !important; display: inline-block; }
.ds-main input,
.ds-main textarea { background: #fff; }

/* ── 로그인·회원가입 카드 (테마 CSS 영향 없이 가운데 정렬) ── */
.ds-auth-wrap { display: flex; justify-content: center; padding: 30px 16px 60px; }
.ds-auth-card {
  width: 100%; max-width: 400px; background: #fff;
  border: 1px solid #ececec; border-radius: 14px; padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(47,52,48,0.06);
}
.ds-auth-title { font-size: 26px; font-weight: 800; text-align: center; margin: 0 0 24px; color: #2f2f2f; }
.ds-auth-error { background: #fef2f2; color: #dc2626; font-size: 14px; padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; }
.ds-auth-label { display: block; font-size: 13px; color: #6b7280; margin: 14px 0 6px; }
.ds-auth-input {
  display: block; width: 100%; box-sizing: border-box;
  border: 1px solid #d1d5db !important; border-radius: 8px !important;
  padding: 12px 14px !important; font-size: 16px; background: #fff !important; color: #2f2f2f;
}
.ds-auth-input:focus { outline: none; border-color: var(--brand) !important; }
.ds-auth-agree { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #6b7280; margin: 16px 0 0; }
.ds-auth-btn {
  display: block; width: 100%; margin-top: 22px;
  background: var(--brand) !important; color: #fff !important;
  border: none !important; border-radius: 8px !important;
  padding: 13px 0 !important; font-size: 16px; font-weight: 600; cursor: pointer;
}
.ds-auth-btn:hover { background: var(--brand-dark) !important; }
.ds-auth-sub { font-size: 13px; color: #9ca3af; text-align: center; margin: 16px 0 0; line-height: 1.6; }
.ds-auth-links { font-size: 14px; text-align: center; margin: 14px 0 0; color: #6b7280; }
.ds-auth-links a { color: var(--brand); }
.ds-auth-hint { font-size: 12px; color: #9ca3af; text-align: center; margin: 12px 0 0; }

/* 동적 페이지 본문 영역을 넓혀 가운데 균형 맞춤(원본 테마 800px → 1140px) */
#main .container { max-width: 1140px !important; margin-left: auto !important; margin-right: auto !important; }

/* 플로팅 빠른메뉴: 다른 페이지(소개 등)처럼 오른쪽 끝에 붙인다 */
.quickmenu { right: 0 !important; }

/* 페이지네이션 — 테마/스킨 CSS 충돌 없이 가운데 가로 버튼으로 강제 */
.ds-main .kboard-pagination-pages { text-align: center !important; width: 100% !important; list-style: none !important; padding: 24px 0 !important; margin: 0 !important; }
.ds-main .kboard-pagination-pages li { display: inline-block !important; margin: 0 3px !important; padding: 0 !important; background: none !important; }
.ds-main .kboard-pagination-pages li:before, .ds-main .kboard-pagination-pages li:after { display: none !important; }
.ds-main .kboard-pagination-pages li a { display: inline-block !important; min-width: 20px; padding: 7px 13px !important; color: #666 !important; background: #f5f5f5 !important; border-radius: 6px !important; text-decoration: none !important; font-size: 14px; line-height: 1 !important; height: auto !important; }
.ds-main .kboard-pagination-pages li a:hover { background: #ececec !important; }
.ds-main .kboard-pagination-pages li.active a { background: var(--brand) !important; color: #fff !important; font-weight: 600; }

/* 글쓰기 등 일반 폼 (테마 CSS 영향 없이 깔끔하게) */
.ds-form-wrap { max-width: 720px; margin: 0 auto; }
.ds-form-title { font-size: 24px; font-weight: 800; margin: 0 0 20px; color: #2f2f2f; }
.ds-field { margin-bottom: 16px; }
.ds-field > label { display: block; font-size: 14px; color: #6b7280; margin-bottom: 6px; }
.ds-form input[type="text"], .ds-form input:not([type]), .ds-form textarea {
  display: block !important; width: 100% !important; box-sizing: border-box !important;
  border: 1px solid #d1d5db !important; border-radius: 8px !important;
  padding: 12px 14px !important; font-size: 16px !important; background: #fff !important;
  box-shadow: none !important; height: auto !important; color: #2f2f2f !important;
}
.ds-form textarea { min-height: 220px; resize: vertical; }
.ds-form input:focus, .ds-form textarea:focus { outline: none; border-color: var(--brand) !important; }
.ds-field-hint { font-size: 12px; color: #9ca3af; margin: 6px 0 0; }
.ds-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #6b7280; margin: 16px 0; }
.ds-form-actions { display: flex; gap: 10px; margin-top: 22px; }
.ds-submit {
  background: var(--brand) !important; color: #fff !important; border: none !important;
  border-radius: 8px !important; padding: 12px 28px !important; font-size: 15px; font-weight: 600;
  cursor: pointer; box-shadow: none !important;
}
.ds-submit:hover { background: var(--brand-dark) !important; }
.ds-cancel {
  display: inline-block; border: 1px solid #d1d5db !important; border-radius: 8px;
  padding: 12px 24px; color: #6b7280 !important; background: #fff; text-decoration: none;
}

/* 동적 페이지 상단 메뉴를 홈과 동일하게 전체 너비로 퍼지게 (홈은 max-width:90%, 동적은 800px 로 쏠려 있었다) */
.ds-dynamic #site-navigation { width: 90% !important; max-width: 1300px !important; margin-left: auto !important; margin-right: auto !important; float: none !important; }

/* 게시판 표 헤더의 어색한 | 구분선(::after) 제거 — 번호 칸이 좁아 홀로 떠 보이는 문제 */
.ds-main .kboard-list thead td::after,
.ds-main .kboard-list thead td::before { display: none !important; content: none !important; }
/* 표 헤더 셀 정렬 정돈 */
.ds-main .kboard-list thead td { padding: 14px 10px !important; }


/* ===== 게시판 (자체 코드 · 워드프레스 빌더 의존 없음) ===== */
.dsb { color: #2f2f2f; }

/* 섹션 서브메뉴 (다크바, 전체너비) — 원본(치료 전후사진) 높이·위치에 맞춤 */
.dsb-submenu {
  width: 100vw; position: relative; left: 50%; margin-left: -50vw;
  margin-top: -30px; /* container 상단 패딩(30px)을 상쇄해 헤더에 바로 붙인다 */
  background: #3a3447;
}
.dsb-submenu ul {
  max-width: 1260px; margin: 0 auto; padding: 0; list-style: none;
  display: flex; transform: translateX(-15px); /* 진짜 사이트의 15px 좌측 오프셋에 맞춤 */
}
.dsb-submenu li { margin: 0; padding: 0; flex: 1 1 0; text-align: center; }
.dsb-submenu li a {
  display: block; padding: 24px 6px; line-height: 22px; color: #cfc9db; font-size: 14px; text-decoration: none;
}
.dsb-submenu li a:hover { color: #fff; }
.dsb-submenu li.active a { background: var(--brand); color: #fff; }

/* 탭 */
.dsb-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.dsb-tabs a {
  padding: 10px 20px; color: #555; font-size: 15px; text-decoration: none; border-radius: 6px;
}
.dsb-tabs a:hover { color: var(--brand); }
.dsb-tabs a.active { background: var(--brand); color: #fff; font-weight: 600; }

/* 히어로 배너 */
.dsb-hero {
  margin-top: 26px; min-height: 300px; border-radius: 4px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.dsb-hero::before { content: ''; position: absolute; inset: 0; background: rgba(20,18,30,0.28); }
.dsb-hero-inner { position: relative; padding: 0 48px; color: #fff; }
.dsb-hero-bar { display: block; width: 90px; height: 4px; background: var(--brand); margin-bottom: 20px; }
.dsb-hero-title { font-size: 32px; font-weight: 700; margin: 0 0 8px; color: #fff; letter-spacing: 1px; }
.dsb-hero-sub { font-size: 24px; font-weight: 300; margin: 0; color: rgba(255,255,255,0.92); }

/* 목록 영역 */
.dsb-list { margin-top: 30px; }
.dsb-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; min-height: 1px; }
.dsb-write {
  display: inline-block; padding: 10px 24px; background: var(--brand); color: #fff; border-radius: 6px;
  font-size: 15px; text-decoration: none;
}
.dsb-write:hover { opacity: .92; }
.dsb-empty { padding: 48px 0; text-align: center; color: #999; }
.dsb-lock { margin-right: 4px; }

/* 표 */
.dsb-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dsb-table thead th {
  background: #4a4458; color: #fff; font-weight: 500; font-size: 15px;
  padding: 16px 10px; text-align: center;
}
.dsb-table thead th:nth-child(2) { text-align: left; padding-left: 20px; }
.dsb-table tbody td { padding: 16px 10px; border-bottom: 1px solid #eee; font-size: 15px; text-align: center; color: #555; }
.dsb-table tbody td.dsb-c-title { text-align: left; padding-left: 20px; }
.dsb-table tbody td.dsb-c-title a { color: #333; text-decoration: none; }
.dsb-table tbody td.dsb-c-title a:hover { color: var(--brand); }
.dsb-table tbody tr.dsb-notice { background: #faf9fc; }
.dsb-table tbody tr:hover { background: #fafafa; }
.dsb-c-no { width: 90px; }
.dsb-c-title { width: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsb-c-author { width: 150px; }
.dsb-c-status { width: 110px; }
.dsb-c-date { width: 130px; }
.dsb-c-view { width: 80px; }
.dsb-table td.dsb-c-author, .dsb-table td.dsb-c-status { text-align: center; }
.dsb-waiting { color: #e57; font-size: 13px; }
.dsb-answered { color: var(--brand); font-size: 13px; font-weight: 600; }

/* 포럼형 목록 (치료후기) */
.dsb-forum { list-style: none; margin: 0; padding: 0; border-top: 2px solid #4a4458; }
.dsb-forum-item { display: flex; align-items: center; gap: 24px; padding: 22px 10px; border-bottom: 1px solid #eee; }
.dsb-forum-item:hover { background: #fafafa; }
.dsb-forum-body { flex: 1 1 auto; min-width: 0; text-decoration: none; display: block; }
.dsb-forum-title { font-size: 17px; font-weight: 600; color: #333; margin-bottom: 8px; }
.dsb-forum-excerpt { font-size: 14px; color: #888; line-height: 1.6; max-height: 3.2em; overflow: hidden; }
.dsb-forum-side { flex: 0 0 150px; text-align: right; }
.dsb-forum-author { color: #555; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.dsb-forum-date { font-size: 13px; color: #aaa; }
.dsb-forum-date-label { margin-right: 6px; color: #bbb; }

/* 페이지네이션 */
.dsb-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.dsb-pagination a, .dsb-pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border: 1px solid #ddd; border-radius: 4px; color: #555; text-decoration: none; font-size: 14px;
}
.dsb-pagination a:hover { border-color: var(--brand); color: var(--brand); }
.dsb-pagination span.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 모바일 */
@media (max-width: 768px) {
  .dsb-submenu li a { padding: 12px 14px; font-size: 13px; }
  .dsb-hero { min-height: 220px; }
  .dsb-hero-inner { padding: 0 24px; }
  .dsb-hero-title { font-size: 22px; }
  .dsb-hero-sub { font-size: 16px; }
  .dsb-c-author, .dsb-c-view, .dsb-c-status { display: none; }
  .dsb-table thead th:nth-child(3), .dsb-table thead th:nth-child(5) { display: none; }
}

/* 포럼 카드 링크: 마우스 올려도 본문에 밑줄 안 생기게, 제목만 색 변경 */
.dsb-forum-body, .dsb-forum-body:hover { text-decoration: none; }
.dsb-forum-title, .dsb-forum-excerpt { text-decoration: none !important; }
.dsb-forum-body:hover .dsb-forum-title { color: var(--brand); }

/* 플로팅 빠른메뉴: 아이콘이 왼쪽으로 쏠리지 않게 가운데 정렬 */
.quickmenu li a { text-align: center; }
.quickmenu li a img { display: block; margin: 0 auto 6px; }

/* 게시판 글 상세 */
.dsb-detail { max-width: 860px; margin: 30px auto 0; }
.dsb-detail-back { display: inline-block; color: var(--brand); text-decoration: none; font-size: 14px; }
.dsb-detail-back:hover { text-decoration: underline; }
.dsb-detail-table { margin-top: 14px; border-top: 2px solid #4a4458; border-bottom: 1px solid #ddd; }
.dsb-detail-row { display: flex; border-bottom: 1px solid #eee; }
.dsb-detail-row:last-child { border-bottom: none; }
.dsb-detail-label { flex: 0 0 120px; padding: 14px 16px; background: #f7f6fa; color: #666; font-size: 14px; font-weight: 600; }
.dsb-detail-value { flex: 1 1 auto; padding: 14px 16px; color: #333; font-size: 15px; }
.dsb-detail-value-title { font-weight: 700; }
.dsb-detail-body { padding: 28px 4px; min-height: 120px; line-height: 1.8; color: #333; font-size: 16px; }
.dsb-detail-body img { max-width: 100%; height: auto; }
.dsb-detail-locked { margin: 40px 0; padding: 40px; text-align: center; color: #888; background: #faf9fc; border-radius: 8px; }
.dsb-detail-locked-login { margin-top: 12px; font-size: 14px; }
.dsb-detail-locked-login a { color: var(--brand); text-decoration: underline; }
.dsb-detail-replies { margin-top: 30px; border-top: 1px solid #eee; padding-top: 24px; }
.dsb-detail-replies h2 { font-size: 15px; font-weight: 600; color: #666; margin: 0 0 14px; }
.dsb-detail-reply { background: #f7f5fb; border-left: 3px solid var(--brand); border-radius: 0 6px 6px 0; padding: 16px 18px; margin-bottom: 12px; }
.dsb-detail-reply-meta { font-size: 13px; color: #999; margin-bottom: 8px; }
.dsb-detail-reply-locked { font-size: 14px; color: #888; }
.dsb-detail-reply-admin { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.dsb-detail-reply-admin .dsb-act-btn { padding: 6px 13px; font-size: 13px; }
.dsb-detail-foot { margin-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dsb-detail-list-btn { display: inline-block; padding: 11px 36px; background: #4a4458; color: #fff; border-radius: 6px; text-decoration: none; font-size: 15px; }
.dsb-detail-list-btn:hover { opacity: .92; }

/* 404 페이지 (없는 주소) */
.dsb-notfound { max-width: 640px; margin: 40px auto; padding: 60px 20px; text-align: center; }
.dsb-notfound-code { font-size: 72px; font-weight: 800; color: var(--brand); line-height: 1; }
.dsb-notfound-title { font-size: 24px; font-weight: 700; color: #333; margin: 18px 0 10px; }
.dsb-notfound-desc { font-size: 16px; color: #777; margin: 0 0 28px; }
.dsb-notfound-links { display: flex; justify-content: center; gap: 10px; }
.dsb-notfound-home { display: inline-block; padding: 12px 32px; background: var(--brand); color: #fff; border-radius: 6px; text-decoration: none; font-size: 15px; }
.dsb-notfound-home:hover { opacity: .92; }

/* 글 상세: 이전글/다음글 네비 */
.dsb-detail-navi { margin-top: 36px; border-top: 1px solid #ddd; }
.dsb-navi-row { display: flex; align-items: center; gap: 18px; padding: 15px 8px; border-bottom: 1px solid #eee; }
.dsb-navi-label { flex: 0 0 60px; font-size: 14px; font-weight: 600; color: #888; }
.dsb-navi-title { flex: 1 1 auto; min-width: 0; color: #444; text-decoration: none; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsb-navi-title:hover { color: var(--brand); }
.dsb-navi-none { flex: 1 1 auto; color: #bbb; font-size: 14px; }

/* 게시판 페이지: 상단 메뉴에서 현재 섹션(소통하기=menu-item-21)을 켜고, 추출한 헤더가 잘못 켜둔 항목은 끈다 (진짜 사이트와 동일) */
body:has(.dsb) #site-navigation .current-menu-item > a,
body:has(.dsb) #site-navigation .current_page_item > a,
body:has(.dsb) #site-navigation .current-menu-parent > a,
body:has(.dsb) #site-navigation .current-menu-ancestor > a { color: inherit !important; }
body:has(.dsb) #site-navigation .menu-item-21 > a,
body:has(.dsb) #site-navigation .menu-item-21 > a .link-inner { color: #9c1ddd !important; }

/* 동적 페이지 헤더: 전화번호 이미지를 진짜 사이트와 같은 위치로 (추출 헤더가 21px 낮고 8px 왼쪽) */
.ds-dynamic #site-header img.row_pdt_20.mobile_hidden {
  margin-top: -21px !important;
  margin-left: 8px !important;
}

/* ── 로그인 페이지 (진짜 designstar.kr 와 동일한 가로 레이아웃) ── */
.ds-login { max-width: 1140px; margin: 40px auto; }
.ds-login-error { max-width: 760px; margin: 0 auto 14px; padding: 12px 16px; background: #fdecec; color: #c0392b; border-radius: 4px; font-size: 14px; text-align: center; }
.ds-login-box { background: #f4f4f6; border: 1px solid #e5e5ea; padding: 40px; }
.ds-login-main { display: flex; align-items: stretch; justify-content: center; gap: 16px; }
.ds-login-fields { display: flex; flex-direction: column; gap: 10px; }
.ds-login-row { display: flex; align-items: center; gap: 14px; }
.ds-login-row label { flex: 0 0 64px; font-size: 15px; color: #444; }
.ds-login-row input { width: 260px; height: 42px; padding: 0 12px; border: 1px solid #ccc; border-radius: 3px; font-size: 16px; background: #fff; }
.ds-login-row input:focus { outline: none; border-color: var(--brand); }
.ds-login-remember { padding-left: 78px; font-size: 14px; color: #666; }
.ds-login-remember input { margin-right: 6px; }
.ds-login-submit { width: 120px; background: #4a4458; color: #fff; border: none; border-radius: 3px; font-size: 17px; cursor: pointer; }
.ds-login-submit:hover { background: #5a5468; }
.ds-login-sub { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.ds-login-subbtn { display: inline-block; min-width: 150px; text-align: center; padding: 13px 24px; background: #767279; color: #fff; text-decoration: none; border-radius: 3px; font-size: 15px; }
.ds-login-subbtn:hover { background: #868289; }

@media (max-width: 680px) {
  .ds-login-box { padding: 24px 16px; }
  .ds-login-main { flex-direction: column; align-items: center; }
  .ds-login-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ds-login-row label { flex: none; }
  .ds-login-row input { width: 100%; max-width: 320px; }
  .ds-login-remember { padding-left: 0; }
  .ds-login-submit { width: 100%; max-width: 320px; height: 46px; margin-top: 8px; }
  .ds-login-sub { flex-wrap: wrap; }
  /* 상담/예약 탭: 진짜 사이트처럼 한 줄에 2개씩(2+2) 접히게 */
  .dsb-tabs { gap: 12px 22px; }
  .dsb-tabs a { flex: 0 0 auto; }
  /* 목록 글쓰기 버튼이 화면 오른쪽에 딱 붙지 않게 살짝 여백 */
  .dsb-toolbar { padding-right: 4px; }
}


/* 글 상세: 인라인 관리 버튼(답글쓰기·수정·삭제) + 답변 폼 — 진짜 사이트처럼 */
.dsb-foot-left, .dsb-foot-right { display: flex; gap: 8px; flex-wrap: wrap; }
.dsb-act-btn { display: inline-block; padding: 11px 22px; background: #767279; color: #fff; border: none; border-radius: 4px; text-decoration: none; font-size: 15px; cursor: pointer; line-height: 1.2; }
.dsb-act-btn:hover { background: #868289; }
.dsb-act-del { background: #b0514e; }
.dsb-act-del:hover { background: #c05b58; }
.dsb-reply-form { margin-top: 30px; padding: 22px; background: #f7f5fb; border: 1px solid #e5e1ef; border-radius: 6px; }
.dsb-reply-form h3 { margin: 0 0 12px; font-size: 16px; color: #4a4458; }
.dsb-reply-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; line-height: 1.6; resize: vertical; box-sizing: border-box; }
.dsb-reply-btns { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
.dsb-reply-submit { padding: 11px 28px; background: var(--brand); color: #fff; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; }
.dsb-reply-submit:hover { opacity: .92; }
.dsb-reply-cancel { padding: 11px 20px; color: #777; text-decoration: none; font-size: 14px; }

/* ── 회원가입 (진짜 designstar.kr 와 동일) ── */
.ds-reg { max-width: 620px; margin: 40px auto; }
.ds-reg-title { font-size: 24px; font-weight: 700; color: #333; margin: 0 0 20px; text-align: center; }
.ds-reg-form { display: flex; flex-direction: column; gap: 18px; }
.ds-reg-field { display: flex; flex-direction: column; gap: 6px; }
.ds-reg-field > label { font-size: 14px; color: #444; font-weight: 500; }
.ds-reg-field > label em { color: #d0021b; font-style: normal; }
.ds-reg-field input[type=text], .ds-reg-field input[type=email], .ds-reg-field input[type=password], .ds-reg-field input:not([type]) {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #ccc; border-radius: 3px; font-size: 16px; box-sizing: border-box; background: #fff;
}
.ds-reg-field input:focus { outline: none; border-color: var(--brand); }
.ds-reg-idrow { display: flex; gap: 8px; align-items: center; }
.ds-reg-idrow input { flex: 1 1 auto; }
.ds-reg-dupbtn { flex: 0 0 auto; height: 44px; padding: 0 18px; background: #4a4458; color: #fff; border: none; border-radius: 3px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ds-reg-dupbtn:hover { background: #5a5468; }
.ds-reg-dupbtn:disabled { opacity: .6; cursor: default; }
.ds-reg-dupmsg { font-size: 13px; }
.ds-reg-dupmsg.ok { color: #1a7f37; }
.ds-reg-dupmsg.no { color: #d0021b; }
.ds-reg-hint { font-size: 13px; color: #d0021b; margin: 2px 0 0; }
.ds-reg-terms { max-height: 160px; overflow-y: auto; padding: 12px; background: #f4f4f6; border: 1px solid #e0e0e5; border-radius: 3px; font-size: 13px; color: #666; line-height: 1.6; white-space: pre-wrap; }
.ds-reg-check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #444; margin-top: 8px; font-weight: 400; }
.ds-reg-check input { width: auto; }
.ds-reg-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.ds-reg-submit { flex: 1 1 auto; height: 50px; background: var(--brand); color: #fff; border: none; border-radius: 4px; font-size: 17px; font-weight: 600; cursor: pointer; }
.ds-reg-submit:hover { opacity: .92; }
.ds-reg-cancel { flex: 0 0 auto; padding: 0 20px; color: #777; text-decoration: none; font-size: 14px; }

/* ⚠ 모바일/태블릿: full-width-main-layout 이 내용 .container 를 1260px 고정으로 만들어
   좁은 화면에서 폼·내용이 화면 밖으로 밀리던 것 수정. 데스크톱(≥1281)은 1260 유지(헤더 전화번호 위치). */
@media (max-width: 1280px) {
  body.ds-dynamic #main .container { width: auto !important; max-width: 100% !important; box-sizing: border-box; }
}

/* 글 등록 후 "승인 대기" 안내 배너 */
.dsb-submitted-notice {
  margin-bottom: 16px; padding: 14px 18px; border-radius: 6px;
  background: #eef6ff; border: 1px solid #cfe4ff; color: #1b4b7a; font-size: 15px;
}
/* 글 상세의 "승인 대기 중" 배지 */
.dsb-pending-badge {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  background: #fff4e0; border: 1px solid #f0d8a8; color: #a86a1a; font-size: 12px; font-weight: 600; vertical-align: middle;
}

/* ──────────────────────────────────────────────────────────
   관리자 화면(/admin)은 워드프레스 테마 CSS·헤더·스크립트가 전혀 없는
   독립 셸(.admin-shell)로 렌더된다(루트 레이아웃 분기). 그래서 Tailwind 가
   입력칸·버튼을 그대로 그린다 — 테마와 싸우던 알약 입력칸·안 보이던 버튼 해결.
   ────────────────────────────────────────────────────────── */
.admin-shell {
  margin: 0; min-height: 100vh; background: #f7f8fa; color: #1f2430;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.admin-root { max-width: 1040px; margin: 0 auto; padding: 20px 20px 60px; }
.admin-topbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 8px 0 24px; padding: 14px 18px; background: #fff; border: 1px solid #e6e8ec; border-radius: 10px;
}
.admin-brand { font-weight: 700; color: #1f2430; font-size: 15px; }
.admin-nav { display: flex; gap: 16px; }
.admin-nav a { color: #5a6270; text-decoration: none; font-size: 14px; }
.admin-nav a:hover { color: var(--brand); }
.admin-exit { margin-left: auto; color: #8a919c; text-decoration: none; font-size: 13px; }

/* ── 회원 마이페이지(회원정보) — 실제 사이트와 같은 아바타+2x2 메뉴 ── */
.ds-mypage { max-width: 680px; margin: 40px auto 60px; text-align: center; }
.ds-mypage-avatar { display: flex; justify-content: center; margin-bottom: 14px; }
.ds-mypage-avatar-img {
  width: 110px; height: 110px; border-radius: 50%; background: #c9ccd2; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 700;
}
.ds-mypage-name { font-size: 26px; font-weight: 700; color: #333; margin: 0 0 24px; }
.ds-mypage-ok { color: #1a7f37; margin: 0 0 16px; }
/* 2x2 다크 메뉴 */
.ds-mypage-menu {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #d7d9dd;
  border: 1px solid #d7d9dd; border-radius: 6px; overflow: hidden; max-width: 560px; margin: 0 auto;
}
.ds-mypage-menu a {
  background: #4a4e57; color: #fff; text-decoration: none; padding: 34px 10px; font-size: 16px;
}
.ds-mypage-menu a:hover { background: #565b65; }
.ds-mypage-menu-danger { background: #6b4a4a !important; }
.ds-mypage-menu-danger:hover { background: #7a5252 !important; }
/* 마이페이지 폼 */
.ds-mypage-form { max-width: 460px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.ds-mypage-form h2 { font-size: 18px; font-weight: 700; color: #333; margin: 0 0 14px; text-align: center; }
.ds-mypage-form label { font-size: 14px; color: #444; margin-top: 10px; }
.ds-mypage-form input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #ccc; border-radius: 4px;
  font-size: 16px; box-sizing: border-box; background: #fff;
}
.ds-mypage-form input:focus { outline: none; border-color: var(--brand); }
.ds-mypage-readonly { background: #f3f4f6 !important; color: #888; }
.ds-mypage-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.ds-mypage-warn { background: #fff4e0; border: 1px solid #f0d8a8; color: #a8671a; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.ds-mypage-danger { background: #d0021b !important; }

/* 마이페이지 — 관리자용 콘솔 링크 */
.ds-mypage-admin {
  display: inline-block; margin: 0 0 18px; padding: 8px 18px; border-radius: 6px;
  background: var(--brand); color: #fff; text-decoration: none; font-size: 14px;
}
.ds-mypage-admin:hover { opacity: .92; }

/* 우편번호 검색 레이어 */
.ds-postcode-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ds-postcode-modal { background: #fff; border-radius: 8px; width: 100%; max-width: 480px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.ds-postcode-close { display: block; margin-left: auto; padding: 8px 14px; background: #4a4458; color: #fff; border: none; font-size: 13px; cursor: pointer; width: 100%; text-align: right; }
.ds-postcode-box { width: 100%; height: 460px; }

/* 비밀번호 찾기 */
.ds-reset { max-width: 460px; margin: 48px auto 60px; }
.ds-reset-title { font-size: 24px; font-weight: 700; color: #333; margin: 0 0 20px; text-align: center; }
.ds-reset-form { display: flex; flex-direction: column; gap: 6px; }
.ds-reset-note { font-size: 14px; color: #666; margin: 0 0 12px; line-height: 1.6; }
.ds-reset-form label { font-size: 14px; color: #444; margin-top: 10px; }
.ds-reset-form input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; box-sizing: border-box; }
.ds-reset-form input:focus { outline: none; border-color: var(--brand); }
.ds-reset-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.ds-reset-done { text-align: center; line-height: 1.8; color: #333; }
.ds-reset-done .ds-submit { display: inline-block; margin-top: 18px; text-decoration: none; }

/* 사진 파일 선택 — 버튼처럼 분명하게 보이게(실제 사이트처럼) */
.ds-file { display: inline-block; max-width: 100%; font-size: 14px; color: #666; }
.ds-file::file-selector-button {
  margin-right: 12px; padding: 10px 20px; border: none; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.ds-file::file-selector-button:hover { opacity: .9; }
/* 구형 브라우저 대비 */
.ds-file::-webkit-file-upload-button {
  margin-right: 12px; padding: 10px 20px; border: none; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* ── 스타 칼럼 ── */
.ds-col { max-width: 1100px; margin: 20px auto 60px; }
.ds-col-title { font-size: 30px; font-weight: 800; color: #2a2a2a; text-align: center; margin: 10px 0 6px; }
.ds-col-sub { text-align: center; color: #888; font-size: 15px; margin: 0 0 36px; }
.ds-col-empty { text-align: center; color: #999; padding: 60px 0; font-size: 16px; }
.ds-col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ds-col-card { display: block; text-decoration: none; color: inherit; border: 1px solid #eceef1; border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .18s, transform .18s; }
.ds-col-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.ds-col-thumb { position: relative; width: 100%; aspect-ratio: 16/10; background: linear-gradient(135deg, #efeaff, #e4ecff); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ds-col-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ds-col-thumb-ph { color: var(--brand); font-weight: 700; letter-spacing: 2px; font-size: 14px; opacity: .55; }
.ds-col-card-body { padding: 18px 18px 20px; }
.ds-col-card-title { font-size: 17px; font-weight: 700; color: #2a2a2a; margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-col-card-excerpt { font-size: 14px; color: #777; line-height: 1.55; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-col-card-date { font-size: 13px; color: #aaa; }
.ds-col-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.ds-col-pagination a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e0e2e6; border-radius: 6px; color: #555; text-decoration: none; font-size: 14px; }
.ds-col-pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
/* ── 칼럼 상세 (designstar 보라 브랜드, 단일 칼럼) ── */
.ds-col-detail { max-width: 820px; margin: 10px auto 80px; }
.ds-col-head { margin-bottom: 36px; }
.ds-col-crumb { font-size: 13px; color: #a7adb6; margin-bottom: 18px; }
.ds-col-crumb a { color: #a7adb6; text-decoration: none; }
.ds-col-crumb a:hover { color: var(--brand); }
.ds-col-crumb span { margin: 0 6px; }
.ds-col-cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: #efeafc; padding: 5px 13px; border-radius: 999px; margin-bottom: 16px; }
.ds-col-detail-title { font-size: 33px; font-weight: 800; color: #1d2026; line-height: 1.32; margin: 0 0 18px; letter-spacing: -0.6px; }
.ds-col-lead { font-size: 18px; line-height: 1.72; color: #5a6069; margin: 0 0 20px; }
.ds-col-detail-meta { font-size: 14px; color: #a7adb6; }
.ds-col-byline { color: var(--brand); font-weight: 600; }
.ds-col-dot { margin: 0 7px; }

.ds-col-detail-hero { width: 100%; border-radius: 16px; margin-bottom: 40px; display: block; }

/* 핵심 요약 — 보라 액센트 */
.ds-col-summary { position: relative; background: #f7f5fe; border: 1px solid #ece7fb; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; padding: 26px 30px; margin-bottom: 44px; }
.ds-col-summary-label { font-size: 14px; font-weight: 800; color: var(--brand); margin-bottom: 16px; letter-spacing: 0.3px; }
.ds-col-summary ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.ds-col-summary li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.62; color: #3c414a; }
.ds-col-summary li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* 본문 */
.ds-col-detail-body { font-size: 17px; line-height: 1.92; color: #32363d; }
.ds-col-detail-body h2 { font-size: 24px; font-weight: 800; color: #1d2026; margin: 48px 0 18px; line-height: 1.4; padding-left: 16px; border-left: 4px solid var(--brand); }
.ds-col-detail-body h3 { font-size: 19px; font-weight: 700; color: #22262b; margin: 34px 0 12px; }
.ds-col-detail-body p { margin: 0 0 18px; }
.ds-col-detail-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 22px 0; }
.ds-col-detail-body strong { color: var(--brand-dark); }

/* FAQ */
.ds-col-faq { margin-top: 56px; }
.ds-col-faq-head { font-size: 24px; font-weight: 800; color: #1d2026; margin: 0 0 22px; }
.ds-col-faq-item { background: #fafafb; border: 1px solid #eef0f3; border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
.ds-col-faq-q { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; font-weight: 700; color: #1d2026; margin-bottom: 12px; }
.ds-col-faq-mark { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ds-col-faq-a { padding-left: 38px; font-size: 16px; line-height: 1.78; color: #5a6069; }

.ds-col-notice { margin-top: 48px; padding: 16px 20px; background: #f7f8fa; border-radius: 10px; font-size: 13.5px; color: #9097a0; text-align: center; }

.ds-col-detail-foot { margin-top: 36px; display: flex; justify-content: center; gap: 12px; }
.ds-col-list-btn { display: inline-block; padding: 14px 34px; background: #fff; color: #555; border: 1px solid #d8dbe0; text-decoration: none; border-radius: 10px; font-size: 15px; font-weight: 600; }
.ds-col-list-btn:hover { border-color: #b8bcc3; }
.ds-col-ask-btn { display: inline-block; padding: 14px 34px; background: var(--brand); color: #fff; text-decoration: none; border-radius: 10px; font-size: 15px; font-weight: 700; }
.ds-col-ask-btn:hover { background: var(--brand-dark); }

@media (max-width: 760px) {
  .ds-col-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .ds-col-detail-title { font-size: 26px; }
  .ds-col-lead { font-size: 16px; }
  .ds-col-detail-body { font-size: 16px; }
  .ds-col-summary { padding: 22px 22px; }
  .ds-col-faq-a { padding-left: 0; }
}
@media (max-width: 560px) { .ds-col-grid { grid-template-columns: 1fr; } }

/* ════════ 스타 칼럼 프리미엄 타이포·UI (오버라이드) ════════ */
.ds-col, .ds-col-detail {
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, sans-serif;
}
/* 목록 */
.ds-col-title { font-family: "Noto Serif KR", serif; font-size: 38px; font-weight: 700; letter-spacing: -1px; }
.ds-col-sub { font-size: 16px; }
.ds-col-card-title { font-size: 18.5px; letter-spacing: -0.3px; }
.ds-col-card-excerpt { font-size: 14.5px; }

/* 상세 — 제목 세리프, 본문 Pretendard 크게 */
.ds-col-detail { max-width: 860px; }
.ds-col-cat { font-size: 13px; padding: 6px 15px; letter-spacing: 0.5px; }
.ds-col-detail-title {
  font-family: "Noto Serif KR", serif; font-size: 40px; font-weight: 700;
  line-height: 1.38; letter-spacing: -1.2px; color: #17191e;
}
.ds-col-lead { font-size: 20px; line-height: 1.75; color: #52585f; }
.ds-col-detail-meta { font-size: 14.5px; }

.ds-col-detail-hero { border-radius: 18px; margin-bottom: 48px; box-shadow: 0 14px 40px rgba(30,30,50,0.08); }

.ds-col-summary { padding: 30px 34px; border-radius: 0 16px 16px 0; margin-bottom: 52px; }
.ds-col-summary-label { font-size: 15px; }
.ds-col-summary li { font-size: 17px; line-height: 1.7; padding-left: 24px; }
.ds-col-summary li::before { top: 11px; width: 7px; height: 7px; }

.ds-col-detail-body { font-size: 18.5px; line-height: 2.05; color: #2e3237; letter-spacing: -0.2px; }
.ds-col-detail-body h2 {
  font-family: "Noto Serif KR", serif; font-size: 27px; font-weight: 700;
  margin: 56px 0 20px; letter-spacing: -0.7px; color: #17191e; padding-left: 18px; border-left: 5px solid var(--brand);
}
.ds-col-detail-body h3 { font-size: 21px; margin: 38px 0 14px; }
.ds-col-detail-body p { margin: 0 0 22px; }

.ds-col-faq { margin-top: 64px; }
.ds-col-faq-head { font-family: "Noto Serif KR", serif; font-size: 27px; font-weight: 700; letter-spacing: -0.7px; }
.ds-col-faq-item { padding: 26px 28px; border-radius: 16px; margin-bottom: 16px; }
.ds-col-faq-q { font-size: 18px; gap: 14px; }
.ds-col-faq-mark { width: 28px; height: 28px; font-size: 15px; }
.ds-col-faq-a { font-size: 17px; line-height: 1.82; padding-left: 42px; }

.ds-col-notice { font-size: 14px; padding: 18px 22px; }
.ds-col-list-btn, .ds-col-ask-btn { padding: 15px 38px; font-size: 15.5px; }

@media (max-width: 760px) {
  .ds-col-detail-title { font-size: 29px; letter-spacing: -0.8px; }
  .ds-col-lead { font-size: 17px; }
  .ds-col-detail-body { font-size: 17px; line-height: 1.95; }
  .ds-col-detail-body h2 { font-size: 23px; }
  .ds-col-title { font-size: 30px; }
  .ds-col-faq-a { padding-left: 0; }
}

/* 본문·요약·FAQ 에 Pretendard 강제(테마 CSS 보다 구체적으로) */
.ds-col-detail .ds-col-detail-body,
.ds-col-detail .ds-col-detail-body p,
.ds-col-detail .ds-col-detail-body li,
.ds-col-detail .ds-col-lead,
.ds-col-detail .ds-col-summary,
.ds-col-detail .ds-col-summary li,
.ds-col-detail .ds-col-faq-q,
.ds-col-detail .ds-col-faq-a,
.ds-col .ds-col-card-title,
.ds-col .ds-col-card-excerpt {
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, sans-serif !important;
}

/* 칼럼 본문 표(비교) 스타일 */
.ds-col-detail-body table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 16px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px #eceef2; }
.ds-col-detail-body thead th { background: #f4f2fc; color: var(--brand-dark); font-weight: 700; padding: 14px 16px; text-align: left; font-size: 15px; }
.ds-col-detail-body td { padding: 14px 16px; border-top: 1px solid #eef0f3; color: #3a3f46; line-height: 1.6; vertical-align: top; }
.ds-col-detail-body tbody tr:nth-child(even) td { background: #fafafb; }
.ds-col-detail-body th:first-child, .ds-col-detail-body td:first-child { font-weight: 600; color: #22262b; white-space: nowrap; }
.ds-col-detail-body ul, .ds-col-detail-body ol { margin: 0 0 20px; padding-left: 24px; }
.ds-col-detail-body li { margin-bottom: 8px; line-height: 1.8; }

/* ★ 별 모티브 (DESIGN ST★R) — 살짝 */
.ds-col-summary-label::before { content: "★ "; color: var(--brand); font-size: 0.95em; }
.ds-col-summary li::before { content: "★"; background: none !important; color: var(--brand); font-size: 11px; line-height: 1; left: 0 !important; top: 7px !important; width: auto !important; height: auto !important; border-radius: 0 !important; }
.ds-col-title::after { content: "★"; color: var(--brand); font-size: 0.5em; vertical-align: super; margin-left: 6px; }
.ds-col-faq-head::before { content: "★ "; color: var(--brand); font-size: 0.8em; }
