/*
Theme Name: GeneratePress Child – Haemongdream
Template: generatepress
Description: haemongdream.com 전용 자식 테마. 반응형 컨테이너, /blog/ 카드형, 본문 가독성, 광고 균형 통합.
Version: 1.0.0
Author: haemongdream
*/

/* =========================================================
 * 0. CSS 변수 (한 곳에서 톤 조절)
 * ========================================================= */
:root {
  --hd-max: 1100px;
  --hd-fg: #1a1a1a;
  --hd-muted: #5b5b5b;
  --hd-line: #e6e8eb;
  --hd-bg-soft: #f7f8fa;
  --hd-accent: #1a365d;
  --hd-accent-soft: #eaf0fa;
  --hd-radius: 12px;
  --hd-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
}

/* =========================================================
 * 1. 글 본문 가독성 (P4)
 *    - 모바일 폰트는 clamp()로 자동 조정
 * ========================================================= */
.entry-content,
.entry-summary {
  font-size: 18px;
  line-height: 1.85;
  color: var(--hd-fg);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.entry-content > * { margin-block: 0 1.1em; }
.entry-content p { margin-block: 0 1.1em; }
.entry-content h2 {
  font-size: 26px;
  margin-block: 2.2em 0.8em;
  padding-bottom: .35em;
  border-bottom: 2px solid var(--hd-accent);
  font-weight: 800;
  line-height: 1.35;
}
.entry-content h3 {
  font-size: 22px;
  margin-block: 1.6em 0.7em;
  padding-left: .55em;
  border-left: 4px solid var(--hd-accent);
  font-weight: 700;
  line-height: 1.4;
}
.entry-content h4 {
  font-size: 19px;
  margin-block: 1.3em 0.5em;
  font-weight: 700;
}
@media (max-width: 600px) {
  .entry-content,
  .entry-summary { font-size: 16px; line-height: 1.78; }
  .entry-content h2 { font-size: 22px; }
  .entry-content h3 { font-size: 19px; }
  .entry-content h4 { font-size: 17px; }
}

.hd-post-subtitle {
  margin: 8px 0 18px;
  padding: 10px 14px;
  border-left: 4px solid #28705f;
  background: #eef8f4;
  color: #28443c;
  font-size: 16px;
  line-height: 1.65;
}

.hd-trust-source {
  margin: 2em 0 1em;
  padding: 14px 16px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #f8fbff;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}
.hd-trust-source a {
  color: var(--hd-accent);
  font-weight: 700;
}

.hd-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.2em 0 2em;
}
.hd-content-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.hd-content-action-primary {
  background: var(--hd-accent);
  color: #fff !important;
}
.hd-content-action-secondary {
  border: 1px solid #d6a756;
  background: #fff8e8;
  color: #6d4a0f !important;
}
@media (max-width: 600px) {
  .hd-content-actions { display: grid; }
  .hd-content-actions a { width: 100%; }
}
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-block: .35em; }
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--hd-accent);
  background: var(--hd-bg-soft);
  border-radius: 0 var(--hd-radius) var(--hd-radius) 0;
  color: var(--hd-muted);
  font-style: normal;
}
.entry-content img,
.entry-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--hd-radius);
  display: block;
  margin-inline: auto;
}
.entry-content figure {
  margin: 1.5em auto;
}
.entry-content figcaption {
  text-align: center;
  font-size: .9em;
  color: var(--hd-muted);
  margin-top: .4em;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .95em;
  display: block;
  overflow-x: auto;
}
.entry-content table th,
.entry-content table td {
  padding: .7em .9em;
  border: 1px solid var(--hd-line);
  vertical-align: top;
}
.entry-content table th {
  background: var(--hd-bg-soft);
  font-weight: 700;
}
.entry-content a {
  color: var(--hd-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: #2c4f7c; }

/* =========================================================
 * 2. 목차 (hd-toc) 디자인
 * ========================================================= */
.hd-toc {
  background: var(--hd-bg-soft);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  box-shadow: var(--hd-shadow);
  padding: 16px 18px;
  margin: 1.5em 0;
  font-size: .95em;
}
.hd-toc-title {
  font-weight: 800;
  color: var(--hd-accent);
  margin-bottom: .6em;
  letter-spacing: -.01em;
}
.hd-toc-list {
  margin: 0;
  padding-left: 1.4em;
  list-style: decimal;
}
.hd-toc-list li { margin: .35em 0; }
.hd-toc-sub {
  margin-left: 1.2em;
  font-size: .93em;
  list-style: lower-alpha;
}
.hd-toc a {
  color: var(--hd-fg);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .15s, border-color .15s;
}
.hd-toc a:hover,
.hd-toc a.hd-toc-active {
  color: var(--hd-accent);
  border-bottom-color: var(--hd-accent);
}
@media (max-width: 600px) {
  .hd-toc { font-size: .9em; padding: 12px 14px; }
  .hd-toc-list { font-size: .88em; margin-left: .7em; }
  .hd-toc-list li { margin: .25em 0; }
}

/* =========================================================
 * 3. /blog/ 및 카테고리 카드형 그리드 (P2)
 *    - .archive .site-main 안의 article 들을 카드 그리드로
 * ========================================================= */
body.archive .site-main,
body.blog .site-main,
body.search .site-main {
  background: transparent;
}

.hd-blog-hero {
  max-width: var(--hd-max);
  margin: 0 auto 24px;
  padding: 22px 24px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6f2 100%);
}
.hd-blog-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.25;
  color: var(--hd-accent);
  font-weight: 800;
}
.hd-blog-hero p {
  margin: 0;
  color: var(--hd-muted);
  font-size: 16px;
  line-height: 1.65;
}
@media (max-width: 600px) {
  .hd-blog-hero {
    margin-bottom: 18px;
    padding: 18px 16px;
  }
  .hd-blog-hero h1 { font-size: 24px; }
  .hd-blog-hero p { font-size: 15px; }
}

