/*
Theme Name: Wellness (지점 공용)
Theme URI: https://wellnesscheckup.co.kr
Author: 웰앤메디
Description: 수원·둔촌·의정부·동탄 웰니스 지점이 함께 쓰는 테마. 사업장이 지점마다 별도라 사이트·DB 는 분리하고 테마 소스만 공유한다. 지점별 값은 '지점 설정' 한 곳에서 관리하며 본문에서는 숏코드로 쓰인다.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: wellness
*/

/* ------------------------------------------------------------------
   원본 사이트의 CSS(/assets, /css …)가 레이아웃 전부를 담당한다.
   여기에는 WP 가 새로 만들어 내는 화면(게시판 목록·상세·검색·404)과
   접근성 보정만 둔다. 원본 클래스(.w1200 등)는 그대로 재사용한다.
   ------------------------------------------------------------------ */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

#wn-main { min-height: 40vh; }

/* ⚠️ 원본 클래스(.w1200 · .con2 · .inner …)에는 손대지 않는다.
   한때 여기에 `#wn-main .w1200 { max-width:1200px; padding:0 16px }` 를 뒀다가
   원본의 1230px/15px 를 덮어써 레이아웃이 틀어졌다. 아래 규칙은 전부 wn- 접두사
   (WP 가 새로 만드는 게시판·검색·404 화면)에만 건다. */

/* 게시판(#bo_list)·상세(#bo_v)의 바깥 여백은 **원본 board.css 가 정한다.**
   여기서 padding 을 주면 원본 값(0 0 0 15px)을 덮어써 간격이 어긋난다.
   404 처럼 원본에 대응 화면이 없는 것만 직접 잡는다. */
.wn-page.wn-404 { padding: 60px 0 100px; }
.wn-page.wn-404 .w1200 { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }

.wn-tit {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  margin: 0 0 32px;
}

