/* 아이 육아 정보 사이트 공통 스타일 — 휴대폰 우선, 사이드바 없는 1단 구조 */
:root {
  --brand: #0e9f87;
  --brand-dark: #087a68;
  --brand-soft: #e6f6f2;
  --accent: #ff8a5b;
  --accent-soft: #fff1ea;
  --ink: #1d2433;
  --ink-2: #4a5468;
  --muted: #7a8396;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --radius: 14px;
  --wrap: 1080px;
  --narrow: 760px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: -0.02em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 16px; }
.sr-only { 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(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* 머리 영역 */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; flex: 1 1 auto; }
.brand img { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 19px; letter-spacing: -0.03em; }
.brand-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { display: flex; flex: 1 1 260px; max-width: 420px; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg-soft); }
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.search button { border: 0; background: transparent; color: var(--ink-2); padding: 0 14px; cursor: pointer; }

.cat-nav { border-top: 1px solid var(--line); }
.cat-row { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-row a { flex: none; padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.cat-row a:hover { background: var(--bg-soft); }
.cat-row a[aria-current="page"] { background: var(--ink); color: #fff; }

/* 첫 화면 */
.hero { background: linear-gradient(180deg, var(--brand-soft), #fff); padding: 36px 0 28px; }
.eyebrow { margin: 0 0 6px; color: var(--brand-dark); font-weight: 700; font-size: 14px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(26px, 6vw, 38px); }
.hero-sub { margin: 0; color: var(--ink-2); max-width: 640px; }
.quick { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.quick a { display: block; height: 100%; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 30, 50, .04); }
.quick a:hover { border-color: var(--brand); }
.quick strong { display: block; font-size: 16px; }
.quick span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.section-title { font-size: 20px; margin: 0 0 14px; }
.trust { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.trust h2 { margin: 0 0 10px; font-size: 18px; }
.trust ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.trust li { margin: 6px 0; }
.trust strong { color: var(--ink); margin-right: 4px; }

/* 글 목록 */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-card { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--brand); }
.post-card img { width: 104px; height: 78px; object-fit: cover; border-radius: 10px; flex: none; }
.post-card h3 { margin: 2px 0 4px; font-size: 17px; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.post-cat { font-size: 12px; font-weight: 700; color: var(--brand-dark); }

/* 페이지 공통 */
.page-title { margin: 0 0 6px; font-size: 26px; }
.page-desc { margin: 0 0 18px; color: var(--muted); }
.crumbs { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* 글 본문 */
.article { padding-top: 24px; padding-bottom: 40px; }
.article h1 { font-size: clamp(24px, 5.6vw, 32px); margin: 0 0 8px; }
.subtitle { margin: 0 0 12px; font-size: 17px; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.meta a { color: var(--ink-2); }
.summary-box { background: var(--brand-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 22px; }
.summary-box p { margin: 4px 0; }
.summary-box strong { color: var(--brand-dark); margin-right: 6px; }
.content { font-size: 17px; }
.content h2 { font-size: 22px; margin: 40px 0 12px; padding-top: 4px; scroll-margin-top: 120px; }
.content h3 { font-size: 19px; margin: 28px 0 10px; }
.content p { margin: 0 0 16px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 16px; }
.content li { margin: 4px 0; }
.content blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.content blockquote p { margin: 0; }
.content figure { margin: 0 0 20px; }
.content figure img { border-radius: 12px; display: block; }
.content figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.credit { margin-left: 4px; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 18px; margin: 8px 0 24px; }
.toc-title { margin: 0 0 4px !important; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; }
.note { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; }
.note p { margin: 0; }
.note .note-title { font-weight: 700; margin-bottom: 4px; }
.note-info { background: var(--brand-soft); }
.note-warn { background: var(--accent-soft); }
.faq { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--bg-soft); }
tbody th { width: 32%; color: var(--ink-2); font-weight: 600; background: var(--bg-soft); }

/* 버튼 */
.cta-group { margin: 8px 0 20px; }
.cta { display: block; width: 100%; padding: 16px 18px; margin: 0 0 10px; border-radius: 12px; background: var(--brand); color: #fff !important; font-weight: 800; text-align: center; text-decoration: none; }
.cta:hover { background: var(--brand-dark); }
.notfound .cta { display: inline-block; width: auto; }

/* 글 끝 */
.sources, .related { margin-top: 32px; }
.sources h2, .related h2 { font-size: 18px; margin: 0 0 8px; }
.sources ul, .related ul { margin: 0; padding-left: 20px; }
.sources li, .related li { margin: 6px 0; }
.author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 32px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.author-box p { margin: 0; font-size: 14px; color: var(--ink-2); }
.author-name { font-weight: 700; color: var(--ink) !important; margin-bottom: 4px !important; }
.author-name span { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }

/* 기본 페이지 */
.static-page .content { font-size: 16px; }
.contact-card { border: 1.5px solid var(--brand); border-radius: var(--radius); padding: 18px; margin: 8px 0 24px; text-align: center; }
.contact-card p { margin: 2px 0; }
.contact-label { font-size: 13px; color: var(--muted); }
.contact-email { font-size: 20px; font-weight: 800; }
.contact-who { font-size: 14px; color: var(--ink-2); }

/* 광고: "광고" 표시와 충분한 간격으로 본문·버튼과 구분 */
.ad-box { margin: 32px 0; padding-top: 4px; text-align: center; min-height: 100px; }
.ad-label { margin: 0 0 4px; font-size: 11px; color: var(--muted); letter-spacing: .05em; }
@media (max-width: 767px) { .only-pc { display: none; } }
@media (min-width: 768px) { .only-mobile { display: none; } }

/* 운영자 모드: 이 기기에서는 광고를 숨긴다 */
.owner-badge { display: none; }
.is-owner .ad-box, .is-owner ins.adsbygoogle, .is-owner .google-auto-placed { display: none !important; }
.is-owner .owner-badge { display: block; position: fixed; left: 12px; bottom: 12px; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; opacity: .85; z-index: 20; }

/* 바닥 영역 */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 28px 0 40px; margin-top: 24px; font-size: 14px; color: var(--ink-2); }
.footer-brand { margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-info { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.footer-copy { margin: 0; font-size: 12px; color: var(--muted); }

@media (min-width: 768px) {
  /* 휴대폰에서는 머리 영역이 화면을 너무 가려서 PC에서만 위에 고정한다 */
  .site-header { position: sticky; top: 0; z-index: 5; }
  .section { padding: 36px 16px; }
  .hero { padding: 52px 0 40px; }
  .post-list { grid-template-columns: 1fr 1fr; }
  .post-card img { width: 120px; height: 90px; }
}

/* 혜택 조회 */
.bf-form { background: var(--bg-soft); border-radius: var(--radius); padding: 16px; margin: 4px 0 16px; display: grid; gap: 14px; }
.bf-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
.bf-field { display: grid; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.bf-field select, .bf-field input { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.bf-field select:focus, .bf-field input:focus { outline: none; border-color: var(--brand); }
.bf-stages { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bf-stages legend { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.bf-stages label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; }
.bf-stages label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.bf-stages input { accent-color: var(--brand); }
.bf-toggles { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.bf-toggles input { accent-color: var(--brand); }
.bf-status { font-weight: 700; margin: 0 0 12px; }
.bf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bf-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.bf-head h3 { margin: 0 0 6px; font-size: 17px; }
.bf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.b { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.b-nation { background: #eef3ff; color: #2849a8; }
.b-sido { background: var(--accent-soft); color: #b5502a; }
.b-sgg { background: var(--brand-soft); color: var(--brand-dark); }
.b-online { background: #f1ecff; color: #5b3cc4; }
.bf-sum { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.bf-more-detail summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--brand-dark); }
.bf-dl { margin: 10px 0 0; display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; font-size: 14px; }
.bf-dl dt { font-weight: 700; color: var(--ink-2); }
.bf-dl dd { margin: 0; white-space: pre-line; }
.bf-nodetail { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.bf-links { margin: 8px 0 0; font-size: 14px; }
.bf-cut { color: var(--muted); font-size: 14px; padding: 8px 4px; }
.bf-guide, .bf-regions { margin-top: 36px; }
.bf-guide h2, .bf-regions h2, .bf-group h2 { font-size: 20px; margin: 0 0 10px; }
.bf-guide ul { padding-left: 20px; color: var(--ink-2); }
.bf-guide li { margin: 6px 0; }
.bf-guide strong { color: var(--ink); margin-right: 4px; }
.bf-group { margin-top: 32px; }
.bf-more { margin: -4px 0 10px; font-size: 14px; }
.sgg-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: 14px; }
.region-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.region-grid a { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); text-align: center; }
.region-grid a:hover { border-color: var(--brand); }
.region-grid strong { display: block; font-size: 16px; }
.region-grid span { font-size: 12px; color: var(--muted); }
@media (min-width: 768px) { .bf-row { grid-template-columns: 1fr 1fr; } .bf-grow { grid-column: 1 / -1; } }

/* 아이를 위한 / 엄마를 위한 */
.hero-cta { margin: 18px 0 0; }
.hero-cta .cta { display: inline-block; width: auto; padding: 14px 22px; }
.hub-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.hub-card { display: block; padding: 20px; border-radius: 18px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.hub-card.hub-kids { background: linear-gradient(135deg, #e6f6f2, #f4fbf9); }
.hub-card.hub-mom { background: linear-gradient(135deg, #fff1ea, #fff8f4); }
.hub-card:hover { border-color: var(--brand); }
.hub-emoji { font-size: 30px; display: block; }
.hub-card strong { display: block; font-size: 21px; margin: 4px 0 2px; }
.hub-desc { display: block; color: var(--ink-2); font-size: 14px; }
.hub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hub-tags em { font-style: normal; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.8); border-radius: 999px; padding: 3px 9px; color: var(--ink-2); }
.hub-hero { padding: 28px 0 20px; }
.hub-hero.hub-kids { background: linear-gradient(180deg, var(--brand-soft), #fff); }
.hub-hero.hub-mom { background: linear-gradient(180deg, var(--accent-soft), #fff); }
.hub-hero h1 { margin: 4px 0 8px; font-size: clamp(26px, 6vw, 34px); }
.hub-block { margin-bottom: 32px; }
.hub-block h2 { font-size: 20px; margin: 0 0 12px; }
.topic-list { padding-left: 20px; color: var(--ink-2); }
.topic-list strong { color: var(--ink); margin-right: 4px; }

/* 계산기 모음 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.chip:hover { border-color: var(--brand); }
.tool-section { margin-top: 28px; scroll-margin-top: 120px; }
.tool-section > h2 { font-size: 22px; margin: 0 0 6px; }
.tool-cat { font-size: 15px; color: var(--muted); margin: 16px 0 8px; }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tool-grid a { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; background: #fff; }
.tool-grid a:hover { border-color: var(--brand); }
.tool-emoji { grid-row: 1 / 3; font-size: 26px; line-height: 40px; text-align: center; background: var(--bg-soft); border-radius: 12px; height: 40px; }
.tool-grid strong { font-size: 16px; }
.tool-grid small { color: var(--muted); font-size: 13px; }

/* 계산기 화면 */
.calc { border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 0 0 28px; box-shadow: 0 2px 10px rgba(20, 30, 50, .05); }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.calc-row label { font-weight: 700; font-size: 15px; }
.calc-row label small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.calc-in { display: flex; align-items: center; gap: 6px; }
.calc-in input, .calc-in select { font: inherit; font-size: 16px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; width: 170px; text-align: right; background: #fff; color: var(--ink); }
.calc-in select { text-align: left; }
.calc-in input[type=date] { text-align: left; }
.calc-in input:focus, .calc-in select:focus { outline: none; border-color: var(--brand); }
.calc-in span { color: var(--muted); font-size: 14px; min-width: 18px; }
.calc-sub { margin: 14px 0 6px; font-weight: 700; font-size: 15px; }
.calc-item { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.calc-item input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; min-width: 0; }
.calc-item input[type=text] { flex: 1.2; }
.calc-item input[type=number] { flex: 1; text-align: right; }
.calc-item button { border: 0; background: var(--bg-soft); border-radius: 8px; width: 32px; height: 32px; font-size: 18px; cursor: pointer; color: var(--ink-2); }
.calc-add { margin: 4px 0 0; border: 1.5px dashed var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--brand-dark); cursor: pointer; }
.calc-result { margin: 18px 0 12px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), #13b89b); color: #fff; text-align: center; }
.calc-result p { margin: 0; }
.calc-result .cap { font-size: 14px; opacity: .9; }
.calc-result .big { font-size: clamp(26px, 7vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 2px 0; }
.calc-result .extra { font-size: 15px; }
.calc-result .badge { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 13px; }
.calc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-cards div { background: var(--bg-soft); border-radius: 12px; padding: 10px; text-align: center; }
.calc-cards span { display: block; font-size: 12px; color: var(--muted); }
.calc-cards b { font-size: 15px; }
.anniv tr.soon td { background: var(--accent-soft); font-weight: 700; }
@media (max-width: 520px) {
  .calc-row { flex-direction: column; align-items: stretch; }
  .calc-in input, .calc-in select { width: 100%; }
  .calc-cards { grid-template-columns: 1fr; }
}
@media (min-width: 768px) { .hub-cards { grid-template-columns: 1fr 1fr; } }

/* 머리 영역: 로고 + 색깔 메뉴 버튼 (원비히어식) */
.header-row { flex-wrap: wrap; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { flex: none; }
.brand strong { font-size: 20px; letter-spacing: -0.03em; }
.pill-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px 0; }
.pill-nav::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 7px 13px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pill:hover { filter: brightness(1.06); }
.pill[aria-current="page"] { outline: 3px solid rgba(0,0,0,.18); outline-offset: 1px; }
.p-blue { background: #2f6fec; } .p-green { background: #12a383; } .p-orange { background: #f07a3f; }
.p-purple { background: #7b4fe0; } .p-pink { background: #e5487f; } .p-teal { background: #0f9fb5; }
.p-gray { background: #eef1f5; color: var(--ink); box-shadow: none; }
@media (max-width: 640px) { .header-row { gap: 8px; } .pill-nav { width: 100%; } }

/* 첫 화면 */
.home { padding-top: 16px; padding-bottom: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 2px 10px rgba(20,30,50,.04); }
.home-hero h1 { margin: 0 0 8px; font-size: clamp(22px, 5vw, 28px); }
.home-intro { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.home-intro strong { color: var(--ink); }
.banner { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1200 / 520; background: #cdeee6; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-text { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 6%; color: var(--ink); }
.banner-text strong { font-size: clamp(18px, 4.6vw, 40px); line-height: 1.25; letter-spacing: -0.03em; }
.banner-text small { margin-top: 8px; font-size: clamp(11px, 2vw, 15px); color: var(--ink-2); }
.home-search { display: flex; margin: 16px 0 12px; border: 2px solid #2f6fec; border-radius: 14px; overflow: hidden; background: #fff; }
.home-search input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: inherit; font-size: 16px; outline: none; color: var(--ink); }
.home-search button { border: 0; background: #2f6fec; color: #fff; padding: 0 18px; cursor: pointer; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.mini-chips a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(20,30,50,.04); }
.mini-chips a:hover { border-color: var(--brand); }
.home-sec { margin-top: 30px; }
.home-sec > h2 { font-size: 19px; margin: 0 0 12px; }
.region-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.region-tiles a { display: block; padding: 14px; border-radius: 12px; text-decoration: none; color: var(--ink); border: 1px solid transparent; height: 100%; }
.region-tiles a:hover { border-color: rgba(0,0,0,.15); }
.region-tiles strong { display: block; font-size: 16px; }
.region-tiles span { font-size: 12px; color: var(--ink-2); }
.region-tiles .t0 a { background: #eaf0ff; } .region-tiles .t1 a { background: #e6f7ef; } .region-tiles .t2 a { background: #f1ecff; }
.region-tiles .t3 a { background: #fff2e8; } .region-tiles .t4 a { background: #ffecf1; }
.home-text h2 { font-size: 18px; margin: 26px 0 8px; }
.home-text h2:first-child { margin-top: 0; }
.home-text p { color: var(--ink-2); margin: 0 0 10px; }
.home-text strong { color: var(--ink); }
@media (min-width: 640px) { .region-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .region-tiles { grid-template-columns: repeat(5, 1fr); } }

/* 갈래별 파스텔 색: 아이를 위한 = 따뜻한 색, 엄마를 위한 = 연두·초록 */
.hub-hero.hub-kids { background: linear-gradient(180deg, #ffe9dc, #fff8f2 70%, #fff); }
.hub-hero.hub-mom { background: linear-gradient(180deg, #e3f5e3, #f4fbef 70%, #fff); }
.hub-card.hub-kids { background: linear-gradient(135deg, #ffe7d9, #fff6ee); border-color: #ffd6bf; }
.hub-card.hub-mom { background: linear-gradient(135deg, #def3dc, #f3fbec); border-color: #c5e6bf; }
.hub-card.hub-kids:hover { border-color: #f4a77f; }
.hub-card.hub-mom:hover { border-color: #7cc48a; }

.hub-body .quick a { border-width: 1.5px; transition: transform .12s ease, box-shadow .12s ease; }
.hub-body .quick a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 30, 50, .08); }
.hub-body .quick span { color: var(--ink-2); }
.hub-body .hub-block h2::before { display: inline-block; width: 6px; height: 18px; border-radius: 3px; margin-right: 8px; vertical-align: -2px; content: ""; }

/* 아이를 위한: 복숭아 · 살구 · 분홍 · 노랑 */
.hub-kids .hub-block h2::before { background: #f4a77f; }
.hub-kids .quick li:nth-child(4n+1) a { background: #fff0e6; border-color: #ffd5bd; }
.hub-kids .quick li:nth-child(4n+2) a { background: #fff6dc; border-color: #ffe3a1; }
.hub-kids .quick li:nth-child(4n+3) a { background: #ffedf2; border-color: #ffc9d7; }
.hub-kids .quick li:nth-child(4n+4) a { background: #ffece6; border-color: #ffc6b5; }
.hub-kids .quick a:hover { border-color: #f4a77f; }

/* 엄마를 위한: 민트 · 연두 · 세이지 · 초록 */
.hub-mom .hub-block h2::before { background: #6cc184; }
.hub-mom .quick li:nth-child(4n+1) a { background: #e6f7ec; border-color: #b9e5c7; }
.hub-mom .quick li:nth-child(4n+2) a { background: #f1f9e1; border-color: #d4ecaa; }
.hub-mom .quick li:nth-child(4n+3) a { background: #eaf4ea; border-color: #c4e0c4; }
.hub-mom .quick li:nth-child(4n+4) a { background: #e2f4ee; border-color: #b2e0d1; }
.hub-mom .quick a:hover { border-color: #6cc184; }

/* 첫 화면: 엄마가 아이를 위해 해야 할 것들 */
.home-eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: #d9703f; }
.home-hero h1 { line-height: 1.3; }
.todo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.todo-steps li { position: relative; padding: 16px 16px 14px 60px; border-radius: 16px; border: 1.5px solid; counter-increment: step; }
.todo-steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.todo-steps .when { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.todo-steps strong { display: block; font-size: 17px; margin: 2px 0 4px; }
.todo-steps p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.todo-steps .links { display: flex; flex-wrap: wrap; gap: 6px; }
.todo-steps .links a { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.85); text-decoration: none; color: var(--ink); border: 1px solid rgba(0,0,0,.08); }
.todo-steps .s1 { background: #e6f7ec; border-color: #b9e5c7; } .todo-steps .s1::before { background: #5bb878; }
.todo-steps .s2 { background: #f1f9e1; border-color: #d4ecaa; } .todo-steps .s2::before { background: #8cbf3f; }
.todo-steps .s3 { background: #fff6dc; border-color: #ffe3a1; } .todo-steps .s3::before { background: #e8b23a; }
.todo-steps .s4 { background: #fff0e6; border-color: #ffd5bd; } .todo-steps .s4::before { background: #f08f5e; }
.todo-steps .s5 { background: #ffedf2; border-color: #ffc9d7; } .todo-steps .s5::before { background: #e66f92; }
@media (min-width: 900px) { .todo-steps { grid-template-columns: 1fr 1fr; } .todo-steps .s5 { grid-column: 1 / -1; } }
.banner-text small { white-space: nowrap; font-weight: 700; color: var(--brand-dark); }
.h1-sprout { display: inline-block; width: 1.05em; height: 1.05em; margin-left: 4px; vertical-align: -0.12em; }

/* 계산기 바로가기: 이모지 + 짧은 이름, 파스텔 칸 */
.pastel-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pastel-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 700; border: 1px solid transparent; transition: transform .12s ease; }
.pastel-chips a:hover { transform: translateY(-2px); border-color: rgba(0,0,0,.12); }
.pastel-chips .e { font-size: 17px; line-height: 1; }
.pastel-chips .t0 a { background: #eaf0ff; } .pastel-chips .t1 a { background: #e6f7ef; } .pastel-chips .t2 a { background: #f1ecff; }
.pastel-chips .t3 a { background: #fff2e8; } .pastel-chips .t4 a { background: #ffecf1; }

/* 지역 칸: 작고 아기자기하게 */
.region-tiles { grid-template-columns: repeat(3, 1fr); gap: 7px; }
.region-tiles a { padding: 10px 8px; border-radius: 14px; text-align: center; }
.region-tiles strong { font-size: 15px; }
.region-tiles span { font-size: 11px; line-height: 1.4; display: block; margin-top: 2px; }
@media (min-width: 640px) { .region-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .region-tiles { grid-template-columns: repeat(6, 1fr); } }

/* 아이·엄마 혜택 구분 */
.b-mom { background: #e3f5e3; color: #2f7d43; }
.bf-who { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bf-who legend { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.bf-who label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; }
.bf-who input { accent-color: var(--brand); }
.bf-who label:has(input:checked) { font-weight: 700; border-color: var(--brand); background: var(--brand-soft); }
.bf-who .w-kid:has(input:checked) { border-color: #f4a77f; background: #fff0e6; }
.bf-who .w-mom:has(input:checked) { border-color: #6cc184; background: #e6f7ec; }
.who-links { display: flex; flex-wrap: wrap; gap: 8px; }
.who-links a { padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); }
.who-kid { background: #fff0e6; border: 1px solid #ffd5bd; }
.who-mom { background: #e6f7ec; border: 1px solid #b9e5c7; }
.region-tiles span + span { color: var(--muted); }

/* 혜택 결과: 가로형 파스텔 카드 2줄 */
.bf-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.bf-card { position: relative; display: flex; flex-direction: column; padding: 16px 18px; border-radius: 16px; border: 1.5px solid; }
.bf-card .bf-place { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.bf-card h3 { margin: 2px 0 6px; font-size: 17px; line-height: 1.4; }
.bf-card .bf-sum { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-card .bf-badges { margin: 0 0 12px; }
.bf-card .b { background: rgba(255,255,255,.8); }
.bf-card .b-mom { background: #fff; color: #2f7d43; } .bf-card .b-kid { background: #fff; color: #c0612f; }
.bf-open { margin-top: auto; align-self: flex-start; font: inherit; font-size: 14px; font-weight: 800; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.bf-open:hover { border-color: var(--ink-2); }
.bf-card.c0 { background: #e6f7ec; border-color: #b9e5c7; }
.bf-card.c1 { background: #f1f9e1; border-color: #d4ecaa; }
.bf-card.c2 { background: #fff6dc; border-color: #ffe3a1; }
.bf-card.c3 { background: #fff0e6; border-color: #ffd5bd; }
.bf-card.c4 { background: #ffedf2; border-color: #ffc9d7; }
@media (min-width: 768px) { .bf-grid { grid-template-columns: 1fr 1fr; } }
.b-kid { background: #fff0e6; color: #c0612f; }

/* 자세히 보기 창 */
.bf-modal { border: 0; border-radius: 20px; padding: 0; width: min(640px, calc(100% - 24px)); max-height: 86vh; box-shadow: 0 20px 60px rgba(20,30,50,.25); }
.bf-modal::backdrop { background: rgba(20, 30, 50, .45); }
.bf-m-inner { position: relative; padding: 22px 20px 20px; }
.bf-m-inner h2 { margin: 2px 0 6px; font-size: 21px; padding-right: 30px; }
.bf-m-inner .bf-place { font-size: 13px; font-weight: 700; color: var(--brand-dark); margin: 0; }
.bf-m-sum { color: var(--ink-2); margin: 0 0 10px; }
.bf-m-close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-soft); font-size: 22px; cursor: pointer; color: var(--ink-2); }
.bf-modal .bf-dl { background: var(--bg-soft); border-radius: 12px; padding: 12px; }
.bf-m-note { font-size: 12px; color: var(--muted); margin: 12px 0; }
.bf-modal .cta { margin: 0; }
.banner-mid { font-style: normal; font-weight: 700; font-size: clamp(13px, 2.6vw, 22px); line-height: 1.4; margin-top: 6px; color: var(--ink-2); }
@media (max-width: 480px) { .banner-text small { display: none; } }

/* 칸마다 다른 파스텔 색 + 이모티콘 */
.quick .qe { display: inline-block; margin-right: 6px; font-size: 1.15em; }
.hub-body .quick li.col-pink a     { background: #ffe8f0; border-color: #ffc2d6; }
.hub-body .quick li.col-peach a    { background: #ffeedd; border-color: #ffcfa8; }
.hub-body .quick li.col-yellow a   { background: #fff5d1; border-color: #ffe08a; }
.hub-body .quick li.col-mint a     { background: #e2f6ee; border-color: #a8e0c8; }
.hub-body .quick li.col-sky a      { background: #e3f1ff; border-color: #b3d6fb; }
.hub-body .quick li.col-lavender a { background: #efe9ff; border-color: #cdbdf7; }
.hub-body .quick li.col-coral a    { background: #ffe6e1; border-color: #ffbcae; }
.hub-body .quick li.col-teal a     { background: #dff4f6; border-color: #a3dbe2; }
.hub-body .quick li[class^="col-"] a:hover { border-color: rgba(0,0,0,.25); }

/* 글 목록: 큰 썸네일 카드 (사용자 예시처럼) */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 18px; grid-template-columns: 1fr; }
.post-tile { display: block; text-decoration: none; color: var(--ink); }
.post-img { display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.post-tile:hover .post-img img { transform: scale(1.03); }
.post-img-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-weight: 700; }
.post-tile .post-cat { display: block; margin-top: 10px; }
.post-title { display: block; font-size: 18px; line-height: 1.45; margin: 2px 0 4px; }
.post-tile time { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.post-ex { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; color: var(--ink-2); }
@media (min-width: 640px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr 1fr; } }
.sec-photo { margin: 4px 0 18px; }
.sec-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; display: block; }
.post-hero { margin: 0 0 20px; }
.post-hero img { width: 100%; height: auto; border-radius: 16px; display: block; }

/* ---------- 성향 테스트 ---------- */
.test-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 22px 0 8px; }
@media (min-width: 720px) { .test-cards { grid-template-columns: 1fr 1fr; } }
.test-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1.5px solid #ffc2d6; background: #fff5f8; transition: transform .12s ease, box-shadow .12s ease; }
.test-card.tc-parent { border-color: #a8e0c8; background: #effaf5; }
.test-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 30, 50, .08); }
.test-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.tc-body strong { font-size: 19px; }
.tc-body span { color: var(--ink-2); font-size: 15px; }
.tc-body em { font-style: normal; font-size: 13px; color: var(--muted); }
.tc-body .tc-go { margin-top: 4px; font-weight: 800; color: #d63a72; }
.tc-parent .tc-go { color: var(--brand-dark); }
.test-howto { margin: 26px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-soft); }
.test-howto h2 { font-size: 18px; margin: 0 0 6px; }
.test-howto ol { margin: 0; padding-left: 20px; }
.test-types h2 { font-size: 19px; margin: 30px 0 12px; }
.type-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.type-grid a { display: block; height: 100%; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.type-grid a:hover { border-color: #f08fb0; }
.type-grid .te { font-size: 26px; display: block; }
.type-grid strong { display: block; font-size: 16px; }
.type-grid small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }

.test-intro h1 { font-size: 26px; margin: 18px 0 8px; }
.test-hero { display: block; width: 100%; border-radius: 18px; aspect-ratio: 3 / 2; object-fit: cover; }
.test-facts { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.test-facts li { padding: 9px 12px; border-radius: 10px; background: var(--bg-soft); font-size: 15px; }
.test-role-q { margin: 18px 0 8px; }
.test-start-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 20px; }
.btn-start, .btn-line { flex: 1 1 140px; display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 12px 18px; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; text-decoration: none; }
.btn-start { border: 0; background: #e5487f; color: #fff; box-shadow: 0 3px 10px rgba(229, 72, 127, .25); }
.btn-start:hover { filter: brightness(1.05); }
.btn-line { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: #e5487f; }

.test-quiz { padding: 8px 0 18px; }
.t-progress { height: 10px; border-radius: 99px; background: #ffe3ec; overflow: hidden; }
.t-progress span { display: block; height: 100%; width: 0; background: #e5487f; border-radius: 99px; transition: width .25s ease; }
.t-count { margin: 10px 0 0; color: var(--muted); font-weight: 700; font-size: 14px; }
.t-prompt { margin: 22px 0 2px; color: #d63a72; font-weight: 800; }
.t-q { font-size: 23px; margin: 0 0 22px; min-height: 3.2em; }
.t-answers { display: grid; gap: 10px; }
.t-answers button { min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.t-answers button:hover { border-color: #f08fb0; background: #fff5f8; }
.t-answers button.picked { border-color: #e5487f; background: #ffe8f0; }
.t-back { margin-top: 14px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 0; }
.test-other { margin-top: 16px; color: var(--ink-2); }

.tr-head { text-align: center; padding: 22px 16px; border-radius: 20px; background: linear-gradient(160deg, #fff0f5, #ffeedd); margin: 8px 0 18px; }
.test-result[data-slug="parent"] .tr-head { background: linear-gradient(160deg, #e6f7ec, #e3f1ff); }
.tr-kicker { margin: 0; color: var(--ink-2); font-weight: 700; }
.tr-head h1 { margin: 6px 0; font-size: 27px; }
.tr-emoji { display: block; font-size: 54px; line-height: 1.2; }
.tr-one { margin: 0; color: var(--ink-2); }
.tr-axes { display: grid; gap: 12px; margin-bottom: 8px; }
.tr-axis { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.tr-axis-name { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 700; }
.tr-axis-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.tr-axis-row span { flex: none; min-width: 64px; }
.tr-axis-row span:last-child { text-align: right; }
.tr-axis-row span.on { color: #d63a72; }
.test-result[data-slug="parent"] .tr-axis-row span.on { color: var(--brand-dark); }
.tr-bar { flex: 1; height: 10px; border-radius: 99px; background: #e9edf3; overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: #f08fb0; border-radius: 99px; }
.test-result[data-slug="parent"] .tr-bar i { background: #5cc39a; }
.tr-axis-desc { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.tr-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chips li { padding: 7px 13px; border-radius: 99px; background: #fff0e6; font-weight: 700; font-size: 15px; }
.tr-family { margin: 26px 0; padding: 18px; border-radius: 18px; background: #fffbea; border: 1.5px solid #ffe08a; }
.tr-family h2 { margin: 0 0 10px; font-size: 20px; }
.tr-family h3 { font-size: 17px; margin: 16px 0 6px; }
.tr-family ul { margin: 0; padding-left: 20px; }
.fam-who { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fam-chip { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid #ffe08a; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.fam-chip b { color: var(--ink); }
.fam-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 6px; }
.tr-copied { color: var(--brand-dark); font-weight: 700; font-size: 14px; }
.tr-next { display: block; margin: 18px 0; padding: 16px 18px; border-radius: 16px; background: var(--brand-soft); text-decoration: none; color: var(--ink); }
.tr-next strong { display: block; font-size: 17px; }
.tr-next span { color: var(--ink-2); font-size: 14px; }
.tr-more h2 { font-size: 19px; margin: 30px 0 0; }
.test-disclaimer { margin-top: 22px; font-size: 14px; }
.test-mini { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.test-mini a { display: block; height: 100%; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: var(--ink); border: 1.5px solid #ffc2d6; background: #fff0f5; transition: transform .12s ease; }
.test-mini .tm-parent a { border-color: #a8e0c8; background: #e6f7ec; }
.test-mini a:hover { transform: translateY(-2px); }
.test-mini .e { font-size: 26px; display: block; }
.test-mini strong { display: block; font-size: 17px; }
.test-mini small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.tr-fun { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 99px; background: #fff; font-size: 13px; font-weight: 800; color: #d63a72; }

/* ---------- 학원 찾기 ---------- */
.ac-filters { margin: 18px 0 14px; padding: 16px; border-radius: 18px; background: #e6f6f8; border: 1.5px solid #b3e3ea; display: grid; gap: 12px; }
.ac-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.ac-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.ac-filters select, .ac-filters input[type=search] { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #cfe5ea; background: #fff; color: var(--ink); }
.ac-q { grid-column: span 2; }
@media (max-width: 520px) { .ac-q { grid-column: 1 / -1; } }
.ac-tags { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-tags legend { font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.ac-tag { flex-direction: row !important; cursor: pointer; }
.ac-tag input { position: absolute; opacity: 0; pointer-events: none; }
.ac-tag span { display: inline-block; padding: 7px 12px; border-radius: 99px; background: #fff; border: 1.5px solid #cfe5ea; font-size: 14px; font-weight: 700; color: var(--ink); }
.ac-tag input:checked + span { background: #0f9fb5; border-color: #0f9fb5; color: #fff; }
.ac-tag input:focus-visible + span { outline: 3px solid rgba(15, 159, 181, .35); }
.ac-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 14px !important; }
.ac-status { font-weight: 800; margin: 6px 0 12px; }
.ac-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ac-card { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 50, .04); }
.ac-card h3 { margin: 0 0 2px; font-size: 17px; }
.ac-meta { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.ac-tags-row { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip { padding: 3px 9px; border-radius: 99px; background: #e6f6f8; font-size: 13px; font-weight: 700; }
.ac-chip.gray { background: var(--bg-soft); color: var(--ink-2); }
.ac-fee { margin: 0 0 4px; font-size: 15px; }
.ac-fee b { margin-right: 6px; color: #0b7f92; }
.ac-fee.muted { color: var(--muted); font-size: 14px; }
.ac-fees { font-size: 14px; margin-bottom: 6px; }
.ac-fees summary { cursor: pointer; color: #0b7f92; font-weight: 700; }
.ac-fees ul { list-style: none; padding: 6px 0 0; margin: 0; }
.ac-fees li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.ac-addr { margin: 6px 0 10px; font-size: 14px; color: var(--ink-2); }
.ac-addr span { color: var(--muted); }
.ac-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ac-btn { padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 800; color: var(--ink); background: #fff; }
.ac-btn:hover { border-color: #0f9fb5; }
.ac-btn.call { background: #0f9fb5; border-color: #0f9fb5; color: #fff; }
.ac-more { display: block; width: 100%; margin: 16px 0; }
.ac-guide { margin-top: 30px; }
.ac-near { margin: 18px 0 0; padding: 16px; border-radius: 18px; background: #fff5e6; border: 1.5px solid #ffd59a; }
.ac-near-title { margin: 0 0 10px; font-weight: 800; }
.ac-near-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .ac-near-row { grid-template-columns: auto 1fr; } }
.ac-loc { background: #ff8a3d; box-shadow: 0 3px 10px rgba(255, 138, 61, .25); }
.ac-addr-form { display: flex; gap: 8px; }
.ac-addr-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #ffd59a; }
.ac-addr-form .btn-line { flex: none; min-height: 46px; padding: 8px 16px; }
.ac-near-msg { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.ac-mapbtn { display: block; width: 100%; margin: 0 0 12px; min-height: 46px; }
.ac-map { width: 100%; height: 380px; border-radius: 16px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); }
.ac-dist { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #fff0e0; color: #c25a00; font-size: 13px; font-weight: 800; }
.ac-iw { padding: 10px 12px; min-width: 180px; max-width: 240px; font-size: 13px; line-height: 1.5; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ac-iw strong { display: block; font-size: 14px; }
.ac-iw a { color: #0b7f92; font-weight: 800; margin-right: 8px; }
/* 갈래 카드: 카드 전체는 갈래 화면으로, 안쪽 테스트 버튼은 테스트로 */
.hub-card { position: relative; }
.hub-main { text-decoration: none; color: inherit; display: block; }
.hub-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hub-test { position: relative; z-index: 1; display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #ffc2d6; color: #d63a72; font-size: 14px; font-weight: 800; text-decoration: none; }
.hub-mom .hub-test { border-color: #a8e0c8; color: var(--brand-dark); }
.hub-test:hover { filter: brightness(.97); }

/* ---------- 태교여행 ---------- */
.p-amber { background: #e8890c; }
.tv-jump { margin: 16px 0 6px; }
.tv-sec { margin-top: 34px; }
.tv-sec > h2 { font-size: 22px; margin: 0 0 10px; }
.tv-sec h3 { font-size: 17px; margin: 22px 0 8px; }
.tv-small { font-size: 14px; color: var(--ink-2); }
.tv-when { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tv-when-card { padding: 14px 16px; border-radius: 16px; background: #fff7ec; border: 1px solid #ffe0b8; }
.tv-when-card .e { font-size: 24px; display: block; }
.tv-when-card strong { display: block; font-size: 16px; margin: 2px 0 4px; }
.tv-when-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.tv-benefits { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tvb { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.tvb p { margin: 0 0 6px; font-size: 14px; }
.tvb-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 16px !important; }
.tvb-top .e { font-size: 22px; }
.tvb-status { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.tvb-status.warn { background: #fff1e0; color: #b45a00; }
.tvb-who { color: var(--muted); font-size: 13px !important; }
.tvb-how b { color: var(--brand-dark); margin-right: 4px; }
.tv-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tv-cards a { display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.tv-cards a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 30, 50, .08); }
.tv-cards img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tvc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.tvc-body strong { font-size: 18px; }
.tvc-body > span { font-size: 14px; color: var(--ink-2); }
.tvc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tvc-chips em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-2); }
.tv-trend { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tv-trend-card { padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); }
.tv-trend-card h3 { margin: 0 0 6px !important; font-size: 16px !important; }
.tv-trend-card ul { margin: 0; padding-left: 18px; font-size: 14px; }

.tv-hero { display: block; width: 100%; border-radius: 18px; aspect-ratio: 3 / 2; object-fit: cover; margin: 6px 0 14px; }
.travel-place h1 { font-size: 27px; margin: 6px 0 6px; }
.tv-one { color: var(--ink-2); margin: 0 0 12px; }
.tv-facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.tv-facts li { padding: 9px 12px; border-radius: 10px; background: var(--bg-soft); font-size: 15px; }
.tv-two { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
@media (min-width: 720px) { .tv-two { grid-template-columns: 1fr 1fr; } }
.tv-good, .tv-bad { padding: 14px 16px; border-radius: 16px; }
.tv-good { background: #e9f8ef; } .tv-bad { background: #fff3e6; }
.tv-good h2, .tv-bad h2 { font-size: 17px; margin: 0 0 6px; }
.tv-good ul, .tv-bad ul { margin: 0; padding-left: 18px; font-size: 15px; }
.tv-stays { margin-top: 26px; }
.tv-stays h2 { font-size: 21px; margin: 0 0 2px; }
.tv-stays ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.tv-stay { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.tv-value .tv-stay { border-left: 5px solid #34b27d; }
.tv-premium .tv-stay { border-left: 5px solid #c79a2c; background: #fffdf6; }
.tv-stay h3 { margin: 0 0 2px; font-size: 17px; }
.tv-stay p { margin: 0 0 8px; font-size: 15px; }
.tv-stay-meta { color: var(--muted); font-size: 13px !important; font-weight: 700; }
.tv-pkg { padding: 6px 10px; border-radius: 10px; background: #fff0f5; color: #b0325f; font-size: 14px !important; }
.tv-sights { margin-top: 26px; }
.tv-sights h2 { font-size: 21px; }
.tv-sights ul { padding-left: 18px; }
.tv-sights li { margin-bottom: 6px; }
.tv-sights li span { color: var(--ink-2); font-size: 14px; }
.tv-sights li a { font-size: 13px; font-weight: 800; margin-left: 4px; }
.tv-near { margin-top: 28px; padding: 16px; border-radius: 18px; background: #fff5e6; border: 1.5px solid #ffd59a; }
.tv-near h2 { font-size: 21px; margin: 0 0 4px; }
.tv-base { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 10px 0; }
.tv-base select { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #ffd59a; background: #fff; }
.tv-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tv-cats button { padding: 8px 13px; border-radius: 99px; border: 1.5px solid #ffd59a; background: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.tv-cats button.on { background: #ff8a3d; border-color: #ff8a3d; color: #fff; }
.tv-results { margin-top: 12px; }
.tv-back { margin: 22px 0; font-weight: 700; }
.tv-others h2 { font-size: 19px; margin: 26px 0 12px; }
.hub-travel { margin-left: 6px; border-color: #ffd59a !important; color: #b45a00 !important; }
.tv-warning { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: #fde8e8; border: 1.5px solid #f5a3a3; }
.tv-warning p { margin: 4px 0; }
.tvc-chips em.warn { background: #fde8e8; color: #b42318; }
.home-travel .tv-home { margin-top: 12px; }
.tv-home-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tv-home-links .hub-travel { margin-left: 0; }
@media (max-width: 720px) {
  .tv-home { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  .tv-home li { scroll-snap-align: start; }
  .tv-home .tvc-body > span:not(.tvc-chips) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.trip-hub { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0 8px; }
@media (min-width: 720px) { .trip-hub { grid-template-columns: 1fr 1fr; } }
.trip-hub-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; text-decoration: none; color: var(--ink); border: 1.5px solid #ffd59a; background: #fff7ec; }
.trip-hub-card.trip-kids { border-color: #b3e3ea; background: #e9f7f9; }
.trip-hub-card .e { font-size: 30px; }
.trip-hub-card strong { font-size: 19px; }
.trip-hub-card span { color: var(--ink-2); font-size: 14px; }
.trip-hub-card em { font-style: normal; font-weight: 800; color: #b45a00; margin-top: 4px; }
.trip-hub-card.trip-kids em { color: #0b7f92; }
.travel-page .home-travel { margin-top: 30px; }
.tv-age { font-style: normal; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: #e6f6f8; color: #0b7f92; }

/* 아이를 위한: 학원 미리보기 (PC 4칸, 휴대폰 2칸) */
.acp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acp-more { font-size: 14px; font-weight: 600; white-space: nowrap; }
.acp-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.acp-card a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.acp-card a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 30, 50, .08); border-color: #f4a77f; }
.acp-card:nth-child(4n+1) a { background: #fff0e6; border-color: #ffd5bd; }
.acp-card:nth-child(4n+2) a { background: #fff6dc; border-color: #ffe3a1; }
.acp-card:nth-child(4n+3) a { background: #ffedf2; border-color: #ffc9d7; }
.acp-card:nth-child(4n+4) a { background: #ffece6; border-color: #ffc6b5; }
.acp-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--ink-2); background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 2px 8px; }
.acp-card strong { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.acp-meta { font-size: 13px; color: var(--ink-2); }
.acp-fee { margin-top: auto; font-size: 13px; font-weight: 700; color: #c2551f; }
.acp-fee.muted { color: var(--muted); font-weight: 600; }
.acp-skel .acp-meta { color: var(--muted); }
.acp-foot { margin: 14px 0 0; }
@media (max-width: 767px) {
  .acp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .acp-card a { padding: 12px; }
  .acp-card strong { font-size: 14px; }
}
