/* 2416 BABY_MILESTONE — kit-lineart 변형 "따뜻한 종이 + 가는 선"
 * 평면·1px 헤어라인·단색 액센트(테라코타 1색)·그림자/그라디언트/블러 없음.
 * 라이트 기본, [data-theme="dark"] 토글. 모바일 퍼스트.
 */
:root {
  --bg: #F8F4EE;
  --surface: #FFFDFA;
  --sunk: #F1EBE3;
  --text: #2B2521;
  --text-2: #5F564F;
  --text-3: #8D837A;
  --line: #E3DAD0;
  --line-2: #CFC3B6;
  --accent: #A94F2B;
  --accent-ink: #FFFFFF;
  --accent-soft: #F3E4DA;
  --warn: #8A3B1C;
  --r: 10px;
  --r-s: 6px;
  --maxw: 880px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', 'AppleMyungjo', serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1A1714;
  --surface: #221E1A;
  --sunk: #2A2520;
  --text: #EEE7DF;
  --text-2: #BDB2A7;
  --text-3: #8F8479;
  --line: #3A332C;
  --line-2: #4E453C;
  --accent: #E0895F;
  --accent-ink: #1A1714;
  --accent-soft: #3A2A21;
  --warn: #F0A27C;
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── header ── */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; min-height: 58px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { font-family: var(--serif); font-size: 18px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 10px; font-size: 14.5px; color: var(--text-2); text-decoration: none; white-space: nowrap; border-radius: var(--r-s); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--sunk); }
.theme-btn { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; color: var(--text-2); }
.theme-btn svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; padding-top: 8px; gap: 4px 10px; }
  .nav { order: 3; width: 100%; margin: 0 -6px; padding-bottom: 4px; }
  .theme-btn { margin-left: auto; }
}