/* ---------- 목록(표형) ---------- */
.wn-list { width: 100%; border-collapse: collapse; border-top: 2px solid #1f2d3d; font-size: 15px; }
.wn-list th, .wn-list td { padding: 14px 10px; border-bottom: 1px solid #e5e8eb; text-align: center; }
.wn-list th { background: #f7f9fa; font-weight: 600; }
.wn-list .wn-col-tit { text-align: left; }
.wn-list .wn-col-tit a { color: inherit; text-decoration: none; }
.wn-list .wn-col-tit a:hover,
.wn-list .wn-col-tit a:focus-visible { text-decoration: underline; }
.wn-list .wn-notice { background: #f4faf7; }
.wn-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: #1a7f5a; color: #fff; font-size: 12px; font-weight: 600;
}
.wn-col-num, .wn-col-date, .wn-col-hit { white-space: nowrap; color: #5b6673; }

/* ---------- 목록(썸네일형) ---------- */
.wn-gall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; list-style: none; margin: 0; padding: 0; }
.wn-gall-li a { display: block; color: inherit; text-decoration: none; }
.wn-gall-img {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 10px; background: #eef1f3; margin-bottom: 12px;
}
.wn-gall-img img { width: 100%; height: 100%; object-fit: cover; }
.wn-gall-tit { display: block; font-size: 16px; font-weight: 500; line-height: 1.45; }
.wn-gall .wn-date { display: block; margin-top: 6px; font-size: 13px; color: #8b949e; }

/* ---------- 상세 ---------- */
.wn-view-head { border-top: 2px solid #1f2d3d; border-bottom: 1px solid #e5e8eb; padding: 22px 4px; }
.wn-view-tit { font-size: 22px; font-weight: 600; line-height: 1.45; margin: 0 0 10px; }
.wn-view-meta { margin: 0; font-size: 14px; color: #6b747e; }
.wn-view-meta span + span { margin-left: 14px; }
.wn-view-con { padding: 34px 4px 46px; line-height: 1.75; font-size: 16px; }
.wn-view-con img { max-width: 100%; height: auto; }
.wn-view-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid #e5e8eb; padding-top: 18px; }
.wn-view-nav a { color: #46505b; text-decoration: none; font-size: 14px; }
.wn-view-nav a:hover, .wn-view-nav a:focus-visible { text-decoration: underline; }
.wn-list-btn { margin-left: auto; }

/* ---------- 버튼 · 빈 목록 ---------- */
.wn-btn {
  display: inline-block; padding: 11px 26px; border-radius: 6px;
  background: #1a7f5a; color: #fff !important; font-size: 15px;
  text-decoration: none !important; border: 1px solid #1a7f5a;
}
.wn-btn-line { background: #fff; color: #1a7f5a !important; }
.wn-empty { padding: 70px 0; text-align: center; color: #7b848d; }
.wn-404 { text-align: center; }
.wn-404-act { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }

/* ---------- 페이지네이션 ---------- */
.wn-pagination { margin-top: 34px; }
.wn-pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.wn-pagination .page-numbers {
  min-width: 38px; padding: 8px 10px; border: 1px solid #dfe3e8; border-radius: 6px;
  text-align: center; color: #46505b; text-decoration: none; font-size: 14px;
}
.wn-pagination .page-numbers.current { background: #1a7f5a; border-color: #1a7f5a; color: #fff; }

/* ---------- 게시판 검색 ----------
   폼 자체는 원본 `.bo_sch` 마크업이라 /css/board.css 가 꾸민다.
   여기에는 원본에 없던 '검색 결과' 안내 줄만 둔다. */
.wn-sch-state { margin: 10px 0 0; font-size: 14px; color: #46505b; clear: both; }
.wn-sch-state strong { color: #1a7f5a; }
.wn-sch-reset { margin-left: 10px; font-size: 13px; color: #6b747e; }

/* ---------- 예약·문의 폼 ----------
   원본 그누보드 폼과 같은 구성(개인정보 동의 → 문의사항 → 성함·생년월일·연락처).
   받은 내용은 관리자 전용 '예약·상담 접수' 목록에 보관하고, 설정된 곳으로 함께 전달한다. */
.wn-resv-form { margin: 40px 0 0; text-align: left; }
.wn-resv-label { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #2b3542; }
.wn-resv-terms {
  max-height: 150px; overflow-y: auto; padding: 18px 20px;
  border: 1px solid #dfe3e8; border-radius: 4px; background: #fff;
  font-size: 13px; line-height: 1.7; color: #6b747e;
}
.wn-resv-terms p { margin: 0 0 10px; }
.wn-resv-agree { margin: 12px 0 0; text-align: right; font-size: 14px; }
.wn-resv-agree label { cursor: pointer; }

.wn-resv-fields { margin-top: 30px; padding: 34px 24px; background: #e3eaf2; }
.wn-resv-subject { border: 0; margin: 0 0 18px; padding: 0; }
.wn-resv-subject label { display: inline-block; margin: 0 18px 8px 0; font-size: 15px; cursor: pointer; }
.wn-resv-subject input { margin-right: 5px; }
.wn-resv-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wn-resv-row input {
  flex: 1 1 180px; min-width: 0; height: 46px; padding: 0 14px;
  border: 1px solid #c9d3df; border-radius: 4px; background: #fff; font-size: 15px;
}
.wn-resv-row input:focus-visible { outline: 2px solid #1a7f5a; outline-offset: 1px; }
.wn-resv-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wn-resv-act { margin: 26px 0 0; text-align: center; }
.wn-resv-act .wn-btn { padding: 14px 44px; font-size: 16px; border-radius: 999px; cursor: pointer; }
.wn-resv-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: #8b949e; }

.wn-resv-done, .wn-resv-err {
  margin: 0 0 24px; padding: 22px 24px; border-radius: 6px;
  background: #eaf6f1; border: 1px solid #bfe3d4; color: #1a5f46; line-height: 1.7;
}
.wn-resv-err { background: #fdeeee; border-color: #f3c9c9; color: #943434; }
.wn-resv-done-tit { margin: 0 0 6px; font-size: 17px; font-weight: 600; }

@media (max-width: 560px) {
  .wn-resv-row input { flex: 1 1 100%; }
  .wn-resv-fields { padding: 24px 16px; }
}

/* ---------- 예약 안내 (원본 폼 자리) ---------- */
.wn-book-box { margin: 46px auto 10px; text-align: center; }
.wn-book-lead { margin: 0 0 22px; font-size: 17px; line-height: 1.7; color: #46505b; }
.wn-book-act { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.wn-book-act .wn-btn { padding: 14px 30px; font-size: 16px; border-radius: 999px; }

/* ---------- 심의번호 ---------- */
.wn-ad-review { margin: 0; padding: 10px 16px; text-align: center; font-size: 12px; color: #8b949e; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
  .wn-gall { grid-template-columns: repeat(2, 1fr); }
  .wn-list .wn-col-hit { display: none; }
}
@media (max-width: 560px) {
  .wn-gall { grid-template-columns: 1fr; }
  .wn-list .wn-col-num { display: none; }
  .wn-view-nav { flex-direction: column; align-items: stretch; }
  .wn-list-btn { margin-left: 0; text-align: center; }
}

/* ---- 지점 연결: 하단 '전국 웰니스 지점' 띠 (inc/network.php) ----
   원본 푸터 아래에 붙는다. 원본 클래스는 건드리지 않고 wn-net 에만 건다. */
.wn-net{background:#10263a;color:#c9d6e0;font-family:"Pretendard Variable",Pretendard,system-ui,sans-serif;font-size:13px}
.wn-net-in{max-width:1230px;margin:0 auto;padding:14px 15px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px}
.wn-net-tit{color:#fff;font-weight:700;text-decoration:none;margin-right:6px}
.wn-net ul{display:flex;flex-wrap:wrap;gap:4px 16px;list-style:none;margin:0;padding:0}
.wn-net li a{color:#c9d6e0;text-decoration:none}
.wn-net li a:hover,.wn-net-tit:hover{color:#fff;text-decoration:underline}
@media (max-width:640px){.wn-net-in{padding:12px 16px 84px}} /* 모바일 하단 고정 메뉴에 가리지 않게 */

/* ---- 지점 안내 페이지 /branches/ ---- */
.wn-net-grid{list-style:none;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.wn-net-card{display:flex;flex-direction:column;gap:6px;padding:22px;border-radius:14px;background:#fff;border:1px solid #e3e8ec}
.wn-net-card.here{border-color:#08abb3;box-shadow:0 0 0 1px #08abb3 inset}
.wn-net-region{font-size:13px;font-weight:700;color:#0a6f75}
.wn-net-region em{font-style:normal;font-size:11px;background:#08abb3;color:#fff;border-radius:6px;padding:2px 6px;margin-left:4px}
.wn-net-card strong{font-size:18px;letter-spacing:-.02em}
.wn-net-addr{font-size:14px;color:#55626c;min-height:2.8em}
.wn-net-act{display:flex;gap:14px;flex-wrap:wrap;margin-top:6px;font-weight:700;font-size:14px}
.wn-net-act a{color:#173e58;text-decoration:none}
.wn-net-act a:hover{text-decoration:underline}
@media (max-width:960px){.wn-net-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.wn-net-grid{grid-template-columns:1fr}}
