/* === 기본 리셋 & 타이포그래피 === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-text: #1a1a2e;
  --color-text-light: #555;
  --color-primary: #1a56db;
  --color-primary-dark: #1e3a5f;
  --color-danger: #dc2626;
  --color-warning: #f59e0b;
  --color-success: #16a34a;
  --color-info: #0ea5e9;
  --color-border: #e2e8f0;
  --color-claim-bg: #fef2f2;
  --color-fact-bg: #f0fdf4;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  line-height: 1.3;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* === 헤더 / 히어로 === */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #2563eb 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero .highlight {
  color: #fbbf24;
}

.hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero .update-date {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* === 단지 현황 === */
.apartment-info {
  padding: 40px 20px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.apartment-info h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--color-primary-dark);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: 8px;
}

.info-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.info-value.highlight-num {
  color: var(--color-primary);
  font-size: 1.2rem;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === 단지 현황 강조 항목 === */
.info-item-highlight {
  border: 1.5px solid #16a34a;
  background: #f0fdf4;
}

.highlight-green {
  color: #16a34a !important;
  font-size: 1rem !important;
}

/* === 재건축 유리 조건 섹션 === */
.strengths-section {
  padding: 48px 20px;
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
}

.strengths-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #14532d;
}

.strengths-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.strength-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid #16a34a;
}

.strength-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #14532d;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
}

.strength-content strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.strength-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* === Q&A 내 하이라이트 박스 === */
.highlight-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
}

@media (min-width: 640px) {
  .strengths-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .strengths-section { padding: 32px 16px; }
  .strength-card { padding: 16px; }
  .highlight-box { padding: 12px 14px; }
}

/* === 핵심 요약 카드 === */
.summary {
  padding: 48px 20px;
}

.summary h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--color-primary-dark);
}

.summary-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.card-warn { border-left-color: var(--color-danger); }
.card-fact { border-left-color: var(--color-success); }
.card-action { border-left-color: var(--color-primary); }

/* === 팩트체크 Q&A === */
.factcheck {
  padding: 48px 20px;
  background: var(--color-white);
}

.factcheck h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.section-desc {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.qa-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.qa-item:hover {
  box-shadow: var(--shadow);
}

.qa-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  line-height: 1.5;
}

.qa-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.qa-label.claim {
  background: var(--color-claim-bg);
  color: var(--color-danger);
  border: 1px solid #fecaca;
}

