/* eorin.manuz.com — 파스텔·둥근 모양. 크림 바탕 + 복숭아·민트·버터·라벤더 카드, 제목은 둥근 글꼴(Jua), 숫자는 말풍선 타일.
   라이트 전용(자동 다크모드 없음). 모바일 우선 390px, 터치 44px. */
:root {
  --bg: #fff8ee;
  --paper: #ffffff;
  --ink: #3b3150;          /* 짙은 자두색 글자 */
  --ink-2: #6a5f80;
  --muted: #9a90ad;
  --line: #f0e4d6;
  --peach: #ffe3d6; --peach-2: #ffcbb6;
  --mint: #dcf3e8;  --mint-2: #b5e6cf;
  --butter: #fff1c2; --butter-2: #ffe08a;
  --lilac: #ece6ff; --lilac-2: #d3c7ff;
  --sky: #e1f0ff;
  --coral: #ef6f53;        /* 버튼·강조 */
  --coral-2: #d9563a;
  --plum: #544170;
  --round: 'Jua', 'Pretendard', sans-serif;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --wrap: 920px;
  --r: 22px;
  --shadow: 0 6px 0 rgba(84, 65, 112, .06), 0 1px 3px rgba(84, 65, 112, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink);
  background: var(--bg) radial-gradient(circle at 8% 0, #ffe9dc 0, transparent 280px) no-repeat;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: var(--plum); text-decoration: underline; text-decoration-color: var(--peach-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--round); font-weight: 400; line-height: 1.3; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 0 0 .7em; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 99px; z-index: 9; }
.skip:focus { left: 8px; }
.small { font-size: .88rem; color: var(--ink-2); }

/* 헤더: 둥근 알약 메뉴 */
.mast { padding: 14px 0 6px; }
.mast-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.wordmark { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 44px; }
.wm-icon { width: 38px; height: 38px; }
.wm-text { font-family: var(--round); font-size: 1.3rem; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--paper); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem; box-shadow: var(--shadow); }
.nav a[aria-current="page"] { background: var(--plum); color: #fff; }

.main { flex: 1; padding-top: 6px; padding-bottom: 40px; }

/* 브레드크럼 */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 6px 0 0; font-size: .86rem; color: var(--ink-2); }
.crumbs li + li::before { content: '›'; margin-right: 4px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--ink-2); display: inline-block; padding: 8px 0; }

/* 첫 화면 */
.hero { padding: 14px 0 6px; }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 99px; background: var(--mint); color: #2e6b52; font-size: .82rem; font-weight: 600; }
.h1 { font-size: clamp(1.75rem, 6.5vw, 2.5rem); margin: 0 0 .35em; }
.h1-sub { display: block; font-family: var(--font); font-size: 1rem; color: var(--ink-2); font-weight: 500; margin-top: 6px; letter-spacing: 0; }
.lead { font-size: 1.04rem; margin: .4em 0 1em; }
.hl { font-family: var(--round); font-weight: 400; font-size: 1.25em; background: linear-gradient(transparent 55%, var(--butter-2) 55%); padding: 0 3px; border-radius: 4px; }
.scope { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 16px; background: var(--paper); border: 2px dashed var(--peach-2); font-size: .92rem; }

/* 숫자 말풍선 타일 */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 18px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; margin: 0; padding: 14px 14px 12px; border-radius: var(--r) var(--r) var(--r) 8px; box-shadow: var(--shadow); }
.tile dt { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.tile dd { margin: 2px 0 2px; font-size: .95rem; }
.tile p { margin: 0; font-size: .8rem; color: var(--ink-2); line-height: 1.45; }
.big { font-family: var(--round); font-weight: 400; font-size: 2.1rem; line-height: 1.1; color: var(--plum); margin-right: 2px; font-variant-numeric: tabular-nums; }
.small-big { font-size: 1.45rem; }
.tile--peach { background: var(--peach); }
.tile--mint { background: var(--mint); }
.tile--butter { background: var(--butter); }
.tile--lilac { background: var(--lilac); }

/* 카드 */
.card { background: var(--paper); border-radius: 28px; padding: 20px 18px; margin: 16px 0; box-shadow: var(--shadow); }
.prose ul { padding-left: 1.2em; margin: .4em 0 1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--coral); }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 14px 16px; border-radius: 20px; background: var(--sky); font-size: .95rem; }
.notice-dot { flex: none; width: 12px; height: 12px; margin-top: .45em; border-radius: 50%; background: #5aa3e8; box-shadow: 0 0 0 4px #c6e1fb; }

/* 해설 — 말풍선 */
.notes { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; gap: 10px; }
.notes li { position: relative; padding: 13px 16px 13px 44px; border-radius: 20px 20px 20px 6px; background: var(--paper); box-shadow: var(--shadow); }
.notes li::before { content: ''; position: absolute; left: 15px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--peach-2); }
.notes li:nth-child(2n)::before { background: var(--mint-2); }
.notes li:nth-child(3n)::before { background: var(--lilac-2); }

/* 칩 */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--lilac); color: var(--ink); text-decoration: none; font-weight: 600; }
.chips a:hover { background: var(--lilac-2); }
.chips span { font-weight: 500; font-size: .82rem; color: var(--ink-2); }
.chips li:nth-child(4n+2) a { background: var(--mint); }
.chips li:nth-child(4n+3) a { background: var(--peach); }
.chips li:nth-child(4n) a { background: var(--butter); }

