/* =========================================================================
   컴포넌트 — 버튼, 칩, 카드, 캐러셀, 용어 풀이, 표, 폼, 모달
   ========================================================================= */

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--touch); padding: .625rem 1.375rem; border-radius: 999px; border: 2px solid var(--c-text); background: transparent; color: var(--c-text); font-weight: 700; font-size: var(--fs-body); line-height: 1.3; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .2s linear, color .2s linear, border-color .2s linear; }
.btn:hover { background: var(--c-text); color: #fff; }
.btn--fill { background: var(--c-point); border-color: var(--c-point); color: #fff; }
.btn--fill:hover { background: var(--c-point-dark); border-color: var(--c-point-dark); }
.btn--call { background: var(--c-call); border-color: var(--c-call); color: #fff; }
.btn--call:hover { background: var(--c-call-dark); border-color: var(--c-call-dark); }
.btn--white { border-color: #fff; color: #fff; }
.btn--white:hover { background: #fff; color: var(--c-text); }
.btn--lg { min-height: 3.5rem; padding: .75rem 1.75rem; font-size: var(--fs-lg); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--gap-sm); }
.link-u { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: var(--touch); }
.link-u:active { color: rgba(0, 0, 0, .7); }

/* ---------- 칩 (필터·선택 버튼) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--gap-sm); }
.chip { display: inline-flex; align-items: center; gap: .375rem; min-height: var(--touch); padding: .5rem 1.125rem; border: 2px solid var(--c-line); border-radius: 999px; background: #fff; font-size: var(--fs-body); font-weight: 600; cursor: pointer; user-select: none; }
.chip:hover { border-color: var(--c-text); }
.chip[aria-pressed="true"], .chip.is-on, input:checked + .chip { background: var(--c-point); border-color: var(--c-point); color: #fff; }
input:focus-visible + .chip { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.chips > span { position: relative; }
.chip-input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; }
.tag { display: inline-flex; align-items: center; padding: .125rem .625rem; border-radius: 999px; background: var(--c-point-soft); color: var(--c-point-dark); font-size: var(--fs-min); font-weight: 600; }
.badge-sample { display: inline-flex; align-items: center; padding: .125rem .5rem; border-radius: 4px; background: #fff3cd; color: #5c4400; font-size: var(--fs-min); font-weight: 700; border: 1px solid #e0c36a; }

/* 상태 표시 (판정하지 않음: 사실만, 확인 중은 회색) */
.status { display: inline-flex; align-items: center; padding: .125rem .75rem; border-radius: 999px; font-size: var(--fs-min); font-weight: 700; background: var(--c-point-soft); color: var(--c-point-dark); border: 1px solid #b9d3c8; }
.status--pending { background: var(--c-pending-bg); color: var(--c-pending); border-color: #cfcfcf; }

/* ---------- 용어 풀이 (?) ---------- */
.term { position: relative; display: inline-flex; align-items: center; gap: .25rem; }
.term-btn { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; min-width: 1.75rem; border-radius: 50%; border: 2px solid var(--c-point); background: #fff; color: var(--c-point-dark); font-size: var(--fs-min); font-weight: 800; cursor: pointer; line-height: 1; padding: 0; position: relative; }
.term-btn::after { content: ""; position: absolute; inset: -10px; } /* 터치 영역 48px 확보 */
.term-pop { position: absolute; z-index: 120; left: 50%; top: calc(100% + .5rem); transform: translateX(-50%); width: min(20rem, 80vw); padding: 1rem 1.125rem; background: var(--c-text); color: #fff; border-radius: var(--radius); font-size: var(--fs-body); font-weight: 400; line-height: 1.6; box-shadow: var(--shadow); text-align: left; white-space: normal; }
.term-pop b { display: block; margin-bottom: .25rem; }
.term-pop[hidden] { display: none; }

/* ---------- 이미지 박스 ---------- */
.ph { background: var(--c-surface); width: 100%; height: 100%; object-fit: cover; }
.img-box { position: relative; overflow: hidden; background: var(--c-surface); border-radius: var(--radius); }
.img-box img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-point-dark); color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,61,49,.96) 0%, rgba(18,61,49,.88) 45%, rgba(18,61,49,.72) 70%, rgba(18,61,49,.6) 100%); }
.hero-person::before { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 120%; height: 85%; background: radial-gradient(closest-side, rgba(255,255,255,.18), rgba(255,255,255,0)); }
.hero-person img { position: relative; }
@media (max-width: 900px) { .hero-bg::after { background: linear-gradient(180deg, rgba(18,61,49,.9) 0%, rgba(18,61,49,.75) 50%, rgba(18,61,49,.9) 100%); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap-xl); align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
.hero-eyebrow { font-size: var(--fs-lg); font-weight: 600; margin-bottom: 1rem; color: #e8f3ee; }
.hero-title { font-size: var(--fs-display); line-height: 1.25; font-weight: 800; white-space: pre-line; }
.hero-sub { margin-top: 1.5rem; font-size: var(--fs-lg); line-height: 1.6; white-space: pre-line; color: #f2f2f2; }
.hero-cta { margin-top: 2rem; }
.finder { background: #fff; color: var(--c-text); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.finder h2 { font-size: var(--fs-h3); margin-bottom: 1.25rem; }
.finder .field + .field { margin-top: 1rem; }
.finder .btn { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .finder { padding: 1.25rem; }
}

/* ---------- 배너 (지역·유형 묶음) ---------- */
.kv { position: relative; overflow: hidden; background: var(--c-point-dark); color: #fff; min-height: 22rem; display: flex; align-items: flex-end; }
.kv-bg { position: absolute; inset: 0; }
.kv-bg img { width: 100%; height: 100%; object-fit: cover; }
.kv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.1) 100%); }
.kv-text { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 3rem; max-width: 46rem; }
.kv-title { font-size: var(--fs-h1); line-height: 1.25; font-weight: 800; white-space: pre-line; }
.kv-desc { margin-top: .75rem; font-size: var(--fs-lg); }
.kv-cta { margin-top: 1.5rem; }
.kv-note { position: absolute; right: 1rem; bottom: .75rem; z-index: 1; font-size: var(--fs-caption); color: #eee; }
.kv[data-theme="light"] { background: var(--c-surface); color: var(--c-text); }
.kv[data-theme="light"]::after { background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 60%, rgba(255,255,255,0) 100%); }

/* ---------- 시설 카드 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-lg); }
@media (max-width: 1200px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.fcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line-light); border-radius: var(--radius-lg); overflow: hidden; }
.fcard-img { aspect-ratio: 4 / 3; background: var(--c-surface); position: relative; }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; }
.fcard-img .badge-sample { position: absolute; left: .75rem; top: .75rem; }
.fcard-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; flex: 1; }
.fcard-region { font-size: var(--fs-min); color: var(--c-sub); font-weight: 600; }
.fcard-name { font-size: var(--fs-title); line-height: 1.35; font-weight: 800; }
.fcard-name a { text-decoration: none; }
.fcard-name a:hover { text-decoration: underline; }
.fcard-summary { color: var(--c-sub); font-size: var(--fs-body); }
.fcard-prices { display: grid; grid-template-columns: auto 1fr; gap: .125rem .75rem; margin-top: .25rem; font-size: var(--fs-body); }
.fcard-prices dt { color: var(--c-sub); }
.fcard-prices dd { font-weight: 800; font-size: var(--fs-price); }
.fcard-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.fcard-protect { font-size: var(--fs-min); font-weight: 700; }
.fcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm); padding: 0 1.25rem 1.25rem; }
.fcard-actions .btn { padding-left: .5rem; padding-right: .5rem; font-size: var(--fs-min); }
.fcard-compare { display: flex; align-items: center; gap: .5rem; min-height: var(--touch); padding: 0 1.25rem .75rem; font-size: var(--fs-min); font-weight: 600; cursor: pointer; }
.fcard-compare input { width: 1.5rem; height: 1.5rem; accent-color: var(--c-point); }

/* ---------- 캐러셀 (수동 넘김, 자동 슬라이드 없음) ---------- */
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 21.25rem); gap: var(--gap-lg); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.carousel-track > * { scroll-snap-align: start; }
@media (max-width: 600px) { .carousel-track { grid-auto-columns: 82%; } }
.carousel-ctrl { display: flex; align-items: center; justify-content: center; gap: var(--gap-md); margin-top: 1rem; }
.arrow-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 3.5rem; min-width: 3.5rem; padding: .5rem 1.25rem; border: 2px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 700; font-size: var(--fs-body); cursor: pointer; }
.arrow-btn:hover:not([disabled]) { border-color: var(--c-text); }
.arrow-btn[disabled] { opacity: .35; cursor: default; }
.carousel-count { font-size: var(--fs-lg); font-weight: 700; min-width: 4.5rem; text-align: center; }

.rcard { display: flex; flex-direction: column; text-decoration: none; }
.rcard-img { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--c-surface); }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; }
.rcard-title { margin-top: 1rem; font-size: var(--fs-title); line-height: 1.35; font-weight: 800; }
.rcard-desc { margin-top: .5rem; color: var(--c-sub); }
.rcard-price { margin-top: .75rem; display: grid; gap: .125rem; }
.rcard-price span { color: var(--c-sub); font-size: var(--fs-min); }
.rcard-price b { font-size: var(--fs-price); }
.rcard-label { margin-top: .75rem; font-size: var(--fs-min); color: var(--c-point-dark); font-weight: 700; }
.rcard:hover .rcard-title { text-decoration: underline; }

/* ---------- 신청 유형 4칸 ---------- */
.apply-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
@media (max-width: 900px) { .apply-grid { grid-template-columns: 1fr 1fr; } }
.apply-tile { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; min-height: 10rem; border-radius: var(--radius-lg); background: #fff; border: 2px solid var(--c-line-light); text-decoration: none; }
.apply-tile:hover { border-color: var(--c-point); }
.apply-tile .ico { font-size: 2rem; line-height: 1; }
.apply-tile b { font-size: var(--fs-title); }
.apply-tile span { color: var(--c-sub); }
.apply-tile .go { margin-top: auto; font-weight: 700; color: var(--c-point-dark); }

/* ---------- 안내 박스 / 체크 리스트 ---------- */
.box { background: #fff; border: 1px solid var(--c-line-light); border-radius: var(--radius-lg); padding: 1.75rem; }
.box--point { background: var(--c-point-soft); border-color: #b9d3c8; }
.check-list { display: grid; gap: .875rem; }
.check-list li { position: relative; padding-left: 2.25rem; font-size: var(--fs-body); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .05em; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--c-point); color: #fff; display: grid; place-items: center; font-size: .9rem; font-weight: 800; }
.num-list { counter-reset: n; display: grid; gap: .875rem; }
.num-list li { counter-increment: n; position: relative; padding-left: 2.5rem; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--c-point); color: var(--c-point-dark); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-min); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { display: flex; flex-direction: column; gap: .75rem; }
.svc .ico { font-size: 2.25rem; }
.svc h3 { font-size: var(--fs-title); }
.svc p { color: var(--c-sub); flex: 1; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line-light); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 36rem; font-size: var(--fs-body); }
.table th, .table td { padding: .875rem 1rem; border-bottom: 1px solid var(--c-line-light); text-align: left; vertical-align: top; }
.table thead th { background: var(--c-surface); font-weight: 700; white-space: nowrap; }
.table tbody th { font-weight: 700; background: #fbfaf7; white-space: nowrap; }
.table tr:last-child > * { border-bottom: 0; }
.dl-grid { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; border: 1px solid var(--c-line-light); border-radius: var(--radius); overflow: hidden; }
.dl-grid dt, .dl-grid dd { padding: .875rem 1rem; border-bottom: 1px solid var(--c-line-light); }
.dl-grid dt { background: #fbfaf7; font-weight: 700; }
.dl-grid dt:last-of-type, .dl-grid dd:last-of-type { border-bottom: 0; }
@media (max-width: 600px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-grid dt { border-bottom: 0; padding-bottom: .25rem; }
}
.src { display: block; margin-top: .25rem; font-size: var(--fs-caption); color: var(--c-sub); }

/* ---------- 폼 ---------- */
.field { display: grid; gap: .5rem; }
.field > label, .field > .label, fieldset > legend { font-weight: 700; font-size: var(--fs-body); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset > legend { margin-bottom: .5rem; padding: 0; }
.req { color: var(--c-error); font-weight: 700; margin-left: .25rem; }
.opt { color: var(--c-sub); font-weight: 400; font-size: var(--fs-min); margin-left: .25rem; }
.input, .select, .textarea { width: 100%; min-height: var(--input-h); padding: .75rem 1rem; border: 2px solid var(--c-line); border-radius: var(--radius); background: #fff; font-size: var(--fs-body); }
.textarea { min-height: 8rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--c-point); outline: 3px solid var(--c-focus); outline-offset: 1px; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--c-error); }
.error-msg { color: var(--c-error); font-weight: 700; font-size: var(--fs-body); }
.error-msg:empty { display: none; }
.hint { color: var(--c-sub); font-size: var(--fs-min); }
.check { display: flex; align-items: flex-start; gap: .75rem; min-height: var(--touch); padding: .5rem 0; cursor: pointer; }
.check input { width: 1.5rem; height: 1.5rem; margin-top: .2rem; flex-shrink: 0; accent-color: var(--c-point); }

/* ---------- 모달 / 바텀시트 ---------- */
.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 1rem; background: var(--c-dim); }
.modal[hidden] { display: none; }
.modal-panel { background: #fff; border-radius: var(--radius-lg); width: min(64rem, 100%); max-height: 90vh; overflow: auto; padding: 1.75rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.modal-head h2 { font-size: var(--fs-h3); }
.close-btn { min-width: var(--touch); min-height: var(--touch); border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 700; padding: .25rem 1rem; cursor: pointer; }
@media (max-width: 767px) {
  .modal { place-items: end center; padding: 0; }
  .modal-panel { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 88vh; padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); }
}

/* ---------- 비교 바 ---------- */
.compare-bar { position: fixed; z-index: 95; left: 50%; transform: translateX(-50%); bottom: 1.5rem; display: flex; align-items: center; gap: var(--gap-md); flex-wrap: wrap; justify-content: center; padding: .75rem 1rem .75rem 1.5rem; background: var(--c-text); color: #fff; border-radius: 999px; box-shadow: var(--shadow); max-width: calc(100% - 2rem); }
.compare-bar[hidden] { display: none; }
.compare-bar .btn { border-color: #fff; color: #fff; }
.compare-bar .btn--fill { background: #fff; color: var(--c-text); }
@media (max-width: 767px) {
  .compare-bar { bottom: calc(var(--bar-h) + .75rem + env(safe-area-inset-bottom)); border-radius: var(--radius-lg); }
}

.empty { text-align: center; padding: 3rem 1rem; }
.empty h2 { font-size: var(--fs-h3); margin-bottom: .75rem; }
.empty p { color: var(--c-sub); margin-bottom: 1.5rem; }

/* ---------- 계약·입지 배지 ---------- */
.fcard-meta { display: flex; flex-wrap: wrap; gap: .375rem; }
.type-badge, .loc-badge { display: inline-flex; align-items: center; padding: .125rem .625rem; border-radius: 4px; font-size: var(--fs-min); font-weight: 800; border: 2px solid; }
.type-badge--임대형 { color: #0b4a8f; border-color: #0b4a8f; background: #eaf2fc; }
.type-badge--분양형 { color: #7a2e00; border-color: #b4400b; background: #fdf0e8; }
.type-badge--회원권 { color: #4b2a7a; border-color: #6b3fa0; background: #f3eefa; }
.loc-badge { color: var(--c-point-dark); border-color: var(--c-point); background: #fff; }

/* ---------- 육각형 그래프 ---------- */
.fcard-hex { margin: .25rem auto 0; width: 100%; max-width: 17rem; }
.fcard-hex svg { width: 100%; height: auto; display: block; }
.hex-wrap { display: grid; grid-template-columns: minmax(0, 28rem) 1fr; gap: 2rem; align-items: start; }
.hex-wrap svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .hex-wrap { grid-template-columns: 1fr; } }
.hex-reasons { display: grid; gap: .75rem; }
.hex-reasons li { display: grid; grid-template-columns: 8.5rem 4.5rem 1fr; gap: .5rem; align-items: baseline; padding-bottom: .75rem; border-bottom: 1px solid var(--c-line-light); }
.hex-reasons b { font-weight: 800; }
.hex-reasons .sc { font-weight: 800; color: var(--c-point-dark); }
.hex-reasons .sc.none { color: var(--c-sub); font-weight: 600; }
@media (max-width: 600px) { .hex-reasons li { grid-template-columns: 1fr auto; } .hex-reasons li > span:last-child { grid-column: 1 / -1; } }
.hex-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin: .75rem 0; }
.hex-legend span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.hex-legend i { display: inline-block; width: 2rem; height: 0; border-top: 4px solid; }
details.rules { margin-top: 1rem; }
details.rules summary { cursor: pointer; font-weight: 700; min-height: var(--touch); display: flex; align-items: center; }
details.rules ul { display: grid; gap: .375rem; padding-left: 1.25rem; list-style: disc; color: var(--c-sub); }

/* ---------- 조건별 찾기 ---------- */
.qf-tabs { display: flex; flex-wrap: wrap; gap: var(--gap-sm); margin-bottom: 1.25rem; }
.qf-tab { min-height: 3.25rem; padding: .5rem 1.25rem; border: 2px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 800; font-size: var(--fs-body); cursor: pointer; }
.qf-tab[aria-selected="true"] { background: var(--c-text); border-color: var(--c-text); color: #fff; }
.qf-help { margin-bottom: .75rem; }
.qf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--gap-sm); }
.qf-btn { display: flex; flex-direction: column; justify-content: center; gap: .25rem; min-height: 4.5rem; padding: 1rem 1.25rem; border: 2px solid var(--c-line-light); border-radius: var(--radius-lg); background: var(--c-surface); text-decoration: none; }
.qf-btn:hover { border-color: var(--c-point); background: #fff; }
.qf-btn b { font-size: var(--fs-lg); }
.qf-btn .ico { font-size: 1.75rem; }
.qf-btn span { color: var(--c-sub); }
.qf-n { color: var(--c-sub); font-weight: 600; font-size: var(--fs-body); }
.badge-unverified { background: #fff; color: #333; border-color: #bbb; }
.fcard-img .badge-unverified { position: absolute; left: .75rem; top: .75rem; }
.type-badge--확인중 { color: #333; border-color: #bbb; background: var(--c-pending-bg); }

/* ---------- 로고 ---------- */
.logo-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-size: .7em; font-weight: 700; color: var(--c-call); letter-spacing: .02em; }

/* ---------- 대표 프로필 (브랜딩) ---------- */
.profile { background: linear-gradient(135deg, #123d31 0%, #1d5c4a 60%, #24705a 100%); color: #fff; overflow: hidden; }
.profile-inner { display: grid; grid-template-columns: minmax(0, 26rem) 1fr; gap: 3rem; align-items: end; padding-top: 3.5rem; }
.profile-photo { align-self: end; display: flex; justify-content: center; min-height: 20rem; }
.profile-photo img { width: 100%; max-width: 24rem; height: auto; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.profile-photo.noimg { background: rgba(255,255,255,.08); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.profile-text { padding-bottom: 3.5rem; }
.profile-channel { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .875rem; border-radius: 999px; background: #c4302b; font-weight: 800; font-size: var(--fs-min); }
.profile-headline { margin-top: 1rem; font-size: var(--fs-h2); line-height: 1.3; font-weight: 800; white-space: pre-line; }
.profile-name { margin-top: 1rem; font-size: var(--fs-lg); color: #e4efea; }
.profile-name b { color: #fff; font-size: 1.2em; margin-right: .25rem; }
.profile-intro { margin-top: 1rem; color: #f3f3f3; max-width: 44rem; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.profile-stats > div { padding: .875rem 1.25rem; border-radius: var(--radius); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); }
.profile-stats dt { font-size: var(--fs-min); color: #e4efea; }
.profile-stats dd { font-size: var(--fs-h3); font-weight: 800; }
.profile-career { margin: 1.5rem 0; display: grid; gap: .5rem; }
.profile-career li { padding-left: 1.25rem; position: relative; }
.profile-career li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: .5rem; border-radius: 50%; background: #f3a77a; }
.btn--yt { background: #c4302b; border-color: #c4302b; color: #fff; }
.btn--yt:hover { background: #9e2622; border-color: #9e2622; }
@media (max-width: 900px) {
  .profile-inner { grid-template-columns: 1fr; gap: 0; padding-top: 2.5rem; }
  .profile-photo { order: 2; min-height: 0; }
  .profile-photo img { max-width: 17rem; }
  .profile-text { padding-bottom: 1.5rem; }
}
.profile-direct { margin-bottom: 1rem; font-size: var(--fs-lg); font-weight: 700; }
.profile-direct a { color: #ffd9c2; text-decoration: underline; text-underline-offset: 4px; margin-left: .25rem; }

/* ---------- Q&A 도우미 (챗봇) ---------- */
.float-btn--chat { background: #fff; color: var(--c-point-dark); border: 2px solid var(--c-point); }
.float-btn--chat:hover { background: var(--c-point-soft); }
@media (max-width: 767px) {
  .float-bar.has-chat { grid-template-columns: 1fr 1fr 1fr; }
  .float-bar.has-chat .float-btn { padding: .25rem; font-size: var(--fs-min); gap: .25rem; border-width: 0; }
  .float-bar.has-chat .float-btn--chat { border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line); }
}
.chat-solo { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 96; box-shadow: var(--shadow); }
.chat-panel { position: fixed; z-index: 260; right: 1.5rem; bottom: 1.5rem; width: min(28rem, calc(100vw - 3rem)); height: min(44rem, calc(100vh - 3rem)); display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 10px 40px rgba(0,0,0,.25); overflow: hidden; }
.chat-panel[hidden] { display: none; }
@media (max-width: 767px) {
  .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  html.chat-open, html.chat-open body { overflow: hidden; }
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .875rem 1rem; background: var(--c-point-dark); color: #fff; }
.chat-head b { display: block; font-size: var(--fs-lg); }
.chat-head small { display: block; font-size: var(--fs-caption); color: #e4efea; }
.chat-head .close-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; background: var(--c-surface); }
.chat-msg { max-width: 92%; padding: .875rem 1rem; border-radius: var(--radius-lg); line-height: 1.6; }
.chat-msg p + p, .chat-msg ul { margin-top: .5rem; }
.chat-msg ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .25rem; }
.chat-msg--user { align-self: flex-end; background: var(--c-point); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--c-line-light); border-bottom-left-radius: 4px; }
.chat-qa + .chat-qa, .chat-fac + .chat-qa { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--c-line); }
.chat-qa-q { font-weight: 800; color: var(--c-point-dark); }
.chat-no { display: inline-block; padding: 0 .375rem; border-radius: 4px; background: var(--c-point-soft); font-size: var(--fs-min); }
.chat-fac { padding: .75rem; border-radius: var(--radius); background: var(--c-point-soft); }
.chat-note, .chat-src { font-size: var(--fs-caption); color: var(--c-sub); }
.chat-wait { color: var(--c-sub); }
.chat-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chat-actions .btn { min-height: 2.75rem; padding: .375rem 1rem; font-size: var(--fs-min); }
.chat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chat-chips .chip { min-height: 2.75rem; padding: .375rem .875rem; font-size: var(--fs-min); text-align: left; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--c-line-light); background: #fff; }
.chat-form .input { min-height: 3rem; resize: none; flex: 1; }
.chat-form .btn { flex-shrink: 0; }
.chat-foot { padding: 0 .75rem .625rem; font-size: var(--fs-caption); color: var(--c-sub); background: #fff; }

/* ---------- 100문 100답 ---------- */
.qna-search { display: flex; gap: var(--gap-sm); flex-wrap: wrap; margin: 1.5rem 0; }
.qna-search .input { flex: 1; min-width: 14rem; }
.qna-chapter { margin-top: 2rem; }
.qna-chapter > h2 { font-size: var(--fs-h3); margin-bottom: .75rem; }
.qna-item { border: 1px solid var(--c-line-light); border-radius: var(--radius); background: #fff; }
.qna-item + .qna-item { margin-top: .5rem; }
.qna-item summary { cursor: pointer; list-style: none; display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; min-height: var(--touch); font-weight: 700; font-size: var(--fs-lg); }
.qna-item summary::-webkit-details-marker { display: none; }
.qna-item summary::after { content: "+"; margin-left: auto; font-weight: 800; color: var(--c-point); }
.qna-item[open] summary::after { content: "−"; }
.qna-item .qna-body { padding: 0 1.25rem 1.25rem; }
.qna-item .qna-body ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .375rem; margin-top: .5rem; }
.qna-item mark { background: #fff1a8; color: inherit; }

/* ---------- 브랜딩 히어로 (대표 사진) ---------- */
.hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; padding-bottom: 0; }
.hero-text { align-self: center; padding-bottom: 4rem; }
.hero-person { position: relative; margin: 0; align-self: end; display: flex; justify-content: center; }
.hero-person img { width: auto; max-width: 100%; max-height: 34rem; object-fit: contain; object-position: bottom; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.hero-nameplate { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: grid; gap: .125rem; justify-items: center; min-width: 16rem; padding: .875rem 1.5rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.96); color: var(--c-text); box-shadow: var(--shadow); text-align: center; }
.hero-nameplate b { font-size: var(--fs-h3); line-height: 1.2; }
.hero-nameplate span { font-size: var(--fs-min); color: var(--c-sub); font-weight: 600; }
.hero-nameplate .np-channel { color: #c4302b; font-weight: 800; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-text { padding-bottom: 1.5rem; }
  .hero-person img { max-height: 22rem; }
  .hero-nameplate { bottom: 1rem; min-width: 0; width: max-content; max-width: 90%; padding: .625rem 1rem; }
}

/* ---------- 간단 찾기 띠 ---------- */
.finder-band { background: var(--c-surface-2); padding: 1.25rem 0; }
.finder-band .finder { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto; gap: 1rem; align-items: end; padding: 1.25rem 1.5rem; }
.finder-band .finder h2 { margin: 0; font-size: var(--fs-lg); line-height: 1.3; align-self: center; }
.finder-band .finder .field + .field { margin-top: 0; }
.finder-band .finder .btn { margin-top: 0; min-height: var(--input-h); }
@media (max-width: 1023px) {
  .finder-band .finder { grid-template-columns: 1fr 1fr; }
  .finder-band .finder h2 { grid-column: 1 / -1; }
  .finder-band .finder h2 br { display: none; }
  .finder-band .finder .btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .finder-band .finder { grid-template-columns: 1fr; } }

/* ---------- 대표 소개 + 쇼츠 ---------- */
.profile-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; padding-top: 3.5rem; padding-bottom: 3.5rem; gap: 2.5rem; }
.profile-text { padding-bottom: 0; }
@media (max-width: 900px) { .profile-inner { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2.5rem; } }
.shorts { min-width: 0; }
.shorts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .875rem; }
.shorts-head b { font-size: var(--fs-lg); }
.shorts-head b span { display: inline-block; margin-left: .25rem; padding: 0 .5rem; border-radius: 4px; background: #c4302b; font-size: var(--fs-min); vertical-align: middle; }
.shorts-head a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.shorts-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10rem, 46%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; }
.short-card { scroll-snap-align: start; display: grid; gap: .5rem; text-decoration: none; color: #fff; }
.short-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden; background: rgba(0,0,0,.3); }
.short-thumb img { width: 100%; height: 100%; object-fit: cover; }
.short-thumb i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(196,48,43,.92); display: grid; place-items: center; font-style: normal; font-size: 1.25rem; }
.short-title { font-weight: 700; line-height: 1.4; }
.shorts-banner { display: grid; gap: .5rem; justify-items: start; padding: 2rem 1.75rem; border-radius: var(--radius-lg); background: linear-gradient(160deg, #2a2a2a 0%, #111 100%); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.2); }
.shorts-banner .sb-play { width: 4rem; height: 4rem; border-radius: 50%; background: #c4302b; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .5rem; }
.shorts-banner b { font-size: var(--fs-h3); line-height: 1.3; }
.shorts-banner span { color: #e6e6e6; }
.shorts-banner em { margin-top: .75rem; font-style: normal; font-weight: 800; padding: .625rem 1.25rem; border-radius: 999px; background: #fff; color: #111; }
.shorts-banner:hover em { background: #ffd9c2; }
.shorts-poster { position: relative; display: block; width: min(100%, 22rem); margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.shorts-poster img { width: 100%; height: auto; display: block; }
.shorts-poster .sp-play { position: absolute; right: 1rem; top: 1rem; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #c4302b; color: #fff; display: grid; place-items: center; font-size: 1.125rem; box-shadow: var(--shadow); }
.shorts-poster:hover img { opacity: .92; }

/* ---------- 오픈 예정 · 수도권 표시 ---------- */
.plan-badge { display: inline-flex; align-items: center; padding: .125rem .625rem; border-radius: 4px; font-size: var(--fs-min); font-weight: 800; color: #fff; background: #6b3fa0; border: 2px solid #6b3fa0; }
.section--plan { background: #f4f0fa; }
.logo-tag { display: inline-block; margin-left: .375rem; padding: .0625rem .375rem; border-radius: 4px; background: var(--c-point); color: #fff; font-size: .6em; font-style: normal; font-weight: 800; vertical-align: middle; letter-spacing: 0; }
.local-region + .local-region { margin-top: 2.5rem; }
.local-region .section-title .hint { font-size: var(--fs-body); font-weight: 600; }
.call-sheet .cs-num { margin: .75rem 0 1rem; font-size: 2rem; font-weight: 900; letter-spacing: .02em; color: var(--c-call); user-select: all; -webkit-user-select: all; }
.call-sheet .modal-panel { width: min(26rem, 100%); }
