/*
 * 내집마련하GO 디자인 토큰
 * 출처: file.html STEP 2-2(Apple 스타일 토큰) + STEP 2-3(접근성 기준)을 그대로 상속
 * buupbox.com과 동일한 디자인 시스템을 공유 (신뢰감 있는 블루 계열 accent)
 */

:root {
  --bg-primary: #FBFBFD;
  --bg-secondary: #F5F5F7;
  --text-primary: #1D1D1F;
  --text-muted: #6E6E73;
  --accent: #0071E3;      /* CTA 메인 컬러 — 사이트 전체 1개만 사용 (STEP 2-4) */
  --accent-hover: #0077ED;
  --border: #D2D2D7;
  --success: #34C759;
  --danger: #FF3B30;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);

  /* 푸터 전용 토큰 — 본문 테마와 무관하게 항상 짙은 톤을 유지해 고급스러운 마감을 연출 */
  --footer-bg: #131316;
  --footer-text: #F5F5F7;
  --footer-text-muted: #96969C;
  --footer-border: rgba(255,255,255,0.09);
  --footer-accent: #2997FF;
}

[data-theme="dark"] {
  --bg-primary: #000;
  --bg-secondary: #1D1D1F;
  --text-primary: #F5F5F7;
  --text-muted: #86868B;
  --accent: #2997FF;

  --footer-bg: #0A0A0C;
  --footer-border: rgba(255,255,255,0.07);
}

/* STEP 2-3: 접근성 기준 */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* STEP 11-4 / STEP 20: 제휴 공시 문구 스타일 — 본문과 명확히 구분되도록 */
.affiliate-disclosure {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

/* 포인트 강조 하이라이트 — 파스텔 배경 + 굵게. 문장 전체가 아닌 핵심 구절에만 사용 */
strong.point, mark.point {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* STEP 2-4: 카드 radius 통일, 버튼 규칙 */
.card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-hover);
}

.btn-cta {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  min-height: 48px; /* STEP 5-3: 터치 타깃 48px 이상 */
  font-weight: 600;
}
.btn-cta:hover {
  background: var(--accent-hover);
}

/* 본문 내 관련 부업 사이트 안내용 참고 버튼 — 넓고 도톰하게 눌러보고 싶은 형태 */
.btn-refer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 32px 0;
  padding: 24px 28px; /* 위아래 여백을 넉넉히 줘 버튼을 도톰하게 만듦 */
  min-height: 72px;
  background: var(--accent);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn-refer:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.btn-refer:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}
.btn-refer::after {
  content: "→";
  font-weight: 700;
  transition: transform 0.15s ease;
}
.btn-refer:hover::after {
  transform: translateX(3px);
}