body.archive .site-main > .content-area-inner,
body.blog .site-main > .content-area-inner,
body.archive #main,
body.blog #main {
  display: block;
}

.hd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 32px 0;
}
@media (max-width: 980px) {
  .hd-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 600px) {
  .hd-card-grid { grid-template-columns: 1fr; gap: 16px; }
}

.hd-card-grid article {
  background: #fff;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  box-shadow: var(--hd-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hd-card-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.hd-card-grid .post-image,
.hd-card-grid .featured-image,
.hd-card-grid .hd-thumb-fallback {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hd-bg-soft);
  position: relative;
}
.hd-card-grid .post-image img,
.hd-card-grid .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hd-card-grid .hd-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Noto Sans KR', system-ui, sans-serif;
}
.hd-card-grid .hd-thumb-letter {
  font-size: clamp(38px, 8vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.hd-card-grid .inside-article {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.hd-card-grid .entry-header { margin: 0; }
.hd-card-grid .entry-title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
}
.hd-card-grid .entry-title a {
  color: var(--hd-fg);
  text-decoration: none;
}
.hd-card-grid .entry-title a:hover { color: var(--hd-accent); }
.hd-card-grid .entry-summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hd-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hd-card-grid .entry-meta,
.hd-card-grid .entry-meta * {
  font-size: 12px !important;
  color: var(--hd-muted) !important;
}
.hd-card-grid .read-more,
.hd-card-grid .more-link {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--hd-accent-soft);
  color: var(--hd-accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.hd-card-grid .read-more:hover,
.hd-card-grid .more-link:hover {
  background: var(--hd-accent);
  color: #fff;
}

/* =========================================================
 * 4. 광고 자리 균형 (P6)
 * ========================================================= */
.hd-ad-slot {
  display: block;
  margin: 28px auto;
  text-align: center;
  min-height: 280px;
  contain: layout style;
}
.hd-card-ad-wrap {
  background: #f7f8fa;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout style;
}
.hd-ad-slot.hd-ad-inline { margin: 36px auto; }
@media (max-width: 600px) {
  .hd-ad-slot { margin: 22px auto; }
}

/* =========================================================
 * 5. 컨테이너 폭 미세 조정 (PC 가독성)
 * ========================================================= */
.grid-container, .site-content .container {
  max-width: var(--hd-max);
}
@media (min-width: 1280px) {
  .one-container .site-content .content-area,
  .separate-containers .site-content .content-area {
    padding-inline: 8px;
  }
}

/* =========================================================
 * 5-2. 콜아웃 박스 & 하이라이트 — 가독성 강화 (사용자 채택)
 *      페르소나 visual_palette 2색만 사용 (네이비, 호박색)
 * ========================================================= */
.hd-callout-tip,
.hd-callout-warn,
.hd-callout-quote {
  margin: 1.5em 0;
  padding: 16px 20px 16px 56px;
  border-radius: 12px;
  position: relative;
  line-height: 1.75;
  font-size: .98em;
  word-break: keep-all;
}
.hd-callout-tip {
  background: #fff3e6;
  border-left: 4px solid var(--hd-accent);
  color: #5a2c0e;
}
.hd-callout-tip::before {
  content: "💡";
  position: absolute;
  left: 18px;
  top: 14px;
  font-size: 1.25em;
}
.hd-callout-warn {
  background: var(--hd-accent-soft);
  border-left: 4px solid var(--hd-accent);
  color: #1a365d;
}
.hd-callout-warn::before {
  content: "⚠";
  position: absolute;
  left: 18px;
  top: 14px;
  font-size: 1.25em;
  color: var(--hd-accent);
}
.hd-callout-quote {
  background: #f7f8fa;
  border-left: 4px solid var(--hd-accent);
  color: #2f3a4a;
  font-style: normal;
}
.hd-callout-quote::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 4px;
  font-size: 2.4em;
  color: var(--hd-accent);
  font-family: Georgia, serif;
  line-height: 1;
}
.hd-callout-tip strong,
.hd-callout-warn strong,
.hd-callout-quote strong {
  color: var(--hd-accent);
}
@media (max-width: 600px) {
  .hd-callout-tip,
  .hd-callout-warn,
  .hd-callout-quote {
    padding: 14px 16px 14px 48px;
    font-size: .95em;
  }
}

/* 하이라이트 — 노란 마커 대신 호박색 underline-bar */
.hd-hl {
  background: linear-gradient(180deg, transparent 55%, rgba(192,86,33,0.20) 55%);
  padding: 0 2px;
  font-weight: 700;
  color: inherit;
}
mark.hd-hl,
.entry-content mark {
  background: linear-gradient(180deg, transparent 55%, rgba(192,86,33,0.20) 55%);
  color: inherit;
  font-weight: 700;
}

/* =========================================================
 * 5-3. 면책문구 숨김 (본문 상·하단 disclaimer 비노출)
 * ========================================================= */
.ymyl-disclaimer,
aside[data-role="disclaimer"] {
  display: none !important;
}

/* =========================================================
 * 6. 접근성: 포커스 링
 * ========================================================= */
a:focus-visible,
button:focus-visible,
.entry-title a:focus-visible {
  outline: 2px solid var(--hd-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 본문 단락 왼쪽 정렬 고정 */
.entry-content p { text-align: left !important; }

/* 포스트 본문 너비 760px 제한 */
.single .content-area {
  max-width: 760px;
  margin-inline: auto;
}

/* =========================================================
 * 7. FAQ 섹션 (hd-faq-section)
 * ========================================================= */
.hd-faq-section {
  margin: 2.5em 0 1.5em;
}
.hd-faq-section > h2 {
  font-size: clamp(20px, 1.3vw + 0.9rem, 26px);
  font-weight: 800;
  margin-block: 0 1.2em;
  padding-bottom: .35em;
  border-bottom: 2px solid var(--hd-accent);
}
.hd-faq-section > h3 {
  font-size: clamp(16px, 0.9vw + 0.85rem, 20px);
  font-weight: 700;
  margin-block: 1.4em 0.5em;
  padding: .6em .9em;
  background: var(--hd-accent-soft);
  border-left: 4px solid var(--hd-accent);
  border-radius: 0 var(--hd-radius) var(--hd-radius) 0;
  line-height: 1.45;
}
.hd-faq-section > h3::before {
  content: "Q. ";
  color: var(--hd-accent);
  font-weight: 900;
}
.hd-faq-section > p {
  margin-block: 0 1em;
  padding-left: .6em;
  line-height: 1.8;
  color: var(--hd-fg);
}
.hd-faq-section > blockquote {
  margin: 0 0 1em;
  padding: .9em 1.1em;
  border-left: 3px solid var(--hd-line);
  background: #fafbfc;
  border-radius: 0 8px 8px 0;
  font-style: normal;
  line-height: 1.75;
}

/* =========================================================
 * 8. CTA 블록 (auto-cta-block)
 * ========================================================= */
.auto-cta-block {
  margin: 2em 0;
  padding: 1.4em 1.6em;
  background: linear-gradient(135deg, var(--hd-accent) 0%, #2c5f8a 100%);
  border-radius: var(--hd-radius);
  text-align: center;
  box-shadow: 0 4px 16px rgba(26,54,93,.18);
}
.auto-cta-block p,
.auto-cta-block span {
  color: #fff !important;
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: .8em;
}
.auto-cta-block a {
  display: inline-block;
  padding: .65em 1.6em;
  background: #fff;
  color: var(--hd-accent) !important;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1em;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .15s, box-shadow .15s;
}
.auto-cta-block a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
}

/* =========================================================
 * 9. 관련글 블록 (auto-related-posts)
 * ========================================================= */
.auto-related-posts {
  margin: 2em 0;
  padding: 1.2em 1.4em;
  background: var(--hd-bg-soft);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
}
.auto-related-posts h4,
.auto-related-posts > strong,
.auto-related-posts > p:first-child strong {
  display: block;
  font-size: 1em;
  font-weight: 800;
  color: var(--hd-accent);
  margin-bottom: .8em;
  padding-bottom: .4em;
  border-bottom: 1px solid var(--hd-line);
}
.auto-related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5em;
}
.auto-related-posts ul li::before {
  content: "→ ";
  color: var(--hd-accent);
  font-weight: 700;
}
.auto-related-posts a {
  color: var(--hd-fg);
  text-decoration: none;
  font-weight: 600;
}
.auto-related-posts a:hover { color: var(--hd-accent); text-decoration: underline; }

/* =========================================================
 * 10. 외부링크 블록 (auto-outlink)
 * ========================================================= */
.auto-outlink {
  margin: 1.5em 0;
  padding: .9em 1.2em;
  background: #f0f7ff;
  border: 1px solid #c3daf7;
  border-radius: 10px;
  font-size: .95em;
  display: flex;
  align-items: center;
  gap: .7em;
  flex-wrap: wrap;
}
.auto-outlink::before {
  content: "🔗";
  flex-shrink: 0;
  font-size: 1.1em;
}
.auto-outlink a {
  color: var(--hd-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auto-outlink a:hover { color: #2c4f7c; }

/* =========================================================
 * 11. 단일 포스트 content-visibility 최적화 (성능)
 * ========================================================= */
.auto-related-posts,
.auto-outlink {
  content-visibility: auto;
  contain-intrinsic-size: 0 120px;
}

/* =========================================================
 * 12. 모바일 여백 보강 (320px~)
 * ========================================================= */
@media (max-width: 480px) {
  .auto-cta-block { padding: 1.1em 1.1em; }
  .auto-related-posts { padding: 1em 1em; }
  .hd-faq-section > h3 { padding: .5em .7em; }
}

/* =========================================================
 * 13. 카드 카테고리 배지
 * ========================================================= */
.hd-card-badge {
  display: inline-block;
  padding: 2px 9px;
  background: var(--hd-accent-soft);
  color: var(--hd-accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.hd-card-badge:hover { background: var(--hd-accent); color: #fff; }

/* =========================================================
 * 14. (hd-toc mobile: @media in section 2에 통합됨)
 * ========================================================= */

/* =========================================================
 * 15. 단일 포스트 본문 영역 패딩 보강
 * ========================================================= */
.single .site-content .content-area {
  max-width: 760px;
  margin-inline: auto;
}
@media (max-width: 780px) {
  .single .site-content .content-area { max-width: 100%; padding-inline: 16px; }
}

/* =========================================================
 * 16. /blog/ 페이지네이션 개선
 * ========================================================= */
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--hd-fg);
  border: 1px solid var(--hd-line);
  transition: all .15s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--hd-accent);
  color: #fff;
  border-color: var(--hd-accent);
}

/* =========================================================
 * 17. 홈페이지 최신글 섹션
 * ========================================================= */
.hd-home-recent {
  margin: 3em 0 1.5em;
}
.hd-home-section-title {
  font-size: clamp(20px, 1.3vw + 0.9rem, 26px);
  font-weight: 800;
  margin-block: 0 1.2em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--hd-accent);
}
.hd-home-recent .hd-card-grid {
  margin-bottom: 1.5em;
}
.hd-home-recent .hd-card-grid .entry-title {
  font-size: 15px;
}
.hd-home-more {
  text-align: center;
  margin-top: 1em;
}
.hd-home-more a {
  display: inline-block;
  padding: 8px 24px;
  background: var(--hd-accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.hd-home-more a:hover { background: #2c4f7c; }

/* =========================================================
 * 18. 광고 슬롯 여백 강화 (모바일 의도치 않은 클릭 방지)
 * ========================================================= */
.hd-ad-slot {
  margin: 40px auto !important;
  padding: 4px 0;
}
.hd-ad-slot.hd-ad-top { margin-top: 32px !important; }
@media (max-width: 600px) {
  .hd-ad-slot {
    margin: 32px auto !important;
  }
  /* 광고 위아래 터치 가드 여백 */
  .hd-ad-slot::before,
  .hd-ad-slot::after {
    content: '';
    display: block;
    height: 8px;
  }
}

/* =========================================================
 * 관련 글 카드 섹션 (hd-related-posts)
 * ========================================================= */
.hd-related-posts {
  margin: 3em 0 1.5em;
  padding-top: 1.5em;
  border-top: 2px solid var(--hd-line);
}
.hd-related-title {
  font-size: clamp(17px, 1.1vw + 0.9rem, 21px);
  font-weight: 800;
  margin: 0 0 1em;
  color: var(--hd-accent);
}
.hd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 700px) {
  .hd-related-grid { grid-template-columns: 1fr; gap: 12px; }
}
.hd-rel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--hd-shadow);
}
.hd-rel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
}
.hd-rel-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--hd-bg-soft);
}
.hd-rel-img img { width:100%; height:100%; object-fit:cover; display:block; }
.hd-rel-fallback {
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.hd-rel-fallback span { font-size: 2rem; font-weight: 800; }
.hd-rel-body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.hd-rel-ttl {
  font-size: 14px; font-weight: 700; line-height: 1.4;
  color: var(--hd-fg); margin: 0;
}

/* =========================================================
 * Breadcrumb
 * ========================================================= */
.hd-breadcrumb {
  font-size: .85em;
  margin-bottom: 1em;
  color: var(--hd-muted);
}
.hd-bc-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.hd-bc-list li + li::before {
  content: ›;
  margin-right: 4px;
  color: var(--hd-line);
}
.hd-bc-list a { color: var(--hd-accent); text-decoration: none; }
.hd-bc-list a:hover { text-decoration: underline; }
.hd-bc-list [aria-current] { color: var(--hd-muted); }

/* =========================================================
 * 광고 CLS 방지 — 광고 로드 전 공간 미리 확보
 * ========================================================= */
.hd-ad-slot ins.adsbygoogle {
  display: block !important;
  min-height: 100px;
}
.hd-ad-slot.hd-ad-top  { min-height: 250px; }
.hd-ad-slot.hd-ad-mid  { min-height: 250px; }
.hd-ad-slot.hd-ad-bot  { min-height: 250px; }
.hd-ad-sidebar         { min-height: 250px; }

/* =========================================================
 * 읽는 시간 배지
 * ========================================================= */
.hd-reading-time {
  margin: -0.5em 0 1.2em;
  font-size: .85em;
  color: var(--hd-muted);
}
.hd-reading-time span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--hd-bg-soft);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--hd-line);
}

/* =========================================================
 * 홈페이지 카테고리 퀵 네비
 * ========================================================= */
.hd-cat-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 2em;
  padding: 16px 20px;
  background: var(--hd-bg-soft);
  border-radius: var(--hd-radius);
  border: 1px solid var(--hd-line);
}
.hd-cat-nav-label {
  font-size: .85em;
  font-weight: 700;
  color: var(--hd-muted);
  margin-right: 4px;
}
.hd-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .95em;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
}
.hd-cat-dream { background: #ede9f8; color: #5B4A8B; }
.hd-cat-dream:hover { background: #5B4A8B; color: #fff; }
.hd-cat-saju  { background: #e8f4fd; color: #1a365d; }
.hd-cat-saju:hover  { background: #1a365d; color: #fff; }
.hd-cat-search { background: #f0faf0; color: #2d6a2d; }
.hd-cat-search:hover { background: #2d6a2d; color: #fff; }
@media (max-width: 480px) {
  .hd-cat-nav { padding: 12px 14px; gap: 8px; }
  .hd-cat-btn { padding: 7px 14px; font-size: .88em; }
}
