/* 베이비데일리슈 — 파스텔톤, 휴대폰 화면 우선 */
:root {
  --bg: #fffaf4;
  --card: #ffffff;
  --text: #4a3e38;
  --sub: #8a7b72;
  --line: #f1e4d8;
  --coral: #e8867f;
  --pink: #fde3e1;
  --mint: #d9f0e7;
  --sky: #dcebf8;
  --butter: #fff2c6;
  --lavender: #ebe3f7;
  --peach: #ffe6d3;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* 머리 */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo b { display: block; font-size: 20px; letter-spacing: -0.5px; }
.logo-for { display: inline-block; white-space: nowrap; font-style: normal; font-size: 13px; font-weight: 700; color: var(--coral); letter-spacing: 0; }
.logo small { display: block; font-size: 12px; color: var(--sub); line-height: 1.2; }
.updated { font-size: 12px; color: var(--sub); background: var(--mint); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.nav { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-chip { flex: none; padding: 6px 14px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.nav-chip.on { background: var(--coral); border-color: var(--coral); color: #fff; font-weight: 700; }

/* 검색 */
.search-box { display: flex; gap: 6px; margin-top: 14px; }
.search-box input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--text); }
.search-box input:focus { outline: 2px solid var(--coral); border-color: transparent; }
.search-box button { flex: none; font: inherit; font-size: 15px; font-weight: 700; padding: 9px 16px; border: 0; border-radius: 99px; background: var(--coral); color: #fff; cursor: pointer; }

/* 앱 안 브라우저(카톡 등) 안내 */
.inapp { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 34px 10px 14px; background: var(--butter); border-radius: 14px; font-size: 14px; }
.inapp[hidden], .inapp-btn[hidden], .inapp-ios[hidden] { display: none; }
.inapp-btn { font-weight: 700; padding: 6px 14px; border-radius: 99px; background: var(--coral); color: #fff; }
.inapp-close { position: absolute; top: 6px; right: 6px; border: 0; background: none; color: var(--sub); font-size: 16px; cursor: pointer; }

/* 앱 설치 안내 */
.install { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.install[hidden] { display: none; }
.install img { flex: none; border-radius: 12px; }
.install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; }
.install-text b { font-size: 15px; }
.install-btn { font: inherit; font-size: 14px; font-weight: 700; padding: 6px 14px; border: 0; border-radius: 99px; background: var(--coral); color: #fff; cursor: pointer; }
.install-btn[hidden], .install-ios[hidden], .install-chrome-text[hidden] { display: none; }
.install-close { flex: none; align-self: flex-start; border: 0; background: none; color: var(--sub); font-size: 16px; cursor: pointer; padding: 2px 4px; }

/* 구역 */
.section { margin: 22px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 { font-size: 19px; margin: 0; }
.section-head a { font-size: 14px; color: var(--coral); }
.lead { margin: 0 0 12px; color: var(--sub); }
.empty { color: var(--sub); background: #fff; border-radius: var(--radius); padding: 16px; margin: 0; }
.notice { background: var(--peach); border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* 기사 카드 */
.cards { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h3 { font-size: 17px; margin: 6px 0; line-height: 1.45; }
.card h3 a:hover { text-decoration: underline; }
.summary { margin: 0 0 10px; font-size: 15px; color: #5d514a; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); }
.more { color: var(--coral); font-weight: 600; white-space: nowrap; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 99px; font-weight: 600; }
.tag-pregnancy { background: var(--pink); }
.tag-infant { background: var(--sky); }
.tag-toddler { background: var(--butter); }
.tag-daycare { background: var(--lavender); }
.tag-support { background: var(--mint); }
.tag-health { background: var(--peach); }
.tag-warn { background: #fff; border: 1px solid var(--coral); color: #c4615a; }

/* 주제·지역 버튼 */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.topic-btn { border-radius: var(--radius); padding: 14px 6px; text-align: center; font-weight: 600; font-size: 14px; }
.topic-btn span { display: block; font-size: 26px; line-height: 1.3; }
.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 16px; }
.region-btn { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 2px; text-align: center; font-size: 14px; }
.region-btn.on { background: var(--mint); border-color: #a9dcc8; font-weight: 700; }

/* 지원사업 목록 */
.support-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.support { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.support-name { font-weight: 700; }
.support-name:hover { text-decoration: underline; }
.support-meta { font-size: 14px; color: #5d514a; }
.support-meta a { color: var(--coral); }
.support-src { font-size: 12px; color: var(--sub); margin-top: 2px; }
.support-src a { text-decoration: underline; }
.dday { flex: none; min-width: 56px; text-align: center; font-weight: 800; font-size: 14px; padding: 6px 4px; border-radius: 10px; background: var(--sky); }
.dday.soon { background: var(--coral); color: #fff; }
.dday.always { background: var(--mint); font-weight: 600; }
.dday.over { background: #eee; color: #999; }
.dday.other { background: var(--lavender); font-weight: 600; font-size: 13px; }

/* 광고 */
.ad { position: relative; display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(120deg, var(--pink), var(--lavender)); }
.ad b { font-size: 16px; }
.ad p { margin: 0; font-size: 14px; }
.ad small { color: var(--sub); }
.ad-label { position: absolute; top: 8px; right: 10px; font-size: 11px; background: #fff; border-radius: 6px; padding: 0 6px; color: var(--sub); }

/* 달력 */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cal-h { text-align: center; font-size: 12px; color: var(--sub); }
.cal-h:first-child { color: #d0736b; }
.cal-d { position: relative; text-align: center; padding: 8px 0 14px; border-radius: 10px; font-size: 14px; }
.cal-d.today { outline: 2px solid var(--coral); }
.cal-d.has { background: var(--pink); font-weight: 700; }
.cal-d i { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); font-style: normal; font-size: 10px; background: var(--coral); color: #fff; border-radius: 99px; padding: 0 5px; line-height: 14px; }
.cal-help { font-size: 13px; color: var(--sub); }

/* 안내 글 */
.prose { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.prose a { color: var(--coral); text-decoration: underline; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; }
.prose ul { padding-left: 20px; }
.contact-mail { font-size: 18px; font-weight: 700; }

/* 바닥 */
.site-footer { margin-top: 40px; background: #fff; border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 13px; color: var(--sub); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.footer-links a { color: var(--text); }
.operator { margin: 4px 0; font-weight: 700; color: var(--text); }
.fine { margin: 6px 0 0; }

/* PC 화면 */
@media (min-width: 720px) {
  .topic-grid { grid-template-columns: repeat(6, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .card h3 { font-size: 16px; }
}