/* ── layout ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 20px 16px 48px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 40px; font-size: 13.5px; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-note { margin: 0 0 6px; }

/* ── tool ── */
.tool { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 0 0 10px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.muted { color: var(--text-3); font-size: 13.5px; }

.kids { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kid { border: 1px solid var(--line-2); background: transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.kid[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.kid.add { border-style: dashed; color: var(--text-2); }
.link-btn { border: 0; background: none; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px; font-size: 13.5px; }

.form { display: grid; gap: 12px; margin-top: 12px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 5px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.field input, .field select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--accent); }
.ga { display: flex; gap: 8px; align-items: center; }
.ga select { width: auto; min-width: 88px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { min-height: 42px; padding: 8px 16px; border-radius: var(--r-s); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); font-weight: 600; }
.btn.danger { background: transparent; color: var(--warn); border-color: var(--line-2); font-weight: 600; margin-left: auto; }
.form-err { color: var(--warn); font-size: 13.5px; margin: 0; }

.age-head { display: grid; gap: 4px; }
.age-big { font-family: var(--serif); font-size: clamp(26px, 6vw, 34px); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.age-big b { color: var(--accent); font-weight: 700; }
.age-sub { color: var(--text-2); font-size: 14px; margin: 0; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 8px; scrollbar-width: thin; }
.tab { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-s); padding: 7px 11px; font-size: 14px; cursor: pointer; color: var(--text-2); position: relative; }
.tab[aria-selected="true"] { border-color: var(--text); color: var(--text); font-weight: 700; }
.tab .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }

.progress { display: grid; gap: 6px; }
.bar { height: 6px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .25s; }
.prog-t { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-2); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip { border: 1px solid var(--line); background: transparent; padding: 5px 11px; border-radius: 999px; font-size: 13.5px; cursor: pointer; color: var(--text-2); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; }

.dom { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.dom:first-of-type { border-top: 0; margin-top: 4px; padding-top: 4px; }
.dom-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; }
.dom-h h3 { margin: 0; font-size: 15px; }
.dom-h span { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { border-bottom: 1px dashed var(--line); }
.items li:last-child { border-bottom: 0; }
.items label { display: flex; gap: 11px; align-items: flex-start; padding: 9px 2px; cursor: pointer; font-size: 15px; }
.items input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.items input:checked + span { color: var(--text-3); }
.empty-dom { font-size: 13.5px; color: var(--text-3); margin: 0; }

details.box { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
details.box > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: '+'; color: var(--text-3); font-weight: 400; }
details.box[open] > summary::after { content: '−'; }
details.box > .box-b { padding: 0 16px 14px; }
details.box.flags { border-left: 3px solid var(--warn); }
.flag-list { margin: 0; padding-left: 20px; }
.flag-list li { margin: 4px 0; }
.preview-list { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14.5px; }
.preview-list li { margin: 3px 0; }
.preview-list .pd { color: var(--text-3); font-size: 12.5px; margin-right: 6px; }

.ck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ck { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.ck:last-child { border-bottom: 0; }
.ck b { font-variant-numeric: tabular-nums; }
.ck .st { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.ck.now .st { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.ck.past { color: var(--text-3); }
.ck .dt { display: block; color: var(--text-3); font-size: 13px; }

.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.disclaimer { font-size: 12.5px; color: var(--text-3); margin: 2px 0 0; }
.welcome p { margin: 0 0 6px; }

/* ── content pages ── */
.crumb { font-size: 13px; color: var(--text-3); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a::after { content: '/'; margin-left: 6px; color: var(--line-2); }
.page-head { margin: 4px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 12.5px; letter-spacing: .06em; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(26px, 5.4vw, 36px); line-height: 1.3; margin: 0 0 8px; letter-spacing: -.015em; }
.page-head .lead { color: var(--text-2); margin: 0; font-size: 16.5px; }
.prose { font-size: 16.5px; line-height: 1.8; }
.prose h2 { font-family: var(--serif); font-size: 23px; line-height: 1.4; margin: 40px 0 12px; padding-top: 6px; }
.prose h3 { font-size: 17.5px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 5px 0; }
.prose .callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; margin: 18px 0; border-radius: 0 var(--r-s) var(--r-s) 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r-s); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.55; min-width: 460px; }
.prose th, .prose td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sunk); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.ms-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 18px; }
@media (min-width: 640px) { .ms-grid { grid-template-columns: 1fr 1fr; } }
.ms-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
.ms-card h3 { margin: 0 0 6px; font-size: 16px; }
.ms-card ul { margin: 0; padding-left: 20px; font-size: 15.5px; }
.ms-card .none { color: var(--text-3); font-size: 14px; margin: 0; }
.flag-box { border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 0 var(--r) var(--r) 0; padding: 14px 18px; background: var(--surface); margin: 0 0 18px; }
.flag-box ul { margin: 0; padding-left: 20px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 32px 0 8px; }
.pager a { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; color: var(--text); background: var(--surface); }
.pager a small { display: block; color: var(--text-3); font-size: 12.5px; }
.pager a.next { text-align: right; grid-column: 2; }
.hub { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hub { grid-template-columns: 1fr 1fr; } }
.hub a { display: block; height: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--text); background: var(--surface); }
.hub a:hover { border-color: var(--line-2); }
.hub b { display: block; font-size: 16.5px; margin-bottom: 3px; }
.hub span { color: var(--text-2); font-size: 14px; line-height: 1.55; display: block; }
.src-note { font-size: 13.5px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.cta { display: inline-block; margin: 6px 0 14px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.prose a.btn { color: var(--accent-ink); }
.contact-box { font-size: 18px; font-weight: 700; }

/* ── ads (§4-1 래퍼 외형 변형 금지: radius·overflow 없음) ── */
.ad-wrap { margin: 22px 0 6px; }
.ad-grid { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 672px; margin-left: auto; margin-right: auto; }
.ad-grid[data-ad-layout="mixed"] { max-width: 760px; }
.ad-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.ad-cell { min-height: 50px; }
.ad-row.ad-mo { display: none; }
.ad-row.ad-pc, .ad-row.ad-any { display: flex; }
@media (max-width: 719.98px) { .ad-row.ad-pc { display: none; } .ad-row.ad-mo { display: flex; } }

/* ── print ── */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  :root, :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --text: #000; --text-2: #222; --text-3: #555; --line: #bbb; --accent: #000; }
  body { font-size: 12pt; background: #fff; }
  .site-header, .site-footer, .ad-wrap, .no-print, .tabs, .filters, .kids, .form, .tool-actions, details.box.preview, .card.checkups { display: none !important; }
  .print-only { display: block; margin-bottom: 8px; }
  .age-head { display: none !important; }
  .items input { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border: 1.5px solid #000; border-radius: 2px; background: #fff; }
  .items input:checked { background: #000; box-shadow: inset 0 0 0 2px #fff; }
  .items input:checked + span { color: #000; }
  .card { border: 0; padding: 0; }
  .dom { break-inside: avoid; }
  .items label { padding: 5px 0; }
  details.box { border: 1px solid #999; }
  details.box > .box-b { display: block !important; }
  details.box > summary::after { content: ''; }
  .wrap { padding: 0; max-width: none; }
}
