/* ===== 기본 변수 ===== */
:root {
  --brand: #FF7210;
  --brand-dark: #E05E00;
  --brand-soft: #FFF1E7;
  --text: #1F2328;
  --text-sub: #5B636E;
  --line: #E6E8EB;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 아직 확정되지 않은 정보 표시 */
.tbd { color: #9AA1AA; font-style: italic; }
.nw { white-space: nowrap; }
[hidden] { display: none !important; } /* hidden 속성이 CSS display 보다 우선 */

.placeholder-box {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed #D3D7DC; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #FAFAFB, #FAFAFB 12px, #F3F4F6 12px, #F3F4F6 24px);
  color: #8A919B; font-weight: 600;
}
.placeholder-box small { font-weight: 400; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
/* 로고: 공식 SVG 원본 비율 유지 (높이만 지정) */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: #CFD3D8; }
.brand-region { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: #070517; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text-sub); transition: color .15s;
}
.nav-link:hover, .nav-link.active { color: var(--brand); }
.chev {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.nav-item { position: relative; }
.nav-item.open .chev { transform: translateY(1px) rotate(-135deg); }
.submenu {
  display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  min-width: 168px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-item.open .submenu { display: block; }
@media (hover: hover) and (min-width: 761px) {
  .nav-item:hover .submenu { display: block; }
}
.nav-item:last-child .submenu { left: auto; right: 0; transform: none; } /* 오른쪽 끝 메뉴는 화면 밖으로 나가지 않게 */
.submenu a { display: block; padding: 10px 14px; border-radius: 6px; font-weight: 600; color: var(--text); white-space: nowrap; }
.submenu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.submenu a[aria-current="page"] { color: var(--brand); }

/* 임시 문안 표시 (data-draft 영역) */
.draft-badge {
  display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #8A5A00; background: #FFF4D6; border: 1px solid #F3D88E;
}

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--text); transition: .2s; }

/* ===== 메인 대표 슬라이드 ===== */
.eyebrow { color: var(--brand); font-weight: 700; margin-bottom: 12px; }
.lead { color: var(--text-sub); font-size: 17px; margin-bottom: 28px; }
.hero-slider { background: linear-gradient(180deg, var(--brand-soft), #fff); padding: 56px 0 28px; }
.hs-viewport { display: grid; }
.hs-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s;
}
.hs-slide.is-active { opacity: 1; visibility: visible; }
.hs-title { font-size: 40px; line-height: 1.3; font-weight: 800; margin-bottom: 16px; letter-spacing: -.5px; }
.hs-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #FFF6EF; }
.hs-visual svg, .hs-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hs-art-2 { background: #fff; border: 1px solid #F6DCC8; }
.hs-art-3 { background: #FFE9D9; }
.hs-label {
  position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 6px;
  background: rgba(255,255,255,.85); color: #8A919B; font-size: 11px; font-weight: 600;
}
.hs-controls { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.hs-arrow, .hs-pause {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text); transition: border-color .15s, color .15s;
}
.hs-arrow:hover:not(:disabled), .hs-pause:hover { border-color: var(--brand); color: var(--brand); }
.hs-arrow:disabled { opacity: .35; cursor: default; }
.chev-left { transform: rotate(135deg); margin-left: 3px; }
.chev-right { transform: rotate(-45deg); margin-right: 3px; }
.hs-dots { display: flex; gap: 6px; }
/* 점: 보이는 모양은 작게, 누르는 영역은 24px 이상 */
.hs-dots { gap: 0; }
.hs-dot { position: relative; width: 24px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .25s; }
.hs-dot::before { content: ""; position: absolute; left: 7px; right: 7px; top: 9px; height: 10px; border-radius: 999px; background: #E2C7B2; transition: background .25s; }
.hs-dot[aria-current="true"] { width: 42px; }
.hs-dot[aria-current="true"]::before { background: var(--brand); }
.hs-pause span { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.is-stopped .hs-pause span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
@media (prefers-reduced-motion: reduce) { .hs-slide { transition: none; } }

.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; transition: .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }

/* ===== 섹션 공통 ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 28px; font-weight: 800; position: relative; padding-left: 14px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px;
  border-radius: 3px; background: var(--brand);
}
.section-sub { color: var(--text-sub); margin-top: 4px; padding-left: 14px; }

/* ===== 공지사항 ===== */
.notice-list { border-top: 2px solid var(--text); }
.notice-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.notice-tag {
  flex-shrink: 0; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
}
.notice-tag.sample { background: #EEF0F3; color: #7A828C; }
.notice-title { flex: 1; font-weight: 600; }
.notice-date { flex-shrink: 0; color: var(--text-sub); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ===== 연락처 ===== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: stretch; }
.map-card {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: 280px; padding: 36px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand);
}
.map-pin {
  width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50% 50% 50% 0;
  background: var(--brand); transform: rotate(-45deg); position: relative;
}
.map-pin::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.map-label { color: var(--brand-dark); font-weight: 700; font-size: 14px; }
.map-address { font-size: 20px; font-weight: 700; line-height: 1.5; margin: 6px 0 24px; }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.map-actions .btn { padding: 10px 18px; font-size: 15px; }
.contact-info a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px 8px; }
.contact-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid var(--text); }
.contact-head h3 { font-size: 17px; font-weight: 800; }
.contact-info > div { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info > div:last-child { border-bottom: 0; }
.contact-info dt { width: 72px; flex-shrink: 0; font-weight: 700; color: var(--brand-dark); padding-top: 4px; }
.contact-info dd { flex: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-top: 4px; }

/* 복사 버튼: 평소엔 옅게, 마우스를 올리면 진하게 */
.copy-btn, .copy-all {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
  border: 0; background: none; cursor: pointer; font: inherit; color: #A3A9B1; border-radius: 8px;
  transition: color .15s, background .15s;
}
.copy-btn { width: 32px; height: 32px; margin: -4px -6px -4px 0; }
.copy-btn svg, .copy-all svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.copy-btn:hover, .copy-all:hover { color: var(--brand-dark); background: var(--brand-soft); }
.copy-all { padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--text-sub); }

/* ===== 푸터 ===== */
.site-footer { background: #22262B; color: #C9CED4; padding: 36px 0; font-size: 14px; }
.footer-name { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.footer-meta { line-height: 1.8; }
.footer-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.copyright { margin-top: 14px; color: #8A919B; }

/* ===== 반응형 (태블릿·모바일) ===== */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-slider { padding-top: 36px; }
  .hs-slide { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hs-title { font-size: 30px; }
  .section { padding: 52px 0; }
}

/* 햄버거 메뉴 전환 폭: js/site.js 의 MOBILE 값과 같게 유지 */
@media (max-width: 960px) {
  .nav-link { padding: 8px 10px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .brand-logo { height: 28px; }
  .brand-divider { height: 18px; }
  .brand-region { font-size: 17px; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--text); }
  .submenu {
    position: static; transform: none; min-width: 0; padding: 0;
    border: 0; border-radius: 0; box-shadow: none; background: var(--bg-alt);
  }
  .submenu::before { display: none; }
  .submenu a { padding: 13px 20px 13px 36px; border-radius: 0; border-top: 1px solid var(--line); font-weight: 500; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-item:last-child .submenu { right: auto; }
}

@media (max-width: 640px) {
  .hs-slide { grid-template-columns: 1fr; gap: 20px; align-content: start; }
  .hs-visual { order: -1; aspect-ratio: 16 / 9; border-radius: 14px; }
  .hs-title { font-size: 25px; }
  .hs-text .lead { font-size: 16px; margin-bottom: 20px; }
  .hs-controls { justify-content: center; margin-top: 18px; }
  .notice-item { flex-wrap: wrap; gap: 6px 10px; }
  .notice-title { flex-basis: 100%; order: 3; }
  .contact-card { padding: 14px 18px 4px; }
  .contact-info > div { flex-direction: column; gap: 0; }
  .contact-info dd { align-items: center; }
  .copy-btn { width: 44px; height: 44px; margin: -6px -10px -6px 0; } /* 터치 영역 44px */
  .copy-all { padding: 10px 12px; }
}

/* =========================================================
   하위 페이지 공통
   ========================================================= */
.page-hero { background: linear-gradient(180deg, var(--brand-soft), #fff); padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 14px; color: var(--text-sub); margin-bottom: 8px; }
.breadcrumb span { margin: 0 4px; color: #B0B6BD; }
.page-hero h1 { font-size: 34px; font-weight: 800; }
.page-sub { color: var(--text-sub); margin-top: 8px; }
.page-sub strong { color: var(--brand-dark); }
.data-note { margin-top: 28px; font-size: 14px; color: #8A919B; }

/* ----- 위원장 인사말 ----- */
.greeting { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.greeting-profile { position: sticky; top: 96px; }
.greeting-profile img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius); background: var(--bg-alt); display: block;
}
.greeting-profile figcaption { padding: 18px 4px 0; border-left: 4px solid var(--brand); margin-top: 18px; padding: 2px 0 2px 14px; }
.profile-role { display: block; font-size: 14px; color: var(--text-sub); }
.profile-name { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.draft-notice {
  margin-bottom: 28px; padding: 14px 16px; border-radius: 10px;
  background: #FFFBEF; border: 1px solid #F3E2B0; font-size: 14px; color: #6B5A2A;
}
.draft-notice .draft-badge { margin: 0 6px 0 0; }
.greeting-lead { font-size: 26px; font-weight: 800; line-height: 1.45; margin-bottom: 22px; }
.greeting-body p:not(.draft-notice):not(.greeting-lead):not(.greeting-sign) { font-size: 17px; line-height: 1.9; color: #343A40; margin-bottom: 18px; }
.greeting-sign { margin-top: 40px; text-align: right; }
.greeting-sign span { display: block; font-size: 15px; color: var(--text-sub); }
.greeting-sign strong { font-size: 24px; font-weight: 800; letter-spacing: 6px; }

/* ----- 구성원 소개 ----- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.member-card {
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  width: 100%; height: 100%; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.member-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-2px); border-color: #F6C9A6; }
.member-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.member-photo { display: block; aspect-ratio: 1 / 1; background: var(--bg-alt); }
.member-body { display: block; }
.member-name { display: block; }
.member-roles span { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.member-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.avatar-default {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #F1F2F4, #E4E6EA); color: #A3A9B1; font-weight: 800;
}
.member-img.avatar-default { font-size: 56px; }
.member-body { padding: 16px 18px 18px; }
.member-name { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.member-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.member-roles li { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }

/* ----- 조직도 ----- */
.org-chart { display: flex; flex-direction: column; gap: 20px; }
.org-row { display: grid; gap: 20px; }
.org-row-1 { justify-items: center; }
.org-row-2 { grid-template-columns: 1fr 2fr; }
.org-row-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.org-row-4 { grid-template-columns: 1fr 1fr; }
.org-lead {
  display: flex; align-items: center; gap: 18px; padding: 18px 32px 18px 18px;
  background: var(--brand); color: #fff; border-radius: 16px; box-shadow: 0 10px 26px rgba(255,114,16,.25);
}
.org-lead-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid #fff; background: #fff; }
.org-lead-title { display: block; font-size: 14px; font-weight: 600; opacity: .9; }
.org-lead-name { display: block; font-size: 26px; font-weight: 800; letter-spacing: 1px; }
button.org-lead { border: 0; font: inherit; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
button.org-lead:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,114,16,.32); }
.org-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.org-group summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; cursor: pointer; list-style: none; background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.org-group summary::-webkit-details-marker { display: none; }
.org-group:not([open]) summary { border-bottom: 0; }
.org-title { font-weight: 800; position: relative; padding-left: 12px; }
.org-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--brand); }
.org-count { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.org-count::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid #9AA1AA; border-bottom: 2px solid #9AA1AA; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.org-group[open] .org-count::after { transform: translateY(0) rotate(-135deg); }
.org-names { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; }
.org-person {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; color: inherit; white-space: nowrap; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.org-person:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.org-mini { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; }
.org-mini.avatar-default { font-size: 12px; }
.org-vacant { padding: 16px 18px; color: #9AA1AA; font-weight: 600; }

@media (max-width: 860px) {
  .greeting { grid-template-columns: 240px 1fr; gap: 36px; }
  .org-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 32px 0 24px; }
  .page-hero h1 { font-size: 26px; }
  .greeting { grid-template-columns: 1fr; gap: 28px; }
  .greeting-profile { position: static; display: flex; align-items: flex-end; gap: 16px; }
  .greeting-profile img { width: 132px; flex-shrink: 0; }
  .greeting-profile figcaption { margin-top: 0; }
  .greeting-lead { font-size: 22px; }
  .greeting-body p:not(.draft-notice):not(.greeting-lead):not(.greeting-sign) { font-size: 16px; }
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member-body { padding: 12px 12px 14px; }
  .member-name { font-size: 17px; }
  .member-roles li, .member-roles span { font-size: 12px; padding: 2px 8px; }
  .org-row-2, .org-row-3, .org-row-4 { grid-template-columns: 1fr; gap: 12px; }
  .org-chart { gap: 12px; }
  .org-lead { width: 100%; }
  .map-card { padding: 26px 22px; min-height: 0; }
  .map-address { font-size: 18px; }
}

/* =========================================================
   3차: 공통 인터랙션 요소 (필터 칩, 검색, 팝업, 알림)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 필터 칩: 모바일에서는 한 줄 가로 스크롤 */
.explorer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.chip-scroll { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
  color: var(--text-sub); background: #fff; border: 1px solid var(--line);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.search-box {
  display: flex; align-items: center; gap: 8px; flex: 0 0 240px;
  padding: 0 14px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-box svg { width: 18px; height: 18px; fill: none; stroke: #9AA1AA; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; background: none; }

.result-count { font-size: 14px; color: var(--text-sub); margin-bottom: 18px; }
.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed #D3D7DC; border-radius: var(--radius); color: var(--text-sub); }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.empty-state .btn { margin-top: 18px; font: inherit; font-weight: 700; cursor: pointer; background: #fff; }

.fade-in { animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } html { scroll-behavior: auto; } }

/* 공통 팝업 (js/site.js openModal) */
body.modal-open { overflow: hidden; }
.modal {
  width: min(680px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0;
  border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.25); color: var(--text); overflow: hidden;
}
.modal::backdrop { background: rgba(20, 22, 26, .55); }
.modal[open] { animation: fadeIn .2s ease both; }
.modal-inner { position: relative; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
/* 인물 상세 */
.pm-inner { display: grid; grid-template-columns: 240px 1fr; }
.pm-photo { background: var(--bg-alt); min-height: 300px; }
.pm-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: flex; }
.pm-img.avatar-default { font-size: 72px; }
.pm-body { padding: 32px 28px 28px; }
.pm-name { font-size: 28px; font-weight: 800; margin-bottom: 18px; }
.pm-label { font-size: 13px; font-weight: 700; color: var(--text-sub); margin: 18px 0 8px; }
.pm-body .member-roles li { font-size: 14px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.pm-bio { padding-left: 18px; list-style: disc; line-height: 1.8; }
.pm-empty { color: #9AA1AA; font-weight: 600; }
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--text);
}
.modal-close:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* 복사 알림 */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 12px);
  padding: 11px 20px; border-radius: 999px; background: #22262B; color: #fff; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #B42318; }

@media (max-width: 860px) {
  .explorer-bar { flex-direction: column; align-items: stretch; }
  .search-box { flex-basis: auto; }
}
@media (max-width: 640px) {
  .chip-scroll {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .chip-scroll::-webkit-scrollbar { display: none; }
  .chip { padding: 9px 15px; font-size: 14px; }
  .pm-inner { grid-template-columns: 1fr; }
  .pm-photo { min-height: 0; height: 240px; }
  .pm-body { padding: 22px 20px 24px; }
  .pm-name { font-size: 24px; }
}

/* =========================================================
   3차: 메인 바로가기 · 공지 목록/상세 · 정책
   ========================================================= */
.section-tight { padding-top: 48px; }
.container.narrow { max-width: 860px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.more-link { flex-shrink: 0; font-weight: 700; color: var(--brand-dark); padding: 6px 2px; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 바로가기 카드 */
.quick-links { padding: 8px 0 0; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.quick-card:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(255,114,16,.12); transform: translateY(-2px); }
.qk-label { font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.quick-card strong { font-size: 17px; font-weight: 800; padding-right: 24px; }
.qk-arrow { position: absolute; right: 20px; bottom: 20px; color: #B0B6BD; font-weight: 700; transition: color .15s, transform .15s; }
.quick-card:hover .qk-arrow { color: var(--brand); transform: translateX(3px); }

/* 공지 목록: 행 전체가 링크 */
a.notice-item { transition: background .15s; }
a.notice-item:hover { background: #FFF8F2; }
a.notice-item:hover .notice-title { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }

/* 공지 상세 */
.page-hero-slim { padding: 20px 0 16px; }
.page-hero-slim .breadcrumb { margin: 0; }
.breadcrumb a:hover { color: var(--brand-dark); text-decoration: underline; }
.nd-head { padding-bottom: 22px; border-bottom: 2px solid var(--text); margin-bottom: 24px; }
.nd-title { font-size: 30px; font-weight: 800; line-height: 1.35; margin: 12px 0 10px; }
.nd-meta { font-size: 14px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.nd-info { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; overflow: hidden; }
.nd-info > div { display: flex; border-bottom: 1px solid var(--line); }
.nd-info > div:last-child { border-bottom: 0; }
.nd-info dt { width: 110px; flex-shrink: 0; padding: 14px 18px; background: var(--bg-alt); font-weight: 700; color: var(--brand-dark); }
.nd-info dd { padding: 14px 18px; flex: 1; }
.tbd-soft { color: var(--text-sub); }
.nd-body p { font-size: 17px; line-height: 1.9; color: #343A40; margin-bottom: 16px; }
.nd-files { margin-top: 36px; padding: 18px 20px; background: var(--bg-alt); border-radius: var(--radius); }
.nd-files h2 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.nd-files li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.nd-files svg { width: 18px; height: 18px; fill: none; stroke: #8A919B; stroke-width: 2; stroke-linejoin: round; }
.file-sample { font-size: 12px; font-weight: 600; color: #8A919B; padding: 2px 8px; border: 1px solid #D3D7DC; border-radius: 999px; }
.file-dl { font-size: 14px; font-weight: 700; color: var(--brand-dark); }
.nd-nofile { color: #8A919B; font-size: 14px; }
.nd-pager { margin-top: 36px; border-top: 1px solid var(--line); }
.nd-pager a { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.nd-pager a:hover { color: var(--brand-dark); }
.nd-pager span { width: 56px; flex-shrink: 0; font-size: 14px; font-weight: 500; color: var(--text-sub); }
.nd-actions { margin-top: 28px; text-align: center; }

/* 정책 */
.pilot-banner {
  display: flex; flex-direction: column; gap: 4px; margin-top: 28px; padding: 16px 20px;
  background: #FFFBEF; border: 1px solid #F3E2B0; border-left: 5px solid #E0A800; border-radius: 10px; color: #5C4A12;
}
.pilot-banner strong { font-size: 16px; }
.pilot-banner span { font-size: 14px; }
.pol-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pol-feature {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.pol-feature::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--brand); }
.pol-feature:hover { border-color: var(--brand); box-shadow: 0 10px 26px rgba(0,0,0,.07); }
.pol-num { font-size: 32px; font-weight: 800; color: #F3D3BB; line-height: 1; font-variant-numeric: tabular-nums; }
.pol-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pol-field { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-dark); }
.pol-sample { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 4px; color: #8A5A00; background: #FFF4D6; border: 1px solid #F3D88E; }
.pol-feature-title { font-size: 22px; font-weight: 800; line-height: 1.35; }
.pol-feature-sum { color: var(--text-sub); line-height: 1.7; }
.pol-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--brand-dark); }

#policy-filters { margin-bottom: 14px; }
.pol-list { display: flex; flex-direction: column; gap: 14px; }
.pol-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 18px; transition: border-color .15s; scroll-margin-top: 84px; }
.pol-card.open { border-color: #F6C9A6; }
.pol-title { font-size: 20px; font-weight: 800; margin: 10px 0 6px; }
.pol-sum { color: var(--text-sub); line-height: 1.7; }
.pol-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 0;
  border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--brand-dark);
}
.pol-toggle:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pol-card.open .pol-toggle .chev { transform: translateY(1px) rotate(-135deg); }
.pol-detail { margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pol-sec h4 { font-size: 14px; font-weight: 800; color: var(--brand-dark); margin-bottom: 8px; }
.pol-sec p, .pol-sec li { font-size: 15px; line-height: 1.75; color: #343A40; }
.pol-sec ol { padding-left: 18px; }
.pol-sec li + li { margin-top: 4px; }

@media (max-width: 860px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .pol-detail { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .quick-links { padding-top: 0; }
  .quick-grid { gap: 10px; }
  .quick-card { padding: 16px; }
  .quick-card strong { font-size: 15px; padding-right: 0; }
  .qk-arrow { display: none; }
  .section-head-row { align-items: flex-start; }
  .nd-title { font-size: 23px; }
  .nd-info dt { width: 80px; padding: 12px 14px; }
  .nd-info dd { padding: 12px 14px; }
  .nd-body p { font-size: 16px; }
  .pol-feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .pol-feature { padding: 22px 20px 20px; }
  .pol-feature-title { font-size: 19px; }
  .pol-card { padding: 18px 18px 14px; }
  .pol-title { font-size: 18px; }
}

/* =========================================================
   4차: 공통 (안내, 관련 콘텐츠, 개발 모드 표시)
   ========================================================= */
/* 클릭 가능 안내 */
.tap-hint {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 14px 7px 10px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 14px; font-weight: 600;
}
.tap-icon { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; flex-shrink: 0; }
.tap-icon::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }

/* 관련 콘텐츠 */
.related { padding: 0 0 72px; }
.related-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.related-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 48px 18px 20px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.related-card:hover { border-color: var(--brand); background: #fff; }
.related-card span { font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.related-card strong { font-size: 16px; font-weight: 800; }
.related-card i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: #B0B6BD; }
.related-card:hover i { color: var(--brand); }

/* 띠 형태 행동 유도 */
.cta-band { padding: 52px 0; background: var(--brand-soft); border-top: 1px solid #F6DCC8; color: var(--text); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-kicker { color: var(--brand); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cta-band h2 { font-size: 24px; font-weight: 800; line-height: 1.4; }
.cta-band .btn { flex-shrink: 0; }

/* 개발 모드 표시 */
.dev-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 90; padding: 5px 10px; border-radius: 6px;
  background: rgba(34,38,43,.85); color: #FFD9BD; font-size: 12px; font-weight: 700; pointer-events: none;
}

@media (max-width: 640px) {
  .related { padding-bottom: 52px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-band h2 { font-size: 20px; }
  .dev-badge { font-size: 11px; left: 8px; bottom: 8px; }
}

/* 준비 중 페이지 */
.coming { background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.coming-inner { min-height: calc(100vh - 64px - 160px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 72px; padding-bottom: 72px; }
.coming-icon { width: 72px; height: 72px; margin-bottom: 22px; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(255,114,16,.18); display: flex; align-items: center; justify-content: center; }
.coming-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.coming h1 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.coming p { max-width: 520px; color: var(--text-sub); font-size: 17px; line-height: 1.75; margin-bottom: 28px; }
@media (max-width: 640px) { .coming h1 { font-size: 24px; } .coming p { font-size: 16px; } }

/* ===== 카드뉴스 ===== */
.section-cardnews { padding-bottom: 24px; }
.section-notices { padding-top: 48px; }
.cn-head-actions { display: flex; align-items: center; gap: 8px; }
.cn-head-actions .more-link { margin-left: 6px; }
.cn-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); column-gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 16px;
  scrollbar-width: none;
}
.cn-track::-webkit-scrollbar { display: none; }
.cn-slide { scroll-snap-align: start; }
.cn-card { display: block; }
.cn-card:hover .cn-art, .cn-card:hover .cn-img { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.12); }
.cn-card:hover .cn-card-title { color: var(--brand-dark); }
.cn-meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.cn-card-title { font-weight: 700; line-height: 1.45; transition: color .15s; }
.cn-meta time { font-size: 13px; color: var(--text-sub); font-variant-numeric: tabular-nums; }

/* HTML/CSS 로 그린 카드뉴스 표지 (실제 이미지로 교체 가능) */
.cn-art, .cn-img {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 1 / 1; width: 100%;
  border-radius: 14px; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.cn-img { object-fit: cover; background: var(--bg-alt); }
.cn-art { padding: 9% 9% 8%; container-type: inline-size; }
.cn-kicker { align-self: flex-start; font-size: 5cqw; font-weight: 700; padding: .3em .8em; border-radius: 999px; }
.cn-title { margin-top: 10%; font-size: 10.5cqw; font-weight: 800; line-height: 1.22; letter-spacing: -.02em; }
.cn-sub { margin-top: auto; font-size: 4.6cqw; font-weight: 600; opacity: .85; }
.cn-brand { margin-top: 3%; font-size: 4cqw; font-weight: 800; opacity: .7; }
.cn-sample {
  position: absolute; top: 7%; right: 7%; font-size: 3.8cqw; font-weight: 700; padding: .25em .7em; border-radius: 5px;
  background: rgba(255,255,255,.9); color: #8A5A00;
}
.cn-orange { background: linear-gradient(150deg, #FF8A3D, #FF7210 55%, #E05E00); color: #fff; }
.cn-orange .cn-kicker { background: rgba(255,255,255,.22); }
.cn-orange::after { content: ""; position: absolute; right: -18%; bottom: -18%; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 6cqw solid rgba(255,255,255,.14); }
.cn-dark { background: #22262B; color: #fff; }
.cn-dark .cn-kicker { background: var(--brand); }
.cn-dark::after { content: ""; position: absolute; right: 9%; bottom: 9%; width: 16%; aspect-ratio: 1; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); }
.cn-light { background: #FFF1E7; color: #22262B; border: 1px solid #F6DCC8; }
.cn-light .cn-kicker { background: var(--brand); color: #fff; }
.cn-light .cn-title { color: #22262B; }
.cn-light::after { content: ""; position: absolute; right: -10%; top: 30%; width: 44%; aspect-ratio: 1; border-radius: 30%; background: rgba(255,114,16,.14); transform: rotate(18deg); }

/* 카드뉴스 목록 */
.cn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
/* 카드뉴스 상세 */
.cnd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.cnd-visual { display: flex; flex-direction: column; gap: 14px; }
.cnd-visual .cn-art:hover, .cnd-visual .cn-img:hover { transform: none; }
.cnd-title { font-size: 30px; font-weight: 800; line-height: 1.35; margin: 4px 0 8px; }
.cnd-summary { font-size: 17px; line-height: 1.85; color: #343A40; margin: 20px 0 28px; }
.cnd-related h2 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.cnd-related { display: flex; flex-direction: column; gap: 10px; }
.cnd-related .related-card { padding: 14px 44px 14px 18px; }
.cnd-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-sub); }
.cnd-nav a:last-child { text-align: right; }
.cnd-nav a:not(.btn):hover { color: var(--brand-dark); }


@media (max-width: 860px) {
  .cn-track { grid-auto-columns: calc((100% - 20px) / 2.2); }
  .cn-grid { grid-template-columns: repeat(2, 1fr); }
  .cnd { grid-template-columns: 1fr; gap: 28px; }
  .cnd-visual { max-width: 520px; }
}
@media (max-width: 640px) {
  .cn-track { grid-auto-columns: 78%; column-gap: 14px; scroll-snap-type: x mandatory; }
  .cn-slide { scroll-snap-align: center; }
  .cn-head-actions .hs-arrow { display: none; }
  .cn-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .cnd-title { font-size: 23px; }
  .cnd-summary { font-size: 16px; }
  .cnd-nav { grid-template-columns: 1fr; text-align: center; }
  .cnd-nav a:last-child { text-align: center; }
}

/* ===== 입당·후원 안내 ===== */
.steps { display: flex; flex-direction: column; gap: 14px; counter-reset: none; }
.steps li { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-no { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; font-size: 17px; margin-bottom: 2px; }
.steps p { color: var(--text-sub); }
.join-cta { margin-top: 28px; text-align: center; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.join-note { margin-top: 12px; font-size: 14px; color: var(--text-sub); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.support-kicker { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-dark); }
.support-card h3 { font-size: 20px; font-weight: 800; }
.support-card p { color: #343A40; line-height: 1.7; }
.tbd-box { margin-top: auto; padding: 10px 12px; border: 1px dashed #D3D7DC; border-radius: 8px; font-size: 14px; color: #8A919B !important; background: var(--bg-alt); }
@media (max-width: 640px) {
  .support-grid { grid-template-columns: 1fr; }
  .steps li { padding: 16px; }
}

/* ===== 우리 동네 제안 (시제품) ===== */
.pz-write-link { margin-top: 18px; }
.pz-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: start; }
.pz-region { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.pz-h { font-size: 18px; font-weight: 800; }
.pz-search { position: relative; }
.pz-search .search-box { flex-basis: auto; }
.pz-suggest {
  position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
.pz-suggest li { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.pz-suggest li small { color: var(--text-sub); font-weight: 500; margin-left: 4px; }
.pz-suggest li:hover, .pz-suggest li[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-dark); }
.pz-suggest .pz-nomatch { cursor: default; color: var(--text-sub); font-weight: 500; }
.pz-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pz-selects select, .pz-form select, .pz-form input[type="text"], .pz-form textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; color: var(--text);
}
.pz-selects select:disabled, .pz-form select:disabled { background: var(--bg-alt); color: #9AA1AA; }
.pz-map-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.pz-map { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); gap: 4px; }
.pz-tile {
  position: relative; aspect-ratio: 1 / 1; min-width: 0; padding: 2px; border: 1px solid #E4E6EA; border-radius: 8px;
  background: var(--bg-alt); cursor: pointer; font: inherit; color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: background .15s, border-color .15s, transform .1s;
}
.pz-tile:hover { border-color: var(--brand); }
.pz-tile.has1 { background: #FFE7D6; }
.pz-tile.has2 { background: #FFCDA8; }
.pz-tile.has3 { background: #FFB27A; }
.pz-tile.selected { background: var(--brand); border-color: var(--brand-dark); color: #fff; }
.pz-tname { font-size: 12px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.pz-tcount { font-size: 11px; font-weight: 800; color: var(--brand-dark); }
.pz-tile.selected .pz-tcount { color: #fff; }
.pz-seoul {
  display: flex; align-items: center; justify-content: center; border: 1px dashed #D3D7DC; border-radius: 8px;
  font-size: 12px; color: #A3A9B1; font-weight: 600;
}
.pz-map-note { margin-top: 10px; font-size: 12px; color: #8A919B; line-height: 1.5; }
.pz-gu-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pz-gu-label { width: 100%; font-size: 13px; font-weight: 700; color: var(--text-sub); }
.pz-gu-chips .chip { padding: 6px 12px; font-size: 14px; }
.pz-gu-chips small { font-weight: 500; opacity: .75; }

.pz-path { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; font-size: 15px; color: var(--text-sub); }
.pz-crumb { border: 0; background: none; padding: 2px 0; font: inherit; color: var(--brand-dark); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pz-path strong { color: var(--text); }
#pz-fields { margin-bottom: 12px; }
.pz-list { display: flex; flex-direction: column; gap: 12px; }
.pz-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 18px 20px;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.pz-card:hover { border-color: #F6C9A6; box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.pz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-place { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.pz-title { font-size: 18px; font-weight: 800; }
.pz-sum { color: var(--text-sub); line-height: 1.6; }
.pz-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; color: var(--text-sub); width: 100%; }
.pz-emp { font-weight: 700; color: var(--brand-dark); }
.pz-status { margin-left: auto; padding: 2px 9px; border-radius: 999px; font-weight: 700; background: #EEF0F3; color: #5B636E; }
.pz-status.s1 { background: #FFF4D6; color: #8A5A00; }
.pz-status.s2 { background: #E6F0FF; color: #1F4FA3; }
.pz-status.s3 { background: #E5F5EC; color: #1E7A46; }

/* 제안 상세 팝업 */
.proposal-modal { width: min(640px, calc(100% - 32px)); }
.pzd { padding: 28px 28px 26px; }
.pzd-title { font-size: 24px; font-weight: 800; line-height: 1.35; margin: 10px 40px 6px 0; }
.pzd-meta { font-size: 14px; color: var(--text-sub); }
.pzd-body { margin: 16px 0 18px; line-height: 1.8; color: #343A40; }
.pzd-emp { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg-alt); border-radius: 10px; }
.pzd-emp strong { display: block; font-size: 18px; color: var(--brand-dark); }
.pzd-emp small { color: #8A919B; font-size: 12px; }
.pzd-emp .btn { padding: 8px 14px; font-size: 14px; font: inherit; font-weight: 700; cursor: pointer; background: #fff; }
.pzd-h { font-size: 15px; font-weight: 800; margin: 22px 0 10px; }
.pzd-h small { font-size: 12px; font-weight: 600; color: #8A919B; margin-left: 6px; }
.pzd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pzd-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; color: #9AA1AA; font-weight: 600; position: relative; }
.pzd-steps li span { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #EEF0F3; font-weight: 800; position: relative; z-index: 1; }
.pzd-steps li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: #E4E6EA; }
.pzd-steps li:first-child::before { display: none; }
.pzd-steps li.done, .pzd-steps li.current { color: var(--text); }
.pzd-steps li.done span { background: #FFD3B3; color: var(--brand-dark); }
.pzd-steps li.done::before, .pzd-steps li.current::before { background: #FFB27A; }
.pzd-steps li.current span { background: var(--brand); color: #fff; }
.pzd-related { display: flex; flex-direction: column; gap: 6px; }
.pzd-related button { width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pzd-related button:hover { border-color: var(--brand); color: var(--brand-dark); }
.pzd-related span { display: block; font-size: 12px; font-weight: 600; color: var(--text-sub); }
.pzd-policy { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--brand-dark); }
.pzd-policy:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 제안 작성 */
.pz-form { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.pz-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.pz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pz-field label { display: flex; align-items: baseline; gap: 6px; font-weight: 700; margin-bottom: 6px; }
.pz-field em { font-style: normal; font-size: 12px; color: var(--brand-dark); }
.pz-counter { margin-left: auto; font-size: 13px; font-weight: 500; color: #8A919B; }
.pz-form textarea { height: auto; padding: 12px; line-height: 1.7; resize: vertical; }
.pz-form :is(input, select, textarea):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pz-guide { padding: 16px 18px; background: var(--bg-alt); border-radius: 10px; }
.pz-guide h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.pz-guide ul { padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #343A40; line-height: 1.6; }
.pz-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; cursor: pointer; }
.pz-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.pz-error { padding: 10px 14px; border-radius: 8px; background: #FDECEA; color: #B42318; font-weight: 600; font-size: 14px; }
.pz-form > .btn { align-self: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 17px; }
.pz-result { text-align: center; padding: 36px 24px; background: #fff; border: 2px solid var(--brand); border-radius: var(--radius); }
.pz-result strong { display: block; font-size: 20px; margin-bottom: 8px; }
.pz-result p { color: var(--text-sub); margin-bottom: 18px; }
.pz-result .btn { font: inherit; font-weight: 700; cursor: pointer; background: #fff; }

@media (max-width: 1100px) { .pz-layout { grid-template-columns: 330px minmax(0, 1fr); gap: 24px; } }
@media (max-width: 860px) {
}
@media (max-width: 640px) {
  .pz-map-wrap { padding: 10px; }
  .pz-map { gap: 3px; }
  .pz-tname { font-size: 11px; }
  .pz-row { grid-template-columns: 1fr; }
  .pz-form { padding: 18px; }
  .pzd { padding: 22px 18px 20px; }
  .pzd-title { font-size: 20px; }
  .pzd-steps li { font-size: 11px; }
  .pz-status { margin-left: 0; }
}

/* ===== 5차: 입당·후원 ===== */
.info-note { margin-top: 32px; padding: 16px 18px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); }
.info-note strong { display: block; margin-bottom: 4px; }
.info-note p { color: var(--text-sub); font-size: 15px; line-height: 1.7; }
.sp-warning { border-left-color: #D92D20; background: #FFF6F5; border-color: #F5C6C2; color: #7A271A; }
.sp-compare { margin-top: 18px; }
.sp-link { margin-top: auto; font-weight: 700; color: var(--brand-dark); }
.tbd-inline { display: inline-block; padding: 2px 10px; border: 1px dashed #C9CED4; border-radius: 6px; color: #8A919B; font-size: 14px; background: #fff; }
.steps-tbd { border-style: dashed !important; background: var(--bg-alt) !important; }
.steps-tbd .step-no { background: #C9CED4; }
.sp-channel dd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-account { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-channel .btn { padding: 6px 14px; font-size: 14px; cursor: pointer; background: #fff; font-family: inherit; }
.sp-channel .btn-primary { background: var(--brand); }
.sp-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sp-note { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sp-note strong { display: block; margin-bottom: 6px; }
@media (max-width: 640px) { .sp-notes { grid-template-columns: 1fr; } }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cta-band .btn-outline { background: #fff; }

/* ===== SNS ===== */
.sns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sns-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.sns-icon { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.sns-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.sns-name { font-size: 20px; font-weight: 800; }
.sns-desc { color: var(--text-sub); margin-bottom: 14px; }
.sns-card .btn { margin-top: auto; padding: 10px 18px; font-size: 15px; }
.sns-status { margin-top: auto; padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); border: 1px dashed #C9CED4; color: #8A919B; font-size: 14px; font-weight: 700; }
.sns-card.is-pending .sns-icon { background: var(--bg-alt); color: #A3A9B1; }
/* 카드뉴스 상세 SNS 버튼 */
.cnd-sns { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 26px; }
.cnd-sns .btn { padding: 9px 16px; font-size: 14px; }
.sns-pending-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px dashed #C9CED4; color: #8A919B; font-size: 14px; font-weight: 600; background: var(--bg-alt); }
@media (max-width: 860px) { .sns-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sns-grid { grid-template-columns: 1fr; gap: 12px; } .sns-card { padding: 20px; } }

/* ===== 5차: 우리 동네 제안 2열 배치 · 점진적 작성 폼 ===== */
.pz-map-box > summary { display: none; }
.pz-current {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px;
}
.pz-pin { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); }
.pz-current .pz-path { margin: 0; font-size: 16px; }
.pz-compose { padding: 18px 20px 20px; margin-bottom: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.pz-compose-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pz-compose-head h2 { font-size: 18px; font-weight: 800; }
.pz-compose-head .draft-badge { margin: 0; }
.pz-compose .pz-form { border: 0; padding: 0; background: none; gap: 12px; }
.pz-region-line { font-size: 14px; color: var(--text-sub); }
.pz-region-line strong { margin-left: 6px; color: var(--text); }
.pz-region-line strong.is-empty { color: #B54708; font-weight: 600; }
.pz-compose input[type="text"] { height: 48px; font-size: 16px; }
.pz-form.is-open input[type="text"] { border-color: #F6C9A6; }
.pz-more { display: flex; flex-direction: column; gap: 14px; animation: fadeIn .2s ease both; }
.pz-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pz-actions .btn { font: inherit; font-weight: 700; cursor: pointer; }
.pz-actions .btn-outline { background: #fff; }
.pz-actions .btn-primary { border: 0; }
.pz-compose .pz-result { border-width: 1px; padding: 24px; }
.pz-list-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pz-list-head h2 { font-size: 18px; font-weight: 800; }

@media (max-width: 760px) {
  .pz-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pz-region { position: static; padding: 16px; background: var(--bg-alt); border-radius: 14px; }
  .pz-region .pz-h { font-size: 16px; }
  .pz-map-box > summary {
    display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; cursor: pointer; list-style: none;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 700;
  }
  .pz-map-box > summary::-webkit-details-marker { display: none; }
  .pz-map-box > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .pz-map-box[open] > summary { margin-bottom: 8px; }
  .pz-map-box[open] > summary::after { transform: rotate(-135deg); }
  /* 선택한 지역 표시: 스크롤해도 화면 위에 고정 */
  .pz-current { position: sticky; top: 64px; z-index: 4; box-shadow: 0 4px 12px rgba(0,0,0,.06); scroll-margin-top: 72px; }
  .pz-compose { padding: 16px; }
}
.err-code { font-size: 64px !important; font-weight: 800; color: var(--brand) !important; line-height: 1; margin-bottom: 12px !important; }
