/* HOGY Magazine(블로그) 공통 스타일 (public/blog.css) — 앱과 같은 납작한 흰 띠 */
/* 글꼴 조합 3가지 (글마다 body 클래스로 고른다, 기본 warm) — 파일은 /fonts/blog (직접 제공) */
:root, body.font-warm {
  --mag-body: "Gowun Dodum", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --mag-head: "Gowun Batang", "Apple SD Gothic Neo", "Noto Serif KR", serif;
}
body.font-classic {
  --mag-body: "Nanum Myeongjo", "Apple SD Gothic Neo", "Noto Serif KR", serif;
  --mag-head: "Nanum Myeongjo", "Apple SD Gothic Neo", "Noto Serif KR", serif;
}
body.font-clear {
  --mag-body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mag-head: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
:root {
  --primary: #0f71cc;
  --text: #222222;
  --text-muted: #6b6b6b;
  --line: #e6e6e6;
  --bg-soft: #f1f8fe;
  --band: #ffffff;
  --page: #f6f7f8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  /* 따뜻한 글꼴 (Jerry 2026-10-22 A안): 본문 고운돋움, 제목·강조 고운바탕. 직접 제공하는 파일(/fonts/blog) — 못 받으면 시스템 글꼴로 */
  font-family: var(--mag-body);
  font-size: 16px;
  line-height: 1.8;
}
a { color: inherit; }
.mag-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--band);
  border-bottom: 1px solid var(--line);
}
.mag-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: 0.02em; }
.mag-logo { display: block; height: 26px; width: auto; }
.mag-brand-name { font-size: 15px; color: var(--text-muted); }
.mag-space { flex: 1; }
.mag-lang { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.mag-app { font-size: 13px; color: var(--primary); text-decoration: none; }
.mag-hero { max-width: 880px; margin: 0 auto; padding: 28px 16px 12px; }
.mag-hero h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.35; }
.mag-hero p { margin: 0; color: var(--text-muted); }
.mag-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--primary); }
.mag-kicker a { text-decoration: none; }
.mag-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 880px; margin: 0 auto; padding: 8px 16px 16px; }
.mag-chip { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-muted); text-decoration: none; background: var(--band); }
.mag-chip.is-on { background: var(--bg-soft); color: var(--primary); border-color: var(--primary); }
.mag-chip.is-empty { opacity: 0.6; }
main { padding-bottom: 8px; }
.mag-band { max-width: 880px; margin: 0 auto 12px; padding: 16px; background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mag-card { display: block; }
.mag-card.is-big { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: center; }
.mag-cover { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.mag-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--primary); }
.mag-card-body { padding-top: 8px; }
.mag-card.is-big .mag-card-body { padding-top: 0; }
.mag-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--primary); text-decoration: none; }
.mag-card h2 { margin: 2px 0 4px; font-size: 16px; line-height: 1.4; }
.mag-card.is-big h2 { font-size: 20px; }
.mag-card h2 a { text-decoration: none; }
.mag-card p { margin: 0 0 6px; font-size: 14px; color: var(--text-muted); }
.mag-meta { font-size: 12px; color: var(--text-muted); }
.mag-empty { max-width: 880px; margin: 0 auto 12px; padding: 40px 16px; text-align: center; background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mag-empty h2 { margin: 0 0 4px; font-size: 18px; }
.mag-empty p { margin: 0; color: var(--text-muted); }
.mag-article { max-width: 680px; margin: 0 auto; padding: 24px 16px 16px; background: var(--band); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.mag-article h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.35; }
.mag-hero-img { margin: 16px 0; }
.mag-hero-img img, .mag-body img { width: 100%; height: auto; border-radius: 8px; display: block; }
.mag-body { font-size: 17px; line-height: 2; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word; color: #2b2b2b; } /* 본문 가독성 (Jerry 2026-10-29): 글자 17px, 줄 간격 2, 한글은 단어 단위로 줄바꿈, 문단·소제목·목록 사이를 넓혔다 */
.mag-body h2 { margin: 48px 0 16px; padding-left: 12px; border-left: 4px solid var(--primary); font-size: 21px; line-height: 1.45; color: var(--text); }
.mag-body h3 { margin: 32px 0 10px; font-size: 18px; line-height: 1.5; color: var(--text); }
.mag-body p { margin: 0 0 22px; }
.mag-body figure { margin: 26px 0; }
.mag-body figcaption { margin-top: 4px; font-size: 12px; color: var(--text-muted); text-align: center; }
.mag-body blockquote { margin: 26px 0; padding: 10px 14px; border: 1px solid var(--primary); background: var(--bg-soft); border-radius: 8px; font-size: 16px; line-height: 1.9; }
.mag-body a { color: var(--primary); }
/* 본문 표 (Jerry 2026-10-29): 바깥 테두리·세로선 없이 가로선만. 머리글은 연한 블루 바탕에 파란 아래선, 줄 사이는 연한 선. 한글이 글자 중간에서 끊기지 않게 단어 단위로 줄바꿈한다 */
.mag-body .legal-table { margin: 28px 0; overflow-x: auto; }
.mag-body table { width: 100%; border-collapse: collapse; border: 0; font-size: 14px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
.mag-body th, .mag-body td { padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mag-body th { font-weight: 700; color: var(--text); background: var(--bg-soft); border-bottom: 2px solid var(--primary); }
.mag-body td:first-child { font-weight: 600; }
.mag-body tbody tr:last-child td { border-bottom: 1px solid var(--primary); }
.mag-body th:first-child, .mag-body td:first-child { padding-left: 10px; }
.mag-body ul, .mag-body ol { padding-left: 22px; margin: 0 0 22px; }
.mag-body li { margin-bottom: 6px; }
.mag-source { font-size: 13px; color: var(--text-muted); }
.mag-next { display: flex; flex-direction: column; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; }
.mag-next a { text-decoration: none; }
.mag-back { margin: 18px 0 0; font-size: 14px; }
.mag-back a { color: var(--primary); text-decoration: none; }
.mag-foot { max-width: 880px; margin: 16px auto 0; padding: 16px 16px 40px; text-align: center; font-size: 12px; color: var(--text-muted); }
.mag-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }
.mag-social a { display: inline-flex; padding: 6px; color: var(--text-muted); }
.mag-social a:hover { color: var(--primary); }
.mag-foot p { margin: 0; }
@media (max-width: 640px) {
  .mag-grid { grid-template-columns: 1fr; }
  .mag-card.is-big { grid-template-columns: 1fr; }
  .mag-hero h1, .mag-article h1 { font-size: 22px; }
  .mag-article { border-left: 0; border-right: 0; }
}
.mag-social-text { font-size: 15px; font-weight: 700; line-height: 20px; }

/* 제목·분류·강조는 고운바탕 굵게 */
.mag-brand, .mag-hero h1, .mag-card h2, .mag-article h1, .mag-body h2, .mag-body h3, .mag-body strong, .mag-empty h2, .mag-next a, .mag-kicker, .mag-tag {
  font-family: var(--mag-head);
  font-weight: 700;
}
.mag-body strong { font-weight: 700; color: var(--text); background: linear-gradient(transparent 62%, #d6ebff 62%); } /* 강조는 형광펜처럼 (Jerry 2026-10-29) */
/* 요약 상자: 💡 제목 + ✓ 아이콘 목록 */
.mag-body blockquote.mag-callout { padding: 16px 18px; border: 0; border-left: 4px solid var(--primary); border-radius: 8px; background: var(--bg-soft); }
.mag-callout-title { margin: 0 0 8px; font-weight: 700; font-size: 16px; color: var(--primary); }
.mag-body .mag-callout ul { list-style: none; margin: 0; padding: 0; }
.mag-body .mag-callout li { position: relative; margin: 0 0 6px; padding-left: 26px; line-height: 1.8; }
.mag-body .mag-callout li:last-child { margin-bottom: 0; }
.mag-body .mag-callout li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin-top: 7px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.mag-body .mag-callout strong { background: none; }

/* 소비자 리콜 자동 페이지 (functions/blog/recalls.js) */
.mag-facts { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--band); }
.mag-facts h2 { margin: 0 0 8px; font-size: 15px; }
.mag-facts dl { margin: 0; display: grid; gap: 6px; }
.mag-facts dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 14px; }
.mag-facts dt { color: var(--text-muted); }
.mag-facts dd { margin: 0; overflow-wrap: anywhere; }
.mag-note { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--band); border-radius: 6px; font-size: 14px; }
.mag-cover.is-broken img { display: none; }
