/* apt-calculator — 계산 전 빈 공간 제거 */

#result-section:not(.visible) {
  display: none;
}

#result-section.visible {
  display: block;
}

/* 계산 전: 광고·공유 블록 숨김 (승인 전 placeholder가 한 화면 분량 차지) */
body:has(#result-section:not(.visible)) .post-result-only {
  display: none;
}

/* 계산 후: 광고 영역 컴팩트 */
.post-result-only.ad-section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.post-result-only .ad-placeholder {
  padding: 10px 12px;
  font-size: 12px;
}

#faq.faq-section {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

/* ── 30초 가이드 토글 (도구 페이지 공통) ── */
.guide-section {
  padding-top: 8px;
  padding-bottom: 4px;
}

.guide-section > .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.guide-section .guide-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 12px;
  padding: 15px 22px;
  border: 2px dashed #1A1A1A;
  border-radius: 14px;
  background: linear-gradient(180deg, #FAF5E8 0%, #FAF5E8 55%, #FAF5E8 100%);
  color: #1A1A1A;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(26,26,26,0.08);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.guide-section .guide-toggle-btn:hover {
  background: linear-gradient(180deg, #FAF5E8 0%, #F5EFE0 55%, #F5EFE0 100%);
  border-color: #1A1A1A;
  border-style: solid;
  box-shadow: 0 4px 16px rgba(26,26,26,0.08);
  transform: translateY(-1px);
}

.guide-section .guide-toggle-btn:focus-visible {
  outline: 3px solid #1A1A1A;
  outline-offset: 2px;
}

.guide-section .guide-toggle-btn[aria-expanded="true"] {
  border-style: solid;
  border-color: #1A1A1A;
  background: linear-gradient(180deg, #FAF5E8 0%, #F5EFE0 100%);
  margin-bottom: 14px;
}

.guide-section .guide-toggle-btn .toggle-icon {
  font-size: 11px;
  margin-left: 2px;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.guide-section .guide-toggle-btn[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}
