/* 육아 테마 — style.css·posts.css 뒤에 덮어씀 (scripts: split_sites.py 가 생성) */
:root {
  color-scheme: light;
  --bg: #fff8f3;
  --bg-2: #fdeee6;
  --panel: #ffffff;
  --line: #f1dccf;
  --text: #3b2f2f;
  --muted: #8a7a74;
  --accent: #e2668e;
  --accent-2: #3fa79d;
  --accent-3: #e8962e;
  --on-accent: #ffffff;
  --radius: 20px;
  --display: 'Jua', 'Gowun Dodum', sans-serif;
  --body: 'Gowun Dodum', 'Noto Sans KR', sans-serif;
}
body { font-family: var(--body); background-size: auto; background-position: 0 0; background-image: radial-gradient(rgba(226,102,142,.16) 2px, transparent 2.5px), radial-gradient(rgba(63,167,157,.14) 2px, transparent 2.5px); background-size: 36px 36px; background-position: 0 0, 18px 18px; }
body::before { background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--bg) 75%); }
h1, h2, h3, .logo, .tool-head h1, .post-head h1 { font-family: var(--display); }
.chip.on, .btn.primary, .seg input:checked + span, .game-seg button.on, .dpad button:active, .sn-links a.on, .sv-opt.on, .sv-tcard .sv-done, .post-cat:hover, ::selection { color: var(--on-accent) !important; }
.sv-opt.on .k { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.logo .site-tag { margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: var(--on-accent); letter-spacing: 0; font-family: var(--body); }
.site-hero { margin: 28px 0 8px; padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(135deg, #ffe1ea, #e0f5f1); color: #3b2f2f; border: 2px dashed #f2b6c8; }
.site-hero .eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.site-hero h1 { margin: 6px 0 8px; font-size: clamp(26px, 5vw, 40px); line-height: 1.2; }
.site-hero p { margin: 0; max-width: 640px; opacity: .92; }
.site-hero .hero-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.site-hero .hero-links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: #e2668e; color: #fff; box-shadow: 0 3px 0 #b84a6e; }
.site-hero .hero-links a:hover { text-decoration: none; filter: brightness(1.08); }
.latest-posts { margin: 28px 0; }
.latest-posts ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.latest-posts li a { display: block; height: 100%; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.latest-posts li a:hover { border-color: var(--accent); text-decoration: none; }
.latest-posts time { display: block; font-size: 11.5px; color: var(--muted); }
.latest-posts b { display: block; margin: 4px 0; line-height: 1.4; }
.latest-posts span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-posts .all { display: inline-block; margin-top: 12px; font-weight: 700; }
.ad-kakao, .ad-pair, .ad-rail, ins.adsbygoogle { display: none !important; }  /* 광고 단위는 baby.smithlab.co.kr 전용이라 숨김 */
.sn-cat-home { display: block; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.card { box-shadow: 0 4px 0 #f1dccf; } .btn, .chip { border-radius: 999px; }

/* 브랜드 로고·패밀리 사이트 */
.logo .brand-name { font-family: var(--display); font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 480px) { .logo .brand-name { font-size: 16px; } }
.logo-img { border-radius: 8px; }
.family { margin: 40px 0 24px; }
.fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.fam-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.fam-card:hover { border-color: var(--accent); text-decoration: none; }
.fam-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fam-card .fam-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.fam-card b { display: block; font-size: 14px; line-height: 1.2; }
.fam-card small { display: block; font-size: 11.5px; color: var(--muted); }
.fam-card > span + b { margin-right: auto; }
.fam-card { flex-wrap: wrap; } .fam-card b, .fam-card small { flex-basis: calc(100% - 40px); margin-left: 0; }

/* ===== 육아 전문 사이트 개편 (2026-11-09, scripts/build.py) ===== */
:root { --pink: #e2668e; --mint: #3fa79d; --butter: #ffd27a; --peach: #ffe9d6; --rose: #ffe1ea; --sky: #e0f5f1; }
.nav-links a { font-family: var(--display); font-size: 15px; padding: 6px 10px; border-radius: 999px; }
.nav-links a:hover { background: var(--rose); text-decoration: none; }
@media (max-width: 640px) { .nav-links a { font-size: 13px; padding: 5px 7px; } .nav-links { gap: 0; } }

/* 홈 히어로 */
.baby-hero { display: grid; grid-template-columns: 1fr 240px; gap: 20px; align-items: center; margin: 24px 0 12px; padding: 30px 28px;
  border-radius: 28px; background: linear-gradient(135deg, var(--rose) 0%, #fff4e6 55%, var(--sky) 100%); border: 2px solid #f6cbd8; }
.baby-hero h1 { font-family: var(--display); font-size: clamp(26px, 4.6vw, 40px); line-height: 1.25; margin: 10px 0 12px; color: #3b2f2f; }
.baby-hero p { margin: 0 0 18px; color: #5d4d4a; line-height: 1.75; max-width: 600px; }
.hero-art { width: 100%; height: auto; }
.bb-kind { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #f6cbd8; font-size: 13px; font-weight: 700; color: var(--pink); }
.age-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.age-chip { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #f6cbd8; color: #3b2f2f; box-shadow: 0 3px 0 #f6cbd8; transition: transform .12s; }
.age-chip:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--pink); }
.age-chip b { font-family: var(--display); font-size: 17px; font-weight: 400; }
.age-chip small { font-size: 12px; color: var(--muted); }
.age-chip.soon { opacity: .55; box-shadow: none; border-style: dashed; }
@media (max-width: 720px) { .baby-hero { grid-template-columns: 1fr; padding: 22px 18px; } .hero-art { display: none; } .age-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-sec { padding: 28px 0 8px; }
.home-sec .section-head h2 { font-family: var(--display); font-weight: 400; }

/* BEST10 카드 */
.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.bb-card { position: relative; display: block; padding: 18px 18px 16px; border-radius: 22px; background: var(--panel); border: 2px solid var(--line); color: var(--text); box-shadow: 0 4px 0 var(--line); }
.bb-card:hover { border-color: var(--pink); text-decoration: none; transform: translateY(-2px); }
.bb-card-age { position: absolute; right: 14px; top: 14px; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--mint); font-size: 12px; font-weight: 700; }
.bb-card-emoji { font-size: 34px; line-height: 1; }
.bb-card h3 { font-family: var(--display); font-weight: 400; font-size: 19px; margin: 10px 0 6px; }
.bb-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.bb-card ol { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.bb-card li { font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.bb-card li b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--butter); color: #6b4a00; }
.bb-card li:first-child b { background: var(--pink); color: #fff; }
.bb-card .arrow { position: absolute; right: 16px; bottom: 14px; color: var(--muted); }

/* BEST10 상세 */
.bb-hero { margin: 18px 0 16px; padding: 26px 24px; border-radius: 26px; background: linear-gradient(135deg, var(--rose), #fff4e6 60%, var(--sky)); border: 2px solid #f6cbd8; }
.bb-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.25; margin: 12px 0 8px; }
.bb-lead { color: #5d4d4a; line-height: 1.75; margin: 0 0 8px; max-width: 760px; }
.bb-hero .post-meta { margin-top: 10px; }
.bb-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.bb-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--text); }
.bb-jump a b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--butter); font-size: 12px; color: #6b4a00; }
.bb-jump a:hover { border-color: var(--pink); text-decoration: none; }
.bb-crit { padding-left: 18px; } .bb-crit small { color: var(--muted); }
.bb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .bb-table th, .bb-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.bb-table td:nth-child(2), .bb-table th:nth-child(2) { text-align: left; }
.bb-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 16px; }
.bb-item { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 20px 18px; border-radius: 22px; background: var(--panel); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); scroll-margin-top: 80px; }
.bb-item:nth-child(1) { border-color: #f6a5bf; } .bb-item:nth-child(2), .bb-item:nth-child(3) { border-color: #ffd27a; }
.bb-rank { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 18px; background: var(--butter); color: #6b4a00; }
.bb-item:nth-child(1) .bb-rank { background: var(--pink); color: #fff; }
.bb-rank b { font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1; } .bb-rank span { font-size: 11px; }
.bb-main h3 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 2px 0 8px; display: flex; gap: 8px; align-items: center; }
.post-body .bb-main h3 { margin-top: 2px; }
.bb-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bb-meta span { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); font-size: 12px; color: #5d4d4a; }
.bb-main > p { margin: 0 0 10px; line-height: 1.8; }
.bb-how { margin: 0 0 10px; padding-left: 20px; } .bb-how li { margin: 4px 0; line-height: 1.7; }
.bb-tip, .bb-safe { margin: 8px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.7; }
.bb-tip { background: #fff7e0; } .bb-safe { background: #ffecef; }
.bb-score { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bb-total { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--pink); white-space: nowrap; } .bb-total small { font-size: 14px; margin-left: 2px; }
.bb-score ul { list-style: none; padding: 0; margin: 0; flex: 1; display: grid; gap: 4px; }
.bb-score li { display: grid; grid-template-columns: 92px 1fr 16px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin: 0; }
.bb-score i { display: block; height: 7px; border-radius: 999px; background: linear-gradient(90deg, var(--mint) calc(var(--v) * 20%), var(--bg-2) 0); }
.bb-score li b { color: var(--text); }
@media (max-width: 560px) { .bb-item { grid-template-columns: 1fr; padding: 16px 14px; } .bb-rank { flex-direction: row; gap: 2px; width: auto; height: auto; padding: 4px 12px; justify-self: start; } .bb-rank b { font-size: 20px; } .bb-score { flex-direction: column; align-items: stretch; gap: 6px; } }
.bb-faq { margin: 28px 0; } .bb-faq h2 { font-family: var(--display); font-weight: 400; }
.bb-faq details { margin: 8px 0; padding: 12px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.bb-faq summary { cursor: pointer; font-weight: 700; } .bb-faq details p { margin: 8px 0 0; line-height: 1.75; }
.bb-sib { margin: 26px 0; } .bb-sib div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bb-sib a { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.bb-sib a:hover { border-color: var(--pink); text-decoration: none; }
.bb-hub .bb-lead { font-size: 15px; }
footer a { color: inherit; }
@media (max-width: 480px) {
  .nav .logo .brand-name { font-size: 15px; }
  .nav-links { gap: 0; } .nav-links a { font-size: 12px; padding: 4px 5px; }
}
@media (max-width: 360px) { .nav .logo .brand-name { display: none; } }
@media (max-width: 640px) { .nav-links > a:not(.lang-switch):not(:first-child) { display: inline-flex; } }
.nav-links a { white-space: nowrap; }
@media (max-width: 420px) { .nav .logo .brand-name { display: none; } .nav-links { margin-left: auto; } .nav-links a { font-size: 13px; padding: 5px 6px; } }
@media (max-width: 420px) {
  .nav .wrap { gap: 6px; }
  .nav-links { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 12px; padding: 4px 3px; }
}
.hero-art { max-width: 240px; justify-self: center; }
