/* ═══════════ 매거진형 블로그 스킨 (skin=mag) — 머니맵 경제·부동산 ═══════════ */
/* cardui(body.tidy: 헤더·내비·푸터·글 본문)를 재사용 + body.mag 라이트 매거진 오버레이. */
/* 색은 sites.yaml palette(에디토리얼 라이트)로 주입. 물결 없음(블로그 홈엔 WAVES 미렌더). */

body.mag .blog-home { color: var(--ink); }

/* ── 히어로(깔끔한 에디토리얼) ── */
body.mag .blog-hero {
  text-align: center; padding: 48px 20px 32px;
  background: linear-gradient(180deg, var(--wash), #fff); border-bottom: 1px solid var(--line);
}
body.mag .blog-hero h1 { font-family: var(--disp); font-size: clamp(1.7rem,4vw,2.6rem); font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
body.mag .blog-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ── 카테고리 섹션 ── */
body.mag .blog-cat { max-width: 1100px; margin: 0 auto; padding: 34px 20px; }
body.mag .blog-cat-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 20px; }
body.mag .blog-cat-head h2 { font-family: var(--disp); font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: 0; }
body.mag .blog-cat-more { color: var(--blue); font-weight: 700; font-size: .9rem; text-decoration: none; }
body.mag .blog-cat-more:hover { text-decoration: underline; }

/* ── 매거진 카드 그리드 ── */
body.mag .post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 26px; }
body.mag .post-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .16s, box-shadow .16s; }
body.mag .post-card a { text-decoration: none; color: inherit; display: block; }
body.mag .post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15,23,42,.1); }
body.mag .post-card-media { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--wash); }
body.mag .post-card-title { font-family: var(--disp); font-size: 1.08rem; font-weight: 800; color: var(--ink); margin: 14px 16px 6px; line-height: 1.4; }
body.mag .post-card-desc { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0 16px 16px; }

@media (max-width:600px){ body.mag .blog-hero { padding: 36px 16px 24px; } }

/* ── 금융·대출 업체소개(법적 안전: 중립 카드 + 경고문) ── */
body.mag .loan-wrap { max-width: 1100px; margin: 0 auto; padding: 8px 20px 32px; }
body.mag .loan-home { max-width: 1100px; margin: 0 auto; padding: 10px 20px 40px; }
body.mag .loan-home-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; }
body.mag .loan-home-head h2 { font-family: var(--disp); font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: 0; }
body.mag .loan-home-more { color: var(--blue); font-weight: 700; font-size: .9rem; text-decoration: none; }
/* 경고문 — 눈에 띄게(앰버) */
body.mag .loan-notice { background: #fff8e6; border: 1px solid #f3d588; border-left: 4px solid #e0a23f; border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
body.mag .loan-notice strong { display: block; color: #8a5a00; font-size: .9rem; margin-bottom: 4px; }
body.mag .loan-notice p { color: #6b5320; font-size: .86rem; line-height: 1.6; margin: 0; }
/* 중립 업체 카드(보장성 문구·배너 없음) */
body.mag .loan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
body.mag .loan-firm { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
body.mag .loan-firm:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15,23,42,.08); }
body.mag .loan-firm-media { position: relative; background: var(--wash); }
body.mag .loan-firm-img { display: block; width: 100%; height: auto; }   /* 배너 전체 표시(잘림 없음) */
body.mag .loan-ad { position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 6px; }
body.mag .loan-firm-body { padding: 16px 16px 14px; }
body.mag .loan-firm-name { font-family: var(--disp); font-size: 1.04rem; font-weight: 800; color: var(--ink); margin: 0 0 8px; line-height: 1.4; }
body.mag .loan-firm-tag { display: inline-block; font-size: .72rem; color: var(--blue); background: var(--wash2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
body.mag .loan-firm-info { color: var(--ink); font-size: .92rem; font-weight: 600; line-height: 1.5; margin: 0 0 4px; }
body.mag .loan-firm-disc { color: var(--muted); font-size: .72rem; line-height: 1.4; margin: 0 0 12px; }

/* /loan 페이지: 한 줄에 한 칸(배너 전체 + 정보 + 상담문의) */
body.mag .loan-wrap .loan-grid { grid-template-columns: 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
body.mag .loan-wrap .loan-firm { display: flex; align-items: stretch; }
body.mag .loan-wrap .loan-firm-media { width: 50%; max-width: 420px; flex: none; display: flex; align-items: center; }
body.mag .loan-wrap .loan-firm-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; }
body.mag .loan-wrap .loan-cta { margin-top: auto; }
@media (max-width: 640px){
  body.mag .loan-wrap .loan-firm { flex-direction: column; }
  body.mag .loan-wrap .loan-firm-media { width: 100%; max-width: none; }
}
body.mag .loan-cta { display: block; text-align: center; background: var(--blue); color: #fff; font-weight: 700; padding: 10px 14px; border-radius: 9px; text-decoration: none; }
body.mag .loan-cta:hover { background: var(--blue-d); }
body.mag .loan-foot { color: var(--muted); font-size: .82rem; margin-top: 18px; line-height: 1.6; }
