/*
 Theme Name: BlackGoat Child
 Template: twentytwentyfive
 Version: 1.0
*/

:root {
  --bg-primary: #faf9f6;
  --bg-white: #ffffff;
  --bg-warm: #f5f1eb;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #777777;
  --accent: #2d5a3d;
  --accent-light: #3a7a52;
  --accent-soft: #e8f0eb;
  --accent-hover: #1e3f2b;
  --border: #e2ddd5;
  --border-light: #eee9e2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-heading: "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  --font-body: "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  --spacing-2xl: 96px;
  --content-width: 780px;
  --wide-width: 1200px;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
}

.wp-site-blocks > header,
.wp-site-blocks > footer,
body > .wp-site-blocks > .wp-block-template-part:first-child,
body > .wp-site-blocks > .wp-block-template-part:last-child { display: none !important; }

.bg-site-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #eee9e2;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.bg-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.bg-logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #1a1a1a; }
.bg-logo-area img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; flex: 0 0 36px; }
.bg-logo-text { font-weight: 700; font-size: 1.1em; letter-spacing: -0.02em; }

.bg-nav { display: flex; gap: 4px; align-items: center; }
.bg-nav a {
  color: #4a4a4a; text-decoration: none;
  padding: 8px 14px; border-radius: 6px;
  font-size: 0.92em; font-weight: 500; transition: all 0.2s;
}
.bg-nav a:hover { color: #2d5a3d; background: #e8f0eb; }

.bg-nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.bg-nav-toggle svg { width: 24px; height: 24px; stroke: #1a1a1a; }

.bg-single-wrap {
  max-width: 780px; margin: 0 auto;
  padding: 64px 24px 96px;
}
.bg-single-wrap .entry-title,
.bg-single-wrap h1.wp-block-post-title {
  font-family: var(--font-heading);
  font-size: 2.2em; font-weight: 800; line-height: 1.3;
  letter-spacing: -0.03em; color: #1a1a1a;
  margin: 0 0 24px;
}
.bg-single-wrap .entry-content {
  font-size: 17px; line-height: 1.78; color: #4a4a4a;
}
.bg-single-wrap .entry-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5em; font-weight: 700; color: #1a1a1a;
  margin: 64px 0 24px; padding-bottom: 8px;
  border-bottom: 2px solid #2d5a3d;
  letter-spacing: -0.02em;
}
.bg-single-wrap .entry-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2em; font-weight: 700; color: #2d5a3d;
  margin: 40px 0 16px;
}
.bg-single-wrap .entry-content p { margin: 0 0 24px; }
.bg-single-wrap .entry-content img {
  max-width: 100%; height: auto;
  border-radius: 12px; margin: 24px 0;
}
.bg-single-wrap .entry-content table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-size: 0.95em;
  border-radius: 12px; overflow: hidden;
  border: 1px solid #e2ddd5;
}
.bg-single-wrap .entry-content table th {
  background: #2d5a3d; color: #fff;
  font-weight: 600; padding: 12px 16px; text-align: left;
}
.bg-single-wrap .entry-content table td {
  padding: 12px 16px; border-bottom: 1px solid #eee9e2;
}
.bg-single-wrap .entry-content table tr:nth-child(even) { background: #f5f1eb; }
.bg-single-wrap .entry-content table tr:hover { background: #e8f0eb; }

.bg-single-wrap .entry-content blockquote {
  border-left: 4px solid #2d5a3d;
  background: #e8f0eb; padding: 24px;
  margin: 24px 0; border-radius: 0 12px 12px 0;
  font-style: normal; color: #1a1a1a;
}
.bg-single-wrap .entry-content blockquote p { margin: 0; }
.bg-single-wrap .entry-content ul,
.bg-single-wrap .entry-content ol { padding-left: 1.5em; margin: 16px 0 24px; }
.bg-single-wrap .entry-content li { margin-bottom: 8px; line-height: 1.7; }

.bg-single-wrap .entry-content .info-box {
  background: #e8f0eb; border: 1px solid rgba(45,90,61,0.15);
  border-radius: 12px; padding: 24px; margin: 24px 0;
}
.bg-single-wrap .entry-content .info-box-title {
  font-weight: 700; color: #2d5a3d; margin-bottom: 8px;
}

.bg-single-wrap .entry-content .chart-bar-wrap {
  margin: 24px 0; background: #fff;
  border: 1px solid #e2ddd5; border-radius: 12px; padding: 24px;
}
.bg-single-wrap .entry-content .chart-bar-item {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.bg-single-wrap .entry-content .chart-bar-label {
  min-width: 80px; font-size: 0.9em; font-weight: 600; color: #1a1a1a;
}
.bg-single-wrap .entry-content .chart-bar-track {
  flex: 1; height: 24px; background: #f5f1eb; border-radius: 12px; overflow: hidden;
}
.bg-single-wrap .entry-content .chart-bar-fill {
  height: 100%; border-radius: 12px;
  background: linear-gradient(90deg, #2d5a3d, #3a7a52);
  transition: width 0.6s ease;
}
.bg-single-wrap .entry-content .chart-bar-value {
  min-width: 50px; font-size: 0.85em; color: #777; text-align: right;
}

.bg-single-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 20px; margin-bottom: 40px;
}
.bg-cat-badge {
  display: inline-block; background: #e8f0eb; color: #2d5a3d;
  font-size: 0.82em; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}

.bg-related {
  margin-top: 96px; padding-top: 64px; border-top: 1px solid #e2ddd5;
}
.bg-related h3 {
  font-size: 1.3em; font-weight: 700; margin-bottom: 24px;
  border-bottom: none !important; color: #1a1a1a !important;
}
.bg-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px;
}
.bg-related-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #eee9e2; transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.bg-related-card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.bg-related-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.bg-related-card-body { padding: 16px; }
.bg-related-card-body h4 { font-size: 0.95em; font-weight: 600; margin: 0; line-height: 1.5; }

.bg-site-footer {
  background: #1a2620; color: rgba(255,255,255,0.65);
  padding: 64px 24px; font-size: 0.88em; line-height: 1.7;
}
.bg-footer-inner { max-width: 1200px; margin: 0 auto; }
.bg-footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.1em; margin-bottom: 16px; text-decoration: none; }
.bg-footer-brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; flex: 0 0 36px; }
.bg-footer-links { display: flex; gap: 24px; margin: 16px 0; flex-wrap: wrap; }
.bg-footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9em; }
.bg-footer-links a:hover { color: #fff; }
.bg-footer-notice {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82em; color: rgba(255,255,255,0.45); line-height: 1.7;
}
.legal-notice, .ai-notice { font-size: 0.85em !important; }

@media (max-width: 768px) {
  .bg-header-inner { height: 56px; }
  .bg-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e2ddd5; flex-direction: column; padding: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
  .bg-nav.is-open { display: flex; }
  .bg-nav-toggle { display: block; }
  .bg-single-wrap { padding: 24px 16px 64px; }
  .bg-single-wrap .entry-title,
  .bg-single-wrap h1.wp-block-post-title { font-size: 1.6em; }
  .bg-single-wrap .entry-content h2 { font-size: 1.25em; }
  .bg-related-grid { grid-template-columns: 1fr; }
  .bg-footer-links { flex-direction: column; gap: 8px; }
  .bg-single-wrap .entry-content table { display: block; overflow-x: auto; }
}

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