/* =========================================================
   v2 홈 화면 전용 (index.html 에서만 불러옴). 접두사 hv-
   브레이크포인트는 style.css 와 같은 860 / 760 / 640
   ========================================================= */

/* ----- 헤더 입당 버튼 (site.js 가 모든 페이지 헤더에 추가, 스타일은 style.css 에도 있음) ----- */

/* ----- ① 히어로: 슬로건 + 한 줄 제안 ----- */
.hv-hero {
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
  padding: 64px 0 56px; text-align: center;
}
.hv-hero-inner { max-width: 880px; }
.hv-kicker { color: var(--brand); font-weight: 800; letter-spacing: .5px; margin-bottom: 10px; }
.hv-slogan { height: 1.3em; overflow: hidden; font-size: 48px; font-weight: 800; line-height: 1.3; letter-spacing: -1px; }
.hv-slogan ul { will-change: transform; }
.hv-slogan li { height: 1.3em; white-space: nowrap; }
.hv-slogan-badge { margin: 12px 0 0; }
.hv-ask { margin: 36px 0 16px; font-size: 20px; color: var(--text-sub); }
.hv-ask strong { color: var(--text); }

.hv-form {
  display: flex; align-items: center; gap: 0;
  background: #fff; border: 2px solid var(--brand); border-radius: 999px;
  padding: 6px; box-shadow: 0 12px 32px rgba(255,114,16,.14);
  text-align: left;
}
.hv-form select, .hv-form input {
  font: inherit; border: 0; background: transparent; color: var(--text); outline: none; min-width: 0;
}
.hv-form select {
  flex: 0 0 auto; height: 52px; padding: 0 34px 0 22px; font-weight: 700; cursor: pointer;
  border-right: 1px solid var(--line); border-radius: 999px 0 0 999px;
  appearance: none; -webkit-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B636E' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.hv-form input { flex: 1; height: 52px; padding: 0 18px; font-size: 18px; }
.hv-form input::placeholder { color: #9AA1AA; }
.hv-form select:focus-visible, .hv-form input:focus-visible { outline: none; }
.hv-form:focus-within { box-shadow: 0 0 0 4px rgba(255,114,16,.22), 0 12px 32px rgba(255,114,16,.14); }
.hv-send {
  flex: 0 0 auto; height: 52px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font: inherit; font-size: 18px; font-weight: 800; transition: background .15s;
}
.hv-send:hover { background: var(--brand-dark); }

.hv-error { margin-top: 12px; color: #B42318; font-weight: 700; }
.hv-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--text-sub); font-size: 15px; }
.hv-note svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.hv-proto { margin-top: 10px; }
.hv-proto .draft-badge { margin: 0; }

.hv-chips-wrap { margin-top: 30px; }
.hv-chips-label { font-size: 14px; font-weight: 700; color: var(--text-sub); margin-bottom: 10px; }
.hv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hv-chip {
  display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; transition: border-color .15s, color .15s;
}
.hv-chip span { color: var(--brand-dark); font-weight: 700; }
.hv-chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.hv-chips.is-swap { animation: hvIn .35s ease both; }
.hv-chips-empty { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px dashed #F0B98F; color: var(--text-sub); line-height: 1.6; }
.hv-chips-empty strong { color: var(--brand-dark); }

/* 보낸 뒤 */
.hv-done { margin-top: 32px; padding: 36px 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; outline: none; }
.hv-done-check {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800;
}
.hv-done-title { font-size: 26px; font-weight: 800; }
.hv-done-quote { margin: 10px auto 6px; max-width: 560px; font-size: 18px; font-weight: 700; color: var(--text); }
.hv-done-sub { color: var(--text-sub); margin-bottom: 22px; }
.hv-done-more { margin-top: 12px; color: var(--text-sub); font-size: 15px; }
.hv-share { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hv-share-label { font-weight: 700; margin-bottom: 12px; }
.hv-share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hv-sh {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-weight: 700; cursor: pointer; transition: .15s;
}
.hv-sh:hover { border-color: var(--text); }
.hv-sh-kakao { background: #FEE500; border-color: #FEE500; color: #191919; }
.hv-sh-insta { background: #fff; border-color: #E1306C; color: #C1185A; }
.hv-sh-fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.hv-again { margin-top: 20px; border: 0; background: none; font: inherit; color: var(--text-sub); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ----- ② 지도 + 민원 롤링 ----- */
.hv-live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: stretch; }
.hv-map-card { background: var(--bg-alt); border-radius: 20px; padding: 24px; }
.hv-map { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 54px; gap: 6px; }
.hv-tile {
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--text-sub);
  transition: background .35s, color .35s, border-color .35s, transform .35s;
}
.hv-tile.has { color: var(--text); border-color: #F6CBA9; }
.hv-tile:hover { border-color: var(--brand); }
.hv-tile.on { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.06); box-shadow: 0 6px 18px rgba(255,114,16,.35); }
.hv-seoul {
  display: flex; align-items: center; justify-content: center; border: 1px dashed #C9CED4; border-radius: 10px;
  color: #9AA1AA; font-size: 13px; font-weight: 600;
}
.hv-map-note { margin-top: 12px; font-size: 12px; color: #8A919B; text-align: center; }

.hv-side { display: flex; flex-direction: column; gap: 16px; }
.hv-feed-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 0 0 16px 16px; padding: 20px 24px 24px; }
.hv-feed-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hv-feed-label { font-weight: 800; color: var(--brand-dark); }
.hv-feed-ctrl { display: flex; gap: 6px; }
.hv-feed-ctrl .hs-arrow, .hv-feed-ctrl .hs-pause { width: 36px; height: 36px; }
.hv-feed-card.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; }
.hv-feed { min-height: 176px; }
.hv-voice { animation: hvIn .45s ease both; }
@keyframes hvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hv-voice-tags { display: flex; gap: 6px; margin-bottom: 12px; }
.hv-voice-text { font-size: 24px; font-weight: 800; line-height: 1.45; letter-spacing: -.3px; }
.hv-voice-text.hv-empty { font-size: 20px; color: var(--text-sub); margin-bottom: 16px; }
.hv-voice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 16px; color: var(--text-sub); font-size: 15px; }
.hv-voice-meta strong { color: var(--text); }
.hv-st { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #EEF0F3; color: var(--text-sub); }
.hv-st.s1 { background: #FFF4D6; color: #8A5A00; }
.hv-st.s2 { background: #E3F4EA; color: #1E6B3E; }
.hv-voice-go { font-weight: 700; color: var(--brand-dark); }
.hv-voice-go:hover { text-decoration: underline; text-underline-offset: 3px; }

.hv-leader {
  flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; animation: hvIn .45s ease both;
}
.hv-leader-people { flex: 1; display: grid; gap: 14px; align-content: center; }
.hv-leader-people.is-multi { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hv-person {
  display: flex; align-items: center; gap: 28px; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
div.hv-person { cursor: default; }
.hv-photo {
  flex: 0 0 auto; width: 168px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
}
.hv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hv-photo-init { font-size: 40px; font-weight: 800; color: var(--brand-dark); }
.hv-photo.is-tbd { background: #EEF0F3; }
.hv-photo.is-tbd svg { width: 62%; fill: #C9CED4; }
button.hv-person:hover .hv-photo { box-shadow: 0 0 0 3px var(--brand); }
.hv-person-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hv-person-role { font-size: 20px; font-weight: 700; color: var(--brand-dark); }
.hv-person-name { font-size: 40px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.hv-person-name.tbd { font-size: 26px; color: #9AA1AA; font-style: normal; }
.hv-person-sub { color: var(--text-sub); font-size: 15px; }
.is-multi .hv-person { flex-direction: column; align-items: flex-start; gap: 12px; }
.is-multi .hv-photo { width: 110px; }
.is-multi .hv-person-name { font-size: 26px; }
.hv-leader-more { align-self: flex-end; font-size: 15px; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.hv-leader-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ----- ③ 오시는 길 / 위원장을 찾습니다 ----- */
.hv-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.hv-visit, .hv-recruit { padding: 36px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.hv-recruit { background: #22262B; border-color: #22262B; color: #fff; display: flex; flex-direction: column; }
.hv-h { font-size: 30px; font-weight: 800; line-height: 1.3; letter-spacing: -.5px; }
.hv-p { margin: 12px 0 22px; color: var(--text-sub); font-size: 16px; line-height: 1.7; }
.hv-recruit .hv-p { color: #C9CED4; }
.hv-recruit-eyebrow { color: var(--brand); font-weight: 800; margin-bottom: 8px; }
.hv-mapbox { min-height: 0; padding: 24px; }
.hv-mapbox .map-address { font-size: 17px; margin-bottom: 16px; }
.hv-info { margin-top: 16px; display: grid; gap: 8px; }
.hv-info div { display: flex; gap: 12px; font-size: 15px; }
.hv-info dt { flex: 0 0 64px; color: var(--text-sub); font-weight: 700; }
.hv-info a { color: var(--brand-dark); font-weight: 600; }
.hv-recruit-list { display: grid; gap: 10px; margin-bottom: 28px; }
.hv-recruit-list li { position: relative; padding-left: 26px; font-weight: 600; }
.hv-recruit-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg);
}
.hv-recruit-btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.hv-recruit .btn-outline { border-color: #fff; color: #fff; background: transparent; cursor: pointer; font: inherit; font-weight: 700; }
.hv-recruit .btn-outline:hover { background: rgba(255,255,255,.1); }
.hv-recruit .draft-badge { align-self: flex-start; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.hv-recruit button.btn-lg, .hv-recruit .btn-lg { font-size: 17px; }

/* 지원하기 팝업 */
.hv-apply { padding: 32px; }
.hv-apply-title { font-size: 24px; font-weight: 800; }
.hv-apply-sub { color: var(--text-sub); margin: 6px 0 20px; }
.hv-apply form { display: grid; gap: 14px; }
.hv-apply label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.hv-apply input:not([type=checkbox]), .hv-apply select, .hv-apply textarea {
  font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.hv-apply input:focus, .hv-apply select:focus, .hv-apply textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(255,114,16,.18); }
.hv-apply .hv-apply-agree { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.hv-apply-agree input { margin-top: 5px; accent-color: var(--brand); }
.hv-apply-agree small { color: var(--text-sub); font-weight: 400; }
.hv-apply .btn { justify-self: start; }
.hv-apply-ok { padding: 24px; border-radius: 12px; background: var(--brand-soft); font-weight: 700; line-height: 1.7; }

.hv-visit-note { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: 14px; font-weight: 600; }

/* ----- ④ 카드뉴스·공지 / 후원 ----- */
.hv-news { padding-top: 64px; }
.hv-newsbox, .hv-support { padding: 32px; border-radius: 20px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.hv-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hv-h2 { font-size: 22px; font-weight: 800; }
.hv-cn { position: relative; }
.hv-cn-view { overflow: hidden; border-radius: 14px; }
.hv-cn-track { display: flex; column-gap: 14px; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.hv-cn-slide { flex: 0 0 56%; opacity: .4; transform: scale(.92); transition: opacity .45s, transform .45s; }
.hv-cn-slide.is-on { opacity: 1; transform: none; }
.hv-cn-slide a { display: block; }
.hv-cn-slide .cn-art, .hv-cn-slide .cn-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; }
.hv-cn-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.95); cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.hv-cn-arrow:hover { border-color: var(--brand); color: var(--brand); }
.hv-cn-arrow.prev { left: 6px; }
.hv-cn-arrow.next { right: 6px; }
.hv-cn-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-weight: 700; }
.hv-cn-caption a:hover { color: var(--brand-dark); }
.hv-cn-caption span { flex: 0 0 auto; color: var(--text-sub); font-weight: 600; font-size: 14px; }
.hv-notice-head { margin-top: 30px; margin-bottom: 4px; }
.hv-notice-list { border-top: 2px solid var(--text); }
.hv-support { background: var(--brand-soft); border-color: #F6D3B8; display: flex; flex-direction: column; }
.hv-support .draft-badge { align-self: flex-start; }
.hv-support-list { display: grid; gap: 10px; margin-bottom: 28px; }
.hv-support-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #fff; }
.hv-support-list strong { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; }
.hv-support-list span { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hv-cn-track, .hv-cn-slide { transition: none; }
  .hv-chips.is-swap { animation: none; }
  .hv-voice, .hv-leader { animation: none; }
  .hv-tile { transition: none; }
}

/* ----- 반응형 ----- */
@media (max-width: 960px) {
  .hv-slogan { font-size: 40px; }
}
@media (max-width: 860px) {
  .hv-live-grid, .hv-bottom-grid { grid-template-columns: 1fr; }
  .hv-map { grid-auto-rows: 48px; }
}
@media (max-width: 760px) {
  .hv-hero { padding: 36px 0 40px; }
  .hv-slogan { font-size: 30px; letter-spacing: -.6px; }
  .hv-ask { margin: 22px 0 12px; font-size: 17px; }
  /* 휴대폰: 지역 선택 / 입력 / 보내기를 세로로 */
  .hv-form { flex-wrap: wrap; border-radius: 20px; padding: 8px; gap: 6px; }
  .hv-form select { flex: 1 1 100%; height: 46px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
  .hv-form input { flex: 1 1 100%; height: 50px; font-size: 17px; padding: 0 14px; }
  .hv-send { flex: 1 1 100%; height: 50px; border-radius: 14px; }
  .hv-note { font-size: 14px; text-align: left; align-items: flex-start; }
  .hv-chips { justify-content: flex-start; }
  .hv-chips-label { text-align: left; }
  .hv-chip { font-size: 14px; text-align: left; }
  .hv-done { padding: 28px 18px; }
  .hv-done-go { display: block; white-space: normal; }
}
@media (max-width: 640px) {
  .hv-slogan { font-size: 26px; }
  .hv-map-card { padding: 14px; }
  .hv-map { gap: 4px; grid-auto-rows: 42px; }
  .hv-tile { font-size: 12px; border-radius: 8px; }
  .hv-seoul { font-size: 11px; }
  .hv-feed-card { padding: 16px 18px 20px; }
  .hv-feed { min-height: 210px; }
  .hv-voice-text { font-size: 20px; }
  .hv-leader { padding: 18px; }
  .hv-photo { width: 104px; }
  .hv-person { gap: 16px; }
  .hv-person-role { font-size: 15px; }
  .hv-person-name { font-size: 28px; }
  .hv-newsbox, .hv-support { padding: 24px 18px; }
  .hv-cn-slide { flex-basis: 70%; }
  .hv-cn-arrow { width: 38px; height: 38px; }
  .hv-visit, .hv-recruit { padding: 26px 20px; }
  .hv-h { font-size: 25px; }
  .hv-recruit-btns .btn { flex: 1 1 auto; text-align: center; }
  .hv-apply { padding: 26px 20px; }
}

/* =========================================================
   PC 첫 화면 (861px 이상): 슬로건 크게 위, 그 아래 입력창(왼쪽) · 지역 맞춤 이웃 이야기(오른쪽)
   2026-11-13 시안 A 확정 (B·C 비교 코드 삭제)
   ========================================================= */
@media (min-width: 861px) {
  
  .hv-hero { padding: 40px 0 36px; }
  .hv-hero-inner { max-width: var(--max); }
  #hv-ask {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 48px;
    align-items: start; text-align: left; margin-top: 30px;
  }
  #hv-ask > * { grid-column: 1; }
  #hv-ask > .hv-chips-wrap { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; padding-left: 28px; border-left: 1px solid #F6D3B8; }
  .hv-ask { margin: 0 0 14px; }
  .hv-chips-label { text-align: left; }
  .hv-chips { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hv-chip { padding: 7px 14px; font-size: 14px; }
  .hv-live { padding-top: 44px; }
  .hv-done { max-width: 880px; margin-left: auto; margin-right: auto; }

  .hv-form { padding: 8px; }
  .hv-form select, .hv-form input, .hv-send { height: 60px; }
  .hv-form input { font-size: 19px; }
  .hv-send { font-size: 19px; padding: 0 34px; }
}