.qa-label-inline {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.qa-label-inline.fact {
  background: var(--color-fact-bg);
  color: var(--color-success);
  border: 1px solid #bbf7d0;
}

.qa-text {
  flex: 1;
  font-weight: 600;
}

.qa-verdict {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.verdict-false {
  background: #fef2f2;
  color: var(--color-danger);
  border: 1px solid #fecaca;
}

.verdict-misleading {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.verdict-half {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.verdict-true {
  background: #f0fdf4;
  color: var(--color-success);
  border: 1px solid #bbf7d0;
}

.qa-toggle {
  font-size: 1.3rem;
  font-weight: 300;
  color: #999;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: transform 0.2s;
}

.qa-answer {
  display: none;
  padding: 0 18px 18px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.qa-item.open .qa-answer {
  display: block;
}

.qa-source {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* === 패턴 알림 === */
.pattern-alert {
  padding: 48px 20px;
  background: #fefce8;
}

.pattern-alert h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: #92400e;
}

.pattern-list {
  display: grid;
  gap: 16px;
}

.pattern-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 3px solid #f59e0b;
}

.pattern-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef3c7;
  color: #92400e;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}

.pattern-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.pattern-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* === Q&A 답변 내 리스트 === */
.qa-answer ul {
  margin: 8px 0;
  padding-left: 20px;
}

.qa-answer ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.qa-source a {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
}

/* === 용역 비교표 반박 === */
.debunk {
  padding: 48px 20px;
  background: #fef2f2;
}

.debunk h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #991b1b;
}

.debunk h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.debunk-highlight {
  background: var(--color-white);
  border: 2px solid #dc2626;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  text-align: center;
}

.debunk-highlight h3 {
  color: #991b1b;
  text-align: center;
}

.debunk-highlight p {
  font-size: 1rem;
  color: var(--color-text-light);
}

.debunk-question {
  margin-top: 12px;
  font-size: 1.1rem !important;
  font-weight: 700;
  color: #dc2626 !important;
}

.debunk .table-wrap {
  margin-bottom: 24px;
}

.col-fake { background: #991b1b; }
.col-real { background: #166534; }

.cell-warn {
  background: #fef2f2;
  color: #991b1b;
  text-decoration: line-through;
  text-decoration-color: #dc2626;
}

.cell-good {
  background: #f0fdf4;
  color: #166534;
}

.debunk-box {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.debunk-box ul, .debunk-box ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

.debunk-box li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.debunk-box-alert {
  border-left: 4px solid #dc2626;
  background: #fff;
}

.debunk-box-alert h3 {
  color: #991b1b;
}

.debunk-box-alert ol li {
  font-weight: 600;
  color: var(--color-text);
}

/* === 대응 가이드 === */
.strategy-guide {
  padding: 48px 20px;
  background: #f0f9ff;
}

.strategy-guide h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.strategy-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}

.strategy-item h3 {
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.strategy-item p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* === 비교 테이블 === */
.comparison {
  padding: 48px 20px;
}

.comparison h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--color-primary-dark);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

thead {
  background: var(--color-primary-dark);
  color: #fff;
}

th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

.col-rebuild { background: #1e40af; }
.col-remodel { background: #7c2d12; }

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #fafbfc;
}

/* === 비용 비교 분석 === */
.cost-analysis {
  padding: 48px 20px;
  background: #fff7ed;
}

.cost-analysis h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #9a3412;
}

.cost-highlight {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.cost-highlight h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.cost-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cost-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border-radius: var(--radius);
  min-width: 160px;
}

.cost-remodel {
  background: #fef2f2;
  border: 2px solid #fecaca;
}

.cost-rebuild {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.cost-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.cost-number {
  font-size: 1.4rem;
  font-weight: 800;
}

.cost-remodel .cost-number { color: #dc2626; }
.cost-rebuild .cost-number { color: #16a34a; }

.cost-note {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.cost-vs {
  font-size: 1.2rem;
  font-weight: 800;
  color: #9a3412;
}

.cost-punchline {
  margin-top: 16px;
  font-size: 1.05rem;
  color: #dc2626;
  font-weight: 600;
}

/* 왜 비싼가 */
.cost-explain {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.cost-explain h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.cost-reason {
  display: grid;
  gap: 16px;
}

.reason-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.reason-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffedd5;
  color: #9a3412;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}

.reason-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.reason-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 시뮬레이션 */
.cost-sim {
  margin-bottom: 24px;
}

.cost-sim h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

/* 비유 */
.cost-analogy {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid #f59e0b;
}

.cost-analogy p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
}

/* === 타임라인 === */
.timeline {
  padding: 48px 20px;
  background: var(--color-white);
}

.timeline h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.timeline-list {
  margin-top: 24px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  flex-shrink: 0;
  width: 80px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  padding-top: 2px;
}

.timeline-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* === 관련 자료 === */
.resources {
  padding: 48px 20px;
}

.resources h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--color-primary-dark);
}

.resource-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.resource-list li {
  background: var(--color-white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.resource-list li strong {
  display: block;
  margin-bottom: 4px;
}

.resource-list li a {
  font-size: 0.85rem;
}

/* === 면책/유의사항 === */
.disclaimer-section {
  padding: 40px 20px;
  background: #f1f5f9;
}

.disclaimer-section h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.disclaimer-section ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.disclaimer-section li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.disclaimer-section li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #94a3b8;
}

/* === 푸터 === */
footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 36px 20px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}

footer p {
  margin-bottom: 4px;
}

.footer-disclaimer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* === 반응형 === */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .summary-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .qa-question {
    font-size: 1rem;
    padding: 18px 22px;
  }

  .qa-answer {
    padding: 0 22px 22px;
    padding-top: 18px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 80px 20px 60px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}

/* === 모바일 최적화 (노인 포함) === */
@media (max-width: 639px) {

  /* 폰트 크기 전체 상향 */
  html { font-size: 17px; }

  /* Q&A 질문 — 세로 배치 */
  .qa-question {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }
  .qa-text {
    width: 100%;
    order: 2;
    font-size: 1rem;
  }
  .qa-label { order: 1; }
  .qa-verdict { order: 3; }
  .qa-toggle { order: 4; margin-left: auto; }

  /* 터치 영역 확대 */
  .qa-question { min-height: 56px; }

  /* 테이블 — 가로스크롤 힌트 표시 */
  .table-wrap {
    position: relative;
  }
  .table-wrap::after {
    content: "← 좌우로 밀어서 확인 →";
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    padding: 6px 0 2px;
  }

  /* 테이블 폰트 키우기 */
  table { font-size: 0.95rem; }
  th { padding: 12px; font-size: 0.9rem; }
  td { padding: 12px; }

  /* 비용 카드 세로 배치 */
  .cost-cards { flex-direction: column; align-items: center; }
  .cost-vs { transform: rotate(90deg); }

  /* 섹션 패딩 줄이기 */
  .factcheck, .comparison, .cost-analysis,
  .pattern-alert, .timeline, .debunk,
  .summary, .resources { padding: 32px 16px; }

  /* 히어로 제목 */
  .hero h1 { font-size: 1.6rem; }
}

/* === 종상향 플로우 다이어그램 === */
.sangsang-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 1.5rem 0;
}

.sf-step {
  width: 100%;
  max-width: 400px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
}

.sf-step-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.sf-step-sub {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 3px;
}

.sf-input {
  border-color: var(--color-primary);
  background: #eff6ff;
}

.sf-cost {
  border-color: var(--color-warning);
  background: #fffbeb;
}

.sf-cost .sf-step-label { color: #92400e; }

.sf-result {
  border-color: var(--color-success);
  background: #f0fdf4;
  border-width: 2px;
}

.sf-result .sf-step-label {
  color: var(--color-success);
  font-size: 1.05rem;
}

.sf-arrow-down {
  width: 2px;
  height: 20px;
  background: var(--color-border);
  position: relative;
}

.sf-arrow-down::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--color-border);
}

.sf-case {
  background: #eff6ff;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1rem 0 0;
  width: 100%;
}

/* === As-Is → To-Be 사업성 바 차트 === */
.asistobe-chart {
  margin: 1.25rem 0;
  padding: 1.25rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.asistobe-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dot-asis { background: #6b7280; }
.dot-base { background: #94a3b8; }
.dot-gain { background: #16a34a; }
.dot-gift { background: #f59e0b; }

.asistobe-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.asistobe-label {
  min-width: 78px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  text-align: right;
  line-height: 1.3;
  flex-shrink: 0;
}

.asistobe-sub {
  font-weight: 400;
  font-size: 0.72rem;
  color: #6b7280;
}

.asistobe-bar-wrap {
  flex: 1;
  display: flex;
  height: 50px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.asistobe-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
}

.bar-asis {
  background: #6b7280;
}

.bar-base {
  background: #94a3b8;
}

.bar-gain {
  background: #16a34a;
}

.bar-tobe-net {
  background: #16a34a;
}

.bar-text-sm {
  font-size: 0.72rem;
}

.bar-text-xs {
  font-size: 0.6rem;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.asistobe-total {
  min-width: 68px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: left;
}

.tobe-total {
  color: #16a34a;
}

.bar-tobe-gift {
  background: #f59e0b;
  font-size: 0.65rem;
  line-height: 1.2;
  padding: 4px 5px;
  text-align: center;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
}

.asistobe-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  text-align: center;
  padding: 0.6rem 1rem;
  background: #dcfce7;
  border-radius: 8px;
  border: 1px solid #86efac;
}

@media (max-width: 639px) {
  .asistobe-label { min-width: 62px; font-size: 0.78rem; }
  .asistobe-bar { font-size: 0.72rem; padding: 0 6px; }
  .bar-tobe-gift { font-size: 0.6rem; padding: 3px 4px; }
  .asistobe-bar-wrap { height: 46px; }
  .asistobe-note { font-size: 0.82rem; }
}

/* === 주민 의견 (댓글) === */
.comments-section {
  background: var(--color-white);
  padding: 60px 20px;
}

.comment-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
}

.comment-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

#comment-nickname {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--color-white);
  font-family: inherit;
}

.comment-submit-btn {
  padding: 10px 22px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.comment-submit-btn:hover { background: var(--color-primary-dark); }
.comment-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

#comment-text {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  background: var(--color-white);
  line-height: 1.6;
}

.comment-status {
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 20px;
}
.comment-status.error { color: var(--color-danger); }
.comment-status.success { color: var(--color-success); }

.comments-list { display: flex; flex-direction: column; gap: 12px; }

.comment-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-nickname {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

.comment-time {
  font-size: 0.8rem;
  color: #94a3b8;
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-loading,
.no-comments {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 32px;
}

/* === 유틸리티 === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