/* 버튼 */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 99px; background: var(--coral); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 4px 0 var(--coral-2); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-2); }
.btn--ghost { background: var(--paper); color: var(--plum); box-shadow: inset 0 0 0 2px var(--lilac-2); }

/* 표: 둥근 상자 + 가로 스크롤 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 2px solid var(--line); }
table.soft { width: 100%; border-collapse: collapse; font-size: .92rem; white-space: nowrap; }
.soft th, .soft td { padding: 11px 12px; text-align: right; }
.soft th:first-child { text-align: left; }
.soft thead th { background: var(--butter); font-weight: 700; font-size: .84rem; color: var(--ink-2); }
.soft tbody tr:nth-child(2n) { background: #fffbf4; }
.soft tbody th a { display: inline-block; padding: 4px 0; }

/* 유치원 카드 목록 */
.sortbar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.sortbar label { font-weight: 600; font-size: .9rem; }
.sortbar select { min-height: 44px; max-width: 100%; padding: 0 14px; border-radius: 99px; border: 2px solid var(--lilac-2); background: var(--paper); font: inherit; color: var(--ink); }
.kcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .kcards { grid-template-columns: 1fr 1fr; } }
.kcard { padding: 14px 16px; border-radius: 22px; background: #fffdf9; border: 2px solid var(--line); }
.kcard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.kcard-name { font-weight: 700; font-size: 1.02rem; color: var(--ink); text-decoration: none; padding: 6px 0; }
.kcard-name:hover { color: var(--coral-2); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; }
.badge--pub { background: var(--mint); color: #2e6b52; }
.badge--pri { background: var(--peach); color: #9a4630; }
.kcard-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kcard-facts li { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 12px; background: var(--bg); font-size: .84rem; }
.kcard-facts span { color: var(--ink-2); }
.fill { font-style: normal; font-weight: 700; color: var(--ink-2); }
.fill--full { color: #b0482f; }
.fill--room { color: #2e7d5b; }

/* 사실 목록(기관 페이지) */
.facts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.facts li { padding: 10px 12px; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; }
.facts span { font-size: .8rem; color: var(--ink-2); }
.facts b { font-weight: 700; }
.links { padding-left: 1.1em; margin: 10px 0 0; }
.links li { margin: 6px 0; }
.links a { padding: 8px 0; line-height: 2; }
.related h2 { font-size: 1.15rem; }

/* 계산기 */
.calc fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.calc legend, .calc .field > label { display: block; font-weight: 700; margin-bottom: 8px; }
.field { margin: 0 0 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--bg); border: 2px solid var(--line); cursor: pointer; font-weight: 600; }
.seg label:has(input:checked) { background: var(--plum); border-color: var(--plum); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }
.seg label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.seg--age label { min-width: 56px; justify-content: center; }
.unit-wrap { display: flex; align-items: center; max-width: 320px; border-radius: 16px; border: 2px solid var(--lilac-2); background: var(--paper); overflow: hidden; }
.unit-wrap input { flex: 1; min-width: 0; min-height: 48px; border: 0; padding: 0 14px; font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; }
.unit-wrap input:focus { outline: none; }
.unit-wrap:focus-within { border-color: var(--coral); }
.unit { padding: 0 14px; color: var(--ink-2); }
.help { margin: 6px 0 0; font-size: .85rem; color: var(--ink-2); }
.result { background: var(--mint); }
.result:empty { display: none; }
.res-main { font-family: var(--round); font-size: 1.15rem; margin: 0 0 8px; }
.res-main .big { font-size: 2.4rem; }
.res-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.res-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); font-size: .93rem; }
.res-lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-note { margin: 10px 0 0; font-size: .88rem; }

/* 공용 조각(common/pub-*) */
.ad { margin: 18px 0; border-radius: 22px; overflow: hidden; }
.faq { margin: 16px 0; }
.faq h2 { margin-bottom: .5em; }
.faq details { background: var(--paper); border-radius: 20px; margin: 0 0 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 14px 18px; min-height: 44px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; display: inline-block; width: 1.3em; color: var(--coral); font-family: var(--round); }
.faq details[open] summary::before { content: '−'; }
.faq-a { padding: 0 18px 14px; color: var(--ink-2); }
.src-block { margin: 24px 0 0; padding: 18px; border-radius: 24px; background: #fdf3e6; font-size: .9rem; }
.src-block h2 { font-size: 1.05rem; }
.src { padding-left: 1.1em; margin: 0 0 8px; }
.src a { padding: 6px 0; line-height: 1.9; }
.changelog { list-style: none; padding: 0; }
.changelog li { padding: 8px 0; border-bottom: 2px dotted var(--line); }
.changelog time { display: inline-block; margin-right: 8px; padding: 1px 10px; border-radius: 99px; background: var(--butter); font-size: .82rem; font-weight: 700; }

/* 바닥 */
.foot { background: var(--plum); color: #efe9fb; border-radius: 32px 32px 0 0; margin-top: 20px; }
.foot-in { padding-top: 26px; padding-bottom: 30px; }
.foot-brand { font-family: var(--round); font-size: 1.25rem; margin: 0 0 8px; }
.foot-note { font-size: .84rem; opacity: .85; margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0; }
.foot-links a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); display: inline-block; padding: 8px 0; font-size: .9rem; }
.foot-copy { font-size: .8rem; opacity: .7; margin: 0; }
